#statsView { max-width: 1600px; margin: auto; }
#statsView .panel { margin-bottom: 16px; }
.statsFilter .tabs { margin: 0 0 16px; flex-wrap: wrap; }
.statsFields { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.statsFields .field { flex: 1 1 180px; }
.statsFields .field:nth-child(3) { flex: .45 1 100px; }
.statsFields .btn { min-height: 40px; padding-inline: 24px; }
.statsCards { display: grid; grid-template-columns: repeat(auto-fit,minmax(164px,1fr)); gap: 1px; background: var(--line); }
.statsCards > div { padding: 16px; background: white; }
.statsCards span,.statsCards small,.statsMetric,.statsStamp,.statsNote,.statsCards p { color: var(--sub); }
.statsCards strong { display: block; margin-block: 4px; font-size: 26px; font-variant-numeric: tabular-nums; }
.statsCards small,.statsCards p { font-size: 13px; font-weight: normal; }
.statsCards p { margin: 0; }
.statsMetric select { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 6px; }
.statsChart { padding: 6px 14px 12px; }
.statsChart svg { width: 100%; max-height: 205px; display: block; }
.statsChart .series { stroke: var(--teal); stroke-width: 2.5; fill: none; }
.statsChart .grid { stroke: var(--line); fill: none; }
.statsChart circle { fill: var(--teal); }
.statsChart text { fill: var(--sub); font-size: 14px; }
.statsScroll { overflow-x: auto; max-height: 420px; }
.statsScroll table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.statsScroll td,.statsScroll th { padding: 9px 15px; text-align: left; border-bottom: 1px solid var(--line); }
.statsScroll th { position: sticky; top: 0; background: #f5f9f9; font-weight: 600; z-index: 1; }
.statsScroll tr:last-child td { border-bottom: none; }
.statsNote,.statsStamp { font-size: 14px; }
@media (max-width: 640px) {
  .statsFields .field { min-width: 0; flex-basis: 100%; }
  .statsChart { overflow-x: auto; }
  .statsChart svg { min-width: 540px; }
}
