/* Analytics tab (admin) — scoped an- classes so it fits any admin build. */
.an-kpi-sub { font-size: 0.72rem; color: var(--text-muted, #64748b); margin-top: 2px; }
.an-subtabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--border, #e3e8f0); flex-wrap: wrap; }
.an-subtab { background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 14px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted, #64748b); cursor: pointer; margin-bottom: -1px; }
.an-subtab:hover { color: var(--text, #1a2332); }
.an-subtab.active { color: var(--primary, #2563eb); border-bottom-color: var(--primary, #2563eb); }
.an-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.an-presets { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.an-preset.active { background: var(--primary-soft, #eff6ff); color: var(--primary, #2563eb); border-color: var(--primary-border, #bfdbfe); }
.an-date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted, #64748b); }
.an-date input { width: auto; min-width: 140px; padding-top: 0.3rem; padding-bottom: 0.3rem; }
.an-active-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--primary-soft, #eff6ff); border-bottom: 1px solid var(--primary-border, #bfdbfe); font-size: 0.82rem; }
.an-active-filter strong { font-family: var(--font-mono, monospace); word-break: break-all; }
.an-range-note { font-size: 0.75rem; padding: 6px 16px 0; }
.an-range-note:empty { display: none; }
.an-url { max-width: 420px; word-break: break-all; }
.an-link { color: var(--primary, #2563eb); text-decoration: none; }
.an-link:hover { text-decoration: underline; }
.an-license, .an-count { background: none; border: none; padding: 0; cursor: pointer; color: var(--primary, #2563eb); font: inherit; text-align: left; }
.an-license:hover code, .an-count:hover { text-decoration: underline; }
.an-count { font-weight: 700; }
.an-license-row { cursor: pointer; }
.an-license-row:hover { background: var(--surface-2, #f9fafd); }
@media (max-width: 720px) {
  .an-filters { width: 100%; }
  .an-date { flex: 1 1 45%; }
  .an-date input { flex: 1; min-width: 0; }
  .an-url { max-width: none; }
}
#tabAnalytics .cell-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#tabAnalytics .cell-main { font-weight: 600; word-break: break-word; }
#tabAnalytics .cell-sub { font-size: 0.75rem; color: var(--text-muted, #64748b); word-break: break-word; }
#tabAnalytics .nowrap { white-space: nowrap; }
#tabAnalytics td.empty { text-align: center; padding: 28px 16px; color: var(--text-muted, #64748b); }
#tabAnalytics .empty-title { font-weight: 700; color: var(--text, #1a2332); margin-bottom: 4px; }
