/* Aspirence workspace: restrained surfaces, precise controls and focused dialogs. */
:root{--muted:#647088;--line:#e3e7f0;--paper:#f6f7fb;--radius:12px;--ease:cubic-bezier(.2,.8,.2,1)}
html{scrollbar-gutter:stable}
html:has(#modal[open]){overflow:hidden}
button{transition:background 150ms,color 150ms,border-color 150ms,box-shadow 150ms,transform 150ms}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled:hover{box-shadow:none}
.primary{background:var(--brand);box-shadow:0 1px 2px #040b9c18,0 3px 8px #040b9c0a}
.primary:hover:not(:disabled){background:#070d81;box-shadow:0 4px 12px #040b9c22}
.secondary{border:1px solid var(--line);background:#fff;color:#44516a;min-height:40px}
.secondary:hover{background:#f5f6fc;border-color:#bcc4d7}
.danger{background:#ba3039;color:#fff;min-height:40px}
.danger:hover{background:#a72530}
kbd{display:inline-flex;align-items:center;justify-content:center;min-width:21px;min-height:21px;padding:2px 5px;border:1px solid #dfe3ed;border-bottom-width:2px;border-radius:5px;background:#fff;color:#7a8499;font:500 10px 'DM Sans',sans-serif;white-space:nowrap}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
input,select,textarea{transition:border-color 150ms,box-shadow 150ms;background-color:#fff}
input:hover:not(:disabled):not(:read-only),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:#b8c1d4}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--brand);outline:0;box-shadow:0 0 0 3px #040b9c12}
input[readonly]{background:#f7f8fc;color:var(--muted)}
#sidebar{display:flex;flex-direction:column;padding:26px 18px 18px;scrollbar-width:thin;scrollbar-color:#dce1ec transparent}
#sidebar .brand{padding:0 12px 24px}
#sidebar .brand img{width:167px}
#sidebar .quick-find-trigger{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#fafbfe;width:100%;padding:9px 10px;margin-bottom:26px;min-height:39px;color:var(--muted);font-size:11px;font-weight:500;border-radius:8px}
.quick-find-trigger>.icon{width:16px;height:16px}
.quick-find-trigger kbd{margin-left:auto;font-size:9px}
#sidebar .quick-find-trigger:hover{background:var(--brand-soft);border-color:#c7cbed;color:var(--brand)}
#sidebar .nav-label{margin-bottom:10px;letter-spacing:1.6px;font-size:9px;color:#737f97}
#sidebar nav button{min-height:43px;padding:10px 12px;margin-bottom:4px;border-radius:9px}
#sidebar nav button.active{background:#eceeff;box-shadow:inset 0 0 0 1px #040b9c08}
#sidebar nav button.active:before{left:-18px;width:3px}
#sidebar .aside-bottom{margin-top:auto;padding-top:26px}
#sidebar .keyboard-help{display:flex;gap:9px;align-items:center;width:100%;padding:9px 8px;margin-bottom:12px;color:var(--muted);font-size:10px;font-weight:500}
.keyboard-help>.icon{width:16px;height:16px}.keyboard-help kbd{margin-left:auto}
#sidebar .workspace{background:none;border-top:1px solid var(--line);border-radius:0;padding:16px 6px 6px;margin-bottom:6px}
#sidebar .account-button{padding:10px 6px;border-radius:9px}
#sidebar .account-button:hover{background:var(--surface)}
#logout{padding-left:6px}
.app-header{box-shadow:0 1px 0 #fff;backdrop-filter:none}
.overview-page #workspace-content{padding:25px 28px}
.overview-page .heading{margin-bottom:20px}
.heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0}
.heading-actions>button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.heading-actions>.secondary{background:#fff;border:1px solid var(--line);color:var(--brand)}
.compact-page .heading-actions>button{min-height:36px;padding:8px 12px;font-size:11px}
.heading-actions .icon{width:15px;height:15px}
.correction-notice{display:flex;align-items:center;gap:12px;padding:12px 16px;margin-bottom:14px;border:1px solid #e4d7b2;border-radius:9px;background:#fffaf0;color:#8a651b}
.correction-notice>.icon{width:18px;height:18px;flex-shrink:0}
.correction-notice strong{font-size:12px}.correction-notice p{font-size:11px;margin:3px 0 0;color:#7c6e50}
.correction-notice button{margin-left:auto;white-space:nowrap;font-size:11px}
.finalize-blockers{padding:15px 18px;border:1px solid #eed7b3;border-radius:9px;background:#fff9ed;font-size:12px;color:#7f5b21}
.finalize-blockers ul{padding-left:18px;margin:8px 0 0;line-height:1.8}
@media(max-width:700px){
  .heading:has(.heading-actions>button:nth-child(2)){flex-wrap:wrap}
  .heading-actions:has(>button:nth-child(2)){width:100%;justify-content:flex-start}
  .heading-actions>button{min-height:40px;font-size:11px;padding:10px 12px}
  .correction-notice{flex-wrap:wrap;align-items:flex-start;padding:12px}.correction-notice>div{flex:1;min-width:180px}
  .correction-notice button{margin-left:30px;padding:3px 0}
}
.heading .eyebrow{color:#7a85a0;letter-spacing:1.6px}
.panel,.dashboard-metrics>article{box-shadow:0 2px 3px #101d3302,0 5px 16px #101d3302}
.dashboard-metrics .payroll-total{background:linear-gradient(120deg,#040b9c 25%,#1622ac);box-shadow:0 6px 20px #040b9c14}
.payroll-total:after{border-radius:28px;width:175px;height:175px;transform:rotate(-20deg);border:28px solid #ffffff05;right:-45px;top:-62px}
.dashboard-metrics h2{letter-spacing:-1.25px}
.period-notice{margin-bottom:18px}
.period-notice.draft{background:#fffefb;border-color:#eee9df}
.progress b{transition:width 220ms var(--ease)}
.table-scroll{scrollbar-width:thin;scrollbar-color:#cdd4e3 transparent;overscroll-behavior:contain}
.table-scroll tbody tr{transition:background 100ms}
.table-scroll tbody tr:hover{background:#f8f9fe}
.table-scroll td.amount,.adjust,.payable,.report-totals{font-variant-numeric:tabular-nums}
.table-scroll th{font-weight:600;color:#65718b}
.row-action{border:1px solid transparent;border-radius:6px}
.row-action:hover{border-color:#d9ddef}
.department-tag{border-radius:5px}
.compact-page .page-stats{background:#fff;border-color:var(--line)}
.saved[data-state=unsaved]{color:#986415}.saved[data-state=unsaved]:before{background:#c78928}
.saved[data-state=error]{color:#b33942}.saved[data-state=error]:before{background:#b33942}
.saved[data-pending=true]~#refresh-workspace .icon{animation:spin 1s linear infinite}
#workspace-content{animation:page-enter 180ms var(--ease)}
/* All popup sizes share one scrollable body and a stable action area. */
#modal{width:540px;max-width:calc(100% - 40px);max-height:calc(100dvh - 48px);padding:0;border:1px solid #dfe4ee;border-radius:18px;overflow:hidden;box-shadow:0 28px 100px #12213a30,0 2px 8px #12213a12;color:var(--ink)}
#modal[open]{display:flex;flex-direction:column;animation:dialog-enter 180ms var(--ease)}
#modal[data-size=wide]{width:680px}#modal[data-size=search]{width:600px;align-self:flex-start;margin-top:min(15vh,120px)}
#modal::backdrop{background:#18243d65;backdrop-filter:blur(3px);animation:veil-enter 150ms ease-out}
#modal .dialog-body{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cdd4e3 transparent;padding:28px;min-height:0;width:100%}
#modal .close{display:grid;place-items:center;position:absolute;right:17px;top:20px;width:32px;height:32px;padding:7px;border:1px solid transparent;border-radius:8px;color:#7a849a;background:#f5f6fa;z-index:6}
#modal .close:hover{color:var(--ink);background:#eaeef7;border-color:#dce2ed}
#modal .close .icon{width:17px;height:17px}
#modal h2{font-size:24px;line-height:1.25;letter-spacing:-.7px;margin:4px 0 0;outline:none}
#modal h3{font-size:13px;font-weight:700;letter-spacing:-.1px;margin:0}
#modal .dialog-heading{display:flex;align-items:flex-start;gap:14px;margin:-28px -28px 0;padding:26px 64px 24px 28px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:-28px;z-index:4}
.dialog-symbol{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #dde1ff;border-radius:12px;background:#f3f4ff;color:var(--brand)}
.dialog-symbol .icon{width:21px;height:21px}
.dialog-heading .eyebrow{font-size:9px;line-height:1.4;letter-spacing:1.6px;margin:1px 0 7px;font-weight:700;color:#79849b}
.dialog-description{font-size:12px;line-height:1.7;margin-top:10px;color:var(--muted);max-width:480px}
#modal .dialog-body>p{font-size:12px;line-height:1.7}
#modal form{margin:0}
#modal label{font-size:12px;font-weight:500;margin:15px 0;color:#48536b}
#modal label input,#modal label select{margin-top:7px}
#modal input,#modal select,#modal textarea{border-radius:8px;min-height:43px;font-size:13px;padding:10px 12px;line-height:1.4}
#modal input[type=checkbox]{min-height:16px;height:16px;width:16px;accent-color:var(--brand);flex-shrink:0}
#modal .form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px;row-gap:0}
#modal .form-grid input,#modal .form-grid select{min-width:0;width:100%}
#modal .form-section{padding:20px 0 0}#modal .form-section+.form-section{border-top:1px solid var(--line);margin-top:8px}
.form-section-title{display:flex;align-items:center;gap:9px;margin-bottom:3px}
.form-section-title>span{display:grid;place-items:center;min-width:22px;min-height:22px;border-radius:6px;background:#f0f2f8;font-size:9px;font-weight:600;color:#6f7a91}
.section-description{font-size:11px;line-height:1.6;margin-top:6px}
.choice-cards{display:grid;gap:8px;margin-top:17px}
#modal .choice-cards .checkbox{margin:0;padding:13px 14px;gap:12px;border:1px solid var(--line);border-radius:9px;cursor:pointer;background:#fcfcfe}
.choice-cards .checkbox:has(input:checked){border-color:#d6daf5;background:#fafaff}
.choice-cards strong{font-weight:600;font-size:12px;color:#384460}.choice-cards small{display:block;font-weight:400;font-size:10px;line-height:1.6;margin-top:3px;color:var(--muted)}
.inline-note{display:flex;gap:9px;align-items:flex-start;background:#f4f6fb;border:1px solid #e8ecf4;padding:12px 14px;border-radius:8px;font-size:11px!important;line-height:1.7;margin:20px 0 0;color:#69758d}
.inline-note>.icon{width:15px;height:15px;margin-top:2px;flex-shrink:0}
#modal .hint{font-size:10px;line-height:1.7;color:#768198}
#modal .dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;position:sticky;bottom:-28px;background:#fff;border-top:1px solid var(--line);margin:22px -28px -28px;padding:16px 28px;z-index:3}
#modal .dialog-actions button{font-size:12px;padding:10px 15px;min-height:41px}
.dialog-actions .action-hint{font-size:10px;color:var(--muted);margin-right:auto}
#modal .dialog-actions .primary{gap:9px}.dialog-actions .icon{width:15px;height:15px}
#modal .form-error:not(:empty){display:block;color:#a72d38;background:#fff3f3;border:1px solid #f5d9dc;border-radius:8px;padding:12px 14px;line-height:1.6;margin:16px 0 0;font-size:12px;outline:none}
#modal .password-field{position:relative}
#modal .password-field input{padding-right:43px}
#modal .password-toggle{display:grid;place-items:center;position:absolute;top:50%;right:6px;transform:translateY(-50%);width:32px;height:32px;padding:7px;color:#808ca3;border-radius:6px;font-size:12px}
.password-toggle .icon{width:17px;height:17px}
.button-spinner{width:16px;height:16px;display:inline-block;vertical-align:middle;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}
#modal .dialog-discard{background:#fffcf4;border-top:1px solid #f0ddb6;padding:16px 22px;display:flex;align-items:center;gap:16px;z-index:7;box-shadow:0 -8px 24px #14234408}
.dialog-discard strong{font-size:12px;color:#694918}.dialog-discard p{font-size:11px;margin-top:4px;color:#8c7551}
.dialog-discard>div:last-child{display:flex;gap:7px;margin-left:auto;flex-shrink:0}
.dialog-discard button{font-size:11px;padding:8px 11px}
.reset-password-section{border:1px solid var(--line);border-radius:9px;margin-top:45px;padding:16px}
.reset-password-section summary{font-size:12px;font-weight:600;color:var(--ink);cursor:pointer}
.reset-password-section summary span{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px}
.export-summary{display:flex;align-items:center;justify-content:space-between;padding:18px 0 14px;font-size:12px;color:var(--muted)}
#modal .export-options{display:grid;gap:10px;margin:0}
#modal .export-card{display:flex;align-items:center;gap:14px;width:100%;padding:18px;border:1px solid var(--line);border-radius:11px;text-align:left;color:var(--ink);background:#fff}
#modal .export-card:hover:not(:disabled){border-color:#9da5e2;background:#f9f9ff;box-shadow:0 4px 14px #040b9c08}
.export-card strong{display:block;font-size:13px;font-weight:600}.export-card small{display:block;font-size:11px;font-weight:400;line-height:1.6;margin-top:4px;color:var(--muted)}
.export-card>.icon{margin-left:auto;width:17px;height:17px;color:var(--muted)}
.file-badge{width:40px;height:46px;display:grid;place-items:center;border:1px solid #dce0fa;border-radius:7px;background:#f2f3ff;color:var(--brand);font-size:10px;font-weight:700;flex-shrink:0}
.file-badge.csv{background:#edf7f2;border-color:#d9eade;color:#34775b}
#modal .subheading{margin:24px 0 10px}
.shortcut-list{margin-top:14px}.shortcut-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #eef0f6;font-size:12px;color:#4d5970}
.shortcut-list dd{display:flex;align-items:center;gap:4px;margin:0;flex-shrink:0}.shortcut-list dd>span{font-size:10px;color:var(--muted)}
/* Quick find keeps keyboard focus in the search field. */
#modal[data-size=search] .dialog-body{padding:0}
.quick-find-heading{padding:23px 24px 17px}.quick-find-heading p{font-size:11px;margin-top:6px}
#modal .quick-find-input{display:flex;align-items:center;gap:12px;padding:14px 24px;margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fafbfe}
.quick-find-input>.icon{color:var(--brand);width:20px;height:20px}
#modal .quick-find-input input{background:transparent;border:0;outline:none;box-shadow:none;min-height:30px;margin:0;padding:0;border-radius:0;font-size:14px}
#quick-results{padding:8px;max-height:45dvh;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
#quick-results [role=option]{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:8px;cursor:pointer;color:#46516a}
#quick-results [role=option][aria-selected=true]{background:#eff1ff;color:var(--brand)}
.quick-result-icon{width:32px;height:32px;border:1px solid var(--line);background:#fff;border-radius:8px;display:grid;place-items:center;flex-shrink:0}.quick-result-icon>.icon{width:17px;height:17px}
#quick-results strong{display:block;font-size:12px;font-weight:600}.quick-result-key{margin-left:auto;color:#919cb5;font-size:16px;opacity:0}
#quick-results [aria-selected=true] .quick-result-key{opacity:1}
#quick-results small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:3px}
.quick-find-footer{display:flex;justify-content:space-between;gap:12px;padding:13px 20px;border-top:1px solid var(--line);color:#79869c;font-size:10px;background:#fafbfe}.quick-find-footer span{display:flex;gap:5px;align-items:center}
.quick-empty{padding:30px 20px;text-align:center}.quick-empty>.icon{display:block;margin:0 auto 15px;color:#a2acc1}.quick-empty p{font-size:11px;margin-top:7px}
/* Lightweight, distinguishable feedback. */
#toast,#toast:not(:empty){display:flex;flex-direction:column;gap:8px;position:fixed;bottom:24px;right:24px;background:none;color:var(--ink);padding:0;border:0;box-shadow:none;z-index:100;width:370px;max-width:calc(100vw - 32px);pointer-events:none}
.toast-message{display:flex;align-items:center;gap:10px;padding:13px 12px 13px 15px;border:1px solid #dbe0ed;border-radius:12px;background:#fff;box-shadow:0 10px 35px #1727491c,0 1px 3px #17274908;pointer-events:auto;animation:toast-enter 180ms var(--ease)}
.toast-message p{font-size:12px;line-height:1.5;color:#44516b;flex:1}
.toast-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eff1ff;color:var(--brand);flex-shrink:0}.toast-symbol>.icon{width:16px;height:16px}
.toast-message.success .toast-symbol{background:#eaf7ef;color:#2d845a}.toast-message.error .toast-symbol{background:#fff0f1;color:#b33643}
.toast-message>button{display:grid;place-items:center;width:26px;height:26px;padding:5px;color:#8a94a7;flex-shrink:0}.toast-message>button .icon{width:15px;height:15px}
/* Calendar and bulk review use the same visual rhythm. */
#modal .month-dialog h2,#modal .attendance-dialog h2{margin:4px 0 0;font-size:24px}
#modal .year-navigation{margin-top:20px;align-items:center}
#modal .year-navigation select{margin:0;background:#f7f8fc;border-color:#e8ebf3}
#modal .year-navigation button{width:40px;height:40px;border:1px solid var(--line);border-radius:8px;font-size:16px}
.month-grid{gap:9px}.month-tile{padding:14px 15px;border-radius:10px;min-height:78px}
.month-tile:hover:not(:disabled){border-color:#b8bee9;background:#f7f7ff}
.month-tile.selected{background:#eef0ff;border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
#modal .attendance-dialog .attendance-form{margin-top:20px}
#modal .attendance-dialog .employee-selection{padding:8px 12px 12px;border-radius:10px}
#modal .employee-checks{gap:2px 10px;max-height:165px}
#modal .employee-checks .checkbox{margin:0;padding:9px 7px;border-radius:7px;font-weight:400;cursor:pointer}
#modal .employee-checks .checkbox:hover{background:#f4f5fc}
#modal .attendance-dialog .form-grid{gap:0 18px}
#modal .attendance-review{margin-top:20px}
#modal .attendance-review .table-scroll{max-height:30dvh}
#modal .attendance-review .dialog-actions{justify-content:space-between}
#modal .report h2{margin-top:10px}.report>.person{margin:22px 0}.report-totals h3{font-size:17px!important;padding:18px 0!important}
#modal .report-actions #print{margin:0}.report-actions .pdf-action{margin:0}
@keyframes dialog-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes page-enter{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes veil-enter{from{background:#18243d00}to{background:#18243d65}}
@keyframes toast-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){#sidebar .brand{padding-bottom:21px}.overview-page #workspace-content{padding:22px 24px}}
@media(max-width:900px){#sidebar{padding-top:25px}#sidebar .aside-bottom{padding-top:20px}.quick-find-trigger kbd{display:none}}
@media(max-width:600px){
  .overview-page #workspace-content{padding:18px 14px}.overview-page .heading{margin-bottom:17px}.heading h1{font-size:26px}
  #modal{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:15px}
  #modal .dialog-body{padding:22px 18px}
  #modal .dialog-heading{margin:-22px -18px 0;padding:22px 48px 20px 18px;gap:11px;top:-22px}
  #modal .dialog-heading h2,#modal .month-dialog h2,#modal .attendance-dialog h2{font-size:21px}
  .dialog-symbol{width:34px;height:34px;flex-basis:34px;border-radius:10px}.dialog-symbol .icon{width:18px;height:18px}
  .dialog-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.dialog-description{font-size:11px;margin-top:8px}
  #modal .close{right:11px;top:15px;width:30px;height:30px}
  #modal .form-grid{grid-template-columns:minmax(0,1fr);gap:0}
  #modal .attendance-dialog .form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 10px}
  #modal input,#modal select,#modal textarea{font-size:16px;min-height:44px}#modal label{font-size:12px}
  #modal .dialog-actions{margin:20px -18px -22px;padding:13px 18px max(14px,env(safe-area-inset-bottom));bottom:-22px;gap:8px;flex-wrap:wrap}
  #modal .dialog-actions button{padding:10px 12px;font-size:11px;min-height:42px}
  #modal .dialog-actions .action-hint{flex-basis:100%}
  .dialog-actions .primary{flex:1}.dialog-actions .primary .icon{display:none}
  #modal .dialog-discard{padding:14px 16px;flex-wrap:wrap;gap:10px}.dialog-discard>div:last-child{margin-left:0;width:100%}.dialog-discard button{flex:1}
  #modal[data-size=search]{margin-top:24px}#quick-results{max-height:51dvh}.quick-find-heading{padding:22px 18px 16px}#modal .quick-find-input{padding:13px 18px}.quick-find-footer{padding:12px 14px}.quick-find-footer span:first-child{font-size:9px}
  .shortcut-list>div{font-size:11px;gap:9px}.shortcut-list dd>span{font-size:9px}
  #toast,#toast:not(:empty){bottom:max(16px,env(safe-area-inset-bottom));right:16px}.toast-message p{font-size:11px}
  #modal .export-card{gap:11px;padding:15px}.export-card strong{font-size:12px}.export-card small{font-size:10px}.file-badge{width:34px;height:42px}
  .month-tile{padding:12px;min-height:75px}.month-tile strong{font-size:13px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
  #modal[open]{display:block!important;max-height:none;overflow:visible;border:0;padding:0;animation:none}
  #modal .dialog-body{overflow:visible;max-height:none;padding:0}
  #modal .close,#modal .dialog-actions,#modal .dialog-discard,#toast{display:none!important}
}

#modal .batch-preview td:first-child,#modal .batch-preview th:first-child{min-width:125px;max-width:none}
#modal .batch-preview td,#modal .batch-preview th{padding:11px 12px;font-size:11px}
#modal .mobile-account-actions{display:flex;gap:10px;margin-top:22px}

#modal [hidden]{display:none!important}
.auth-lock .icon{width:22px;height:22px}
.auth-box .form-error:not(:empty){background:#fff3f3;border:1px solid #f4dce0;border-radius:8px;padding:11px 13px;color:#a12f3b;font-size:12px}

#modal .dialog-body{scroll-padding-block:130px 85px}
@media print{html:has(#modal[open]){overflow:visible;scrollbar-gutter:auto}}

.directory-heading{padding:20px 22px 0}
.payroll-exclusions{display:flex;align-items:center;gap:9px;padding:10px 20px;border-bottom:1px solid var(--line);background:#f8f9fd;color:var(--muted)}
.payroll-exclusions .icon{width:16px;height:16px;flex-shrink:0}.payroll-exclusions p{font-size:11px;margin:0;line-height:1.6}.payroll-exclusions strong{color:#394762}
@media(max-width:600px){.payroll-exclusions{padding:10px 14px}.payroll-exclusions p{font-size:10px}}
.directory-heading>p{font-size:12px;color:var(--muted);margin:12px 0 4px}
.directory-heading .directory-edit-hint{font-size:11px;margin-top:4px;color:#778198}
.directory-edit-hint button{font-size:inherit;padding:2px 4px}
.directory-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #e2e6ee;border-radius:11px;background:#f5f7fb;max-width:100%}
.directory-switch button{display:flex;align-items:center;gap:8px;border:0;border-radius:7px;padding:10px 14px;background:transparent;font-weight:600;color:#626d83}
.directory-switch button[aria-pressed=true]{background:#fff;color:#040b9c;box-shadow:0 1px 5px #18294c14}
.directory-switch button span{font-size:10px;padding:1px 6px;border-radius:5px;background:#e9edf5;color:#53617a}
.directory-switch button[aria-pressed=true] span{background:#eeefff;color:#040b9c}
.directory-switch .icon{width:15px;height:15px}
.directory-actions{display:flex;align-items:center;gap:10px}
.directory-actions .row-action{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.directory-actions .archive-action{color:#677287}
.directory-actions .row-action:disabled{opacity:.4;cursor:not-allowed}
.employee-directory .table-scroll th,.employee-directory .table-scroll td{padding-left:12px;padding-right:12px}
.employee-directory .table-scroll td:first-child,.employee-directory .table-scroll th:first-child{min-width:190px;max-width:240px}
.employee-directory .directory-actions{gap:2px}
.employee-directory .directory-actions button{padding:8px}
.employment-summary{display:grid;gap:14px;margin:24px 0;padding:18px;border:1px solid #e2e7ef;background:#f8f9fc;border-radius:12px}
.employment-summary p{display:flex;align-items:flex-start;gap:11px;margin:0;font-size:12px;line-height:1.65;color:#53617a}
.employment-summary .icon{flex:0 0 17px;margin-top:2px;color:#040b9c}
.employee-history{margin-top:20px;display:grid;gap:8px}
.history-period{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:15px;border:1px solid #e2e7ef;border-radius:10px;background:#fff}
.history-period:hover{background:#f5f6ff;border-color:#cbd0f7}
.history-period>span{display:flex;align-items:center;gap:12px}
.history-period strong{font-size:13px}
@media(max-width:600px){.directory-heading{padding:16px 14px 0}.directory-switch{display:flex}.directory-switch button{justify-content:center;flex:1;padding:10px 8px;font-size:11px;gap:6px}.directory-switch .icon{display:none}.directory-heading>p{font-size:11px}.history-period{padding:13px 10px}.history-period>span{gap:7px}.history-period strong{font-size:12px}}
@media(max-width:600px){
  .employee-directory .table-scroll table,.employee-directory tbody{display:block;white-space:normal}
  .employee-directory thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .employee-directory tbody tr{display:grid;grid-template-columns:1fr auto;gap:10px 12px;padding:16px;border-bottom:1px solid var(--line)}
  .employee-directory .table-scroll td{border:0;padding:0;background:transparent;position:static}
  .employee-directory .table-scroll td:first-child{grid-column:1/-1;min-width:0;max-width:none}
  .employee-directory .table-scroll td:nth-child(4){display:none}
  .employee-directory .table-scroll td:last-child{grid-column:1/-1}
  .employee-directory .directory-actions{justify-content:flex-end;gap:8px;border-top:1px solid #edf0f5;padding-top:8px}
  .employee-directory .directory-actions button{min-height:40px;padding:8px 10px;font-size:12px}
  .employee-directory .table-scroll .person strong{font-size:13px}
  .employee-directory .table-scroll .person small{font-size:10px}
  .employee-directory .table-scroll .person .avatar{width:34px;height:34px}
}
