/* Neutral clinical desktop: persistent patient sidebar and dense chart workspace. */
:root{font-family:Arial,"Segoe UI",sans-serif;font-size:13px;color:#263d54;background:#e7eaf0;--border:#bcc9d8;--muted:#65758a;--blue:#28679c}
button{border-radius:2px;font-weight:400;padding:5px 10px;font-size:12px}
.topbar{height:34px;padding:0 10px;background:linear-gradient(#304f76,#234367);gap:13px;border-bottom:1px solid #172e4c}
.brand{font-size:14px;display:flex;gap:8px;align-items:center;font-weight:600}.brand .brand-monogram{font:bold 12px Arial;background:#8d354a;border:1px solid #bc7182;border-radius:2px;padding:4px 6px;margin:0;color:white}.topbar>strong{font-size:12px;font-weight:400}.topbar .avatar{width:22px;height:22px;font-size:10px}.topmeta{font-size:11px}.divider{opacity:.6}
.commandbar{height:32px;min-height:32px;padding:2px 9px;background:linear-gradient(#fafbfc,#dce3ec);border-bottom:1px solid #afbdcf;gap:2px}.commandbar button{padding:4px 12px;border-right:1px solid #c9d1dd;font-size:12px}.commandbar button.active{background:#fff;border:1px solid #b6c5d8}.commandbar>span:last-child{font-size:11px}
.shell{min-height:calc(100vh - 66px)}
.rail{width:204px;background:linear-gradient(90deg,#e5edf7,#f0f4fa);border-right:1px solid #adbed2;gap:0;padding:0;align-items:stretch}
.rail .patient-banner{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 13px 12px;border:0;border-bottom:1px solid #b7c8dc;border-radius:0;background:#e4edf8;min-height:240px}
.patient-banner>.spacer{display:none}.patient-portrait{align-self:center}.patient-portrait small{font-size:9px;margin-top:3px}#patient-photo-frame{width:72px;height:72px;border-radius:2px}.patient-title{width:100%}.patient-title .eyebrow{font-size:9px;letter-spacing:.7px;color:#59718b}.patient-title h1{font-size:19px;color:#174a80;line-height:1.2;margin:4px 0 7px;font-weight:700;letter-spacing:-.3px}#demographics{font-size:11px;line-height:1.7;color:#405974}.identity{align-items:flex-start;max-width:100%;gap:0;font-size:12px;color:#1d5080}.identity span{white-space:normal}
.railmark{font-size:10px;padding:9px 12px;background:#d3dfef;color:#48617c;border-bottom:1px solid #b9cadf;letter-spacing:.4px}.rail button{font-size:14px;padding:7px 10px;min-height:31px;gap:7px;border-bottom:1px solid #d7e1ed;color:#264e78}.rail button span{font-size:12px}.rail button.selected{background:#fff;border-left:3px solid #386fa6;color:#164979;font-weight:700}.rail button:hover{background:#fff}.rail [data-section]{padding-left:22px}.rail-section{font-size:9px;font-weight:bold;letter-spacing:.5px;padding:13px 12px 6px;color:#6b7f96}.railbottom{font-size:10px;line-height:1.8;padding:12px;color:#6a7d93}
main{padding:0 10px;min-width:0;background:#eef1f5}.workspace-tabs{margin:0 -10px 0;padding:4px 8px 0;min-height:34px;background:#d4deec;border-bottom:1px solid #aebed2}.workspace-tabs button{font-size:12px;padding:7px 13px;border-radius:3px 3px 0 0;color:#365a82}.workspace-tabs button.active{border-color:#adbed2;background:#fff;border-top:3px solid #477bae;padding-top:5px}.workspace-label{font-size:9px;color:#526c88}.workspace-context{font-size:10px}.workspace{margin-top:9px;gap:14px}.chart{border:1px solid #aebed1;border-radius:0;min-height:780px}.chart-context{display:flex;justify-content:space-between;align-items:center;background:#f8f9fc;padding:5px 10px;border-bottom:1px solid #c6d1df;color:#61748c;font-size:10px}.chart-context span:first-child{font-weight:bold;color:#3b5573}.tabs{padding:0 7px;background:#e5ebf4;gap:2px;border-bottom:1px solid #aebfd5}.tabs button{font-size:12px;padding:8px 10px;color:#3c5e81}.tabs button.active{background:#fff;border-bottom:2px solid #315f93;color:#153e6c;font-weight:700}
.view{padding:10px}.section-title{margin-bottom:9px;padding-bottom:7px;border-bottom:1px solid #c7d3e3}.section-title h2{font-size:16px;font-weight:600;color:#254d7a}.summary-context{font-size:10px;color:#77879a}.section-band{padding:5px 8px;background:#d5e4f4;border:1px solid #b6cbe2;font-size:12px;font-weight:600;color:#244d7c;display:flex;justify-content:space-between}.section-band span{font-size:10px;font-weight:400;color:#637993}.vitals{border-radius:0;border-top:0;margin-bottom:10px;background:#f9fbfd}.vitals>div{padding:8px 10px;border-color:#ccd8e5}.vitals span{font-size:10px;margin-bottom:5px;color:#526a84}.vitals strong{font-size:19px;font-weight:600;color:#284b74}.vitals small{font-size:9px;margin-top:2px}.clinical-grid{gap:9px}.card{border:1px solid #b9cbe0;border-radius:0}.card h3{padding:5px 8px;background:linear-gradient(#e1ecf9,#cfdef0);border-bottom:1px solid #b8cce4;color:#244f7f;font-size:12px;font-weight:600}.count{font-size:10px;border-radius:2px;padding:0 4px;background:#f5f8fc}.row{padding:8px;border-bottom:1px solid #dde5ef;gap:8px}.row:nth-child(odd){background:#f8fafd}.row strong{font-size:12px;font-weight:500;color:#254e7c}.row small{font-size:10px;margin-top:3px;color:#61748a;line-height:1.5}.tag{font-size:9px;border-radius:2px;padding:2px 5px;background:#edf4ea;color:#426b43}.date-tile{padding:4px 9px;border-radius:2px;font-size:9px}.date-tile strong{font-size:17px}.upcoming{margin-top:9px}.row .avatar.small{width:28px;height:28px;font-size:10px}.workflow{padding:7px 10px;gap:8px}.workflow strong{font-size:12px;margin-bottom:2px}.workflow span{font-size:11px}.workflow .status-icon{font-size:16px}.empty-chart{margin:90px auto;max-width:310px}.empty-chart h2{font-size:16px;color:#385c82}.empty-chart p{font-size:12px;line-height:1.7;margin-top:10px}.empty-chart>div{font-size:32px;color:#809bb8}
label{font-size:12px;margin:12px 0 8px;color:#354f6b}input,textarea{border-radius:1px;font-size:12px;padding:8px;margin-top:5px;line-height:1.5}.note-footer{margin-top:12px}.muted,.pill{font-size:10px}.pill{border-radius:2px;padding:3px 6px}.history-item{padding:10px;margin-bottom:8px;border-radius:0}.history-item p{font-size:12px}.page-footer{padding:6px 0;font-size:9px;gap:10px}.page-footer>span{font-size:9px}.native-desktop{border-radius:0;border-color:#afc0d3;border-top:2px solid #648aa9}.native-heading{background:linear-gradient(#f9fbfd,#e5edf6);padding:4px 9px;min-height:32px;border-bottom:1px solid #b7c9dd}.native-heading strong{font-size:12px}.native-heading button{font-size:11px;min-height:23px;padding:3px 7px}.native-footer{font-size:10px;padding:6px 9px}.panel-resizer::after{background:#92a8bf}
@media(max-width:1200px){.rail{width:180px}.patient-title h1{font-size:17px}.clinical-grid{grid-template-columns:1fr}.workspace-label,.workspace-context{display:none}}
@media(max-width:1000px){.chart{min-height:500px}.native-mode .cti-stack{grid-row:1}.rail{width:174px}}
@media(max-width:780px){.topbar .brand{font-size:12px}.topbar{gap:8px}.topmeta{display:none}.rail{width:144px}.rail .patient-banner{padding:10px;min-height:220px}.rail button{justify-content:flex-start;padding:7px 8px}.rail button span{display:inline;font-size:11px}.railmark,.railbottom{display:block}.railmark{font-size:9px}.rail [data-section]{padding-left:12px}.patient-title h1{font-size:16px}#demographics{font-size:10px}.patient-banner .identity{width:auto;font-size:11px}.workspace-tabs button{padding:7px;font-size:11px}.commandbar>span:last-child{display:none}.commandbar button{padding:4px 6px;font-size:11px}main{padding:0 8px}.workspace-tabs{margin:0 -8px}.view{padding:8px}.tabs button{font-size:11px;padding:7px}.native-desktop.floating{min-width:min(300px,96vw)}}
/* Fit the application to the viewport; scroll chart content inside its pane. */
html{height:100%;overflow:hidden}
body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.topbar,.commandbar{flex-shrink:0}
.shell{flex:1;min-height:0;overflow:hidden}
.rail{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.rail>*{flex-shrink:0}
main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.workspace-tabs,.page-footer{flex-shrink:0}
.workspace{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch;margin-bottom:0}
.chart{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.chart>.tabs,.chart-context,.workflow,#notice,#return-call{flex-shrink:0}
.chart>.view{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.cti-stack{min-height:0;height:100%}
.native-desktop:not(.floating){height:100%;min-height:0;display:flex;flex-direction:column}
.native-heading,.native-footer,#frame-policy{flex-shrink:0}
#native-frame-slot{flex:1;min-height:0;overflow:hidden;display:flex}
#native-frame-slot iframe{flex:1;width:100%;height:100%;min-height:0}
.workspace.webex-floating .cti-stack{display:contents}
.native-desktop.floating{max-width:100vw;max-height:100dvh;min-height:min(300px,100dvh)}
@media(max-width:1000px){
 .workspace.native-mode{grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
 .workspace.native-mode.webex-floating{grid-template-rows:minmax(0,1fr)}
 .workspace.native-mode.webex-floating .chart{grid-row:1}
 .chart{min-height:0}
 #native-frame-slot iframe{height:100%}
}

.native-desktop.floating{min-width:min(280px,96vw)}

.history-group{font-size:12px;color:#315c88;margin:12px 0 7px}.history-previous{border:1px solid #bdcde0;margin:0 0 6px;padding:0;background:#f9fbfe}.history-previous summary{display:flex;gap:10px;align-items:center;padding:9px;font-size:12px;list-style:none}.history-previous summary::before{content:'▸';color:#4b729a}.history-previous[open] summary::before{content:'▾'}.history-previous time{font-size:10px;color:#5c738e;min-width:76px}.history-previous summary strong{flex:1;font-weight:500}.history-previous p{margin:8px 12px;font-size:12px;line-height:1.6;color:#435f7b}.history-previous[open] summary{background:#e7eff9;border-bottom:1px solid #c6d6e8}

.popup-content{padding:14px;font-size:12px;line-height:1.6}.popup-content button{width:100%}#popup-status{font-size:11px;color:#526a84}.native-desktop.popup-launcher{height:auto;min-height:180px}
