/* T_TASTE_STATS_20261011 — 운영실 '통계 분석'. admin.css 의 색(--a-*)과 카드·표·막대를 그대로 쓰고 필요한 것만 더한다. */
.te-stats { display: grid; gap: 16px; min-width: 0; }
.te-stats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.te-stats-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--a-line); }
.te-stats-tabs button { border: 0; background: none; padding: 8px 12px; font: inherit; font-size: 13.5px; color: var(--a-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.te-stats-tabs button[aria-selected="true"] { color: var(--a-wine-dark); border-bottom-color: var(--a-wine); font-weight: 600; }
.te-stats-ranges { display: flex; gap: 4px; align-items: center; }
.te-stats-ranges button[aria-pressed] { border: 1px solid var(--a-line); background: var(--a-paper); border-radius: 999px; padding: 5px 12px;
  font: inherit; font-size: 12.5px; color: var(--a-ink); cursor: pointer; }
.te-stats-ranges button[aria-pressed="true"] { background: var(--a-wine); border-color: var(--a-wine); color: #fff; }
.te-stats-period, .te-stats-note { margin: 0; color: var(--a-muted); font-size: 12px; line-height: 1.6; }
.te-admin-card .te-stats-note { margin-top: 10px; }
.te-stats-three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.te-stats-table td, .te-stats-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.te-stats-table tr.te-stats-mark td { background: var(--a-rose); }
.te-stats-key { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; }
.te-stats-key b { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* 두 계열 막대 — 바깥 계열 위에 안쪽 계열을 좁게 겹친다 */
.te-stats-plot .te-stats-col { flex: 1 1 0; position: relative; height: 100%; min-width: 2px; }
.te-stats-plot .te-stats-col i { position: absolute; left: 0; right: 0; bottom: 0; min-width: 0; border-radius: 3px 3px 0 0; opacity: .82; }
.te-stats-plot .te-stats-col i.c1 { left: 22%; right: 22%; background: var(--a-blue); opacity: .9; }

/* 가로 막대 목록 */
.te-stats-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.te-stats-hbars li { display: grid; grid-template-columns: 64px 1fr 66px; align-items: center; gap: 8px; font-size: 12.5px; }
.te-stats-hbars li.te-stats-mark .te-stats-hbar-label { color: var(--a-wine); font-weight: 600; }
.te-stats-hbar-track { height: 10px; border-radius: 5px; background: #f1efe9; overflow: hidden; }
.te-stats-hbar-track i { display: block; height: 100%; border-radius: 5px; background: var(--a-wine); opacity: .82; }
.te-stats-hbar-value { text-align: right; color: var(--a-muted); font-variant-numeric: tabular-nums; }

/* 요일 × 시간 */
.te-stats-heat { display: grid; grid-template-columns: 22px repeat(24, minmax(8px, 1fr)); gap: 2px; align-items: center; font-size: 10.5px; color: var(--a-muted); }
.te-stats-heat i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--a-wine); }
.te-stats-heat-h { text-align: center; }

.te-stats-band { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.te-stats-band.b-0 { background: var(--a-sage); color: var(--a-ok); }
.te-stats-band.b-1 { background: #eef1f8; color: var(--a-blue); }
.te-stats-band.b-2 { background: #f8efe1; color: var(--a-amber); }
.te-stats-band.b-3 { background: var(--a-rose); color: var(--a-wine-dark); }
.te-stats-up { color: var(--a-ok); font-weight: 600; }
.te-stats-down { color: var(--a-wine); font-weight: 600; }
.te-stats-new { color: var(--a-amber); font-size: 11px; font-weight: 600; }
.te-stats-best p { margin: 0 0 6px; font-size: 14px; }
.te-stats-best strong { font-size: 18px; color: var(--a-wine-dark); }
.te-stats-bar { display: flex; gap: 8px; align-items: center; }
.te-stats-select { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-paper); color: var(--a-ink); max-width: 100%; }
.te-stats-spots { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
@media (max-width: 720px) {
  .te-stats-head { flex-direction: column; align-items: stretch; }
  .te-stats-hbars li { grid-template-columns: 52px 1fr 58px; }
}
