/* One application frame: persistent desktop navigation, compact page tabs and cards. */
:root{--cq-bg:#f5f6f8;--cq-line:#e3e8ec;--cq-muted:#62747e;--navigation-width:216px}
#appNavigation{position:fixed;inset:0 auto 0 0;z-index:100;width:var(--navigation-width);max-width:none;height:100dvh;min-height:0;margin:0;padding:26px 14px 16px;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;border:0;border-right:1px solid var(--cq-line);background:#fff;color:var(--cq-ink);text-align:left}
.navigation-brand{display:flex;align-items:center;justify-content:space-between;flex:none;padding:0 8px 26px;gap:6px}
#appNavigation .workspace-brand{gap:10px}
#appNavigation .workspace-brand strong{font-size:18px;font-weight:650}
.navigation-sections{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px}
#appNavigation .navigation-label{margin:17px 12px 7px;color:var(--cq-muted);font-size:11px;letter-spacing:.04em}
#appNavigation .navigation-label:first-child{margin-top:0}
#appNavigation nav{display:flex;flex-direction:column;gap:4px;width:auto;margin:0;padding:0;border:0;border-radius:0;background:none}
#appNavigation nav a{display:flex;align-items:center;gap:11px;min-height:42px;padding:10px 12px;border:0;border-radius:7px;font-size:14px;font-weight:400;text-decoration:none;white-space:normal;color:var(--cq-muted);background:transparent}
#appNavigation nav a:hover{background:#f5f7f9;color:var(--cq-ink)}
#appNavigation nav a[aria-current=page]{background:#eef3f5;color:var(--cq-ink);font-weight:600;box-shadow:inset 3px 0 #6c939e}
#appNavigation svg,.mobile-appbar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.navigation-footer{display:grid;gap:4px;flex:none;margin:18px 10px 0;padding-top:15px;border-top:1px solid var(--cq-line);font-size:13px}
.navigation-user{overflow-wrap:anywhere;color:var(--cq-ink)}
#appNavigation #logoutButton{justify-self:start;border:0;background:none;padding:6px 0;min-height:32px;color:var(--cq-muted);font:inherit;cursor:pointer}
#appNavigation #logoutButton:hover{color:var(--cq-ink);text-decoration:underline}
.mobile-appbar,#navigationClose{display:none}
#navigationBackdrop[hidden]{display:none!important}
#navigationBackdrop{position:fixed;inset:0;z-index:90;border:0;background:#192b3d55;margin:0;padding:0;touch-action:none}
.has-app-navigation.workbench-shell .app-shell{padding-left:var(--navigation-width);width:100%;margin:0;height:100%;display:block}
.has-app-navigation.workbench-shell #scrollInner{max-width:1520px;padding:12px 8px 40px}
.has-app-navigation.utility-page #scrollArea{margin-left:var(--navigation-width);width:calc(100% - var(--navigation-width))}
.has-app-navigation.utility-page #scrollInner{max-width:1520px;padding:32px 32px 40px}
.has-app-navigation.marketing-shell{padding-left:var(--navigation-width)}
.has-app-navigation.marketing-shell>main{max-width:1520px;margin:auto;padding-top:12px;min-width:0}
.has-app-navigation .hero h1,.has-app-navigation .marketing-heading h1{font-size:24px;font-weight:650;color:var(--cq-ink);letter-spacing:0}
.has-app-navigation .marketing-heading{max-width:none;padding:16px 32px 20px}
.has-app-navigation.consultation-shell>main{padding-inline:32px}
.has-app-navigation.consultation-shell .marketing-heading{padding-inline:0}
.has-app-navigation.marketing-shell .wrap{max-width:none;padding-inline:32px}
.has-app-navigation.workbench-shell .hero{padding-bottom:20px}
.has-app-navigation.workbench-shell .specialty-navigation{margin:0 24px 8px;padding:0;background:none;border-bottom:1px solid var(--cq-line)}
.has-app-navigation.workbench-shell .specbar{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:thin}
.has-app-navigation.workbench-shell .specbar .sptab{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--cq-muted);min-height:44px;padding:9px 14px}
.has-app-navigation.workbench-shell .specbar .sptab.active{border-bottom-color:#7f979f;background:transparent;color:var(--cq-ink);font-weight:600}
.has-app-navigation.workbench-shell #businessTabs{position:sticky;top:0;padding:0;gap:8px;border:0;border-bottom:1px solid var(--cq-line);border-radius:0;background:var(--cq-bg);margin-bottom:16px}
.has-app-navigation.workbench-shell #businessTabs .tab{flex:none;border:0;border-bottom:2px solid transparent;border-radius:0;min-height:42px;padding:9px 15px;background:transparent;color:var(--cq-muted)}
.has-app-navigation.workbench-shell #businessTabs .tab.active{color:var(--cq-ink);border-bottom-color:#7f979f}
.has-app-navigation :is(.card,.panel,.sec){border-radius:12px;border-color:var(--cq-line);box-shadow:none}
.has-app-navigation.marketing-shell .panel{padding:18px 20px}
.has-app-navigation.workbench-shell .card-h{padding:16px 18px 12px}
.has-app-navigation.workbench-shell .card-b{padding:2px 18px 18px}
.has-app-navigation :is(.sec-title,.panel h2,.card-h){font-weight:600}
.has-app-navigation #secNav{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:thin;border-top:1px solid var(--cq-line);padding-top:8px}
.has-app-navigation #secNav a{flex:none;white-space:nowrap;padding:8px 12px;border-radius:0;border-bottom:2px solid transparent;background:none;color:var(--cq-muted);font-size:13px}
.has-app-navigation #secNav a:hover,.has-app-navigation #secNav a[aria-current=location]{color:var(--cq-ink);border-bottom-color:#7f979f;background:none}
.has-app-navigation #consultModes{width:100%;gap:6px;border:0;border-bottom:1px solid var(--cq-line);border-radius:0;overflow-x:auto;flex-wrap:nowrap;margin-bottom:14px;background:none}
.has-app-navigation #consultModes button{flex:none;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--cq-muted);padding:10px 14px;min-height:42px;white-space:nowrap}
.has-app-navigation #consultModes button[aria-pressed=true]{border-bottom-color:#7f979f;color:var(--cq-ink);background:none;box-shadow:none;font-weight:600}
.has-app-navigation .utility-heading{margin-bottom:8px;padding-bottom:18px}
.page-tabs{display:flex;gap:12px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid var(--cq-line);margin-bottom:22px}
.page-tabs button{flex:none;min-height:44px;padding:10px 16px;border:0;border-bottom:2px solid transparent;background:none;color:var(--cq-muted);font:inherit;white-space:nowrap;cursor:pointer}
.page-tabs button[aria-selected=true]{border-bottom-color:#7f979f;color:var(--cq-ink);font-weight:600}
.has-app-navigation [role=tabpanel][hidden]{display:none!important}
.has-app-navigation .sec-head>.lbtn{margin-left:auto}
.has-app-navigation #auditRows{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7}
.has-app-navigation #userForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:860px;gap:14px 20px}
.has-app-navigation #userForm>:is(.access-editor,p,div){grid-column:1/-1}
.has-app-navigation #userForm label{min-width:0}
.has-app-navigation :is(.panel,.card,.sec) :is(h2,h3){letter-spacing:0}
/* The sidebar narrows tablet content: attach filter popovers to the filter row. */
@media(max-width:1000px){.has-app-navigation .consult-select{position:static}.has-app-navigation .consult-select>div{left:8px;right:8px;min-width:0;max-width:calc(100% - 16px)}}
@media(max-width:1000px){.has-app-navigation.consultation-shell #consultCards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px) and (min-width:761px){:root{--navigation-width:188px}#appNavigation{padding-inline:10px}#appNavigation nav a{font-size:13px}.has-app-navigation.marketing-shell .cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .mobile-appbar{position:fixed;inset:0 0 auto;z-index:60;display:flex;align-items:center;gap:10px;height:56px;padding:8px 12px;background:#fff;border-bottom:1px solid var(--cq-line);font-size:15px;font-weight:600}
 .mobile-appbar button,#navigationClose{display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;border:1px solid var(--cq-line);border-radius:6px;background:white;color:var(--cq-ink);font-size:24px;cursor:pointer}
 #appNavigation{width:min(272px,calc(100vw - 48px));padding:18px 12px 14px;visibility:hidden;transform:translateX(-100%)}
 .navigation-brand{padding-bottom:22px}
 #appNavigation nav a{min-height:44px}
 .navigation-open #appNavigation{visibility:visible;transform:none}
 .has-app-navigation.workbench-shell .app-shell{padding-left:0;height:calc(100dvh - 56px);margin-top:56px}
 .has-app-navigation.workbench-shell #scrollInner{padding:0 0 28px}
 .has-app-navigation.utility-page #scrollArea{margin-left:0;margin-top:56px;width:100%;height:calc(100dvh - 56px)}
 .has-app-navigation.utility-page #scrollInner{padding:18px 12px 28px}
 .has-app-navigation.marketing-shell{padding:56px 0 0}
 .has-app-navigation.marketing-shell>main{padding-top:0}
 .has-app-navigation.consultation-shell>main{padding-inline:12px}
 .has-app-navigation.consultation-shell #consultCards .card strong{font-size:20px}
 .has-app-navigation .marketing-heading{padding:16px 12px 14px}
 .has-app-navigation.marketing-shell .wrap{padding-inline:12px}
 .has-app-navigation .hero h1,.has-app-navigation .marketing-heading h1{font-size:21px}
 .has-app-navigation.workbench-shell .hero{padding-bottom:12px}
 .has-app-navigation.workbench-shell .specialty-navigation{margin-inline:12px;margin-bottom:8px}
 .has-app-navigation.workbench-shell .specbar{gap:0}
 .has-app-navigation.workbench-shell .specbar .sptab{flex:1;padding:8px 4px;min-width:max-content;font-size:12px}
 .has-app-navigation.workbench-shell #businessTabs{gap:0;margin-bottom:12px}
 .has-app-navigation.workbench-shell #businessTabs .tab{padding-inline:12px}
 .has-app-navigation.workbench-shell .card-h{padding:12px 12px 10px}
 .has-app-navigation.workbench-shell .card-b{padding:0 12px 12px}
 .has-app-navigation.marketing-shell .panel{padding:14px 12px}
 .has-app-navigation #consultModes button{padding-inline:8px;font-size:12px}
 .has-app-navigation #userForm{grid-template-columns:1fr}
 html.navigation-open{overflow:hidden}
 body.navigation-open{overflow:hidden}
 body.navigation-open #scrollArea{overflow-y:hidden}
}
@media print{
 #appNavigation,.mobile-appbar,#navigationBackdrop{display:none!important}
 .has-app-navigation.marketing-shell,.has-app-navigation.workbench-shell .app-shell{padding:0;margin:0;height:auto}
 .has-app-navigation.utility-page #scrollArea{margin:0;width:100%;height:auto}
}

/* Data grids share a quiet header and compact rows; retain every metric and
   horizontal scrolling rather than shrinking text or hiding columns. */
.has-app-navigation table,#page-all .wb-table{font-size:13px;font-variant-numeric:lining-nums tabular-nums}
.has-app-navigation table :is(th,td),#page-all .wb-table :is(th,td){padding:7px 10px;line-height:1.5}
.has-app-navigation table thead th,.has-app-navigation table thead th:first-child,.has-app-navigation.marketing-shell table th,.has-app-navigation.marketing-shell table th:first-child,#page-all .wb-table thead th{background:#f3f6f8;color:#526774;border-bottom:1px solid #d7e1e7;font-weight:600;font-size:12px;vertical-align:middle}
.has-app-navigation table thead th:first-child{z-index:3}
.has-app-navigation table tbody td,#page-all .wb-table tbody td{border-bottom-color:#e9eef1}
.has-app-navigation table :is(.wb-link,.consult-link){font:inherit;line-height:1.5}
.has-app-navigation table .wb-link{padding:2px 0}
.has-app-navigation table :is(.wb-link,.consult-link):hover{text-decoration:underline;text-underline-offset:3px}
.has-app-navigation table button:focus-visible{outline-offset:-2px}
.has-app-navigation :is(.scroll,.table-scroll,.table-region){scrollbar-color:#98acb6 #f0f3f5}

/* Small summary tables need a bounded name column, not a third of the card. */
.has-app-navigation .doctor-summary-table table{table-layout:fixed;min-width:860px}
.doctor-summary-table .column-person{width:160px}
.doctor-summary-table .column-ratio{width:76px}
.doctor-summary-table .column-count{width:68px}
.has-app-navigation .doctor-summary-table :is(th,td):first-child{white-space:normal;overflow-wrap:anywhere}
.has-app-navigation .doctor-summary-table :is(th,td):not(:first-child){white-space:nowrap}
#page-all .speccard .schero{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 12px;margin-bottom:10px;border-radius:6px}
#page-all .speccard .schero>div{border-radius:0}
#page-all .schl{font-size:12px}
#page-all .schv{font-size:20px;margin-top:2px;line-height:1.5}
#page-all .speccard .small{line-height:1.6}

/* Put group names in a full-width band instead of tall, empty merged cells.
   Only metric labels freeze; a narrow screen still has room for the values. */
#page-all .comparison-table table{table-layout:fixed;min-width:680px}
#page-all .comparison-table .column-metric{width:132px}
#page-all .comparison-table tbody .comparison-group th{position:static;padding:7px 10px;border:0;border-top:1px solid #d7e1e7;border-bottom:1px solid #e1e8ec;background:#eef3f6;font-size:13px;font-weight:600;text-align:left}
#page-all .comparison-table .comparison-group th span{position:sticky;left:10px;display:inline-block}
#page-all .comparison-table tbody .comparison-metric{position:sticky;left:0;z-index:2;min-width:0;max-width:none;background:#fff;color:var(--cq-ink);border:0;border-bottom:1px solid #e9eef1;font-size:13px;font-weight:400;text-align:left}
#page-all .comparison-table tbody tr:hover .comparison-metric{background:#f4faf9}
#page-all .comparison-table tbody tr:last-child :is(th,td){border-bottom:0}
#page-all .comparison-table tbody td{position:static;text-align:right;white-space:nowrap}

/* Consultation grids use the same row height regardless of clickable labels. */
.has-app-navigation.consultation-shell table tbody td{padding:3px 10px;height:38px}
.has-app-navigation.consultation-shell table thead button{min-height:28px;padding:3px 0;font:inherit;color:inherit}
.has-app-navigation.consultation-shell table :is(.consult-link,.consult-row-label){min-height:30px;padding:3px 0;border:0;background:none;box-shadow:none;font-size:13px;line-height:1.5}
.has-app-navigation.consultation-shell table .consult-group>td{background:#f3f6f8;font-weight:600;border-top:1px solid #e1e8ec}
.has-app-navigation.consultation-shell table .consult-total>td{background:#eaf1f4;font-weight:600}
.has-app-navigation.consultation-shell table .consult-child>td{background:#fff;font-weight:400}
.has-app-navigation.consultation-shell table .consult-child :is(.consult-link,.consult-row-label){padding-left:18px}
.has-app-navigation.consultation-shell table tbody tr:hover>td{background:#f4faf9}
.has-app-navigation.consultation-shell #consultMain:not(.consult-week-matrix) :is(th,td):first-child{width:172px;min-width:172px;max-width:172px}
.has-app-navigation.consultation-shell .consult-week-matrix tbody td{padding:7px 10px}
.has-app-navigation.consultation-shell .consult-week-matrix .consult-week-drill{min-height:0}
@media(max-width:760px){
 .has-app-navigation table :is(th,td),#page-all .wb-table :is(th,td){padding:7px 8px}
 .has-app-navigation table :is(.wb-link,.consult-link,.consult-row-label){min-height:36px}
 .has-app-navigation.consultation-shell table :is(.consult-link,.consult-row-label){min-height:36px}
 .has-app-navigation.consultation-shell table thead button{min-height:32px}
 .has-app-navigation.consultation-shell #consultMain:not(.consult-week-matrix) :is(th,td):first-child{width:132px;min-width:132px;max-width:132px}
 #page-all .comparison-table .column-metric{width:110px}
 #page-all .speccard .schero{padding:8px}
 #page-all .schv{font-size:18px}
 .has-app-navigation .doctor-summary-table .column-person{width:140px}
}
