@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url(/static/fonts/barlow-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url(/static/fonts/barlow-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/barlow-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/barlow-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Peppermint Versand – flat, typographic, calm. Big bold headings, light labels, hairlines instead of boxes. */
:root {
  --bg: #ffffff;            /* white page */
  --surface: #f6f6f4;       /* very light gray sections and fields */
  --ink: #2b2b2b; --muted: #8a8a85; --soft-ink: #5c5c58;
  --line: #d4d4cf; --line-soft: #e3e3df;
  --klein: #002fa7; --klein-dark: #00237d;   /* Yves Klein blue = the button to press next */
  --tick: #f2b705;          /* yellow: ticked off, accents */
  --tick-ink: #b88900;      /* darker yellow for text and lines on white */
  --err: #8b0000; --ok: #2f6b3c; --warn: #8a4b00;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 400 15px/1.45 "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
h1 { font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; margin: 0; }
.dateline { font-weight: 300; color: var(--soft-ink); font-size: 15px; margin: 6px 0 22px; }
.muted { color: var(--muted); font-weight: 300; }
.small { font-size: 13px; margin-top: 2px; }
.lead { font-size: 16px; font-weight: 300; }
.mt { margin-top: 26px !important; }
.name { font-weight: 600; }

/* ---------- Header: plain text on the page ---------- */
header { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.brand span { font-weight: 300; letter-spacing: .02em; color: var(--muted); margin-left: 2px; }
.brand .logo { width: 26px; height: 26px; }
header nav { display: flex; gap: 22px; margin-right: auto; margin-left: 28px; flex-wrap: nowrap; }
header nav a { color: var(--muted); text-decoration: none; padding: 4px 0; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
header nav a:hover { color: var(--ink); }
header nav a.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.demo { background: #f5c518; color: #000; font-weight: 700; padding: 2px 8px; border-radius: 3px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.demo.test { background: var(--tick); color: #000; }
.who { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--muted); font-weight: 300; }
.who form { margin: 0; }
button.link { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; height: auto; min-width: 0; }
body.embedded header { padding: 10px 28px; }
body.embedded header .brand, body.embedded header .who { display: none; }
body.embedded header nav { margin-left: 0; }
@media (max-width: 1100px) { header .who { display: none; } }
ui-nav-menu { display: none; }

main { max-width: 1200px; margin: 0 auto; padding: 34px 28px 60px; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 0; }
.title-row h1 { margin: 0; }
#count { color: var(--muted); font-weight: 300; font-size: 18px; text-transform: none; margin-left: 6px; }

/* ---------- Sections: separated by hairlines, no boxes ---------- */
.card { background: transparent; padding: 22px 0 26px; margin: 0; border-top: 1px solid var(--line); }
.card h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 12px; }
.card h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft-ink); margin: 20px 0 8px; }
details.card summary { list-style: none; cursor: pointer; }
details.card summary h2 { display: inline; }
details.card summary::before { content: '+ '; font-weight: 800; }
details.card[open] summary::before { content: '– '; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; margin-bottom: 18px; background: transparent; }
th { text-align: left; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.order { font-weight: 700; font-size: 18px; white-space: nowrap; }
th.num, td.num { text-align: right; }
td.right { text-align: right; white-space: nowrap; }
.big-num { font-size: 20px; font-weight: 700; }
tr.group td { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 0 6px; }
tr.total td { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 40px; font-weight: 300; }
.neg { color: var(--err); font-weight: 700; }
.pos { color: var(--ok); font-weight: 700; }
.thumb { display: inline-block; width: 44px; height: 32px; object-fit: contain; vertical-align: middle; }
.items td { font-size: 16px; }
.qty { font-size: 17px; font-weight: 700; }

/* ---------- Buttons: flat ---------- */
button, a.button { font: inherit; font-weight: 600; font-size: 14px; letter-spacing: .01em; padding: 0 16px; height: 38px; border-radius: 4px; cursor: pointer; white-space: nowrap;
  background: var(--klein); color: #fff; border: 1px solid var(--klein); box-shadow: none; transition: background .12s, border-color .12s, color .12s; }
a.button { display: inline-flex; align-items: center; text-decoration: none; background: transparent; color: var(--ink); border-color: var(--ink); }
button:not(:disabled):hover { background: var(--klein-dark); border-color: var(--klein-dark); }
button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
button.secondary:not(:disabled):hover, a.button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
button:disabled { cursor: not-allowed; opacity: .4; }
button.danger { background: transparent; color: var(--err); border-color: var(--err); }
button.danger:not(:disabled):hover { background: var(--err); color: #fff; border-color: var(--err); }
button.big { font-size: 15px; height: 46px; padding: 0 22px; min-width: 180px; }

/* ---------- Fields ---------- */
input[type=number], input[type=date], input[type=text], input[type=password], input:not([type]), select {
  font: inherit; font-size: 15px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); }
input::placeholder { color: var(--muted); font-weight: 300; }
select { max-width: 230px; cursor: pointer; -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232b2b2b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px; }
input:focus, select:focus { outline: none; border-color: var(--ink); background: #fff; }
.row-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.row-form label, .stack label, label.block { display: grid; gap: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
label.block { margin: 14px 0; }
.stack { display: grid; gap: 14px; }
.loc { display: flex; align-items: center; gap: 8px; font-weight: 300; color: var(--muted); }
.qty-input { width: 100px; text-align: right; }
input[type=checkbox] { accent-color: var(--tick); }
.big-check, .check input { width: 20px; height: 20px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.switch { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.switch input { width: 18px; height: 18px; }
.toggles { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 18px 0 4px; }
.segmented { display: inline-flex; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.segmented .seg { background: transparent; color: var(--ink); border: 0; border-radius: 0; height: 34px; }
.segmented .seg:not(:disabled):hover { background: var(--line-soft); }
.segmented .seg.active, .segmented .seg.active:hover { background: var(--ink); color: #fff; }

/* ---------- Messages ---------- */
.alert, .ok, .hint { padding: 10px 0 10px 14px; margin-bottom: 14px; border-left: 3px solid var(--ink); background: transparent; }
.alert { color: var(--err); border-left-color: var(--err); font-weight: 600; }
.ok { color: var(--ok); border-left-color: var(--ok); font-weight: 600; }
.hint { font-size: 14px; color: var(--soft-ink); border-left-color: var(--line); }
.problem { color: var(--err); font-size: 14px; font-weight: 600; }
.state { font-size: 14px; color: var(--muted); font-weight: 300; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft-ink); vertical-align: middle; }
.tag.warn { color: var(--tick-ink); }
.refund { font-size: 17px; padding: 18px 0; text-align: center; margin: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 300; }
.refund b { font-size: 40px; font-weight: 800; display: block; }
.refund.warn { color: var(--warn); }
.transfer { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.transfer:first-child { border-top: 0; }
.actions { margin-top: 18px; display: flex; gap: 12px; justify-content: flex-end; }

/* ---------- Login ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; }
.login { background: transparent; padding: 0; width: min(360px, 92vw); display: grid; gap: 16px; }
.login .brand { font-size: 15px; margin-bottom: 18px; }
.login .brand .logo { width: 34px; height: 34px; }
.login label { display: grid; gap: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.login select { max-width: none; width: 100%; }
.login button { height: 46px; margin-top: 6px; }

/* ---------- Dialogs and hover box ---------- */
.modal { position: fixed; inset: 0; background: rgba(43, 43, 43, .35); display: grid; place-items: center; z-index: 50; }
.dialog { background: var(--bg); padding: 28px 32px; width: min(560px, 94vw); border: 1px solid var(--line); }
.dialog h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.c-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: flex-end; }
#ask button.big { min-width: 0; flex: 1; }
#ask .a-text { font-size: 18px; font-weight: 300; }
.tip-wrap { position: relative; display: inline-block; }
.tip { display: none; position: absolute; z-index: 10; left: 0; top: calc(100% + 8px); width: 320px; background: var(--surface); border: 1px solid var(--line);
  padding: 12px 14px; font-size: 14px; font-weight: 400; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.tip-wrap:hover .tip { display: block; }
.tip dl { display: grid; grid-template-columns: 74px 1fr; gap: 5px 10px; margin: 0; }
.tip dt { color: var(--muted); font-weight: 300; }
.tip dd { margin: 0; }
.tip .tag { margin-bottom: 10px; }

/* ---------- Versand ---------- */
.find { display: flex; gap: 8px; }
.find input { width: 300px; }
#found { padding-top: 18px; }
#found table { margin: 0; }
.found-head { display: flex; justify-content: space-between; align-items: baseline; }
.ship-table td { font-size: 15px; }
.docs { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; }
.docs-note { margin-top: 6px; font-size: 14px; }
.docs-note.problem { color: var(--err); }
/* Print buttons: blue = print this next, outline = later, ✓ text = already printed */
.step-btn { background: transparent; color: var(--ink); border: 1px solid var(--line); min-width: 116px; }
.step-btn:not(:disabled):hover { background: transparent; border-color: var(--ink); }
.step-btn.next { background: var(--klein); border-color: var(--klein); color: #fff; }
.step-btn.next:not(:disabled):hover { background: var(--klein-dark); border-color: var(--klein-dark); }
.step-btn.used { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; padding: 0 8px; min-width: 0; }
.step-btn.used::before { content: '✓ '; color: var(--tick-ink); font-weight: 800; }
.step-btn.used:not(:disabled):hover { border-color: var(--line); }
.step-btn:disabled { opacity: .35; }
tr.waiting td, tr.waiting td.order { color: var(--muted); }
tr.waiting td.order { font-weight: 500; }

/* Search result: order details with checklist */
.order-details { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.order-details h3 { margin: 0 0 14px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; color: var(--ink); }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; font-size: 16px; }
.od-grid .muted.small, .order-details > .muted.small { text-transform: none; font-size: 13px; }
.mt-s { margin-top: 10px; }
.checklist { display: grid; gap: 0; margin-top: 6px; }
.check-line { display: grid; grid-template-columns: 26px 52px 1fr auto 56px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 16px; }
.check-line:last-child { border-bottom: 0; }
.check-line .cl-name { font-weight: 500; }
.check-line .cl-qty { font-size: 18px; font-weight: 800; text-align: right; }
.check-line:has(input:checked) .cl-name { text-decoration: line-through; text-decoration-color: var(--tick-ink); text-decoration-thickness: 2px; color: var(--muted); }
.check-line:has(input:checked) .cl-qty { color: var(--muted); }

/* Einstellungen */
code.pw { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 0; }
button.small-btn { height: 30px; font-size: 13px; padding: 0 10px; }

@media (max-width: 640px) {
  header { flex-wrap: wrap; padding: 12px 16px; }
  main { padding: 22px 16px 40px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 6px 0; }
  .find input { width: 100%; }
}
.title-tools { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
td.img-cell { width: 56px; padding-right: 0; }

/* Location next to the page title */
h1 .h1-loc, h1 #locName { font-weight: 300; color: var(--muted); margin-left: 8px; text-transform: uppercase; }
.unit-row { display: flex; gap: 10px; align-items: flex-end; }
.unit-row input { flex: 1; }
.convert { font-size: 14px; color: var(--soft-ink); min-height: 20px; }
#dUnit, #eUnit { min-width: 130px; }

/* Pill-shaped buttons */
button, a.button, .step-btn { border-radius: 999px; }
button.big { padding: 0 26px; }
.segmented { border-radius: 999px; }
.segmented .seg { border-radius: 999px; }
.step-btn.used { padding: 0 10px; }

/* Einstellungen: Material & Einheiten */
.units-table input { height: 32px; font-size: 14px; padding: 0 8px; }
.units-table td { padding-top: 8px; padding-bottom: 8px; }
.units-table th { white-space: normal; line-height: 1.2; }
.title-tools { margin-left: auto; }

/* Pill-shaped form fields */
input[type=number], input[type=date], input[type=text], input[type=password], input:not([type]), select { border-radius: 999px; padding-left: 16px; }
select { padding-right: 38px; background-position: right 15px center; }
.units-table input { padding-left: 12px; }

/* Header: menu in capitals, PEPPERMINT the same size */
header nav a { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.brand { font-size: 13px; letter-spacing: .14em; }
.brand span { font-size: 13px; }

/* Versand: refresh next to date */
.dateline-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; }
.dateline-row .dateline { margin: 0; }
button.refresh-btn { height: 26px; font-size: 12px; padding: 0 12px; }

/* Weighing help */
.weigh { margin-top: 14px; padding: 14px 18px; background: var(--surface); border-radius: 16px; }
.weigh-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; color: var(--soft-ink); line-height: 1.6; }
.weigh .row-form { align-items: center; }
.row-form label.switch { display: flex; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); gap: 10px; }

/* Vorlagen-Editor */
textarea.code { width: 100%; margin-top: 14px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); tab-size: 2; resize: vertical; }
textarea.code:focus { outline: none; border-color: var(--ink); background: #fff; }
.tpl-actions { justify-content: flex-start; flex-wrap: wrap; }
.tpl-frame { width: 100%; height: 900px; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }

/* Problem menu */
.menu-wrap { position: relative; display: inline-block; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px; min-width: 210px; box-shadow: 0 10px 30px rgba(0,0,0,.08); display: grid; gap: 2px; }
.menu button.menu-item { background: transparent; color: var(--ink); border: 0; text-align: left; justify-content: flex-start; height: 38px; padding: 0 14px; font-weight: 500; border-radius: 999px; }
.menu button.menu-item:hover { background: var(--surface); color: var(--ink); }
/* Packing slip checklist */
.dialog.wide { width: min(720px, 94vw); max-height: 90vh; overflow: auto; }
#check .c-actions button.big { min-width: 0; flex: 1; }

/* Global Standort selector (Shopify admin) */
.g-loc { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: auto; }
.g-loc select { height: 34px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.rules { margin: 6px 0 10px; padding-left: 20px; line-height: 1.6; }
#note textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); resize: vertical; margin-top: 4px; }
#note textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
#note .n-label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
#note .c-actions button.big { min-width: 0; flex: 1; }

/* ---------- Rechnungen ---------- */
pre.code { margin: 10px 0 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); white-space: pre-wrap; word-break: break-all; }
.inv-state { font-weight: 600; }
.inv-state.ok { color: var(--ink); }
.inv-state.err { color: #8b1a1a; font-weight: 500; }
.inv-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.inv-actions button, .inv-actions a.button { height: 30px; font-size: 13px; padding: 0 12px; }
.status-line b { display: inline-block; min-width: 150px; }
/* public customer page */
.public-doc { width: min(520px, 92vw); }
.public-doc h1 { font-size: 20px; margin: 18px 0 14px; }
.doc-list { list-style: none; padding: 0; margin: 0 0 18px; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- Navigation: groups in the header, pages of the group below ---------- */
header nav.groups { margin-right: auto; }
.subnav { padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bg); }
.subnav nav.pages { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.subnav nav.pages a { color: var(--muted); text-decoration: none; padding: 10px 0 8px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav nav.pages a:hover { color: var(--ink); }
.subnav nav.pages a.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--tick); }
.subnav .nav-sep { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--line); }
header:not(:has(nav.groups)) .g-loc, header .g-loc { margin-left: auto; }
header nav.groups ~ .g-loc { margin-left: 0; }
.soon h2 { color: var(--muted); }
.sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sections-grid fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
.sections-grid legend { font-weight: 700; padding: 0 6px; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.dialog label.switch, .stack label.switch { display: flex; flex-direction: row; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); gap: 10px; }
.sections-grid label.switch { font-size: 13px; }
.dialog { max-height: 90vh; overflow-y: auto; }
