.employee-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.employee-search { display: block; min-width: 0; width: clamp(125px, 20vw, 250px); }
.employee-filter-status select {
  min-height: 42px;
  max-width: 100%;
  padding: 7px 8px;
  border: 1px solid #c8d4e2;
  background: #f9fbfd;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.employee-table td:last-child { text-align: end; }
.employee-table .button { min-height: 38px; white-space: nowrap; }
.employee-table .user-status.inactive { border-color: #d8e0eb; background: #f1f4f8; color: #435770; }
.employee-list-feedback {
  padding: 8px 15px;
  border-bottom: 1px solid #d2e4d7;
  background: #f1f9f3;
  color: #235441;
  font-size: 14px;
}
dialog.employee-dialog {
  width: min(690px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.employee-dialog .dialog-head,
.employee-dialog .dialog-footer { position: sticky; z-index: 1; background: var(--paper); }
.employee-dialog .dialog-head { inset-block-start: 0; }
.employee-dialog .dialog-footer { inset-block-end: 0; }
.employee-dialog .dialog-head h2 { overflow-wrap: anywhere; }
.employee-dialog-body { gap: 16px; }
.employee-form-fields, .employee-form-section { display: grid; min-width: 0; gap: 10px; }
.employee-form-fields { margin: 0; border: 0; padding: 0; gap: 16px; }
.employee-form-section { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.employee-form-section h3 { font-size: 16px; font-weight: 740; }
.employee-field > span { font-size: 13px; font-weight: 700; }
.employee-field input:disabled, .employee-field select:disabled {
  background: #f5f7fb;
  color: #384e66;
  opacity: 1;
  -webkit-text-fill-color: #384e66;
}
.employee-permissions { display: grid; gap: 3px; border: 1px solid var(--line); margin: 0; padding: 5px 10px 8px; }
.employee-permissions legend { padding-inline: 3px; color: var(--muted); font-size: 13px; font-weight: 700; }
.employee-permissions label { display: flex; gap: 8px; align-items: center; min-height: 37px; color: var(--ink); font-size: 14px; }
.employee-permissions input { width: 17px; height: 17px; margin: 0; accent-color: var(--steel); }
.employee-access { border-bottom: 0; padding-block-end: 0; }
.employee-access-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.employee-access-actions .employee-remove { border-color: #d9b0b7; color: #8b283a; }
.employee-confirmation { display: grid; gap: 7px; padding: 12px; border: 1px solid #d9b0b7; background: #fff6f6; font-size: 14px; }
.employee-confirmation .employee-danger { border-color: #8b283a; background: #8b283a; color: #fff; }

@media (max-width: 740px) {
  .employee-directory .directory-head { flex-wrap: wrap; }
  .employee-filters { flex: 1 0 min(100%, 330px); }
  .employee-search { flex: 1 1 auto; width: auto; }
}
@media (max-width: 500px) {
  .employee-table td:nth-child(5) { grid-area: 3 / 2; }
  .employee-table .button { min-height: 44px; }
  .employee-dialog .dialog-body, .employee-dialog .dialog-head, .employee-dialog .dialog-footer { padding-inline: 12px; }
  .employee-field :is(input, select), .employee-filter-status select { font-size: 16px; }
}
@media (max-width: 390px) {
  .employee-filters { flex-wrap: wrap; }
  .employee-search { flex-basis: 100%; }
  .employee-filter-status { width: 100%; }
  .employee-filter-status select { width: 100%; }
  .employee-dialog .field-row { grid-template-columns: minmax(0, 1fr); }
}

.employee-type-step h3 { margin: 0; font-size: 1rem; }
.employee-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.employee-type-options button {
  display: grid; align-content: start; gap: 4px; min-width: 0; padding: 14px;
  color: var(--navy); background: #f7fafe; border: 1px solid #beccda; text-align: start;
}
.employee-type-options button:hover:not(:disabled) { background: #eaf2f9; border-color: var(--steel); }
.employee-type-options span { color: var(--muted); font-size: 13px; }
.employee-type-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.employee-personnel-badge {
  display: inline-block; width: fit-content; max-width: 100%; padding: 2px 7px; border: 1px solid #c2d1df;
  border-radius: 3px; background: #eff4f9; color: #36516c; font-size: 12px; font-weight: 650;
}
.employee-table .employee-personnel-badge { display: block; margin: 3px 0 2px; }
.employee-personnel-badge[data-type="external"] { border-color: #cebdde; color: #583d70; background: #f5f0fb; }
.employee-type-change { border: 0; background: none; color: var(--steel); font: inherit; font-size: 13px; text-decoration: underline; }
.employee-form-group { margin: 0; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 15px; }
.employee-rate-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(82px, .55fr); gap: 10px; }
.employee-field { min-width: 0; }
.employee-field :is(input, select) { min-width: 0; max-width: 100%; }
@media(max-width: 500px) {
  .employee-type-options, .employee-rate-row { grid-template-columns: minmax(0, 1fr); }
  .employee-type-change { min-height: 44px; }
}
