:root {
  --bg: #eef1f6;
  --panel: #ffffff;
  --text: #1c2430;
  --sidebar-bg: #142033;
  --sidebar-text: #c9d4e2;
  --sidebar-hover: #20304a;
  --sidebar-active: #3b6cf6;
  --accent: #3b6cf6;
  --accent-hover: #2f5ad4;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --card-shadow-hover: 0 6px 20px rgba(16,24,40,.12);
  --muted: #6b7787;
  --border: #e6e9ef;
  --th-bg: #f6f8fb;
  --th-text: #6a7688;
  --row-hover: #f7f9fc;
  --input-border: #d3dae3;
  --input-bg: #fff;
  --mini-bg: #eef1f6;
  --mini-text: #33415a;
  --mini-hover: #e0e5ee;
  --green: #16a34a; --green-bg: #e9f9ef;
  --red: #e11d48;   --red-bg: #fde9ee;
  --amber: #d97706; --amber-bg: #fdf2e3;
  --blue: #2563eb;  --blue-bg: #e8f0fe;
  --teal: #0d9488;  --teal-bg: #e2f6f3;
  --violet: #7c3aed;--violet-bg: #f1e9fe;
  --orange:#ea580c; --orange-bg:#fdeee3;
  --sky: #0284c7;   --sky-bg: #e3f3fb;
  --rose: #e11d48;  --rose-bg: #fde9ee;
}
[data-theme="dark"] {
  --bg: #0d1117;
  --panel: #161d29;
  --text: #e6eaf0;
  --sidebar-bg: #0b111b;
  --sidebar-text: #93a1b5;
  --sidebar-hover: #1b2536;
  --sidebar-active: #3b6cf6;
  --accent: #4f7cff;
  --accent-hover: #6a8dff;
  --card-bg: #161d29;
  --card-shadow: 0 1px 2px rgba(0,0,0,.4);
  --card-shadow-hover: 0 8px 26px rgba(0,0,0,.5);
  --muted: #8994a3;
  --border: #232d3d;
  --th-bg: #1b2432;
  --th-text: #93a1b5;
  --row-hover: #1b2432;
  --input-border: #34435a;
  --input-bg: #101825;
  --mini-bg: #232d3d;
  --mini-text: #c7d2e0;
  --mini-hover: #2f3d52;
  --green: #35d07f; --green-bg: rgba(53,208,127,.13);
  --red: #ff5c7a;   --red-bg: rgba(255,92,122,.13);
  --amber: #f0a83a; --amber-bg: rgba(240,168,58,.13);
  --blue: #5b9bff;  --blue-bg: rgba(91,155,255,.13);
  --teal: #2dd4bf;  --teal-bg: rgba(45,212,191,.12);
  --violet: #a78bfa;--violet-bg: rgba(167,139,250,.13);
  --orange:#fb923c; --orange-bg:rgba(251,146,60,.13);
  --sky: #38bdf8;   --sky-bg: rgba(56,189,248,.12);
  --rose: #fb7185;  --rose-bg: rgba(251,113,133,.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
/* Dezente, theme-passende Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 226px; flex: 0 0 226px; background: var(--sidebar-bg); color: var(--sidebar-text);
  display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: .2px; }
#nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--sidebar-text); opacity: .55; font-weight: 700; padding: 12px 12px 4px; }
.nav-label:first-child { padding-top: 2px; }
#nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: transparent; border: none; color: var(--sidebar-text);
  padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500;
  transition: background .12s, color .12s;
}
#nav button .ic { font-size: 15px; width: 20px; text-align: center; }
#nav button:hover { background: var(--sidebar-hover); color: #fff; }
#nav button.active { background: var(--sidebar-active); color: #fff; box-shadow: 0 2px 8px rgba(59,108,246,.4); }
.theme-toggle {
  margin-top: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--sidebar-text); height: 38px; border-radius: 9px; cursor: pointer; font-size: 16px;
}
.theme-toggle:hover { background: rgba(255,255,255,.14); color: #fff; }
main { flex: 1; padding: 28px 32px; max-width: 1180px; margin: 0 auto; width: 100%; }

h2 { margin: 0 0 20px; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
h3 { font-size: 16px; font-weight: 650; }

/* ---------- Cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; min-width: 178px; flex: 1; box-shadow: var(--card-shadow);
  position: relative; overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: .9; }
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.card .label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.card .value { font-size: 26px; font-weight: 750; margin-top: 5px; letter-spacing: -.5px; }
.card .muted { font-size: 12.5px; margin-top: 2px; }
.card.warn .value { color: var(--amber); } .card.warn::before { background: var(--amber); }
.card.good .value { color: var(--green); font-size: 30px; } .card.good::before { background: var(--green); width: 5px; }
.card.good { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 25%, var(--border)); }
.card.c-blue::before{background:var(--blue)} .card.c-blue .value{color:var(--blue)}
.card.c-green::before{background:var(--green)} .card.c-green .value{color:var(--green)}
.card.c-red::before{background:var(--red)} .card.c-red .value{color:var(--red)}
.card.c-amber::before{background:var(--amber)} .card.c-amber .value{color:var(--amber)}
.card.c-teal::before{background:var(--teal)} .card.c-teal .value{color:var(--teal)}
.card.c-violet::before{background:var(--violet)} .card.c-violet .value{color:var(--violet)}
.card.c-orange::before{background:var(--orange)} .card.c-orange .value{color:var(--orange)}
.card.c-sky::before{background:var(--sky)} .card.c-sky .value{color:var(--sky)}
.card.c-rose::before{background:var(--rose)} .card.c-rose .value{color:var(--rose)}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow); margin-bottom: 8px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--th-bg); color: var(--th-text); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; position: sticky; top: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--row-hover); }
tr:last-child td { border-bottom: none; }
td.right, th.right { text-align: right; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.bestellt { background: var(--amber-bg); color: var(--amber); }
.badge.unterwegs { background: var(--blue-bg); color: var(--blue); }
.badge.eingegangen { background: var(--green-bg); color: var(--green); }
.badge.paid { background: var(--green-bg); color: var(--green); }
.badge.unpaid { background: var(--red-bg); color: var(--red); }
.badge.miki { background: var(--violet-bg); color: var(--violet); }
.badge.off { background: var(--mini-bg); color: var(--muted); }
.gwoverlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.gwpick { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); width: min(440px, 100%); }
.gwhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; }
.gwrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.gwyear { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; font-size: 16px; }
.gwnav { background: var(--mini-bg); color: var(--text); border: none; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 16px; }
.gwnav:hover { background: var(--mini-hover); }
.gwbtn { background: var(--mini-bg); color: var(--mini-text); border: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.gwbtn:hover { background: var(--mini-hover); }
.gwbtn.gwactive { background: var(--accent); color: #fff; }
.gwmonths { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.clickbadge { cursor: pointer; user-select: none; }
.clickbadge:hover { filter: brightness(1.1); outline: 1px solid var(--border); }
tbody tr.mikirow > td { background: var(--violet-bg); box-shadow: inset 3px 0 0 var(--violet); }
tbody tr.retourerow > td { background: var(--red-bg); box-shadow: inset 3px 0 0 var(--red); opacity: .8; }

/* ---------- Forms ---------- */
form.row { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--card-shadow); margin-bottom: 20px; }
form.row .fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input, select { padding: 9px 11px; border: 1px solid var(--input-border); border-radius: 9px; font-size: 14px; min-width: 130px; background: var(--input-bg); color: var(--text); transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,108,246,.18); }

