#page-agency-analysis { background:var(--rv-bg); }
.aa-page { padding-bottom:12px; }
.aa-scopes { min-height:44px; display:flex; align-items:center; gap:5px; padding:5px 8px; }
.aa-scopes button { height:32px; padding:0 11px; border:0; border-radius:6px; background:transparent; color:var(--rv-text-secondary); font:inherit; font-size:10px; font-weight:600; cursor:pointer; }
.aa-scopes button.active { color:#fff; background:var(--rv-primary); }
.aa-scopes span { margin-left:auto; color:var(--rv-text-muted); font-size:10px; }
.aa-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.aa-charts article { height:260px; }
.aa-charts article > canvas { max-height:205px; padding:8px 10px 10px; }
.aa-charts .chart-msg { height:205px; margin:0; place-items:center; color:var(--rv-text-muted); font-size:11px; }
.aa-table-scroll table { min-width:1450px; }
.aa-table-scroll .r { text-align:right; font-variant-numeric:tabular-nums; }
#page-agency-analysis .aa-table-scroll tbody > tr:not(.report-drilldown-row) > td,
#page-agency-analysis .report-drilldown-table tbody > tr > td { background:#fff!important; }
#page-agency-analysis .aa-table-scroll tbody > tr:not(.report-drilldown-row):hover > td,
#page-agency-analysis .report-drilldown-table tbody > tr:hover > td { background:#eef6ff!important; }
#page-agency-analysis .aa-table-scroll .aa-drill-row.is-expanded > td { background:#e7f1ff!important; }
.aa-sortable { padding:0; transition:background-color .16s ease,color .16s ease; }
.aa-sortable > button { width:100%; min-height:42px; display:flex; align-items:center; justify-content:flex-start; gap:9px; padding:8px 11px; border:0; background:transparent; color:inherit; font:inherit; font-weight:inherit; cursor:pointer; text-align:left; }
.aa-sortable.r > button,.report-drilldown-cell--number.aa-sortable > button,.report-drilldown-cell--money.aa-sortable > button,.report-drilldown-cell--percent.aa-sortable > button { justify-content:flex-end; }
.aa-sortable:hover { background:#f8fafc; color:var(--rv-primary); }
.aa-sortable.is-sorted { background:var(--rv-primary-soft); color:var(--rv-primary); }
.aa-sortable i { min-width:12px; color:var(--rv-text-muted); font-size:11px; font-style:normal; line-height:1; }
.aa-sortable.is-sorted i { color:var(--rv-primary); }
#page-agency-analysis .report-drilldown-panel { background:#fafbfc; border:1px solid #e5e7eb; border-radius:12px; }
.aa-review { height:27px; border:1px solid var(--rv-border); border-radius:5px; color:var(--rv-primary); background:var(--rv-surface); font-size:10px; }
.aa-month-toggle { width:24px; height:24px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--rv-primary); font-size:14px; cursor:pointer; }
.aa-month-toggle:hover { background:var(--rv-primary-soft); }
.aa-pagination { gap:8px; }
.aa-pagination > .results-count { margin-right:auto; font-variant-numeric:tabular-nums; }
.aa-pagination > select { width:58px; min-height:30px; height:30px; padding:4px 22px 4px 8px; border-radius:6px; font-size:11px; }
.aa-pagination-nav { display:flex; align-items:center; gap:4px; }
.aa-pagination-nav .pagination-button { width:30px; padding:0; font-size:10px; }
.aa-pagination-nav .pagination-current { min-width:62px; font-variant-numeric:tabular-nums; }
@media(max-width:900px) { .aa-charts { grid-template-columns:1fr; } }
@media(max-width:600px) { .aa-scopes { overflow:auto; } }
@media(max-width:600px) { .aa-pagination > .results-count { width:100%; margin-right:0; text-align:center; } }
