/* ============ Admin-Bereich ============ */
.atop { grid-template-columns: auto 1fr; }
.atop__right { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.pill { font-family: var(--font); font-style: normal; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  background: var(--text); color: #000; padding: 3px 8px; border-radius: 6px; margin-left: 8px; align-self: center; }
.btn--sm .lang { margin-left: -4px; }
.btn--sm { height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.danger { color: #ff8a8c; border-color: #5a2a2b; }
.danger:hover { border-color: #ff8a8c; }
.grow { flex: 1; }
.savestate { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.savestate.ok { color: var(--ok); }
.savestate.err { color: #ff8a8c; }

.tabs { max-width: 1280px; margin: 0 auto; padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; color: var(--muted); padding: 12px 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; margin-left: 4px; }

.awrap { max-width: 1280px; margin: 0 auto; padding: 18px 16px 80px; }
.ptool { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ptool__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.phint { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.ainput { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 16px; outline: none; color-scheme: dark; min-width: 0; }
textarea.ainput { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select.ainput { padding-right: 30px; }
.ainput:focus { border-color: var(--accent); }
.ptool > .ainput[type="search"] { flex: 1 1 220px; }

.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; max-width: 100%; }
.seg button { flex: none; border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--text); color: #000; }

/* Listen */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.row.is-hidden { opacity: .55; }
.row .media { width: 52px; border-radius: 9px; }
.row .ph { font-size: 1rem; }
.row__main { min-width: 0; cursor: pointer; }
.row__titel { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__ctrl { display: flex; gap: 12px; align-items: center; }
.row__toggles { display: flex; gap: 12px; }
.row__toggles .switch { font-size: .8rem; }
.iconbtns { display: flex; gap: 4px; }
.ibtn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-size: 1rem; }
.ibtn:hover { border-color: #555; }
.ibtn:disabled { opacity: .3; cursor: default; }
.ibtn.danger:hover { border-color: #ff8a8c; }

.row--kat { grid-template-columns: 1fr auto; }
.row--kat .ainput { width: 100%; max-width: 420px; }
.row--kunde { grid-template-columns: minmax(110px, 160px) 1fr 1fr auto; }
.row--kunde .knr { font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
.row--kunde .ainput { width: 100%; }
.kform { display: grid; grid-template-columns: minmax(220px, 1.2fr) 1fr 1fr auto; gap: 10px; margin-bottom: 16px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.kform__nr { display: flex; gap: 8px; }
.kform__nr .ainput { flex: 1; font-weight: 700; letter-spacing: .06em; }

/* Bestellungen */
.orders { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.order[data-status="neu"] { border-color: rgba(229,56,59,.7); box-shadow: 0 0 0 1px rgba(229,56,59,.25) inset; }
.order[data-status="abgeholt"], .order[data-status="storniert"] { opacity: .65; }
.order__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.order__nr { font-weight: 800; font-size: 1.05rem; }
.order__zeit { color: var(--muted); font-size: .8rem; }
.order__kunde { font-weight: 700; }
.order a { color: var(--text); }
.order__abhol { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: .92rem; }
.order__abhol strong { color: #fff; }
.order ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.order li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #2a2a2a; }
.order li:last-child { border-bottom: 0; }
.order__sum { display: flex; justify-content: space-between; font-weight: 700; }
.order__bem { font-size: .9rem; color: #e8d9a8; background: rgba(255,200,80,.07); border-radius: 10px; padding: 8px 10px; white-space: pre-line; }
.order .seg { width: 100%; }
.order .seg button { flex: 1; padding: 7px 6px; font-size: .82rem; }
.order .seg button[data-s="neu"][aria-pressed="true"] { background: var(--accent); color: #fff; }
.order .seg button[data-s="bereit"][aria-pressed="true"] { background: #f0b429; color: #000; }
.order .seg button[data-s="abgeholt"][aria-pressed="true"] { background: var(--ok); color: #000; }
.status { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; background: #333; white-space: nowrap; }
.status--neu { background: var(--accent); color: #fff; }
.status--bereit { background: #f0b429; color: #000; }
.status--abgeholt { background: var(--ok); color: #000; }
.leerinfo { color: var(--muted); text-align: center; padding: 40px 10px; grid-column: 1 / -1; }

.startbanner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  background: #3a2a0c; border: 1px solid #7a5a16; color: #ffe2a3; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }

/* Einstellungen */
.eform { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.eform fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.eform legend { padding: 0 6px; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.eform label, .pedit label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.eform label.check, .pedit label.switch { flex-direction: row; font-weight: 500; }
.erow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wtage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.wtage label { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 500 !important;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.wtage input { accent-color: var(--accent); }
.infobox { font-size: .88rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.infobox code { background: #262626; padding: 1px 6px; border-radius: 5px; color: #fff; }

/* Produkt-Dialog */
.adlg { width: min(980px, calc(100vw - 32px)); }
.adlg--klein { width: min(520px, calc(100vw - 32px)); }
.pedit { padding: 22px 22px 18px; max-height: 92dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.pedit h2 { margin: 0; padding-right: 44px; }
.pedit .close { background: var(--surface-2); }
.pedit__grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.pedit__bild { display: flex; flex-direction: column; gap: 10px; }
.pedit__bild .media { border-radius: 12px; border: 1px solid var(--line); }
.pedit__bild .ph { font-size: 3rem; }
.pedit__bildbtns { display: flex; gap: 8px; }
.pedit__bildbtns .btn { flex: 1; }
.pedit label.sm { font-size: .82rem; font-weight: 500; color: var(--muted); }
.pedit__felder { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pedit__toggles { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 4px; }
.pedit__toggles .switch { color: var(--text); font-size: .92rem; }
.pedit__foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.uploading { position: relative; }
.uploading::after { content: "Lädt hoch …"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.65); font-weight: 700; z-index: 3; }

/* ============ Smartphone ============ */
@media (max-width: 760px) {
  .atop { grid-template-columns: minmax(0, 1fr) auto; }
  .atop .logo__a { font-size: .95rem; }
  .atop .logo__b { font-size: 1.45rem; }
  .atop .pill { margin-left: 4px; font-size: .62rem; padding: 2px 6px; }
  .lang { display: none; }
  html, body { overflow-x: hidden; overflow-x: clip; }
  .atop__right .btn { padding: 0 10px; font-size: .82rem; height: 34px; }
  .savestate { display: none; }
  .savestate.err { display: inline; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: #3a1516; padding: 10px; border-radius: 10px; text-align: center; }
  .awrap { padding: 14px 12px 80px; }
  .ptool__btns { margin-left: 0; width: 100%; }
  .ptool__btns .btn { flex: 1; }
  .ptool > select.ainput { flex: 1 1 140px; }

  .row { grid-template-columns: 46px 1fr; }
  .row .media { width: 46px; }
  .row__ctrl { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .row--kat { grid-template-columns: 1fr; }
  .row--kunde { grid-template-columns: 1fr auto; }
  .row--kunde .ainput { grid-column: 1 / -1; }
  .row--kunde .row__ctrl { grid-column: 2; grid-row: 1; }
  .kform { grid-template-columns: 1fr; }

  .orders { grid-template-columns: 1fr; }
  .erow { grid-template-columns: 1fr; }

  .adlg, .adlg--klein, .adlg--gross { width: 100vw; }
  .pedit { border-radius: 20px 20px 0 0; padding: 18px 16px 0; }
  .pedit__grid { grid-template-columns: 1fr; }
  .pedit__bild .media { max-width: 220px; }
  .pedit__foot { position: sticky; bottom: 0; z-index: 5; background: var(--surface); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .pedit__foot .btn { flex: 1 1 auto; }
  .pedit__foot .grow { display: none; }
}

/* ============ Lager & Varianten ============ */
.lagerbox { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: #121212; }
.vedit { display: flex; flex-direction: column; gap: 8px; }
.vedit__head { font-size: .9rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.vedit__head .muted { font-size: .8rem; }
.vrow { display: grid; grid-template-columns: 1.2fr .9fr 1fr .9fr auto auto; gap: 8px; align-items: center; }
.vrow .ainput { width: 100%; }
.vrow .switch { font-size: .8rem; }
.vkopf { display: grid; grid-template-columns: 1.2fr .9fr 1fr .9fr auto auto; gap: 8px; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ainput:disabled { opacity: .4; }
.bestandpill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #262626; margin-left: 4px; }
.bestandpill.leer { background: #4a1d1f; color: #ffb4b4; }
.bestandpill.knapp { background: #4a3a10; color: #ffe2a3; }

/* ============ Urlaub & Zeitfenster ============ */
.urlaub { display: flex; flex-direction: column; gap: 6px; }
.urlaub__row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .92rem; }
.urlaub__row span { flex: 1; }
.urlaub__neu { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.urlaub__neu label { flex: 0 1 160px; }
.urlaub__neu label.grow { flex: 1 1 180px; }
.zf { display: grid; grid-template-columns: 60px 1fr; gap: 8px 10px; align-items: center; }
.zf span { font-weight: 600; font-size: .9rem; }
.zf .ainput { width: 100%; }
.eform code { background: #262626; padding: 1px 6px; border-radius: 5px; color: #fff; }

/* ============ Auswertung ============ */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi__wert { font-size: 1.6rem; font-weight: 800; }
.kpi__label { color: var(--muted); font-size: .85rem; }
.auswgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.box h3 { margin: 0 0 10px; font-size: 1rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 4px; border-bottom: 1px solid #222; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; height: 100%; }
.bar__fill { width: 100%; max-width: 34px; background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar__wert { font-size: .72rem; font-weight: 700; }
.bar__label { font-size: .68rem; color: var(--muted); white-space: nowrap; }

/* ============ Tagesliste & Druck ============ */
#druck { display: flex; flex-direction: column; gap: 18px; }
.tl h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tl__box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tl__order { border-top: 1px dashed #333; padding: 10px 0; display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.tl__order:first-of-type { border-top: 0; }
.tl__check { width: 18px; height: 18px; border: 2px solid #777; border-radius: 4px; margin-top: 3px; }
.tl__kopf { font-weight: 700; }
.tl__sub { color: var(--muted); font-size: .85rem; }
.tl__items { margin: 6px 0 0; padding-left: 18px; font-size: .92rem; }
.tl__bem { font-size: .88rem; margin-top: 4px; }

@media print {
  body.admin { background: #fff !important; color: #000 !important; }
  body.admin #app, .noprint, .toast { display: none !important; }
  #tagDlg { position: static; width: 100% !important; max-width: none; margin: 0; }
  #tagDlg::backdrop { display: none; }
  #tagDlg .sheet__panel { border: 0; box-shadow: none; background: #fff; color: #000; max-height: none; overflow: visible; padding: 0; }
  .tl__box { border-color: #999; }
  .tl__sub, .tbl th { color: #444 !important; }
  .tbl td { border-color: #ccc; }
  .tl__check { border-color: #000; }
  .tl__order { break-inside: avoid; border-color: #bbb; }
}

@media (max-width: 760px) {
  .vrow, .vkopf { grid-template-columns: 1fr 1fr 1fr; }
  .vrow .switch { grid-column: 1 / 3; }
  .vrow .vname { grid-column: 1 / -1; }
  .vkopf { display: none; }
  .auswgrid { grid-template-columns: 1fr; }
  .zf { grid-template-columns: 44px 1fr; }
}
.auswgrid > * { min-width: 0; }
.box { overflow-x: auto; }
.pedit label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
@media (max-width: 760px) {
  .row__sub { white-space: normal; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi__wert { font-size: 1.25rem; }
}

/* ============ Theke ============ */
.theke { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.theke__input { flex: 1 1 320px; height: 58px !important; font-size: 1.35rem !important; font-weight: 700; letter-spacing: .08em; }
.theke .btn { height: 58px; }
.scanner { position: relative; max-width: 520px; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 12px; }
.scanner video { width: 100%; display: block; }
.scanner__rahmen { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.8); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.scanner__stop { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); }
.thekekunde { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.thekekunde__nr { font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; }
.thekekunde__name { font-size: 1.1rem; font-weight: 700; }
.thekeleer { padding: 26px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; }
.order__aktion { display: flex; gap: 8px; flex-wrap: wrap; }
.order__aktion .btn { flex: 1; }
.btn--gruen { background: var(--ok); color: #04130b; }
.btn--gruen:hover { filter: brightness(1.08); }
.btn--gross { height: 56px; font-size: 1.05rem; }

/* ============ Bestellungen: Überfällig, Nachricht ============ */
.order.is-ueber { border-color: #b3261e; box-shadow: 0 0 0 1px rgba(179,38,30,.4) inset; }
.ueberlabel { display: inline-block; background: #b3261e; color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .05em; }
.order__msg { font-size: .88rem; background: #1d1f33; border: 1px solid #353b7a; border-radius: 10px; padding: 8px 10px; white-space: pre-line; }
.order__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.order__tools .btn { flex: 1; height: 36px; font-size: .85rem; }
.msgvorlagen { display: flex; gap: 6px; flex-wrap: wrap; }
.msgvorlagen button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: .82rem; }
.msgvorlagen button:hover { border-color: #555; }
#msgText { width: 100%; }

/* ============ Produkte: Auswahl, Bestand inline, Mehrfach ============ */
.row--sel { grid-template-columns: 22px 52px 1fr auto; }
.row--sel > input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.row.is-sel { border-color: var(--accent); }
.allesel { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin: -4px 0 10px; cursor: pointer; }
.allesel input { width: 18px; height: 18px; accent-color: var(--accent); }
.bst { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); height: 34px; }
.bst button { width: 30px; height: 100%; border: 0; background: none; font-size: 1.05rem; }
.bst button:hover { color: var(--accent-hi); }
.bst output { min-width: 34px; text-align: center; font-weight: 800; font-size: .92rem; cursor: text; }
.bst small { color: var(--muted); font-size: .72rem; padding-left: 8px; }
.bst.leer output { color: #ff8a8c; }
.bst.knapp output { color: #ffd46b; }
.bstwrap { display: flex; gap: 6px; flex-wrap: wrap; }
.massbar { position: sticky; bottom: 10px; z-index: 15; margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px; background: #1b1b1b; border: 1px solid var(--accent); box-shadow: var(--shadow); }
.massbar__preis { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.massbar .check { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; }

/* ============ Kunden: Auswahl ============ */
.row--kunde.row--sel { grid-template-columns: 22px minmax(110px, 160px) 1fr 1fr auto; }

/* ============ Wünsche ============ */
.wrow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; }
.wrow.is-erledigt { opacity: .55; }
.wrow__text { white-space: pre-line; font-weight: 600; }
.wrow__meta { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ============ Clubkarten (Vorschau im Dialog) ============ */
.kartenopt { display: flex; gap: 16px; flex-wrap: wrap; }
.kartenopt > div { display: flex; flex-direction: column; gap: 6px; }
.kartenopt__l { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kartenvorschau { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 14px; border-radius: 12px; background: #e9e9e9; }
.kartenvorschau .kv { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.kartenvorschau .kv span { font-size: .75rem; color: #444; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kartenvorschau iframe { border: 0; width: 324px; height: 205px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.25); background: #fff; }

@media (max-width: 760px) {
  .theke__input { height: 52px !important; font-size: 1.15rem !important; }
  .theke .btn { height: 52px; flex: 1; }
  .row--sel { grid-template-columns: 22px 46px 1fr; }
  .row--kunde.row--sel { grid-template-columns: 22px 1fr auto; }
  .row--kunde.row--sel .ainput { grid-column: 2 / -1; }
  .row--kunde.row--sel .row__ctrl { grid-column: 3; grid-row: 1; }
  .massbar { bottom: 6px; }
  .massbar select, .massbar .btn { flex: 1 1 140px; }
}

/* ============ Auswertung (Detail) ============ */
.afilter { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.afilter__reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.afilter__reihe label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.afilter__reihe .ainput { width: 100%; }
.afilter__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.afilter__chips:empty { display: none; }
.fchip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--accent); font-size: .85rem; }
.fchip button { border: 0; background: none; color: var(--muted); font-size: 1rem; padding: 0; line-height: 1; }
.atabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 6px; }
.atabs button[data-at] { border: 0; background: none; color: var(--muted); padding: 8px 12px; font-weight: 600; border-radius: 8px; }
.atabs button[data-at][aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.atabs .btn { margin-left: 4px; }
.tbl th.sort { cursor: pointer; user-select: none; }
.tbl th.sort:hover { color: var(--text); }
.tbl th.sort.aktiv { color: var(--text); }
.tbl tr.klick { cursor: pointer; }
.tbl tr.klick:hover td { background: #1c1c1c; }
.tbl tfoot td { font-weight: 800; border-top: 2px solid var(--line); }
.anteil { display: inline-block; height: 6px; border-radius: 3px; background: var(--accent); vertical-align: middle; margin-right: 6px; opacity: .85; }
.chart { display: flex; flex-direction: column; gap: 6px; }
.chart__plot { display: flex; align-items: flex-end; gap: 2px; height: 170px; border-bottom: 1px solid #2c2c2c; position: relative; }
.chart__bar { flex: 1; min-width: 3px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; cursor: default; }
.chart__bar::before { content: ""; position: absolute; inset: 0 -1px; }            /* größere Hover-Fläche */
.chart__fill { width: 100%; max-width: 38px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; }
.chart__bar:hover .chart__fill { filter: brightness(1.25); }
.chart__wert { font-size: .7rem; font-weight: 700; color: var(--text); margin-bottom: 3px; white-space: nowrap; }
.chart__achse { display: flex; gap: 2px; }
.chart__achse span { flex: 1; min-width: 3px; text-align: center; font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: visible; display: flex; justify-content: center; }
.chart__titel { font-weight: 700; font-size: .95rem; }
.chart__sub { color: var(--muted); font-size: .8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.statusleiste { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--surface); }
.statusleiste span { display: block; height: 100%; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; margin-top: 8px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.vtip { position: fixed; z-index: 300; pointer-events: none; background: #f3f3f3; color: #111; padding: 7px 10px; border-radius: 8px; font-size: .82rem; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.kpi__sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.detailkopf { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.detailkopf h3 { margin: 0; }
@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .afilter__reihe { grid-template-columns: 1fr 1fr; }
  .atabs { overflow-x: auto; flex-wrap: nowrap; }
  .atabs button[data-at] { flex: none; }
  .atabs .grow { display: none; }
  .chart__plot { height: 140px; }
  .tbl { font-size: .82rem; }
}

/* ============ Bild-Editor ============ */
.be { width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: repeating-conic-gradient(#1a1a1a 0 25%, #222 0 50%) 0 0 / 20px 20px; touch-action: none; cursor: grab; }
.be:active { cursor: grabbing; }
.be canvas { width: 100%; height: 100%; display: block; }
.be__reihe { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.be__zoom { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; }
.be__zoom input { flex: 1; accent-color: var(--accent); }
.be__farben { display: flex; gap: 8px; }
.be__farben button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #444; }
.be__farben button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(229,56,59,.35); }
.be__auto { width: auto !important; padding: 0 10px; border-radius: 999px !important; background: var(--surface-2); font-size: .8rem; font-weight: 700; }

.pushzeile { font-size: .92rem; }
#pushKopf.is-an { border-color: var(--ok); color: var(--ok); }

.wbilder { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wbilder img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #111; }
.wbilder a:hover img { border-color: var(--accent); }

/* ============ Neu-Dauer ============ */
.neubis { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; font-size: .9rem !important; }
.neubis .ainput { height: 36px; }
.neuwahl { display: flex; gap: 8px; flex-wrap: wrap; }
.neuwahl button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.neuwahl button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.neuhinweis { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px;
  background: #3a2a0c; border: 1px solid #7a5a16; color: #ffe2a3; margin-bottom: 12px; font-size: .92rem; }
.neuabliste { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.neuab { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.neuab__name { font-weight: 650; }
.neuab__sub { font-size: .8rem; color: var(--muted); }
.neuab__btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
.neuab__btns .btn { height: 34px; padding: 0 10px; font-size: .82rem; }
.neupill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #3a1d1e; color: #ffb4b4; margin-left: 4px; }
.neupill.ab { background: #b3261e; color: #fff; }
@media (max-width: 760px) { .neuab { grid-template-columns: 1fr; } .neuab__btns { justify-content: flex-start; } }

/* ============ Import-Assistent ============ */
.iaschritte { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; counter-reset: s; flex-wrap: wrap; }
.iaschritte li { counter-increment: s; font-size: .82rem; color: var(--muted); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.iaschritte li::before { content: counter(s) ". "; }
.iaschritte li.aktiv { color: var(--text); border-color: var(--accent); }
.iaschritte li.fertig { color: var(--ok); border-color: #1f5c3e; }
.iamap { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.3fr) 1.2fr; gap: 8px 12px; align-items: center; }
.iamap .kopf { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.iamap .feld { font-weight: 600; font-size: .9rem; }
.iamap .feld small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.iamap .bsp { font-size: .82rem; color: #cfcfcf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2); border-radius: 8px; padding: 7px 9px; }
.iamap select.ainput { width: 100%; }
.iamap .ok { border-color: #1f5c3e; }
.iagruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 38vh; overflow-y: auto; padding: 2px; }
.iagruppen label { display: flex !important; flex-direction: row !important; gap: 8px !important; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500 !important; }
.iagruppen label small { margin-left: auto; color: var(--muted); }
.iaopts { display: flex; flex-direction: column; gap: 8px; }
.iaopts label { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; }
.iaopts small { display: block; color: var(--muted); font-weight: 400; }
.iasumme { display: flex; gap: 10px; flex-wrap: wrap; }
.iasumme div { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.iasumme strong { font-size: 1.3rem; display: block; }
.iatab { max-height: 40vh; overflow: auto; }
.iatab .alt { color: var(--muted); text-decoration: line-through; margin-right: 4px; }
.iatag { font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; }
.iatag.neu { background: #10291d; color: #6ee7b0; }
.iatag.upd { background: #1d1f33; color: #b9c2ff; }
.iatag.weg { background: #3a1d1e; color: #ffb4b4; }
@media (max-width: 760px) {
  .iamap { grid-template-columns: 1fr 1.2fr; }
  .iamap .bsp, .iamap .kb { display: none; }
}

/* ============ Verkaufsabgleich ============ */
.vahist { display: flex; flex-direction: column; gap: 6px; }
.vahist .eintrag { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; flex-wrap: wrap; }
.vahist .eintrag .grow { flex: 1; min-width: 160px; }
.vahist .eintrag small { display: block; color: var(--muted); }
.vahist .eintrag.weg { opacity: .55; }
.vafilter { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.vafilter label { min-width: 160px; }
.vawarn { padding: 10px 12px; border-radius: 12px; background: #2d2410; border: 1px solid #5c4716; color: #ffd98a; font-size: .88rem; }
.vatab td { vertical-align: middle; }
.vatab td small { display: block; color: var(--muted); font-size: .76rem; }
.vatab select.ainput { width: 100%; min-width: 200px; font-size: .85rem; padding: 6px 8px; }
.vatab .zu { display: flex; gap: 6px; align-items: center; }
.vatab .zu span { flex: 1; }
.vatab .offen td { background: rgba(255, 180, 60, .06); }
.vatab .vabst { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vatab .vabst .null { color: #ffb4b4; font-weight: 700; }
.vatab .linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; padding: 2px; }
@media (max-width: 760px) {
  .vatab thead { display: none; }
  .vatab tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .vatab td { border: 0 !important; padding: 0 !important; }
  .vatab td.zuo { grid-column: 1 / -1; }
}

/* ============ Chat, Einkaufsliste, Inventur, Geschmack, ready2order ============ */
.chat__m--kunde { align-self: flex-start; background: #1d1f33; border: 1px solid #353b7a; border-bottom-left-radius: 4px; }
.chat__m--shop { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.chat--klein { font-size: .9rem; }
.chat--klein .chat__m { max-width: 92%; }
.btn--hinweis { border-color: #b08a2a !important; color: #ffd98a !important; }
#msgVerlauf:empty { display: none; }
#msgVerlauf { max-height: 34vh; overflow-y: auto; }
.chatadmin { display: grid; grid-template-columns: 320px 1fr; gap: 14px; height: calc(100vh - 210px); min-height: 420px; }
.chatliste { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.chatliste__kopf { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.chatliste__kopf .ainput { flex: 1; min-width: 0; }
#chatListe { overflow-y: auto; flex: 1; }
.chatitem { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid #222; background: none; color: var(--text); position: relative; }
.chatitem:hover { background: #1a1a1a; }
.chatitem.is-aktiv { background: #222; }
.chatitem.is-neu strong { color: #ffd98a; }
.chatitem__kopf { display: flex; justify-content: space-between; gap: 8px; padding-right: 26px; }
.chatitem__kopf small { color: var(--muted); font-size: .75rem; }
.chatitem__text { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatitem .tabbadge { position: absolute; right: 10px; top: 10px; }
.chatfenster { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.chatleer { margin: auto; color: var(--muted); padding: 30px; text-align: center; max-width: 360px; }
.chatfenster__kopf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chatzurueck { display: none; }
.chatfenster__verlauf { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chatfenster .msgvorlagen { padding: 0 12px; }
.chatfenster__eingabe { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chatfenster__eingabe textarea { flex: 1; resize: none; }
@media (max-width: 760px) {
  .chatadmin { grid-template-columns: 1fr; height: calc(100vh - 170px); }
  .chatadmin.is-offen .chatliste { display: none; }
  .chatadmin:not(.is-offen) .chatfenster { display: none; }
  .chatzurueck { display: inline-flex; }
}
h2.abschnitt { font-size: 1.05rem; margin: 26px 0 4px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: .85rem; }
.fchip[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.mkbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.mkbox__titel { font-weight: 600; font-size: .9rem; }
.mkpill { color: #cfcfcf; }
.vrow, .vkopf { grid-template-columns: 1.2fr .8fr .9fr .8fr .9fr auto auto; }
@media (max-width: 760px) { .vrow, .vkopf { grid-template-columns: 1fr 1fr 1fr; } }
.ekmarke { margin: 16px 0 6px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ekmenge { width: 84px; text-align: right; }
.rot { color: #ff8a8c; font-weight: 700; }
.gruen { color: #6ee7b0; font-weight: 700; }
.adlg--gross { width: min(1100px, calc(100vw - 32px)); }
.invtool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.invtool #invSuche { flex: 1; min-width: 220px; }
.scanner__rahmen--breit { inset: 30% 10%; }
.invliste { display: flex; flex-direction: column; gap: 6px; max-height: 56vh; overflow-y: auto; }
.invrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.invrow.is-gezaehlt { border-color: #1f5c3e; background: #10291d; }
.invrow.is-fokus { outline: 2px solid #ffd98a; }
.invrow__name { font-weight: 600; font-size: .92rem; }
.invrow__name small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.invzahl { width: 64px; height: 34px; text-align: center; border: 0; background: transparent; color: var(--text); font-size: 1rem; font-weight: 700; -moz-appearance: textfield; }
.invzahl::-webkit-inner-spin-button { -webkit-appearance: none; }
.r2ostatus .box { margin-top: 6px; }
.r2ostatus select.ainput { min-width: 200px; }
@media (max-width: 760px) {
  .adlg--gross { width: 100vw; }
  .invrow { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .chatfenster .msgvorlagen { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chatfenster .msgvorlagen button { flex: none; }
}

/* ============ Heute ============ */
.hvonbis { display: inline-flex; align-items: center; gap: 6px; }
.hvonbis .ainput { width: 150px; }
.hkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi--gross { grid-column: span 2; background: linear-gradient(135deg, #2a1213, #151515); border-color: #5a2224; }
.kpi--gross .kpi__wert { font-size: 2.2rem; }
.kpi--hinweis { border-color: #6b5a1c; }
.kpi--warn { border-color: #6b2a2c; }
.kpi--warn .kpi__wert { color: #ff8a8c; }
.hchart { margin: 12px 0; }
.hchart__kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.hlegende { font-size: .82rem; color: var(--muted); display: inline-flex; gap: 12px; align-items: center; }
.hlegende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.hl--laden, .hbar__laden { background: #4b8fd6; }
.hl--app, .hbar__app { background: #e5383b; }
.hbars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 180px; align-items: end; }
.hbar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.hbar__stapel { flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; gap: 2px; position: relative; }
.hbar__stapel > div:not(.hbar__fehlt) { border-radius: 4px 4px 0 0; min-height: 2px; }
.hbar__fehlt { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .8rem; }
.hbar span { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.hgrid h3 { margin: 0 0 8px; font-size: 1rem; }
.hliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.hliste .status { font-size: .7rem; padding: 1px 6px; margin-left: 4px; }
@media (max-width: 760px) {
  .kpi--gross { grid-column: 1 / -1; }
  .hbars { gap: 3px; height: 150px; }
  .hbar span { font-size: .58rem; }
  .hvonbis .ainput { width: 135px; }
}
/* ============ Sonstiges ============ */
.abholer { font-size: .9rem; color: #ffd98a; margin-top: 2px; }
.respill, .baldpill { font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #12324a; color: #9fd4ff; border: 1px solid #2a5a80; }
.order.is-fokus { outline: 3px solid #ffd98a; }
.protliste { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; }
.protzeile { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 4px; border-bottom: 1px solid #222; font-size: .88rem; }
.protzeit { color: var(--muted); font-variant-numeric: tabular-nums; }
.ekmarke { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ekbtns { display: inline-flex; gap: 6px; text-transform: none; letter-spacing: 0; }
.chatfotoA { height: 44px; padding: 0 12px; display: inline-grid; place-items: center; font-size: 1.1rem; cursor: pointer; }
.chatfenster .chatweg { font-size: .7rem; }
@media print { .eti { break-inside: avoid; } }
.bereichliste { display: flex; flex-direction: column; gap: 6px; }
.bereichzeile { display: grid; grid-template-columns: 1fr 1.4fr auto auto auto; gap: 8px; align-items: center; }
.bereichpill { font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #2b1d3a; color: #d6b8ff; border: 1px solid #553a80; }
.sortbtn { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sortboxen { display: flex; flex-direction: column; gap: 8px; }
.sortfs { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sortfs:disabled { opacity: .5; }
.rundauswahl { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.rundkunden { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
@media (max-width: 760px) { .bereichzeile { grid-template-columns: 1fr auto; } .bereichzeile [data-bf="beschreibung"] { grid-column: 1 / -1; } }
.row--kunde { grid-template-columns: minmax(100px, 140px) 1fr 1fr 1fr auto; }
.row--kunde.row--sel { grid-template-columns: 22px minmax(100px, 140px) 1fr 1fr 1fr auto; }
@media (max-width: 760px) {
  .row--kunde { grid-template-columns: 1fr auto; }
  .row--kunde.row--sel { grid-template-columns: 22px 1fr auto; }
  .row--kunde .row__ctrl { flex-wrap: wrap; justify-content: flex-end; }
}

/* ---- KI-Verkaufsfotos ---- */
.btn--ki { background: linear-gradient(135deg, #7b5cff, #e5383b); color: #fff; border: 0; }
.btn--ki:hover { filter: brightness(1.1); }
.ki__start { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin-top: 10px; }
.ki__quelle { display: flex; flex-direction: column; gap: 8px; }
.ki__bild { aspect-ratio: 1; border-radius: 12px; background: #1a1a1a; border: 1px dashed #444; display: grid; place-items: center; overflow: hidden; }
.ki__bild img { width: 100%; height: 100%; object-fit: contain; }
.ki__vorlagen { display: flex; flex-direction: column; gap: 10px; }
.ki__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ki__chips button { text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid #333; background: #161616; color: inherit; cursor: pointer; font: inherit; line-height: 1.25; }
.ki__chips button small { display: block; color: #9a9a9a; font-size: .74rem; margin-top: 2px; }
.ki__chips button[aria-pressed="true"] { border-color: #e5383b; background: #2a1213; box-shadow: 0 0 0 1px #e5383b inset; }
.ki__ergebnisse { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.ki__erg { border: 1px solid #2c2c2c; border-radius: 12px; overflow: hidden; background: #141414; display: flex; flex-direction: column; }
.ki__erg .ki__img { aspect-ratio: 1; display: grid; place-items: center; background: #0e0e0e; position: relative; }
.ki__erg .ki__img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ki__erg .ki__fuss { padding: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ki__erg .ki__fuss strong { flex: 1 1 100%; font-size: .85rem; }
.ki__erg .ki__msg { padding: 12px; font-size: .82rem; color: #ff9b9d; text-align: center; }
.ki__lade { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #333; border-top-color: #e5383b; animation: kiDreh 0.9s linear infinite; }
.ki__lade + small { position: absolute; bottom: 10px; color: #8a8a8a; font-size: .75rem; }
@keyframes kiDreh { to { transform: rotate(360deg); } }
.ki__gross { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: grid; place-items: center; z-index: 99; cursor: zoom-out; }
.ki__gross img { max-width: 94vw; max-height: 94vh; border-radius: 10px; }
@media (max-width: 640px) {
  .ki__start { grid-template-columns: 1fr; }
  .ki__bild { max-width: 260px; width: 100%; margin: 0 auto; }
  .ki__chips { grid-template-columns: 1fr 1fr; }
  .ki__ergebnisse { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ki__erg .ki__fuss .btn { flex: 1; }
}

/* ---- Archiv in der Auswertung ---- */
.auswarchiv { border: 1px solid #2c2c2c; border-radius: 12px; padding: 12px 14px; background: #121212; }
.auswarchiv summary { cursor: pointer; }
.auswarchiv tbody tr[data-amonat]:hover { background: #1c1c1c; }
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.agrid .tbl { margin-top: 6px; }

/* ---- Kasse (ready2order) ---- */
.kassekopf { max-width: 720px; margin-bottom: 14px; }
.kassestatus { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 14px; border: 1px solid #2c2c2c; border-radius: 12px; background: #141414; }
.kpunkt { width: 10px; height: 10px; border-radius: 50%; background: #e5383b; box-shadow: 0 0 0 3px rgba(229,56,59,.2); }
.kpunkt--ok { background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.2); }
.kmodus { font-size: .78rem; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: #3a2a10; color: #ffcf5a; }
.kmodus--live { background: #12301f; color: #6fe3ae; }
.data-panel-kasse .eform, [data-panel="kasse"] .eform { margin-top: 14px; }
.modwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modkarte { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #2c2c2c; border-radius: 12px; cursor: pointer; background: #131313; }
.modkarte input { margin-top: 4px; accent-color: #e5383b; }
.modkarte small { display: block; color: #9a9a9a; margin-top: 4px; font-size: .82rem; line-height: 1.35; }
.modkarte:has(input:checked) { border-color: #ffcf5a; background: #1d1810; }
.modkarte--live:has(input:checked) { border-color: #3ecf8e; background: #0f1d16; }
.kassierwahl { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.kassierwahl .btn--gross { height: auto; padding: 14px 16px; flex-direction: column; align-items: flex-start; font-size: 1.15rem; text-align: left; }
.kassierwahl .btn--gross small { display: block; font-size: .82rem; font-weight: 500; opacity: .85; margin-top: 2px; }
.order__kasse { font-size: .82rem; color: #9dbbff; margin: 6px 0 0; }
.order__tools { display: flex; gap: 8px; }
.order__tools .btn { flex: 1; }
.order__tools [data-kasse] { flex: 0 0 auto; }
@media (max-width: 760px) { .modwahl { grid-template-columns: 1fr; } }

/* ---- Übersichtlichkeit: „⋯ Mehr“-Menü, kompakte Kopfzeile ---- */
.mehr { position: relative; }
.mehr > summary { list-style: none; cursor: pointer; user-select: none; }
.mehr > summary::-webkit-details-marker { display: none; }
.mehr[open] > summary { background: #222; }
.mehr__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 250px; display: flex; flex-direction: column; padding: 6px; border: 1px solid #333; border-radius: 12px; background: #161616; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.mehr__menu > .btn, .mehr__menu > label.btn { justify-content: flex-start; border: 0; background: transparent; height: 40px; width: 100%; font-weight: 600; }
.mehr__menu > .btn:hover, .mehr__menu > label.btn:hover { background: #222; }
.mehr__menu hr { border: 0; border-top: 1px solid #2a2a2a; margin: 4px 2px; width: auto; }
.mehr__menu small { color: #8a8a8a; padding: 2px 10px 4px; font-size: .75rem; }
.ptool .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ptool .seg::-webkit-scrollbar { display: none; }
.ptool .seg button { flex: 0 0 auto; white-space: nowrap; }
.kneu { border: 1px solid #2c2c2c; border-radius: 14px; padding: 12px; margin-bottom: 12px; background: #121212; }
.kneu__kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kneu__kopf strong { font-size: .98rem; }
.listenkopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.listenkopf .check { margin: 0; }
.listenkopf .phint { margin: 0; }
details.hinweis { margin: 0 0 10px; }
details.hinweis > summary { cursor: pointer; color: #8a8a8a; font-size: .85rem; list-style: none; }
details.hinweis > summary::-webkit-details-marker { display: none; }
details.hinweis > summary::before { content: "ⓘ "; }
details.hinweis[open] > summary { color: #bbb; }
details.hinweis p { margin: 6px 0 0; color: #9a9a9a; font-size: .85rem; }
.esuche { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 0 10px; margin-bottom: 8px; background: linear-gradient(#0b0b0b 80%, rgba(11,11,11,0)); }
.esuche::-webkit-scrollbar { display: none; }
.esuche button { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; border: 1px solid #2c2c2c; background: #161616; color: inherit; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.esuche button[aria-pressed="true"] { background: #f2f2f2; color: #0b0b0b; border-color: transparent; }
.savebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 16px; border-radius: 14px; background: #1d1810; border: 1px solid #ffcf5a; box-shadow: 0 12px 30px rgba(0,0,0,.6); max-width: calc(100vw - 24px); }
.savebar span { font-weight: 600; color: #ffcf5a; }
@media (max-width: 760px) {
  .atop .pill { display: none; }
  .atop__right { gap: 4px; }
  .atop__right .btn { padding: 0 9px; min-width: 34px; }
  .nurmobil { display: inline; }
  .ptool__btns.kompakt .btn, .ptool__btns.kompakt .mehr > summary { flex: 1; }
  .ptool__btns.kompakt .mehr { flex: 1; display: flex; }
  .ptool__btns.kompakt .mehr > summary { width: 100%; }
  .mehr__menu { right: 0; left: auto; min-width: min(280px, calc(100vw - 24px)); }
  .savebar { bottom: 10px; width: calc(100vw - 20px); justify-content: space-between; }
}
@media (min-width: 1101px) { .nurmobil { display: none; } }
@media (max-width: 1100px) { .atop__right .nurmobil { display: inline; } }
.kneu .kform { margin-bottom: 0; padding: 0; border: 0; background: none; }
.kneu, .kneu .kform, .kneu .kform > * { min-width: 0; }
.kform__nr .ainput { min-width: 0; }
.kassierwahl .btn { white-space: normal; }
.kassierwahl .btn--gross small { white-space: normal; }
@media (max-width: 760px) { .kneu .kform { grid-template-columns: 1fr; } }
.kassierwahl .btn { height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
.afilterbox > summary { list-style: none; margin: 8px 0 4px; display: inline-flex; }
.afilterbox > summary::-webkit-details-marker { display: none; }
.afilterbox[open] > summary { margin-bottom: 10px; }
.atabs .mehr__menu { min-width: 220px; }

/* ---- Schnellkasse ---- */
.kassenav { position: static; margin-bottom: 12px; }
.skasse__status { margin-bottom: 12px; }
.skasse__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.skasse__scan { display: flex; gap: 8px; }
.skasse__scan .ainput { flex: 1; height: 52px; font-size: 1.05rem; }
.skasse__scan .btn { height: 52px; min-width: 56px; font-size: 1.2rem; }
.sktreffer { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.sktreffer__x { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; border: 1px solid #2c2c2c; background: #161616; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.sktreffer__x:hover { border-color: #e5383b; }
.skkorb { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.skzeile { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #2a2a2a; border-radius: 12px; background: #141414; }
.skzeile--neu { animation: skHell 1s ease; }
@keyframes skHell { from { background: #2a1213; border-color: #e5383b; } }
.skzeile__name small { display: block; color: #8a8a8a; font-size: .8rem; }
.skzeile__menge { display: flex; align-items: center; gap: 6px; }
.skzeile__menge span { min-width: 22px; text-align: center; font-weight: 700; }
.skzeile__summe { font-weight: 700; min-width: 70px; text-align: right; }
.skasse__rechts { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #2c2c2c; border-radius: 14px; background: #121212; }
.sksumme { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.sksumme strong { font-size: 2rem; }
.sksumme strong small { display: block; font-size: .78rem; color: #9a9a9a; font-weight: 500; text-align: right; }
.skzahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skzahlen .btn--gross { height: 64px; font-size: 1.15rem; }
.skverlauf__z { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; font-size: .85rem; padding: 3px 0; border-bottom: 1px solid #1f1f1f; }
.skverlauf__z span:last-child { text-align: right; }
.achtunginfo { margin: 0; padding: 10px 12px; border-radius: 10px; background: #2b2410; color: #ffd98a; font-size: .85rem; }
@media (max-width: 860px) {
  .skasse__grid { grid-template-columns: 1fr; }
  .skasse__rechts { position: sticky; bottom: 0; top: auto; z-index: 15; box-shadow: 0 -10px 30px rgba(0,0,0,.6); }
  .skverlauf, #skGutscheinNeu { display: none; }
  .skzeile { grid-template-columns: 1fr auto auto; }
  .skzeile__summe { display: none; }
}

/* ---- Shop-Modus ---- */
.moduswahl { display: grid; gap: 10px; margin: 14px 0 10px; }
.moduskarte { text-align: left; padding: 16px; border-radius: 14px; border: 1px solid #333; background: #161616; color: inherit; font: inherit; cursor: pointer; }
.moduskarte strong { display: block; font-size: 1.15rem; }
.moduskarte small { display: block; color: #9a9a9a; margin-top: 4px; line-height: 1.35; }
.moduskarte:hover { border-color: #e5383b; }
.shopnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(12,12,12,.97); border-top: 1px solid #2a2a2a; backdrop-filter: blur(8px); }
.shopnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 0; border-radius: 12px; background: none; color: #bbb; font: inherit; font-size: 1.4rem; cursor: pointer; }
.shopnav button span { font-size: .72rem; font-weight: 600; }
.shopnav button[aria-current="true"] { background: #2a1213; color: #fff; }
.shopnav .tabbadge { position: absolute; top: 4px; right: calc(50% - 22px); font-style: normal; }
body.shopmodus #tabs { display: none; }
body.shopmodus .awrap { padding-bottom: 110px; }
body.shopmodus #kasseNav [data-kv="einst"] { display: none; }
body.shopmodus .ptool__btns .mehr, body.shopmodus #etikettBtn { display: none; }
body.shopmodus .order [data-s], body.shopmodus .order .btn, body.shopmodus .theke .btn { min-height: 46px; }
body.shopmodus .skasse__rechts { bottom: 76px; }
@media (min-width: 761px) {
  .shopnav { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, 100vw - 24px); bottom: 12px; border: 1px solid #2a2a2a; border-radius: 18px; padding: 8px; }
  .shopnav button { font-size: 1.6rem; padding: 10px 4px; }
  .shopnav button span { font-size: .8rem; }
}

/* ---- Aktionen & Kundenerlebnis ---- */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .zweispaltig { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.akwerte { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.akwert { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid #2c2c2c; background: #161616; font-size: .85rem; cursor: pointer; }
.akwert input { margin: 0; }
.akwert.is-an { border-color: var(--accent); background: #2a1213; }
.akh { font-size: 1rem; margin: 22px 0 8px; }
.akst { font-size: .72rem; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.akst--an { background: rgba(62,207,142,.15); color: #6fe3ae; }
.akst--plan { background: rgba(255,196,0,.15); color: #ffd36b; }
.akst--aus { background: #222; color: var(--muted); }
.mixz { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.mixz select[data-mk] { flex: 1; min-width: 0; }
.toprang { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #f2f2f2; color: #111; font-weight: 800; display: grid; place-items: center; }
.bewpill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #2a2310; color: #ffd98a; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.bewz > summary { list-style: none; cursor: pointer; }
.bewz > summary::-webkit-details-marker { display: none; }
.bewz__liste, .pbew { padding: 8px 12px 12px; }
.pbew { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.pbew h3 { font-size: .95rem; margin: 0 0 6px; }
.bewe { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.bewe:last-child { border-bottom: 0; }
.bewe__n { font-size: 1.4rem; line-height: 1; }

/* Theke: Kunden unterwegs */
.weg { border: 1px solid rgba(62,207,142,.45); background: rgba(62,207,142,.06); border-radius: 14px; padding: 10px; margin: 0 0 14px; }
.weg__kopf { font-weight: 800; margin: 0 0 8px 2px; }
.weg__z { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.weg__uhr { font-size: 1.15rem; font-weight: 800; color: #6fe3ae; font-variant-numeric: tabular-nums; }
.weg__z.is-gleich { border-color: #3ecf8e; box-shadow: 0 0 0 2px rgba(62,207,142,.35); }
.weg__z.is-gleich .weg__uhr { color: #fff; }
.weg__wer small { display: block; color: var(--muted); font-size: .82rem; }
.weg__st { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.weg__z.is-offen .weg__st { color: #ffb35c; }
@media (max-width: 560px) { .weg__z { grid-template-columns: 1fr auto; } .weg__st { grid-column: 1 / -1; } .weg__wer { grid-column: 1 / -1; grid-row: 2; } }
.wegpill { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(62,207,142,.15); color: #6fe3ae; white-space: nowrap; }
.adlg--klein .sheet__panel { max-width: 520px; }

/* Tablet: Kopfzeile nur mit Symbolen, damit nichts aus dem Bild ragt */
@media (max-width: 1100px) {
  .atop__right .lang { display: none; }
  .atop__right { min-width: 0; flex-wrap: wrap; }
  .atop__right .btn { padding: 0 12px; }
  html, body { overflow-x: hidden; overflow-x: clip; }
}
@media (max-width: 430px) {
  .atop .logo { min-width: 0; overflow: hidden; white-space: nowrap; }
  .atop__right { gap: 4px; flex-wrap: nowrap; }
  .atop__right .btn { padding: 0 7px; height: 32px; min-width: 32px; }
  .atop .logo__b { font-size: 1.25rem; }
}

/* ============ Kundenkarte, Prämien, Listen, Marketing ============ */
.kk { display: flex; flex-direction: column; gap: 12px; }
.kk--kompakt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); margin-bottom: 12px; }
.kk__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kkchip { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.kkchip--rot { background: #3a1d1e; color: #ffb4b4; border-color: #5a2a2b; }
.kkchip--gelb { background: #2d2410; color: #ffd98a; border-color: #5c4716; }
.kkchip--gruen { background: #10291d; color: #6ee7b0; border-color: #1f5c3e; }
.kk__praemien { display: flex; flex-direction: column; gap: 6px; }
.kkpr { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: #2a2310; border: 1px solid #5c4716; }
.kkpr small { display: block; color: var(--muted); font-size: .78rem; }
.kk__spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; }
.kk__spalten h4 { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kkz { font-size: .88rem; line-height: 1.35; margin: 2px 0; }
.kkz small { display: block; color: var(--muted); font-size: .76rem; }
.kk__aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.kkbox { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.kkbox > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 8px; align-items: center; }
.kkbox > summary::-webkit-details-marker { display: none; }
.kkbox[open] > summary { margin-bottom: 8px; }
.kkbox label, .belohnung label, .lstform label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.kkbox label.check, .lstform label.check, .belohnung label.check { flex-direction: row; color: var(--text); }
#kkInhalt { padding: 18px 20px 20px; max-height: 80vh; max-height: 80dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
#kkDlg h2 { margin: 0; padding: 18px 60px 0 20px; font-size: 1.15rem; }
.belohnung { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.lstform h4, #mkInhalt h4 { margin: 6px 0 0; font-size: .85rem; }
.gppreise { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.gpz { display: grid !important; grid-template-columns: 1fr 110px; align-items: center; gap: 8px; flex-direction: row !important; color: var(--text) !important; }
.gpz .ainput { height: 34px; text-align: right; }
.lstform .mixz { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.lstform .mixz select { flex: 1; min-width: 0; }
#lstForm { margin-bottom: 16px; }
.akh { font-size: .95rem; margin: 18px 0 8px; }
.skkunde { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.skkunde__wahl { display: flex; gap: 6px; }
.skkunde__wahl input { flex: 1; min-width: 0; }
.skkunde__info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid #2a5a80; background: #12324a; border-radius: 10px; }
.skkunde__info > span { flex: 1; }
.skkunde__info #skKundeMini { flex-basis: 100%; }
.skkunde__info .kk--kompakt { margin: 6px 0 0; }
body.ist-mitarbeiter #maBox { display: none; }

/* ============ Business-Design (nur Admin, umschaltbar) ============ */
html.design-pro {
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f7f8fa; --line: #d9dee5; --text: #1c2430; --muted: #5f6b7a;
  --accent: #1f5fbf; --accent-hi: #174c9c; --ok: #1e8a4c; --radius: 4px; --shadow: 0 2px 10px rgba(16,24,40,.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html.design-pro body { font-size: 14px; background: var(--bg); }
html.design-pro .topbar { background: #1c2430; border-bottom: 0; backdrop-filter: none; }
html.design-pro .topbar .logo__a { font-size: .9rem; }
html.design-pro .topbar .logo__b { font-size: 1.35rem; }
html.design-pro .topbar .pill { background: #3b4a5e; color: #dfe6ef; border-radius: 3px; }
html.design-pro .topbar .btn--ghost { border-color: #3b4a5e; color: #dfe6ef; }
html.design-pro .topbar .btn--ghost:hover { border-color: #8da2bd; }
html.design-pro .topbar .savestate { color: #a9b6c6; }
html.design-pro .tabs { background: #fff; border-bottom: 1px solid var(--line); max-width: none; padding: 0 16px; }
html.design-pro .tabs button { padding: 10px 12px; font-size: .88rem; border-bottom-width: 3px; border-radius: 0; }
html.design-pro .tabs button[aria-selected="true"] { color: var(--accent); }
html.design-pro .btn { border-radius: 4px; height: 36px; padding: 0 14px; font-weight: 600; font-size: .9rem; }
html.design-pro .btn--sm { height: 30px; padding: 0 10px; font-size: .84rem; border-radius: 3px; }
html.design-pro .btn--ghost { border-color: var(--line); background: #fff; color: var(--text); }
html.design-pro .btn--ghost:hover { border-color: #9aa7b8; background: #f2f5f9; }
html.design-pro .btn--primary { color: #fff; }
html.design-pro .ainput, html.design-pro input.ainput, html.design-pro select.ainput, html.design-pro textarea.ainput { border-radius: 3px; background: #fff; height: 32px; border-color: #c4ccd6; color: var(--text); }
html.design-pro textarea.ainput { height: auto; }
html.design-pro .ibtn { border-radius: 3px; width: 28px; height: 28px; background: #fff; font-size: .85rem; }
html.design-pro .row, html.design-pro .order, html.design-pro .eform fieldset, html.design-pro .infobox, html.design-pro .sheet__panel { border-radius: 4px; box-shadow: none; }
html.design-pro .row { padding: 8px 12px; }
html.design-pro .order { box-shadow: 0 1px 2px rgba(16,24,40,.06); }
html.design-pro .eform legend { color: #3b4a5e; }
html.design-pro .seg { border-radius: 4px; background: #eef1f5; }
html.design-pro .seg button { border-radius: 3px; }
html.design-pro .seg button[aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: 0 0 0 1px #c4ccd6; }
html.design-pro .order .seg button[data-s="neu"][aria-pressed="true"] { background: var(--accent); color: #fff; }
html.design-pro .status { background: #e5e9ef; color: #3b4a5e; border-radius: 3px; }
html.design-pro .status--neu { background: var(--accent); color: #fff; }
html.design-pro .check { color: var(--text); }
html.design-pro .switch__track { background: #c4ccd6; }
html.design-pro .close { background: #eef1f5; color: #3b4a5e; border-radius: 4px; width: 34px; height: 34px; font-size: 1.3rem; }
html.design-pro .close:hover { background: #dfe4ea; }
html.design-pro .toast { background: #1c2430; color: #fff; border-radius: 4px; }
html.design-pro .tbl th { background: #eef1f5; color: #3b4a5e; font-weight: 600; }
html.design-pro .tbl td, html.design-pro .tbl th { border-color: var(--line); }
html.design-pro .tbl tr.klick:hover td, html.design-pro .auswarchiv tbody tr[data-amonat]:hover { background: #eef4fc; }
html.design-pro .infobox code, html.design-pro .eform code { background: #eef1f5; color: #1c2430; }
html.design-pro .lagerbox, html.design-pro .auswarchiv, html.design-pro .kassestatus, html.design-pro .kneu, html.design-pro .skasse__rechts, html.design-pro .modkarte,
html.design-pro .moduskarte, html.design-pro .ki__erg, html.design-pro .ki__bild, html.design-pro .ki__chips button, html.design-pro .esuche button,
html.design-pro .sktreffer__x, html.design-pro .skzeile, html.design-pro .akwert, html.design-pro .mehr__menu, html.design-pro .chatitem.is-aktiv { background: #fff; border-color: var(--line); color: var(--text); border-radius: 4px; }
html.design-pro .chatitem:hover, html.design-pro .mehr[open] > summary, html.design-pro .mehr__menu > .btn:hover { background: #eef1f5; }
html.design-pro .akwert.is-an, html.design-pro .ki__chips button[aria-pressed="true"] { background: #e8f0fc; border-color: var(--accent); box-shadow: none; }
html.design-pro .order__msg, html.design-pro .chat__m--kunde { background: #eef4fc; border-color: #bcd0ee; color: var(--text); }
html.design-pro .bestandpill, html.design-pro .akst--aus { background: #eef1f5; color: #3b4a5e; }
html.design-pro .respill, html.design-pro .baldpill, html.design-pro .skkunde__info { background: #e8f0fc; color: #174c9c; border-color: #bcd0ee; }
html.design-pro .bereichpill { background: #f1eafc; color: #5b2ea6; border-color: #d6c4f2; }
html.design-pro .neupill, html.design-pro .iatag.weg, html.design-pro .kkchip--rot { background: #fdecec; color: #a42020; border-color: #f2c4c4; }
html.design-pro .iatag.neu, html.design-pro .akst--an, html.design-pro .kmodus--live, html.design-pro .kkchip--gruen, html.design-pro .invrow.is-gezaehlt { background: #e7f6ee; color: #1e6b3e; border-color: #b8e2c9; }
html.design-pro .iatag.upd { background: #e8f0fc; color: #174c9c; }
html.design-pro .vawarn, html.design-pro .achtunginfo, html.design-pro .bewpill, html.design-pro .kmodus, html.design-pro .kkchip--gelb, html.design-pro .kkpr,
html.design-pro .modkarte:has(input:checked) { background: #fff7e0; color: #7a5300; border-color: #f0d68a; }
html.design-pro [class*="hinweis"][style*="3a2a0c"], html.design-pro .warnbox { background: #fff7e0; color: #7a5300; }
html.design-pro .kkchip { background: #eef1f5; border-color: var(--line); }
html.design-pro .shopnav { background: #fff; border-top: 1px solid var(--line); }
html.design-pro .shopnav button { color: var(--muted); }
html.design-pro .shopnav button[aria-current="true"] { background: #e8f0fc; color: var(--accent); }
html.design-pro .savebar { background: #1c2430; color: #fff; border-radius: 4px; }
html.design-pro .err { color: #b3261e !important; }
html.design-pro .err--block { background: #fdecec; }
html.design-pro .error { color: #b3261e; }
html.design-pro .danger { color: #b3261e; border-color: #f2c4c4; }
html.design-pro .media { border-radius: 3px; }
html.design-pro h1, html.design-pro h2, html.design-pro h3 { letter-spacing: 0; }
html.design-pro ::selection { background: #cfe0fa; }
html.design-pro .topbar .btn--ghost { background: transparent; }
html.design-pro .topbar .btn--ghost:hover { background: #2a3546; }
html.design-pro .esuche { background: var(--bg); border-bottom: 1px solid var(--line); gap: 0; padding: 0; margin-bottom: 14px; }
html.design-pro .esuche button { border-radius: 0; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 9px 12px; font-size: .86rem; }
html.design-pro .esuche button:hover { color: var(--text); background: #eef1f5; }
html.design-pro .esuche button[aria-pressed="true"] { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }
html.design-pro .startbanner { background: #fff7e0; border-color: #f0d68a; color: #5c4100; border-radius: 4px; }
html.design-pro .order__abhol { background: #f2f5f9; }
html.design-pro .order__abhol strong { color: var(--text); }
html.design-pro .order__bem { background: #fff7e0; color: #5c4100; border-radius: 4px; }
html.design-pro .skkunde__info { color: var(--text); }
html.design-pro .skkunde__info > span { color: #174c9c; }
html.design-pro .kk--kompakt { background: #fff; }
html.design-pro .kassestatus { box-shadow: none; }
.aquelle { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.aquelle .ainput { height: 38px; min-width: 0; max-width: 100%; font-weight: 600; color: var(--text); }

/* ============ Responsiv: nichts darf über den Bildschirm ragen ============ */
fieldset { min-width: 0; }
.eform, .eform fieldset, .eform > *, .erow > *, .belohnung, .kkbox, .lstform, #mkInhalt, #lstForm { min-width: 0; max-width: 100%; }
select.ainput { max-width: 100%; text-overflow: ellipsis; }
.eform label > .ainput, .eform label > select, .belohnung .ainput, .kkbox label > .ainput, .lstform label > .ainput { width: 100%; }
.erow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mixz { min-width: 0; }
.mixz > select, .mixz > .ainput:not([type="number"]) { flex: 1 1 auto; min-width: 0; }
.mixz > input[type="number"] { flex: 0 0 72px; width: 72px; }
.mixz > .ibtn { flex: 0 0 auto; }
@media (max-width: 760px) {
  .erow { grid-template-columns: minmax(0, 1fr); }
  .eform .btn, .kkbox .btn, .pedit__foot .btn, .kk__aktionen .btn, .infobox .btn, .r2ostatus .btn { white-space: normal; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; line-height: 1.25; }
  .pedit__foot { flex-wrap: wrap; }
  .pedit__foot .grow { flex-basis: 0; }
}
#kkInhalt > *, .kk > *, .kkbox > *, #mkInhalt .eform fieldset > *, .lstform fieldset > * { flex-shrink: 0; }
/* Kopfzeile am Handy: Logo und alle Symbol-Knöpfe passen in eine Zeile */
@media (max-width: 430px) {
  .atop__inner, .topbar__inner.atop { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .atop__right { gap: 3px; }
  .atop__right .btn { padding: 0; width: 31px; min-width: 31px; height: 31px; font-size: .9rem; border-radius: 8px; }
  .atop .logo__a { font-size: .78rem; letter-spacing: .03em; }
  .atop .logo__b { font-size: 1.12rem; }
  .atop .pill { display: none; }
}
@media (max-width: 360px) {
  .atop__right .btn { width: 28px; min-width: 28px; height: 28px; font-size: .8rem; }
  .atop .logo__a { font-size: .68rem; }
  .atop .logo__b { font-size: 1rem; }
}
/* Zeilen ohne Bild (Listen, Mitarbeiter, SB-Geräte) */
.row.row--text { grid-template-columns: minmax(0, 1fr) auto; }
.row.row--text .row__sub { white-space: normal; }
@media (max-width: 760px) { .row.row--text .iconbtns { grid-column: auto; } }
/* Kundenliste am Tablet: Nummer + Knöpfe oben, die drei Felder darunter */
@media (min-width: 761px) and (max-width: 1100px) {
  .row--kunde.row--sel { grid-template-columns: 22px repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .row--kunde.row--sel > input[type=checkbox] { grid-column: 1; grid-row: 1; }
  .row--kunde.row--sel .knr { grid-column: 2; grid-row: 1; }
  .row--kunde.row--sel .row__ctrl { grid-column: 3 / -1; grid-row: 1; justify-content: flex-end; flex-wrap: wrap; }
  .row--kunde.row--sel [data-f="name"] { grid-column: 2; grid-row: 2; }
  .row--kunde.row--sel [data-f="notiz"] { grid-column: 3; grid-row: 2; }
  .row--kunde.row--sel [data-f="tags"] { grid-column: 4; grid-row: 2; }
}
/* Mitarbeiter-Formular */
.maform { display: flex; flex-direction: column; gap: 10px; }
.maform > .ainput { width: 100%; }
.marechte { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
/* Produktliste am Tablet: Name bekommt die volle Breite, Schalter und Knöpfe in eine zweite Zeile */
@media (min-width: 761px) and (max-width: 1100px) {
  .row--sel:not(.row--kunde) { grid-template-columns: 22px 52px minmax(0, 1fr); }
  .row--sel:not(.row--kunde) > .row__ctrl { grid-column: 2 / -1; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .vrow, .vkopf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .vrow .switch { grid-column: 1 / 3; }
  .vrow .vname { grid-column: 1 / -1; }
  .vkopf { display: none; }
}
/* ============ Wareneingang ============ */
.wescan { display: flex; gap: 8px; }
.wescan .ainput { flex: 1; min-width: 0; height: 50px; font-size: 1.05rem; }
.wescan .btn { height: 50px; }
.weliste { display: flex; flex-direction: column; gap: 6px; }
.wezeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.wezeile.is-neu { animation: skHell .8s ease-out; }
.wezeile__name { min-width: 0; font-weight: 600; }
.wezeile__name small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.wezeile .stepper input { width: 64px; }
.wezuordnen { border: 1px solid #5c4716; background: #2a2310; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wezuordnen__liste { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.wezuordnen__liste button { text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.wezuordnen__liste button small { color: var(--muted); }
.weverlauf { display: flex; flex-direction: column; gap: 6px; }
.weverlauf details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.weverlauf summary { cursor: pointer; }
.shopnav { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 430px) { .shopnav button span { font-size: .64rem; } }
html.design-pro .wezuordnen { background: #fff7e0; border-color: #f0d68a; color: #5c4100; }
html.design-pro .wezeile, html.design-pro .wezuordnen__liste button, html.design-pro .weverlauf details { background: #fff; }
@media (max-width: 560px) {
  .wezeile { grid-template-columns: minmax(0, 1fr) auto; }
  .wezeile .wezeile__name { grid-column: 1 / -1; }
}
/* Sicherheitsnetz: Zeilen ohne Bild/Häkchen nie in die schmale Bildspalte zwingen */
.row:not(.row--kat):not(.row--kunde):not(.row--sel):not(:has(> .media)):not(:has(> input[type="checkbox"])) { grid-template-columns: minmax(0, 1fr) auto; }

/* ---- Einstellungen: zusammengeführte Bereiche (Kasse & SB, Kundenbindung, Dieses Gerät) ---- */
.egruppe { margin-top: 22px; max-width: 720px; }
.egruppe__titel { font-size: 1.05rem; margin: 0 0 8px; }
.egruppe .kunternav { position: static; flex-wrap: wrap; overflow: visible; background: none; padding: 0 0 8px; }
.egruppe .kunternav button { font-size: .84rem; padding: 6px 11px; }
.egruppe #mkInhalt .eform { margin-top: 0; }
.egruppe .kassekopf { margin-top: 4px; }
.egruppe--allein .kunternav { display: none; }
html.design-pro .egruppe .kunternav { border-bottom: 0; }
html.design-pro .egruppe .kunternav button { border: 1px solid var(--line); border-radius: 999px; }
html.design-pro .egruppe .kunternav button[aria-pressed="true"] { border-color: var(--accent); }
.egruppe > .phint { margin-top: 10px; }
@media (min-width: 761px) { #eNav { flex-wrap: wrap; overflow: visible; } }
#mailHilfe a { color: #ff8a8c; font-weight: 700; } html.design-pro #mailHilfe a { color: var(--accent); }

/* ===== Einkauf: Bestellscheine ===== */
.bsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bskarte { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid #6b7280; border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .12s, transform .12s; }
.bskarte:hover { transform: translateY(-1px); border-color: #4a4a4a; }
.bskarte--blau { border-left-color: #3b82f6; } .bskarte--orange { border-left-color: #f59e0b; } .bskarte--gruen { border-left-color: #22c55e; } .bskarte--rot { border-left-color: #ef4444; opacity: .75; }
.bskarte__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bskarte__nr { font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; }
.bskarte__lf { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.bskarte__code { background: #fff; border-radius: 8px; padding: 6px 8px; display: flex; justify-content: center; }
.bskarte__code svg { width: 100%; height: 38px; }
.bskarte__info { font-size: .88rem; line-height: 1.45; }
.bskarte__sub { font-size: .78rem; color: var(--muted); margin-top: -4px; }
.bskarte__btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.bsbar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bsbar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 99px; }
.bspill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; vertical-align: middle; }
.bspill--grau { background: #374151; color: #e5e7eb; } .bspill--blau { background: #1e3a8a; color: #bfdbfe; } .bspill--orange { background: #78350f; color: #fde68a; } .bspill--gruen { background: #14532d; color: #bbf7d0; } .bspill--rot { background: #7f1d1d; color: #fecaca; }
.bswarn { color: #fbbf24; font-weight: 600; }
.bsrot { color: #f87171; } .bsblau { color: #60a5fa; } .bsgruen { color: #4ade80; }
.bsleer { grid-column: 1 / -1; }
.bsedit__kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bsedit__kopf h2 { margin: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.bsedit__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 20px; align-items: start; }
.bsedit__form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bsedit__form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.bsedit__lfinfo { font-size: .85rem; align-self: end; padding-bottom: 8px; line-height: 1.4; }
.bstab td, .bstab th { vertical-align: middle; }
.bstab .bsmenge { width: 84px; text-align: right; }
.bstab tr.bsok td { background: rgba(34,197,94,.08); }
.bstab tr.bsteil td { background: rgba(245,158,11,.08); }
.bstab tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.tbl tr.bsok td { background: rgba(34,197,94,.08); }
.bsadd { display: flex; gap: 8px; flex-wrap: wrap; }
.bsadd #bsAddSuche { flex: 1; min-width: 200px; }
.bsaktionen { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.bsh { margin: 6px 0 0; font-size: .95rem; }
.bsverlauf { margin: 6px 0 0; padding-left: 18px; font-size: .86rem; line-height: 1.6; }
.bsedit__vorschau { position: sticky; top: 70px; }
.bsvorschau__titel { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bsvorschau { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
@media (max-width: 1100px) { .bsedit__grid { grid-template-columns: minmax(0, 1fr); } .bsedit__vorschau { position: static; } .bsvorschau { height: 520px; } }

/* Bestellen */
.bezeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 6px; }
.bezeile.is-an { border-color: var(--accent); background: rgba(229,56,59,.08); }
.bezeile__name { min-width: 0; }
.bezeile__name small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.bezeile .stepper input { width: 64px; }
.bebar { position: sticky; bottom: 12px; }

/* Wareneingang mit Bestellschein */
.webs { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 12px; border: 1px solid #3b82f6; border-radius: 12px; background: rgba(59,130,246,.10); }
.webs--leer { border-style: dashed; border-color: var(--line); background: transparent; }
.webs > div:first-child, .webs__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.webs .muted { font-size: .86rem; }
.webs select { max-width: 420px; }
.webs__btns { display: flex; gap: 8px; }
.westatus { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; vertical-align: middle; }
.westatus--ok { background: #14532d; color: #bbf7d0; } .westatus--teil { background: #78350f; color: #fde68a; } .westatus--offen { background: #374151; color: #e5e7eb; } .westatus--mehr { background: #1e3a8a; color: #bfdbfe; } .westatus--extra { background: #581c87; color: #e9d5ff; }
.wezeile.we--ok { border-color: rgba(34,197,94,.55); } .wezeile.we--teil { border-color: rgba(245,158,11,.6); } .wezeile.we--mehr { border-color: rgba(59,130,246,.6); } .wezeile.we--extra { border-color: rgba(168,85,247,.6); } .wezeile.we--offen { opacity: .85; }
html.design-pro .bskarte__code { border: 1px solid var(--line); }
html.design-pro .bsbar { background: #e5e7eb; }
/* Einkauf: Formularfelder wie in den früheren Fenstern */
#ekEingang, #ekNach { display: flex; flex-direction: column; gap: 12px; }
#ekEingang label, #ekNach label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
#ekEingang label.check, #ekNach label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
#ekEingang .pedit__foot, #ekNach .pedit__foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { #ekEingang .erow { grid-template-columns: minmax(0, 1fr); } }

/* ===== Lieferanten-Reiter ===== */
.lfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lfkarte { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .12s, transform .12s; }
.lfkarte:hover { transform: translateY(-1px); border-color: #4a4a4a; }
.lfkarte.is-aus { opacity: .6; }
.lfkarte__kopf { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lfkarte__name { font-size: 1.1rem; font-weight: 800; }
.lfkarte__sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.lfkarte__kontakt { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; }
.lfkarte__kontakt a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.lfkarte__kv, .lfkarte__kond { font-size: .84rem; line-height: 1.45; }
.lfkarte__kond { color: var(--muted); }
.lfkarte__sammel { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .86rem; }
.lfkarte__fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; font-size: .84rem; }
.lfkarte__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.lfohne { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: .88rem; }
.chipbtn { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.chipbtn:hover { border-color: var(--accent); }
.lfset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lfset legend { font-weight: 800; font-size: .9rem; padding: 0 6px; }
.lfwt { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .9rem; }
.lfwt label.check { flex-direction: row !important; align-items: center; gap: 5px !important; font-weight: 500 !important; }
#lfDlg .erow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ===== Sammelbestellungen ===== */
.bsorange { color: #fbbf24; }
.bsbar--offen i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bsbar--ok i { background: linear-gradient(90deg, #22c55e, #4ade80); }
.bskarte--bereit { border-left-color: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,.35); }
.bsmindest { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid rgba(245,158,11,.45); border-radius: 12px; background: rgba(245,158,11,.07); font-size: .9rem; }
.bsmindest.is-ok { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.08); }
.bstab .bsek { width: 84px; text-align: right; }
.sammelzeile { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-top: 10px; }
.sammelzeile__kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sammelhinweis { margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.4); font-size: .88rem; }
.sammelprog { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; }
.eksammel { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid rgba(245,158,11,.45); border-radius: 14px; background: rgba(245,158,11,.05); }
.eksammel--leer { border-style: dashed; border-color: var(--line); background: transparent; gap: 4px; font-size: .9rem; }
.eksammel__liste { display: flex; flex-direction: column; gap: 8px; }
.eksammel__z { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.eksammel__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; font-size: .9rem; }
.eksammel__t small { font-size: .8rem; }
.eksammel__b { display: flex; gap: 6px; }
.bescan { margin-bottom: 10px; }

/* Vollbild-Scanner (Bestellen / Nachbestellen / Bestellschein) */
.ksov { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; }
.ksov[hidden] { display: none; }
.ksov__kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #fff; }
.ksov__bild { position: relative; flex: 1; overflow: hidden; }
.ksov__bild video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ksov__info { margin: 0; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); color: #fff; text-align: center; font-weight: 700; background: rgba(0,0,0,.6); }

.merkbanner { border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.10); }
#kamTippInhalt ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
#kamTippInhalt p { line-height: 1.5; }

html.design-pro .lfkarte, html.design-pro .eksammel__z { border-radius: 6px; }
html.design-pro .bsorange { color: #b45309; }
html.design-pro .bsgruen { color: #15803d; }
html.design-pro .merkbanner { background: #eef4ff; border-color: #bfd3fb; color: #1e3a8a; border-radius: 4px; }

/* Wareneingang: Kamera klein oben angeheftet – Bestellschein-Kasten und Liste bleiben darunter sichtbar */
.scanner--we { position: sticky; top: calc(var(--topH, 0px) + 6px); z-index: 12; max-width: 560px; width: 100%; margin: 0 auto; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.scanner--we video { height: min(30vh, 240px); object-fit: cover; }
.scanner--we .scanner__rahmen--breit { inset: 25% 8%; }
.scanner__info { position: absolute; left: 8px; right: 8px; top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .86rem; font-weight: 700; text-align: center; pointer-events: none; }
.scanner--we .scanner__stop { bottom: 8px; }
#ekEingang .wezeile { scroll-margin-top: calc(var(--topH, 0px) + min(30vh, 240px) + 24px); }

@media (max-width: 760px) {
  .webs { flex-direction: column; align-items: stretch; gap: 8px; }
  .webs__btns { width: 100%; }
  .webs__btns .btn:first-child { flex: 1; }
  .webs--leer .btn, .webs--leer select { width: 100%; max-width: none; }
}

/* Kategorien: kompakte Zeile mit Symbol, Sichtbarkeit und Standardwerten */
.row--kat.katzeile { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; }
.katicon { width: 46px !important; padding: 0 !important; text-align: center; font-size: 1.25rem; }
.katzeile.is-aus .katzeile__main .ainput { opacity: .55; }
.katzeile__sub { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; font-size: .8rem; }
.katzeile__sub .linkbtn { font-size: .8rem; padding: 0; }
.katstd { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .85rem; }
.katstd label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .8rem; }
.katstd .ainput { height: 36px; width: 170px; max-width: 100%; }
.katstd label:nth-of-type(2) .ainput { width: 100px; }
@media (max-width: 760px) {
  .row--kat.katzeile { grid-template-columns: 42px minmax(0, 1fr); }
  .katicon { width: 42px !important; }
  .row--kat.katzeile .iconbtns { grid-column: 1 / -1; justify-content: flex-end; }
  .row--kat.katzeile .ibtn { width: 32px; height: 32px; }
}

/* ===== Stammdaten: ein Reiter oben, Unterreiter im gleichen Stil ===== */
#tabs .stammtab { display: none !important; }
.subtabs { border-top: 1px solid var(--line); }
.subtabs button { padding: 9px 14px; font-size: .9rem; }
html.design-pro .subtabs button { padding: 8px 12px; font-size: .84rem; }
@media (max-width: 760px) { .subtabs button { padding: 8px 11px; font-size: .85rem; } }

/* ===== Sortiment-Gruppen ===== */
.grliste { display: flex; flex-direction: column; gap: 10px; }
.grkarte { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.grkarte--allg { border-style: dashed; background: transparent; }
.grkarte--allg .grkarte__kopf { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.grkarte__kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.grname { font-weight: 700; }
.grfa { margin: 0; white-space: nowrap; font-size: .85rem; }
.grkarte__sub { font-size: .8rem; }
.grprod { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.grprod__add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.grchip { display: inline-flex; align-items: center; gap: 4px; }
.grchip button { border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 2px; cursor: pointer; }
.pgruppen { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.wegruppen { display: flex; flex-direction: column; gap: 6px; }
.wegruppen__t { font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) {
  .grkarte__kopf { grid-template-columns: minmax(0, 1fr) auto; }
  .grkarte__kopf .iconbtns { grid-column: 1 / -1; justify-content: flex-end; }
  .grprod__add { grid-template-columns: 1fr; }
}
.ekplatz { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; }
.ekvorschau { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; font: .85rem/1.5 system-ui, sans-serif; max-height: 320px; overflow: auto; }
#bsMailText { min-height: 260px; font-family: inherit; line-height: 1.5; }
#ekMailBox textarea { font-family: inherit; line-height: 1.5; }

/* ===== Bestellvorschlag nach Abverkauf ===== */
.ektab td small.ekcalc { display: block; color: var(--muted); font-size: .74rem; font-weight: 500; line-height: 1.35; margin-top: 2px; }
@media (max-width: 640px) { .ektab td small.ekcalc { display: none; } }

/* ===== Wareneingang: Preis & Reklamation ===== */
.wezeile { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.webtn-pos { width: auto !important; padding: 0 9px !important; font-size: .78rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .wezeile { grid-template-columns: minmax(0, 1fr) auto auto; }
  .wezeile .wezeile__name { grid-column: 1 / -1; }
}
.weprinfo { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.weprinfo .btn { align-self: flex-start; margin-top: 4px; }
.werk { border: 1px solid rgba(168,85,247,.6); background: rgba(168,85,247,.08); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
html.design-pro .werk { background: #faf5ff; }

/* ===== Reklamationen ===== */
.rkfotos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rkfoto { position: relative; display: inline-block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.rkfoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rkfoto button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; line-height: 22px; padding: 0; cursor: pointer; }
.rkfotobtn { cursor: pointer; align-self: flex-start; }
.rkposl { margin: 4px 0; padding-left: 18px; font-size: .88rem; display: flex; flex-direction: column; gap: 2px; }
.rkpos { display: flex; flex-direction: column; gap: 6px; }
.rkposz { display: grid; grid-template-columns: minmax(0, 1.4fr) 70px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.rkposz__n { min-width: 0; font-weight: 600; font-size: .9rem; }
.rkposz__n small { display: block; font-weight: 500; }
@media (max-width: 640px) {
  .rkposz { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .rkposz__n { grid-column: 1 / -1; }
  .rkposz input[data-rkf2="notiz"] { grid-column: 1 / -1; grid-row: 3; }
}
.rkkarte .rkfotos { margin: 4px 0; }

/* ===== Heute: Einkauf ===== */
.hsub { margin: 12px 0 6px; font-size: .86rem; color: var(--muted); font-weight: 700; }
.box > .hsub:first-of-type { margin-top: 4px; }
.hbtns { display: inline-flex; gap: 10px; margin-left: 6px; }

/* ===== Lieferanten-Karte: Kennzahlen ===== */
.lfkarte__stat { font-size: .82rem; line-height: 1.45; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }

/* ===== Vorschlagslisten (statt Datalist – auch am Handy) ===== */
.vlbox { position: absolute; z-index: 60; max-height: min(280px, 45vh); overflow-y: auto; overscroll-behavior: contain; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: 4px; display: flex; flex-direction: column; gap: 2px; -webkit-overflow-scrolling: touch; }
.vlbox[hidden] { display: none; }
.vlbox button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .95rem; line-height: 1.3; color: inherit; min-height: 40px; justify-content: center; }
.vlbox button small { color: var(--muted); font-size: .78rem; }
.vlbox button:hover, .vlbox button.an { background: var(--surface-2); }
html.design-pro .vlbox { background: #fff; }

/* Bestellvorschlag: Rechnung am Handy per Antippen */
@media (max-width: 640px) { .ektab tr.zeigcalc td small.ekcalc { display: block; } .ektab tbody tr { cursor: pointer; } }

/* ===== Wünsche: Karten, Status, Zusammenfassen ===== */
.wkarte { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.wkarte__sel { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.wkarte.is-sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.wkarte__kopf { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.wkarte__kopf .bspill { flex: none; }
.wkarte .iconbtns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.wprod { margin-top: 6px; font-size: .9rem; }
.wae { margin-top: 6px; display: block; text-align: left; font-size: .86rem; }
.wweitere { margin-top: 6px; font-size: .86rem; }
.wweitere summary { cursor: pointer; color: var(--muted); }
.wweitere ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wweitere li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.wweitere .wbilder img { width: 56px; height: 56px; }
.wselbar { position: sticky; top: calc(var(--topH, 0px) + 6px); z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wstatseg { flex-wrap: wrap; }
.wstatseg button { flex: 1 1 auto; }
.wantprod { margin-bottom: 8px; }
.bspill--lila { background: #4c1d95; color: #e9d5ff; }
html.design-pro .bspill--lila { background: #ede9fe; color: #5b21b6; }
@media (max-width: 640px) {
  .wkarte { grid-template-columns: auto minmax(0, 1fr); }
  .wkarte .iconbtns { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) { .wselbar .grow { display: none; } .wselbar #wSelText { flex-basis: 100%; } }

/* ===== Handy: graue Erklärtexte ausblenden (Hilfe gibt es über ❓) ===== */
@media (max-width: 760px) {
  html:not(.texte-an) .panel .phint:not(.immer):not(dialog .phint),
  html:not(.texte-an) .panel .leerinfo small,
  html:not(.texte-an) .panel .eksammel--leer .muted,
  html:not(.texte-an) .panel .erkl { display: none; }
  html:not(.texte-an) .panel .leerinfo { padding: 18px 12px; }
}

/* Vergangene Schließtage aufräumen */
#altUrlaubListe .urlaub__row > span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#altUrlaubListe .urlaub__row input { margin: 0; flex: none; }

/* ===== Bestellung aus Beleg (Lieferschein / Bestellbestätigung) ===== */
.btn--xs { height: 28px; padding: 0 10px; font-size: .8rem; border-radius: 8px; }
#belegDlg.adlg--gross { width: min(1180px, calc(100vw - 32px)); }
.belegtipp { margin: 0 0 10px; font-size: .86rem; color: var(--muted); }
.belegablage { position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,.82); display: grid; place-items: center; pointer-events: none; }
.belegablage > div { border: 3px dashed var(--accent, #e5383b); border-radius: 22px; padding: 40px 56px; text-align: center; display: flex; flex-direction: column; gap: 8px; font-size: 3rem; background: rgba(0,0,0,.4); }
.belegablage b { font-size: 1.4rem; } .belegablage span { font-size: .95rem; color: #ccc; }
.beleglaed { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 10px; text-align: center; }
.beleglaed .spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent, #e5383b); animation: belegdreh 1s linear infinite; }
@keyframes belegdreh { to { transform: rotate(360deg); } }
.belegkopf { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr; gap: 10px; }
.belegkopf label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .88rem; }
.belegopt { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.belegopt label.check { display: flex; align-items: flex-start; gap: 8px; }
.belegopt label.check > span { display: block; }
#belegInhalt, .belegliste, .blz { min-width: 0; max-width: 100%; }
.blz > * { min-width: 0; }
.blz__f input, .blz__name, .belegkopf .ainput { width: 100%; min-width: 0; box-sizing: border-box; }
.belegstat { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bpill { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid var(--line); }
.bpill--ok { background: #14532d; color: #bbf7d0; border-color: #14532d; } .bpill--vor { background: #713f12; color: #fde68a; border-color: #713f12; }
.bpill--neu { background: #1e3a8a; color: #bfdbfe; border-color: #1e3a8a; } .bpill--off { background: #7f1d1d; color: #fecaca; border-color: #7f1d1d; }
.belegsumme { font-size: .86rem; font-weight: 600; }
.belegliste { display: flex; flex-direction: column; gap: 6px; }
.blz { display: grid; grid-template-columns: 28px minmax(180px, 1.4fr) minmax(200px, 1.4fr) 78px 70px 92px minmax(120px, .9fr) 30px; gap: 8px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; background: var(--surface); }
.blz--ok { border-left-color: #16a34a; } .blz--vor { border-left-color: #eab308; } .blz--neu { border-left-color: #3b82f6; } .blz--off { border-left-color: #dc2626; }
.blz__st { font-size: 1.1rem; text-align: center; }
.blz__beleg { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blz__name { height: 32px; font-weight: 600; }
.blz__beleg small { font-size: .76rem; overflow-wrap: anywhere; }
.blz__zu { font-size: .86rem; line-height: 1.35; overflow-wrap: anywhere; }
.blz__f { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; color: var(--muted); }
.blz__f input { height: 32px; padding: 0 8px; text-align: right; }
.blz__stk { font-size: .8rem; line-height: 1.35; }
.blz__weg { justify-self: end; }
.blz__picker { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 8px; background: var(--surface-2); }
.blz__treffer { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.blz__treffer button { text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; font-size: .88rem; cursor: pointer; }
.blz__treffer button:hover { border-color: var(--accent, #e5383b); }
.blz__pbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.bsbeleg { font-size: .88rem; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.bsbeleg a { color: inherit; font-weight: 700; }
.bsoffenhinweis { font-size: .86rem; padding: 8px 12px; border-radius: 10px; background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.4); }
tr.bsoffenz td { background: rgba(220,38,38,.07); }
.bzbestand { font-size: .88rem; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.bzliste { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.bzrow { display: grid; grid-template-columns: 1.2fr 1fr 30px; gap: 8px; align-items: center; font-size: .84rem; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.bzmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.bzmap label { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 600; }
.bzvor { font-size: .88rem; margin-bottom: 6px; }
/* Wareneingang: noch nicht zugeordnete Belegzeilen */
.weoffen { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(220,38,38,.45); background: rgba(220,38,38,.08); }
.weoffen__kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.weoffen__z { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: .88rem; padding: 6px 8px; border-radius: 8px; background: var(--surface); }
.weoffen__z small { color: var(--muted); }
.wepick { display: flex; flex-direction: column; gap: 6px; }
.wepick button { text-align: left; }
@media (max-width: 760px) {
  #belegDlg.adlg--gross { width: 100vw; }
  .belegkopf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .belegkopf label:first-child { grid-column: 1 / -1; }
  .blz { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 30px; grid-template-areas: "st beleg beleg beleg weg" "zu zu zu zu zu" ". m i ek ." "stk stk stk stk stk" "pick pick pick pick pick"; }
  .blz__st { grid-area: st; } .blz__beleg { grid-area: beleg; } .blz__zu { grid-area: zu; } .blz__weg { grid-area: weg; }
  .blz__f:nth-of-type(1) { grid-area: m; } .blz__f:nth-of-type(2) { grid-area: i; } .blz__f:nth-of-type(3) { grid-area: ek; }
  .blz__stk { grid-area: stk; } .blz__picker { grid-area: pick; }
  .bzrow { grid-template-columns: 1fr 30px; } .bzrow > span:nth-child(2) { grid-column: 1; font-size: .78rem; }
  .belegablage > div { padding: 24px; margin: 16px; }
}

/* ===== Mehrere Lieferanten je Artikel ===== */
.lfchips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.lfchip { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); font-size: .78rem; }
.lfchip > button, .lfchip > a { border: 0; background: none; color: inherit; font: inherit; padding: 4px 9px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.lfchip > button + a, .lfchip > button + button, .lfchip > a + button { border-left: 1px solid var(--line); padding: 4px 7px; }
.lfchip.is-an { border-color: var(--accent, #e5383b); background: rgba(229,56,59,.14); }
.lfchip > button:hover, .lfchip > a:hover { background: rgba(255,255,255,.06); }
.ekmin { display: flex; flex-direction: column; gap: 3px; margin: -4px 0 8px; font-size: .84rem; }
.bemodus { margin-bottom: 12px; }
.belegzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; border: 2px dashed var(--line); border-radius: 16px; text-align: center; cursor: pointer; background: var(--surface); }
.belegzone:hover { border-color: var(--accent, #e5383b); }
.belegzone__icon { font-size: 2.6rem; } .belegzone span { color: var(--muted); font-size: .9rem; }
.pbezug summary { font-weight: 700; }
.pbz { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pbz:last-child { border-bottom: 0; }
.pbz__t { font-size: .88rem; }
.pbz__kopf, .pbz__z { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 96px 70px 64px; gap: 6px; align-items: center; }
.pbz__kopf { font-size: .72rem; color: var(--muted); }
.pbz__z .ainput { height: 34px; padding: 0 8px; min-width: 0; }
.pbz__haupt { display: flex; justify-content: center; } .pbz__haupt input { accent-color: #eab308; width: 18px; height: 18px; }
.pbz__btn { display: flex; gap: 4px; justify-content: flex-end; }
.pbz__info { grid-column: 2 / -1; font-size: .76rem; color: var(--muted); }
@media (max-width: 760px) {
  .pbz__kopf { display: none; }
  .pbz__z { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 54px; grid-template-areas: "h lf lf btn" ". nr ek inh"; }
  .pbz__z > .pbz__haupt { grid-area: h; } .pbz__z > [data-pbzf="lf"] { grid-area: lf; } .pbz__z > [data-pbzf="nr"] { grid-area: nr; }
  .pbz__z > [data-pbzf="ek"] { grid-area: ek; } .pbz__z > [data-pbzf="inhalt"] { grid-area: inh; } .pbz__z > .pbz__btn { grid-area: btn; }
  .pbz__info { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .lfchips { flex-direction: column; align-items: flex-start; }
  .lfchip { font-size: .74rem; max-width: 100%; }
  .lfchip > button { white-space: nowrap; }
  .ektab td:first-child { min-width: 230px; }
}
.begruppe { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.begruppe__kopf { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.begruppe__z { display: flex; flex-direction: column; gap: 2px; font-size: .84rem; }
.beleglfneu { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid #1e3a8a; background: rgba(30,58,138,.15); font-size: .88rem; }
.beleglfneu__f { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.beleglfneu__f label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 600; min-width: 0; }
.beleglfneu__f .ainput { height: 34px; min-width: 0; width: 100%; }
.beleglfneu__po { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px; }
@media (max-width: 760px) { .beleglfneu__f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Produktliste: Kärtchen-Zeile (Sortiment-Gruppe, Lieferanten, Kassen-Produktgruppe) – bricht um statt abgeschnitten zu werden */
.row__chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.row__chips > span { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chipk { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px solid transparent; line-height: 1.5; }
.chipk--lf { background: #1f2937; color: #e5e7eb; border-color: #374151; }
.chipk--kasse { background: #10291c; color: #9be8b8; border-color: #1f5136; }
.chipk--leise { opacity: .75; font-weight: 600; }
.chipk--fehlt { background: #3a2410; color: #ffc98a; border-color: #6b4318; }
html.design-pro .chipk--lf { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
html.design-pro .chipk--kasse { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
html.design-pro .chipk--fehlt { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.pkassehinweis { grid-column: 1 / -1; margin: -4px 0 0; }
.katstd label.katstd__kasse .ainput { width: 260px; }
.katstd label:nth-of-type(4) .ainput { width: 110px; }

/* EAN-Feld mit Kamera-Knopf, Kamera-Wahl */
.eanfeld { display: flex; gap: 6px; align-items: stretch; }
.eanfeld .ainput { flex: 1; min-width: 0; }
.eanfeld .btn { flex: none; padding: 0 12px; }
.kamerawahl select { max-width: 320px; height: 36px; }
dialog .ksov { position: fixed; inset: 0; z-index: 10; }

/* Kasse → Artikel: Pause, Buchungsgruppen */
.kpause { margin: 10px 0 0; align-items: flex-start; }
.kgruppen { margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.kgruppen__kopf { font-size: .86rem; margin-bottom: 6px; }
.kgtab { width: 100%; border-collapse: collapse; font-size: .84rem; }
.kgtab th { text-align: left; font-weight: 700; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.kgtab td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
@media (max-width: 640px) { .kgtab tr:first-child { display: none; } .kgtab tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); } .kgtab td { border: 0; padding: 0; } .kgtab td:nth-child(2), .kgtab td:nth-child(3) { grid-column: 1; font-size: .78rem; color: var(--muted); } .kgtab td:nth-child(4) { grid-column: 2; grid-row: 1 / span 3; align-self: center; } }

/* Eigener Server: Update per ZIP */
.serverinfo { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); }
.serverinfo code { font-size: .8rem; }
.updatezone { display: grid; place-items: center; min-height: 92px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; padding: 12px; transition: border-color .15s, background .15s; }
.updatezone:hover, .updatezone.is-drag { border-color: var(--accent); background: rgba(229, 56, 59, .06); }
.updatezone.is-busy { opacity: .7; pointer-events: none; }

/* Kundenzugang (PIN / Clubkarte) */
.zchip { font: inherit; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: inherit; cursor: pointer; white-space: nowrap; }
.zchip--gelb { background: #2d2410; color: #ffd98a; border-color: #5c4716; }
.zchip--gruen { background: #10291d; color: #6ee7b0; border-color: #1f5c3e; }
.zchip--rot { background: #3a1d1e; color: #ffb4b4; border-color: #5a2a2b; }
html.design-pro .zchip { background: #eef1f5; }
html.design-pro .zchip--gelb { background: #fff6dc; color: #7a5200; border-color: #f0dc9c; }
html.design-pro .zchip--gruen { background: #e7f6ee; color: #1e6b3e; border-color: #b8e2c9; }
html.design-pro .zchip--rot { background: #fdecec; color: #a42020; border-color: #f2c4c4; }
.zgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 14px; margin: 8px 0 4px; }
.zgrid small { display: block; color: var(--muted); font-size: .75rem; }
.zgrid b { font-weight: 600; font-size: .92rem; }
.zpin { font-size: 1.05rem; letter-spacing: .15em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
