.reporting-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--zg-space-4);padding:0;min-width:0}
.reporting-overview-kpis.reporting-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.reporting-review-list{display:grid;gap:var(--zg-space-3)}
.reporting-review-list>div{display:flex;align-items:center;justify-content:space-between;gap:var(--zg-space-4)}
.reporting-review-list>div>span{min-width:0;overflow-wrap:anywhere}
.reporting-review-list .zg-field__help{display:block;margin-top:var(--zg-space-1)}
.reporting-workspace [data-overview-section]>summary{cursor:pointer;font-weight:var(--zg-weight-label)}
.reporting-workspace [data-overview-section][open]>summary{margin-bottom:var(--zg-space-4)}
@media(max-width:768px){.reporting-overview-kpis.reporting-kpis{grid-template-columns:1fr}}
.reporting-analysis{display:grid;gap:var(--zg-space-4);min-width:0}
.reporting-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--zg-space-4)}
.reporting-analysis-card{min-width:0}
.reporting-analysis-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--zg-space-4)}
.reporting-analysis-svg{display:block;width:100%;height:auto}
.reporting-analysis-svg text{fill:var(--zg-text-secondary);font-size:var(--zg-font-caption)}
.reporting-series-0{fill:var(--zg-text-muted);color:var(--zg-text-muted)}
.reporting-series-1{fill:var(--zg-accent-primary);color:var(--zg-accent-primary)}
.reporting-series-2{fill:var(--zg-text-secondary);color:var(--zg-text-secondary)}
.reporting-analysis-axis{fill:none;stroke:var(--zg-border-soft);stroke-width:1}
.reporting-chart-legend{display:flex;flex-wrap:wrap;gap:var(--zg-space-3)}
.reporting-distribution,.reporting-balance-list{display:grid;gap:var(--zg-space-3);list-style:none;padding:0}
.reporting-distribution li>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--zg-space-2)}
.reporting-distribution meter{width:100%}
.reporting-balance-list li{display:grid;grid-template-columns:minmax(0,1fr) minmax(60px,1fr) auto;align-items:center;gap:var(--zg-space-2)}
.reporting-balance-list svg{width:100%;height:auto}
.reporting-balance-list button{white-space:normal;overflow-wrap:anywhere}
.reporting-analysis-facts{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--zg-space-3)}
.reporting-analysis-facts dd{margin:0}
.reporting-workspace .reporting-period-table :is(th,td){white-space:normal;min-width:140px}
@media(max-width:1100px){.reporting-analysis-actions{grid-template-columns:1fr}}
@media(max-width:768px){.reporting-analysis-grid{grid-template-columns:1fr}}
#reportingBody{display:grid;gap:var(--zg-space-3);min-width:0}
#reportingBody>.zg-card{min-width:0}
.reporting-workspace[hidden]{display:none}
.reporting-toolbar,.reporting-actions{display:flex;flex-wrap:wrap;gap:var(--zg-space-3);align-items:end}
.reporting-toolbar label{flex:1;min-width:160px}
.reporting-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--zg-space-3)}
.reporting-kpis strong{display:block;font-size:var(--zg-font-h1)}
.reporting-table-wrap{min-width:0;max-width:100%;overflow:auto}
.reporting-weekly-card{min-width:0}
.reporting-weekly-card th small{display:block}
.reporting-workspace .reporting-weekly-card thead th{white-space:normal}
.reporting-workspace .zg-table th{background:var(--zg-surface-soft);color:var(--zg-text-secondary)}
.reporting-workspace .zg-table :is(th,td){white-space:nowrap}
.reporting-workspace .reporting-issues{white-space:normal;min-width:200px;max-width:350px}
.reporting-workspace .zg-table td small{display:block}
.reporting-dialog{width:min(1000px,calc(100vw - 2 * var(--zg-page-padding-x)))}
.reporting-dialog .zg-modal__body{overflow:auto;min-width:0}
#reportingDetailTabs{flex-shrink:0;overflow-x:auto;overflow-y:hidden}
.reporting-review{display:grid;gap:var(--zg-space-3)}
.reporting-review li{margin-block:var(--zg-space-2);overflow-wrap:anywhere}
.reporting-dialog .zg-modal__header h2{flex:1}
.reporting-dialog .zg-table th{background:var(--zg-surface-soft);color:var(--zg-text-secondary)}
.reporting-chart{display:block;width:100%;max-height:180px;color:var(--zg-accent-primary)}
.reporting-actions{position:sticky;bottom:0;background:var(--zg-surface-card);padding:var(--zg-space-3);border-top:1px solid var(--zg-border-soft)}
.reporting-workspace details{margin-block:var(--zg-space-3)}
.reporting-workspace summary{cursor:pointer}
.reporting-selection,.reporting-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--zg-space-2)}
.reporting-report-list .zg-table :is(th,td){white-space:normal;overflow-wrap:anywhere}
.reporting-report-list .zg-table td:nth-child(2){min-width:180px}
.reporting-report-list .zg-table td:nth-child(3){min-width:200px}
.reporting-report-list details{margin-block:var(--zg-space-2)}
.reporting-row-actions{min-width:120px}
.reporting-context h2,.reporting-context p{margin-block:0}
.reporting-loading{display:grid;justify-items:center;gap:var(--zg-space-3);padding-block:var(--zg-space-6)}
.reporting-kpis strong{overflow-wrap:anywhere}
#reportingStatus:empty,#reportingResults:empty{display:none}
.reporting-actions>span{flex:1;min-width:180px}
@media(max-width:1100px){.reporting-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.reporting-kpis{grid-template-columns:1fr}.reporting-toolbar label{flex-basis:100%}.reporting-actions button{flex:1}}

.reporting-weekly-card .reporting-weekly-negative{color:var(--zg-state-danger)}
.reporting-weekly-card .reporting-weekly-positive{color:var(--zg-state-success)}
.reporting-weekly-card .reporting-weekly-warning{color:var(--zg-state-warning)}
.reporting-weekly-card .reporting-weekly-row-inactive{background:var(--zg-surface-soft);color:var(--zg-text-muted)}
.reporting-inactive-day{color:var(--zg-text-muted);background:var(--zg-surface-soft)}

.reporting-workspace > header {display:grid;gap:var(--zg-space-2)}
.reporting-workspace > header :is(h1,p) {margin:0}
.reporting-workspace > .people-status-tabs {margin-bottom:0}
#reportingStatus:empty,#reportingResults:empty {display:none}
.reporting-capacity {display:grid;gap:var(--zg-space-4)}
.reporting-capacity :is(h3,p) {margin:0}
.reporting-capacity-settings {display:flex;flex-wrap:wrap;align-items:end;gap:var(--zg-space-3)}
.reporting-capacity-settings label {flex:0 1 240px;min-width:0}
.reporting-capacity-kpis {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--zg-space-3)}
.reporting-capacity-kpis article {display:grid;align-content:start;gap:var(--zg-space-2);min-width:0}
.reporting-capacity-kpis strong {font-size:var(--zg-font-h1)}
.reporting-capacity-kpis meter {width:100%}
.reporting-capacity details {margin:0}
.reporting-capacity li {margin-block:var(--zg-space-2)}
@media(max-width:700px) {
 .reporting-capacity-kpis {grid-template-columns:1fr}
 .reporting-capacity-settings label {flex:1 1 100%}
}

.tool-personal #reportingWorkspace > header h1 { font:var(--zg-weight-h1) var(--zg-font-h1)/var(--zg-line-h1) var(--zg-font-family); color:var(--zg-text-primary); }
