/* Compact overview above a single, switchable detail workspace. */
.shell{width:100%;max-width:none;margin:0;padding-top:16px;padding-bottom:16px}
.filters,.collection-overview{margin-bottom:10px}
.filters{padding:10px;gap:7px}
.card-head{margin-bottom:10px}
.card-sub{line-height:1.5}
.collection-overview{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:10px}
.collection-overview>.card{padding:12px;gap:9px}
.collection-overview .card-title{font-size:16px}
.collection-overview .card-head{gap:6px}
.collection-trend-stats,.project-preview-overview{padding:8px 0;border-radius:6px}
.collection-trend-stats>div,.project-preview-overview>div{flex-direction:row;align-items:baseline;justify-content:space-between;gap:5px;padding:0 11px}
.collection-trend-stats strong,.project-preview-overview strong{font-size:21px}
.collection-trend-stats span,.project-preview-overview>div>span{font-size:13px}
.collection-trend-insight{margin-top:8px;font-size:12px}
#collectionTrendPlot{flex:1;justify-content:center}
#companyProjectHighlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-preview-group+.project-preview-group{margin:0;border-left:1px solid #edf1f7;padding-left:12px}
.project-preview-group-head{align-items:flex-start;margin-bottom:3px;min-height:32px;flex-direction:column;gap:2px}
.project-preview-group-head h3{font-size:13px}
.project-preview-group-head>small{font-size:12px}
.project-preview-row{grid-template-columns:21px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 5px;padding:8px 1px;min-height:54px}
.project-preview-order{grid-column:1;grid-row:1 / span 2;font-size:13px}
.project-preview-info{display:contents}
.project-preview-info>strong{grid-column:2 / -1;grid-row:1;font-size:14px}
.project-preview-info>small{grid-column:2;grid-row:2;font-size:12px}
.project-preview-track,.project-preview-arrow{display:none}
.project-preview-value{grid-column:3;grid-row:2;min-width:0;display:block}
.project-preview-value>strong{font-size:15px}
.project-preview-value>span{display:none}
.project-preview-toolbar{gap:6px}
.project-preview-total{padding:7px 10px;margin-top:auto}
.project-preview-total-head{margin-bottom:3px}
.project-preview-totals{gap:4px 8px;font-size:13px}
.project-preview-no-warning{margin:0;padding:12px;font-size:13px;align-self:center}
.collection-footnote,#collectionTrendHint{font-size:12px;line-height:1.5}
.collection-empty{padding:30px 12px;grid-column:1 / -1}