button.btn { background: var(--accent); color: #fff; border: none; padding: 10px 18px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; box-shadow: 0 2px 6px rgba(59,108,246,.28); transition: background .12s, transform .05s; }
button.btn:hover { background: var(--accent-hover); }
button.btn:active { transform: translateY(1px); }
button.mini { background: var(--mini-bg); color: var(--mini-text); border: none; padding: 6px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; margin-right: 4px; transition: background .12s; }
button.mini:hover { background: var(--mini-hover); }
button.mini.danger:hover { background: var(--red-bg); color: var(--red); }
/* Inline-Sicherheitsabfrage: "Ja" (rot gefüllt) / "Nein" */
button.confirm-yes { background: var(--red) !important; color: #fff !important; font-weight: 700; animation: critpulse .9s ease-in-out infinite; }
button.confirm-no { background: var(--mini-bg); color: var(--mini-text); }
button.confirm-no:hover { background: var(--mini-hover); }
@keyframes critpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,50,50,.45); } 50% { box-shadow: 0 0 0 4px rgba(220,50,50,0); } }

.section-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; }
.section-head h3 { margin: 0; }
.muted { color: var(--muted); }

/* ---------- Login ---------- */
.loginwrap { display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.logincard { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--card-shadow); padding: 26px; width: 100%; max-width: 340px; }
.logincard .field { margin-bottom: 12px; }
.logincard .field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.logincard .field input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); font-size: 14px; box-sizing: border-box; }
.loginerr { background: var(--red-bg); color: var(--red); font-size: 13px; padding: 8px 11px; border-radius: 8px; margin-bottom: 12px; }
.nav-logout { margin-top: auto; color: var(--muted); }

