[hidden] { display: none !important; }
:root {
  --green: #1F4D3F;
  --green-dark: #163a2f;
  --green-soft: #E6EEEA;
  --bg: #F3F5F2;
  --card: #ffffff;
  --ink: #14231F;
  --muted: #5B6B66;
  --line: #E1E7E3;
  --orange: #B4400C;
  --orange-soft: #FCEFE7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 35, 31, .06), 0 2px 8px rgba(20, 35, 31, .04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--green); }

h1 { font-size: 1.6rem; line-height: 1.2; margin: 1.2rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; margin: 0 0 .7rem; }
main > h2 { margin: 1.6rem 0 .6rem; color: var(--muted); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
h1 a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 48px; }

/* Header */
.top { background: var(--green); color: #fff; padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { color: #fff; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: url("/icon-192.png") center / cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.top-tools { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.top .link { color: #DCE8E3; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.nav a { color: #DCE8E3; text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.nav a.on { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }

/* Cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card.narrow { max-width: 480px; margin: 32px auto; }
.grid { display: grid; gap: 14px; }
.grid > .card { margin: 0; }
@media (min-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.inline { display: inline; margin: 0; }
.inline-form { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }

/* Text */
.muted { color: var(--muted); font-size: .92rem; }
.hint { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.warn-text { color: var(--orange); }
.frist-text { background: var(--orange-soft); color: #7A2E07; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.notice { padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; }
.notice.ok { background: var(--green-soft); color: var(--green-dark); }
.notice.info { background: #EEF3F8; color: #23415c; }
.notice.err { background: #FBE9E7; color: #8a1f11; }
.notice.warn { background: var(--orange-soft); color: #7A2E07; }

/* Forms */
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=month], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 13px; border: 1.5px solid #CBD5D0; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 77, 63, .35); outline-offset: 1px; border-color: var(--green); }
input[type=file] { font: inherit; font-weight: 400; padding: 10px; border: 1.5px dashed #B9C6C0; border-radius: 10px; background: #FAFBFA; width: 100%; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented legend { width: 100%; }
.segmented label { display: flex; align-items: center; gap: 8px; font-weight: 500; border: 1.5px solid #CBD5D0; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.segmented label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.segmented input { accent-color: var(--green); }
.preview { max-width: 100%; max-height: 260px; border-radius: 10px; object-fit: contain; background: #f1f3f2; }
details.behalf { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.behalf summary { cursor: pointer; color: var(--green); font-weight: 600; margin-bottom: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--green); text-align: center;
}
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.accent:hover { background: #993509; border-color: #993509; }
.btn.ghost { background: #fff; color: var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.choices { display: grid; gap: 10px; margin: 12px 0 0; }
.choices form { margin: 0; }
.row-actions, .actions, .split { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.actions form { margin: 0; flex: 1 1 260px; }

/* Status pills */
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EEF1EF; color: var(--muted); vertical-align: middle; letter-spacing: .01em; }
.pill.s-waiting { background: #FFF4D6; color: #6B4E00; }
.pill.s-scan, .pill.s-pickup, .pill.s-forward { background: #E5EEF8; color: #1F4569; }
.pill.s-scanned, .pill.s-collected, .pill.s-forwarded { background: var(--green-soft); color: var(--green-dark); }
.pill.frist { background: var(--orange-soft); color: var(--orange); }

/* Portal items */
.item-head { display: flex; gap: 14px; align-items: flex-start; }
.item-meta { display: grid; gap: 4px; }
.item-title { font-weight: 700; font-size: 1.05rem; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: #EEF1EF; border: 1px solid var(--line); }
.thumb.empty { background: repeating-linear-gradient(45deg, #EEF1EF, #EEF1EF 6px, #F6F8F7 6px, #F6F8F7 12px); }
.photo { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; margin: 12px 0; background: #EEF1EF; }
.foot-info { margin-top: 24px; }

/* Staff lists */
.list-card { padding: 14px 6px 6px; }
.list-card > h2, .list-card > p { padding: 0 12px; }
.count { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: #EEF1EF; color: var(--muted); font-size: .82rem; text-align: center; margin-left: 4px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row + .row { border-top: 1px solid var(--line); }
.row-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: 10px; }
.row-link:hover { background: #F6F8F7; }
.row-link .thumb { width: 52px; height: 52px; }
.row-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.row-title { font-weight: 600; }

/* History */
.history { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.history li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history .when { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* Month table */
.table-card { overflow-x: auto; padding: 6px 12px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
tr.total th, tr.total td { font-weight: 700; border-bottom: 0; }

/* Pills keep their natural width inside grid rows */
.item-meta .pill, .row-main .pill { justify-self: start; }
@media (max-width: 420px) {
  .brand { font-size: .92rem; }
  .brand-mark { width: 24px; height: 24px; }
  .top-tools { gap: 12px; font-size: .88rem; }
}
.brand { white-space: nowrap; }

/* Customer confirmation page (design A) */
.act h1 { color: var(--green); margin: .4rem 0 .9rem; }
.act-item { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px; margin: 0 0 16px; }
.act-item strong { display: block; }
.act-item .muted { display: block; font-size: .92rem; }
.act-thumb { flex: 0 0 76px; height: 54px; border-radius: 8px; background: #E1E7E3; overflow: hidden; display: block; }
.act-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.checks li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B52' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.center { text-align: center; }
.lock { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .82rem; color: var(--muted); margin: 18px 0 6px; }

/* Login code */
.code-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid #E1E7E4; }
.code-input { font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

/* Activation of new customers */
.pill.onb-open { background: var(--orange-soft); color: var(--orange); }
.pill.onb-review { background: #FFF4D6; color: #6B4E00; }
.pill.onb-approved { background: var(--green-soft); color: var(--green-dark); }
.onb-today { border: 1.5px solid #F2C9B4; }
.thumb.onb-icon { display: grid; place-items: center; font-size: 1.2rem; background: var(--orange-soft); color: var(--orange); }
.thumb.onb-icon.review { background: #FFF4D6; color: #6B4E00; }
.onb-card h3 { font-size: 1rem; margin: 18px 0 6px; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.doc { display: grid; gap: 6px; text-decoration: none; color: inherit; border: 1px solid #DCE3DF; border-radius: 10px; padding: 6px; background: #FAFBFA; }
.doc img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; background: #EEF1EF; }
.doc-pdf { display: grid; place-items: center; height: 110px; border-radius: 6px; background: #EEF1EF; font-weight: 800; color: var(--orange); letter-spacing: .08em; }
.doc-name { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-check { align-items: flex-start; background: var(--orange-soft); padding: 10px 12px; border-radius: 10px; }
.small-h { font-size: 1rem; margin: 14px 0 4px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-size: 1.7rem; font-weight: 800; margin: 4px 0 12px; }
.onb-page .lock { display: flex; gap: 6px; align-items: flex-start; }
.onb-page .lock svg { flex: none; margin-top: 3px; }

/* Inactive customers */
.tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.tabs a { flex: 1; text-align: center; text-decoration: none; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1.5px solid #DCE3DF; color: var(--muted); font-weight: 700; }
.tabs a.on { background: var(--green); border-color: var(--green); color: #fff; }
.tabs a.on .count { background: rgba(255,255,255,.2); color: #fff; }
.count.warn { background: var(--orange-soft); color: var(--orange); }
.alert-card { display: grid; gap: 6px; text-decoration: none; color: inherit; border: 1.5px solid #E7D6A8; background: #FFFBEF; }
.alert-card.frist { border-color: #F2C9B4; background: var(--orange-soft); }
.alert-card .pill { justify-self: start; }
.row-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* Scan by photographing pages */
.scan-form .cam-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.pages:empty { display: none; }
.page-thumb { position: relative; margin: 0; border: 1px solid #DCE3DF; border-radius: 8px; overflow: hidden; background: #EEF1EF; }
.page-thumb img { display: block; width: 100%; height: 112px; object-fit: cover; }
.page-thumb figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(20,35,31,.8); color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.page-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(20,35,31,.8); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.or-file { margin-top: 6px; }
.or-file summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 0; }
.or-file .stack { margin-top: 8px; }

/* Deleting */
.btn.danger { background: #A3260E; border-color: #A3260E; color: #fff; }
.danger-card { border: 1.5px solid #F2C9B4; }
.danger-link { text-align: center; margin: 28px 0 8px; }
.danger-link a { color: #A3260E; font-weight: 600; font-size: .92rem; }
/* Customer deletes an item in the portal */
details.danger-zone { margin: 28px 0 8px; text-align: center; }
details.danger-zone summary { cursor: pointer; color: #A3260E; font-weight: 600; font-size: .92rem; list-style: none; }
details.danger-zone summary::-webkit-details-marker { display: none; }
details.danger-zone[open] { text-align: left; background: var(--card, #fff); border: 1.5px solid #F2C9B4; border-radius: 14px; padding: 14px 16px; }
details.danger-zone[open] summary { margin-bottom: 10px; }
details.danger-zone .btn.danger { width: 100%; }

/* Small explanation under a form field */
label .hint { display: block; font-weight: 400; margin-top: 6px; }
/* ID upload list and the document viewer */
.field-label { font-weight: 600; }
.docs-box { gap: 10px; }
.page-pdf { display: grid; place-items: center; height: 112px; font-weight: 700; color: var(--green, #1F4D3F); background: #EEF1EF; }
.doc-view { padding: 8px; }
.doc-full { display: block; width: 100%; height: auto; border-radius: 8px; background: #EEF1EF; }
.doc-pdf-view { display: block; width: 100%; height: 70vh; border: 0; border-radius: 8px; }
.doc-nav { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
/* To-do: one-off tasks */
.task-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; }
.task-row .row-title a { color: inherit; }
.thumb.task-icon { width: 40px; height: 40px; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; color: #fff; background: var(--green, #1F4D3F); border: 0; }
.task-row form { flex: none; align-self: center; }
.thumb.task-icon.plate_down, .thumb.task-icon.payment_failed { background: #8A300A; }
.thumb.task-icon.booking_check, .thumb.task-icon.data_check, .thumb.task-icon.choice_change, .thumb.task-icon.payment_pending { background: #B4400C; }
.btn.small { padding: 6px 12px; font-size: .9rem; min-height: 0; }
/* Menu badges, change choice, questions */
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.4; }
details.change { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.change summary { cursor: pointer; color: var(--green); font-weight: 600; }
details.change[open] summary { margin-bottom: 8px; }
details.change .choices { margin: 8px 0; }
.pill.q-open { background: #FFF4D6; color: #6B4E00; }
.pill.q-answered { background: var(--green-soft); color: var(--green-dark); }
.pill.q-closed { background: #EEF1EF; color: var(--muted); }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; background: #F3F5F2; }
.msg.ours { justify-self: end; background: var(--green-soft); }
.msg-meta { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
details.capture { padding: 0; background: transparent; box-shadow: none; border: 0; }
details.capture summary { list-style: none; display: inline-block; margin-bottom: 12px; }
details.capture summary::-webkit-details-marker { display: none; }
details.capture[open] > form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.q-today a { font-weight: 600; text-decoration: none; }
.guide-card a { color: var(--green); }
.a2hs { display: flex; gap: 12px; align-items: center; background: #fff; border: 1.5px solid var(--green-soft); border-radius: var(--radius); padding: 12px 12px 12px 14px; margin: 0 0 16px; box-shadow: var(--shadow); }
.a2hs[hidden] { display: none; }
.a2hs img { border-radius: 10px; flex: none; }
.a2hs strong { display: block; line-height: 1.3; margin-bottom: 2px; }
.a2hs span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.a2hs a { color: var(--green); font-weight: 600; }
.a2hs-x { margin-left: auto; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1F4F2; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.push-card .push-row { display: flex; gap: 12px; align-items: center; }
.push-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.push-text strong { display: block; }
.push-text span { color: var(--muted); font-size: .92rem; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.push-actions:empty, .push-actions:not(:has(:not([hidden]))) { display: none; }
.push-card .hint { margin: 10px 0 0; }
.push-card.is-on { padding-top: 12px; padding-bottom: 12px; }
.push-card.is-on .push-actions { margin-top: 8px; }

/* ---------- Kept post, shipping, settings, registered mail ---------- */
input[type=number], input[type=date] { width: 100%; font: inherit; font-weight: 400; color: var(--ink); padding: 12px 13px; border: 1.5px solid #CBD5D0; border-radius: 10px; background: #fff; }
footer.legal { color: var(--muted); font-size: .8rem; line-height: 1.7; text-align: center; padding: 8px 16px calc(28px + env(safe-area-inset-bottom)); }
footer.legal a { color: var(--muted); }
.pill.s-stored { background: #EEF1EF; color: var(--ink); }
.pill.dl { background: #EDE9F7; color: #43307A; }
.pill.dl-gelb { background: #FFF1B8; color: #5C4600; }
.pill.dl-karte { background: var(--orange-soft); color: var(--orange); }
.dl-text { background: #F4F2FA; color: #2F2557; padding: 10px 12px; border-radius: 10px; font-size: .95rem; margin: 10px 0 0; }
.stored-line { margin: 4px 0 18px; font-size: .95rem; }
.stored-line a { text-decoration: none; font-weight: 600; }
.req-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.req-card .row-main { display: grid; gap: 3px; flex: 1; }
.req-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 1.2rem; flex: none; }
.thumb.req-ico { width: 40px; height: 40px; border: 0; }
/* "Bei uns gesammelt" */
.held-list { list-style: none; margin: 4px 0 0; padding: 0; }
.held-row { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); }
.held-row:first-child { border-top: 0; }
.held-item { display: flex; align-items: center; gap: 12px; flex: 1; padding: 10px 4px; font-weight: 400; cursor: pointer; }
.held-item input { width: 24px; height: 24px; accent-color: var(--orange); flex: none; }
.held-box { width: 24px; height: 24px; border-radius: 6px; background: #EEF1EF; flex: none; }
.held-item .thumb { width: 48px; height: 48px; }
.held-item .row-main { display: grid; gap: 2px; }
.held-row.busy { opacity: .7; }
.held-more { padding: 12px; text-decoration: none; font-size: 1.3rem; color: var(--muted); }
.held-bar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px -6px 0; padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 6px 22px rgba(20, 35, 31, .14); }
.held-bar.active { border-color: var(--orange); }
.held-sum { display: grid; gap: 1px; line-height: 1.3; }
.held-sum .muted { font-size: .84rem; }
.held-btns { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; width: 100%; }
.held-btns .btn { min-height: 46px; padding: 8px 10px; }
@media (min-width: 640px) { .held-btns { width: auto; grid-template-columns: auto auto; } }
/* Paper original of a scanned letter */
.orig { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.orig p { margin: 0 0 8px; }
.orig-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.orig-destroy summary { list-style: none; }
.orig-destroy summary::-webkit-details-marker { display: none; }
.orig-destroy[open] { flex-basis: 100%; }
.orig-destroy form { margin-top: 10px; }
/* Ship / pick up pages */
.mini-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-items li { display: flex; align-items: center; gap: 10px; }
.mini-items .thumb { width: 40px; height: 40px; border-radius: 8px; }
.address { margin: 0 0 6px; line-height: 1.5; }
.choice-cards { display: grid; gap: 10px; }
.choice-cards legend { margin-bottom: 8px; }
.choice-cards label { display: flex; align-items: center; gap: 12px; border: 1.5px solid #CBD5D0; border-radius: 12px; padding: 12px 14px; font-weight: 400; cursor: pointer; }
.choice-cards label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice-cards input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.choice-cards label > span:not(.price) { display: grid; gap: 2px; flex: 1; }
.choice-cards .price { font-weight: 700; white-space: nowrap; }
.cost-box { background: #F6F8F7; border-radius: 12px; padding: 14px 16px; }
.cost-box h2 { margin-bottom: 6px; }
table.cost, table.charge-lines { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.cost td, table.charge-lines td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cost td:last-child, table.charge-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
table.cost tr.total td, table.charge-lines tr.total td { font-weight: 700; border-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; gap: 2px; padding-left: 30px; position: relative; color: var(--muted); }
.steps li::before { content: ''; position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CBD5D0; background: #fff; }
.steps li.done { color: var(--ink); }
.steps li.done::before { border-color: var(--green); background: var(--green); }
.zip-city { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr; gap: 10px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1.3fr 1fr; } }
.req h3, .charge h3 { margin: 0; font-size: 1.05rem; }
.req h3 a, .charge h3 a { color: inherit; text-decoration: none; }
.charge-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ship-done { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
/* Settings */
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.set-head h2 { margin: 0; }
.set-card p { margin: 10px 0 0; }
details.inline-zone { margin: 14px 0 0; text-align: left; }
.check.consent { align-items: flex-start; background: #F6F8F7; padding: 12px; border-radius: 10px; }
.check.consent input { margin-top: 2px; flex: none; }
label.p-other { display: none; }
form:has(select[name=fwd_country] option[value=XX]:checked) label.p-other { display: grid; }
.push-prompt { border-color: #CFE0D7; background: #F7FBF9; }
/* "Neue Post": panels that open with the chosen kind of delivery */
.new-post .panel { display: none; border-left: 3px solid var(--green-soft); padding-left: 14px; }
.new-post:has(input[name=kind][value=parcel]:checked) .p-parcel { display: flex; }
.new-post:has(input[name=delivery][value=einschreiben]:checked) .p-einschreiben,
.new-post:has(input[name=delivery][value=gelb]:checked) .p-gelb,
.new-post:has(input[name=delivery][value=karte]:checked) .p-karte { display: grid; }
.new-post:has(input[name=delivery][value=gelb]:checked) .p-frist { display: none; }

/* Address label and packing list */
.label-sheet { display: grid; gap: 18px; }
.label { width: 10cm; min-height: 6cm; border: 1.5px dashed #9AA8A2; border-radius: 6px; padding: .5cm .6cm; background: #fff; }
.label-from { font-size: 8pt; white-space: nowrap; color: #333; margin: 0 0 .5cm; border-bottom: 1px solid #333; padding-bottom: 2px; }
.label-to { font-size: 14pt; line-height: 1.35; margin: 0; font-weight: 600; }
.packlist { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.packlist ul { margin: 0 0 8px; padding-left: 0; list-style: none; line-height: 1.8; }
.inline-action { display: inline-block; margin: 8px 8px 0 0; }
.small-link { font-size: .85rem; color: var(--muted); }
@media print {
  .top, footer.legal, .no-print { display: none !important; }
  body { background: #fff; }
  main.wrap { padding: 0; }
  .label { border: 1px solid #000; }
  .packlist { border: 0; padding: 0; }
}

/* Team settings (Einstellungen) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.chips a { font-size: .88rem; padding: 6px 11px; border-radius: 999px; background: #EEF1EF; color: var(--ink); text-decoration: none; }
.chips a:hover { background: var(--green-soft); }
.settings-card { scroll-margin-top: 120px; }
.set-card[id] { scroll-margin-top: 120px; }
.set-fields { display: grid; gap: 18px; margin-top: 14px; }
.set-field .hint { margin-top: 6px; }
.set-field .hint .link { color: var(--green); font-weight: 600; }
.set-input { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.set-input input.num { max-width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.set-input .unit { color: var(--muted); font-size: .92rem; }
.money-in { position: relative; display: inline-flex; align-items: center; }
.money-in input { max-width: 130px; padding-right: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.money-in span { position: absolute; right: 12px; color: var(--muted); pointer-events: none; }
.field-err { color: #8a1f11; font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
ul.field-err { padding-left: 18px; }
.set-field.has-err input, td.has-err input, input[aria-invalid=true] { border-color: #C0392B; background: #FFF7F6; }
.switch-row { align-items: flex-start; }
.switch-row input { margin-top: 1px; flex: none; }
.set-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 10px; }
.set-grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 0; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table.porto-table { border-collapse: collapse; width: 100%; min-width: 360px; }
.porto-table th, .porto-table td { padding: 6px 8px 6px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: normal; }
.porto-table thead th { font-size: .85rem; color: var(--muted); font-weight: 700; }
.porto-table tbody th { font-weight: 500; font-size: .95rem; }
.porto-table .money-in input { width: 112px; max-width: none; padding-top: 9px; padding-bottom: 9px; }
.porto-table td.custom input { border-color: var(--green); background: var(--green-soft); }
.info-list { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: .95rem; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .info-list { grid-template-columns: 1fr; gap: 2px; } .info-list dd { margin-bottom: 10px; } }
.set-field > label:not(.check) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  table.porto-table { min-width: 0; }
  .porto-table th, .porto-table td { padding: 5px 6px 5px 0; }
  .porto-table tbody th { font-size: .86rem; line-height: 1.3; }
  .porto-table thead th { font-size: .72rem; }
  .porto-table .money-in input { width: 84px; padding: 8px 22px 8px 6px; font-size: .95rem; }
  .porto-table td { width: 90px; }
  .porto-table .money-in span { right: 8px; }
}
.sender-line { margin: 0 0 6px; font-size: .98rem; }
