:root {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #1d1d1b; --muted: #6b6a66; --line: #e3e1dc;
  --accent: #1f5f4a; --accent-ink: #ffffff; --accent-soft: #e4efe9;
  --warn: #9a5b00; --warn-soft: #fbf0dc; --bad: #a3271f; --bad-soft: #f8e3e1;
  --radius: 8px; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 -apple-system, "Segoe UI", Inter, system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.top { background: var(--ink); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
header.top .brand { font-weight: 650; letter-spacing: .2px; color: #fff; }
header.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
header.top nav a { color: #cfcdc8; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
header.top nav a.on, header.top nav a:hover { color: #fff; background: #ffffff1a; text-decoration: none; }
header.top .who { color: #9e9c97; font-size: 12px; white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 60px; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 650; }
.sub { color: var(--muted); margin: 0 0 20px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid .wide { grid-column: 1 / -1; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=number], input[type=url], input[type=search], input[type=email], input[type=tel], input[type=password],
input[type=date], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ink); }
.check input { margin-top: 3px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px;
  border-radius: 6px; font: inherit; font-weight: 550; cursor: pointer; }
.btn:hover { border-color: #c9c6bf; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 4px 9px; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.tablewrap { overflow-x: auto; }
.muted { color: var(--muted); }

.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill.in_stock, .pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.backorder, .pill.running { background: var(--warn-soft); color: var(--warn); }
.pill.out_of_stock, .pill.error { background: var(--bad-soft); color: var(--bad); }
.pill.off { background: #eeede9; color: var(--muted); }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.flash.ok { background: var(--accent-soft); color: var(--accent); }
.flash.error { background: var(--bad-soft); color: var(--bad); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.filters select { width: auto; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; color: var(--muted); }
.kpis { display: flex; gap: 24px; flex-wrap: wrap; }
.kpi .v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); }
code.url { display: block; background: #f3f2ee; padding: 6px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; word-break: break-all; }
pre.err { white-space: pre-wrap; font-size: 12px; color: var(--bad); margin: 6px 0 0; }

@media (max-width: 640px) {
  header.top .who { display: none; }
  header.top .wrap { gap: 14px; }
}

header.top form.who { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: #cfcdc8; font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: #fff; }
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px; width: 100%; max-width: 380px; text-align: center; }
.login-card .sub { margin-bottom: 22px; }
.btn.google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 14px; }

nav.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
nav.tabs a { padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; }
nav.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
nav.tabs a:hover { text-decoration: none; color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

nav.subtabs { display: flex; gap: 6px; margin: -8px 0 20px; }
nav.subtabs a { padding: 5px 12px; border-radius: 99px; color: var(--muted); font-weight: 550; font-size: 13px; }
nav.subtabs a.on { background: var(--accent-soft); color: var(--accent); }
nav.subtabs a:hover { text-decoration: none; color: var(--ink); }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: middle;
  border: 1px solid #0000002e; background: repeating-linear-gradient(45deg, #eee 0 4px, #fff 4px 8px); }
.swatch.small { width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; }
.swatch.big { width: 26px; height: 26px; margin-right: 4px; }
.hexfield { display: flex; gap: 8px; align-items: center; }
.hexfield input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); }
.chip:hover { border-color: #c9c6bf; text-decoration: none; }

.flash.warn { background: var(--warn-soft); color: var(--warn); }
.flash.info { background: #eef1f5; color: #3b4a5c; }
.upid { font-family: var(--mono); font-weight: 600; color: var(--ink); }
h2.section-title { font-size: 16px; margin: 26px 0 10px; }
.head h2.section-title { margin-bottom: 10px; }
.variants-empty { padding: 22px; }
.addlink { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; font: inherit;
  font-weight: 550; color: var(--ink); cursor: pointer; }
.addlink:hover { color: var(--accent); text-decoration: none; }
.optsummary { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.optsummary > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.optsummary .muted { font-size: 12px; font-weight: 600; margin-right: 2px; }
.chip.static { padding: 3px 9px; font-size: 13px; }
.chip.pick { cursor: pointer; user-select: none; }
.chip.pick input { margin: 0 6px 0 0; }
.chip.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.optgroup { margin-bottom: 12px; }
.optgroup > .muted { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
table.variants td { vertical-align: middle; padding: 6px 8px; }
table.variants input.cell { padding: 5px 7px; min-width: 120px; }
table.variants input.cell.num { text-align: right; min-width: 90px; }
table.variants input.cell.short { min-width: 64px; width: 72px; }
.nowrap { white-space: nowrap; }
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; margin: 0 0 10px; }
dl.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
dl.facts dd { margin: 2px 0 0; }

.kindpick { margin-top: 16px; }
.kindcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.kindcard { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--ink); margin: 0; }
.kindcard input { margin-top: 3px; }
.kindcard > span { display: flex; flex-direction: column; gap: 2px; }
.kindcard .muted { font-size: 12.5px; }
.kindcard:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kindline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; padding: 10px 12px;
  border: 1px dashed var(--line); border-radius: 8px; }
.kindline .addlink { margin-left: auto; font-size: 13.5px; }
.optpicker { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf8; }
.optpicker h3 { font-size: 14px; margin: 0 0 8px; }
.optpicker .combo { margin: 14px 0 0; font-weight: 600; color: var(--accent); }
[hidden] { display: none !important; }
.optgroups { display: flex; flex-wrap: wrap; gap: 4px 28px; }

.tabletools { display: flex; justify-content: flex-end; margin: -4px 0 10px; }
.toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: -3px 4px -3px -4px;
  border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; vertical-align: middle; }
.toggle:hover { background: #ecebe7; color: var(--ink); }
.toggle svg { transition: transform .15s; }
.toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.toggle-spacer { display: inline-block; width: 22px; margin-right: 4px; margin-left: -4px; }
.pillbtn { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; }
.pillbtn:hover { background: #e3e1dc; }
table.productlist tr.variant-row td { background: #fbfaf8; padding-top: 7px; padding-bottom: 7px; font-size: 13.5px; }
table.productlist tr.variant-row.hit td { background: var(--accent-soft); }
.branch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-left: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 3px; transform: translateY(-3px); }

nav.subtabs .count { font-weight: 500; opacity: .7; margin-left: 2px; }
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; }
.statusbar form { margin: 0; }
.statusbar .muted { font-size: 12px; font-weight: 600; margin-right: 4px; }
.additem { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.additem h3 { font-size: 14px; margin: 0 0 10px; }
table tfoot td { border-bottom: 0; padding: 6px 8px; }
table tr.totalrow td { border-top: 1px solid var(--line); padding-top: 10px; }
table.variants input.cell.num { max-width: 120px; }

h3.formsub { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
.subbox { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf8; }

/* POS */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.pos-cart { position: sticky; top: 16px; }
@media (max-width: 900px) { .pos { grid-template-columns: 1fr; } .pos-cart { position: static; } }
.stepno { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); font-size: 12px; margin-right: 6px; vertical-align: 1px; }
.chipselect { display: flex; flex-wrap: wrap; gap: 8px; }
.chipselect label { margin: 0; cursor: pointer; }
.chipselect input { position: absolute; opacity: 0; pointer-events: none; }
.chipselect span { display: block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); font-size: 15px; font-weight: 600; min-width: 120px; }
.chipselect small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.chipselect input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.chipselect input:focus-visible + span { outline: 2px solid var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.seg button { border: 0; background: #fff; padding: 9px 16px; font: inherit; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 8px; font-size: 15px; }
.results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.results li + li { border-top: 1px solid var(--line); }
.results li.none { padding: 10px 4px; color: var(--muted); }
.results button { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; text-align: left; border: 0;
  background: none; padding: 10px 6px; font: inherit; color: var(--ink); cursor: pointer; border-radius: 6px; }
.results button:hover, .results button:focus { background: var(--bg); outline: none; }
.results .muted { display: block; font-size: 12px; }
.results .pname { flex: 1; min-width: 200px; }
.results .pprice { font-weight: 650; white-space: nowrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid #0002; flex: none; }
input.bigsearch { font-size: 17px; padding: 12px 14px; }
details.addr summary { cursor: pointer; color: var(--accent); margin-top: 12px; }
.cartlist { list-style: none; margin: 0 0 12px; padding: 0; }
.cartlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl-head { display: flex; justify-content: space-between; gap: 8px; }
.cl-head .muted { display: block; font-size: 12px; }
.cl-head .x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.cl-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { width: 34px; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; }
.stepper input { width: 52px; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 6px 2px !important; -moz-appearance: textfield; }
.cl-price { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cl-price input { width: 84px; padding: 6px 6px !important; text-align: right; }
.cl-total { margin-left: auto; white-space: nowrap; }
.cl-warn { color: var(--bad); font-size: 12px; margin-top: 4px; }
.cl-note { font-size: 12px; margin-top: 2px; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.carttotal > div { display: flex; justify-content: space-between; }
.carttotal strong { font-size: 20px; }
.btn.big { width: 100%; padding: 13px 16px; font-size: 16px; margin-top: 14px; text-align: center; }
.posdone { max-width: 720px; margin: 0 auto; }
.posdone .actions .btn.big { width: auto; margin-top: 0; }
.results .linkbtn { color: var(--accent); }
.mailform { margin-top: 18px; }
.panel > .mailform { margin-top: 0; }

/* Kopfzeile fixiert */
header.top { position: sticky; top: 0; z-index: 50; }

/* «Island»: Meldungen und Speichern-Leiste oben in der Mitte, über der Kopfzeile */
.island { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex;
  flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 24px);
  pointer-events: none; }
.island > * { pointer-events: auto; }
.island .flash { border: 1px solid #ffffff2b; margin: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px;
  border-radius: 999px; background: #121211; color: #fff; font-size: 13.5px; line-height: 1.35;
  box-shadow: 0 8px 28px #0003, 0 0 0 1px #ffffff14 inset; animation: island-in .32s cubic-bezier(.2, .9, .3, 1.2);
  max-width: 640px; }
.island .flash::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; }
.island .flash.error::before { background: #ff6b5e; }
.island .flash.warn::before { background: #f5b748; }
.island .flash.info::before { background: #8fb3ff; }
.island .flash.out { animation: island-out .25s ease forwards; }
.island-x { border: 0; background: #ffffff1a; color: #fff; width: 22px; height: 22px; border-radius: 50%;
  font-size: 15px; line-height: 1; cursor: pointer; flex: none; }
.island-x:hover { background: #ffffff33; }
.savebar { border: 1px solid #ffffff2b; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 14px;
  background: #121211; color: #fff; font-size: 14px; box-shadow: 0 8px 28px #0003;
  animation: island-in .32s cubic-bezier(.2, .9, .3, 1.2); }
.savebar[hidden] { display: none; }
.savebar span { margin-right: 10px; white-space: nowrap; }
.savebar button { border: 0; border-radius: 9px; padding: 7px 13px; font: inherit; font-weight: 600; cursor: pointer; }
.sb-discard { background: #ffffff1f; color: #fff; }
.sb-discard:hover { background: #ffffff33; }
.sb-save { background: #fff; color: #121211; }
.sb-save:hover { background: #e9e8e4; }
@keyframes island-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes island-out { to { opacity: 0; transform: translateY(-8px) scale(.97); } }
@media (max-width: 640px) { .island { top: 58px; } .savebar span { margin-right: 4px; } }
@media (prefers-reduced-motion: reduce) { .island .flash, .savebar { animation: none; } }
[id] { scroll-margin-top: 72px; }
.sb-short { display: none; }
@media (max-width: 480px) {
  .sb-long { display: none; } .sb-short { display: inline; }
  .savebar { padding-left: 12px; gap: 6px; font-size: 13px; } .savebar button { padding: 7px 10px; }
  .island .flash { border-radius: 16px; }
}

/* POS: Zahlung */
.paytotal { display: grid; grid-template-columns: auto auto auto auto; justify-content: start; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; font-size: 15px; }
.paytotal strong { font-size: 20px; }
.paytotal strong.ok { color: var(--accent); } .paytotal strong.neg { color: var(--bad); }
.payrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; align-items: flex-end; }
.payrow > div { flex: 1 1 150px; } .payrow > .payadd { flex: 0 0 auto; }
.payrow [hidden] { display: none; }
.paylist { list-style: none; margin: 10px 0 0; padding: 0; }
.paylist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.paylist li > span { flex: 1; } .paylist .muted { margin-left: 6px; font-size: 12px; }
.paylist .x { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.cart-open { margin-top: 10px; font-weight: 600; }
.recapbox { margin-top: 12px; font-size: 13px; color: var(--muted); }
.recapbox > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.paylist form { margin: 0; }

/* Fulfillment */
h3 { font-size: 13.5px; margin: 0 0 10px; font-weight: 650; }
.panelhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panelhead h2 { margin: 0; }
form.inline { display: inline-flex; gap: 6px; align-items: center; }
form.inline select { width: auto; padding: 4px 6px; font-size: 12.5px; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; }
details.fold > summary::before { content: "▸"; color: var(--muted); width: 10px; }
details.fold[open] > summary::before { content: "▾"; }
.tplgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .tplgrid { grid-template-columns: 1fr; } }
textarea.mailbody { min-height: 340px; font: 13px/1.5 var(--mono); }
.phs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.phs button { font: 12px var(--mono); padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: #faf9f6; cursor: pointer; color: var(--ink); }
.phs button:hover { border-color: var(--accent); color: var(--accent); }
.mailpreview { border: 1px solid var(--line); border-radius: var(--radius); background: #fcfcfa; }
.mailpreview .subj { padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mailpreview .meta { padding: 8px 14px 0; color: var(--muted); font-size: 12.5px; }
.mailpreview pre { margin: 0; padding: 12px 14px 16px; white-space: pre-wrap; font: 13.5px/1.55 -apple-system, "Segoe UI", Inter, system-ui, sans-serif; }
.notice { padding: 8px 12px; border-radius: 6px; margin: 0 0 12px; font-size: 13px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice ul { margin: 4px 0 0; padding-left: 18px; }
.ffitems { margin: 0; padding: 0; list-style: none; }
.ffitems li { padding: 3px 0; }
.sup { color: var(--muted); font-size: 12.5px; }
pre.mailtext { white-space: pre-wrap; font: 12.5px/1.5 var(--mono); background: #faf9f6; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 6px 0 0; max-width: 520px; }
.ffrow-actions { margin-top: 8px; }

/* Kategorien & Bestand */
.cattree { display: inline-block; }
tr.inherited td { background: #faf9f6; }
.stockgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.stockgrid > div { display: flex; flex-direction: column; gap: 4px; width: 150px; font-size: 12.5px; }
.stockro { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 14px; }
.fieldadd { border-top: 1px solid var(--line); margin-top: 16px; }
.prefixed { display: flex; align-items: stretch; }
.prefixed > span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: #f3f2ee; color: var(--muted); font-family: var(--mono); }
.prefixed > input { border-radius: 0 6px 6px 0; font-family: var(--mono); }
.hint.ok { color: var(--accent); }
.hint.bad { color: var(--bad); }
.stocktable th.grp { text-align: center; border-left: 1px solid var(--line); }
.stocktable th.sub { font-weight: 500; font-size: 11.5px; }
.stocktable td:nth-child(n+3) { white-space: nowrap; }
.stockcell input + input { margin-top: 4px; }
.stockgrid > div.stockcell { width: 170px; }
.stockadd { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(140px, 1fr) 110px 140px auto; gap: 12px; align-items: start; }
@media (max-width: 800px) { .stockadd { grid-template-columns: 1fr 1fr; } .stockadd .pickwrap { grid-column: 1 / -1; } }
.stockadd .addbtn { padding-top: 22px; }
.pickwrap { position: relative; }
.picklist { position: absolute; z-index: 20; left: 0; right: 0; top: 64px; margin: 0; padding: 4px 0; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 320px; overflow: auto; }
.picklist li { padding: 7px 12px; cursor: pointer; }
.picklist li:hover { background: var(--accent-soft); }
form .tablewrap td.num input.cell { max-width: 110px; }
.matchform { display: flex; gap: 8px; align-items: flex-start; }
.matchform .pickwrap { flex: 1; }
.matchform .picklist { top: 40px; }
.matchtable td { vertical-align: top; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.formactions { margin: 4px 0 22px; }
textarea.richtext { min-height: 220px; }
.tox.tox-tinymce { border-color: var(--line); border-radius: 8px; }
.panel .grid ~ h2 { margin-top: 22px; }
