form.model {
  margin: 1em 0;
}

label {
  text-transform: capitalize;
  font-weight: 600;
}

input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea,
select {
  border: 1px solid #ccc;
  font-family: "Mulish", sans-serif;
  font-size: 1rem;
  display: block;
  padding: 0.5em;
  width: 100%;
}

input[type=file] {
  display: block;
}

.selectize-input.required,
input.required,
input[type=text]:required,
input[type=email]:required,
input[type=number]:required,
input[type=password]:required,
textarea:required,
select:required {
  border-bottom: 2px solid var(--lt_blue);
}

button, a.button, input[type=submit] {
  background: #E58117;
  color: white;
  cursor: pointer;
  border: 0;
  border-radius: 3px;
  font: 700 0.85em/2.5 "Mulish", sans-serif;
  line-height: 1.2;
  margin-top: 1em;
  padding: 0.75em 1.25em;
  text-decoration: none;
  transition: all 1s;
}

form ul {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}

form li {
  margin: 0.5em 0;
}

form .flex-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2%;
}

form .flex-wrapper > div,
form .flex-wrapper > fieldset {
  margin: 0.5em 0;
  width: 48%;
}

p.form-instructions {
  border-top: 1px solid #ddd;
  margin-top: 1.5em;
  padding-top: 1em;
}

#header-search {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid white;
  border-radius: 1.5em;
  overflow: hidden;
}

form#search-form {
  align-content: stretch;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

form#search-form input[name=q] {
  background-color: transparent;
  border: 0;
  color: var(--blue);
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.15;
  padding: 0 0 0 1em;
  margin: 0.25em;
  width: 240px;
}

form#search-form input[name=q]:focus {
  outline: none;
}

form#search-form input[name=q]::placeholder {
  color: rgba(0, 51, 73, 0.65);
}

form#search-form button {
  background-color: var(--med_blue);
  border-radius: 0;
  color: white;
  padding: 0.25em 0.5em;
  margin: 0;
}

form#search-form button figure {
  width: 2em;
  height: 2em;
}

form#search-form button svg {
  width: 50%;
  height: auto;
  margin-top: 25%;
}

#tag-wrapper {
  margin-top: 1em;
}

.helptext {
  font-size: 0.85em;
  font-style: italic;
  margin: 0 0 0.25em;
  opacity: 65%;
}

.checkbox-boolean {
  padding-right: 1em;
}

/* Employee name filter */

#employee-filter-wrapper {
  align-items: center;
  display: flex;
  gap: 1em;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 1.5em auto;
}

.filter {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 28%;
}

.selectize-control.single {
  width: 100%;
}

.filter button {
  margin: 0;
}

/* Errors */

ul.errorlist {
  margin: 0;
  padding: 0;
}

ul.errorlist li {
  color: #B22A2C;
  font-size: 0.875em;
  margin: 1em 0 0;
}

/* Misc */

#existing_file {
  background-color: #004F7E;
  color: white;
  font-size: 0.875em;
  line-height: 1.2;
  padding: 0.5em 1em;
}

textarea#id_personal_details {
  height: 16em;
  padding: 1em;
  width: 100%;
}
