/* Workspace navigation and dashboard adapt to the usable viewport. */
.workspace-layout{--workspace-sidebar-width:248px}
.workspace-layout .workspace-sidebar{width:var(--workspace-sidebar-width);height:100dvh;padding:20px 12px 12px;overflow:hidden}
.workspace-layout .workspace-shell{margin-left:var(--workspace-sidebar-width)}
.workspace-layout .sidebar-brand{flex-shrink:0;padding:0 10px 18px}
.workspace-layout .sidebar-section-label{flex-shrink:0;margin:2px 0;padding:8px 12px}
.workspace-layout .sidebar-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;padding-bottom:12px;-webkit-overflow-scrolling:touch}
.workspace-layout .sidebar-nav>a{min-height:46px;padding:11px 12px;font-size:13px;line-height:1.5;gap:10px}
.workspace-layout .sidebar-nav>a span{white-space:normal}
.workspace-layout .sidebar-bottom{flex-shrink:0;margin-top:0;padding-top:8px}
.workspace-layout .sidebar-bottom>a{min-height:44px;margin:0}
.workspace-layout .sidebar-note{display:none}
.sidebar-mobile-heading{display:none}
.workspace-layout .workspace-topbar{padding:0 28px;height:72px;gap:16px}
.workspace-layout .topbar-location{min-width:0;max-width:none}
.workspace-layout .topbar-user{gap:12px;min-width:0}
.workspace-layout .user-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-layout .workspace-main{padding:28px;max-width:1500px;min-width:0}
.workspace-layout .menu-toggle,.workspace-layout .icon-button{min-width:44px;min-height:44px;flex-shrink:0}
.dashboard-workspace .page-heading{flex-wrap:wrap;gap:16px;margin-bottom:22px}
.dashboard-workspace .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-workspace .stat-card{min-width:0;padding:20px}
.dashboard-workspace .stat-top{font-size:12px}
.dashboard-workspace .stat-footnote{font-size:12px;line-height:1.5;color:#60766c}
.dashboard-workspace .metric{margin-top:12px}
.dashboard-workspace .dash-section-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.dashboard-workspace .dash-section-nav a{display:flex;align-items:center;min-height:44px;padding:9px 16px;border:1px solid #dce5e3;border-radius:24px;background:white;font-size:13px}
.dashboard-workspace .dash-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dashboard-workspace .dash-service-card{display:flex;align-items:flex-start;gap:12px;padding:18px;border:1px solid #dce5e3;border-radius:12px;min-width:0;background:white;text-decoration:none;color:#193a31}
.dashboard-workspace .dash-service-card:hover{background:#f4f8f6;border-color:#93b9a7}
.dashboard-workspace .dash-service-copy{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.dashboard-workspace .dash-service-copy strong{font-size:15px;line-height:1.5}
.dashboard-workspace .dash-service-copy>span{font-size:13px;color:#526761;line-height:1.6}
.dashboard-workspace .dash-service-copy .dash-service-action{color:#146348;font-weight:600;margin-top:4px}
.dashboard-workspace .dash-service-action .safety-icon{width:16px;height:16px}
.dashboard-workspace .dash-search input{margin:0!important;min-height:24px!important}
.dashboard-workspace .dash-panel{scroll-margin-top:90px}
.dashboard-workspace .dash-table{white-space:normal}
@media(max-width:1350px){.dashboard-workspace .dash-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-workspace .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1051px){.workspace-layout .workspace-sidebar{transform:none}.workspace-layout .menu-toggle{display:none}.workspace-layout .sidebar-scrim{display:none!important}}
@media(max-width:1050px){
 .workspace-layout .workspace-shell{margin-left:0}
 .workspace-layout .workspace-sidebar{width:min(320px,calc(100vw - 48px));transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s;padding-top:max(18px,env(safe-area-inset-top))}
 .workspace-layout.sidebar-open .workspace-sidebar{transform:translateX(0);visibility:visible}
 .workspace-layout.sidebar-open{overflow:hidden}
 .workspace-layout .sidebar-mobile-heading{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:0 10px 8px;color:#c7ddce;font-size:13px}
 .workspace-layout .sidebar-close{color:white;padding:0}
 .workspace-layout .sidebar-close:before{content:'×';font-size:28px}
 .workspace-layout .sidebar-close .safety-icon{display:none}
 .workspace-layout .menu-toggle{display:inline-flex}
 .workspace-layout.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:45;background:#0b241b80;touch-action:none}
 .workspace-layout .workspace-sidebar{z-index:50}
 .workspace-layout .workspace-topbar{padding:0 20px}
 .workspace-layout .workspace-main{padding:24px 20px}
}
@media(max-width:700px){
 .workspace-layout .workspace-topbar{height:64px;padding:0 12px;gap:8px}
 .workspace-layout .topbar-location{flex:1;gap:8px}
 .workspace-layout .topbar-user{gap:6px}
 .workspace-layout .topbar-user .pilot-pill{display:none}
 .workspace-layout .user-name{display:none}
 .workspace-layout .workspace-main{padding:20px 14px}
 .dashboard-workspace .page-heading h1{font-size:25px!important;letter-spacing:-.6px}
 .dashboard-workspace .page-heading p{font-size:14px}
 .dashboard-workspace .date-chip{display:none}
 .dashboard-workspace .dash-panel{padding:18px;margin-top:16px}
 .dashboard-workspace .dash-panel-heading{flex-direction:column;align-items:stretch;gap:12px}
 .dashboard-workspace .dash-panel-heading>a{align-self:flex-start}
 .dashboard-workspace .dash-service-grid{grid-template-columns:1fr}
 .dashboard-workspace .dash-service-card{padding:16px}
 .dashboard-workspace .dash-search{width:100%;flex:auto}
 .dashboard-workspace .dash-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .dashboard-workspace .dash-quick-action .button{padding:10px;font-size:13px;min-height:48px}
 .dashboard-workspace .dash-help{font-size:12px}
 .dashboard-workspace .dash-section-nav{gap:6px}
 .dashboard-workspace .dash-section-nav a{padding:8px 12px;font-size:12px}
 .dashboard-workspace .dash-kanban{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-workspace .stat-card{padding:14px}
 .dashboard-workspace .stat-top{align-items:flex-start;gap:6px;font-size:12px}
 .dashboard-workspace .stat-top .icon-square{width:26px;height:26px}
 .dashboard-workspace .stat-footnote{font-size:11px}
 .dashboard-workspace .dash-table{min-width:0;table-layout:auto}
 .dashboard-workspace .dash-table thead{display:none}
 .dashboard-workspace .dash-table tbody tr{display:grid;grid-template-columns:1fr;padding:14px;border-bottom:1px solid #dce5e3}
 .dashboard-workspace .dash-table tbody tr:last-child{border-bottom:0}
 .dashboard-workspace .dash-table th,.dashboard-workspace .dash-table td{width:auto!important;border:0;padding:5px 0;font-size:13px}
 .dashboard-workspace .dash-table td .button{min-height:44px}
 .dashboard-workspace .dash-empty-cell{padding:14px!important}
}
@media(max-width:380px){.dashboard-workspace .dash-kanban{grid-template-columns:1fr}.workspace-layout .breadcrumb-divider{margin:0 5px}}
@media(max-height:540px){.workspace-layout .sidebar-brand{padding-bottom:10px}.workspace-layout .sidebar-brand img{width:30px;height:30px}.workspace-layout .sidebar-bottom{display:none}}
@media(prefers-reduced-motion:reduce){.workspace-layout .workspace-sidebar{transition:none}}

/* Adjustable desktop sidebar, readable text, and compact icon navigation. */
.sidebar-desktop-controls,.sidebar-resize{display:none}
.workspace-layout .sidebar-nav>a{font-size:14px;line-height:1.5}
.workspace-layout .sidebar-section-label{font-size:10px;letter-spacing:1px}
.workspace-layout .topbar-location,.workspace-layout .user-name{font-size:14px}
.workspace-layout .user-name small{font-size:11px}
.dashboard-workspace .dash-panel-heading p,.dashboard-workspace .dash-help{font-size:13px;line-height:1.65}
.dashboard-workspace .dash-panel-heading h2{font-size:20px}
.dashboard-workspace .dash-service-copy strong{font-size:16px}
.dashboard-workspace .dash-service-copy>span{font-size:14px}
@media(min-width:1051px){
 .workspace-layout .sidebar-desktop-controls{display:flex;justify-content:flex-end;flex-shrink:0;margin:-10px 0 4px}
 .workspace-layout .sidebar-desktop-controls button{color:#dceee2;min-width:36px;min-height:36px;padding:0;font-size:27px}
 .workspace-layout .sidebar-resize{display:block;position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:2}
 .workspace-layout .sidebar-resize:hover,.workspace-layout .sidebar-resize:focus-visible{background:#a9d2b870;outline-offset:-3px}
 .workspace-layout.sidebar-resizing{cursor:col-resize;user-select:none}
 .workspace-layout.sidebar-collapsed .workspace-sidebar{width:76px;padding-left:10px;padding-right:10px}
 .workspace-layout.sidebar-collapsed .workspace-shell{margin-left:76px}
 .workspace-layout.sidebar-collapsed .sidebar-brand{padding:0 0 16px;justify-content:center}
 .workspace-layout.sidebar-collapsed .sidebar-brand>span,
 .workspace-layout.sidebar-collapsed .sidebar-nav>a>span,
 .workspace-layout.sidebar-collapsed .sidebar-section-label{display:none}
 .workspace-layout.sidebar-collapsed .sidebar-nav>a{justify-content:center;padding:12px 0;min-height:46px}
 .workspace-layout.sidebar-collapsed .sidebar-bottom>a{font-size:0;justify-content:center;padding:12px 0;gap:0}
 .workspace-layout.sidebar-collapsed .sidebar-bottom>a .safety-icon{font-size:18px}
 .workspace-layout.sidebar-collapsed .sidebar-desktop-controls{justify-content:center}
 .workspace-layout.sidebar-collapsed .sidebar-resize{display:none}
}
@media(max-width:700px){
 .workspace-layout .topbar-location{font-size:12px}
 .dashboard-workspace .dash-panel-heading h2{font-size:18px}
 .dashboard-workspace .dash-service-copy strong{font-size:15px}
 .dashboard-workspace .dash-service-copy>span{font-size:13px}
 .dashboard-workspace .dash-help{font-size:12px}
}
