/* Native controls, shell surfaces and third-party overlays share one palette. */
.theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:36px;padding:6px 10px;border:1px solid #cbd8e6;border-radius:20px;background:#f4f7fb;color:#173b59;font:600 12px/1.2 inherit;cursor:pointer}
.theme-switch-track{position:relative;width:30px;height:17px;border-radius:12px;background:#c5d3e2;display:inline-block}
.theme-switch-track:after{content:'';position:absolute;width:13px;height:13px;left:2px;top:2px;border-radius:50%;background:white;transition:transform .15s}
.theme-switch[aria-checked=true] .theme-switch-track{background:#3e94c9}.theme-switch[aria-checked=true] .theme-switch-track:after{transform:translateX(13px)}
.theme-switch:focus-visible{outline:3px solid #438dc6;outline-offset:3px}.auth-theme-switch{position:fixed;right:18px;top:16px;z-index:10}
@media(max-width:600px){.theme-switch{padding:7px 9px;gap:6px}.theme-switch [data-theme-label]{display:none}.theme-switch-track{display:none}}
@media(prefers-reduced-motion:reduce){.theme-switch-track:after{transition:none}}
@media screen{
html[data-bs-theme=dark]{color-scheme:dark;--bs-body-bg:#101a28;--bs-body-color:#e1eaf5;--bs-secondary-color:#b6c5d7;--bs-tertiary-bg:#1c2b3e;--bs-border-color:#35475f;--bs-heading-color:#e6edf7;--bs-link-color:#93c8ff;--bs-link-hover-color:#bfddff;--bs-emphasis-color:#f0f5fb;--content-bg:#101a28;--panel-bg:#192638;--text:#e1eaf5;--muted:#b6c5d7;--line:#35475f;--sv-light-bg:#101a28;--sv-gray:#b6c5d7;--sv-sidebar-bg:#111f33;--sv-sidebar-text:#c1cfe2;--sidebar:#111f33;--shell-navy:#111f33;--shell-navy-2:#172b44}
html[data-bs-theme=dark] body{background:#101a28;color:#e1eaf5}
html[data-bs-theme=dark] :is(.erp-topbar,.erp-footer){background:#172538;color:#d8e5f4;border-color:#35475f}
html[data-bs-theme=dark] :is(.erp-sidebar,.module-launcher){background:#111f33;color:#d8e5f4}
html[data-bs-theme=dark] .theme-switch{background:#253950;color:#e2edf8;border-color:#496179}
html[data-bs-theme=dark] :is(input,textarea,select,.form-control,.form-select,.input-group-text){color:#e1eaf5;background-color:#172538;border-color:#425570;caret-color:#bde0ff}
html[data-bs-theme=dark] :is(input,textarea)::placeholder{color:#aebdd0;opacity:1}
html[data-bs-theme=dark] :is(input,textarea,select):disabled,html[data-bs-theme=dark] :is(input,textarea)[readonly]{background-color:#243044;color:#b8c7d8;opacity:1}
html[data-bs-theme=dark] :is(input,textarea,select):focus{color:#f2f6fc;background-color:#1b2d43;border-color:#78b7f0;box-shadow:0 0 0 3px #78b7f02b}
html[data-bs-theme=dark] :is(option,optgroup){background:#192638;color:#e1eaf5}
html[data-bs-theme=dark] :is(.dropdown-menu,.responsive-select-panel,.modal-content,dialog,.swal2-popup,.flatpickr-calendar){background:#192638;color:#e1eaf5;border-color:#425570}
html[data-bs-theme=dark] :is(.dropdown-item,.swal2-title,.swal2-html-container,.flatpickr-current-month,.flatpickr-weekday,.flatpickr-day){color:#dce7f4}
html[data-bs-theme=dark] :is(.dropdown-item:hover,.dropdown-item:focus,.flatpickr-day:hover){background:#2b425e;color:#fff}
html[data-bs-theme=dark] :is(.flatpickr-day.flatpickr-disabled,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay){color:#93a5bc}
html[data-bs-theme=dark] .flatpickr-day.selected{background:#2764a2;color:#fff;border-color:#78b7f0}
html[data-bs-theme=dark] .flatpickr-calendar :is(.flatpickr-prev-month,.flatpickr-next-month) svg{fill:#dce7f4}
html[data-bs-theme=dark] :is(.flatpickr-current-month input.cur-year,.flatpickr-monthDropdown-months){background:#192638;color:#e1eaf5}
html[data-bs-theme=dark] .table{--bs-table-color:#e1eaf5;--bs-table-bg:#192638;--bs-table-border-color:#35475f;--bs-table-striped-bg:#1d2d42;--bs-table-striped-color:#e1eaf5;--bs-table-hover-bg:#263d57;--bs-table-hover-color:#fff}
html[data-bs-theme=dark] :is(.btn-primary,.btn-success,.btn-danger,.btn-secondary){color:#fff}
html[data-bs-theme=dark] .btn-primary{background:#235b9e;border-color:#4b81b8}
html[data-bs-theme=dark] .btn-outline-primary{color:#9acbff;border-color:#699acc}
html[data-bs-theme=dark] .btn-outline-success{color:#8ddcba;border-color:#528e76}
html[data-bs-theme=dark] .btn-close{filter:invert(1) grayscale(1) brightness(2)}
html[data-bs-theme=dark] :is(.text-muted,.text-secondary,.form-text){color:#b6c5d7!important}
html[data-bs-theme=dark] :is(.text-success,.text-success-emphasis){color:#8bddb6!important}
html[data-bs-theme=dark] :is(.text-danger,.text-danger-emphasis){color:#ffadb3!important}
html[data-bs-theme=dark] .text-primary{color:#9acbff!important}
html[data-bs-theme=dark] :is(.bg-white,.bg-light){background-color:#192638!important;color:#e1eaf5}
html[data-bs-theme=dark] .bg-dark{background-color:#111f33!important;color:#fff}
html[data-bs-theme=dark] dialog::backdrop{background:#030914b3}
html[data-bs-theme=dark] :is(a,button,input,select,textarea):focus-visible{outline-color:#91c9ff}
html[data-bs-theme=dark] .erp-brand img{background:#fff;border-radius:5px}
}
@media print{.theme-switch{display:none!important}html{color-scheme:light!important}body{background:white!important;color:#111!important}}
/* Explicit contrast for outlined actions and intentionally disabled links. */
html[data-bs-theme=light] .btn-outline-primary{color:#1b4e96;border-color:#3873b9}
html[data-bs-theme=light] .btn-outline-success{color:#176747;border-color:#29855f}
html[data-bs-theme=light] .btn-outline-secondary{color:#4d5f74;border-color:#718399}
html[data-bs-theme=light] :is(.btn-outline-primary,.btn-outline-success,.btn-outline-secondary):hover{color:#fff}
html[data-bs-theme=light] .aw-associate-profile-header small{color:#c0d7e6}
@media screen{
html[data-bs-theme=dark] .erp-main{background:#101a28}
html[data-bs-theme=dark] .grid-icon{background-image:linear-gradient(#d4e6fa 0 0),linear-gradient(#d4e6fa 0 0),linear-gradient(#d4e6fa 0 0),linear-gradient(#d4e6fa 0 0)}
html[data-bs-theme=dark] :is(.btn-light,.btn-outline-secondary){color:#dae6f4;background-color:#253950;border-color:#58718e}
html[data-bs-theme=dark] :is(.btn-light,.btn-outline-secondary):hover{color:#fff;background-color:#354d69}
html[data-bs-theme=dark] :is(.btn.disabled,.btn:disabled){opacity:1;color:#adbed2!important;background-color:#223247!important;border-color:#435771!important}
}
html[data-bs-theme=light] :is(.btn.disabled,.btn:disabled){opacity:1;color:#59697b!important;background-color:#e9eef4!important;border-color:#aebccc!important}
html[data-bs-theme=light] .aw-associate-title .aw-rank-badge small{color:#c0d7e6}
@media print{
html[data-bs-theme=dark]{--bs-body-bg:#fff;--bs-body-color:#111;--bs-heading-color:#111;--bs-border-color:#ccc;--bs-emphasis-color:#111;--bs-secondary-color:#4d5968;--bs-tertiary-bg:#f4f6f8;--content-bg:#fff;--panel-bg:#fff;--text:#111;--line:#ccc;--sv-light-bg:#fff;--sv-gray:#4d5968}
html[data-bs-theme=dark] :is(.erp-main,.table){background:#fff!important;color:#111!important;--bs-table-bg:#fff;--bs-table-color:#111;--bs-table-striped-bg:#f4f6f8;--bs-table-striped-color:#111}
}
.theme-switch{font-family:inherit;font-size:12px;font-weight:600;line-height:1.2}
@media screen{
html[data-bs-theme=dark] .erp-login .login-logo-wrap{background:#fff;border-color:#d3dce7}
html[data-bs-theme=dark] .dashboard-view-tabs button[aria-selected=true],html[data-bs-theme=dark] .ar-tabs a.active{background:#29445f;color:#d6f0ff;border-color:#6489aa}
html[data-bs-theme=dark] .form-control::file-selector-button{background:#2d435c;color:#e1eaf5;border-color:#58718e}
}
@media screen{html[data-bs-theme=light] .aw-associate-title .aw-rank-badge small{color:#c0d7e6!important}}
@media screen{html[data-bs-theme=dark] .pk-tabs .pk-tab[aria-selected=true]{background:#284b65;color:#d8f3ff;border-color:#4e7e99}}
