/* workspace-space.css v1.0 (2026-10-25): compact shell for every theme, from the approved local prototype.
   Header and command toolbar of equal height (38px standard, 34px Minimal), plain-text omsAI wordmark,
   photo on the left with Manage Alerts on the right, collapsible and resizable Left Navigation
   (workspace-space.js), combined screen headings, and a workspace height that uses the recovered space.
   Minimal colors and spacing are in minimal.css. */

:root{--nav-w:84px;--shell-header:38px;--shell-command:38px;--shell-strip:42px;--shell-footer:38px}
:root[data-theme^="minimal-"]{--shell-header:34px;--shell-command:34px;--shell-strip:32px}

/* ---- header and command toolbar (desktop) */
@media(min-width:761px){
 body>header{height:var(--shell-header);padding:0 18px;gap:14px}
 body>header .search{height:28px;padding:2px 10px;line-height:1}
 body>header .search input{height:22px;padding:0;line-height:22px}
 body>header .search kbd{padding:2px 4px}
 body>header .search-find{padding:4px 12px;color:var(--t-text)}
 body>header .avatar{width:28px;height:28px;min-height:0;padding:0;display:grid;place-items:center;font-size:11px}
 body>header #notifications{padding:2px 6px}
 [data-theme^="minimal-"] body>header .search{height:26px;padding:2px 9px}
 [data-theme^="minimal-"] body>header .search input{height:20px;line-height:20px}
 .commandbar{height:var(--shell-command)}
 .commandbar button{padding-block:4px}
 .commandbar #launcher{padding-block:4px}
 #officerMenu{top:calc(var(--shell-header) + 1px)}
 #officerTooltip{top:calc(var(--shell-header) - 2px)}
}

/* ---- omsAI wordmark: real HTML text, lowercase oms + uppercase AI, one size, weight and color */
html[data-theme] body>header .brand .logo{position:relative;top:-2px;font-family:'Segoe UI',Arial,sans-serif;font-size:21px!important;font-weight:600;letter-spacing:-.5px;line-height:1.2;padding:1px 4px;background:transparent!important;background-image:none!important;border:0!important;border-radius:0;box-shadow:none!important;text-shadow:none!important;filter:none;text-transform:none!important;font-variant:normal!important}
html[data-theme] body>header .brand .logo span{font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important;letter-spacing:inherit;color:inherit!important;text-shadow:none!important;text-transform:none!important;font-variant:normal!important;vertical-align:baseline}
html[data-theme] body>header .brand .logo::before,html[data-theme] body>header .brand .logo::after{content:none!important}
html[data-theme] body>header .division{font-size:12px}
/* each theme keeps its own wordmark color (the color "oms" had); Minimal themes use the strongest ink */
html[data-theme^="minimal-"] body>header .brand .logo{color:var(--t-strong)}

/* ---- client information bar (name, client ID, DOB, CII, status, risk and the other fields) */
@media(min-width:761px){
 #clientStrip{height:var(--shell-strip);overflow-x:auto;scrollbar-width:none}
 #clientStrip::-webkit-scrollbar{display:none}
 #clientStrip .strip-item{flex-shrink:0}
 [data-theme^="minimal-"] #clientStrip{padding-inline:14px}
 [data-theme^="minimal-"] .strip-person{gap:9px;padding-right:14px;flex-shrink:0}
 [data-theme^="minimal-"] .strip-person>.strip-label,[data-theme^="minimal-"] .strip-demo{display:none}
 [data-theme^="minimal-"] .strip-item{padding-inline:12px}
}
.strip-person .strip-id{font:10px Consolas,monospace;color:var(--t-accent);white-space:nowrap}

/* ---- workspace height uses the recovered space */
@media(min-width:761px){
 .app,.app.cardhidden{height:calc(100dvh - var(--shell-header) - var(--shell-command) - var(--shell-strip) - var(--shell-footer))}
 body.workspace-space-saving main>.context{display:none}
 html[data-theme] main>.pagehead{min-height:0;padding:7px 0 8px}
 html[data-theme] main>.pagehead h1{margin:0;line-height:1.2}
 main.has-combined-heading>.pagehead{display:none}
 main.has-combined-heading>#content{margin-top:8px}
}

