/* Admin-Panel – Farben und Schriften wie im Shop, dunkle Seitenleiste */
:root {
  --bg: #F7F2F4;
  --surface: #FFFFFF;
  --tint: #FBF0F4;
  --ink: #3B2530;
  --ink-2: #5E4652;
  --muted: #86707B;
  --accent: #B24C75;
  --accent-hover: #963B61;
  --accent-soft: #F7DCE7;
  --line: #EADBE2;
  --line-soft: #F3E9EE;

  --side: #3A2430;
  --side-2: #4E3342;
  --side-text: #EADDE3;
  --side-muted: #B79FAB;
  --side-mark: #EC93B7;

  --ok: #3F6B3A;      --ok-soft: #E6EFE3;
  --warn: #8A5A06;    --warn-soft: #FCF1D8;
  --danger: #A12B2B;  --danger-soft: #FBE3E3;
  --off: #6B6167;     --off-soft: #EFEAEC;

  /* Stände im Ablauf – immer mit Text, nie nur Farbe */
  --st-neu: #8A5A06;        --st-neu-bg: #FCF1D8;
  --st-versendet: #2D5B87;  --st-versendet-bg: #E2EDF8;
  --st-zurueck: #65448A;    --st-zurueck-bg: #EEE6F7;
  --st-gebrannt: #A2461B;   --st-gebrannt-bg: #FBE6DB;
  --st-fertig: #3F6B3A;     --st-fertig-bg: #E6EFE3;

  --radius: 16px;
  --radius-s: 10px;
  --shadow-s: 0 1px 2px rgba(59, 37, 48, .05), 0 2px 10px rgba(59, 37, 48, .05);
  --shadow: 0 2px 6px rgba(59, 37, 48, .05), 0 12px 32px rgba(59, 37, 48, .09);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body.adm { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 0 0 14px; }
h2 small { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
code { font: .85em ui-monospace, Consolas, monospace; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Rahmen: Seitenleiste + Inhalt ---------- */

.adm-shell { min-height: 100vh; }
.adm-side {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px; background: var(--side); color: var(--side-text);
}
.adm-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.adm-brand:hover { color: #fff; }
.adm-logo { width: 34px; height: 34px; flex: none; }
.adm-brand-text { font-family: var(--font-display); font-size: .95rem; line-height: 1.15; white-space: nowrap; }
.adm-brand-text em { color: var(--side-mark); }
.adm-brand-text small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--side-muted); }

.adm-nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.adm-nav a, .adm-side-foot a, .adm-side-foot button {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  color: var(--side-text); text-decoration: none; font: inherit; font-weight: 500; white-space: nowrap;
  background: none; border: 0; cursor: pointer; transition: background .15s, color .15s;
}
.adm-nav a:hover, .adm-side-foot a:hover, .adm-side-foot button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-nav a[aria-current] { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--side-mark); }
.adm-nav .icon { color: var(--side-muted); }
.adm-nav a[aria-current] .icon, .adm-nav a:hover .icon { color: var(--side-mark); }
.adm-count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center; background: var(--side-mark); color: var(--side); font-size: .75rem; font-weight: 800;
}
/* Handy: Tab-Leiste mit Icon über dem Text */
@media (max-width: 959px) {
  .adm-nav a { position: relative; flex-direction: column; gap: 2px; padding: 7px 4px; font-size: .75rem; }
  .adm-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--side-mark); }
  .adm-nav .adm-count { position: absolute; top: 3px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; }
}
.adm-side-foot { display: flex; gap: 2px; }
.adm-side-foot form { margin: 0; }
.adm-side-foot a, .adm-side-foot button { color: var(--side-muted); padding: 9px; }
.adm-side-foot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 960px) {
  .adm-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .adm-side {
    height: 100vh; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
    gap: 26px; padding: 22px 14px 16px;
  }
  .adm-brand { margin: 0 6px; }
  .adm-nav { order: 0; display: flex; flex-direction: column; }
  .adm-side-foot { margin-top: auto; flex-direction: column; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .adm-side-foot a, .adm-side-foot button { padding: 9px 12px; width: 100%; }
  .adm-side-foot span { position: static; width: auto; height: auto; clip: auto; }
}

.adm-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; }
@media (min-width: 960px) { .adm-main { padding: 36px 40px 72px; } }

/* ---------- Seitenkopf ---------- */

