/* ══ QST-Tarife pro Jahr (Walter 11.11.2026) — JS: js/qst-tarife.js, Präfix qtt ══ */
.qtt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.qtt-titel { font-weight: 700; font-size: 15px; color: var(--oc-text-stark); margin-bottom: 4px; }
.qtt-info { font-size: 13px; color: var(--oc-text-2); line-height: 1.45; }
.qtt-info b { color: var(--oc-text-stark); font-weight: 600; }
.qtt-aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qtt-aktionen select { min-width: 84px; }

.qtt-jahr { margin-top: 20px; }
.qtt-jahr-kopf { display: flex; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--oc-rand); }
.qtt-jahr-kopf h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--oc-text-stark); letter-spacing: -0.01em; }

.qtt-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.qtt-tab th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--oc-text-3); padding: 8px 10px 6px; }
.qtt-tab td { padding: 8px 10px; border-top: 1px solid var(--oc-rand-schwach); color: var(--oc-text); vertical-align: middle; }
.qtt-tab tr:hover td { background: var(--oc-hover); }
.qtt-tab th:first-child, .qtt-tab td:first-child { width: 150px; }
.qtt-tab th:nth-child(4), .qtt-tab td:nth-child(4) { width: 90px; }
.qtt-r { text-align: right; width: 44px; }
.qtt-zeile-neu td { background: var(--oc-warn-bg); }

.qtt-kt { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 6px;
    border-radius: 7px; background: var(--oc-flaeche-2); border: 1px solid var(--oc-rand-schwach);
    font-weight: 800; font-size: 12px; color: var(--oc-text-stark); }
.qtt-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.qtt-chip-ok { background: var(--oc-ok-bg); color: var(--oc-ok-text); }
.qtt-chip-neu { background: var(--oc-warn-bg); color: var(--oc-warn-text); }
.qtt-leise { color: var(--oc-text-3); font-size: 12px; }
.qtt-fehler { color: var(--oc-rot-text); font-size: 13px; }

/* Kompakt: Kantone × Jahre (Walter 11.11.2026) */
.qtt-matrix { margin-top: 14px; width: auto; }   /* schmal, nicht über die ganze Breite (Walter 11.11.2026) */
.qtt-matrix th:first-child, .qtt-matrix td:first-child { width: auto; padding-right: 24px; }
.qtt-matrix th.qtt-c, .qtt-matrix td.qtt-c { text-align: center; width: 76px; padding: 4px 4px; }
.qtt-matrix th.qtt-c { font-size: 13px; font-weight: 800; color: var(--oc-text-stark); text-transform: none; letter-spacing: 0; }
.qtt-matrix td:first-child { white-space: nowrap; }
.qtt-zelle {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 56px; height: 28px;
    padding: 0 10px; border-radius: 999px; border: 1px solid var(--oc-rand-schwach); background: var(--oc-flaeche-2);
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--oc-text-stark); cursor: pointer;
}
.qtt-zelle:hover { background: var(--oc-hover); border-color: var(--oc-rand); }
.qtt-zelle-leer { color: var(--oc-text-3); background: transparent; border-style: dashed; }
.qtt-punkt { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.qtt-ok { background: var(--oc-ok); }
.qtt-da { background: var(--oc-text-3); }
.qtt-neu { background: var(--oc-warn); }
.qtt-fehlt { background: var(--oc-rot); }   /* gebraucht, fehlt ganz (Walter 21.11.2026) */
.qtt-menu-wrap { display: none; }   /* Menü wird beim Öffnen an body gehängt (dokToggleMenu) */
.dok-menu .qtt-menu-stand { padding: 0 12px 8px; max-width: 280px; font-size: 12px; line-height: 1.4; color: var(--oc-text-2);
    border-bottom: 1px solid var(--oc-rand-schwach); margin-bottom: 4px; white-space: normal; }
.dok-menu .qtt-menu-titel { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--oc-text-3); text-transform: uppercase; letter-spacing: .04em; }
.qtt-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--oc-text-3); }
.qtt-legende > span { display: inline-flex; align-items: center; gap: 6px; }

/* Sonderkategorien zugeklappt (Walter 11.11.2026) */
.qtt-klapp { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.qtt-klapp-pfeil { transition: transform .15s; color: var(--oc-text-3); }
.qtt-klapp.offen .qtt-klapp-pfeil { transform: rotate(90deg); }

/* Tarif ansehen (Walter 11.11.2026) */
.qtt-ansicht-kopf { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: end; }
.qtt-ansicht-kopf > * { min-width: 0; }
.qtt-ansicht-ergebnis { display: flex; gap: 24px; align-items: flex-end; padding-bottom: 4px; min-height: 52px; }
.qtt-ansicht-ergebnis > div { display: flex; flex-direction: column; gap: 2px; }
.qtt-kz-satz { width: 110px; }
.qtt-kz-steuer { min-width: 210px; }
.qtt-ansicht-ergebnis .qtt-leise { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.qtt-ansicht-ergebnis .qtt-chip { font-size: 10.5px; padding: 1px 7px; }
.qtt-ansicht-ergebnis b { font-size: 20px; font-weight: 800; color: var(--oc-text-stark); white-space: nowrap; }
.qtt-ansicht-liste { max-height: 42vh; overflow-y: auto; border: 1px solid var(--oc-rand-schwach); border-radius: 12px; }
.qtt-stufen th { position: sticky; top: 0; background: var(--oc-flaeche-fest); }
.qtt-stufen td { font-variant-numeric: tabular-nums; padding: 5px 10px; }
.qtt-stufen th:first-child, .qtt-stufen td:first-child { width: auto; }
.qtt-rr, .qtt-tab th.qtt-rr { text-align: right; }
.qtt-stufen tr.qtt-treffer td { background: var(--oc-warn-bg); font-weight: 700; }
.qtt-loeschen { margin-right: auto; color: var(--oc-rot-text); }
.qtt-loeschen:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .qtt-ansicht-kopf { grid-template-columns: 1fr; } .qtt-ansicht-ergebnis { gap: 20px; } }

/* Tarif-Probe im OneCrew-Standard (Walter 11.11.2026) */
.qtt-probe { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px 14px; align-items: end; }
.qtt-probe .f-group { margin: 0; min-width: 0; }
.qtt-probe .qtt-probe-breit { grid-column: span 2; }
.qtt-probe .qtt-probe-knopf .btn { width: 100%; justify-content: center; }
.qtt-probe-ergebnis { margin-top: 16px; padding: 14px 18px; border-radius: 14px;
    background: var(--oc-flaeche); border: 1px solid var(--oc-glasrand); box-shadow: var(--oc-schatten-klein); }
.qtt-probe-kopf { font-weight: 700; color: var(--oc-text-stark); margin-bottom: 10px; }
.qtt-probe-zahlen { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-bottom: 8px; }
.qtt-probe-zahlen > div { display: flex; flex-direction: column; gap: 2px; }
.qtt-probe-zahlen b { font-size: 18px; font-weight: 800; color: var(--oc-text-stark); }
.qtt-probe-zahlen .qtt-chip { align-self: flex-start; margin-top: 2px; }
