.rv-page {
  --rv-silver:var(--switch-background-4); --rv-pro:var(--admin-revenue-rv-pro); --rv-team:var(--admin-revenue-rv-team); --rv-payg:var(--admin-revenue-rv-payg);
  --rv-wash:var(--surface-switch-shadow-5); --rv-border:var(--surface-switch-background-10); --rv-rule:var(--skeleton-line-background-2); --rv-text:var(--text);
  --rv-muted:var(--muted); --rv-panel:linear-gradient(135deg,var(--admin-revenue-rv-panel),var(--admin-revenue-rv-panel-2) 67%,var(--admin-revenue-rv-panel-3));
}
.rv-page .glass {
  min-width:0; padding:16px 17px; border:1px solid var(--rv-border); border-radius:17px;
  background:var(--rv-panel); backdrop-filter:blur(24px); box-shadow:inset 0 1px var(--rv-page-shadow),0 8px 24px var(--surface-switch-shadow-3);
}
.rv-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:0 0 16px; }
.rv-heading h1 { font-size:clamp(26px,3vw,32px); font-weight:550; margin:9px 0 7px; line-height:1; }
.rv-heading em { color:var(--rv-silver); font-style:normal; }
.rv-heading p,.rv-kpi p,.rv-card-heading p,.rv-snapshot p { font-size:11px; line-height:1.4; color:var(--rv-muted); margin:0; }
.rv-period { border-radius:20px; border:1px solid var(--rv-border); background:var(--rv-wash); padding:7px 10px; white-space:nowrap; font-size:10px; }
.rv-kpis,.rv-chart-row,.rv-bottom { display:grid; gap:14px; }
.rv-kpis { grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)); }
.rv-page h2 { font-size:15px; font-weight:650; letter-spacing:-.18px; margin:0; }
.rv-kpi { position:relative; isolation:isolate; display:flex; align-items:center; gap:10px; min-height:98px; overflow:hidden; }
.rv-kpi-feature { border-color:var(--rv-kpi-feature-border)!important; }
.rv-kpi-feature>div { position:relative; z-index:1; }
.rv-icon { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid var(--rv-border); border-radius:50%; background:linear-gradient(135deg,var(--rv-icon-background),var(--rv-icon-background-2)); font-size:17px; color:var(--rv-silver); }
.rv-kpi h2 { font-size:11px; font-weight:500; }
.rv-kpi strong,.rv-snapshot strong { display:block; font:600 clamp(18px,2.5vw,28px)/1 'Space Grotesk',sans-serif; letter-spacing:-.04em; margin:5px 0; font-variant-numeric:tabular-nums; }
.rv-kpi-feature strong { font-size:clamp(24px,3.1vw,37px); }
.rv-kpi p,.rv-snapshot p { font-size:9px; }
.rv-kpi-spark { position:absolute; bottom:-2px; right:0; width:56%; height:95%; z-index:-1; opacity:.8; pointer-events:none; }
.rv-chart-row { grid-template-columns:minmax(0,1.7fr) minmax(225px,1.02fr) minmax(140px,.67fr); margin-top:14px; }
.rv-card-heading { display:flex; align-items:start; justify-content:space-between; gap:9px; }
.rv-card-heading p { margin-top:4px; font-size:10px; }
.rv-modes { display:flex; gap:3px; border:1px solid var(--rv-border); padding:2px; border-radius:15px; white-space:nowrap; }
.rv-modes button { border:1px solid transparent; border-radius:12px; background:transparent; padding:4px 7px; color:var(--rv-text); font-size:9px; }
.rv-modes button[aria-pressed=true] { border-color:var(--rv-border); background:var(--rv-modes-background); }
.rv-readout { display:flex; justify-content:flex-end; margin-top:8px; }
.rv-readout output { color:var(--rv-silver); font-size:10px; padding:4px 7px; border:1px solid var(--rv-border); border-radius:6px; font-variant-numeric:tabular-nums; }
.rv-chart { width:100%; display:block; }
.rv-chart text { fill:var(--rv-muted); font:11px sans-serif; }
.rv-gridline { stroke:var(--rv-rule); }
.rv-line { fill:none; stroke:var(--rv-silver); stroke-width:2; stroke-dasharray:1; animation:rv-line .85s var(--motion-ease) both; }
@keyframes rv-line { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
.rv-point,.rv-marker { fill:var(--rv-silver); pointer-events:none; }
.rv-marker { stroke:var(--rv-text); stroke-width:1.7; filter:drop-shadow(0 0 3px var(--rv-silver)); }
.rv-crosshair { stroke:var(--rv-silver); stroke-dasharray:3 4; opacity:.5; }
.rv-hit { cursor:crosshair; }
.rv-donut-layout { display:grid; grid-template-columns:minmax(75px,1fr) minmax(104px,1fr); align-items:center; gap:9px; margin-top:15px; }
.rv-donut { width:100%; max-width:164px; }
.rv-donut circle { fill:none; stroke-width:17; }.rv-donut-track { stroke:var(--rv-rule); }
.rv-donut text { fill:var(--rv-text); font:10px sans-serif; }.rv-donut .rv-donut-total { font:600 20px 'Space Grotesk',sans-serif; }
.rv-donut-layout ul { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.rv-donut-layout li { display:grid; grid-template-columns:6px auto 1fr auto; align-items:center; gap:5px; font-size:9px; font-variant-numeric:tabular-nums; }
.rv-donut-layout li i { width:6px; height:6px; border-radius:50%; }
.rv-donut-layout li b { font-weight:550; }
.rv-source { margin-top:15px; }
.rv-source>div { display:flex; justify-content:space-between; align-items:center; gap:7px; font-size:10px; margin-bottom:5px; }
.rv-source>div b { font-weight:550; }
.rv-source>i { display:block; height:6px; border-radius:8px; background:var(--rv-rule); overflow:hidden; }
.rv-source>i span { display:block; height:100%; border-radius:8px; background:linear-gradient(90deg,var(--rv-team),var(--rv-silver)); transform-origin:left; animation:fill-rise .7s var(--motion-ease) both; }
.rv-onetime>i span { background:var(--rv-team); }
.rv-source small { display:block; color:var(--rv-muted); font-size:9px; margin-top:4px; text-align:right; }
.rv-bottom { grid-template-columns:minmax(150px,.36fr) minmax(0,1fr); margin-top:14px; }
.rv-quick-stats { display:grid; align-content:start; gap:11px; }
.rv-snapshot { display:flex; align-items:center; gap:12px; }
.rv-snapshot h2 { font-size:11px; }
.rv-search { display:flex; align-items:center; gap:5px; padding:0 8px; border-radius:20px; border:1px solid var(--rv-border); background:var(--rv-wash); min-width:115px; max-width:195px; }
.rv-search span { font-size:15px; }
.rv-search input { width:100%; min-width:0; border:0; padding:6px 0; background:none; color:var(--rv-text); font-size:10px; }
.rv-search input::placeholder { color:var(--rv-muted); }
.rv-table-wrap { overflow-x:auto; scrollbar-width:thin; }
.rv-table { min-width:445px; font-size:10px; margin-top:10px; }
.rv-page .rv-table td,.rv-page .rv-table th { padding:7px 5px; border-bottom:1px solid var(--rv-rule); white-space:nowrap; }
.rv-table th { color:var(--rv-muted); }
.rv-table td:last-child { text-align:right; }
.rv-table .outline { font-size:9px; padding:4px 6px; }
.rv-invoice-id,.rv-table td:nth-child(4) { font-variant-numeric:tabular-nums; }
.rv-customer { display:flex; align-items:center; gap:6px; }
.rv-customer .avatar { width:20px; height:20px; font-size:8px; border-radius:6px; }
.rv-paid { border-radius:20px; padding:3px 6px; border:1px solid var(--rv-border); background:var(--rv-wash); font-size:9px; }
.rv-page .rv-table .rv-empty { padding:18px; text-align:center; color:var(--rv-muted); }
.rv-invoice-dialog dl div { display:flex; justify-content:space-between; gap:15px; border-bottom:1px solid var(--line); padding:9px 0; font-size:12px; }
.rv-invoice-dialog dl dt { color:var(--muted); }.rv-invoice-dialog dl dd { margin:0; }
html[data-theme=light] .rv-page {
  --rv-silver:var(--admin-revenue-rv-silver); --rv-pro:var(--admin-revenue-rv-pro-2); --rv-team:var(--admin-revenue-rv-team-2); --rv-payg:var(--admin-revenue-rv-payg-2);
  --rv-wash:var(--surface-switch-background-9); --rv-border:var(--admin-revenue-rv-border); --rv-rule:var(--admin-revenue-rv-rule); --rv-muted:var(--admin-revenue-rv-muted);
  --rv-panel:linear-gradient(135deg,var(--admin-revenue-rv-panel-4),var(--admin-revenue-rv-panel-5) 70%,var(--admin-revenue-rv-panel-6));
}
@media(max-width:1190px) {
  .rv-chart-row { grid-template-columns:minmax(0,1.55fr) minmax(225px,1fr); }
  .rv-sources { grid-column:1/-1; }
}
@media(max-width:820px) {
  .rv-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rv-chart-row,.rv-bottom { grid-template-columns:minmax(0,1fr); }
  .rv-quick-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rv-donut-layout { grid-template-columns:minmax(90px,140px) minmax(0,1fr); }
}
@media(max-width:560px) {
  .rv-heading { align-items:start; flex-direction:column; }
  .rv-page .glass { padding:13px; }
  .rv-kpis,.rv-chart-row,.rv-bottom { gap:9px; }
  .rv-kpi { gap:7px; min-height:84px; }
  .rv-icon { width:26px; height:26px; flex-basis:26px; font-size:13px; }
  .rv-snapshot { gap:6px; }
}
@media(prefers-reduced-motion:reduce) { .rv-line,.rv-source>i span { animation:none; } }
