/* Reports uses the dashboard's dx chart and status-explorer presentation. */
#reports-root .reports-page { --report-blue:#3287ef; --report-green:#32b895; --report-orange:#ec9634; }
#reports-root .reports-grid.primary, #reports-root .reports-grid.secondary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#reports-root .reports-card { border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:0 6px 22px rgb(18 28 45 / 3%); padding:20px 22px 12px; min-width:0; transform:none !important; }
#reports-root .reports-card > header { min-height:32px; margin:0; padding:0; border:0; }
#reports-root .reports-card h2, #reports-root .reports-card h3 { margin:0; font-size:16px; line-height:1.3; font-weight:600; letter-spacing:-.025em; }
#reports-root .reports-eyebrow { display:none; }
#reports-root .reports-kpis { gap:14px; margin:0 0 14px; }
#reports-root .rp-kpi { position:relative; display:block; height:156px; min-height:156px; border:0; border-radius:22px; background:transparent; padding:20px; box-shadow:none; isolation:isolate; transform:none !important; }
#reports-root .rp-kpi::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; border:1px solid var(--line); border-radius:inherit; background:linear-gradient(145deg,rgb(255 255 255 / 97%),var(--surface) 65%); box-shadow:0 6px 22px rgb(18 28 45 / 3%); transition:transform .2s,box-shadow .2s; }
#reports-root .rp-kpi:hover::before, #reports-root .rp-kpi:focus-within::before { transform:translateY(-2px); box-shadow:0 12px 30px rgb(18 28 45 / 7%); }
#reports-root .rp-kpi-open { display:grid; align-content:start; text-align:left; gap:13px; width:100%; height:85px; padding:8px 32px 0 0; border:0; border-radius:8px; color:var(--ink); background:transparent; box-shadow:none; transform:none !important; }
#reports-root .rp-kpi-open > span { font-size:13px; line-height:17px; color:var(--ink-muted); font-weight:500; text-transform:none; letter-spacing:-.015em; white-space:nowrap; }
#reports-root .rp-kpi-open > strong { font-size:clamp(28px,2.4vw,40px); line-height:1; letter-spacing:-.055em; font-weight:600; font-variant-numeric:tabular-nums; max-width:65%; }
#reports-root .rp-kpi-icon { position:absolute; top:20px; right:20px; display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:10px; background:color-mix(in srgb,#3287ef 8%,transparent); color:#3287ef; box-shadow:none; transform:none !important; }
#reports-root .reports-kpi--green .rp-kpi-icon { color:#32b895; background:rgb(50 184 149 / 8%); }
#reports-root .reports-kpi--orange .rp-kpi-icon { color:#ec9634; background:rgb(236 150 52 / 8%); }
#reports-root .rp-kpi-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; }
#reports-root .rp-kpi-mini { position:absolute; right:20px; top:64px; width:39%; height:38px; }
#reports-root .reports-spark { width:100%; height:100%; margin:0; opacity:.8; }
#reports-root .rp-kpi > small { position:absolute; left:20px; right:40px; bottom:16px; font-size:10px; color:var(--ink-muted); line-height:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#reports-root .rp-kpi-arrow { position:absolute; right:20px; bottom:16px; opacity:.45; color:var(--ink-muted); }
#reports-root .rp-kpi-arrow svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; }
#reports-root .rp-chart { display:grid; grid-template-rows:auto auto minmax(110px,1fr) auto auto auto; gap:10px; height:380px; min-height:380px; overflow:visible; }
#reports-root .rp-chart .dx-header-tools button { transform:none !important; }
#reports-root .rp-chart .dx-readout strong { font-size:27px; white-space:nowrap; }
#reports-root .rp-chart .dx-readout:has(.dx-chart.has-preview) strong { font-size:22px; }
#reports-root .rp-chart .dx-readout > div { min-width:0; }
#reports-root .rp-chart .dx-chart.has-preview .dx-tooltip { opacity:1; }
#reports-root .rp-chart .dx-tooltip { min-width:140px; }
#reports-root .rp-chart .dx-hotspots button { background:transparent; }
#reports-root .rp-chart .dx-hotspots button.is-highlighted { background:rgb(50 135 239 / 4%); }
#reports-root .rp-chart .dx-point, #reports-root .rp-chart .dx-zero, #reports-root .rp-chart .dx-bar { pointer-events:none; }
#reports-root .rp-chart .dx-readout { min-height:38px; }
#reports-root .rp-chart .dx-readout > small { max-width:130px; }
#reports-root .rp-chart .dx-footer { padding-top:6px; margin:0; }
#reports-root .rp-chart .rp-details { display:flex; align-items:center; justify-content:space-between; width:100%; height:28px; border:0; padding:0; background:transparent; color:var(--ink); font-size:12px; font-weight:500; transform:none !important; }
#reports-root .rp-details svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; }
#reports-root .rp-legend { display:flex; gap:12px; min-height:20px; }
#reports-root .rp-legend button { display:flex; align-items:center; gap:5px; border:0; padding:0; background:transparent; color:var(--ink-muted); font-size:10px; transform:none !important; }
#reports-root .rp-legend button[aria-pressed="false"] { opacity:.4; }
#reports-root .rp-legend i { width:6px; height:6px; border-radius:50%; }
#reports-root .rp-interval { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin:0 0 8px; color:var(--ink-muted); font-size:11px; }
#reports-root .reports-context .rp-interval { margin:0 0 0 auto; flex:0 0 auto; white-space:nowrap; }
#reports-root .rp-interval select { background:var(--surface); border:1px solid var(--line); border-radius:8px; color:var(--ink); padding:5px 8px; font-size:11px; }
#reports-root .reports-grid.secondary .reports-card { display:flex; flex-direction:column; min-height:356px; }
#reports-root .rp-breakdown { flex:1; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:12px; min-height:285px; }
#reports-root .dashboard-status-main { grid-template-columns:minmax(120px,.95fr) minmax(150px,1.1fr); }
#reports-root .dashboard-status-choice-copy strong { font-size:11px; }
#reports-root .dashboard-status-center { background:transparent; border:0; }
#reports-root .dashboard-status-center strong { font-size:36px; }
#reports-root .dashboard-status-center small { font-size:10px; }
#reports-root .dashboard-status-choice { border:1px solid transparent; }
#reports-root .dashboard-status-choice[aria-pressed="true"] { background:var(--surface-muted); border-color:var(--line); }
#reports-root .rp-ranking { display:flex; flex-direction:column; flex:1; padding-top:12px; }
#reports-root .rp-ranking .dashboard-status-open { margin-top:auto; }
#reports-root .reports-ranking button { padding:10px 8px; border-radius:9px; min-height:43px; transform:none !important; }
#reports-root .reports-ranking button.is-active, #reports-root .reports-ranking button[aria-pressed="true"] { background:var(--surface-muted); }
#reports-root .reports-ranking button strong { font-size:12px; }
#reports-root .reports-rank-number { display:none; }
#reports-root .reports-ranking button { grid-template-columns:minmax(0,1fr) auto; }
#reports-root .reports-ranking button span { font-size:12px; }
#reports-root .reports-ranking button i { height:2px; margin-top:7px; }
#reports-root .reports-ranking button i b { background:#3287ef; }
#reports-root .reports-footer { border:0; padding:8px; font-size:11px; }
#reports-root button:focus-visible, #reports-root [role="button"]:focus-visible { outline:2px solid #3287ef; outline-offset:3px; }
html[data-theme="dark"] #reports-root .rp-kpi::before { border-color:rgb(255 255 255 / 8%); background:linear-gradient(145deg,#141518,#090a0c 75%); box-shadow:inset 0 1px 0 rgb(255 255 255 / 4%); }
html[data-theme="dark"] #reports-root .reports-card { box-shadow:none; }
@container (max-width:1100px) { #reports-root .reports-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@container (max-width:800px) { #reports-root .reports-grid.primary, #reports-root .reports-grid.secondary { grid-template-columns:1fr; } }
@container (max-width:500px) { #reports-root .reports-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } #reports-root .rp-kpi:last-child { grid-column:1/-1; height:156px; } #reports-root .reports-card { padding-left:16px; padding-right:16px; } #reports-root .rp-chart h3 { font-size:14px; } #reports-root .dx-segments button { padding:3px 5px; } #reports-root .rp-chart .dx-readout strong { font-size:20px; } #reports-root .dashboard-status-main { gap:10px; grid-template-columns:minmax(100px,.8fr) minmax(140px,1fr); } }
@media (prefers-reduced-motion:reduce) { #reports-root .rp-kpi::before { transform:none !important; transition:none; } }

#reports-root .rp-kpi-mini .reports-spark { position:static; inset:auto; display:block; transform:none; }
#reports-root .rp-chart .dx-readout:has(+ .dx-chart.has-preview) strong { font-size:22px; }

#reports-root .rp-kpi--long .rp-kpi-open > strong { font-size:26px; letter-spacing:-.045em; }
@container (max-width:1100px) { #reports-root .rp-kpi-mini { width:30%; } }
@container (max-width:800px) {
 #reports-root .reports-header { grid-template-columns:minmax(0,1fr) !important; grid-template-areas:"page-copy" "page-actions" !important; height:auto !important; min-height:0; max-height:none; gap:16px; align-items:start; }
 #reports-root .reports-header .app-page-header__copy { display:block; width:100%; height:auto; padding:0; }
 #reports-root .reports-header h1 { margin:0 0 6px; }
 #reports-root .reports-header .app-page-header__copy p { margin:0; }
 #reports-root .reports-controls { width:100%; justify-content:flex-start; flex-wrap:wrap; }
 #reports-root .reports-controls .date small { display:none; }
}

#reports-root .reports-controls .date > svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; }
