:root{--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:20px;--ui-space-6:24px;--ui-control-height:44px;--ui-focus:color-mix(in srgb, var(--brand) 28%, transparent)}:is(.primary-button,.secondary-button,.danger-button){justify-content:center;align-items:center;gap:var(--ui-space-2);min-height:var(--ui-control-height);height:auto;padding:9px var(--ui-space-4);text-align:center;line-height:1.5;text-decoration:none;transition:background-color .16s,border-color .16s,box-shadow .16s,filter .16s,transform .16s,opacity .16s;display:inline-flex}.primary-button:hover:not(:disabled):not([aria-disabled=true]){filter:brightness(.94);box-shadow:0 10px 24px color-mix(in srgb, var(--brand) 28%, transparent)}.secondary-button:hover:not(:disabled){background:color-mix(in srgb, var(--brand) 8%, var(--surface));border-color:color-mix(in srgb, var(--brand) 35%, var(--line));color:var(--brand)}:is(.primary-button,.secondary-button,.danger-button):active:not(:disabled){box-shadow:none;transform:translateY(1px)}:is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--brand);outline-offset:2px}:is(button,input,select,textarea):disabled,:is(.primary-button,.secondary-button,.danger-button)[aria-disabled=true]{opacity:.52;cursor:not-allowed;box-shadow:none}:is(.icon-button,.table-tool-button){min-width:40px;min-height:40px}.form-grid{gap:var(--ui-space-5) var(--ui-space-4);grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.form-grid>*,.form-field{min-width:0}.form-field>span{margin-bottom:var(--ui-space-2);font-size:12px;line-height:1.6}.form-field :is(input:not([type=checkbox]):not([type=radio]),select){min-height:var(--ui-control-height);background:var(--surface);transition:border-color .16s,box-shadow .16s,background-color .16s}.form-field textarea{background:var(--surface);min-height:104px;line-height:1.8}.form-field :is(input,select,textarea):focus-visible{border-color:var(--brand);box-shadow:0 0 0 3px var(--ui-focus);outline:none}.form-field :is(input,select,textarea):disabled{background:var(--surface2)}.form-field :is(input,select,textarea)[aria-invalid=true]{border-color:#ce4249;box-shadow:0 0 0 3px #ce424924}.form-field small{margin-top:var(--ui-space-2);line-height:1.7;display:block}.form-actions,.detail-edit-actions,.create-modal form>footer{align-items:center;gap:var(--ui-space-2);flex-wrap:wrap}.heading-row p,.directory-head p,.detail-card-head p,.panel-title p{font-size:12px;line-height:1.8}.table-subtitle,.form-error{font-size:11px;line-height:1.7}.data-table-tools{align-items:center;gap:var(--ui-space-2);padding:var(--ui-space-3);flex-wrap:wrap}.table-sort-controls{gap:var(--ui-space-2);flex-wrap:wrap}.table-sort-controls select,.table-sort-direction{min-height:40px}.admin-table{font-size:12px}.admin-table th{padding:12px var(--ui-space-4);white-space:nowrap;line-height:1.6}.admin-table td{padding:13px var(--ui-space-4);vertical-align:middle;line-height:1.8}.admin-table tbody tr:focus-within{background:color-mix(in srgb, var(--brand) 5%, var(--surface))}.admin-table tbody tr:last-child>td{border-bottom:0}.table-empty{padding:var(--ui-space-6);line-height:1.8}.mobile-record-card dt,.mobile-record-number,.mobile-record-section>h3{font-size:11px}.mobile-record-card dd{font-size:12px}@media (max-width:700px){.form-grid{grid-template-columns:minmax(0,1fr)}.data-table-tools{justify-content:flex-start}.table-sort-controls{width:100%;margin-inline-end:0}.table-sort-controls select{flex:1;min-width:0}}@media (prefers-reduced-motion:reduce){:where(.primary-button,.secondary-button,.danger-button,.form-field input,.form-field select,.form-field textarea){transition:none}}.table-filter-bar{flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 16px;display:flex}.table-reset-filters{border:1px solid var(--line);background:var(--surface,#fff);min-height:38px;color:var(--brand);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;padding:7px 12px;font-size:.85rem;font-weight:700;display:inline-flex}.table-reset-filters:hover:not(:disabled){background:var(--surface2)}.table-reset-filters:disabled{opacity:.5;cursor:not-allowed}.table-filter-bar .table-header-filter{position:relative}.table-filter-bar .table-header-filter summary{border:1px solid var(--line);background:var(--surface,#fff);border-radius:10px;min-height:38px;padding:8px 12px}.table-select-filter{color:var(--muted,#617786);align-items:center;gap:8px;font-size:.85rem;display:inline-flex}.table-select-filter select{border:1px solid var(--line);background:var(--surface,#fff);min-height:38px;color:inherit;border-radius:10px;padding:6px 10px}:root[data-theme=dark]{--brand:#5bd2cc;--ui-solid-brand:#086967;--ui-danger-ink:#ffb4bf;--ui-danger-bg:#47232b;--ui-danger-row:#312329;--ui-danger-row-hover:#40282f;--ui-success-ink:#91e2ba;--ui-success-bg:#173b30;--ui-warning-ink:#f7d782;--ui-warning-bg:#403516;--ui-info-ink:#b6d1ff;--ui-info-bg:#1b3153}[data-theme=dark] .primary-button,[data-theme=dark] .detail-tabs a.active{color:#fff;background:linear-gradient(135deg,#118481,#086967)}[data-theme=dark] :is(.pagination button.active,.detail-tabs button.active,.follow-up-tabs button.active,.follow-up-window button.active,.column-picker-apply,.table-header-filter summary i,.record-detail:has(.policy-overview-layout) .detail-avatar){background:var(--ui-solid-brand);color:#fff}[data-theme=dark] .primary-button:hover:not(:disabled):not([aria-disabled=true]){filter:brightness(.95)}[data-theme=dark] .danger-button{background:var(--ui-danger-bg);color:var(--ui-danger-ink);border-color:#864a55}[data-theme=dark] .danger-button:hover:not(:disabled){background:#57303a;border-color:#a15c67}[data-theme=dark] :is(.admin-table tbody tr.payment-row--overdue,.policy-schedule-table tbody tr.payment-row--overdue,.policy-account-ledger .policy-ledger-table tbody tr.payment-row--overdue,.mobile-record-card.payment-row--overdue){background:var(--ui-danger-row);color:var(--text)}[data-theme=dark] :is(.admin-table tbody tr.payment-row--overdue:hover,.admin-table tbody tr.payment-row--overdue:focus-within,.policy-schedule-table tbody tr.payment-row--overdue:hover,.policy-account-ledger .policy-ledger-table tbody tr.payment-row--overdue:hover,.mobile-record-card.payment-row--overdue:focus-within){background:var(--ui-danger-row-hover)}[data-theme=dark] .mobile-record-card.payment-row--overdue{border-color:#70434d}[data-theme=dark] :is(.status-cancelled,.debtor-card-head>b.is-debtor,.policy-ledger-balance.debit>b,.policy-ledger-final:not(.credit):not(.settled) b,.form-error,.login-error){background:var(--ui-danger-bg);color:var(--ui-danger-ink)}[data-theme=dark] :is(.status-active,.agency-card__top>i,.form-success,.debtor-card-head>b.is-settled,.policy-ledger-balance.credit>b,.policy-ledger-balance.settled>b,.policy-ledger-final.credit b,.policy-ledger-final.settled b){background:var(--ui-success-bg);color:var(--ui-success-ink)}[data-theme=dark] .status-expired,[data-theme=dark] .settlement-maturity--today{background:var(--ui-warning-bg);color:var(--ui-warning-ink)}[data-theme=dark] .status-upcoming,[data-theme=dark] .settlement-maturity--future{background:var(--ui-info-bg);color:var(--ui-info-ink)}[data-theme=dark] .settlement-maturity--overdue{background:var(--ui-danger-bg);color:var(--ui-danger-ink)}[data-theme=dark] :is(.policy-ledger-columns .debit strong,.policy-ledger-balance.debit>strong,.payment-approval-actions button:last-child,.detail-loading.error,.policy-balance-stats article:nth-child(3) strong,.debtor-card-ledger .ledger-debit dd,.debtor-card-ledger .ledger-balance:not(.settled) dd,.general-ledger-card .admin-table td:nth-child(3),.policy-ledger-table tbody td:nth-child(4),.policy-ledger-totals td:nth-child(3),.policy-account-ledger .policy-ledger-totals .ledger-debit-total,.policy-ledger-final.debit td){color:var(--ui-danger-ink)}[data-theme=dark] :is(.policy-ledger-columns .credit strong,.policy-ledger-balance.credit>strong,.policy-balance-stats article:nth-child(4) strong,.debtor-card-ledger .ledger-credit dd,.debtor-card-ledger .ledger-balance.settled dd,.general-ledger-card .admin-table td:nth-child(4),.policy-ledger-table tbody td:nth-child(5),.policy-ledger-totals td:nth-child(4),.policy-account-ledger .policy-ledger-totals .ledger-credit-total,.policy-ledger-final.credit td,.policy-ledger-final.settled td){color:var(--ui-success-ink)}[data-theme=dark] .settlement-confirmation-select{background:var(--surface);border-color:var(--line);color:var(--text)}[data-theme=dark] .kpi-icon{background:color-mix(in srgb, var(--brand) 12%, var(--surface2));color:var(--brand)}[data-theme=dark] .kpi-icon.blue{background:var(--ui-info-bg);color:var(--ui-info-ink)}[data-theme=dark] .kpi-icon.red,[data-theme=dark] .setup-error__icon{background:var(--ui-danger-bg);color:var(--ui-danger-ink)}[data-theme=dark] .hero-kpi .kpi-icon{color:#fff;background:#ffffff24}[data-theme=dark] :is(.empty-action>div,.coming-soon>div,.agency-logo,.table-user>span,.detail-avatar){background:color-mix(in srgb, var(--brand) 12%, var(--surface2));color:var(--brand)}[data-theme=dark] .policy-party-card.insured .policy-party-icon{background:var(--ui-info-bg);color:var(--ui-info-ink)}[data-theme=dark] .registration-step.complete .step-number{background:var(--ui-success-bg);color:var(--ui-success-ink);border-color:#3b735d}[data-theme=dark] .admin-table .column-groups th[data-group=general],[data-theme=dark] .adaptive-table-card .admin-table td.mobile-group-start:not([data-group]):after{color:var(--ui-info-ink)}[data-theme=dark] :is(.admin-table .column-groups th[data-group=payment],.mobile-record-section[data-group=payment]>h3){color:var(--ui-success-ink)}[data-theme=dark] :is(.admin-table .column-groups th[data-group=marketer],.mobile-record-section[data-group=marketer]>h3){color:#d6b9ff}[data-theme=dark] :is(.admin-table .column-groups th[data-group=operations],.mobile-record-section[data-group=operations]>h3){color:var(--ui-warning-ink)}
.forgot-password-link,.recovery-back{color:var(--brand);font-size:12px;font-weight:700;text-decoration:none;display:inline-block}.forgot-password-link{margin:-4px 0 8px}.forgot-password-link:hover,.recovery-back:hover{text-decoration:underline}.recovery-page{background:linear-gradient(145deg,#edf9f8,#f1f5f9);place-items:center;min-height:100vh;padding:24px;display:grid}.recovery-card{width:min(440px,100%);max-width:none}.recovery-card .recovery-back{margin-bottom:20px}.recovery-success,.recovery-notice{border-radius:9px;padding:12px 14px;font-size:12px;line-height:1.9}.recovery-success{color:#116b48;background:#e8f8ef}.recovery-notice{color:#52687b;background:#f0f5f8}.recovery-success a,.recovery-notice a{color:inherit;text-decoration:underline}.recovery-dashboard{max-width:860px;margin:0 auto}.recovery-dashboard header h1{margin:4px 0 8px;font-size:24px}.recovery-dashboard header>p:last-child{color:var(--muted);font-size:12px;line-height:1.9}.recovery-panels{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px;margin-top:22px;display:grid}.recovery-panels article{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:22px}.recovery-panels h2{margin:0 0 8px;font-size:16px}.recovery-panels article>p{color:var(--muted);margin:0 0 20px;font-size:12px;line-height:1.9}.recovery-panels article>p b,.recovery-panels .legacy-login-form label span,.recovery-panels .legacy-login-form input{color:var(--text)}.recovery-panels .legacy-login-form input{background:var(--surface2);border-color:var(--line)}.issued-password{border:1px solid var(--line);background:var(--surface2);border-radius:9px;gap:8px;padding:12px;font-size:12px;display:grid}.issued-password>div{gap:8px;display:flex}.issued-password input{flex:1;min-width:0}.issued-password button{width:auto;min-width:86px;margin:0;padding:8px 12px}.password-change-form input:focus-visible,.issued-password button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
