/* Analytics page — shared by the seller dashboard and the admin page. */
.an-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.an-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-controls .pill-tabs { margin: 0; }
.an-custom[hidden], .an-card[hidden] { display: none; }
.an-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-custom label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text2); }
.an-custom input[type="date"] { width: auto; padding: 6px 8px; font-size: 13px; }
.an-controls select { width: auto; min-width: 200px; padding: 7px 10px; font-size: 13px; }
.an-note { font-size: 12.5px; color: var(--text2); }
.an-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.an-tiles .stat .sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.an-card, .an-card + .an-card { margin: 0 0 16px; }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.an-head h3 { margin: 0; font-size: 15px; }
.an-legend { display: flex; gap: 14px; font-size: 12.5px; color: #52514e; }
.an-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.an-chart { position: relative; min-height: 220px; }
.an-chart svg { display: block; overflow: visible; }
.an-chart text { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 11px; fill: #898781; font-variant-numeric: tabular-nums; }
.an-chart .hit { fill: transparent; }
.an-chart .hit:hover { fill: rgba(11, 11, 11, .045); }
.an-chart .bars { pointer-events: none; }
.an-empty { display: grid; place-items: center; min-height: 200px; color: var(--text2); font-size: 13.5px; text-align: center; }
.an-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid rgba(11, 11, 11, .10); border-radius: 10px; box-shadow: 0 8px 24px rgba(18, 26, 46, .14); padding: 8px 10px; font-size: 12.5px; color: #0b0b0b; white-space: nowrap; z-index: 5; }
.an-tip b { display: block; margin-bottom: 4px; }
.an-tip .r { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.an-tip .r span { color: #52514e; }
.an-tip .r i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.an-tip .r em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.an-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; margin-bottom: 16px; }
.an-grid .an-card, .an-grid .an-card + .an-card { margin: 0; }
.prov-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.prov-row .track { height: 10px; background: #f1f3f8; border-radius: 4px; overflow: hidden; }
.prov-row .track i { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; min-width: 2px; }
.prov-row .v { color: #52514e; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-num td, .an-num th { font-variant-numeric: tabular-nums; }
details.an-table { margin-top: 10px; font-size: 13px; }
details.an-table summary { cursor: pointer; color: var(--text2); font-weight: 600; }
details.an-table > div { margin-top: 8px; max-height: 320px; overflow: auto; }
@media (max-width: 900px) {
  .an-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-grid { grid-template-columns: 1fr; }
}