/* ---------- Cross-Listing ---------- */
.connbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.connbadge { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.connbadge.on { background: var(--green-bg, rgba(40,180,110,.12)); color: var(--green, #1f9d57); }
.connbadge.off { background: var(--mini-bg); color: var(--muted); }
.lcard { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--card-shadow); padding: 14px; margin-bottom: 14px; }
.lcardhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lcardhead .prodimg { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; flex-shrink: 0; }
.lcname { min-width: 0; }
.lctitle { font-weight: 650; font-size: 15px; }
.lcmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.lcbest { font-size: 12.5px; color: var(--muted); }
.idbadge { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--mini-bg); color: var(--mini-text); }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl { border: 1px solid var(--border); border-radius: 11px; padding: 10px; background: var(--bg); }
.pl.plon { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.pltog { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.plstat { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--mini-bg); color: var(--muted); white-space: nowrap; }
.plstat.ok { background: var(--green-bg, rgba(40,180,110,.12)); color: var(--green, #1f9d57); }
.plstat.warn { background: var(--red-bg); color: var(--red); }
.plbody { display: flex; flex-direction: column; gap: 8px; }
.plfield { display: flex; align-items: center; gap: 6px; }
.plfield label { font-size: 12px; color: var(--muted); min-width: 42px; }
.plfield input[type=text], .plfield select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--card-bg); color: var(--text); font-size: 13px; }
.plfield input[type=text] { width: 78px; }
.plhint { font-size: 11px; }
@media (max-width: 720px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- Dashboard-Panels (Fenster nebeneinander) ---------- */
.panelgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; }
.panel.wide { grid-column: 1 / -1; }
.panel.wide .panelbody table td, .panel.wide .panelbody table th { white-space: nowrap; }
.panelacts { display: flex; align-items: center; gap: 6px; }
.panelmax { background: transparent; border: 1px solid var(--border); cursor: pointer; font-size: 12px; color: var(--muted); padding: 3px 9px; border-radius: 999px; white-space: nowrap; transition: background .12s, color .12s; }
.panelmax:hover { background: var(--mini-bg); color: var(--mini-text); }
.panel.expanded { grid-column: 1 / -1; }
.panel.expanded .panelbody { max-height: 68vh; }
.panel.expanded .panelmax { background: var(--accent); color: #fff; border-color: var(--accent); }
.panelhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.panelhead .ptitle { font-weight: 650; font-size: 15px; }
.panelhead .pcount { display: inline-block; min-width: 20px; text-align: center; background: var(--accent, #2f81f7); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.panelhead .phint { font-size: 12px; color: var(--muted); font-weight: 600; }
.panelbody { padding: 4px 6px; max-height: 32vh; overflow: auto; }
/* Dashboard kompakt – alles auf einen Blick */
.dashhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dashcards { margin-bottom: 14px; gap: 12px; }
.dashcards .card { padding: 12px 16px; }
.dashcards .card .value { font-size: 22px; }
.dashcards .card .label { font-size: 12px; }
/* Offene Lieferungen als schlanke Liste */
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 6px; border-bottom: 1px solid var(--border); }
.lrow:last-child { border-bottom: none; }
.lgrow { min-width: 0; flex: 1; }
.lmeta { min-width: 0; }
.lname { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsub { font-size: 11px; }
.lright { display: flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; }
.lright button.mini { margin-right: 0; padding: 5px 8px; }
.panelbody table { margin: 0; border: none; box-shadow: none; border-radius: 0; width: 100%; }
.panelbody table th { position: sticky; top: 0; background: var(--card-bg); z-index: 1; }
.panelbody > p:first-child { margin-top: 6px; }
.tkblock { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.tkblock:last-child { border-bottom: none; }
@media (max-width: 900px) { .panelgrid { grid-template-columns: 1fr; gap: 12px; } .panelbody { max-height: 320px; } }

/* ---------- To-dos ---------- */
.todo-item { display: flex; align-items: center; gap: 11px; background: var(--card-bg); border: 1px solid var(--border); padding: 12px 15px; border-radius: 11px; margin-bottom: 8px; box-shadow: var(--card-shadow); }
.todo-item.done span.t { text-decoration: line-through; color: var(--muted); }
.todo-item .t { flex: 1; }
.pill { font-size: 11px; background: var(--mini-bg); color: var(--mini-text); padding: 2px 8px; border-radius: 10px; }

/* ---------- Gmail-Vorschläge ---------- */
.sugg-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.sugg-card { display: flex; gap: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 13px; width: 370px; box-shadow: var(--card-shadow); }
.sugg-img { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 9px; overflow: hidden; background: var(--mini-bg); display: flex; align-items: center; justify-content: center; }
.sugg-img img { width: 100%; height: 100%; object-fit: contain; }
.sugg-img .noimg { font-size: 11px; color: var(--muted); text-align: center; }
.sugg-body { flex: 1; min-width: 0; }
.sugg-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.sugg-fields { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.sugg-fields label { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.sugg-fields input, .sugg-fields select { min-width: 0; width: 90px; padding: 5px 7px; font-size: 13px; }
.sugg-fields input[type=number] { width: 70px; }
.sugg-actions { display: flex; gap: 8px; align-items: center; }
hr.sep { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.sugg-check { font-size: 12px; margin-top: 3px; }
.sugg-check a { color: var(--accent); text-decoration: none; }
.sugg-check a:hover { text-decoration: underline; }
.cart { background: var(--th-bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; max-width: 560px; }
.cartrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding: 4px 0; }
.saledetail { max-width: 460px; padding: 4px 2px 8px; }
.sd-row { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; padding: 3px 0; }
.sd-row span:last-child { font-variant-numeric: tabular-nums; }
.sd-sum { border-top: 1px solid var(--border); font-weight: 600; padding-top: 5px; }
.sd-total { border-top: 2px solid var(--border); font-weight: 700; padding-top: 6px; color: var(--green); }
.sd-meta { margin-top: 8px; font-size: 12px; }
tr.detailrow td { background: var(--th-bg); }
.prodcell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pname { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptxt { min-width: 0; }
.psub { font-size: 11px; color: var(--muted); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.prodimg { width: 28px; height: 28px; object-fit: contain; border-radius: 5px; background: #fff; flex: 0 0 28px; border: 1px solid var(--border); }
tr.grouphead td { background: var(--th-bg); font-size: 13px; color: var(--text); border-top: 2px solid var(--accent); border-left: 3px solid var(--accent); font-weight: 600; }
tr.ticketrow td { background: rgba(59,108,246,.06); }
tr.ticketrow td:first-child { border-left: 3px solid var(--accent); }
tr.ticketrow-last td { border-bottom: 2px solid var(--accent); }
.bankok { font-size: 12px; margin-top: 3px; color: var(--green); font-weight: 600; }
.bankno { font-size: 12px; margin-top: 3px; color: var(--muted); }

/* ---------- Abgleich-Cockpit ---------- */
.recon-row { display: flex; gap: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 13px; margin-bottom: 10px; box-shadow: var(--card-shadow); }
.recon-img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 9px; overflow: hidden; background: var(--mini-bg); display: flex; align-items: center; justify-content: center; }
.recon-img img { width: 100%; height: 100%; object-fit: contain; }
.recon-img .noimg { color: var(--muted); font-size: 18px; }
.recon-main { flex: 1; min-width: 0; }
.recon-title { font-weight: 600; font-size: 14px; }
.recon-bankline { font-size: 12px; margin: 5px 0; }
.recon-ok { color: var(--green); font-weight: 600; }
.recon-warn { color: var(--orange); font-weight: 600; }
.recon-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 6px; }
.recon-controls .field label { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.recon-controls select, .recon-controls input { padding: 6px 8px; font-size: 13px; }
.recon-controls select { min-width: 230px; }

/* "Schnell" nur am Handy */
#nav button.mobile-only { display: none; }
#nav button.desktop-only { display: flex; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: sticky; top: 0; z-index: 20; padding: 10px 12px; flex-direction: column; }
  .brand { padding: 2px 4px 10px; }
  #nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .nav-label { flex-basis: 100%; padding: 6px 4px 0; }
  #nav button { width: auto; padding: 8px 11px; }
  #nav button .lbl { font-size: 13px; }
  #nav button.mobile-only { display: flex; }
  #nav button.desktop-only { display: none; }
  .theme-toggle { position: absolute; top: 10px; right: 12px; width: 40px; margin: 0; }
  main { padding: 16px 14px; }
  h2 { font-size: 20px; margin-bottom: 14px; }
  .cards { gap: 10px; }
  .card { min-width: 44%; padding: 13px; }
  .card .value { font-size: 21px; }
  form.row { padding: 13px; }
  .fields { gap: 9px; }
  .field input, .field select { min-width: 0 !important; width: 100%; }
  .field { flex: 1 1 45%; }
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  th, td { padding: 8px 10px; font-size: 12.5px; }
  .recon-controls select { min-width: 0; width: 100%; }
  .recon-row { flex-wrap: wrap; }
}
