/* Keep the report workspace inside the viewport; each pane owns its scroll. */
body.report-view{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.report-view .layout{height:100%;min-height:0;overflow:hidden}
.report-view .main{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.report-view .main>.banner{flex-shrink:0}
.report-view #tab-report.active{display:flex;flex:1;min-height:0;min-width:0}
.report-view #tab-report>.card{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%;margin-bottom:0;overflow:hidden}
.report-view #tab-report .card-header{flex-shrink:0;flex-wrap:wrap}
.report-view #tab-report .report-shell{flex:1;min-height:0;min-width:0;grid-template-columns:260px minmax(0,1fr);align-items:stretch;overflow:hidden}
.report-view #tab-report .report-shell>aside{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.report-view #tab-report .report-shell>aside>.agent-dialog{flex-shrink:0;font-size:12px}
.report-view #reportList{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:4px}
.report-view #reportList .report-person{flex:0 0 auto}
.report-view #reportContent{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:auto}
.report-view #reportList,.report-view #reportContent{scrollbar-width:thin;scrollbar-color:#b8c9d2 transparent}
.report-view #reportList::-webkit-scrollbar,.report-view #reportContent::-webkit-scrollbar{width:8px;height:8px}
.report-view #reportList::-webkit-scrollbar-thumb,.report-view #reportContent::-webkit-scrollbar-thumb{background:#b8c9d2;border-radius:8px;border:2px solid transparent;background-clip:padding-box}
@media(max-width:1100px) and (min-width:769px){
 .report-view #tab-report .report-shell{grid-template-columns:220px minmax(0,1fr);gap:12px}
 .report-view #reportContent{padding:16px}
}
@media(max-width:768px){
 .report-view .sidebar{flex:0 0 auto;max-height:none;overflow:hidden}
 .report-view .sidebar-header{display:none}
 .report-view .sidebar-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px 10px}
 .report-view .sidebar-nav-label{display:none}
 .report-view .sidebar-nav .tab{flex:0 0 auto;width:auto;white-space:nowrap;padding:8px 10px}
 .report-view .main{flex:1;min-height:0;height:auto;padding:10px}
 .report-view .main>.banner{padding:10px 14px;margin-bottom:10px;gap:2px}
 .report-view .banner-left h1{font-size:16px}
 .report-view .banner-subtitle,.report-view .banner-badge{display:none}
 .report-view #tab-report>.card{padding:12px}
 .report-view #tab-report .card-header{margin-bottom:10px;gap:8px}
 .report-view #tab-report .report-toolbar{margin-left:0;gap:6px}
 .report-view #tab-report .report-shell{grid-template-columns:1fr;grid-template-rows:minmax(90px,24%) minmax(0,1fr);gap:10px}
 .report-view #tab-report .report-shell>aside>.agent-dialog{display:none}
 .report-view #reportList{border-bottom:1px solid var(--border);padding-bottom:8px}
 .report-view #reportList .report-person{padding:8px 10px}
 .report-view #reportContent{padding:12px}
 .report-view .report-head{flex-wrap:wrap;gap:8px}
}
@media print{
 body.report-view,.report-view .layout,.report-view .main{height:auto;min-height:0;overflow:visible}
 .report-view .layout,.report-view .main,.report-view #tab-report.active,.report-view #tab-report>.card,.report-view #tab-report .report-shell{display:block;overflow:visible;height:auto}
 .report-view .main{margin:0;padding:0;max-width:none}
 .report-view .sidebar,.report-view .banner,.report-view .report-toolbar,.report-view #tab-report .report-shell>aside{display:none}
 .report-view #reportContent{overflow:visible;height:auto;max-height:none;box-shadow:none}
}