.report-workspace{min-width:0}
.report-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 7px;margin-bottom:8px;border:1px solid #e8eef6;border-radius:7px;background:#fff}
.workspace-tabs{display:flex;gap:4px;min-width:0}
.workspace-tabs button{height:34px;min-height:34px;border:1px solid transparent;border-radius:5px;padding:0 15px;background:transparent;color:#64748b;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}
.workspace-tabs button[aria-selected="true"]{background:#eff6ff;border-color:#dbeafe;color:#2563eb;font-weight:600}
.workspace-tabs button:hover:not(:disabled){color:#2563eb;background:#f1f6fe}
.workspace-tabs button:disabled{opacity:.45;cursor:not-allowed}
.workspace-tabs button:focus-visible{outline:2px solid #93c5fd;outline-offset:1px}
.workspace-caption{font-size:13px;color:#94a3b8;padding-right:7px}
[data-workspace-panel][hidden],.report-workspace>.summary-grid[hidden]{display:none!important}
.report-workspace>.detail-section,.report-workspace>.summary-grid,.report-workspace>.bottom{margin-bottom:0}
.report-workspace .card{padding:12px;min-width:0}
.report-workspace .card-head{gap:7px;align-items:center}
.report-workspace .card-actions{gap:6px}
.fee-chips{gap:6px;margin-bottom:8px}
.fee-chip{padding:4px 8px}
.detail-table-wrap,.efficiency-table-scroll{max-height:310px;overflow:auto;border:1px solid #edf1f7;border-radius:6px}
.efficiency-table-scroll .data-table{min-width:670px}
.data-table th,.data-table td{padding:8px;font-size:14px;white-space:nowrap}
.detail-table-wrap .data-table th,.efficiency-table-scroll .data-table th{position:sticky;top:0;background:#f8fafc;z-index:1}
.detail-table-wrap .data-table tfoot td,.efficiency-table-scroll .data-table tfoot td{position:sticky;bottom:0;background:#f3f7fd;z-index:1}
.bottom{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:10px}
.bottom.warnings-only{grid-template-columns:1fr}
.notice{padding:9px 0}
.notice strong{font-size:14px;font-weight:500}
.notice small{font-size:13px}

.finance-card .card-title{font-size:16px}
.finance-controls{gap:7px;padding:8px 0}
.finance-period-label{margin:7px 0;line-height:1.5}
.finance-metrics{gap:8px;margin:8px 0 12px}
.finance-metric{padding:9px 11px}
.finance-metric span{font-size:13px}
.finance-metric strong{font-size:23px;margin:4px 0;line-height:1.3}
.finance-metric small{font-size:12px;line-height:1.5}
.finance-analysis{gap:18px;margin-bottom:12px}
.finance-panel-title{margin-bottom:7px}
html:not(.dashboard-v2) .finance-chart{min-height:172px;padding-top:5px}
html:not(.dashboard-v2) .finance-chart button{height:172px}
html:not(.dashboard-v2) .finance-chart .column-bars{height:132px}
.finance-chart .column-label{margin-top:5px}
.finance-breakdowns{gap:14px}
.finance-category{min-height:36px;padding:5px 0}
.finance-category .category-track{height:3px;margin-top:4px}
.finance-category-title{margin-bottom:3px}
.finance-chart-note{margin-top:5px}
.finance-table-wrap{max-height:250px}
.finance-table th,.finance-table td{padding:7px 10px}
.finance-footnote{font-size:12px;line-height:1.6;margin-top:7px}
.budget-toolbar{gap:7px;padding-bottom:8px;margin-bottom:8px}
.budget-kpis>div{padding:7px 9px}
.budget-kpis b{font-size:19px}
.budget-table-wrap{max-height:240px}
.budget-card .report-actions{margin-top:8px;padding-top:8px}
.footer{margin-top:10px}

@media(max-width:1200px){
  .collection-overview{grid-template-columns:1fr}
  .collection-overview>.card{gap:8px}
  .project-preview-group-head{flex-direction:row;align-items:center;min-height:22px}
  .project-preview-info>small{font-size:13px}
  .bottom{grid-template-columns:1fr}
}
@media(max-width:760px){
  .shell{padding:12px}
  .filters{gap:7px;padding:8px}
  .collection-overview>.card,.report-workspace .card{padding:11px}
  .collection-overview .card-head,.report-workspace .card-head{flex-direction:row;align-items:flex-start;gap:6px}
  .collection-overview .card-actions,.report-workspace .card-actions{width:auto}
  .collection-trend-stats>div,.project-preview-overview>div{flex-direction:column;gap:2px;padding:0 9px}
  .collection-trend-stats strong,.project-preview-overview strong{font-size:21px}
  #companyProjectHighlights{grid-template-columns:1fr;gap:6px}
  .project-preview-group+.project-preview-group{padding:7px 0 0;border-left:0;border-top:1px solid #edf1f7}
  .project-preview-row{min-height:44px;padding:6px 1px;gap:2px 6px}
  .project-preview-group-head{min-height:20px}
  .project-preview-group-head>small{font-size:11px}
  .project-preview-value>strong{font-size:16px}
  .project-preview-overview>div>span,.collection-trend-stats span{font-size:12px}
  .project-preview-total{padding:6px 8px}
  .project-preview-totals{gap:3px 8px;font-size:12px}
  .report-workspace-head{padding:4px;gap:0}
  .workspace-caption{display:none}
  .workspace-tabs{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
  .workspace-tabs button{padding:0 4px;font-size:13px}
  .data-table th,.data-table td{font-size:13px;padding:7px}
  .detail-table-wrap,.efficiency-table-scroll{max-height:285px}
  .finance-metrics{grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
  .finance-metric{padding:8px}
  .finance-metric strong{font-size:20px}
  .finance-analysis{grid-template-columns:1fr;gap:12px}
  .finance-category{min-height:40px;padding:5px 0}
  .finance-table-wrap{max-height:250px}
  .budget-toolbar{gap:6px}
  .budget-table-wrap{max-height:230px}
}
