/* Shared design layer. Loaded last; component-scoped rules avoid legacy collisions. */
:root{--ap5-ink:#203047;--ap5-muted:#5e6d81;--ap5-line:#dce3eb;--ap5-blue:#2458ce;--ap5-soft:#eaf0fc;--ap-focus:#2458ce;--ap-outline:#b9caf0}
[hidden]{display:none!important}
body{color:var(--ap5-ink)}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #87a9f0;outline-offset:3px}
body .sidebar{background:#f5f7fa!important;border-right:1px solid var(--ap5-line);color:#445369;box-shadow:none}
body .sidebar-brand{background:transparent;border-bottom:1px solid var(--ap5-line)}
body .sidebar :is(.brand-link,.ap-product-lockup-sidebar){color:#203047}
body .sidebar .ap-product-copy small{color:#5e6d81;opacity:1}
body .sidebar .sidebar-collapse,body .sidebar .nav-group-toggle{background:transparent;color:#5e6d81;border-color:#dce3eb}
body .sidebar :is(.sidebar-collapse,.nav-group-toggle):hover{background:#e8edf4;color:#203047}
body .sidebar .nav-scroll{padding:14px 10px;scrollbar-color:#b6c1d0 transparent}
body .sidebar .nav-section-title{color:#64748b;font-size:10px;letter-spacing:.09em;padding:18px 12px 7px}
body .sidebar .nav-link{min-height:42px;padding:10px 12px;margin:2px 0;color:#445369;font-size:13px;border:1px solid transparent;border-radius:8px;transform:none}
body .sidebar .nav-link:hover{background:#e9eef5;color:#203047;transform:none}
body .sidebar .nav-link.active{background:#e6eefc;color:#204caa;border-color:#d1def7;box-shadow:none}
body .sidebar .nav-link.active::after{background:#3264ed;width:3px}
body .sidebar .nav-icon{color:#6a788b}
body .sidebar .nav-link:is(:hover,.active) .nav-icon{color:#2458ce}
body .sidebar .nav-link.nav-sub{font-size:12px;min-height:36px;padding-block:8px}
body .sidebar .nav-sub-dot{background:#8a98ab}
body .sidebar :is(.sidebar-footer,.sidebar-bottom){border-color:var(--ap5-line);background:#f5f7fa}
body .sidebar .sidebar-user,body .sidebar .sidebar-user-card{background:#edf1f6;color:#203047;border:1px solid #dce3eb;box-shadow:none}
body .sidebar .sidebar-user-copy strong{color:#203047;font-size:12px}
body .sidebar .sidebar-user-copy small,body .sidebar .sidebar-user-trigger{color:#617086}
body .sidebar .user-avatar{background:#e1e9f6;color:#2458ce}
body .topbar{background:#fff;border-bottom:1px solid var(--ap5-line);box-shadow:none}
body .content :is(.card,.saved-report-card,.profile-identity-card){box-shadow:0 1px 2px #14233b05;border-radius:12px}
body .content .page-header h1{letter-spacing:-.025em}
body .content :is(.filters-row,.filter-bar){gap:10px}
body .content :is(input[type=text],input[type=search],input[type=email],input[type=password],input[type=number],input[type=date],input[type=time],select){min-height:42px}
body .content :is(.data-table th,.table th){font-size:12px;letter-spacing:.01em;background:#f7f9fc;color:#536278}
body .content :is(.data-table tbody tr:hover,.table tbody tr:hover){background:#f8faff}
body .toggle-row{justify-content:flex-start;gap:12px;text-align:left}
body .toggle-row>span{flex:1;min-width:0}
body .toggle-row>input{flex:0 0 18px;margin:0}
body .toggle-row>input:last-child{margin-left:auto}
body .toggle-row span strong{font-size:13px}
body .toggle-row span small{font-size:12px;line-height:1.5;color:#617086}
body .employee-premium-hero,body .executive-summary-hero{background:#fff!important;color:#203047;border:1px solid var(--ap5-line);box-shadow:none;border-radius:14px}
body .employee-premium-hero::before,body .employee-premium-hero::after{display:none}
body .employee-premium-hero :is(h1,h2,h3),body .executive-summary-hero :is(h1,h2,h3){color:#203047}
body .employee-premium-hero p,body .executive-summary-hero p{color:#617086}
body .employee-premium-hero .employee-kicker{color:#2458ce}
body .employee-premium-hero .employee-profile-photo{border-color:#dce3eb;background:#eaf0fc;color:#2458ce}
body .employee-hero-status{color:#203047;background:#f4f7fc;border-color:#dce3eb}
body :is(.employee-face-card,.face-capture-sheet,.employee-scanner-sheet,.env-capture-sheet){border-radius:14px;box-shadow:0 18px 60px #15263c25}
body :is(.employee-face-actions,.face-capture-actions,.env-capture-actions){gap:10px}
body .btn{transition:background-color .15s,border-color .15s;box-shadow:none}
body .btn:hover{transform:none}
body .s5-session-form{background:#fff;border:1px solid var(--ap5-line);border-radius:14px;max-width:1100px;margin:0 auto;overflow:visible;scroll-margin-top:84px}
.s5-session-form :is(input,select,textarea,button){font-family:inherit}
body .s5-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:16px 22px;border-bottom:1px solid #e4e9f0;background:#fafbfd;border-radius:14px 14px 0 0}
body .s5-steps button{display:flex;align-items:center;justify-content:center;gap:9px;border:0;background:transparent;color:#64748b;min-height:44px;padding:8px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}
body .s5-steps button.active{background:#eaf0fc;color:#204caa}
.s5-step-number{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e8edf4;color:#64748b;font-size:12px;flex:none}
.s5-steps .active .s5-step-number{background:#2458ce;color:#fff}
.s5-form-body{padding:30px;min-height:360px}
.s5-session-form [data-panel]{display:block}
.s5-heading{margin:0 0 24px}.s5-heading h2{font-size:20px;margin:0;letter-spacing:-.02em}
.s5-session-form .s5-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:14px}
.s5-session-form label:not(.s5-switch):not(.s5-option):not(.s5-method):not(.s5-selection){display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#36465c;min-width:0}
.s5-session-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cfd8e4;border-radius:8px;background:#fff;color:#203047;font-size:14px;font-weight:400;box-sizing:border-box}
.s5-session-form textarea{resize:vertical;min-height:88px}.s5-session-form :is(input[type=checkbox],input[type=radio]){appearance:auto;width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:2px 0 0;accent-color:#2458ce}
.s5-optional,.s5-muted{font-size:12px;color:#64748b;font-weight:400;line-height:1.5}
.s5-wide{grid-column:1/-1}.s5-section{margin-top:28px}.s5-section h3,.s5-security-block h3{font-size:14px;margin:0 0 12px}
.s5-fieldset{border:0;padding:0;margin-inline:0;min-width:0}.s5-fieldset legend{font-size:14px;font-weight:600;margin-bottom:12px;padding:0}
.s5-options{display:flex;gap:10px;flex-wrap:wrap}
.s5-session-form .s5-option{display:flex;align-items:center;gap:10px;padding:13px 16px;border:1px solid #d5dfea;border-radius:8px;cursor:pointer;color:#3c4e65;font-size:13px;min-height:46px}
.s5-session-form .s5-option:has(input:checked){background:#edf3ff;border-color:#9db7eb;color:#204caa}
.s5-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.s5-session-form .s5-method{display:flex;align-items:flex-start;gap:12px;padding:17px;border:1px solid #d5dfea;border-radius:10px;cursor:pointer;min-width:0;background:#fff}
.s5-method:has(input:checked){border-color:#8eabe4;background:#f4f7fe}
.s5-method strong,.s5-switch strong{display:block;font-size:14px;line-height:1.45;font-weight:600;color:#203047}
.s5-method small,.s5-switch small{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;color:#617086}
.s5-method-icon{display:grid;place-items:center;color:#5d769f;flex:0 0 22px}.s5-method-icon svg{width:21px;height:21px}
.s5-session-form .s5-switch{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important;padding:14px 0;margin:0;text-align:left;cursor:pointer;border:0;min-width:0}
.s5-switch>span{flex:1;min-width:0}
.s5-security-block{border-bottom:1px solid #e4e9f0;padding:12px 0}.s5-security-block:last-of-type{border-bottom:0}
.s5-dependent{padding:0 0 18px 30px}.s5-dependent>.s5-fields{margin-bottom:16px}
.s5-dependent>label{margin-bottom:12px}.s5-dependent>a{font-size:13px;display:inline-flex;align-items:center;gap:6px}
.s5-info{background:#f3f6fb;border:1px solid #e1e8f1;padding:14px 16px;border-radius:8px;color:#52647b;font-size:13px;line-height:1.6;margin-bottom:18px}
.s5-advanced{border:1px solid #e1e7ef;border-radius:8px;padding:14px 16px;margin:12px 0;background:#fafbfd}
.s5-advanced summary{font-size:13px;font-weight:600;cursor:pointer;color:#475b75}
.s5-advanced[open] summary{margin-bottom:16px}
.s5-picker{margin-top:20px}.s5-search-label{max-width:440px;margin-bottom:12px}
.s5-selection-list{max-height:300px;overflow:auto;border:1px solid #dce3eb;border-radius:8px;padding:6px}
.s5-session-form .s5-selection{display:flex;align-items:flex-start;gap:12px;font-size:13px;padding:11px 12px;border-radius:6px;cursor:pointer}.s5-selection:hover{background:#f1f5fb}.s5-selection small{display:block;color:#64748b;font-size:12px;margin-top:3px}
.s5-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border:1px solid #e1e7ef;border-radius:10px;overflow:hidden}
.s5-summary>div{padding:16px 18px;border-bottom:1px solid #e8edf4}.s5-summary dt{font-size:12px;color:#64748b}.s5-summary dd{margin:6px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.s5-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid #e4e9f0;background:#fafbfd;border-radius:0 0 14px 14px}
.s5-actions>#ap3StepCounter{margin-right:auto}.s5-save-actions{display:flex;gap:8px;flex-wrap:wrap}
.s5-error{margin:0 30px 20px;background:#fff3f2;color:#a12e26;border:1px solid #f3c4bf;padding:12px 16px;font-size:13px;border-radius:8px}
@media(max-width:700px){body .s5-steps{padding:10px 6px;gap:2px}body .s5-steps button{flex-direction:column;gap:6px;padding:6px 0;font-size:10px}.s5-step-number{width:22px;height:22px}.s5-form-body{padding:22px 16px;min-height:0}.s5-session-form .s5-fields,.s5-methods,.s5-summary{grid-template-columns:1fr}.s5-wide{grid-column:auto}.s5-scope-options{display:grid;grid-template-columns:1fr 1fr}.s5-session-form .s5-option{padding:12px 10px}.s5-session-form .s5-method{padding:15px}.s5-dependent{padding-left:0}.s5-actions{padding:14px 16px;gap:8px}.s5-actions .btn{padding-inline:12px;min-height:42px}.s5-save-actions{width:100%;justify-content:flex-end}.s5-error{margin-inline:16px}body .employee-premium-hero{border-radius:12px}}
@media print{body .sidebar,body .topbar{display:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Keep field metadata on the label line so paired controls align. */
.s5-session-form .s5-fields>label{position:relative}
.s5-session-form .s5-fields>label>.s5-optional{position:absolute;right:0;top:0;font-size:11px}
.s5-steps button>span:last-child{min-width:0;overflow-wrap:anywhere}

.s5-mobile-workspaces{display:none}
@media(max-width:520px){.s5-mobile-workspaces{display:flex;gap:4px;border:1px solid #dce3eb;border-radius:8px;padding:4px;margin:0 4px 12px;background:#edf1f7}.s5-mobile-workspaces button{flex:1;min-height:40px;border:0;border-radius:6px;background:transparent;color:#52647b;font-size:12px;font-weight:600}.s5-mobile-workspaces button.active{background:#fff;color:#2458ce}}
/* Light-surface contrast for the employee overview and status indicators. */
body .employee-hero-metrics>div{background:#f7f9fc;border:1px solid #e1e7ef;backdrop-filter:none}
body .employee-hero-metrics strong{color:#203047!important}
body .employee-hero-metrics small{color:#5e6d81;font-size:10px}
body .employee-live-pill{color:#426087;background:#edf3fc;border-color:#d8e3f3}
body .employee-hero-status{background:transparent;border-color:#dce3eb;padding-top:18px}
body .employee-hero-status-copy .employee-section-label{color:#2458ce}
body.employee-portal .employee-status-pill.active{background:#e6f5ee;color:#176646;border-color:#c3e2d2}
body.employee-portal .employee-status-pill.pending{background:#fff3dd;color:#855b13;border-color:#eed9ad}

/* Report categories use readable widths instead of seven cramped columns. */
body .report-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body .report-category-card{min-width:0;padding:16px;gap:12px;border-radius:10px;box-shadow:none}
body .report-category-card>span:last-child{min-width:0}
body .report-category-card strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}
body .report-category-card small{font-size:12px;line-height:1.5;color:#617086}
body .reports-hero{border-radius:12px;background:#fff;border:1px solid #dce3eb;padding:24px;box-shadow:none}
body .reports-hero h1{font-size:28px;margin:0}
@media(max-width:1100px){body .report-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){body .report-category-card{padding:12px;gap:8px;align-items:center}body .report-category-icon{width:26px;height:26px;flex:0 0 26px}body .report-category-icon svg{width:17px;height:17px}body .report-category-card strong{font-size:12px}body .report-category-card small{display:none}body .reports-hero{padding:18px}body .reports-hero h1{font-size:24px}}

/* Payment provider forms: aligned input-first toggles and fully styled fields. */
body .payment-gateway-grid{max-width:1000px;margin:0 auto;gap:16px}
body .payment-gateway-card .card-body{padding:22px;gap:20px}
body .payment-gateway-card .form-grid>label:not(.gateway-toggle){display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#36465c;min-width:0}
body .payment-gateway-card :is(input:not([type=checkbox]):not([type=hidden]),select){width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cfd8e4;border-radius:8px;background:#fff;color:#203047;font:inherit;font-size:14px;box-sizing:border-box}
body .payment-gateway-card .gateway-toggle{display:flex!important;flex-direction:row!important;justify-content:flex-start;align-items:center;gap:12px;min-height:44px;border:0;padding:0;margin:0;text-align:left;font-size:13px}
body .payment-gateway-card .gateway-toggle input{appearance:auto;width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;accent-color:#2458ce}
body .payment-gateway-card .gateway-toggle strong{font-size:13px;font-weight:600;color:#203047}
body .payment-webhook{display:flex;flex-direction:column;gap:8px;background:#f6f8fc;border:1px solid #e1e7ef;padding:14px;border-radius:8px;min-width:0;font-size:12px;color:#52647b}
body .payment-webhook code{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;color:#304866;user-select:all}
body .payment-gateway-card .card-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;background:#fafbfd;border-top:1px solid #e1e7ef}
@media(max-width:600px){body .payment-gateway-card .card-body{padding:16px;grid-template-columns:1fr}body .payment-gateway-card .span-2{grid-column:1}body .payment-gateway-card .card-footer{padding:14px 16px}body .payment-gateway-card .card-footer .btn{flex:1}}
