/* Shared dashboard tokens, flat report sections, readable numeric panels. */
.client-report-charts{display:grid;gap:16px;min-width:0;color:var(--brand-ink);font:inherit}
.client-report-charts .crg-section{padding:20px;min-width:0}
.client-report-charts h2{margin:0 0 14px;font-size:1.15rem}.client-report-charts h3{margin:0 0 6px;font-size:1rem}
.client-report-charts .crg-heading{padding:20px 0}.client-report-charts .crg-heading button{margin-bottom:8px}
.client-report-charts .crg-figure{margin:18px 0 0;padding:16px 0;border-top:1px solid var(--brand-border);min-width:0;break-inside:avoid}
.client-report-charts .crg-meta,.client-report-charts .crg-note,.client-report-charts small{font-size:.82rem;color:var(--brand-muted);overflow-wrap:anywhere}
.client-report-charts p{overflow-wrap:anywhere}.client-report-charts svg{display:block;width:100%;height:auto;font:12px 'Open Sans',sans-serif;overflow:visible}
.client-report-charts svg text{fill:var(--brand-ink)}.client-report-charts .crg-axis{stroke:var(--brand-border);stroke-width:1}
.client-report-charts .crg-line{fill:none;stroke-width:2.5;stroke-linejoin:round}
.client-report-charts .crg-legend{display:flex;gap:12px;flex-wrap:wrap}.client-report-charts .crg-legend i{width:12px;height:12px;display:inline-block;margin-right:5px}
.client-report-charts .crg-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.client-report-charts .crg-controls label{display:grid;gap:6px;max-width:100%;font-weight:600}
.client-report-charts .crg-controls select{max-width:100%;min-width:0}.client-report-charts .crg-controls input{width:90px}
.client-report-charts .crg-table-scroll{overflow-x:auto}.client-report-charts table{width:100%;border-collapse:collapse;text-align:left;font-size:.84rem}
.client-report-charts th,.client-report-charts td{padding:9px;border-bottom:1px solid var(--brand-border);vertical-align:top;overflow-wrap:anywhere}
.client-report-charts small{display:block;margin-top:4px}.client-report-charts .crg-events{padding-left:20px}.client-report-charts .crg-events li{padding:5px 0;overflow-wrap:anywhere}
.client-report-charts .crg-unavailable{color:var(--brand-muted);margin:8px 0}.client-report-charts .crg-paired{display:flex;min-height:48px;border-radius:8px;overflow:hidden}
.client-report-charts .crg-paired div{display:flex;justify-content:center;align-items:center;color:white;font-weight:700;min-width:0}.client-report-charts .crg-paired span{padding:4px;font-size:.8rem;background:var(--surface-card);color:var(--brand-ink);border-radius:4px}
.client-report-charts .crg-funnel{list-style:none;padding:0;max-width:640px}.client-report-charts .crg-funnel li{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--brand-border)}
@media(max-width:600px){.client-report-charts .crg-section{padding:14px}.client-report-charts .crg-controls{display:grid;grid-template-columns:minmax(0,1fr)}.client-report-charts svg{font-size:13px}.client-report-charts .crg-funnel li{display:grid;gap:6px}.client-report-charts th,.client-report-charts td{padding:6px}}
@media print{body.crg-printing{background:white!important}body.crg-printing nav,body.crg-printing header,body.crg-printing footer,body.crg-printing .client-reports form,body.crg-printing .crg-controls,body.crg-printing .crg-heading button{display:none!important}.client-report-charts{display:block;color:#13181c;--brand-green:#6ead44;--brand-panel-soft:#313d46;--brand-muted:#6b7882;--brand-border:#ccc}.client-report-charts .crg-section{box-shadow:none!important;background:white!important;border:0;padding:0;margin:0 0 20px;break-inside:auto}.client-report-charts .crg-figure{break-inside:avoid-page;page-break-inside:avoid}.client-report-charts .crg-table{display:block;font-size:9pt}.client-report-charts .crg-table-scroll{overflow:visible}.client-report-charts svg{max-height:190mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}.client-report-charts .crg-paired{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.client-report-charts .crg-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}.client-report-charts .crg-summary>div{padding:12px 0;border-bottom:1px solid var(--brand-border);min-width:0}.client-report-charts .crg-summary dt{font-weight:600}.client-report-charts .crg-summary dd{font-size:1.25rem;font-weight:700;margin:8px 0;overflow-wrap:anywhere}@media(max-width:600px){.client-report-charts .crg-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

@media print{body.crg-printing .client-reports>section:first-child>:not([data-cr-calculations]),body.crg-printing .client-reports>section:not(:first-child),body.crg-printing [data-cr-calculations]>summary{display:none!important}.client-report-charts .crg-heading{padding:0}.client-report-charts .crg-section{padding:0!important}}

/* Source tables keep the same flat numeric style; narrow screens stack provenance. */
.client-report-charts.crg-source table{table-layout:fixed}
.client-report-charts.crg-source th:nth-child(1){width:24%}
.client-report-charts.crg-source th:nth-child(2){width:27%}
.client-report-charts.crg-source th:nth-child(3){width:14%}
.client-report-charts.crg-source th:nth-child(4){width:35%}
@media screen and (max-width:680px){
 .client-report-charts.crg-source table,.client-report-charts.crg-source tbody{display:block}
 .client-report-charts.crg-source thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .client-report-charts.crg-source tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px 0;border-bottom:1px solid var(--brand-border)}
 .client-report-charts.crg-source td{padding:4px 0;border:0;min-width:0}
 .client-report-charts.crg-source td:first-child,.client-report-charts.crg-source td:last-child{grid-column:1/-1}
 .client-report-charts.crg-source td:nth-child(2){font-weight:600}
 .client-report-charts.crg-source td:nth-child(3){text-align:right}
}
.cre-client .client-report-charts.crg-source td,.cre-client .client-report-charts.crg-source th{overflow-wrap:anywhere}
@media screen and (max-width:680px){.cre-client .client-report-charts.crg-source table{min-width:0;width:100%}}
