/* App – Theke / Mein Deckel (Präfix th-) */
.th { gap: 10px; }
.th-kick.is-on { color: var(--ap-green-t); }
.th-tab { background: var(--ap-card-grad); border: 1px solid var(--ap-line); border-radius: 24px; padding: 14px 16px; }
.th-tab__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.th-tab__big { font-weight: 600; font-size: 34px; margin-top: 2px; color: var(--ap-muted); }
.th-tab__big.is-real { color: var(--ap-text); }
.th-tab__bar { height: 8px; border-radius: 999px; background: var(--ap-line); overflow: hidden; margin-top: 8px; }
.th-tab__bar span { display: block; width: 0; height: 100%; background: var(--ap-gold); border-radius: 999px; }
.th-tab__bar span.is-hot { background: var(--ap-red2); }
.th-tab__foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ap-muted); margin-top: 6px; }
.th-tab__team { margin-top: 6px; }
.th-v { border-radius: 20px; padding: 12px 14px; background: linear-gradient(135deg, rgba(227,179,65,.20), var(--ap-card)); border: 1px dashed var(--ap-gold); }
.th-v__row { display: flex; align-items: center; gap: 12px; }
.th-v__ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--ap-gold); color: var(--ap-on-gold); display: flex; align-items: center; justify-content: center; }
.th-v__txt { flex: 1; min-width: 0; }
.th-v__txt strong { font-size: 15px; }
.th-v__btn { font: inherit; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ap-gold); color: var(--ap-on-gold) !important; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.th-v__btn.is-ghost { background: transparent; border: 1px solid var(--ap-gold); color: var(--ap-gold-t) !important; }
.th-v__more { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.th-v__more[hidden] { display: none; }
.th-chip { font: inherit; font-size: 12px; font-weight: 600; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ap-line); background: transparent; color: var(--ap-soft); display: inline-flex; align-items: center; }
button.th-chip { cursor: pointer; min-height: 40px; color: var(--ap-text); }
.th-chip.is-on { background: var(--ap-gold); border-color: var(--ap-gold); color: var(--ap-on-gold); }
.th-v__note { margin-top: 8px; color: var(--ap-muted); }
.th-v--clean { background: linear-gradient(135deg, rgba(34,197,94,.16), var(--ap-card)); border-color: var(--ap-green); }
.th-v--clean .th-v__ic, .th-v--clean .th-v__btn { background: var(--ap-green); color: #04140A !important; }
.th-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.th-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.th-h strong { font-size: 15px; }
.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.th-prod { position: relative; font: inherit; color: var(--ap-text); text-align: left; min-height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 8px 12px; background: var(--ap-card); border: 1px solid var(--ap-line); }
div.th-prod { opacity: .75; }
button.th-prod { cursor: pointer; }
button.th-prod:disabled { cursor: not-allowed; opacity: .55; }
.th-prod.is-on { background: rgba(227,179,65,.12); border-color: var(--ap-gold); }
.th-prod.is-out .th-prod__n { text-decoration: line-through; color: var(--ap-muted); }
.th-prod__n { font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.th-prod__p { font-size: 12px; color: var(--ap-muted); }
.th-prod__k { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--ap-gold); color: var(--ap-on-gold); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.th-prod__k[hidden] { display: none; }
.th-cart { background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 22px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.th-cart__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.th-cart__txt { color: var(--ap-muted); min-width: 0; }
.th-cart__txt.is-full { color: var(--ap-text); }
.th-cart__sum { white-space: nowrap; }
.th-cart__acts { display: flex; gap: 8px; }
.th-book { flex: 1; min-width: 0; font: inherit; min-height: 48px; border: 0; border-radius: 16px; background: var(--ap-card2); color: var(--ap-muted); font-weight: 700; font-size: 14px; line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; cursor: not-allowed; text-align: center; }
.th-book.is-on { background: var(--ap-gold); color: var(--ap-on-gold); cursor: pointer; }
.th-clear { flex: none; width: 48px; min-height: 48px; border-radius: 16px; border: 1px solid var(--ap-line); background: transparent; color: var(--ap-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.th-clear[hidden] { display: none; }
.th-stat { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ap-muted); }
.th-stat > span { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-muted); flex: none; margin-top: 5px; }
.th-stat.is-wait { color: var(--ap-gold-t); }
.th-stat.is-wait > span { background: var(--ap-gold); }
.th-stat.is-ok { color: var(--ap-green-t); }
.th-stat.is-ok > span { background: var(--ap-green); }
.th-stat.is-err { color: var(--ap-red2-t); }
.th-stat.is-err > span { background: var(--ap-red2); }
.th-last { padding: 4px 14px; }
.th-last__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ap-line); }
.th-last__row:first-child { border-top: 0; }
.th-last__m { flex: 1; min-width: 0; }
.th-last__t { font-size: 14px; font-weight: 600; }
.th-last__a { font-size: 14px; white-space: nowrap; }
.th-last__row.is-pay .th-last__a { color: var(--ap-green-t); }
.th-adm { background: var(--ap-card); border: 1px dashed var(--ap-line2); border-radius: 20px; padding: 0 14px; }
.th-adm summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.th-adm summary::-webkit-details-marker { display: none; }
.th-adm summary > span { display: flex; flex-direction: column; }
.th-adm[open] summary svg { transform: rotate(90deg); }
.th-adm__f { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.th-adm__2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.th-adm__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ap-line); }
.th-adm__m { flex: 1; min-width: 0; }
.th-adm__row .ap-btn { flex: none; }
.th-adm__f { border-top: 1px solid var(--ap-line); padding-top: 12px; }
.th-scan { position: fixed; inset: 0; z-index: 60; background: rgba(4,8,14,.72); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.th-scan[hidden] { display: none; }
.th-scan__box { width: 100%; max-width: 488px; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 24px; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ap-shadow-lg); max-height: calc(100vh - 32px); overflow: auto; }
.th-scan__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }
.th-scan__cam { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; max-height: 46vh; }
.th-scan__cam[hidden] { display: none; }
.th-scan__cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-scan__frame { position: absolute; inset: 18%; border: 3px solid var(--ap-gold); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.th-scan .ap-field input { font-family: var(--ap-mono); letter-spacing: .06em; }
.th-cat { grid-column: 1 / -1; font-size: 11px; letter-spacing: .04em; color: var(--ap-muted); margin-top: 4px; }
.th-cat:first-child { margin-top: 0; }
.th-chip.is-out { text-decoration: line-through; color: var(--ap-ph); cursor: not-allowed; }
.th-cart__txt.is-warn { color: var(--ap-red2-t); }
