.revenue-page { --bg: #f5f7f8; --border: #dce2e5; --muted: #596369; }
.revenue-page .admin-main { min-width: 0; }
.revenue-page h1 { font-size: 28px; line-height: 1.3; }
.revenue-page h2 { font-size: 19px; line-height: 1.5; margin-bottom: 16px; }
.revenue-page h2 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.revenue-page header { align-items: center; flex-wrap: wrap; gap: 20px; }
.revenue-controls { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 12px; }
.revenue-controls select { background: white; border: 1px solid var(--border); border-radius: 6px; font: inherit; min-height: 44px; padding: 8px 12px; }
.revenue-controls button { min-height: 44px; }
#revenueStatus { color: var(--muted); font-size: 13px; }
#revenueError { background: #fff0ef; border-left: 3px solid #be392e; color: #8f281f; margin-top: 16px; padding: 16px; }
.revenue-section { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 24px; }
.revenue-kpis { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.revenue-kpis article { border-left: 3px solid #ccd6dd; padding: 4px 12px; min-width: 0; overflow-wrap: anywhere; }
.revenue-kpis span, .revenue-kpis small { color: var(--muted); display: block; font-size: 12px; line-height: 1.6; }
.revenue-kpis strong { display: block; font-size: 24px; line-height: 1.5; margin: 6px 0; }
#themeMetrics article { border-color: var(--teal); }
#sourceMetrics article { border-color: #cc9441; }
.revenue-table-wrap { margin-top: 20px; overflow-x: auto; }
.revenue-page table { background: white; border-collapse: collapse; font-size: 13px; text-align: left; width: 100%; min-width: 650px; }
.revenue-page caption { color: var(--muted); padding: 0 0 10px; text-align: left; }
.revenue-page th, .revenue-page td { border-bottom: 1px solid var(--border); line-height: 1.5; padding: 14px 12px; white-space: nowrap; }
.revenue-page tbody th { min-width: 160px; max-width: 280px; overflow-wrap: anywhere; white-space: normal; }
.revenue-page thead { background: #eaf0f2; }
.revenue-page td { font-variant-numeric: tabular-nums; }
.state-tag { background: #edf0f1; border-radius: 4px; color: #536168; display: inline-block; font-size: 12px; padding: 3px 7px; white-space: nowrap; }
.state-tag.ready { background: #e2f2ed; color: #236857; }
.metric-note, .revenue-page details p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.revenue-page summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.apply-track { background: #edf1f3; display: inline-block; height: 6px; margin-left: 10px; width: 60px; }
.apply-track i { background: var(--teal); display: block; height: 100%; }
.revenue-page [hidden] { display: none !important; }
@media (max-width: 1100px) { .revenue-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .revenue-page .admin-sidebar { padding: 16px 20px; gap: 14px; }
  .revenue-page .admin-sidebar nav { display: flex; flex-wrap: wrap; }
  .revenue-page .logout { margin-top: 0; }
  .revenue-page .admin-main { padding: 24px 20px 40px; }
}
@media (max-width: 380px) { .revenue-kpis { gap: 16px 6px; } .revenue-page h1 { font-size: 24px; } }
