#usageAnalyticsPanel { color:var(--bc-text); }
.usage-analytics-toolbar,.usage-analytics-presets,.analytics-section-head,.analytics-section-head>div,.analytics-chart-buttons { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.usage-analytics-toolbar { margin-bottom:8px; }
.usage-analytics-presets { margin-right:auto; }
#usageAnalyticsPanel label { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
#usageAnalyticsPanel :is(button,select,input) { box-sizing:border-box; height:32px; min-height:32px; font:inherit; color:var(--bc-text); background:var(--bc-surface); border:1px solid var(--bc-border); border-radius:6px; padding:4px 10px; }
#usageAnalyticsPanel button { cursor:pointer; }
#usageAnalyticsPanel button:not(:disabled):hover { background:var(--bc-hover); }
#usageAnalyticsPanel button:disabled { opacity:.4; cursor:default; }
#usageAnalyticsPanel :is(button,select,input):focus-visible { outline:2px solid var(--bc-muted); outline-offset:2px; }
#usageAnalyticsPanel button[aria-pressed=true] { background:var(--bc-text); color:var(--bc-surface); }
.usage-analytics-note { color:var(--bc-muted); font-size:12px; line-height:1.7; margin:8px 0 14px; }
#usageAnalyticsStatus { min-height:22px; }
.usage-analytics-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:12px; }
#usageAnalyticsPanel .usage-overview-card { display:flex; flex-direction:column; gap:4px; }
#usageAnalyticsPanel .analytics-metric-card { height:auto; min-height:104px; padding:12px; text-align:left; align-items:flex-start; justify-content:flex-start; white-space:normal; }
#usageAnalyticsPanel .analytics-metric-card :is(span,strong,small) { margin:0; }
#usageAnalyticsPanel .analytics-metric-card>small:not(.analytics-comparison) { display:none; }
#usageAnalyticsPanel .analytics-metric-card>span { line-height:1.5; }
#usageAnalyticsPanel .analytics-metric-card>strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
#usageAnalyticsPanel .analytics-metric-card[aria-pressed=true] { border-color:#93b4eb; background:color-mix(in srgb,var(--bc-surface) 95%,#2563eb); color:var(--bc-text); }
#usageAnalyticsPanel .analytics-metric-card[aria-pressed=true]>strong { color:#2563eb; }
#usageAnalyticsPanel .analytics-metric-card:not([aria-pressed=true]):hover { border-color:var(--bc-muted); }
#usageAnalyticsPanel .analytics-comparison { margin-top:4px; }
.analytics-section-head { justify-content:space-between; margin-bottom:14px; }
.analytics-section-head h3 { margin:0; font-size:14px; font-weight:600; }
.analytics-trend-chart,.analytics-subpanel { border:1px solid var(--bc-border); border-radius:8px; background:var(--bc-surface); padding:16px; min-width:0; }
.analytics-trend-chart { margin-bottom:18px; position:relative; }
.analytics-trend-chart svg { display:block; width:100%; max-height:300px; overflow:visible; }
.analytics-trend-chart text { fill:var(--bc-muted); font-size:11px; font-variant-numeric:tabular-nums; }
.analytics-gridline { stroke:var(--bc-border); stroke-dasharray:3 4; }
.analytics-line { fill:none; stroke:#2563eb; stroke-width:2.5; stroke-linejoin:round; }
.analytics-point,.analytics-bar { fill:#2563eb; }
.analytics-point { stroke:var(--bc-surface); stroke-width:1.5; }
.analytics-date-hit { fill:transparent; pointer-events:all; }
.analytics-date-hit.is-active { fill:#2563eb0d; }
.analytics-crosshair { stroke:#2563eb; stroke-width:1; stroke-dasharray:4 4; pointer-events:none; }
.analytics-chart-tooltip { position:absolute; z-index:2; min-width:160px; max-width:calc(100% - 16px); padding:10px 12px; border:1px solid var(--bc-border); border-radius:6px; background:var(--bc-surface); color:var(--bc-text); box-shadow:0 4px 16px #0002; pointer-events:none; font-size:12px; }
.analytics-chart-tooltip[hidden] { display:none; }
.analytics-chart-tooltip>strong { display:block; margin-bottom:6px; }
.analytics-chart-tooltip>div { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.analytics-chart-tooltip b { font-variant-numeric:tabular-nums; white-space:nowrap; }
.analytics-trend-chart svg:focus-visible { outline:2px solid var(--bc-muted); outline-offset:4px; border-radius:4px; }
.analytics-two-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin-bottom:22px; }
.analytics-cost-track { height:22px; display:flex; overflow:hidden; border-radius:5px; background:var(--bc-hover); margin:22px 0; }
.analytics-cost-track>span { height:100%; }
.analytics-cost-legend { display:grid; gap:18px; }
.analytics-cost-legend>div { display:grid; grid-template-columns:1fr auto 60px; align-items:center; gap:10px; }
.analytics-cost-legend span { display:flex; align-items:center; gap:8px; }
.analytics-cost-legend i { width:9px; height:9px; border-radius:2px; }
.analytics-cost-legend strong { font-size:14px; font-variant-numeric:tabular-nums; }
.analytics-cost-legend small { text-align:right; color:var(--bc-muted); }
.analytics-rank-row { display:flex; gap:12px; align-items:center; margin:12px 0; }
.analytics-rank-row>div { flex:1; min-width:0; }
.analytics-rank-index { color:var(--bc-muted); width:16px; text-align:right; font-variant-numeric:tabular-nums; }
.analytics-rank-name { display:flex; gap:12px; justify-content:space-between; margin-bottom:6px; }
.analytics-rank-name>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.analytics-rank-name>strong { font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.analytics-rank-track { height:5px; background:var(--bc-hover); border-radius:3px; overflow:hidden; }
.analytics-rank-track>span { display:block; height:100%; background:#2563eb; border-radius:3px; }
#usageAnalyticsPanel .usage-analytics-table { table-layout:fixed; width:100%; min-width:2290px; }
#usageAnalyticsPanel .usage-analytics-table :is(th,td) { white-space:nowrap; padding:8px 12px; height:40px; text-align:right; font-variant-numeric:tabular-nums; }
#usageAnalyticsPanel .usage-analytics-table :is(th,td):first-child { text-align:left; overflow:hidden; text-overflow:ellipsis; }
#usageAnalyticsPanel .usage-analytics-table th button { border:0; padding:0; min-height:0; height:auto; display:inline-flex; flex-direction:row-reverse; align-items:center; gap:5px; }
#usageAnalyticsPanel .usage-analytics-table th:first-child button { flex-direction:row; }
.analytics-loading { opacity:.45; pointer-events:none; min-height:360px; }
@media(max-width:800px) { .analytics-two-columns { grid-template-columns:minmax(0,1fr); } .usage-analytics-toolbar { align-items:flex-start; } }
/* The personnel table's pinned action column does not apply to numeric reports. */
#accountUsagePanel #usageAnalyticsPanel .usage-analytics-table :is(th,td):last-child { position:static; box-shadow:none; background:inherit; }