/* ---- photo on the left, Manage Alerts + count + symbols on the right (no name, ID or badges here) */
aside#card .identitylabel,aside#card .identitytext{display:none!important}
#nav .client-flags-head button{display:inline-flex;align-items:center;gap:6px;margin:0;padding:3px 0;min-height:24px;font-size:10px;white-space:nowrap;background:transparent;border-color:transparent;color:var(--t-accent)}
#nav .client-flags-head button:hover{text-decoration:underline}
.active-alert-count{display:inline-grid;place-items:center;min-width:19px;height:18px;padding:0 5px;border-radius:9px;background:var(--t-selected);color:var(--t-accent-ink);font-size:10px;font-weight:600}
@media(min-width:761px){
 aside#card{display:grid!important;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:9px;padding:8px 10px!important}
 aside#card>.identity{display:flex;width:72px;height:82px;min-height:82px;justify-content:flex-start;align-items:center}
 aside#card .portrait-wrap{width:72px;height:82px;flex:0 0 72px;margin:0}
 aside#card>.client-flags{width:100%;min-width:0;max-width:none;margin:0;padding:0;border:0;align-self:start}
 aside#card .client-flag-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-top:3px}
 #nav aside#card .flag-symbol{width:100%;min-width:0;height:23px;padding:3px}
 #nav aside#card .flag-symbol svg{width:15px;height:15px}
 [data-theme^="minimal-"] aside#card{grid-template-columns:66px minmax(0,1fr)}
 [data-theme^="minimal-"] aside#card>.identity{width:66px;height:76px;min-height:76px}
 [data-theme^="minimal-"] aside#card .portrait-wrap{width:66px;height:76px;flex-basis:66px}
 [data-theme^="minimal-"] #nav aside#card .flag-symbol{height:21px}
 /* no client selected: the hint spans the whole card */
 aside#card:not(:has(.identity)){display:block!important}
}

/* ---- Workspace and Caseload (icon buttons with tooltips when the navigation is collapsed) */
.primary-nav-icon{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.primary-nav-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;margin-bottom:7px;width:100%}
#nav .primary-nav-pair>button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;margin:0;padding:7px 4px;min-height:32px;border:1px solid var(--t-border);border-radius:4px;background:var(--t-raised);font-size:11px;line-height:1.25;text-align:center}
#nav .primary-nav-pair>button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#nav .primary-nav-pair>button.active{background:var(--t-selected);color:var(--t-accent-ink);border-color:var(--t-accent);box-shadow:none}
#nav .primary-nav-pair>button:hover{background:var(--t-selected)}
[data-theme="minimal-moderate"] #nav .primary-nav-pair>button{background:#204660;border-color:#6e8da4}
[data-theme="minimal-moderate"] #nav .primary-nav-pair>button.active{background:#37698e;color:#fff;border-color:#c0e2fa}
@media(max-width:760px){.primary-nav-pair{flex:0 0 100%;margin-bottom:0}}

/* ---- expanded navigation is resizable; collapsed navigation is 84px */
@media(min-width:761px){
 body.workspace-space-saving .app:not(.nav-compact){grid-template-columns:var(--nav-w,250px) minmax(0,1fr)!important}
 body.workspace-space-saving .app.nav-compact{grid-template-columns:84px minmax(0,1fr)!important}
 .nav-compact #nav .nav-scroll{padding:6px}
 .nav-compact #nav .navigation-panel,.nav-compact #nav .navfoot,.nav-compact #nav .nav-scroll>.agency{display:none}
 .nav-compact #nav .primary-nav-pair{display:flex;flex-direction:column}
 .nav-compact #nav .primary-nav-pair>button{justify-content:center;padding:9px 4px}
 .nav-compact #nav .primary-nav-pair>button span{display:none}
 .nav-compact #nav .primary-nav-pair .primary-nav-icon{width:16px;height:16px;flex-basis:16px}
 html[data-theme] .nav-compact aside#card{display:flex!important;flex-direction:column;align-items:center;gap:5px;padding:7px 5px!important}
 html[data-theme] .nav-compact aside#card>.identity,html[data-theme] .nav-compact aside#card .portrait-wrap{width:56px;height:65px;min-height:65px;flex:0 0 auto}
 .nav-compact aside#card>.client-flags{width:100%}
 .nav-compact #nav .client-flags-head{justify-content:center}
 .nav-compact #nav .client-flags-head button{font-size:0;gap:4px;justify-content:center}
 .nav-compact #nav .client-flags-head button::before{content:'⚑';font-size:13px}
 .nav-compact #nav .client-flags-head .active-alert-count{font-size:10px}
 .nav-compact #nav aside#card .client-flag-chips{grid-template-columns:repeat(3,minmax(0,1fr))}
 .nav-compact aside#card .no-client-hint,.nav-compact aside#card .identitylabel,.nav-compact aside#card .no-client-flags{display:none}
}

