/* Salg › Tilbud (K13a). Bygger på app.css (.card, .card-head, .stats-3/.stat, .table-wrap, .hint, .seg, .legend, .btn).
   Kun tokens fra app.css: --ink-300 er prototypens --neutral-mark og --gold appens accent. */
.tb-page { display: grid; gap: 18px; min-width: 0; }
.tb-toolbar { justify-content: space-between; }
.tb-src { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px; background: var(--green-soft);
  color: var(--green-text); font: 600 12px var(--font-head); cursor: help; max-width: 100%; }
.tb-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.tb-src.warn { background: var(--gold-soft); color: var(--gold-text); }
.tb-src.bad { background: var(--danger-soft); color: var(--danger-text); }
.tb-src.off { background: var(--bg); color: var(--ink-500); }
.tb-stat { cursor: help; }
.tb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tb-card { min-width: 0; }
.tb-card .card-head { margin-bottom: 12px; }
.tb-legend { margin-top: 0; }
.tb-k-t, .tb-a2 { background: var(--ink-300); }
.tb-k-s, .tb-a0 { background: var(--gold); }
.tb-a1 { background: color-mix(in srgb, var(--gold) 55%, transparent); }
.tb-weeks { width: 100%; max-width: 420px; height: auto; display: block; }
.tb-weeks .tb-base { stroke: var(--line); }
.tb-weeks .tb-bar-t { fill: var(--ink-300); }
.tb-weeks .tb-bar-s { fill: var(--gold); }
.tb-weeks .tb-val { font-size: 10.5px; fill: var(--ink-700); }
.tb-weeks .tb-axis { font-size: 11px; fill: var(--ink-500); }
.tb-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tb-big b { font: 600 24px var(--font-head); }
.tb-stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.tb-stack i { display: block; height: 100%; }
.tb-leg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tb-leg .k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-500); }
.tb-leg .k i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tb-leg .v { display: block; margin-top: 2px; font: 600 15px var(--font-head); font-variant-numeric: tabular-nums; }
.tb-leg .v small { font: 400 12px var(--font-ui); color: var(--ink-500); }
.tb-hbars { display: grid; gap: 10px; }
.tb-hbar { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 52px; align-items: center; gap: 10px; }
.tb-hbar .nm { font-size: 14px; overflow-wrap: anywhere; }
.tb-hbar .v { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-700); }
.tb-track { display: block; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.tb-track i { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.tb-none { margin: 0; }
.tb-table table { min-width: 620px; }
.tb-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-table td:first-child, .tb-table th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; white-space: nowrap; }
.tb-table th:first-child { background: var(--surface-head); }
.tb-table .tb-cur td { background: var(--surface-hover); }
.tb-foot { margin: 12px 0 0; }
@media (max-width: 900px) {
  .tb-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tb-toolbar { justify-content: flex-start; }
  .tb-leg { grid-template-columns: minmax(0, 1fr); }
}