.adm-back { margin: 0 0 12px; font-size: .9rem; }
.adm-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.adm-back a:hover { color: var(--accent); }
.adm-back .icon { width: 16px; height: 16px; }
.adm-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 20px; margin-bottom: 24px; }
.adm-page-head h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.4rem); line-height: 1.1; letter-spacing: -.01em; }
.adm-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.adm-lead { margin: 8px 0 0; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.adm-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-section-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }

/* ---------- Bausteine ---------- */

.adm-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-s); }
.adm-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.adm-card-head h2 { margin: 0; }
.adm-card h2 { display: flex; align-items: center; gap: 8px; }
.adm-card h2 .icon { color: var(--accent); }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adm-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .adm-grid--order { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
  .adm-grid--product { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .adm-grid--product > .adm-card:first-of-type { grid-row: span 2; }
}

.adm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  padding: 9px 18px; border: 1px solid transparent; border-radius: 12px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 14px rgba(178, 76, 117, .22); transition: background .15s, box-shadow .15s, transform .1s;
}
.adm-btn:hover { background: var(--accent-hover); color: #fff; }
.adm-btn:active { transform: translateY(1px); }
.adm-btn .icon { width: 18px; height: 18px; }
.adm-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-s); }
.adm-btn--ghost:hover { background: var(--tint); color: var(--accent); }
.adm-btn--sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.adm-btn--danger { background: var(--surface); color: var(--danger); border-color: #F0B8B8; box-shadow: none; }
.adm-btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.adm-danger { margin-top: 18px; }
.adm-danger form, .adm-transfer form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.adm-danger p, .adm-transfer p { margin-top: 2px; }
.adm-btn--block { width: 100%; }
.adm-link { background: none; border: 0; padding: 8px; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.adm-actions { display: flex; align-items: center; gap: 12px; }

.adm-field { display: grid; gap: 6px; margin-bottom: 14px; }
.adm-field > span { font-weight: 600; font-size: .9rem; }
.adm-field small { font-weight: 400; color: var(--muted); }
.adm-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .adm-field select, .adm-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit;
}
.adm-field textarea { resize: vertical; }
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .adm-row { grid-template-columns: 1fr 1fr; } }
.adm-checks { display: grid; gap: 8px; margin: 4px 0 14px; align-content: center; }
.adm-checks label { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.adm-checks input { width: 20px; height: 20px; accent-color: var(--accent); }

.adm-error { color: var(--danger); font-size: .875rem; }
.adm-alert { background: var(--danger-soft); color: #7A1F1F; border-radius: 10px; padding: 10px 14px; }
.adm-alert--test { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; background: var(--warn-soft); color: var(--warn); border: 1px solid #F2D49A; }
.adm-alert--test .icon { margin-top: 2px; }
.adm-alert--withdrawal { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #EBC3C3; }
.adm-alert--withdrawal .icon { margin-top: 2px; flex: none; }
.adm-alert--withdrawal p { margin: 4px 0 0; }
.adm-flash { display: flex; align-items: center; gap: 8px; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin: 0 0 18px; }
.adm-empty { color: var(--muted); }
.adm-empty-state { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.adm-empty-state .icon { width: 36px; height: 36px; color: var(--accent); }
.adm-empty-state p { margin: 0; }
.adm-meta { color: var(--muted); font-size: .875rem; margin: 0; }
.adm-photo { display: block; width: 200px; max-width: 100%; height: auto; border-radius: 12px; background: var(--tint); margin-bottom: 14px; }
.adm-note { background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; }
.adm-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; }
.adm-address { font-style: normal; margin-bottom: 8px; line-height: 1.6; }

.adm-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--tint); color: var(--accent); white-space: nowrap;
}
.adm-badge--paid { background: var(--ok-soft); color: var(--ok); }
.adm-badge--pending { background: var(--warn-soft); color: var(--warn); }
.adm-badge--expired, .adm-badge--cancelled { background: var(--off-soft); color: var(--off); }
.adm-pill { display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.adm-pill--danger { background: var(--danger-soft); color: var(--danger); }
.adm-pill--warn { background: var(--warn-soft); color: var(--warn); }
.adm-ups { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #5B3A1E; color: #FFC400; font-size: .7rem; font-weight: 700; vertical-align: middle; }

.adm-stage { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--st-bg); color: var(--st); white-space: nowrap; }
.adm-stage--neu, .adm-lane--neu { --st: var(--st-neu); --st-bg: var(--st-neu-bg); }
.adm-stage--versendet, .adm-lane--versendet { --st: var(--st-versendet); --st-bg: var(--st-versendet-bg); }
.adm-stage--zurueck, .adm-lane--zurueck { --st: var(--st-zurueck); --st-bg: var(--st-zurueck-bg); }
.adm-stage--gebrannt, .adm-lane--gebrannt { --st: var(--st-gebrannt); --st-bg: var(--st-gebrannt-bg); }
.adm-stage--fertig { --st: var(--st-fertig); --st-bg: var(--st-fertig-bg); }
.adm-progress { display: flex; gap: 3px; margin-top: 7px; }
.adm-progress i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.adm-progress i.is-on { background: var(--accent); }

/* ---------- Übersicht: Kennzahlen ---------- */

.adm-stats { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 1100px) { .adm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-stat { position: relative; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.adm-stat-icon { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.adm-stat-label { margin: 0; padding-right: 40px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.adm-stat-value { margin: 12px 0 4px; font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.adm-stat-sub { margin: 0; color: var(--ink-2); font-size: .85rem; }
.adm-stat--alert { border-color: #F2D49A; background: linear-gradient(180deg, #FFF9EC, #fff 70%); }
.adm-stat--alert .adm-stat-icon { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 420px) { .adm-stat { padding: 14px; } .adm-stat-icon { display: none; } .adm-stat-label { padding-right: 0; } }

/* ---------- Übersicht: Umsatz-Diagramm ---------- */

.adm-chart-card { margin-bottom: 28px; }
.adm-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 190px auto; column-gap: 12px; margin-top: 18px; }
.adm-chart-y { position: relative; min-width: 44px; }
.adm-chart-y span { position: absolute; right: 0; transform: translateY(50%); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-chart-plot { position: relative; }
.adm-chart-grid i { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft); }
.adm-chart-grid i:last-child { background: var(--line); }
.adm-chart-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; }
.adm-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: default; }
.adm-col:hover, .adm-col.is-active { background: rgba(178, 76, 117, .06); }
.adm-col:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-col-bar { display: block; width: min(16px, 72%); background: var(--accent); border-radius: 4px 4px 0 0; transition: filter .15s; }
.adm-col:hover .adm-col-bar, .adm-col.is-active .adm-col-bar { filter: brightness(1.15); }
.adm-col-label { position: absolute; left: 50%; transform: translateX(-50%); padding-bottom: 4px; font-size: .72rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.adm-chart-x { grid-column: 2; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; margin-top: 8px; }
.adm-chart-x span { display: flex; justify-content: center; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.adm-chart-x span:last-child { justify-content: flex-end; }
.adm-chart-tip {
  position: absolute; z-index: 3; transform: translate(-50%, -100%); padding: 7px 11px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.35; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow);
}
.adm-chart-tip strong { display: block; font-size: .98rem; }
.adm-chart-tip span, .adm-chart-tip small { display: block; color: #E6D6DE; }
.adm-table-toggle { margin-top: 16px; }
.adm-table-toggle summary { cursor: pointer; color: var(--accent); font-size: .9rem; font-weight: 600; width: max-content; }
.adm-mini-table { width: 100%; max-width: 480px; margin-top: 10px; border-collapse: collapse; font-size: .9rem; }
.adm-mini-table th, .adm-mini-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.adm-mini-table th { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.adm-mini-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Übersicht: offene Bestellungen nach Ablauf ---------- */

.adm-board { display: grid; gap: 14px; align-items: start; }
@media (min-width: 700px) { .adm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .adm-board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-lane { display: grid; gap: 10px; align-content: start; padding: 14px; background: var(--surface); border: 1px solid var(--line-soft); border-top: 3px solid var(--st); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.adm-lane-head { display: flex; align-items: center; gap: 10px; }
.adm-lane-head h3 { flex: 1; margin: 0; font-size: .95rem; }
.adm-lane-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--st-bg); color: var(--st); }
.adm-lane-icon .icon { width: 18px; height: 18px; }
.adm-lane-count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--st-bg); color: var(--st); font-size: .85rem; font-weight: 800; }
.adm-lane-empty { margin: 2px 0 4px; color: var(--muted); font-size: .9rem; }
.adm-task { position: relative; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: #FFFCFD; transition: border-color .15s, box-shadow .15s, transform .15s; }
.adm-task:hover { border-color: var(--line); box-shadow: var(--shadow-s); transform: translateY(-1px); }
.adm-task-link { font-weight: 650; color: var(--ink); text-decoration: none; }
.adm-task-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.adm-task-link:focus-visible { outline: none; }
.adm-task:has(.adm-task-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-task-meta { margin: 2px 0 0; color: var(--ink-2); font-size: .85rem; }
.adm-task-date { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--ink-2); font-size: .85rem; }
.adm-task-date .icon { width: 16px; height: 16px; color: var(--muted); }
.adm-task-action { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin: 8px 6px 0 0; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: .8rem; font-weight: 600; text-decoration: none; }
.adm-task-action:hover { background: var(--accent-soft); color: var(--accent-hover); }
.adm-task-action .icon { width: 15px; height: 15px; }
.adm-task--danger { border-color: #F0B8B8; background: #FFF7F7; }
.adm-task--warn { border-color: #F2D49A; background: #FFFBF1; }

/* ---------- Bestellungen: Liste ---------- */

.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 16px; }
.adm-search { position: relative; flex: 1 1 280px; max-width: 460px; margin: 0; }
.adm-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.adm-search input { width: 100%; min-height: 42px; padding: 9px 14px 9px 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.adm-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.adm-tabs a { padding: 6px 14px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.adm-tabs a:hover { background: var(--tint); color: var(--ink); }
.adm-tabs a[aria-current] { background: var(--ink); color: #fff; }

.adm-table-wrap { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th, .adm-table td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.adm-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #FCF8FA; font-weight: 600; }
.adm-table tbody tr { transition: background .12s; }
.adm-table tbody tr:hover { background: #FFFAFC; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table td small { display: block; color: var(--muted); font-size: .8rem; }
.adm-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-table tr.is-off { opacity: .55; }
.adm-table td .adm-badge + .adm-badge { margin-left: 4px; }
.adm-group th { padding-top: 10px; padding-bottom: 10px; font-size: .85rem; letter-spacing: 0; text-transform: none; }
.adm-person { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.adm-person strong { display: block; font-weight: 600; }
.adm-person:hover strong { color: var(--accent); }
.adm-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hover); font-size: .85rem; font-weight: 700; }
.adm-thumb { width: 64px; }
.adm-thumb img { display: block; width: 48px; height: 60px; object-fit: contain; background: var(--tint); border-radius: 8px; }

/* Tabellen auf dem Handy als Karten */
@media (max-width: 720px) {
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td, .adm-group th { display: block; }
  .adm-table tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .adm-table td { border: 0; padding: 2px 0; }
  .adm-table tr.adm-group { padding: 0; }
  .adm-table td small { display: inline; margin-left: 6px; }
  .adm-table td[data-label]:not([data-label=Name]):not([data-label=Kunde])::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .adm-table td[data-label=Kunde] { margin-bottom: 6px; }
  .adm-table td[data-label=Kunde] small { display: block; margin: 0; }
  .adm-table .num { text-align: left; }
  .adm-table--products tr { padding-left: 80px; min-height: 90px; }
  .adm-table--products .adm-thumb { position: absolute; left: 16px; top: 14px; }
}

/* ---------- Bestellung: Ablauf ---------- */

.adm-flow { margin-bottom: 18px; }
.adm-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.adm-steps li { position: relative; }
.adm-steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; background: var(--line); border-radius: 1px; }
.adm-steps li.is-done::after { background: var(--accent); }
.adm-steps button { width: 100%; display: grid; justify-items: center; gap: 8px; padding: 4px 4px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.adm-steps button:hover { background: var(--tint); }
.adm-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-step-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; }
.adm-step-dot .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.adm-steps .is-done .adm-step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.adm-steps .is-current .adm-step-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.adm-step-label { font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.25; }
.adm-steps .is-current .adm-step-label { color: var(--ink); }
.adm-field--note { margin: 14px 0 10px; }
@media (max-width: 560px) {
  .adm-step-dot { width: 30px; height: 30px; font-size: .85rem; }
  .adm-steps li:not(:last-child)::after { top: 19px; left: calc(50% + 19px); right: calc(-50% + 19px); }
  .adm-step-label { font-size: .72rem; }
}

/* ---------- Bestellung: Box ---------- */

.adm-items { list-style: none; padding: 0; margin: 0; }
.adm-items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.adm-items-swap { color: var(--accent, #B24C75); }
.adm-swap { margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.adm-swap summary { cursor: pointer; font-weight: 600; }
.adm-swap summary small { font-weight: 400; color: var(--muted); }
.adm-swap form { display: grid; gap: 10px; margin-top: 10px; }
.adm-swap select { width: 100%; }
.adm-swap .adm-check { display: flex; gap: 8px; align-items: center; }
.adm-items img, .adm-items-ph { width: 40px; height: 50px; flex: none; object-fit: contain; background: var(--tint); border-radius: 8px; }
.adm-items-name { flex: 1; }
.adm-items-name small { display: block; color: var(--muted); font-size: .8rem; }
.adm-items-sum { white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-subtitle { margin: 20px 0 10px; font-size: .9rem; color: var(--ink-2); }
.adm-color-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.adm-color-grid li { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line-soft); border-radius: 10px; font-size: .88rem; line-height: 1.25; }
.adm-color-grid small { display: block; color: var(--muted); font-size: .75rem; }
.adm-swatch { width: 34px; height: 34px; flex: none; border-radius: 6px; overflow: hidden; background: var(--c); }
.adm-swatch img { display: block; width: 100%; height: 100%; }

/* ---------- Bestellung: Versand (UPS) ---------- */

.adm-ship { margin-top: 18px; }
.adm-ship-grid { display: grid; gap: 8px 32px; }
@media (min-width: 900px) { .adm-ship-grid { grid-template-columns: 1fr 1fr; } }
.adm-ship h3 { margin: 6px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adm-ship-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.adm-ship-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); }
.adm-ship-row.is-done .adm-ship-dot { border: 0; background: var(--ok-soft); color: var(--ok); }
.adm-ship-dot .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.adm-ship-text { flex: 1; min-width: 180px; }
.adm-ship-text small { display: block; color: var(--muted); }
.adm-ship-actions { display: flex; align-items: center; gap: 4px; }
.adm-ship-actions form { margin: 0; }
.adm-ship-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.adm-pack { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.adm-pack label { display: flex; align-items: center; gap: 6px; }
.adm-pack input { width: 4.2em; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; text-align: right; }

/* ---------- Produkte ---------- */

.adm-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.adm-gallery-item { display: grid; gap: 4px; justify-items: center; font-size: .8rem; color: var(--muted); }
.adm-gallery-item img { width: 80px; height: 100px; object-fit: contain; background: var(--tint); border-radius: 8px; }
.adm-gallery-item span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Anmeldung ---------- */

.adm--bare {
  background:
    radial-gradient(1100px 560px at 8% -12%, #F7DCE7 0%, transparent 60%),
    radial-gradient(900px 520px at 110% 112%, #EFE3F4 0%, transparent 55%),
    var(--bg);
}
.adm--bare .adm-main { min-height: 100vh; max-width: none; display: grid; place-items: center; padding: 24px 16px; }
.adm-login { width: min(400px, 100%); display: grid; gap: 18px; }
.adm-login-brand { display: flex; justify-content: center; margin: 0; }
.adm-login-brand img { display: block; width: min(320px, 100%); height: auto; }
.adm-login .adm-card { padding: 26px; box-shadow: var(--shadow); }
.adm-login h1 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; }
.adm-login-back { margin: 0; text-align: center; font-size: .9rem; }
.adm-login-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.adm-login-back a:hover { color: var(--accent); }
.adm-login-back .icon { width: 16px; height: 16px; }

.adm-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-head-actions form { margin: 0; }

/* Bestand */
.adm-stock-sync { margin: 0 0 12px; }
.adm-stock-input { width: 90px; text-align: right; padding: 6px 8px; border: 1px solid #E3D3DA; border-radius: 8px; font: inherit; }
.adm-stock-hint { color: #86707B; font-size: .875rem; margin: 10px 0 0; }
.adm-stock-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, #F7F2F4 30%); }
.adm-sumup { margin: 0 0 16px; }
.adm-sumup-title { margin: 0 0 6px; font-size: 1rem; }
.adm-sumup-text { margin: 0; color: var(--ink-2); }
.adm-sumup-error { color: var(--danger); font-weight: 600; }
.adm-sumup-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 12px; }
.adm-sumup-row label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; }
.adm-sumup-row input { font: inherit; font-weight: 400; padding: 6px 8px; border: 1px solid #E3D3DA; border-radius: 8px; background: var(--surface); max-width: 100%; }
.adm-sumup-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: .875rem; }
.adm-sumup-log span { color: #86707B; margin-right: 6px; }

/* Posteingang und Nachrichtenverlauf */
.adm-messages { margin-top: 18px; }
.adm-inbox-alert { margin: 0 0 18px; }
.adm-inbox { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden; }
.adm-inbox li + li { border-top: 1px solid var(--line-soft); }
.adm-inbox a { display: grid; gap: 3px; padding: 14px 18px; color: var(--ink-2); text-decoration: none; transition: background .12s; }
.adm-inbox a:hover { background: #FFFAFC; }
.adm-inbox li.is-new a { box-shadow: inset 3px 0 0 var(--accent); }
.adm-inbox-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.adm-inbox-from { color: var(--ink); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-inbox li.is-new .adm-inbox-from, .adm-inbox li.is-new .adm-inbox-subject { font-weight: 700; }
.adm-inbox-top time { flex: none; color: var(--muted); font-size: .85rem; }
.adm-inbox-subject { color: var(--ink); overflow-wrap: anywhere; }
.adm-inbox-snippet { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm-inbox-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.adm-inbox-order { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; }
.adm-inbox-order .icon { width: 14px; height: 14px; }
.adm-inbox-status { margin-top: 14px; }
a.adm-badge { text-decoration: none; }
.adm-lead .adm-badge .icon { width: 14px; height: 14px; vertical-align: -2px; }

.adm-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adm-msg { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; background: var(--surface); min-width: 0; }
.adm-msg--out { background: var(--tint); border-color: var(--accent-soft); margin-left: clamp(0px, 6vw, 48px); }
.adm-msg.is-new { border-color: var(--accent); }
.adm-msg.is-current { box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.adm-msg-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.adm-msg-who small { color: var(--muted); }
.adm-msg-head time { color: var(--muted); font-size: .85rem; }
.adm-msg-subject { margin: 4px 0 10px; font-weight: 600; color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.adm-msg-body { line-height: 1.55; overflow-wrap: anywhere; }
.adm-msg-quote { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.adm-msg-quote summary { cursor: pointer; color: var(--accent); font-weight: 600; width: max-content; }
.adm-msg-quote div { margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--line); overflow-wrap: anywhere; }
.adm-msg-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.adm-msg-image img { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--bg); }
.adm-msg-file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.adm-msg-file small { color: var(--muted); }
.adm-msg-file .icon { width: 16px; height: 16px; flex: none; color: var(--accent); }
.adm-msg-file.is-off { color: var(--muted); border-style: dashed; }
.adm-inbox-log { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.adm-inbox-log summary { cursor: pointer; color: var(--accent); font-weight: 600; width: max-content; max-width: 100%; }
.adm-inbox-log ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.adm-inbox-log li { overflow-wrap: anywhere; }
.adm-inbox-log span { color: var(--ink-2); }
.adm-inbox-log b { font-weight: 600; color: var(--ink-2); margin-left: 4px; }

/* Passwort ändern */
.adm-password { max-width: 520px; }
.adm-password-note { margin-top: 16px; }

/* UPS-Sendungsstatus */
.adm-pill--ok { background: var(--ok-soft); color: var(--ok); }
.adm-track-form { margin: 0 0 0 auto; }
.adm-ship-text small.adm-track { margin-top: 2px; font-weight: 600; color: var(--ink-2); }
.adm-ship-text small.adm-track--ok { color: var(--ok); }
.adm-ship-text small.adm-track--warn { color: var(--warn); }
.adm-ship-text small.adm-track--danger { color: var(--danger); }

/* ---------- Gewinn und Kosten ---------- */

.adm-profit-strip { margin-bottom: 10px; }
.adm-strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.adm-strip-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.adm-strip-head .icon { width: 16px; height: 16px; }
.adm-stat--link { display: block; color: inherit; text-decoration: none; }
.adm-stat--link > span:not(.adm-stat-icon) { display: block; }
.adm-stat--link:hover { border-color: var(--accent-soft); color: inherit; }
.adm-stat--draft { border: 1px dashed #E2B961; background: #FFFCF4; }
.adm-stat--draft .adm-stat-value { color: var(--ink-2); }
.adm-stat--draft .adm-stat-icon { background: var(--warn-soft); color: var(--warn); }
.adm-stat-sub strong { color: var(--warn); }

.adm-tabs--wrap { flex-wrap: wrap; }
.adm-range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--muted); font-size: .9rem; }
.adm-range input { min-height: 38px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.adm-range input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-range button[aria-current] { border-color: var(--ink); }

.adm-gaps { margin-bottom: 18px; border-color: #F2D49A; background: #FFFBF1; }
.adm-gaps h2 .icon { color: var(--warn); }
.adm-gaps ul { margin: 8px 0 14px; padding-left: 20px; }
.adm-gaps li { margin: 3px 0; }

.adm-grid--profit { margin-bottom: 18px; }
@media (min-width: 1000px) { .adm-grid--profit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.adm-grid--profit .adm-chart-card { margin-bottom: 0; }
.adm-calc { width: 100%; border-collapse: collapse; }
.adm-calc th, .adm-calc td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; vertical-align: top; }
.adm-calc td { padding-left: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-calc small { display: block; margin-top: 1px; color: var(--muted); font-size: .8rem; }
.adm-calc .is-sum th, .adm-calc .is-sum td { font-weight: 650; border-bottom-color: var(--line); }
.adm-calc .is-total th, .adm-calc .is-total td { padding-top: 14px; border-bottom: 0; font-weight: 700; font-size: 1.05rem; }
.adm-calc .is-draft td { color: var(--ink-2); }
.adm-calc .adm-pill { display: block; width: fit-content; margin: 6px 0 0 auto; }

.adm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: .8rem; }
.adm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.adm-legend i { width: 10px; height: 10px; border-radius: 3px; }
.adm-legend .is-net, .adm-chart--profit .adm-col-bar { background: #E7B3C8; }
.adm-legend .is-db, .adm-chart--profit .adm-col-bar--db { background: var(--accent); }
.adm-chart--profit .adm-chart-cols, .adm-chart--profit .adm-chart-x { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.adm-chart--profit .adm-col { gap: 2px; }
.adm-chart--profit .adm-col-bar { width: min(10px, 42%); }
.adm-chart--profit .adm-col.is-peak { background: rgba(178, 76, 117, .07); }
.adm-chart--profit .adm-chart-x span { justify-content: center; }
.adm-mini-table--wide { max-width: none; }

.adm-profit-orders { margin-bottom: 18px; }
.adm-profit-orders summary { cursor: pointer; list-style-position: outside; }
.adm-profit-orders summary h2 { display: inline-flex; margin: 0; }
.adm-profit-orders[open] summary { margin-bottom: 8px; }
.adm-table-scroll { overflow-x: auto; }
.adm-table-scroll td, .adm-table-scroll th { white-space: nowrap; }
.adm-profit-note { max-width: 860px; }

.adm-grid--costs { margin-bottom: 28px; }
@media (min-width: 1000px) { .adm-grid--costs { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 560px) { .adm-row--3 { grid-template-columns: 1.3fr 1fr 1fr; } }
.adm-cost-hint { margin: 0 0 14px; }
.adm-cost-list { margin-bottom: 28px; }
.adm-cost-list .adm-section-title small { font-family: var(--font-body); font-size: .85rem; margin-left: 6px; }
.adm-cost-actions { text-align: right; white-space: nowrap; }
.adm-cost-actions form { display: inline; margin: 0; }
.adm-link--danger { color: var(--danger); }
.adm-rates { width: 100%; max-width: 640px; border-collapse: collapse; margin: 8px 0 12px; }
.adm-rates th, .adm-rates td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.adm-rates thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.adm-rates tbody th { font-weight: 500; }
.adm-rates tbody th .adm-error { display: block; font-weight: 400; }
.adm-rates tbody th small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; font-weight: 400; }
.adm-rate-input { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.adm-rate-input input { width: 96px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-align: right; }
.adm-rate-input input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-rates input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }

/* Ausgaben eintragen: groß und einfach */
.adm-easy { max-width: 760px; margin-bottom: 28px; font-size: 1.05rem; }
.adm-easy form { display: grid; gap: 22px; }
.adm-easy-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.adm-easy-step legend, .adm-easy-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; padding: 0; font-weight: 700; font-size: 1.1rem; }
.adm-easy-step small, .adm-easy-label small { font-weight: 400; font-size: .9rem; color: var(--muted); }
.adm-easy-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .9rem; transform: translateY(-1px); }
.adm-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .adm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-tile { position: relative; cursor: pointer; }
.adm-tile input { position: absolute; opacity: 0; pointer-events: none; }
.adm-tile span { display: grid; gap: 2px; min-height: 72px; align-content: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .12s, background .12s; }
.adm-tile strong { font-size: 1.05rem; }
.adm-tile small { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.adm-tile:hover span { border-color: var(--accent-soft); background: var(--tint); }
.adm-tile input:checked + span { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.adm-tile input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-easy-amount { display: flex; align-items: center; gap: 10px; }
.adm-easy-amount input { width: 200px; max-width: 100%; min-height: 56px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.5rem; font-weight: 650; text-align: right; color: var(--ink); }
.adm-easy-amount span { font-size: 1.5rem; font-weight: 650; }
.adm-easy-date { min-height: 52px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.adm-easy-amount input:focus, .adm-easy-date:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.adm-easy-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; cursor: pointer; }
.adm-easy-check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--accent); }
.adm-easy-check small { display: block; color: var(--muted); font-size: .88rem; }
.adm-easy-more summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.adm-easy-more summary small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.adm-easy-more[open] summary { margin-bottom: 14px; }
.adm-easy .adm-error { margin: 8px 0 0; font-weight: 600; }
.adm-btn--big { justify-self: start; min-height: 56px; padding: 12px 30px; font-size: 1.1rem; }
@media (max-width: 559px) { .adm-btn--big { width: 100%; } }

.adm-exp-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.adm-exp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.adm-exp:last-child { border-bottom: 0; }
.adm-exp.is-off { opacity: .55; }
.adm-exp-main { flex: 1 1 200px; min-width: 0; }
.adm-exp-main strong { display: block; }
.adm-exp-main small { color: var(--muted); }
.adm-exp-amount { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.adm-exp-amount small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.adm-exp-actions { display: flex; gap: 4px; }
.adm-exp-actions form { margin: 0; }

.adm-month-list { list-style: none; margin: 14px 0 0; padding: 0; }
.adm-month-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.adm-month-list form { display: flex; align-items: center; gap: 8px; margin: 0; }
.adm-month-name { font-weight: 600; }
.adm-month-list .adm-pill { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.adm-month-list .adm-pill .icon { width: 14px; height: 14px; }
#monate { margin-bottom: 18px; }
.adm-rates-card summary { cursor: pointer; }
.adm-rates-card summary h2 { display: inline-flex; flex-wrap: wrap; margin: 0; }
.adm-rates-card[open] summary { margin-bottom: 10px; }

/* Scannen im Laden */
.adm-scan { display: grid; gap: 14px; margin-bottom: 18px; }
.adm-scan-modes { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-scan-modes label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s, 10px); cursor: pointer; }
.adm-scan-modes label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.adm-scan-modes input { accent-color: var(--accent); }
.adm-scan-field input { font: 600 22px/1.3 ui-monospace, Consolas, monospace; padding: 12px 14px; }
.adm-scan-result { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-s, 10px); font-size: 16px; }
.adm-scan-result strong { font-size: 20px; }
.adm-scan-result.is-ok { background: #e8f4ea; border: 1px solid #9cc9a4; }
.adm-scan-result.is-warn { background: #fff4e0; border: 1px solid #e6c27a; }
.adm-scan-result.is-error { background: #fbe9e7; border: 1px solid #e3a49c; }
.adm-scan-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.adm-scan-log li { display: grid; grid-template-columns: 90px 34px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.adm-scan-log li.is-undone { opacity: .5; text-decoration: line-through; }
.adm-scan-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-scan-delta { font-weight: 700; }
.adm-scan-left { color: var(--muted); }
@media (max-width: 640px) { .adm-scan-log li { grid-template-columns: 70px 28px 1fr; } .adm-scan-left, .adm-scan-log li > :last-child { grid-column: 3; } }
/* Barcode-Etiketten */
.adm-barcode-tools { align-items: center; margin-bottom: 12px; }
.adm-barcode-search { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; min-width: 200px; }
.adm-barcode-qty { width: 72px; text-align: right; }
