/* Screen-only theme keeps printed clinical forms on white paper. */
@media screen{
.sidebar{background:linear-gradient(to bottom,#deebff 0%,#f0f6ff 42%,#fff 100%)}.side-brand,.side-foot{background:transparent}.side-menu{background:transparent}.side-menu .nav-item{background:transparent}.side-menu .nav-item:hover{background:#ffffffa6}.side-menu .nav-item.active{background:#ffffffd9;border-color:#a3c1ec;color:#164c94}.side-brand .logo{width:68px;height:68px;flex:0 0 68px;border:2px solid #2565b2;border-radius:50%;padding:8px;background:#fff;object-fit:contain;box-shadow:0 3px 10px #225ba81c}.side-brand{min-height:96px}.side-brand b{color:#164c94}.collapsed .side-brand .logo{width:56px;height:56px;flex-basis:56px;padding:7px}.theme-toggle{white-space:nowrap}.module-busy{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:20;padding:12px 20px;background:#fff;border:1px solid #b9c8d9;border-radius:8px;box-shadow:0 4px 20px #17314f20;color:#172b46}.workspace{position:relative}
.sidebar{background:linear-gradient(to bottom,#bfd5f5 0%,#e1edfc 48%,#f9fbff 100%)}.side-menu .nav-icon{color:#1d568f;font-weight:600}.nav-label{color:#314b6d}
.summary-card .label,.summary-card span.label{color:#18283c;font-weight:600}.summary-card b,.quick-card h2,.help-panel h3{color:#13243b}
.summary-icon,.quick-icon{background:#e1eafb;color:#174f9b;font-weight:700}.summary-icon.teal{background:#dcefeb;color:#087066}.summary-icon.gold{background:#fff0d2;color:#925b00}.summary-icon.violet{background:#eee4fc;color:#633bb2}
.service-policy,.service-policy b,.service-policy p{color:#40536d}
#lookupMain .summary{color:#455c79}
#noticeDialog{width:min(520px,calc(100vw - 32px));padding:24px;border:1px solid #dce4ee;border-radius:12px;box-shadow:0 20px 70px #152f4d35}#noticeDialog h2{margin:0 0 14px;font-size:20px}#noticeDialog p{margin:0 0 20px;font-size:14px;line-height:1.6;color:#334b68}#noticeDialog button{display:block;margin-left:auto;border:1px solid #2d62ab;background:#2d62ab;color:white;border-radius:6px;min-height:40px;padding:9px 18px;font:600 14px 'Segoe UI',sans-serif;cursor:pointer}
html[data-theme=dark]{color-scheme:dark;--blue:#2d62ab;--ink:#e4edf8;--muted:#b1bfd1;--line:#3b4d65;--bg:#101b2b}
html[data-theme=dark] body,html[data-theme=dark] main,html[data-theme=dark] .main{background:#101b2b;color:#e4edf8}
html[data-theme=dark] .sidebar{background:linear-gradient(to bottom,#17375e,#13253d 50%,#101b2b)}
html[data-theme=dark] :is(.topbar,.panel,.card,.settings,.quick-card,.help-panel,.summary-card,.modal-host,dialog,.login-main,.login-card,.tabs,.company-tab,.module-busy){background:#192a41;color:#e4edf8;border-color:#3b4d65}
html[data-theme=dark] :is(h1,h2,h3,b,strong,label,.top-title,.side-brand b){color:#e4edf8}
html[data-theme=dark] :is(p,small,.label,.muted,.nav-label,.side-foot,.overview-foot,.settings p,.count-label){color:#b1bfd1}
html[data-theme=dark] .side-menu .nav-item,html[data-theme=dark] .tabs a{background:transparent;color:#d5e3f6}
html[data-theme=dark] .side-menu .nav-item.active,html[data-theme=dark] .side-menu .nav-item:hover,html[data-theme=dark] .tabs a:hover{background:#234366;color:#fff;border-color:#5479a9}
html[data-theme=dark] .tabs a.active{background:transparent;color:#9fc6ff;border-bottom-color:#9fc6ff}
html[data-theme=dark] :is(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),select,textarea,.combo-input,.combo-options,.context-strip,.import-tools,.service-banner,.service-metrics>div){background:#122137;color:#e4edf8;border-color:#4d6481}
html[data-theme=dark] :is(.combo-option:hover,.combo-option.active){background:#284567;color:#fff}
html[data-theme=dark] :is(.table-wrap th,th){background:#20344e;color:#c6d6eb!important;border-color:#3b4d65}
html[data-theme=dark] :is(.table-wrap td,td){background:transparent;color:#e4edf8;border-color:#3b4d65}
html[data-theme=dark] tr:hover td{background:#20344e}
html[data-theme=dark] :is(.btn:not(.primary),.excel-picker,.table-wrap input[type=button],.table-wrap input[type=submit]:not(.primary),.buttons input[type=submit]:not(.primary)){background:#20344e;color:#e4edf8;border-color:#59718e}
html[data-theme=dark] a{color:#a9cdff}html[data-theme=dark] .login-intro{background:#142a46}html[data-theme=dark] .features span{background:#20344e;border-color:#3b4d65;color:#e4edf8}
html[data-theme=dark] .combo-toggle{background:#122137;color:#c6d6eb}
/* Explicit surface/text pairs for controls whose legacy styles use fixed light backgrounds. */
html[data-theme=dark] .sidebar{background:linear-gradient(to bottom,#174c82,#163451 50%,#101b2b)}
html[data-theme=dark] .side-menu .nav-icon,html[data-theme=dark] .side-menu .active .nav-icon{color:#b9d8ff}
html[data-theme=dark] .summary-card .label,html[data-theme=dark] .summary-card span.label{color:#e3edf9;font-weight:600}
html[data-theme=dark] .summary-card b,html[data-theme=dark] .quick-card h2,html[data-theme=dark] .help-panel h3{color:#f0f5fc}
html[data-theme=dark] .summary-icon,html[data-theme=dark] .quick-icon{background:#263f60;color:#b9d7ff}
html[data-theme=dark] .summary-icon.teal{background:#133f3b;color:#80ded0}html[data-theme=dark] .summary-icon.gold{background:#4b3718;color:#ffd17c}html[data-theme=dark] .summary-icon.violet{background:#3c2c5b;color:#d4b6ff}
html[data-theme=dark] :is(.service-policy,.service-context,.service-metrics>div,.codes,.scan,.ksk-notice-card,.print-busy-card,.pdf-queue,.pdf-queue.lookup-drawer .pdf-queue-head,.job){background:#20344e;color:#e3edf9;border-color:#59718e}
html[data-theme=dark] :is(.service-policy b,.service-policy p,.service-context b,.service-context span,.service-metrics span,.service-caption,.row-subtitle,.service-item-code,.service-item-name,.services-footer-note,.lock-state,.service-saved,.date-icon){color:#c8d9ee}
html[data-theme=dark] #lookupMain .summary{background:#20344e;color:#e3edf9;border-color:#59718e}
html[data-theme=dark] #lookupMain .summary.active{background:#2c496c;color:#fff;border-color:#9fc6ff;box-shadow:0 0 0 1px #9fc6ff}
html[data-theme=dark] #lookupMain .summary :is(strong,.stat-count){color:#f0f5fc}
html[data-theme=dark] :is(.selected-count,.filter-footer,.pager,.pdf-queue-note,.pdf-queue-detail,.ksk-notice-content){color:#c8d9ee}
html[data-theme=dark] :is(.button:not(.primary),.page-buttons button){background:#20344e;color:#e3edf9;border-color:#59718e}
html[data-theme=dark] .button.primary{background:#2d62ab;color:white;border-color:#487cc2}
html[data-theme=dark] .badge.blue{background:#234b77;color:#d4e7ff}html[data-theme=dark] .badge.gold{background:#4b3718;color:#ffd998}html[data-theme=dark] .badge.green{background:#173f35;color:#b1e5cb}html[data-theme=dark] .badge.gray{background:#324359;color:#d4dfef}
html[data-theme=dark] #noticeDialog{background:#192a41;border-color:#59718e}html[data-theme=dark] #noticeDialog :is(h2,p){color:#e3edf9}
html[data-theme=dark] :is(.menu-toggle,.logout){color:#c8d9ee}
.side-brand .logo{width:104px;height:54px;flex:0 0 104px;border:0;border-radius:8px;padding:0;background:transparent;box-shadow:none;object-fit:contain}.side-brand{gap:10px}
.login-brand .logo{width:180px;height:94px;border:0;border-radius:8px;padding:0;object-fit:contain}
.summary-icon,.quick-icon{border-radius:50%;aspect-ratio:1;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.side-menu .nav-icon{border-radius:50%;background:#dce9fb;min-width:26px;width:26px;height:26px;flex:0 0 26px;display:inline-flex;align-items:center;justify-content:center;font-size:15px}
html[data-theme=dark] .side-menu .nav-icon{background:#254e78}
.collapsed .side-brand .logo{width:60px;height:34px;flex-basis:60px;border-radius:5px;padding:0}
.side-brand{background:#fff;border-bottom:1px solid #dce4ee}.side-brand small{color:#405773;font-size:12px}
.login-intro{background:linear-gradient(145deg,#b4cef2 0%,#d2e3f9 52%,#bdd6f5 100%)}.login-intro:after{border-color:#91b7e34d}.login-intro h1{color:#142e50}.login-intro>p,.login-intro .contact{color:#304d70}.login-brand .eyebrow{color:#264e80;font-size:13px;font-weight:700}.login-intro .features span{border-color:#a9c2e4;color:#244b7c;background:#ffffffd9}
html[data-theme=dark] .side-brand{background:#fff;border-bottom-color:#dce4ee}html[data-theme=dark] .side-brand small{color:#405773}
html[data-theme=dark] .login-intro{background:linear-gradient(145deg,#173f6e,#142c49 52%,#102039)}html[data-theme=dark] .login-intro:after{border-color:#365f8f4d}html[data-theme=dark] .login-intro h1{color:#edf4ff}html[data-theme=dark] .login-intro>p,html[data-theme=dark] .login-intro .contact,html[data-theme=dark] .login-brand .eyebrow{color:#c9def9}html[data-theme=dark] .login-intro .features span{background:#203c5e;color:#edf4ff;border-color:#527298}
@media(max-width:750px){.side-brand,.collapsed .side-brand{min-height:96px}.side-brand .logo,.collapsed .side-brand .logo{width:68px;height:68px;flex-basis:68px}.theme-toggle{font-size:11px!important;padding:6px 8px!important}}
@media(max-width:750px){.side-brand .logo,.collapsed .side-brand .logo{width:104px;height:54px;flex-basis:104px;padding:0}.login-brand .logo{width:128px;height:66px}}
@media(max-width:500px){.topbar .theme-toggle{width:36px;min-width:36px;font-size:0!important;padding:6px!important}.topbar .theme-toggle:before{content:'◐';font-size:19px}.topbar #installApp{width:36px;min-width:36px;font-size:0!important;padding:6px}.topbar #installApp:before{content:'⊕';font-size:19px}.top-actions{gap:8px}.topbar{gap:8px}.top-left{flex-shrink:0}}
.side-brand,.collapsed .side-brand{height:68px;min-height:68px;flex:0 0 68px;padding-top:6px;padding-bottom:6px}
@media(max-width:750px){.side-brand,.collapsed .side-brand{height:62px;min-height:62px;flex-basis:62px;padding-top:7px;padding-bottom:7px}.side-brand .logo,.collapsed .side-brand .logo{width:92px;height:46px;flex-basis:92px}}
.side-brand .menu-logo-large{display:block;width:54px;height:54px;flex:0 0 54px;border-radius:50%;padding:0;background:transparent}
.side-brand .menu-logo-small{display:none;width:44px;height:44px;flex:0 0 44px;border-radius:50%;padding:0;background:transparent}
.collapsed .side-brand .menu-logo-large{display:none}.collapsed .side-brand .menu-logo-small{display:block}
.login-brand .logo{width:220px;height:116px;padding:0;background:transparent;border:0;border-radius:0}
@media(max-width:750px){.side-brand .menu-logo-large,.collapsed .side-brand .menu-logo-large{display:block;width:46px;height:46px;flex-basis:46px}.side-brand .menu-logo-small,.collapsed .side-brand .menu-logo-small{display:none}.login-brand .logo{width:150px;height:80px}}
html:not([data-theme=dark]) .tabs a,html:not([data-theme=dark]) .tabs a.active{color:#15243b;font-weight:700}
html:not([data-theme=dark]) .table-wrap th{color:#15243b!important;font-weight:700}
.tabs a{gap:7px}.tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:5px;background:#edf1f8;color:#314b6d;font-size:11px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums}
html[data-theme=dark] .tabs a{color:#e3edf9;font-weight:700}html[data-theme=dark] .table-wrap th{color:#e3edf9!important;font-weight:700}html[data-theme=dark] .tab-count{background:#304969;color:#eef5ff}
.workspace-scope.single-scope{grid-template-columns:1fr}.workspace .workspace-heading{justify-content:flex-end;padding-top:16px;padding-bottom:8px}.workspace .workspace-heading .buttons{margin-left:auto}
}