/* ---- the divider: drag to resize, click the button to hide or show, arrow keys when focused */
.navigation-visibility-control{display:none}
@media(min-width:761px){
 #nav .navigation-visibility-control{display:block;position:absolute;top:0;bottom:0;right:-4px;width:8px;padding:0;border:0;background:transparent;z-index:35;cursor:col-resize;touch-action:none}
 #nav .navigation-visibility-control::before{content:'';position:absolute;top:0;bottom:0;left:3px;width:1px;background:var(--t-border)}
 #nav .navigation-visibility-control:hover::before,#nav .navigation-visibility-control:focus-visible::before{left:3px;width:2px;background:var(--t-accent)}
 #nav .navigation-visibility-control:focus-visible{outline:0}
 #nav #navigationWidthToggle{position:absolute;top:45%;left:-5px;display:inline-flex;align-items:center;justify-content:center;width:18px;min-width:18px;height:38px;min-height:38px;margin:0;padding:1px;border:1px solid var(--t-border);border-radius:5px;background:var(--t-surface);color:var(--t-muted);box-shadow:none;cursor:pointer}
 #nav #navigationWidthToggle:hover,#nav #navigationWidthToggle:focus-visible{background:var(--t-selected);color:var(--t-strong)}
 #nav #navigationWidthToggle:focus-visible{outline:2px solid var(--t-accent);outline-offset:1px}
 #navigationWidthToggle svg{width:16px;height:16px;flex-shrink:0}
 .resizing-navigation,.resizing-navigation *{cursor:col-resize!important;user-select:none!important}
 /* popups center on the workspace and leave the navigation visible, at any navigation width */
 dialog{width:min(760px,calc(100vw - var(--nav-w) - 50px));left:calc(var(--nav-w) + (100vw - var(--nav-w))/2)}
 dialog::backdrop{background:linear-gradient(to right,transparent var(--nav-w),#020b14b8 var(--nav-w))}
}
@media(min-width:1600px){dialog{left:calc(var(--nav-w) + (100vw - var(--nav-w))/2)}dialog::backdrop{background:linear-gradient(to right,transparent var(--nav-w),#020b14b8 var(--nav-w))}}
@media(min-width:761px) and (max-width:1150px){dialog{width:calc(100vw - var(--nav-w) - 40px);left:calc(var(--nav-w) + (100vw - var(--nav-w))/2)}dialog::backdrop{background:linear-gradient(to right,transparent var(--nav-w),#020b14b8 var(--nav-w))}}

/* ---- phones: horizontal photo + alerts card, client bar kept, no divider */
@media(max-width:760px){
 aside#card{height:96px!important;display:grid!important;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:12px;padding:8px 12px!important}
 aside#card>.identity{height:76px;min-height:76px;width:62px;flex-basis:auto}
 aside#card .portrait-wrap{width:62px;height:72px;flex:0 0 62px;margin:0}
 aside#card>.client-flags{width:100%;padding:0;margin:0;border:0;max-width:none}
 aside#card .client-flag-chips{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
 #nav aside#card .flag-symbol{height:28px;padding:4px}
 aside#card:not(:has(.identity)){display:block!important}
 .commandbar{top:156px!important}
 #clientStrip{position:fixed;display:flex!important;top:192px;left:0;right:0;height:32px;z-index:26;padding:0 10px;overflow-x:auto;white-space:nowrap;background:var(--t-surface);scrollbar-width:none}
 #clientStrip::-webkit-scrollbar{display:none}
 #clientStrip .strip-person{display:flex!important;gap:8px;padding-right:10px;flex-shrink:0}
 #clientStrip .strip-person>.strip-label,#clientStrip .strip-demo{display:none}
 #clientStrip .strip-person strong{font-size:11px}
 #clientStrip .strip-item{flex-shrink:0;padding-inline:9px}
 .app,.app.cardhidden{padding-top:224px}
 aside#card .cardbody{top:156px}
 dialog{margin-top:234px;max-height:calc(100dvh - 244px)}
 dialog::backdrop{background:linear-gradient(to bottom,transparent 224px,#020b14b8 224px)}
}
