/* Report-only visual theme inspired by the supplied Adminor reference. */
body:is(.page-reports,.page-reports-admin) .workspace main{background:#f5f3fb}
body:is(.page-reports,.page-reports-admin) .workspace .page-title{padding:24px 26px;border-radius:14px;background:linear-gradient(115deg,#6437a2,#9354b6);box-shadow:0 6px 22px #6f41a21a;margin-bottom:16px;min-height:104px;align-items:center}
body:is(.page-reports,.page-reports-admin) .workspace .page-title :is(h1,p,.eyebrow){color:#fff!important}
body:is(.page-reports,.page-reports-admin) .workspace .page-title h1{font-size:24px;letter-spacing:-.4px}
body:is(.page-reports,.page-reports-admin) .workspace .page-title p{opacity:.85;margin-top:8px;font-size:12px}
body:is(.page-reports,.page-reports-admin) .workspace .page-title .date-pill{background:#ffffff20;border-color:#ffffff35;color:white}
body:is(.page-reports,.page-reports-admin) .access-tabs{gap:6px;margin-bottom:18px}
body:is(.page-reports,.page-reports-admin) .access-tabs a{border-radius:8px;padding:10px 18px;background:#fff;border:1px solid #e8e2f1;color:#71529a}
.page-reports .access-tabs a[href="?page=reports"],.page-reports-admin .access-tabs a[href="?page=reports-admin"]{background:#7343a8;color:#fff;border-color:#7343a8}
:is(.finance-report,.cs-report) .card.pad{border:1px solid #e9e5f0;border-radius:12px;box-shadow:0 3px 14px #44376a06;padding:18px}
:is(.finance-report,.cs-report) .report-stats{gap:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}
:is(.finance-report,.cs-report) .report-stats .card{position:relative;padding:18px 20px 16px 74px;min-height:112px;border-left:4px solid var(--summary-accent);--summary-accent:#7545ad;margin-bottom:0}
:is(.finance-report,.cs-report) .report-stats .card:nth-child(2){--summary-accent:#3486d5}
:is(.finance-report,.cs-report) .report-stats .card:nth-child(3){--summary-accent:#e78258}
:is(.finance-report,.cs-report) .report-icon{position:absolute;left:16px;top:20px;display:grid;place-items:center;width:42px;height:44px;border-radius:9px;background:var(--summary-accent);color:#fff;box-shadow:0 5px 12px color-mix(in srgb,var(--summary-accent) 25%,transparent);font-size:21px}
:is(.finance-report,.cs-report) .report-stat-label{font-size:12px;color:#6d6380;font-weight:500}
:is(.finance-report,.cs-report) .report-stats strong{display:block;font-size:25px;margin:8px 0;line-height:1.2}
:is(.finance-report,.cs-report) .report-stats small{font-size:10px;line-height:1.5;color:#8c829c}
:is(.finance-report,.cs-report) .card>h2,.finance-chart>.split{padding-bottom:13px;border-bottom:1px solid #f0edf5;margin-bottom:15px}
.cs-report .cs-main-chart .cs-chart-key,.finance-chart .cs-chart-key{justify-content:center}
.finance-chart-svg>rect{opacity:.12}
.report-curve{stroke-linecap:round;stroke-linejoin:round}
.cs-report .cs-goal{height:20px;margin-top:14px}
.cs-report .cs-big-number{font-size:36px;color:#65419a}
.cs-report .cs-side-cards .card{border-top:3px solid #a37ac6}
.cs-report .cs-deeper-grid{grid-template-columns:minmax(270px,.8fr) minmax(0,1.5fr);margin-top:16px;margin-bottom:20px}
.cs-report .cs-chart-values{margin-top:18px}
:is(.finance-report,.cs-report) table th{background:#f8f6fc;color:#76638b}
:is(.finance-report,.cs-report) table td{border-bottom-color:#f0edf5}
:is(.finance-report,.cs-report) .report-chart-bar{rx:3px}
@media(max-width:1100px){.cs-report .cs-deeper-grid{grid-template-columns:1fr}}
@media(max-width:760px){:is(.finance-report,.cs-report) .report-stats{grid-template-columns:1fr}body:is(.page-reports,.page-reports-admin) .workspace .page-title{padding:20px}.cs-report .cs-side-cards{grid-template-columns:1fr}}
@media print{body:is(.page-reports,.page-reports-admin) .workspace main{background:white}.finance-chart-svg>rect{opacity:1}}

/* v2.82: stable report structure for short and large data sets. */
.page-reports-admin .cs-report .cs-insight-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.page-reports-admin .cs-report .cs-side-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.page-reports-admin .cs-report .cs-side-cards .card{padding:16px 18px}
.page-reports-admin .cs-report .cs-big-number{font-size:30px;margin:6px 0}
.page-reports-admin .cs-report .cs-formula{padding-top:8px;margin-top:8px}
.page-reports-admin .cs-report .cs-goal{width:100%;height:16px;margin:10px 0 8px}
.page-reports-admin .cs-report .cs-goal-value{margin:6px 0}
.page-reports-admin .cs-report .cs-insights-head{margin:20px 0 12px}
.page-reports-admin .cs-report .cs-deeper-grid{grid-template-columns:minmax(300px,.8fr) minmax(0,1.5fr);align-items:stretch;margin:0 0 16px;gap:14px}
.page-reports-admin .cs-report .cs-deeper-grid>.card{margin-bottom:0;display:flex;flex-direction:column;min-width:0}
.page-reports-admin .cs-report .cs-donut-wrap{flex:1;align-content:center;align-items:center;justify-content:flex-start;gap:18px}
.page-reports-admin .cs-report .cs-donut-legend{max-width:none;min-width:130px}
.page-reports-admin .cs-report .cs-donut-legend li{gap:8px;align-items:center;border-bottom:1px solid #f3f0f7;padding:8px 0}
.page-reports-admin .cs-report .cs-donut-legend span{min-width:0;overflow-wrap:anywhere}
.page-reports-admin .cs-report .cs-chart-key{row-gap:8px;max-height:94px;overflow:auto}
.page-reports-admin .cs-report .cs-chart-key span{max-width:100%;overflow-wrap:anywhere}
.page-reports-admin .cs-report .cs-chart-key svg{flex-shrink:0}
.page-reports-admin .cs-report .table-scroll{max-height:440px;overflow:auto;overscroll-behavior:contain;position:relative;border:1px solid #eeeaf4;border-radius:8px;margin:12px 0}
.page-reports-admin .cs-report table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.page-reports-admin .cs-report table thead{position:sticky;top:0;z-index:3}
.page-reports-admin .cs-report table th{background:#f5f2fa;white-space:nowrap}
.page-reports-admin .cs-report table td{background:#fff}
.page-reports-admin .cs-report .cs-ranking{min-width:700px}
.page-reports-admin .cs-report .cs-ranking td:first-child{min-width:170px;max-width:280px;overflow-wrap:anywhere}
.page-reports-admin .cs-report .cs-matrix{width:max-content;min-width:100%}
.page-reports-admin .cs-report .cs-matrix :is(td,th){min-width:100px;white-space:nowrap}
.page-reports-admin .cs-report .cs-matrix tbody tr>:first-child,.page-reports-admin .cs-report .cs-matrix thead tr:first-child>:first-child{position:sticky;left:0;z-index:1}
.page-reports-admin .cs-report .cs-matrix thead tr:first-child>:first-child{z-index:4}
.page-reports-admin .cs-report .cs-matrix tbody td:first-child{min-width:190px;max-width:260px;white-space:normal;overflow-wrap:anywhere;box-shadow:3px 0 5px #40305f08}
.page-reports-admin .cs-report .cs-density-note{padding:10px 14px;border-left:3px solid #a989cc;background:#eee8f6;border-radius:6px;font-size:11px;line-height:1.6;margin:10px 0}
.page-reports-admin .cs-report .cs-chart-values{margin:0 0 16px}
@media(max-width:1100px){.page-reports-admin .cs-report .cs-deeper-grid{grid-template-columns:1fr}}
@media(max-width:650px){.page-reports-admin .cs-report .cs-side-cards{grid-template-columns:1fr}.page-reports-admin .cs-report .cs-insights-head{align-items:stretch}.page-reports-admin .cs-report .cs-trend-form{width:100%}.page-reports-admin .cs-report .table-scroll{max-height:360px}}
@media print{.page-reports-admin .cs-report .table-scroll{max-height:none;overflow:visible}.page-reports-admin .cs-report table thead{position:static}.page-reports-admin .cs-report .cs-matrix tr>:first-child{position:static}}
