/* StentIA ribbon identity. Presentation only; semantic warning/status colours stay unchanged. */
:root{--bg:#f5f8fc;--paper:#fff;--ink:#182d49;--muted:#566b83;--line:#dbe4ef;--primary:#1559b7;--dark:#0c1b35;--soft:#edf5ff;--teal:#1559b7;--brand-cyan:#54d8f6;--brand-hover:#104891;color:var(--ink);background:var(--bg);color-scheme:light}
input,select,textarea{color:var(--ink);accent-color:var(--primary)}
:focus-visible{outline-color:var(--primary)}
h1,h2,h3{color:#16355d}
a{color:var(--primary)}
.sidebar{background:var(--dark)}
.sidebar .brand{color:#fff;gap:10px}
.brand .mark,.login-page .brand{display:block;object-fit:contain;background:transparent;border:0;border-radius:0;width:40px;height:48px;flex-shrink:0}
.sidebar nav button.active{background:#193e70;box-shadow:inset 3px 0 var(--brand-cyan);color:#fff}
.sidebar nav button:hover{background:#162f55}
.sidebar nav button.active:hover{background:#204b83}
.sidebar .hospital{color:#d3e4f7}.sidebar .hospital span,.sidebar .sidefoot,.sidebar .sidefoot small{color:#afc5e0}
.tablet-menu-button{background:#193e70;border-color:#557da9}
button.primary,.assignment-buttons .assignment-always{background:var(--primary);border-color:var(--primary);color:#fff}
button.primary:hover,.assignment-buttons .assignment-always:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
button.add-soft,button[data-action="add-proc"]{background:#eaf3ff;border-color:#b1cceb;color:#164d92}
button.add-soft:hover,button[data-action="add-proc"]:hover{background:#dcecff;border-color:#7aa5d9;color:#103d77}
button.add-soft:focus-visible{outline-color:var(--primary)}
.scanbox{background:#f0f7ff;border-color:var(--primary);box-shadow:0 0 0 1px #d8e8fa}
.scanbox:focus-within{border-color:#104891;box-shadow:0 0 0 3px #bcdbff}
.prep-block{border-color:#cbdcf0}.prep-block>summary{background:#f0f6ff;color:#16355d}
.prep-block>summary:before,.analysis-case>summary:before{color:var(--primary)}
.selected-procedure{background:#edf4fd;border-color:#cbdcf0}.selected-procedure strong{color:#244a78}
.subgroupbar .selected{background:#eaf3ff;border-color:var(--primary);color:#164d92}
.summary-material-actions>summary{background:#edf5ff;color:var(--primary)}
.liquid-reference{color:var(--primary)}
.sheet-grid input:focus:not([aria-invalid=true]){outline-color:var(--primary);background:#edf5ff}
.sheet-column-filter.is-filtered{background:var(--primary);border-color:var(--primary)}
.case-anesthesia-toggle{background:#f0f2ff;color:#414b89;border-color:#c2c9ed}
.case-anesthesia-toggle:hover{background:#e7ebff;border-color:#98a6df}
.case-anesthesia-toggle[aria-pressed=true]{background:#dfe7ff;color:#283e87;border-color:#7189cb;box-shadow:inset 0 0 0 1px #7189cb}
/* Standalone sign-in and material-capture pages share the same visual identity. */
.login-page main{border-color:var(--line)}
.login-page .brand{width:62px;height:72px}
.login-page button{background:var(--primary)}.login-page button:hover{background:var(--brand-hover)}
.login-page .hint,.login-page .app-copyright{color:var(--muted)}
.login-page input:focus-visible,.login-page button:focus-visible{outline-color:var(--primary)}
.capture-page button:not(.primary):not(.remove),.gtin-page button:not(#save){background:#edf5ff;color:#164d92;border-color:#b1cceb}
.capture-page #scan,.gtin-page #scan{background:#f0f7ff;border-color:var(--primary)}
.capture-page input:focus,.gtin-page input:focus,.capture-page button:focus-visible,.gtin-page button:focus-visible{outline-color:var(--primary)}
.capture-page .company,.gtin-page .company{color:#244a78}
.capture-page .muted,.capture-page small,.capture-page footer,.gtin-page .codes{color:var(--muted)}
.capture-page .code-option{background:#f0f7ff}
.gtin-page #save{background:var(--primary);color:#fff}
.gtin-page #status:not(.warn){background:var(--soft)}
.utility-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:650;color:#16355d}
.utility-brand img{width:30px;height:36px;object-fit:contain}.utility-brand .brand-copyright{font-size:.65em;vertical-align:super}
@media(forced-colors:active){.sidebar nav button.active,.case-anesthesia-toggle[aria-pressed=true]{outline:2px solid Highlight}.brand .mark{forced-color-adjust:none}}
/* Specialty selection: future areas stay empty and separate from the RVI workspace. */
.sidebar .hospital{margin:24px 0 20px;letter-spacing:.025em;}
.specialty-selector{display:grid;gap:3px;margin-top:8px;}
.specialty-selector button{text-align:left;line-height:1.3;min-height:34px;padding:6px 8px;font-size:.74rem;letter-spacing:0;color:#d3e4f7;background:transparent;border:1px solid transparent;}
.specialty-selector button:hover{background:#303a47;}
.specialty-selector button[aria-pressed=true]{background:#4a535e;border-color:#7e8791;box-shadow:inset 2px 0 #c4c9cf;color:white;}
.specialty-selector small{display:block;color:#afc5e0;font-size:.64rem;margin-top:1px;}
.specialty-selector button:focus-visible{outline-color:var(--brand-cyan);}
.specialty-empty{max-width:680px;padding:32px;}
.specialty-empty h2{margin-top:18px;}.specialty-empty p{margin:12px 0 24px;}
@media(max-width:1100px){
 .sidebar .hospital{display:block;grid-column:1/-1;grid-row:2;margin:4px 0 0;}
 .sidebar .tablet-menu-button{grid-column:2;grid-row:1;}
 .specialty-selector{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:7px;}
 .specialty-selector button{font-size:.72rem;padding:6px 8px;}
 .sidebar{position:relative;}
}
@media(max-width:480px){.specialty-selector{grid-template-columns:1fr;}.specialty-selector button{font-size:.74rem;}.specialty-selector small{display:inline;margin-left:8px;}}
@media(forced-colors:active){.specialty-selector button[aria-pressed=true]{outline:2px solid Highlight;}}

.management-material-actions{margin:0 0 20px}.management-material-actions p{color:#54677c}.management-material-actions .row{gap:12px}#management-capture{display:block;width:100%;height:78vh;min-height:600px;border:1px solid #dce4ed;border-radius:14px;background:#fff}.capture-embedded main{max-width:none;padding:16px}.capture-embedded main>nav,.capture-embedded main>h1,.capture-embedded main>p.muted{display:none}@media(max-width:700px){#management-capture{height:80vh;min-height:500px}}
