/* ===== Moderni Control Plane ===== */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e6e9f0;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --ok: #067647; --ok-bg: #e7f6ef;
  --warn: #b54708; --warn-bg: #fef3e6;
  --err: #b42318; --err-bg: #fdecea;
  --sidebar: #0c1222;
  --sidebar-ink: #94a3b8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px -6px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }

/* ===== Shell / Sidebar ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #0c1222 0%, #111a33 100%);
  display: flex; flex-direction: column;
  padding: 20px 14px;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 2px 8px 20px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -2px rgba(99, 102, 241, .55);
}
.brand-mark.big { width: 52px; height: 52px; font-size: 28px; border-radius: 14px; margin: 0 auto; }
.brand-name { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand-sub { color: var(--sidebar-ink); font-size: 11.5px; margin-top: -2px; }
.sidebar nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px;
  color: var(--sidebar-ink); padding: 9px 12px; border-radius: 9px;
  font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s;
}
.sidebar nav a svg { width: 17px; height: 17px; fill: currentColor; opacity: .85; flex-shrink: 0; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #e2e8f0; }
.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, .22), rgba(124, 58, 237, .12));
  color: #fff; box-shadow: inset 2px 0 0 var(--brand);
}
.nav-section {
  color: #475569; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; padding: 16px 12px 6px;
}
.sidebar-foot { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; align-items: center; gap: 10px; flex: 1; padding: 8px; border-radius: 10px; }
.user-chip:hover, .user-chip.active { background: rgba(255,255,255,.07); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #334155, #475569);
  color: #e2e8f0; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.user-name { color: #e2e8f0; font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-role { color: var(--sidebar-ink); font-size: 11px; }
.logout { padding: 8px; border-radius: 8px; color: var(--sidebar-ink); }
.logout:hover { background: rgba(255,255,255,.07); color: #fca5a5; }
.logout svg { width: 17px; height: 17px; fill: currentColor; display: block; }

/* ===== Content ===== */
.content { flex: 1; padding: 28px 34px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.sub { color: var(--muted); margin: 3px 0 0; font-size: 13.5px; }
.head-badges { display: flex; gap: 8px; align-items: center; padding-top: 8px; }
.flash {
  background: var(--brand-soft); border: 1px solid #dcdffe; color: #3730a3;
  padding: 10px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500;
}
.notice { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 13.5px; }
.notice.warn { background: var(--warn-bg); border: 1px solid #fcd9b0; color: var(--warn); }

/* ===== KPI Cards ===== */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.kpi {
  background: var(--card); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.kpi.accent {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
}
.kpi.accent .kpi-label { color: #ddd6fe; }
.kpi.accent .kpi-value { color: #fff; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.kpi-value { font-size: 26px; font-weight: 750; letter-spacing: -.5px; margin-top: 4px; }

/* ===== Cards & Tables ===== */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 18px;
  overflow-x: auto;
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-head h2 { margin: 0; font-size: 15.5px; font-weight: 700; }
.card-total { text-align: right; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 10px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; }
.tbl th.num { text-align: right; }
.sort-h { color: inherit; display: inline-flex; align-items: center; gap: 5px;
  font: inherit; text-transform: inherit; letter-spacing: inherit; white-space: nowrap; }
.sort-h:hover { color: var(--brand); }
.sort-h .sort-arr { font-size: 9px; opacity: .35; }
.sort-h.active { color: var(--brand); }
.sort-h.active .sort-arr { opacity: 1; }
th.num .sort-h { flex-direction: row-reverse; }
.rowlink { cursor: pointer; transition: background .12s; }
.rowlink:hover { background: #f8f9fe; }
.row-active { background: var(--brand-soft); }
.row-inactive { opacity: .5; }
.subrow td { padding-top: 0; background: #fafbfe; }
.empty { color: var(--muted); text-align: center; padding: 26px !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.truncate { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-title { font-weight: 550; }
.link { font-weight: 600; font-size: 13px; }

/* ===== Badges & Chips ===== */
.badge {
  display: inline-block; padding: 2.5px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; background: #f1f3f9; color: #475069;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.qty { font-weight: 700; }
.wh-breakdown { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.wh-tag { font-size: 11px; font-weight: 600; color: #475069; background: #eef0ff;
  border: 1px solid #dcdffe; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.qty.zero { color: var(--err); }
.qty.low { color: var(--warn); }
.lock { background: #fbf9ff; }
.chip {
  display: inline-block; margin: 1.5px 3px 1.5px 0; padding: 2px 8px;
  border-radius: 7px; font-size: 11px; font-weight: 600;
  background: #f1f3f9; color: #475069; border: 1px solid var(--line);
}
.chip.st-active { background: var(--ok-bg); color: var(--ok); border-color: #c6ebd8; }
.chip.st-error { background: var(--err-bg); color: var(--err); border-color: #f6c9c4; }
.chip.st-pending { background: var(--warn-bg); color: var(--warn); border-color: #f8ddba; }
.chip.st-excluded, .chip.st-inactive { opacity: .55; }

/* Plattform-Farben */
.pf { font-weight: 650; white-space: nowrap; }
.pf::before { content: "●"; margin-right: 6px; font-size: 10px; vertical-align: 1px; }
.pf-ebay::before { color: #e53238; }
.pf-kaufland::before { color: #e10915; }
.pf-amazon_spapi::before { color: #ff9900; }
.pf-shopify::before { color: #96bf48; }
.pf-woocommerce::before { color: #7f54b3; }
.pf-mirakl::before { color: #6366f1; }
.pf-email::before { color: #0ea5e9; }
.pf-conrad::before { color: #005ca9; }
.pf-xxxlutz::before { color: #e2001a; }
.pf-netto_sftp::before { color: #ffcc00; }
.pf-idealo_feed::before { color: #0a71eb; }

/* ===== Filter / Forms ===== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
input, select, button {
  font: inherit; border-radius: 10px; border: 1px solid var(--line);
  padding: 9px 13px; background: #fff; color: var(--ink); outline: none;
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .13); }
input[type="search"] { min-width: 280px; }

/* Marken-Filter: Aufklapp-Menü mit Checkboxen (natives <details>) */
.brand-drop { position: relative; }
.brand-drop > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; white-space: nowrap;
}
.brand-drop > summary::-webkit-details-marker { display: none; }
.brand-drop[open] > summary { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.13); }
.brand-drop .caret { color: var(--muted); font-size: 11px; transition: transform .15s; }
.brand-drop[open] .caret { transform: rotate(180deg); }
.brand-badge {
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-panel {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0;
  min-width: 220px; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px;
}
.brand-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 500;
}
.brand-opt:hover { background: var(--brand-soft); }
.brand-opt input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.brand-opt.sub { padding-left: 32px; }
.caret-cell { display: inline-block; color: var(--muted); font-size: 11px;
  transition: transform .15s; width: 12px; }
tr.grp-open .caret-cell { transform: rotate(90deg); }
tr.country-row td { background: #fafbfe; }
.brand-opt .opt-count { margin-left: auto; color: var(--muted); font-size: 12px;
  background: #f1f3f9; padding: 0 7px; border-radius: 999px; min-width: 20px; text-align: center; }
.brand-opt.is-empty { opacity: .5; }
.brand-opt.is-empty .opt-count { background: transparent; }
button {
  background: var(--brand); border-color: var(--brand); color: #fff;
  font-weight: 650; cursor: pointer; transition: filter .15s;
}
button:hover { filter: brightness(1.08); }
button.danger { background: #fff; border-color: #f2c1bd; color: var(--err); margin-top: 10px; }
button.danger:hover { background: var(--err-bg); }
.small-btn { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.mini { padding: 6px 9px; font-size: 13px; border-radius: 8px; width: 90px; }
.mini.num { text-align: right; }
.mini.wide { width: 230px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.inline-form.wrap { flex-wrap: wrap; }
.inline-form input, .inline-form select { flex-shrink: 1; }
.stack-form { display: flex; flex-direction: column; gap: 13px; max-width: 340px; }
.stack-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; color: #344054; }
.form-actions { padding-top: 14px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; color: var(--muted); padding: 6px; }
.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; align-items: start; }
.roles-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .grid-2, .roles-grid { grid-template-columns: 1fr; } }

/* ===== Rollen-Editor: Toggle-Switches ===== */
.perm-list { display: flex; flex-direction: column; }
.perm-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 11px 4px; border-bottom: 1px solid #f0f2f7; cursor: pointer;
}
.perm-row:last-child { border-bottom: none; }
.perm-row.sensitive .perm-label::after {
  content: "sensibel"; margin-left: 8px; font-size: 10px; font-weight: 700;
  color: var(--warn); background: var(--warn-bg); padding: 1.5px 7px; border-radius: 999px;
  vertical-align: 1.5px; letter-spacing: .4px; text-transform: uppercase;
}
.perm-label { font-weight: 650; font-size: 13.5px; display: block; }
.perm-desc { color: var(--muted); font-size: 12px; display: block; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch.small { width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: #d6dae3; transition: background .18s;
}
.slider::before {
  content: ""; position: absolute; height: 18px; width: 18px;
  left: 3px; top: 3px; border-radius: 50%; background: #fff;
  transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch.small .slider::before { height: 14px; width: 14px; }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch.small input:checked + .slider::before { transform: translateX(16px); }
.hint-card { text-align: center; padding: 40px 26px; }

/* ===== Lifecycle-KPIs + Segmente + Ship-Form ===== */
a.kpi-link { display: block; color: inherit; transition: transform .12s, box-shadow .12s; }
a.kpi-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(16,24,40,.18); }
.kpi-warn .kpi-value { color: var(--warn); }
.kpi-err .kpi-value { color: var(--err); }
.kpi-secondary .kpi { padding: 12px 16px; }
.kpi-secondary .kpi-value { font-size: 20px; }
.seg-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.seg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 650; font-size: 13.5px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.seg:hover { border-color: var(--brand); color: var(--ink); }
.seg.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg-count {
  background: rgba(0,0,0,.08); padding: 1px 8px; border-radius: 999px; font-size: 12px;
}
.seg.active .seg-count { background: rgba(255,255,255,.25); }
.seg-count.hot { background: var(--err-bg); color: var(--err); }
.seg.active .seg-count.hot { background: rgba(255,255,255,.25); color: #fff; }
.range-bar { align-items: center; }
.range-label-lead { font-weight: 700; font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; margin-right: 2px; }
.range-bar input[type="date"] { padding: 7px 10px; }
.ship-form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
.ship-form-head { font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.push-check { display: flex; gap: 8px; align-items: center; margin-top: 10px;
  font-size: 13px; color: var(--muted); cursor: pointer; }

/* ===== Margen-Tabelle ===== */
.margin-tbl td { padding: 7px 6px; font-size: 13.5px; }
.margin-tbl .row-strong td { font-weight: 750; border-top: 2px solid var(--line); }

/* ===== Checkliste (Marge, Rechte) ===== */
.checklist { list-style: none; padding: 0; margin: 8px 0 0; }
.checklist li { padding: 6px 2px; color: var(--muted); border-bottom: 1px solid #f0f2f7; }
.checklist li:last-child { border-bottom: none; }
.checklist li.ok { color: var(--ok); font-weight: 550; }

/* ===== Rohdaten ===== */
details.raw summary { cursor: pointer; font-weight: 650; color: var(--muted); }
details.raw pre {
  background: #0c1222; color: #c9d4f0; padding: 16px; border-radius: 10px;
  overflow-x: auto; font-size: 12px; line-height: 1.55;
}

/* ===== Login ===== */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(99, 102, 241, .28), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(124, 58, 237, .22), transparent 55%),
    linear-gradient(160deg, #0c1222 0%, #131c3a 100%);
}
.login-wrap { width: 100%; max-width: 380px; padding: 24px; }
.login-card {
  background: rgba(255, 255, 255, .97); border-radius: 20px; padding: 34px 32px 30px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
}
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand h1 { margin: 14px 0 2px; font-size: 21px; letter-spacing: -.3px; }
.login-brand p { color: var(--muted); margin: 0; font-size: 13px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; color: #344054; }
.login-card button { padding: 11px; font-size: 15px; margin-top: 4px; }
.login-error {
  background: var(--err-bg); color: var(--err); border: 1px solid #f6c9c4;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px;
}
.login-foot { text-align: center; color: #64748b; font-size: 12px; margin-top: 18px; }

/* ===== Sprachumschalter (Sidebar) ===== */
.lang-switch { display: flex; gap: 4px; padding: 8px 4px 10px;
  margin-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.lang-opt { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--sidebar-ink); background: rgba(255,255,255,.04); }
.lang-opt:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }
.lang-opt.active { background: var(--brand); color: #fff; }

/* ===== Mobile: Topbar + Burger + Off-Canvas-Sidebar ===== */
.nav-toggle-cb { position: absolute; opacity: 0; pointer-events: none; }
.topbar { display: none; }
.nav-overlay { display: none; }
.topbar-brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.burger { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.08); border: none; padding: 0; }
.burger svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 820px) {
  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 60; padding: 10px 14px;
    background: linear-gradient(180deg, #0c1222 0%, #111a33 100%); color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }
  .topbar-brand .brand-mark { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 70; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 6px 0 30px rgba(0,0,0,.4);
  }
  .nav-toggle-cb:checked ~ .shell .sidebar { transform: translateX(0); }
  .nav-toggle-cb:checked ~ .shell .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(4,8,20,.55); backdrop-filter: blur(1px);
  }
  .content { padding: 16px 14px 48px; }
  .page-head h1 { font-size: 19px; }
  input[type="search"] { min-width: 0; width: 100%; }
  .filter-bar { gap: 8px; }
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .kpi-value { font-size: 22px; }
}

/* ===== Feedback-Runde 24.07.: Sidebar-Scroll, Touch, Mobile-Karten ===== */
/* Nav scrollt bei kleiner Höhe — Sprachwahl + Benutzer bleiben unten sichtbar */
.sidebar nav { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.burger { width: 44px; height: 44px; }

/* Umsatz neutral (Violett = Auswahl/Primäraktion, nicht Umsatz) */
.kpi.accent { background: var(--card); border: 1px solid var(--line); }
.kpi.accent .kpi-label { color: var(--muted); }
.kpi.accent .kpi-value { color: var(--ink); }

/* Mobile: aktionsrelevante Tabellen als Karten statt Quer-Scroll */
@media (max-width: 640px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody { display: block; }
  .tbl.cards tr { display: block; padding: 10px 2px; border-bottom: 1px solid var(--line); }
  .tbl.cards tr:last-child { border-bottom: none; }
  .tbl.cards td { display: inline-block; border: none; padding: 2px 10px 2px 0;
    vertical-align: middle; text-align: left; }
  .tbl.cards td.c-full { display: block; padding-right: 0; }
  .tbl.cards td.c-action { display: block; padding-top: 6px; }
  .tbl.cards td:empty { display: none; }
}

/* Einklappbare Nav-Gruppe (Verwaltung) — hält die Seitenleiste kurz */
.nav-group > summary { list-style: none; cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: #94a3b8; }
.nav-caret { font-size: 9px; transition: transform .15s; opacity: .7; }
.nav-group[open] .nav-caret { transform: rotate(180deg); }

/* ===== Arbeitsliste Versand (/ship) ===== */
.ship-item { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.ship-item:last-child { border-bottom: none; }
.ship-item-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ship-item-title { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.ship-item-form select { max-width: 150px; }
@media (max-width: 640px) {
  .ship-item-form { flex-direction: column; align-items: stretch; }
  .ship-item-form select, .ship-item-form input[name="tracking"] { max-width: none; width: 100%; }
  .ship-item-form button { width: 100%; padding: 12px; }
}

/* ===== Eingangsrechnungen (/documents) ===== */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
a.chip { text-decoration: none; cursor: pointer; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
