/* Admin page #analisi (web/analytics-admin.js) and the consent section of the profile */
.an-page { padding-bottom: 32px; }
.an-filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.an-filter .field { margin: 0; flex: 1 1 150px; min-width: 0; }
.an-filter .actions { margin: 0; }
.an-privacy { margin: 12px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--sea-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.an-help { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; }
.an-empty { color: var(--muted); font-size: 13px; margin: 6px 0; }
.an-section { font: 650 22px/1.2 var(--display); margin: 22px 0 8px; }
.an-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.an-kpi { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.an-kpi span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.an-kpi strong { display: block; font: 700 28px/1.15 var(--display); color: var(--ink); margin: 2px 0; }
.an-kpi small { color: var(--muted); font-size: 11.5px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.an-panel { margin: 0 0 12px; min-width: 0; }
.an-panel h2 { font: 650 18px/1.25 var(--display); margin: 0 0 6px; }
.an-chart { width: 100%; height: auto; display: block; }
.an-chart .an-gridline { stroke: var(--line); stroke-width: 1; }
.an-chart .an-axis { fill: var(--muted); font-size: 11px; }
.an-chart .an-line { fill: none; stroke: var(--sea); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-chart .an-dot { fill: var(--sea); stroke: var(--surface); stroke-width: 2; }
.an-chart .an-hidden { fill: var(--line-strong); }
.an-chart .an-hit { fill: transparent; }
.an-chart .an-hit:hover { fill: var(--line); }
.an-bars, .an-funnel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.an-bars li, .an-funnel li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 8px; align-items: baseline; font-size: 13.5px; }
.an-bar-name, .an-funnel li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bars small, .an-funnel small { color: var(--muted); font-size: 11.5px; min-width: 3.5em; text-align: right; }
.an-bars li.is-suppressed { color: var(--muted); }
.an-bar-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2, var(--line)); overflow: hidden; }
.an-bar-track > span { display: block; height: 100%; border-radius: 3px; background: var(--sea); }
.an-funnel h3 { font-size: 13px; font-weight: 800; color: var(--muted); margin: 8px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.an-heat-wrap, .an-table-wrap { overflow-x: auto; }
.an-heat { border-collapse: separate; border-spacing: 2px; font-size: 10.5px; color: var(--muted); }
.an-heat th { font-weight: 700; padding: 0 3px; text-align: right; }
.an-heat thead th { text-align: center; }
.an-heat td { width: 16px; height: 16px; min-width: 12px; border-radius: 3px; background: color-mix(in srgb, var(--sea) calc(var(--a, 0) * 100%), var(--surface-2, var(--bg))); }
.an-heat td.is-empty { background: var(--bg); }
.an-table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.an-table th, .an-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.an-table th[scope="row"], .an-table thead th:first-child { text-align: left; }
.an-table td.is-empty { color: var(--muted); }
.an-details summary { cursor: pointer; font-weight: 700; margin: 10px 0 6px; }
@media (min-width: 1200px) { body[data-page="analisi"] main { max-width: 1180px; } }
