/* Employee and optional account share one scrollable form with fixed modal actions. */
#masterDialog.employee-editor-dialog {
  width: calc(100vw - 32px);
  max-width: 1120px;
}
.employee-editor-form .preview-modal-body {
  container-type: inline-size;
  container-name: employee-content;
}
.employee-editor-form [hidden],
.employee-editor-form input[type='hidden'] {
  display: none !important;
}
.employee-editor-form .employee-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.employee-editor-form :is(.employee-profile, .employee-activities, .employee-access-section) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.employee-editor-form :is(.employee-profile, .employee-activities, .employee-access-section) > h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
.employee-editor-form :is(.employee-profile, .employee-activities, .employee-access-section) label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}
.employee-editor-form :is(input:not([type='checkbox']), select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  font-size: 14px;
}
.employee-editor-form :is(label small, .employee-access-section p) {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.employee-editor-form .employee-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.employee-editor-form label.checkline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  line-height: 1.5;
}
.employee-editor-form label.checkline input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--teal);
}
.employee-editor-form label.checkline > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.employee-editor-form .billing-activity-master {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.employee-editor-form .billing-activity-master legend {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
  padding: 0;
}
.employee-editor-form .billing-activity-checks {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 12px;
}
.employee-standard-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 6px 0;
}
.employee-editor-form .employee-access-section {
  margin-top: 16px;
}
.employee-access-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.employee-access-fields {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.employee-access-fields h4 {
  font-size: 14px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.employee-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.employee-editor-form .employee-access-fields > p {
  margin-top: 12px;
}
.employee-editor-form .employee-access-section .error,
.employee-editor-form #masterError {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: 8px;
  padding: 12px;
  overflow-wrap: anywhere;
}
.employee-editor-form .employee-deactivate-access {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.employee-editor-form .employee-access-section > button {
  align-self: start;
  min-height: 44px;
  margin: 0;
}
@container employee-content (min-width:700px) {
  .employee-editor-form .employee-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .employee-editor-form .employee-access-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .employee-editor-form .employee-access-password {
    grid-column: 1/-1;
  }
}
@container employee-content (min-width:900px) {
  .employee-editor-form .billing-activity-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  #masterDialog.employee-editor-dialog {
    width: calc(100vw - 24px);
  }
  .employee-editor-form :is(.employee-profile, .employee-activities, .employee-access-section) {
    padding: 12px;
  }
}
