/* Operational hierarchy: task context, action, then supporting ledger detail. */
html:root { --ink:#173c34; --qba-navy:#08734f; --qba-ivory:#f0f8f3; --accent:#08734f; --accent-hover:#065b3e; --accent-soft:#e4f6ea; --bg:#f0f8f3; --border:#d4e5dd; }
.ops-primary-actions { display:flex; gap:10px; flex-shrink:0; }
html body .ops-primary-actions .primary { background:#08734f; border-color:#08734f; color:#fff; }
html body .ops-primary-actions .primary:hover { background:#065b3e; }
html body { background:#f0f8f3; color:#173c34; }
html body .ops-eyebrow { margin:0 0 8px; color:#526575; font-size:12px; font-weight:600; letter-spacing:.035em; }
.ops-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:12px 0 8px; }
.ops-heading h1 { margin:0; font-size:clamp(24px,3vw,34px); font-weight:700; letter-spacing:-.035em; line-height:1.2; }
.ops-heading p:not(.ops-eyebrow) { margin:10px 0 0; max-width:620px; color:#526575; font-size:14px; line-height:1.6; }
.ops-sections { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid #d5dfe5; padding-bottom:12px; }
.ops-sections button { min-height:44px; padding:10px 16px; border-radius:6px; color:#314b5c; font-size:13px; font-weight:600; }
.ops-sections button:hover { background:#e5edf1; color:#123c4e; }
html body .dash-btn-action, html body .dash-btn-filter { min-height:44px; border-radius:6px; }
html body .dash-panel { border-color:#d5dfe5; border-radius:10px; box-shadow:0 1px 2px #172b3a06; }
html body .dash-kpi-card { border-color:#d5dfe5; border-radius:8px; padding:20px; box-shadow:none; }
html body .dash-kpi-card p { color:#526575 !important; }
html body .dash-kpi-card p[id]:not([id$="Sub"]) { color:#172b3a !important; font-variant-numeric:tabular-nums; font-size:30px !important; }
html body .dash-table td { font-variant-numeric:tabular-nums; }
html body .dash-table tbody tr:hover { background:#f1f6f8; }
html body #screenMenu { max-width:620px; padding-top:32px; }
#screenMenu > .flex:first-child { padding-bottom:24px; border-bottom:1px solid #d5dfe5; }
html body #menuUserName { font-size:28px; letter-spacing:-.03em; }
html body #menuBranch { color:#155e75; font-size:13px; margin-top:8px; }
html body #screenMenu .card { border-radius:10px; border-color:#d5dfe5; box-shadow:none; }
#screenMenu button.card { min-height:100px; }
#screenMenu button.card:hover { border-color:#155e75; background:#f8fbfc; }
html body #screenMenu .text-gray-400 { color:#526575; }
html body #myOutstandingCard { border-left:4px solid #a66a12; background:#fffaf0; }
html body #myTasksCard, html body #pendingFormsCard { background:#fff; border-left:4px solid #155e75; }
html body :is(button,a,input,select,textarea):focus-visible { outline:3px solid #155e75; outline-offset:3px; }
html body #screenMenu button { min-height:44px; }
@media(max-width:640px) {
  .ops-heading { align-items:flex-start; flex-direction:column; gap:16px; }
  .ops-heading > button { width:100%; justify-content:center; }
  .ops-primary-actions { width:100%; }
  .ops-primary-actions button { flex:1; justify-content:center; }
  .ops-sections { gap:4px; }
  .ops-sections button { padding:10px 12px; }
  html body #screenMenu { padding-top:20px; }
  html body .dash-kpi-card { padding:16px; }
}
html body.wide-mode { background:#f0f8f3; }
html body.wide-mode .dash-topbar { background:#08734f; }
html body .ops-sections button:hover { background:#e4f6ea; color:#08633f; }
html body #menuBranch { color:#08734f; }
html body #myTasksCard, html body #pendingFormsCard { border-left-color:#08734f; }
html body :is(button,a,input,select,textarea):focus-visible { outline-color:#08734f; }
html body .ops-attention-grid { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); align-items:start; }
html body .ops-attention-grid > * { min-width:0; }
#screenDashboard [id^="panel"] { scroll-margin-top:95px; }
html body .dash-kpi-card:focus-visible { outline:3px solid #08734f; outline-offset:3px; }
@media(max-width:1000px){html body .ops-attention-grid{grid-template-columns:minmax(0,1fr);}}
/* Workspace redesign: navigation is architecture, not another toolbar. */
html body #screenMenu.ops-staff-workspace{max-width:980px;padding:32px 16px 56px}
.ops-staff-masthead{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:26px;margin-bottom:32px;border-bottom:1px solid #cbded2}
.ops-staff-masthead strong{font-size:29px;letter-spacing:-1.2px;display:block;line-height:1}
.ops-staff-masthead span{font-size:12px;color:#49665e;display:block;margin-top:8px}
.ops-staff-masthead .ops-workspace-label{font-size:12px;background:#e1f2e7;padding:8px 12px;border-radius:5px;color:#21583d}
.ops-staff-identity{padding:0 0 12px!important;margin-bottom:20px!important;border:0!important}
html body .ops-staff-identity #menuUserName{font-size:36px;letter-spacing:-1.3px;line-height:1.25}
.ops-staff-actions{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0 28px}
html body #screenMenu .ops-staff-actions button.card{display:flex;flex-direction:column;align-items:flex-start;gap:20px;min-height:185px;padding:26px;border-radius:12px;text-align:left;transition:background .15s}
html body #screenMenu .ops-staff-actions .ops-staff-take{background:#08734f;border-color:#08734f;color:#fff}
html body #screenMenu .ops-staff-actions .ops-staff-take h3{color:#fff;font-size:20px}
html body #screenMenu .ops-staff-actions .ops-staff-take p{color:#daf1e5;font-size:13px}
html body #screenMenu .ops-staff-actions .ops-staff-take:hover{background:#065b3e}
.ops-staff-actions button>svg:last-child{display:none}
.ops-staff-actions button>div:first-child{width:38px;height:38px;background:#ffffff24;box-shadow:none;border-radius:8px}
.ops-staff-actions .ops-staff-settle>div:first-child{background:#e4f3e9}
.ops-staff-actions .ops-staff-settle>div:first-child svg{color:#08734f}
.ops-staff-actions .ops-staff-settle h3{font-size:20px}
.ops-staff-actions .ops-staff-settle p{font-size:13px}
.ops-staff-queue{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}
html body #screenMenu .ops-staff-queue .card{background:white;border:1px solid #d4e5dd;padding:22px;border-radius:12px;margin-bottom:0}
html body #myOutstandingList{max-height:360px;margin-top:18px}
html body #myTasksList{margin-top:18px}
html body #screenMenu #pendingFormsCard{background:#fff8e8;border:1px solid #e9d6a6;border-left:4px solid #b17b26;padding:18px 22px}
.ops-staff-help{border-top:1px solid #d4e5dd;margin-top:30px;padding-top:10px}
@media(max-width:640px){
 html body #screenMenu.ops-staff-workspace{padding:20px 0 36px}
 .ops-staff-masthead{margin-bottom:26px;padding-bottom:20px}
 .ops-workspace-label{display:none!important}
 .ops-staff-actions{gap:10px}
 html body #screenMenu .ops-staff-actions button.card{padding:18px;min-height:180px;gap:16px}
 html body #screenMenu .ops-staff-actions h3{font-size:17px!important}
 .ops-staff-queue{grid-template-columns:minmax(0,1fr)}
 html body .ops-staff-identity #menuUserName{font-size:30px}
}
.ops-panel-hidden{display:none!important}
.ops-rail{position:fixed;inset:0 auto 0 0;width:232px;background:#075d42;color:white;padding:32px 20px;display:flex;flex-direction:column;gap:28px;z-index:30}
.ops-rail-brand strong{display:block;font-size:30px;letter-spacing:-1.2px;line-height:1.1}
.ops-rail-brand span{display:block;font-size:12px;color:#c4e8d7;margin-top:8px}
.ops-rail button{min-height:46px;text-align:left;border-radius:7px;padding:12px 14px;font-size:13px;font-weight:600}
.ops-rail-assign{background:#e1f6b8;color:#20432b;border:1px solid #e1f6b8}
.ops-rail nav{display:grid;gap:7px}
.ops-rail nav button{color:#dcf1e7;background:transparent;border:1px solid transparent}
.ops-rail nav button:hover{background:#167153}
.ops-rail nav button.is-active{background:#fff;color:#075d42}
.ops-rail-note{margin-top:auto;white-space:pre-line;font-size:12px;line-height:1.8;color:#c4e8d7;border-top:1px solid #398a6d;padding-top:20px}
html body #screenDashboard.ops-shell{padding-left:232px}
html body .ops-shell .dash-topbar{margin:0;padding:16px 24px;border-radius:0;background:white;color:#173c34;border-bottom:1px solid #d4e5dd}
.ops-shell .dash-topbar-inner>div:first-child{display:none!important}
.ops-shell .dash-topbar-inner{justify-content:flex-end}
.ops-shell .ops-workspace{padding:28px 28px 48px!important;gap:24px!important}
.ops-shell .ops-heading{padding:6px 0 12px}
.ops-shell .ops-heading h1{font-size:36px;letter-spacing:-1.2px}
.ops-shell .ops-sections{display:none}
.ops-shell .dash-grid-5{gap:12px}
.ops-shell .dash-kpi-icon{display:none}
.ops-shell .dash-kpi-card{border:0;border-left:3px solid #bed8c9;border-radius:3px;padding:14px 18px;background:#ffffffb3}
.ops-shell .dash-kpi-card:nth-child(3){border-left-color:#b47b18;background:#fff9eb}
.ops-shell .dash-panel{border-radius:12px;box-shadow:0 3px 14px #173c3405}
.ops-shell .ops-attention-grid{grid-template-columns:minmax(0,1fr);gap:22px}
@media(max-width:1200px){.ops-shell .ops-attention-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){
 html body #screenDashboard.ops-shell{padding-left:0}
 .ops-rail{position:relative;width:auto;inset:auto;padding:20px;gap:16px}
 .ops-rail-brand{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .ops-rail-brand strong{font-size:24px}.ops-rail-brand span{margin:0}
 .ops-rail nav{display:flex;overflow:auto;gap:6px}.ops-rail nav button{white-space:nowrap;flex-shrink:0}
 .ops-rail-assign{text-align:center!important}.ops-rail-note{display:none}
 .ops-shell .ops-workspace{padding:24px 0!important}
 .ops-shell .ops-heading h1{font-size:28px}
 html body .ops-shell .dash-topbar{padding:12px 0}
}
/* Keep every destination visible; mobile navigation wraps instead of clipping. */
html body #panelUsageReports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
html body #panelUsageReports.ops-panel-hidden{display:none!important}
html body #panelUsageReports>.dash-panel{min-width:0;padding:20px!important;display:flex;flex-direction:column}
html body #panelUsageReports>.dash-panel>div{position:relative;height:280px!important;min-height:280px;width:100%}
html body #panelUsageReports .dash-section-title{min-height:24px;margin-bottom:16px!important}
@media(max-width:700px){
 html body #panelUsageReports{grid-template-columns:minmax(0,1fr);gap:14px}
 html body #panelUsageReports>.dash-panel{padding:16px!important}
 html body #panelUsageReports>.dash-panel>div{height:240px!important;min-height:240px}
}
.ops-workspace,.ops-workspace>*{min-width:0;max-width:100%}
.ops-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #d4e5dd;font-size:12px;color:#49665e}
.ops-pager button{min-height:40px;padding:8px 14px;background:#edf6f0;color:#075d42;border:1px solid #cbded2;border-radius:6px}
.ops-pager button:disabled{opacity:.45;cursor:default}
html body .ops-shell tr.ops-page-hidden{display:none!important}
html body :is(.text-blue-600,.text-blue-700){color:#08734f}
html body :is(.bg-blue-600,.bg-blue-700){background-color:#08734f}
html body .dash-dot.accent{background:#08734f}
html body .dash-btn-action.primary{background:#08734f;border-color:#08734f}
html body #screenMenu :is(.text-blue-600,.text-blue-700){color:#08734f}
.ops-shell .dash-tbl-wrap{max-width:100%;overflow-x:auto}
.ops-shell .dash-tbl{width:100%}
.ops-shell .dash-tbl td{overflow-wrap:anywhere}
@media(max-width:800px){
 .ops-rail nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
 .ops-rail{padding:14px;gap:10px}
 .ops-rail nav button{font-size:11px;padding:8px 5px}
 .ops-shell .ops-workspace{gap:14px!important;padding-top:16px!important}
 .ops-shell .ops-heading h1{font-size:24px}
 .ops-shell .ops-heading p:not(.ops-eyebrow){display:none}
 .ops-shell .dash-kpi-card p[id]:not([id$="Sub"]){font-size:23px!important}
 .ops-rail nav button{white-space:normal;min-width:0;padding:10px}
 .ops-shell .dash-topbar-inner>div{max-width:100%;flex-wrap:wrap!important}
 .ops-shell .dash-grid-5{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .ops-shell .dash-kpi-card:last-child{grid-column:1/-1}
 .ops-shell .dash-kpi-card{padding:12px}
 .ops-shell .dash-panel>div:first-child{padding:16px!important}
 .ops-shell .dash-panel input,.ops-shell .dash-panel select{max-width:100%;min-width:0!important}
 .ops-shell .dash-panel .flex{flex-wrap:wrap}
 .ops-shell .dash-tbl-wrap{max-height:none!important;overflow:visible!important}
 html body .ops-shell .dash-tbl-wrap .dash-tbl,.ops-shell .dash-tbl tbody{display:block;width:100%;min-width:0}
 .ops-shell .dash-tbl thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .ops-shell .dash-tbl tr{display:block;padding:8px 12px;border-bottom:1px solid #d4e5dd}
 .ops-shell .dash-tbl td,.ops-shell .dash-tbl td.dash-hide-mobile{display:grid!important;grid-template-columns:minmax(75px,.65fr) minmax(0,1.35fr);gap:10px;align-items:start;max-width:none!important;width:auto!important;white-space:normal!important;text-align:left!important;border:0;padding:7px 0;font-size:13px}
 .ops-shell .dash-tbl td:before{content:attr(data-column);font-size:11px;font-weight:600;color:#49665e;text-align:left}
 .ops-shell .dash-tbl td.ops-table-message{display:block!important;padding:16px 0!important}
 .ops-shell .dash-tbl td.ops-table-message:before{display:none}
 .ops-shell .dash-tbl td button{min-height:44px}
 .ops-shell .dash-tbl td>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
