/* Employees registry uses the existing Office palette and components. */
#employeesSection { min-width: 0; }
#employeesSection [hidden] { display: none !important; }
#employeesSection .employees-intro,
#employeesSection .employees-layout > .card { background: var(--panel); color: var(--text); }
#employeesSection .btn--primary { color: #fff; }
#employeesSection .employees-intro { margin-bottom: 16px; padding: 22px 24px; }
#employeesSection .employees-intro h2 { margin: 3px 0 7px; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; }
#employeesSection .employees-intro p:last-child { margin: 0; max-width: 70ch; color: var(--muted); line-height: 1.5; }
#employeesSection .employees-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
#employeesSection .employees-layout > .card { min-width: 0; padding: 22px; }
#employeesSection .employees-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
#employeesSection .employees-card-header h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
#employeesSection .employees-card-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
#employeesSection .employees-count { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 700; }
#employeesSection .employees-field { display: grid; gap: 7px; min-width: 0; color: var(--text); font-size: 13px; font-weight: 650; }
#employeesSection .employees-field b,
#employeesSection .employees-field-label b { color: #f87171; }
#employeesSection .employees-field :is(input, select, textarea),
#employeesSection .employees-role-picker > summary { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; outline: none; background: var(--panel-2); color: var(--text); font: inherit; font-weight: 500; }
#employeesSection .employees-field textarea { resize: vertical; min-height: 86px; }
#employeesSection .employees-field :is(input, select, textarea)::placeholder { color: var(--muted); opacity: 1; }
#employeesSection :is(input, select, textarea, button, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#employeesSection .employees-search-field { margin-bottom: 14px; }
#employeesSection .employees-list-status { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
#employeesSection .employees-list-status[data-state="error"] { color: #fca5a5; }
#employeesSection .employees-notice { margin: 0 0 16px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-2); line-height: 1.5; }
#employeesSection .employees-notice[data-tone="error"] { border-color: #b42318; color: #fecaca; background: rgba(180, 35, 24, .13); }
#employeesSection .employees-table-wrap { border: 1px solid var(--border); border-radius: 12px; }
#employeesSection .employees-table { min-width: 610px; }
#employeesSection .employees-table :is(th, td) { padding: 12px 11px; vertical-align: middle; }
#employeesSection .employees-table th { background: var(--panel-2); font-size: 12px; }
#employeesSection .employees-table tbody tr:hover { background: rgba(37, 99, 235, .07); }
#employeesSection .employees-table td:first-child { font-weight: 700; }
#employeesSection .employees-table .btn { min-height: 34px; padding: 7px 10px; white-space: nowrap; }
#employeesSection .employees-table .employees-row-selected { background: rgba(37, 99, 235, .15); }
#employeesSection .employees-role-list { display: flex; flex-wrap: wrap; gap: 4px; }
#employeesSection .employees-role-badge,
#employeesSection .employees-status-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 7px; border-radius: 7px; background: var(--panel-2); color: var(--text); font-size: 11px; font-weight: 650; line-height: 1.25; }
#employeesSection .employees-status-badge[data-status="active"] { background: rgba(21, 128, 61, .16); color: #4ade80; }
#employeesSection .employees-status-badge[data-status="inactive"] { background: rgba(180, 35, 24, .13); color: #fca5a5; }
#employeesSection .employees-form { display: grid; gap: 18px; }
#employeesSection .employees-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
#employeesSection .employees-field--wide { grid-column: 1 / -1; }
#employeesSection .employees-role-field { display: grid; gap: 8px; min-width: 0; }
#employeesSection .employees-field-label { font-size: 13px; font-weight: 700; }
#employeesSection .employees-role-picker { position: relative; min-width: 0; }
#employeesSection .employees-role-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
#employeesSection .employees-role-picker > summary::-webkit-details-marker { display: none; }
#employeesSection .employees-role-picker > summary::after { content: "⌄"; font-size: 20px; line-height: 12px; color: var(--muted); }
#employeesSection .employees-role-picker[open] > summary { border-color: var(--primary); }
#employeesSection .employees-role-picker[open] > summary::after { transform: rotate(180deg); }
#employeesSection .employees-role-picker[aria-disabled="true"] > summary { opacity: .65; cursor: not-allowed; }
#employeesSection .employees-role-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
#employeesSection .employees-role-options { display: grid; gap: 3px; max-height: 230px; margin-top: 9px; overflow-y: auto; }
#employeesSection .employees-role-option { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
#employeesSection .employees-role-option:hover,
#employeesSection .employees-role-option:focus-within { background: var(--panel-2); }
#employeesSection .employees-role-option input { width: 17px; height: 17px; accent-color: var(--primary); }
#employeesSection .employees-field-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
#employeesSection .employees-field-hint[data-state="error"] { color: #fca5a5; }
#employeesSection .employees-selected-roles { display: flex; flex-wrap: wrap; gap: 7px; min-height: 28px; }
#employeesSection .employees-selected-role { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; border: 1px solid rgba(37, 99, 235, .5); border-radius: 999px; padding: 5px 9px; background: rgba(37, 99, 235, .13); font-size: 12px; }
#employeesSection .employees-selected-role button { border: 0; padding: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
#employeesSection .employees-primary-field { max-width: 420px; }
#employeesSection .employees-form-actions,
#employeesSection .employees-account-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#employeesSection .btn { min-height: 40px; }
#employeesSection .employees-account-actions { display: grid; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
#employeesSection .employees-account-actions h4 { margin: 0; font-size: 15px; }
#employeesSection .employees-password-form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
#employeesSection .employees-password-form .employees-field { flex: 1 1 210px; }
#employeesSection :is(button, input, select, textarea):disabled { opacity: .55; cursor: not-allowed; }
body.theme-light #employeesSection .employees-notice[data-tone="error"],
[data-theme="light"] #employeesSection .employees-notice[data-tone="error"] { color: #991b1b; background: #fef2f2; }
body.theme-light #employeesSection .employees-list-status[data-state="error"],
[data-theme="light"] #employeesSection .employees-list-status[data-state="error"],
body.theme-light #employeesSection .employees-field-hint[data-state="error"],
[data-theme="light"] #employeesSection .employees-field-hint[data-state="error"] { color: #991b1b; }
body.theme-light #employeesSection .employees-status-badge[data-status="active"],
[data-theme="light"] #employeesSection .employees-status-badge[data-status="active"] { color: #166534; }
body.theme-light #employeesSection .employees-status-badge[data-status="inactive"],
[data-theme="light"] #employeesSection .employees-status-badge[data-status="inactive"] { color: #991b1b; }
@media (max-width: 1180px) { #employeesSection .employees-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  #employeesSection .employees-intro,
  #employeesSection .employees-layout > .card { padding: 16px; }
  #employeesSection .employees-form-grid { grid-template-columns: 1fr; }
  #employeesSection .employees-table { min-width: 0; }
  #employeesSection .employees-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #employeesSection .employees-table tbody,
  #employeesSection .employees-table tr { display: grid; }
  #employeesSection .employees-table tr { gap: 4px; padding: 12px; border-bottom: 1px solid var(--border); }
  #employeesSection .employees-table td { display: flex; align-items: baseline; gap: 10px; padding: 2px 0; border: 0; }
  #employeesSection .employees-table td::before { content: attr(data-label); flex: 0 0 68px; color: var(--muted); font-size: 11px; font-weight: 700; }
  #employeesSection .employees-table td:first-child::before { content: ""; flex-basis: 0; }
  #employeesSection .employees-role-menu { position: static; margin-top: 6px; }
}
