/* ──────────────────────────────────────────────────────────────
   Organizers — Live Tracking (Haus Vajbz). One sheet for
   templates/organizers/live_tracking.html on top of hv/organizers.css.
   Mobile first; ≥768 and ≥1100 add columns. Tokens only (tokens.css +
   hv/theme.css): radius 0, no shadows, no gradients, rules instead of
   boxes, → as the ornament. The figures are ink .org-mock panels; the
   SVG graph is painted through classes (no literal colours). Prefix: ot-.
   ────────────────────────────────────────────────────────────── */

/* ── Metrics: three ruled cells under a strong rule ──────────── */
.ot-metrics__cells { border-top: 2px solid var(--text); }

/* ── Live dashboard panel ────────────────────────────────────── */
.ot-mock { max-width: 900px; margin-inline: auto; }
.ot-mock__head { color: var(--paper); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-mock__live { color: var(--green); flex: none; }
.ot-mock__body { display: grid; gap: 1.2rem; }
.ot-mock__rows { display: grid; gap: 0.8rem; align-content: start; }
.ot-mock__foot { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--ink-3); color: var(--paper-3); }
.ot-mock__foot i { color: var(--green); font-size: 0.5rem; }

/* capacity rows: name | count over a track */
.ot-row { display: grid; gap: 0.4rem; }
.ot-row__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; color: var(--paper-3); }
.ot-row__name { font-family: var(--font-sub); font-weight: 600; color: var(--paper); }
.ot-row__count { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.ot-row__soldout { flex: none; }
.ot-fill--red { background: var(--red); }
.ot-fill--paper { background: var(--paper); }
.ot-fill--green { background: var(--green); }
.ot-fill--55 { width: 55%; }
.ot-fill--60 { width: 60%; }
.ot-fill--78 { width: 78%; }
.ot-fill--90 { width: 90%; }
.ot-fill--92 { width: 92%; }
.ot-fill--100 { width: 100%; }

/* sales line graph: grid on ink-3, flat red area, red line, square marker */
.ot-graph { min-width: 0; }
.ot-graph__svg { display: block; width: 100%; height: 140px; }
.ot-graph__grid { stroke: var(--ink-3); }
.ot-graph__area { fill: var(--red); opacity: 0.25; }
.ot-graph__line { stroke: var(--red); }
.ot-graph__dot { fill: var(--red); }
.ot-graph__halo { fill: var(--red); opacity: 0.2; }

/* ── Feature splits: the figure column ───────────────────────── */
.ot-figure { display: flex; justify-content: center; min-width: 0; }
.ot-figure > .org-mock { width: 100%; }
.ot-vis { max-width: 360px; gap: 0.9rem; }

/* scan feed: a narrow ink phone, ruled entries */
.ot-phone { max-width: 220px; gap: 0; padding: 1rem 0.8rem; border: 2px solid var(--ink-3); }
.ot-phone__notch { width: 56px; height: 5px; margin: 0 auto 0.9rem; background: var(--ink-3); }
.ot-scan { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--ink-3); }
.ot-scan:last-child { border-bottom: 0; }
.ot-scan__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; font-size: 0.65rem; }
.ot-scan__ic--ok { background: var(--green); color: var(--ink); }
.ot-scan__ic--err { background: var(--red); color: var(--paper); }
.ot-scan__body { min-width: 0; }
.ot-scan__text { font-size: 0.72rem; line-height: 1.3; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-scan__time { font-size: 0.6rem; color: var(--paper-3); }

/* revenue share: the old donut as a square, stacked by ticket type */
.ot-share { max-width: 360px; gap: 1rem; }
.ot-share__total { display: flex; align-items: baseline; gap: 0.5rem; }
.ot-share__value { font-size: 2.4rem; color: var(--paper); }
.ot-share__bar { display: flex; width: 100%; height: 72px; }
.ot-share__seg { display: block; height: 100%; }
.ot-share__seg--red { background: var(--red); }
.ot-share__seg--paper { background: var(--paper); }
.ot-share__seg--green { background: var(--green); }
.ot-share__seg--45 { width: 45%; }
.ot-share__seg--30 { width: 30%; }
.ot-share__seg--25 { width: 25%; }
.ot-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-3); }
.ot-legend__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.ot-legend__dot { flex: none; width: 8px; height: 8px; }
.ot-legend__dot--red { background: var(--red); }
.ot-legend__dot--paper { background: var(--paper); }
.ot-legend__dot--green { background: var(--green); }

/* ── Tablet ──────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .ot-mock__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; }
  .ot-graph__svg { height: 100%; min-height: 160px; }
  .ot-figure { justify-content: flex-end; }
  .org-split--flip .ot-figure { justify-content: flex-start; }
  .ot-phone { max-width: 240px; }
}

/* ── Desktop ─────────────────────────────────────────────────── */
@media (min-width: 1100px) {
  .ot-mock__body { gap: 2.2rem; }
  .ot-vis, .ot-share { max-width: 400px; }
}
