/* Reports share the studio's green, gold, cream and serif headings. */
#view-insights .page-head>div:first-child{max-width:48rem}
#view-insights .insight-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#view-insights .insight-metrics article{min-width:0;padding:22px;background:#fffdf8}
#view-insights .insight-metrics span{font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.08em}
#view-insights .insight-metrics strong{font-size:clamp(23px,2vw,32px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#view-insights .insight-metrics small{font:12px/1.5 system-ui,sans-serif;color:#65716a}
#view-insights .panel-head{padding:24px 24px 12px;gap:16px}
#view-insights .panel-head h2,#view-overview .pulse-preview h2{font:500 clamp(22px,2vw,28px)/1.2 'Iowan Old Style',Georgia,serif;letter-spacing:-.025em}
#view-insights .panel-head .eyebrow{font-size:10px;line-height:1.5;margin-bottom:8px}
#view-insights .insight-panel{min-height:0;align-self:start;padding-bottom:24px}
#profitBySpecialty,#paymentMix,#capacityGuard,#projectProfit{display:block;padding:8px 24px 0;min-width:0}
#view-insights .insight-layout{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
.report-empty{padding:26px 0;min-height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px}
.report-empty strong{display:block;font:600 16px/1.4 system-ui,sans-serif;color:#263c32}
.report-empty p,.report-caption,#reportsDataNote{margin:0;font:13px/1.65 system-ui,sans-serif;color:#647168;max-width:65ch}
.report-caption{margin-bottom:16px}
#reportsDataNote{margin:0 0 18px}
#view-insights .revenue-chart,#view-overview .mini-chart{height:auto;display:block;padding:12px 24px 20px}
.report-chart-scroll{overflow-x:auto;overscroll-behavior-x:contain}
.recorded-chart{display:block;width:100%;min-width:0;max-height:310px;overflow:visible}
.report-chart-mobile{display:none}
.recorded-chart text{font:12px system-ui,sans-serif;fill:#65716a}
.report-gridline{stroke:#e5e8e0;stroke-width:1}
.report-zero{stroke:#88988f;stroke-width:1.5}
.report-bar.received{fill:#153b2d}.report-bar.net{fill:#bc984e}.report-bar.loss{fill:#a34632}
.report-chart-details{margin-top:12px;font:12px/1.5 system-ui,sans-serif;color:#4c6055}
.report-chart-details summary{cursor:pointer;padding:6px 0;width:fit-content}
.report-table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
.report-table-scroll table{width:100%;border-collapse:collapse;font:12px/1.55 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.report-table-scroll th,.report-table-scroll td{padding:12px 10px;border-bottom:1px solid #e6e9e1;text-align:right;white-space:nowrap}
.report-table-scroll th:first-child{text-align:left;white-space:normal;min-width:100px}
.report-table-scroll thead th{color:#65716a;font-weight:600;font-size:11px}
.report-table-scroll tbody th{font-weight:600;color:#263c32}
.report-table-scroll caption{text-align:left;padding:12px 0;color:#65716a}
.report-loss{color:#a34632!important}
.report-method{margin-top:18px}.report-method>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font:13px/1.5 system-ui,sans-serif}
.report-method span{font-variant-numeric:tabular-nums;text-align:right}.report-method small{display:inline-block;color:#65716a;margin-left:8px;font-size:12px}
.report-method-track{height:7px;background:#edece1;border-radius:5px;margin-top:9px;overflow:hidden}.report-method-track i{display:block;height:100%;background:#315a46;border-radius:5px}
.report-open-invoices>div{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e6e9e1;padding:14px 0;font:13px/1.5 system-ui,sans-serif}
.report-open-invoices strong,.report-open-invoices small{display:block}.report-open-invoices small{color:#65716a;margin-top:4px}.report-open-invoices b{white-space:nowrap;font-variant-numeric:tabular-nums}
#capacityGuard>.button{margin-top:18px}
#projectProfit .project-profit-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;padding:15px 0;min-width:0}
#projectProfit .project-profit-row>span{display:block}#projectProfit .project-profit-row b{font-size:13px;line-height:1.5}#projectProfit .project-profit-row small{font-size:11px;line-height:1.5}
.report-period-control{display:grid;gap:8px;min-width:210px;font:600 12px/1.5 system-ui,sans-serif;letter-spacing:0;color:#3d5347}
.report-period-control select,.report-period-control input{min-height:40px;padding:8px 12px;border:1px solid #cdd5ca;border-radius:8px;background:#fffdf8;color:#183c2c;font:14px system-ui,sans-serif;width:100%;min-width:0}
.report-period-control>small{font:11px/1.5 system-ui,sans-serif;color:#65716a}
#showoryCustomRange{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px}#showoryCustomRange[hidden]{display:none}
#showoryCustomRange label{display:grid;gap:6px;font-size:12px}#reportRangeError{color:#a34632;font:12px/1.5 system-ui,sans-serif}
#view-overview .pulse-kpis{padding:12px 24px 16px;flex-wrap:wrap;gap:28px}#view-overview .pulse-kpis span{font:12px/1.5 system-ui,sans-serif;color:#65716a}#view-overview .pulse-kpis strong{font-size:26px;font-variant-numeric:tabular-nums}
#overviewPeriod{display:block;padding:0 24px;color:#65716a;font:12px/1.5 system-ui,sans-serif}
#view-insights .chart-legend{font-size:12px;flex-wrap:wrap;line-height:1.5}#view-insights .chart-legend .revenue-key{background:#153b2d}#view-insights .chart-legend .profit-key{background:#bc984e}
#view-overview .report-chart-legend{padding:0 24px;font:12px/1.5 system-ui,sans-serif;color:#65716a}
.report-period-control :focus-visible,.report-chart-details summary:focus-visible{outline:2px solid #957124;outline-offset:3px}
@media(max-width:1200px){#view-insights .insight-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}#view-insights .insight-layout{grid-template-columns:1fr}}
@media(max-width:700px){#view-insights .page-head,#view-insights .panel-head{align-items:flex-start;flex-direction:column}#view-insights .head-buttons,.report-period-control{width:100%}#view-insights .insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#view-insights .insight-metrics article{padding:18px}#view-insights .panel-head{padding:20px 18px 10px}#profitBySpecialty,#paymentMix,#capacityGuard,#projectProfit{padding-inline:18px}#showoryCustomRange{grid-template-columns:1fr}#view-overview .pulse-preview{grid-template-columns:1fr}#projectProfit .project-profit-row{gap:10px}#projectProfit .project-profit-row b{font-size:12px}#view-insights .revenue-chart,#view-overview .mini-chart{padding-inline:18px}}
@media(max-width:380px){#view-insights .insight-metrics{grid-template-columns:1fr}}

@media(max-width:700px){.report-chart-desktop{display:none}.report-chart-mobile{display:block}}

#view-insights .chart-legend .loss-key{background:#a34632}
