/* Schriften wie auf transporte-tls.de (selbst gehostet, keine Google-Verbindung) */
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("fonts/Urbanist.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

/* TLS-Farben: Schwarz/Anthrazit, Grün aus dem Logo, helles Grau */
:root {
  --navy: #191919;
  --navy-2: #2b2b2b;
  --accent: #268a37;
  --accent-dark: #1d6e2b;
  --accent-bg: #e7f3e9;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #191919;
  --muted: #5e5e5e;
  --line: #e8e8e8;
  --head: "Urbanist", "Inter", sans-serif;
  --green: #1e9e5a;
  --green-bg: #e3f5eb;
  --blue: #2563eb;
  --blue-bg: #e4ecfd;
  --red: #d93636;
  --red-bg: #fbe5e5;
  --amber: #b26b00;
  --amber-bg: #fff1d6;
  --purple: #7c3aed;
  --purple-bg: #efe7fd;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; }

/* ---------- Kopfzeile ---------- */
.top {
  background: #fff; color: var(--text); border-bottom: 1px solid var(--line);
  padding: calc(14px + var(--safe-t)) 18px 14px;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 5;
}
.top .logo { height: 34px; width: auto; display: block; }
.top .title { flex: 1; min-width: 0; }
.top .title { border-left: 1px solid var(--line); padding-left: 12px; }
.top .title b { display: block; font-size: 16px; font-family: var(--head); font-weight: 700; }
.top .title small { color: var(--muted); font-size: 12px; }
.icon-btn { background: var(--bg); border: 0; color: var(--text); font-weight: 600; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 14px; }

main { max-width: 860px; margin: 0 auto; padding: 16px 16px calc(96px + var(--safe-b)); }

/* ---------- Karten & Listen ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(25,25,25,.06); }
.card h2 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-title { font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin: 20px 4px 8px; display: flex; justify-content: space-between; align-items: center; }
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(25,25,25,.06); }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-size: 15px; font-weight: 600; }
.row .main small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.row.click { cursor: pointer; }
.row.click:active { background: #f7f8fa; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-dark); font-family: var(--head); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.empty { color: var(--muted); text-align: center; padding: 22px 16px; font-size: 14px; }
.muted { color: var(--muted); }

.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.verfuegbar, .pill.genehmigt { background: var(--green-bg); color: var(--green); }
.pill.vac, .pill.t-unterwegs { background: var(--blue-bg); color: var(--blue); }
.pill.sick, .pill.abgelehnt, .pill.bad { background: var(--red-bg); color: var(--red); }
.pill.offen { background: var(--amber-bg); color: var(--amber); }
.pill.edu { background: var(--purple-bg); color: var(--purple); }
.pill.oth, .pill.t-geplant, .pill.t-storniert { background: #eeeeee; color: #555; }
.pill.t-erledigt { background: var(--green-bg); color: var(--green); }
.pill.bad { background: #3a1010; color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(25,25,25,.06); border-top: 4px solid var(--line); }
.stat b { font-family: var(--head); font-size: 30px; display: block; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.g { border-color: var(--green); } .stat.b { border-color: var(--blue); } .stat.r { border-color: var(--red); } .stat.k { border-color: var(--navy); }
.click { cursor: pointer; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
[hidden] { display: none !important; }
.page-title { font-size: 22px; margin: 2px 4px 14px; }

.meter { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; display: flex; margin: 10px 0 8px; }
.meter i { display: block; height: 100%; }
.meter .used { background: var(--accent); } .meter .pend { background: #e0a43a; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend b { color: var(--text); }

.vehicle { display: flex; align-items: center; gap: 14px; }
.plate { font-family: "DIN Alternate", "Arial Narrow", sans-serif; font-weight: 700; border: 2px solid var(--text); border-left: 10px solid var(--blue); border-radius: 6px; padding: 3px 10px; font-size: 17px; letter-spacing: 1px; background: #fff; white-space: nowrap; }

/* ---------- Buttons & Formulare ---------- */
.btn { border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 600; cursor: pointer; background: var(--navy); color: #fff; font-size: 15px; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-dark); }
.btn.ghost { background: #ededed; color: var(--text); }
.btn.danger { color: var(--red); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }
.link.red { color: var(--red); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
textarea { min-height: 70px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.error { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 1em; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(172deg, var(--navy) 0 58%, var(--accent) calc(58% + 1px)); }
.login .card { width: 100%; max-width: 380px; padding: 28px 24px; }
.login .brand { text-align: center; margin-bottom: 10px; }
.login .brand img { width: 210px; max-width: 80%; height: auto; }
.login .brand p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Tab-Leiste ---------- */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 6;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding: 6px 6px calc(6px + var(--safe-b));
}
.tabs button { flex: 1; max-width: 140px; background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.tabs button svg { width: 24px; height: 24px; }
.tabs button.on { color: var(--text); }
.tabs button.on svg { color: var(--accent); }
.badge { position: absolute; top: 0; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 6px; }

/* ---------- Wochenplan ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.week-nav b { font-family: var(--head); font-size: 16px; text-align: center; flex: 1; }
.week { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 13px; }
.week-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(25,25,25,.06); }
.week th, .week td { border-bottom: 1px solid var(--line); padding: 8px 4px; text-align: center; }
.week th { font-weight: 600; color: var(--muted); font-size: 12px; }
.week th.today { color: var(--accent-dark); background: var(--accent-bg); }
.week td.name { text-align: left; padding-left: 12px; font-weight: 600; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.week td.we { background: #fafbfc; }
.cell { display: inline-block; min-width: 26px; border-radius: 6px; padding: 3px 0; font-weight: 700; font-size: 12px; }
.cell.vac { background: var(--blue-bg); color: var(--blue); }
.cell.sick { background: var(--red-bg); color: var(--red); }
.cell.edu { background: var(--purple-bg); color: var(--purple); }
.cell.bad { background: #3a1010; color: #fff; }
.cell.oth { background: #eeeeee; color: #555; }
.cell.offen { background: var(--amber-bg); color: var(--amber); }
.cell.tours { background: var(--accent-bg); color: var(--accent-dark); font-weight: 600; }
.row > .cell { flex: none; min-width: 30px; text-align: center; }
.week th.we { background: #fafafa; }
.cell.ok { color: #c9ccd4; font-weight: 400; }
@media (max-width: 520px) {
  .week th, .week td { padding: 7px 1px; font-size: 11px; }
  .week td.name { padding-left: 8px; max-width: 78px; font-size: 12px; }
  .cell { min-width: 20px; font-size: 11px; }
}

/* ---------- Sheet (Dialog) ---------- */
dialog#sheet { border: 0; padding: 0; width: min(520px, 100%); max-height: 92vh; border-radius: 20px; background: var(--card); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog#sheet::backdrop { background: rgba(25,25,25,.5); }
#sheet-body { padding: 22px 20px calc(20px + var(--safe-b)); overflow-y: auto; max-height: 92vh; }
#sheet-body h3 { font-size: 19px; margin-bottom: 4px; }
@media (max-width: 600px) {
  dialog#sheet { margin: auto 0 0; max-width: 100%; border-radius: 20px 20px 0 0; }
}
.preview { margin-top: 12px; border-radius: 10px; overflow: hidden; background: #f3f4f7; }
.preview img { display: block; max-width: 100%; margin: 0 auto; }
.preview iframe { width: 100%; height: 60vh; border: 0; }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 760px) {
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .two-col > * { margin-bottom: 0; }
}

/* ---------- Touren ---------- */
.tour { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(25,25,25,.06); border-left: 5px solid var(--accent); }
.card .tour { box-shadow: none; border: 1px solid var(--line); border-left: 5px solid var(--accent); margin: 10px 0 0; }
.tour[data-act] { cursor: pointer; }
.tour.unterwegs { border-left-color: var(--blue); }
.tour.erledigt { border-left-color: #bbb; opacity: .75; }
.tour.storniert { border-left-color: #bbb; opacity: .55; text-decoration: line-through; }
.tour.has-issue { border-left-color: var(--red); }
.tour-time { font-family: var(--head); font-weight: 700; font-size: 16px; min-width: 46px; line-height: 1.25; }
.tour-main { flex: 1; min-width: 0; }
.tour-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tour-head b { font-size: 15px; }
.tour-main small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.tour-main small.note { color: var(--text); background: #fafafa; border-radius: 8px; padding: 6px 8px; margin-top: 8px; }
.warn { margin-top: 8px; font-size: 13px; color: var(--red); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; background: #f0f0f0; padding: 4px 10px; font-size: 13px; font-weight: 600; border: 0; }
.chip.bad { background: var(--red-bg); color: var(--red); }
.chip.plate-chip { border-radius: 6px; background: #fff; border: 1.5px solid var(--text); border-left: 6px solid var(--blue); letter-spacing: .5px; }
.chip small { font-weight: 400; color: var(--muted); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chip.big { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 12px; padding: 8px 12px; background: var(--card); box-shadow: 0 1px 2px rgba(25,25,25,.08); cursor: pointer; font-size: 14px; }
.chip.big:hover { box-shadow: 0 0 0 2px var(--accent); }
.day-label { font-family: var(--head); font-weight: 700; margin: 14px 4px 6px; }
details.more { margin: 6px 0 10px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 4px; }
.date-pick { position: relative; flex: 1; margin: 0; text-align: center; cursor: pointer; color: var(--text); }
.date-pick b { font-family: var(--head); font-size: 16px; }
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* ---------- Segmente, Filter, Hinweise ---------- */
.seg { display: flex; background: #e9e9e9; border-radius: 11px; padding: 3px; gap: 2px; margin-bottom: 12px; overflow-x: auto; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.filter { margin-bottom: 12px; }
.row.alert { border-left: 4px solid var(--line); }
.row.alert.sick { border-left-color: var(--red); }
.row.alert.offen { border-left-color: #e0a43a; }
.row.alert.oth { border-left-color: #999; }
.row.alert b { font-size: 14px; font-weight: 600; }
.list.flat { box-shadow: none; border: 1px solid var(--line); }
.list.flat .row { padding: 10px 14px; }
.form-group { font-family: var(--head); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-dark); margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
label.check input { width: auto; }
.upload { margin-top: 14px; }
.upload .inline { display: flex; gap: 8px; align-items: center; }
.upload .inline input { flex: 1; min-width: 0; }
.grid2 > *, .grid3 > * { min-width: 0; }
@media (max-width: 520px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > :first-child { grid-column: 1 / -1; }
}

/* ---------- Zugänge ---------- */
.info-card b { font-family: var(--head); font-size: 17px; }
.info-card p { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.access-row { align-items: flex-start; }
.creds { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.creds code, .creds-box b { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg); padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.access-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.creds-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creds-box > div { background: var(--accent-bg); border-radius: 12px; padding: 12px 14px; }
.creds-box small { display: block; color: var(--accent-dark); font-weight: 600; margin-bottom: 4px; }
.creds-box b { font-size: 22px; background: none; padding: 0; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; min-width: 0; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- Freigabe & Push ---------- */
.release { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.release > div { flex: 1; min-width: 200px; }
.release b { display: block; font-family: var(--head); font-size: 15px; }
.release span { font-size: 13px; color: var(--muted); }
.release .btn { flex: none; }
.release.draft { background: #fff; border: 2px dashed #c9c9c9; }
.release.changed { background: var(--amber-bg); border: 1.5px solid #e0a43a; }
.release.changed .btn { background: var(--amber); }
.release.done { background: var(--accent-bg); border: 1.5px solid #bfe0c4; }
.release.done b { color: var(--accent-dark); }
@media (max-width: 520px) { .release .btn { width: 100%; } }
.push-card b { font-family: var(--head); font-size: 16px; }
.push-card p { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.push-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 0 4px 12px; }
.focus-card { border: 2px solid var(--accent); }
.focus-card h2 small { font-family: Inter, sans-serif; font-weight: 500; font-size: 13px; }
.note-box { margin-top: 12px; background: var(--amber-bg); border-radius: 12px; padding: 12px 14px; }
.note-box b { font-size: 13px; color: var(--amber); }
.note-box p { margin: 4px 0 0; white-space: pre-wrap; }
.detail-vehicle .plate { font-size: 20px; }

/* ---------- Lieferscheine ---------- */
.upload-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; color: var(--text); font-weight: 600; }
.upload-btn.busy { opacity: .6; pointer-events: none; }
.upload-btn.busy::after { content: ' ' attr(data-busy); }
.doc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.doc-row .upload-btn { background: var(--navy); color: #fff; padding: 10px 14px; font-size: 14px; }
.doc-count { font-size: 13px; color: var(--accent-dark); font-weight: 600; }
#sheet-body > .upload-btn { width: 100%; margin-top: 10px; padding: 12px; background: var(--navy); color: #fff; font-size: 15px; }
.btn-row .upload-btn { flex: 1; }
.doc-chip { cursor: pointer; background: var(--accent-bg); color: var(--accent-dark); }
.doc-chip.new { background: var(--accent); color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.thumb { position: relative; border: 2px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; background: #f3f3f3; aspect-ratio: 3 / 4; cursor: pointer; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb small { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 0; text-align: center; }
.thumb.new { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.thumb.new::before { content: 'neu'; position: absolute; top: 4px; left: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 1px 5px; z-index: 1; }
.thumb.mini { width: 44px; height: 56px; aspect-ratio: auto; flex: none; border-width: 1px; }
.row.alert.doc { border-left-color: var(--accent); }
.push-card:not(.card) { margin-top: 8px; }

/* ---------- Vollzeit / Nebenjobler ---------- */
.chip-label { font-size: 12px; font-weight: 600; color: var(--muted); margin: 4px 4px 6px; }
.chip.big.side { border-left: 4px solid #8a8a8a; }
.week tr.group-row td { text-align: left; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); background: #fafafa; }
.seg.pick { margin: 0; }
.seg.pick label { flex: 1; margin: 0; cursor: pointer; }
.seg.pick input { display: none; }
.seg.pick span { display: block; text-align: center; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg.pick input:checked + span { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* ---------- Tankkarten ---------- */
.fuel-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.fuel-icon svg { width: 22px; height: 22px; }
.card-no { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; color: var(--muted); font-size: 14px; }
.fuel-line { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) {
  .tabs { padding-left: 2px; padding-right: 2px; }
  .tabs button { font-size: 10px; padding: 6px 1px; letter-spacing: -.1px; }
  .tabs button svg { width: 22px; height: 22px; }
}

/* ---------- Auflieger ---------- */
.chip.plate-chip.trailer { border-left-color: #8a8a8a; }
.couple-info { margin-top: 12px; background: var(--accent-bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.label-hint { font-weight: 400; }

/* ---------- Fahrzeug-Kategorien ---------- */
.section-title .count, .list-head span { background: #e6e6e6; color: var(--muted); border-radius: 99px; padding: 1px 8px; font-size: 11px; letter-spacing: 0; margin-left: 6px; }
.section-title .count { margin-right: auto; }
.list-head { padding: 9px 16px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: #fafafa; border-bottom: 1px solid var(--line); }
.seg.pick.cats span { padding: 9px 4px; font-size: 13px; }

/* ---------- Lieferscheine-Reiter ---------- */
.badge.green { background: var(--accent); }
.doc-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.doc-card-head b { display: block; font-size: 15px; }
.doc-card-head small { color: var(--muted); font-size: 13px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
@media (max-width: 520px) {
  .tabs button { font-size: 9px; letter-spacing: -.2px; }
  .tabs button svg { width: 21px; height: 21px; }
}

/* =========================================================
   Zwei Ansichten: Handy (untere Leiste) und Desktop (Seitenleiste)
   ========================================================= */
.sidenav { display: none; }
.more-list .row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font: inherit; color: inherit; }
.more-list .row:last-child { border-bottom: 0; }
.more-list .row.on b { color: var(--accent-dark); }
.more-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.more-icon svg { width: 21px; height: 21px; }

/* Handy & Tablet: kompakte Leiste mit 5 Punkten */
@media (max-width: 899px) {
  .tabs { padding: 3px 4px calc(3px + var(--safe-b)); }
  .tabs button { font-size: 10.5px; letter-spacing: 0; padding: 5px 2px 3px; gap: 2px; max-width: 110px; }
  .tabs button svg { width: 22px; height: 22px; }
  .tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  main { padding-bottom: calc(80px + var(--safe-b)); }
}

/* Desktop: Menü links, breiter Inhalt, mehrere Spalten */
@media (min-width: 900px) {
  .tabs { display: none; }
  .top { padding-left: 24px; padding-right: 24px; }
  .shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 64px); }
  .sidenav {
    display: flex; flex-direction: column; gap: 2px; position: sticky; top: 64px; align-self: start;
    height: calc(100vh - 64px); padding: 18px 12px; border-right: 1px solid var(--line); background: #fff;
  }
  .sidenav button {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
    font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left;
  }
  .sidenav button svg { width: 21px; height: 21px; flex: none; }
  .sidenav button:hover { background: var(--bg); color: var(--text); }
  .sidenav button.on { background: var(--accent-bg); color: var(--accent-dark); }
  .sidenav .badge { position: static; margin-left: auto; }
  .shell main { max-width: 1180px; width: 100%; margin: 0; padding: 26px 34px 48px; }
  .cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
  .tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; margin-bottom: 14px; }
  .tour-grid > * { margin: 0 !important; }
  .btn-row .btn, .btn.block { max-width: 520px; }
  .btn-row { max-width: 760px; }
  .week { font-size: 14px; }
}
/* Automatischer Fokus beim Öffnen eines Fensters: keinen Rahmen zeigen (Tastatur-Fokus bleibt sichtbar) */
#sheet :focus:not(:focus-visible) { outline: none; }

/* ---------- Stammtouren ---------- */
.btn-row.wrap { flex-wrap: wrap; }
.plan-tools { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 2px 14px; font-size: 14px; }
.repeat-box { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #f7f7f7; border: 1px solid var(--line); }
.repeat-box > b { font-size: 14px; display: block; margin-bottom: 8px; }
.repeat-box label.check { margin: 6px 0; }
.wd-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wd-pick label { margin: 0; cursor: pointer; }
.wd-pick input { display: none; }
.wd-pick span { display: inline-block; min-width: 40px; text-align: center; padding: 8px 6px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--muted); }
.wd-pick input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.wd-pick .link { margin-left: 4px; font-size: 13px; }
.wd-badge { flex: none; min-width: 52px; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-bg); border-radius: 8px; padding: 6px 6px; }
.rep { font-size: 13px; }

/* Stammtour-Kennzeichen als Text statt Symbol */
.rep { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-dark); background: var(--accent-bg); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; font-family: Inter, sans-serif; }

/* ---------- Stempeluhr ---------- */
.clock-card { border: 2px solid var(--line); }
.clock-card.on { border-color: var(--accent); background: linear-gradient(180deg, #fff 0, var(--accent-bg) 220%); }
.clock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.clock-head b { display: block; font-family: var(--head); font-size: 18px; }
.clock-head small { color: var(--muted); font-size: 14px; }
.clock-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 rgba(38,138,55,.5); animation: pulse 1.8s infinite; }
.clock-dot.off { background: #c4c4c4; animation: none; box-shadow: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(38,138,55,.45); } 70% { box-shadow: 0 0 0 10px rgba(38,138,55,0); } 100% { box-shadow: 0 0 0 0 rgba(38,138,55,0); } }
.btn.big { padding: 16px 18px; font-size: 17px; border-radius: 12px; }
.clock-card .warn { margin: 0 0 12px; }
.dur { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.row-side small.dur { display: block; }
.section-title .link { text-transform: none; letter-spacing: 0; font-family: Inter, sans-serif; font-size: 13px; }

/* ---------- Karte ---------- */
.minimap { position: relative; overflow: hidden; background: #e8eef0; border-radius: 12px; touch-action: pan-y; user-select: none; cursor: grab; }
.minimap:active { cursor: grabbing; }
.mm-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.mm-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mm-svg g { pointer-events: visiblePainted; }
.mm-ctrl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.mm-ctrl button { min-width: 36px; height: 34px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 18px; font-weight: 700; cursor: pointer; color: var(--text); }
.mm-ctrl button[data-fit] { font-size: 12px; padding: 0 6px; }
.mm-attr { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: 10px; padding: 1px 6px; border-top-left-radius: 6px; z-index: 2; }
.mm-attr a { color: #333; }
.mm-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.95); padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 2; text-align: center; }
.map-box { height: 300px; margin-top: 4px; }
.map-box.small { height: 210px; margin-top: 10px; }
.map-box[hidden] { display: none; }
.route-info { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; min-height: 1em; }
.map-card { padding: 14px; }
.map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.map-head b { font-family: var(--head); font-size: 16px; }
.map-head small { color: var(--muted); font-size: 13px; }
.map-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; margin-top: 10px; }
.lg { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: #fafafa; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.lg i { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 3px; }
.lg b { display: block; font-size: 14px; }
.lg small { display: block; color: var(--muted); font-size: 12px; }
.lg small.km { color: var(--text); font-weight: 600; }
.lg.on { border-color: var(--text); background: #fff; }
.lg.dim { opacity: .45; }
.driver-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (min-width: 900px) { .map-box { height: 430px; } .map-box.small { height: 240px; } }

/* ---------- Vorabtouren ---------- */
.pool-grid { display: grid; gap: 8px; margin-bottom: 14px; }
@media (min-width: 900px) { .pool-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.pool-card { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 2px rgba(25,25,25,.06); border: 1.5px dashed #cfcfcf; }
.pool-main { flex: 1; min-width: 0; cursor: pointer; }
.pool-main b { display: block; font-size: 15px; }
.pool-main small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
a.btn.block { display: block; text-align: center; text-decoration: none; }

/* ---------- Fahrer: Sprache & Hotline ---------- */
.lang-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.login .lang-pick { justify-content: center; margin: 4px 0 8px; }
.lang-pick button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.call-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; color: var(--text); border: 2px solid var(--navy); margin: 0 0 14px; text-decoration: none; }
.call-btn span { font-weight: 700; }
.call-btn small { font-weight: 700; color: var(--accent-dark); font-size: 15px; white-space: nowrap; }
#sheet-body .call-btn { margin-top: 14px; }
.call-btn { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 16px; }
.call-btn span { font-size: 15px; }
.call-btn small { font-size: 18px; letter-spacing: .5px; }
.print-row { margin: 0 0 10px; }
.print-row .btn { font-size: 14px; padding: 10px 14px; }

/* ---------- Planung als Fahrer-Liste ---------- */
.plan-head { position: sticky; top: 64px; z-index: 3; background: var(--bg); padding: 4px 0 10px; margin-bottom: 4px; }
.plan-head .week-nav { margin-bottom: 6px; }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.plan-bar .btn { padding: 10px 16px; font-size: 14px; }
.btn.amber { background: var(--amber); color: #fff; }
.sent-pill { background: var(--accent-bg); color: var(--accent-dark); font-weight: 700; font-size: 13px; border-radius: 99px; padding: 8px 14px; }
.due-btn { margin-top: 10px; background: var(--accent-bg); color: var(--accent-dark); border: 1.5px dashed var(--accent); }
.plan-head > .btn.ghost.block { margin-top: 10px; }
.dlist { display: grid; gap: 8px; margin-bottom: 8px; }
@media (min-width: 900px) { .dlist { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); } .plan-head { top: 64px; } }
.drow { background: var(--card); border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 1px 2px rgba(25,25,25,.06); border: 1.5px solid transparent; }
.drow.has { border-color: #dfe9e1; }
.drow.nodrv { border-color: #e0a43a; margin-bottom: 8px; }
.drow-head { display: flex; align-items: center; gap: 8px; }
.drow-head .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.drow-head b { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow-veh { font-size: 12px; font-weight: 700; white-space: nowrap; }
.dtour { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #f6f8f6; cursor: pointer; border-left: 4px solid var(--accent); }
.dtour.bad { border-left-color: var(--red); background: #fdf3f3; }
.dtour:hover { background: #eef3ef; }
.dt-time { font-family: var(--head); font-weight: 700; font-size: 15px; min-width: 42px; }
.dt-main { flex: 1; min-width: 0; }
.dt-main b { display: block; font-size: 14px; }
.dt-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.dt-main small.warn { color: var(--red); font-weight: 600; margin-top: 3px; }
.dt-doc { font-size: 11px; font-weight: 700; color: var(--accent-dark); background: var(--accent-bg); border-radius: 6px; padding: 2px 6px; }
.dadd { display: block; width: 100%; margin-top: 8px; border: 1.5px dashed #c9c9c9; background: none; border-radius: 10px; padding: 9px; font: inherit; font-weight: 600; font-size: 14px; color: var(--accent-dark); cursor: pointer; }
.dadd:hover { border-color: var(--accent); background: var(--accent-bg); }
.dadd.small { padding: 5px; font-size: 13px; color: var(--muted); border-style: dotted; }
.absent-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); padding: 0 4px 6px; }
.absent-line b { color: var(--text); }
.plan-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 2px 6px; font-size: 14px; }
.more-fields { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.more-fields summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); padding: 6px 0; }
.pick-list .row.pick { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font: inherit; color: inherit; }
.pick-list .row.pick:last-child { border-bottom: 0; }
.pick-list .row.pick.done { opacity: .55; }
.wd-badge.off { background: #eee; color: var(--muted); }

/* ---------- Tagesübersicht (Tabelle in der Planung) ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(25,25,25,.06); margin-bottom: 10px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.plan-table th { text-align: left; background: var(--navy); color: #fff; font-weight: 600; font-size: 12px; padding: 8px 10px; white-space: nowrap; }
.plan-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table tbody tr:nth-child(even) td { background: #fafbfa; }
.plan-table tbody tr:hover td { background: var(--accent-bg); }
.plan-table tr.bad td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.plan-table .nowrap { white-space: nowrap; }
.plan-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.plan-table .note-cell { color: var(--muted); max-width: 220px; }
.plan-table .warn { margin: 0; font-size: 12px; }
.plan-table th:first-child, .plan-table td:first-child { position: sticky; left: 0; z-index: 1; }
.plan-table td:first-child { background: #fff; }
.plan-table tbody tr:nth-child(even) td:first-child { background: #fafbfa; }
.plan-table th:first-child { background: var(--navy); }

/* ---------- Planung: Fahrer + Fahrzeuge ---------- */
.plan-cols { display: grid; gap: 4px 20px; }
@media (min-width: 1000px) { .plan-cols { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .vboard { position: sticky; top: 150px; } }
.pcards { display: grid; gap: 8px; margin-bottom: 6px; }
@media (min-width: 1700px) { .pcards { grid-template-columns: 1fr 1fr; } }
.pcard { background: var(--card); border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 1px 2px rgba(25,25,25,.06); border-left: 5px solid #ddd; }
.pcard.ok { border-left-color: var(--accent); }
.pcard.part { border-left-color: #e0a43a; }
.pcard.off { opacity: .6; border-left-color: #ccc; }
.pcard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pcard.off .pcard-head { margin-bottom: 0; }
.pcard-head .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.pcard-head b { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard-sel select { padding: 9px 10px; font-size: 14px; }
@media (max-width: 520px) { .pcard-sel { grid-template-columns: 1fr; } }
.pcard .warn { display: block; margin-top: 6px; }
.link.small { font-size: 13px; }
.vboard-box { background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: 0 1px 2px rgba(25,25,25,.06); }
.vgroup + .vgroup { margin-top: 8px; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.vchip { display: inline-flex; flex-direction: column; align-items: flex-start; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px; border: 1.5px solid var(--line); background: #fff; line-height: 1.25; }
.vchip b { font-size: 13px; letter-spacing: .3px; }
.vchip small { font-size: 11px; }
.vchip.free { border-color: var(--accent); border-left-width: 5px; cursor: pointer; color: var(--text); }
.vchip.free small { color: var(--accent-dark); font-weight: 600; }
.vchip.free:hover { background: var(--accent-bg); }
.vchip.used { background: #eee; color: #9a9a9a; border-color: #e2e2e2; }
.vchip.used b { text-decoration: line-through; text-decoration-color: #c4c4c4; }
.vchip.down { background: #f7eeee; color: #b39a9a; border-color: #eedada; }

/* ---------- Auftragsdaten ---------- */
.pcard-extra { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-top: 6px; }
.pcard-extra input { padding: 7px 9px; font-size: 13px; border-radius: 9px; }
.pcard-extra input.wide { grid-column: 1 / -1; }
.pcard-extra input:placeholder-shown { background: #fafafa; }
.plan-table .num { text-align: right; }
.plan-table tfoot td { border-top: 2px solid var(--navy); background: #fff; padding: 8px 10px; }
.tour-main small.cargo { color: var(--text); font-weight: 600; }
a.btn.call-btn { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

/* ---------- Palettentausch ---------- */
.pal-form { background: #f7f8f7; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; }
.pal-q { margin: 0 0 8px; font-weight: 700; }
.pal-rows { margin-top: 10px; }
.pal-head, .pal-row { display: grid; grid-template-columns: 1fr 80px 28px; gap: 6px; align-items: center; }
.pal-head { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.pal-row { margin-bottom: 6px; }
.pal-row input { padding: 9px 10px; }
.pal-row .link { font-size: 22px; line-height: 1; }
.pal-done { display: flex; justify-content: space-between; align-items: center; background: var(--accent-bg); color: var(--accent-dark); font-weight: 700; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pal-todo { display: block; width: 100%; margin-top: 8px; border: 1.5px dashed #e0a43a; background: var(--amber-bg); color: var(--amber); font: inherit; font-weight: 700; font-size: 13px; border-radius: 10px; padding: 8px; cursor: pointer; }
.tour-main small.pal-ok { color: var(--accent-dark); font-weight: 600; }
.tour-main small.pal-open { color: var(--amber); font-weight: 600; }

/* ---------- Tour planen: Ladestellen ---------- */
.tour-form .form-group { margin-top: 18px; padding-top: 12px; }
.stop-list { counter-reset: stop; display: grid; gap: 6px; margin-top: 8px; }
.stop-row { display: grid; grid-template-columns: 28px 1fr 32px; gap: 8px; align-items: center; }
.stop-row::before { counter-increment: stop; content: counter(stop); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.stop-row input { margin: 0; }
.stop-del { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; border-radius: 8px; }
.stop-del:hover { color: #c62828; background: #fdecec; }
.stop-add { margin: 8px 0 4px 36px; }
ol.stops { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 3px; }
ol.stops li { counter-increment: s; display: flex; gap: 7px; align-items: baseline; }
ol.stops li::before { content: counter(s); flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-dark); font-weight: 700; font-size: 11px; display: inline-grid; place-items: center; }
.tour-main small.price { color: var(--accent-dark); font-weight: 600; }
.stat.money b { font-size: 24px; white-space: nowrap; }

/* ---------- Tagesplan – Übersicht ---------- */
.overview { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; margin-bottom: 20px; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ov-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; background: #f6f7f6; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ov-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ov-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ov-table tbody tr.click { cursor: pointer; }
.ov-table tbody tr:hover { background: #f8faf8; }
.ov-table tbody tr.bad td:first-child { box-shadow: inset 3px 0 0 #d93636; }
.ov-table .r { text-align: right; }
.ov-table .plate { display: inline-block; margin: 0 4px 2px 0; }
.ov-table .plate.trailer { opacity: .75; }
.ov-time b { font-family: var(--head); font-size: 15px; }
.ov-driver { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.ov-driver i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ov-table tfoot td { background: var(--accent-bg); color: var(--accent-dark); border-bottom: 0; font-size: 15px; }
.ov-table tfoot .muted { font-size: 13px; }
.warn-text { color: #c62828; font-weight: 600; }
@media (max-width: 760px) {
  .ov-table thead { display: none; }
  .ov-table, .ov-table tbody, .ov-table tfoot { display: block; width: 100%; }
  .ov-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "time price" "veh drv" "cust no" "stops stops"; gap: 10px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .ov-table tbody td { display: block; border: 0; padding: 0; min-width: 0; }
  .ov-table tbody td::before { content: attr(data-l); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
  .ov-table td.ov-time { grid-area: time; } .ov-table td.ov-time::before, .ov-table td.ov-price::before { display: none; }
  .ov-table td.ov-time b { font-size: 18px; } .ov-table td.ov-time small { display: inline; margin-left: 6px; }
  .ov-table td.ov-price { grid-area: price; text-align: right; font-weight: 700; color: var(--accent-dark); font-size: 15px; }
  .ov-table td.ov-veh { grid-area: veh; } .ov-table td.ov-drv { grid-area: drv; }
  .ov-table td.ov-cust { grid-area: cust; } .ov-table td.ov-no { grid-area: no; }
  .ov-table td.ov-stops { grid-area: stops; background: #f7f8f7; border-radius: 10px; padding: 8px 10px; }
  .ov-table .ov-driver { white-space: normal; }
  .ov-table tbody tr.bad td:first-child { box-shadow: none; }
  .ov-table tbody tr.bad { box-shadow: inset 4px 0 0 #d93636; }
  .ov-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; background: var(--accent-bg); }
  .ov-table tfoot td { display: block; padding: 0; background: none; }
}
.ov-table .plate { font-size: 13px; padding: 1px 6px; border-width: 1.5px; border-left-width: 6px; }
.field-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Teilpartien ---------- */
.split-toggle { display: flex; gap: 12px; align-items: center; background: #f7f8f7; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0 4px; cursor: pointer; font-weight: 400; }
.split-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.split-toggle .sw { flex: none; width: 44px; height: 26px; border-radius: 99px; background: #cfd4cf; position: relative; transition: background .15s; }
.split-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.split-toggle input:checked + .sw { background: var(--accent); }
.split-toggle input:checked + .sw::after { transform: translateX(18px); }
.split-toggle input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.split-toggle b { display: block; font-size: 15px; }
.split-toggle small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
form.split .split-toggle { border-color: var(--accent); background: var(--accent-bg); }
.tour-form input[readonly] { background: #f3f5f3; color: var(--accent-dark); font-weight: 700; }
.stop-row { grid-template-columns: 28px 1fr 32px; }
.stop-extra { display: none; grid-column: 2 / 3; grid-template-columns: 1.3fr 1fr .7fr; gap: 6px; margin-bottom: 6px; }
form.split .stop-extra { display: grid; }
.stop-extra input { margin: 0; padding: 8px 10px; font-size: 14px; }
form.split .stop-row { background: #fafbfa; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 2px 8px; }
.stop-head { display: none; }
.ldm-info { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; background: #eef4fb; color: #1e4b7a; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin-top: 10px; }
.ldm-info .free { margin-left: auto; color: var(--accent-dark); }
.ldm-info.over { background: #fdecec; color: #8f1d1d; } .ldm-info.over .free { color: #c62828; }
.nachtrag { background: var(--amber-bg); color: #6b4300; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin: 6px 0 8px; line-height: 1.4; }
ol.stops small.part { display: block; color: var(--accent-dark); font-weight: 600; font-size: 12px; margin-top: 1px; }
.tour-main small.ldm { color: #1e4b7a; font-weight: 600; }
.tour-main small.ldm.over { color: #c62828; }
.ov-ldm { white-space: nowrap; }
.ov-table td.ov-ldm small.free { color: var(--accent-dark); font-weight: 700; }
.ov-table td.ov-ldm small.over { color: #c62828; font-weight: 700; }
.add-later { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) {
  .ov-table tbody tr { grid-template-areas: "time price" "veh drv" "cust cust" "no ldm" "stops stops"; }
  .ov-table td.ov-ldm { grid-area: ldm; }
}
.stop-extra label { margin: 0; font-weight: 400; min-width: 0; }
.stop-extra label span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; margin: 0 0 2px 2px; }
.stop-extra input { width: 100%; }

/* ---------- Ladung je Ladestelle ---------- */
.stop-row { background: #fafbfa; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 2px 8px; }
.stop-cargo { grid-column: 2 / 3; display: grid; grid-template-columns: 1.6fr .8fr 1fr; gap: 6px; margin-bottom: 6px; }
.stop-cargo label, .stop-extra label { margin: 0; font-weight: 400; min-width: 0; }
.stop-cargo label span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; margin: 0 0 2px 2px; }
.stop-cargo input { width: 100%; margin: 0; padding: 8px 10px; font-size: 14px; }
form.split .stop-extra { border-top: 1px dashed var(--line); padding-top: 6px; }
.cargo-total { background: #f7f8f7; border-radius: 12px; padding: 10px 12px 12px; margin-top: 12px; }
.cargo-head { font-weight: 700; font-size: 14px; }
.cargo-head small { font-weight: 400; color: var(--muted); font-size: 12px; }
.cargo-total label { margin-top: 8px; }
ol.stops small.cargo-line, .ov-table small.cargo-line { display: block; color: #1e4b7a; font-weight: 600; font-size: 12px; margin-top: 1px; }
.stop-cargo { grid-template-columns: 1.5fr .9fr 1fr; }
.stop-cargo label span, .stop-extra label span { letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cargo-total .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Übergewicht ---------- */
.overweight { display: flex; flex-direction: column; gap: 2px; background: #d93636; color: #fff; border-radius: 12px; padding: 11px 14px; margin-top: 10px; font-size: 13.5px; box-shadow: 0 2px 8px rgba(217,54,54,.3); }
.overweight b { font-size: 15px; }
.ldm-info .kgline { flex-basis: 100%; }
.ldm-info .kgline.over { color: #c62828; }

/* ---------- GPS-Ortung ---------- */
.gps-status { background: var(--accent-bg); color: var(--accent-dark); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.gps-status.bad { background: var(--amber-bg); color: #6b4300; }
.gps-status small { font-size: 12.5px; }
.chip.gps-chip { background: #eef4fb; color: #1e4b7a; border: 0; font-weight: 700; cursor: pointer; }
.live-list { margin-top: 10px; }
.live-list .row { width: 100%; text-align: left; font: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); gap: 10px; }
.live-list .row .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.live-list .row .plate { font-size: 13px; padding: 1px 7px; border-left-width: 6px; }
.live-list .row.stale { opacity: .6; }
.ldm-list .plate { font-size: 13px; padding: 1px 7px; border-left-width: 6px; flex: none; }
.map-box.big { height: min(62vh, 620px); }
.live-list .row.free-dev { display: flex; align-items: center; }
.gps-assign { width: auto; max-width: 46%; margin: 0; padding: 7px 10px; font-size: 13.5px; flex: none; }
.live-list .row.flash { background: #fff4d0; transition: background .3s; }
@media (max-width: 520px) { .live-list .row.free-dev { flex-wrap: wrap; } .gps-assign { max-width: 100%; width: 100%; } }

/* ---------- Tageskarte: Fahrer auswählen ---------- */
.day-map-card .map-head { margin-bottom: 8px; }
.drv-picks { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.drv-pick { flex: none; display: flex; gap: 9px; align-items: flex-start; text-align: left; max-width: 260px; background: #fafafa; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; font: inherit; color: inherit; transition: opacity .15s, border-color .15s; }
.drv-pick i { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 3px; }
.drv-pick b { display: block; font-size: 14px; white-space: nowrap; }
.drv-pick small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.drv-pick small.km { color: var(--text); font-weight: 600; }
.drv-pick.on { border-color: var(--text); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.drv-pick.all.on { border-color: var(--accent); background: var(--accent-bg); }
.drv-pick.off { opacity: .5; }
@media (min-width: 900px) { .drv-picks { flex-wrap: wrap; overflow: visible; } }
.day-map-card .map-head { flex-wrap: wrap; gap: 2px 10px; }

/* ---------- Adressvorschläge ---------- */
.stop-row { position: relative; }
.sugg { position: absolute; z-index: 30; background: #fff; border: 1px solid #d9dcd9; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.16); overflow: hidden; max-height: 340px; overflow-y: auto; }
.sugg .sg { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f0f1f0; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.sugg .sg:hover, .sugg .sg.on { background: var(--accent-bg); }
.sugg .sg b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.sugg .sg b mark { background: none; color: inherit; font-weight: 800; }
.sugg .sg small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.sg-pin { flex: none; width: 16px; height: 16px; margin-top: 2px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5e5e' stroke-width='2'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); }
.sg-pin.own { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23268a37' stroke-width='2.2'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3 2'/%3E%3C/svg%3E"); }
.sg-msg { padding: 12px; color: var(--muted); font-size: 13.5px; }
.sg-attr { padding: 6px 12px; font-size: 10.5px; color: var(--muted); background: #fafafa; text-align: right; }

/* ---------- Umsatz je Fahrer ---------- */
.month-label { font-family: var(--head); font-size: 17px; }
.rev-list { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; }
.rev-row { display: grid; grid-template-columns: 28px minmax(170px, 1.2fr) 1.6fr minmax(150px, auto); gap: 14px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 13px 16px; font: inherit; color: inherit; cursor: pointer; }
.rev-row:hover { background: #f8faf8; }
.rev-rank { font-family: var(--head); font-weight: 700; color: var(--muted); text-align: center; }
.rev-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.rev-name i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.rev-name small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; padding-left: 19px; }
.rev-bar { height: 10px; background: #eef0ee; border-radius: 99px; overflow: hidden; }
.rev-bar span { display: block; height: 100%; border-radius: 99px; }
.rev-sum { text-align: right; }
.rev-sum b { font-family: var(--head); font-size: 17px; display: block; }
.rev-sum small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
@media (max-width: 700px) {
  .rev-row { grid-template-columns: 22px 1fr auto; grid-template-areas: "rank name sum" ". bar bar"; gap: 6px 10px; }
  .rev-rank { grid-area: rank; } .rev-name { grid-area: name; } .rev-sum { grid-area: sum; } .rev-bar { grid-area: bar; height: 8px; }
  .rev-sum small { display: none; }
}
.rev-name b { flex: 1 1 0; min-width: 0; }

/* ---------- Übersicht: aufklappbarer Tourplan ---------- */
.cp-list { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; margin-bottom: 18px; }
.cp-item { border-bottom: 1px solid var(--line); }
.cp-item.bad { box-shadow: inset 4px 0 0 #d93636; }
.cp-row { display: grid; grid-template-columns: 56px minmax(150px, 1fr) 2fr auto 22px; gap: 14px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 12px 16px; font: inherit; color: inherit; cursor: pointer; }
.cp-row:hover { background: #f8faf8; }
.cp-time { font-family: var(--head); font-weight: 700; font-size: 16px; }
.cp-who { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 8px; min-width: 0; }
.cp-who i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cp-who b { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-who small { flex-basis: 100%; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.cp-cust { min-width: 0; }
.cp-cust b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-cust small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-price { font-weight: 700; white-space: nowrap; text-align: right; }
.cp-chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; justify-self: center; }
.cp-item.open .cp-chev { transform: rotate(-135deg); margin-top: 4px; }
.cp-item.open .cp-row { background: #f6f8f6; }
.cp-detail { padding: 4px 16px 14px 86px; background: #f6f8f6; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; }
.cp-kv > span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-bottom: 1px; }
.cp-kv div { font-size: 14px; }
.cp-kv.wide { margin-top: 10px; }
.cp-foot { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--accent-bg); color: var(--accent-dark); font-size: 15px; font-weight: 700; }
@media (max-width: 700px) {
  .cp-row { grid-template-columns: 46px 1fr auto 16px; grid-template-areas: "time who price chev" "time cust cust cust"; gap: 4px 10px; padding: 12px 14px; }
  .cp-time { grid-area: time; align-self: start; } .cp-who { grid-area: who; } .cp-cust { grid-area: cust; } .cp-price { grid-area: price; } .cp-chev { grid-area: chev; }
  .cp-who small { display: none; }
  .cp-detail { padding: 4px 14px 14px; }
}

.section-title .link + .link { margin-left: 14px; }
@media (max-width: 520px) { .cp-head .count { display: none; } .cp-head .link { font-size: 13px; } }
.stat.money b { font-size: clamp(22px, 2.3vw, 30px); line-height: 33px; }

/* ---------- Urlaub: Überschneidungen & bald Urlaub ---------- */
.row small.overlap { color: var(--amber); font-weight: 700; }
.row small.overlap.ok { color: var(--accent-dark); }
.ok-note { background: var(--accent-bg); color: var(--accent-dark); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.overlap-list .cell { flex: none; }
small.vac-soon { display: block; color: #1e5fbf !important; font-weight: 700; }
.tour-main small.vac-soon { background: #eaf1fd; border-radius: 8px; padding: 4px 8px; margin-top: 6px; display: inline-block; }
.chip.big.vac { border-color: #9dbcf0; background: #f3f7fe; }
.chip.big small.vac-soon { font-size: 11.5px; margin-top: 2px; }
.overlap-box { background: var(--amber-bg); color: #5a3a00; border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 14px; }
.overlap-box.ok { background: var(--accent-bg); color: var(--accent-dark); }
.overlap-box .ov-line { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.overlap-box .ov-line .cell { flex: none; }
.overlap-box small { display: block; margin-top: 8px; font-size: 12.5px; }

/* ---------- Dieselpreis ---------- */
.diesel-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diesel-head div { background: #f6f8f6; border-radius: 12px; padding: 12px; }
.diesel-head span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.diesel-head b { font-family: var(--head); font-size: 26px; }
.diesel-head b.g { color: var(--accent-dark); }
a.row.click { color: inherit; text-decoration: none; }

/* ---------- Rückfahrt ---------- */
.stop-btns { display: flex; gap: 8px; margin: 8px 0 4px 36px; }
.stop-btns .stop-add { margin: 0; }
.stop-row.home { background: #eef4fb; border-color: #c9dbf3; }
.stop-row.home::before { content: ""; background: #1e5fbf no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E"); }
.stop-row.home .stop-cargo, .stop-row.home .stop-extra { display: none !important; }
.stop-row.home input[readonly] { background: #fff; color: #1e4b7a; font-weight: 700; }
ol.stops li.home::before { content: ""; background: #1e5fbf no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E"); }
.home-label { padding: 6px 2px; min-width: 0; }
.home-label b { display: block; color: #1e4b7a; font-size: 15px; }
.home-label small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-row.home { padding-bottom: 8px; }
.stop-btns { flex-wrap: wrap; }
.stop-row.home.start { background: #eef4fb; }
.stop-row.home::before { counter-increment: none; }

/* ---------- Tour planen: am PC breit und zweispaltig ---------- */
@media (min-width: 1000px) {
  dialog#sheet.wide { width: min(1180px, 95vw); }
  dialog#sheet.wide #sheet-body { padding: 26px 30px 24px; }
  .tf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "s1 s3" "s2 s3" "s4 s3" "s5 s3"; grid-template-rows: auto auto auto 1fr; column-gap: 34px; align-items: start; }
  .tf-s1 { grid-area: s1; } .tf-s2 { grid-area: s2; } .tf-s3 { grid-area: s3; } .tf-s4 { grid-area: s4; } .tf-s5 { grid-area: s5; }
  .tf-s3 > .form-group:first-child { margin-top: 8px; border-top: 0; padding-top: 0; }
  .tf-s3 { background: #fafbfa; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; }
  .tour-form .btn-row { position: sticky; bottom: -24px; background: var(--card); padding: 12px 0 4px; margin-top: 14px; z-index: 5; }
}

/* ---------- Planung: kompakte Tourenliste ---------- */
.cp-tools { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.cp-row { cursor: pointer; }
.cp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cp-row.plan { grid-template-columns: 56px minmax(150px, 1fr) minmax(0, 1.8fr) auto auto auto 22px; }
.cp-flags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cp-flag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #eef0ee; color: var(--muted); white-space: nowrap; }
.cp-flag.bad { background: #fdecec; color: #c62828; }
.cp-flag.vac { background: #eaf1fd; color: #1e5fbf; }
.cp-edit { white-space: nowrap; }
.cp-vac { background: #eaf1fd; color: #1e5fbf; font-weight: 700; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: 13.5px; }
.plan-list { margin-bottom: 14px; }
@media (max-width: 900px) {
  .cp-row.plan { grid-template-columns: 46px 1fr auto 16px; grid-template-areas: "time who price chev" "time cust cust cust" "time flags flags flags"; gap: 4px 10px; }
  .cp-row.plan .cp-time { grid-area: time; align-self: start; } .cp-row.plan .cp-who { grid-area: who; } .cp-row.plan .cp-cust { grid-area: cust; }
  .cp-row.plan .cp-price { grid-area: price; } .cp-row.plan .cp-chev { grid-area: chev; } .cp-row.plan .cp-flags { grid-area: flags; justify-content: flex-start; }
  .cp-row.plan .cp-edit { display: none; }
}
.cp-flags:empty { display: none; }

/* ---------- Karte: Touch, Vollbild ---------- */
.mm-tiles img { transform-origin: 0 0; }
.mm-ctrl button { min-width: 40px; height: 40px; display: grid; place-items: center; }
.mm-ctrl button[data-fit] { height: 34px; }
.minimap.mm-full { position: fixed !important; inset: 0; z-index: 2000; border-radius: 0; height: 100% !important; margin: 0 !important; touch-action: none; }
.minimap.mm-full .mm-ctrl { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.minimap.mm-full .mm-ctrl button { min-width: 46px; height: 46px; font-size: 22px; }
html.mm-lock, html.mm-lock body { overflow: hidden; }
@media (hover: none) { .minimap .mm-ctrl button { min-width: 44px; height: 44px; font-size: 20px; } }
.minimap.mm-full .mm-ctrl button[data-fit] { font-size: 14px; }

/* ---------- Fahrer: Benachrichtigungen einschalten ---------- */
.card.gate { text-align: center; padding: 26px 20px 20px; margin-top: 10px; }
.gate-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; }
.card.gate h2 { justify-content: center; font-size: 21px; margin-bottom: 8px; }
.card.gate p { color: var(--muted); line-height: 1.45; margin: 0 0 16px; }
.btn.big { padding: 15px; font-size: 17px; }
.gate-small { font-size: 12.5px; margin-top: 10px !important; }
.gate-steps { text-align: left; margin: 0 0 16px; padding-left: 22px; line-height: 1.5; }
.gate-steps li { margin-bottom: 8px; }
.gate-skip { display: block; margin: 18px auto 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; height: calc(100vh - 130px); min-height: 480px; }
.chat-side { display: flex; flex-direction: column; min-height: 0; }
.chat-side-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.chat-search { margin: 0 0 8px; }
.chat-threads { flex: 1; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.chat-thread { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.chat-thread:hover { background: #f8faf8; }
.chat-thread.on { background: var(--accent-bg); }
.chat-thread .main { flex: 1; min-width: 0; }
.chat-thread .main b { display: block; }
.chat-thread .main small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread.unread .main b, .chat-thread.unread .main small { color: var(--text); font-weight: 700; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-meta small { color: var(--muted); font-size: 11.5px; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; }
.chat-none { margin: auto; color: var(--muted); padding: 30px; text-align: center; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-head .main { flex: 1; min-width: 0; } .chat-head .main b { display: block; } .chat-head .main small { color: var(--muted); font-size: 12.5px; }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f3f5f3; display: flex; flex-direction: column; gap: 6px; }
.chat-empty { margin: auto; color: var(--muted); text-align: center; padding: 20px; }
.chat-day { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--muted); background: #e6e9e6; border-radius: 99px; padding: 3px 10px; margin: 8px 0 4px; }
.msg { max-width: min(78%, 520px); align-self: flex-start; background: #fff; border-radius: 16px 16px 16px 4px; padding: 7px 11px 5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg.mine { align-self: flex-end; background: #dff3e3; border-radius: 16px 16px 4px 16px; }
.msg-who { display: block; font-size: 11.5px; font-weight: 700; color: var(--accent-dark); margin-bottom: 1px; }
.msg-text { font-size: 15px; line-height: 1.4; white-space: normal; word-wrap: break-word; }
.msg-time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; margin: 0; min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 16px; line-height: 1.35; }
.chat-form .btn { border-radius: 22px; height: 44px; padding: 0 18px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 150px); }
  .chat.has-thread .chat-side { display: none; }
  .chat:not(.has-thread) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
}
/* Fahrer: Chat als Vollbild */
dialog#sheet.chat-mode { width: min(640px, 100%); height: min(92vh, 900px); }
dialog#sheet.chat-mode #sheet-body { padding: 0; height: 100%; max-height: none; overflow: hidden; }
.chat-sheet { display: flex; flex-direction: column; height: 100%; }
.chat-sheet .avatar { font-size: 11px; }
@media (max-width: 600px) { dialog#sheet.chat-mode { height: 100dvh; max-height: 100dvh; border-radius: 0; } .chat-sheet .chat-form { padding-bottom: calc(10px + var(--safe-b)); } }
.card.chat-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; }
.chat-card-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; flex: none; }
.chat-card-icon svg { width: 22px; height: 22px; }
.card.chat-card .main { flex: 1; min-width: 0; }
.card.chat-card .main b { display: block; }
.card.chat-card .main small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.chat-card.unread { box-shadow: 0 0 0 2px var(--accent) inset; }

/* ---------- Dashboard: Arbeitszeiten aufklappbar, Hinweise ---------- */
details.clock-today { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin: 18px 0; overflow: hidden; }
details.clock-today > summary { list-style: none; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 13px 16px; cursor: pointer; }
details.clock-today > summary::-webkit-details-marker { display: none; }
details.clock-today > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details.clock-today[open] > summary::after { transform: rotate(-135deg); }
.ct-title { font-family: var(--head); font-weight: 700; font-size: 15px; }
.ct-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.ct { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 9px; }
.ct.on { background: var(--accent-bg); color: var(--accent-dark); }
.ct.done { background: #eef0ee; color: var(--muted); }
.ct.none { background: var(--amber-bg); color: var(--amber); }
.ct-body { border-top: 1px solid var(--line); }
.ct-tools { display: flex; justify-content: flex-end; padding: 8px 16px 0; }
.ct-body .list { box-shadow: none; border-radius: 0; }
details.more-alerts > summary { cursor: pointer; padding: 10px 14px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- Schließen-X in Pop-ups ---------- */
dialog#sheet { position: fixed; }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 20; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f0f1f0; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sheet-x:hover { background: #e3e5e3; }
#sheet-body > h3:first-child, #sheet-body > .nachtrag:first-child { padding-right: 46px; }
#sheet-body h3 { padding-right: 46px; }
dialog#sheet.chat-mode .sheet-x { display: none; }

/* ---------- Kalender: 5-Tage-Übersicht ---------- */
table.week5 th, table.week5 td { text-align: center; }
table.week5 td.name { text-align: left; }
table.week5 td.today, table.week5 th.today { background: #f1f8f2; }
.dcell { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 78px; min-height: 34px; border-radius: 8px; padding: 4px 6px; font-weight: 700; font-size: 13px; line-height: 1.15; }
.dcell small { font-weight: 600; font-size: 10.5px; opacity: .8; }
.dcell .cs { display: none; }
.dcell.da { background: var(--accent-bg); color: var(--accent-dark); }
.dcell.vac { background: var(--blue-bg); color: var(--blue); }
.dcell.sick { background: var(--red-bg); color: var(--red); }
.dcell.edu { background: var(--purple-bg); color: var(--purple); }
.dcell.bad { background: #3a1010; color: #fff; }
.dcell.oth, .dcell.hol { background: #eeeeee; color: #666; }
.dcell.offen { background: var(--amber-bg); color: var(--amber); }
table.week5 tfoot td { padding-top: 10px; font-size: 13px; color: var(--accent-dark); border-top: 2px solid var(--line); }
.legend .dcell { min-width: 0; min-height: 0; padding: 2px 8px; vertical-align: middle; }
@media (max-width: 700px) {
  .dcell { min-width: 38px; min-height: 30px; padding: 3px 2px; font-size: 12px; }
  .dcell .cw { display: none; } .dcell .cs { display: inline; }
  .dcell small { display: none; }
  table.week5 td.name { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
}

/* ---------- Auswertung ---------- */
.fin-tabs { margin: 0 0 14px; }
.fin-stats .stat small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fin-stats .stat small.up { color: var(--accent-dark); font-weight: 700; } .fin-stats .stat small.down { color: #c62828; font-weight: 700; }
.fin-warn { background: var(--amber-bg); color: #5a3a00; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; display: grid; gap: 3px; }
.fin-warn .link { justify-self: start; margin-top: 4px; }
.card.fin-costs { padding: 14px 16px; }
.fin-bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: #eef0ee; }
.fin-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 18px; margin-top: 12px; font-size: 14px; }
.fin-legend span { display: flex; align-items: center; gap: 8px; }
.fin-legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.fin-legend b { margin-left: auto; } .fin-legend small { color: var(--muted); width: 38px; text-align: right; }
.table-wrap.card { padding: 0; overflow-x: auto; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fin-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 10px 12px; background: #f6f7f6; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fin-table th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
.fin-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fin-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.fin-table .r { text-align: right; }
.fin-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.fin-table .pos { color: var(--accent-dark); } .fin-table .neg { color: #c62828; }
.fin-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.fin-rows .fin-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); margin: 0; font-weight: 400; }
.fin-row .main { flex: 1; min-width: 0; } .fin-row .main b { display: block; } .fin-row .main small { color: var(--muted); font-size: 12.5px; }
.money-in { width: 130px; margin: 0; text-align: right; }
.fin-row .eur { color: var(--muted); }
.fin-row.other input:first-child { flex: 1; margin: 0; }
.fin-veh td input.money-in { width: 120px; }
.fin-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); margin-top: 14px; }
@media (max-width: 700px) { .money-in { width: 100px; } .fin-veh td input.money-in { width: 90px; } }

.cust-stat { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cust-stat b { color: var(--text); } .cust-stat small { display: block; font-size: 11.5px; }
.cust-sugg { z-index: 40; }

/* ---------- Prüfliste ---------- */
.checklist { border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.checklist.ok { background: var(--accent-bg); color: var(--accent-dark); }
.checklist.warn { background: var(--amber-bg); color: #5a3a00; }
.checklist.bad { background: #fdecec; color: #8f1d1d; }
.checklist .list { margin-top: 8px; background: #fff; border-radius: 10px; color: var(--text); }
.chk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chk-dot.err { background: #d93636; } .chk-dot.warn { background: #e0a43a; } .chk-dot.info { background: #2563eb; }

/* ---------- Kopieren & Suche ---------- */
.copy-opts { display: grid; gap: 8px; }
.copy-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; font-weight: 400; cursor: pointer; }
.copy-opt input[type=radio] { margin-top: 3px; width: auto; }
.copy-opt span { flex: 1; } .copy-opt b { display: block; } .copy-opt small { display: block; color: var(--muted); }
.copy-opt input[type=date] { margin-top: 6px; }
.copy-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 12px; } label.check input { width: auto; }
.search-btn { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.search-in { font-size: 17px; padding: 12px 14px; margin-top: 8px; }
.search-res .section-title { margin-top: 14px; }
@media (max-width: 520px) { .search-btn span { display: none; } }
.toast-btn { margin-left: 12px; background: none; border: 0; color: #9be3a8; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; }
.cp-flag.warn { background: var(--amber-bg); color: var(--amber); }
#toast.show:has(.toast-btn) { pointer-events: auto; }

/* ---------- Hilfe, Erste Schritte, Übungsmodus ---------- */
.icon-btn.help-btn { width: 38px; padding: 0; font-weight: 800; font-size: 17px; margin-right: 6px; }
.help-list { padding-left: 20px; line-height: 1.55; } .help-list li { margin-bottom: 8px; }
.card.steps { padding: 14px 16px; }
.steps-head { display: flex; align-items: baseline; gap: 10px; } .steps-head b { font-family: var(--head); font-size: 16px; } .steps-head small { color: var(--muted); } .steps-head .link { margin-left: auto; }
.steps-bar { height: 8px; background: #eef0ee; border-radius: 99px; overflow: hidden; margin: 10px 0 12px; } .steps-bar span { display: block; height: 100%; background: var(--accent); }
.steps-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.step { display: flex; align-items: center; gap: 8px; text-align: left; background: #fafbfa; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; cursor: pointer; color: inherit; }
.step-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9cdc9; flex: none; }
.step.ok { color: var(--muted); } .step.ok .step-dot { background: var(--accent) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); border-color: var(--accent); }
.practice-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #7c3aed; color: #fff; padding: 8px 16px; font-size: 13.5px; }
.practice-bar b { text-transform: uppercase; letter-spacing: 1px; } .practice-bar span { opacity: .9; flex: 1; }
.practice-bar button { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.top .title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn.help-btn, .icon-btn.search-btn { height: 38px; min-width: 38px; display: inline-grid; place-items: center; flex: none; }
.icon-btn.search-btn { display: inline-flex; }
@media (max-width: 520px) { .icon-btn.help-btn { margin-right: 4px; } .icon-btn.search-btn { margin-right: 4px; padding: 0 10px; } .top .title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } }
@media (max-width: 760px) { .icon-btn.help-btn { display: none; } }
.row.more-help { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; font: inherit; text-align: left; }
.more-help .more-icon { font-weight: 800; font-size: 18px; display: grid; place-items: center; }

/* ---------- Rechte, Fahrzeugkosten & -dokumente ---------- */
.rights-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 14px; }
.rights-list label.check { margin-top: 6px; font-weight: 500; }
.doc-cat { font-size: 11px; font-weight: 700; background: #eef0ee; color: var(--muted); border-radius: 6px; padding: 3px 7px; flex: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Fuhrpark ---------- */
.fleet-actions { margin: 0 0 10px; }
.fleet-list { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; }
.fleet-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 14px; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; font: inherit; color: inherit; cursor: pointer; }
.fleet-row:hover { background: #f8faf8; }
.fleet-row .plate { font-size: 14px; padding: 2px 8px; border-left-width: 7px; }
.fleet-main b { display: block; }
.fleet-docs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.dchip { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 8px; background: #eef0ee; color: var(--muted); }
.dchip.ok { background: var(--accent-bg); color: var(--accent-dark); }
.dchip.miss { background: #fdecec; color: #c62828; }
.fleet-dl { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; color: var(--muted); }
.fleet-cost { text-align: right; } .fleet-cost b { display: block; } .fleet-cost small { color: var(--muted); font-size: 11.5px; }
.doc-missing { background: #fdecec; color: #8f1d1d; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .fleet-row { grid-template-columns: auto minmax(0, 1fr) 14px; grid-template-areas: "plate main chev" "dl dl dl" "cost cost cost"; gap: 6px 10px; }
  .fleet-row .plate { grid-area: plate; } .fleet-main { grid-area: main; } .fleet-row > .muted { grid-area: chev; }
  .fleet-dl { grid-area: dl; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
  .fleet-dl:empty { display: none; }
  .fleet-cost { grid-area: cost; text-align: left; display: flex; gap: 6px; align-items: baseline; }
}
/* Betrag + "pro Jahr/Monat" nebeneinander */
.amt-per { display: flex; gap: 6px; }
.amt-per input { flex: 1; min-width: 0; }
.amt-per select { width: auto; flex: 0 0 auto; }
.fix-sum { background: var(--soft, #f6f7f9); border-radius: 10px; margin-bottom: 8px; }
/* ---------- Auftragsverwaltung ---------- */
.order-filter { margin: 10px 0 8px; flex-wrap: wrap; }
.order-filter small { opacity: .7; font-weight: 600; margin-left: 2px; }
.order-row { align-items: flex-start; gap: 12px; }
.order-no { min-width: 84px; display: flex; flex-direction: column; }
.order-no b { font-family: var(--head); font-size: 15px; }
.order-no small { color: var(--muted); font-size: 12.5px; }
.order-specials { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.order-specials span { background: var(--soft, #f1f3f5); border-radius: 99px; padding: 1px 8px; font-size: 11.5px; color: var(--text); }
.order-price { align-self: center; }
.order-row .pill { align-self: center; }
@media (max-width: 600px) { .order-row { flex-wrap: wrap; } .order-row .main { flex-basis: calc(100% - 100px); } .order-price { margin-left: 96px; } }
.special-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip-check { display: inline-flex; align-items: center; cursor: pointer; margin: 0; font-weight: 500; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; font-size: 13.5px; background: #fff; transition: all .15s; }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.special-add { margin-bottom: 8px; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 12px; }
.check-line input { width: auto; margin: 0; }
.plan-orders { padding: 12px 14px; margin-bottom: 14px; border-left: 4px solid var(--accent); }
.plan-orders-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.plan-orders-head small { color: var(--muted); }
.plan-orders-head .link { margin-left: auto; }
.plan-order { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.plan-order .main { flex: 1; min-width: 0; }
.plan-order .main b { display: block; font-size: 14.5px; }
.plan-order .main small { color: var(--muted); font-size: 12.5px; }
.plan-order.late .main small { color: var(--red); }
.plan-order.today .main b::after { content: ' · heute laden'; color: var(--accent); font-weight: 600; font-size: 12.5px; }
@media (max-width: 600px) { .plan-order { flex-wrap: wrap; } .plan-order .main { flex-basis: 100%; } }
.order-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0; background: var(--soft, #f6f7f9); border-radius: 12px; padding: 14px; }
.order-detail > div { display: flex; flex-direction: column; gap: 2px; }
.order-detail > div.wide { grid-column: 1 / -1; }
.order-detail > div > span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.order-detail b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.order-detail small { font-weight: 500; color: var(--muted); }
@media (max-width: 520px) { .order-detail { grid-template-columns: 1fr; } }
.order-no-in { font-family: var(--head); font-weight: 700; font-size: 17px; background: var(--soft, #f6f7f9); color: var(--accent-dark, #1d6b2b); }
.order-form:not(.monat) .only-monat, .order-form.monat .only-einzel { display: none !important; }
.order-type { margin-bottom: 4px; }
.month-tag { display: inline-block; background: #e8f0fe; color: #1a56c4; border-radius: 99px; padding: 0 8px; font-size: 11.5px; font-weight: 600; margin-right: 4px; }
.order-price small, .cp-price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); text-align: right; }
.month-days { display: flex; flex-wrap: wrap; gap: 4px; }
.month-days i { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.month-days i.done { background: #e9f6ec; border-color: #bfe3c7; }
.month-days i.sub { border-color: #e0a100; background: #fff6e0; }
/* ---------- Planung: zwei Tage nebeneinander ---------- */
.plan-days { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 6px; }
.plan-day { min-width: 0; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 0 2px 8px; }
.pd-head b { display: block; font-family: var(--head); font-size: 18px; }
.pd-head small { color: var(--muted); font-size: 13px; }
.pd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pd-rel { display: inline-block; margin-left: 4px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: #fff4e0; color: #9a6400; }
.pd-rel.ok { background: var(--accent-bg); color: var(--accent-dark); }
.plan-day.next .cp-list { opacity: .97; }
@media (min-width: 1100px) {
  .plan-days { grid-template-columns: 1fr 1fr; align-items: start; }
  /* in den halben Spalten: kompakte Zeilen (Zeit | Fahrer + Kunde | Preis | Bearbeiten) */
  .plan-days .cp-row.plan { grid-template-columns: 50px minmax(0, 1fr) auto auto 14px; grid-template-areas: "time who price edit chev" "time cust cust cust cust" "time flags flags flags flags"; gap: 3px 10px; padding: 11px 14px; }
  .plan-days .cp-row.plan .cp-time { grid-area: time; align-self: start; } .plan-days .cp-row.plan .cp-who { grid-area: who; } .plan-days .cp-row.plan .cp-cust { grid-area: cust; }
  .plan-days .cp-row.plan .cp-price { grid-area: price; } .plan-days .cp-row.plan .cp-chev { grid-area: chev; } .plan-days .cp-row.plan .cp-edit { grid-area: edit; }
  .plan-days .cp-row.plan .cp-flags { grid-area: flags; justify-content: flex-start; }
  .plan-days .cp-who small { padding-left: 18px; }
  .plan-days .cp-detail { padding-left: 64px; }
}
/* ---------- Planung: Dispoplan als Tabelle (wie die Excel-Liste) ---------- */
@media (min-width: 1100px) { .shell main.tab-dispo { max-width: 1900px; padding-left: 28px; padding-right: 28px; } }
.plan-view-toggle { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
.plan-view-toggle .seg { width: auto; }
.plan-view-toggle .seg button { padding: 6px 14px; }
.dispo-sheet { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); }
.dispo-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.dispo-table thead th { background: #fbf3ea; color: #c2560c; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 7px 12px; border-bottom: 2px solid #f0d9c2; }
.dispo-table th:nth-child(1) { width: 20%; } .dispo-table th:nth-child(2) { width: 19%; }
.dispo-table td { vertical-align: top; padding: 7px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid #eef0ee; }
.dispo-table td:last-child { border-right: 0; }
.dispo-table tr.bad td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.dispo-table tr.dp-free td { background: #fcfcfa; color: var(--muted); }
.dp-name b { display: block; font-weight: 700; line-height: 1.3; }
.dp-name small { display: block; color: var(--muted); font-size: 12px; }
.dp-veh > span { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.35; }
.dp-veh b { font-family: var(--head); font-size: 13.5px; letter-spacing: .02em; white-space: nowrap; }
.dp-veh small { color: var(--muted); font-size: 12px; }
.dp-tours { padding: 3px 6px !important; }
.dp-tour { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 4px 6px; font: inherit; color: inherit; cursor: pointer; line-height: 1.35; }
.dp-tour + .dp-tour { border-top: 1px dashed var(--line); border-radius: 0; margin-top: 2px; padding-top: 6px; }
.dp-tour:hover { background: #f4f8f4; }
.dp-tour.add { color: var(--accent); font-weight: 600; font-size: 13px; }
.dp-l1 { display: block; }
.dp-time { font-family: var(--head); font-weight: 700; margin-right: 6px; }
.dp-cust { margin-right: 6px; }
.dp-route { color: #3d4a3f; }
.dp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; }
.dp-meta .pill, .dp-meta .cp-flag { font-size: 11px; padding: 1px 8px; white-space: normal; }
.dp-no { color: var(--muted); font-size: 12px; }
.dp-note { display: block; color: var(--muted); font-size: 12px; font-style: italic; }
.dp-foot { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--accent-bg); color: var(--accent-dark); font-weight: 700; font-size: 14.5px; }
.dp-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.dp-extra:empty { display: none; }
.dp-extra > div > span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #c2560c; margin-bottom: 2px; }
.dp-extra p { margin: 0; line-height: 1.45; }
.dp-extra small { color: var(--muted); }
.dp-extra .wide { grid-column: 1 / -1; }
.dp-fixed { width: 100%; border-collapse: collapse; }
.dp-fixed td { padding: 3px 6px 3px 0; border-bottom: 1px solid #f0f0ee; vertical-align: top; }
.dp-fixed td:first-child { white-space: nowrap; width: 1%; padding-right: 12px; color: var(--muted); font-weight: 600; }
.dp-fixed tr.due td { color: var(--accent-dark); font-weight: 600; }
/* Handy: je Fahrer eine Karte – oben Name + Fahrzeug, darunter die Touren in voller Breite */
@media (max-width: 700px) {
  .dispo-table, .dispo-table tbody { display: block; }
  .dispo-table thead { display: none; }
  .dispo-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name veh" "tours tours"; border-bottom: 1px solid var(--line); padding: 10px 12px 8px; }
  .dispo-table td { display: block; border: 0; padding: 0; background: none !important; }
  .dispo-table tr.bad { box-shadow: inset 4px 0 0 var(--red); }
  .dispo-table tr.bad td:first-child { box-shadow: none; }
  .dispo-table tr.dp-free { background: #fcfcfa; }
  .dp-name { grid-area: name; } .dp-name b { font-size: 15.5px; }
  .dp-veh { grid-area: veh; text-align: right; }
  .dp-veh > span { justify-content: flex-end; gap: 5px; }
  .dp-veh b { font-size: 12.5px; }
  .dp-tours { grid-area: tours; margin-top: 6px; padding: 0 !important; }
  .dp-tour { padding: 7px 10px; background: #f6f8f6; border-radius: 10px; }
  .dp-tour + .dp-tour { border-top: 0; border-radius: 10px; margin-top: 6px; padding-top: 7px; }
  .dp-tour.add { background: none; padding: 2px 0; }
  .dispo-table tr.dp-free .dp-tours { margin-top: 2px; }
  .dp-extra { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .plan-order { flex-wrap: nowrap; padding: 7px 0; }
  .plan-order .main { flex-basis: auto; }
  .plan-order .main small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .plan-order .po-details { display: none; }
  .plan-orders { padding: 10px 12px; }
}
/* freie Lademeter im Dispoplan */
.dp-ldm { display: inline-flex; align-items: baseline; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.dp-ldm small { font-weight: 500; opacity: .75; font-size: 10.5px; }
.dp-ldm.ok { background: #e6f4ea; color: #1d6b2b; }
.dp-ldm.full { background: #fff4e0; color: #9a6400; }
.dp-ldm.over { background: #fdecec; color: #c62828; }
.dp-ldm.none { background: #f1f2f1; color: var(--muted); font-weight: 600; }
.dp-tour.add .dp-ldm { margin-left: 6px; }
.dp-foot-ldm { font-weight: 600; }
/* Teilpartie */
.order-form:not(.partial) .partial-cargo { display: none; }
.tp-tag { display: inline-block; background: #f3e8ff; color: #6b21a8; border-radius: 99px; padding: 0 8px; font-size: 11.5px; font-weight: 700; }
.row.tp-nofit { opacity: .72; }
.row .main small .dp-ldm { margin-right: 4px; }
.order-form.partial .split-toggle { border-color: var(--accent); background: var(--accent-bg); }
/* ---------- Planung vereinfacht: offene Aufträge je Tag ---------- */
.plan-nav .date-pick b { font-size: 17px; }
.plan-today { text-align: center; margin: -6px 0 10px; }
.pd-orders { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.pd-orders.none { border-left-color: var(--line); color: var(--muted); font-size: 13.5px; padding: 8px 12px; }
.pd-orders-head { font-weight: 700; margin-bottom: 4px; }
.po-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.po-row:first-of-type { border-top: 0; }
.po-row .main { flex: 1; min-width: 0; }
.po-row .main b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-row .main small { color: var(--muted); font-size: 12.5px; }
.po-row.late { background: #fff8f8; }
.po-act { display: flex; align-items: center; gap: 6px; flex: none; }
.po-act select { width: 200px; margin: 0; padding: 7px 8px; font-size: 13.5px; }
.po-skip { font-size: 12.5px; color: var(--muted); }
.pd-print { display: flex; gap: 16px; justify-content: flex-end; margin: -8px 2px 8px; font-size: 13px; }
.plan-day .release { margin-bottom: 10px; }
@media (min-width: 1100px) and (max-width: 1500px) { .po-row { flex-wrap: wrap; } .po-row .main { flex-basis: 100%; } .po-act { width: 100%; } .po-act select { flex: 1; width: auto; } }
@media (max-width: 700px) { .po-row { flex-wrap: wrap; } .po-row .main { flex-basis: 100%; } .po-act { width: 100%; } .po-act select { flex: 1; width: auto; } }
.po-act { min-width: 0; max-width: 100%; }
.po-act select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 700px) { .po-act select { flex: 1 1 0; } .plan-day, .pd-orders, .po-row, .po-row .main { min-width: 0; max-width: 100%; } }
/* ---------- Auslastung (Lademeter) + Auftrag zuordnen ---------- */
.dispo-table th:nth-child(1) { width: 17%; } .dispo-table th:nth-child(2) { width: 15%; } .dispo-table th:nth-child(3) { width: 22%; }
.lbar-wrap { display: flex; flex-direction: column; gap: 3px; }
.lbar { position: relative; height: 10px; border-radius: 99px; background: #eceeec; overflow: visible; }
.lbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #9fb3c8; }
.lbar.mid i { background: #7cc48b; } .lbar.good i { background: #1f8a3a; } .lbar.over i { background: var(--red); } .lbar.low i { background: #a9b7c6; }
.lbar-goal { position: absolute; left: 80%; top: -3px; bottom: -3px; width: 2px; background: #2b3a2e; opacity: .55; border-radius: 1px; }
.lbar-txt { font-size: 12px; color: var(--text); line-height: 1.3; }
.lbar-txt b { font-family: var(--head); font-size: 13px; }
.pd-orders-head small { font-weight: 500; color: var(--muted); margin-left: 8px; font-size: 12px; }
.oc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 6px; }
.oc { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.oc:hover { border-color: #b9d8c0; }
.oc.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(38,138,55,.15); background: #fbfefb; }
.oc.late { border-left: 4px solid var(--red); }
.oc-top { display: flex; gap: 10px; align-items: center; }
.oc-ldm { flex: none; min-width: 52px; text-align: center; font-family: var(--head); font-weight: 800; font-size: 20px; line-height: 1; color: #5b21b6; background: #f3e8ff; border-radius: 10px; padding: 6px 6px 4px; }
.oc-ldm small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.oc-main { flex: 1; min-width: 0; }
.oc-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.oc-main small { color: var(--muted); font-size: 12px; }
.oc-info { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: italic 700 13px Georgia, serif; color: var(--muted); cursor: pointer; }
.oc-fits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; font-size: 12px; }
.fit-btn { border: 1px solid #bfe3c7; background: #eef8f0; color: #1d6b2b; border-radius: 99px; padding: 4px 10px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.fit-btn small { font-weight: 500; opacity: .85; }
.fit-btn:hover { background: #dff1e3; }
.fit-here { display: block; width: 100%; margin-top: 6px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; border-radius: 9px; padding: 5px 8px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; text-align: left; }
.fit-here small { display: block; font-weight: 500; opacity: .9; font-size: 11.5px; }
.fit-no { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.dispo-table.picking tr.fit td { background: #f3fbf5; }
.dispo-table.picking tr.nofit td { opacity: .5; }
@media (max-width: 700px) {
  .dispo-table tr { grid-template-areas: "name veh" "load load" "tours tours"; }
  .dp-load { grid-area: load; margin-top: 6px; }
  .oc-list { grid-template-columns: 1fr; }
}
/* Be-/Entladestellen je Tour */
.dp-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 2px; margin-top: 3px; }
.stp { display: inline-flex; align-items: baseline; gap: 3px; font-size: 12px; padding: 1px 7px; border-radius: 7px; background: #f1f2f1; color: var(--text); white-space: nowrap; }
.stp i { font-style: normal; font-size: 9px; }
.stp b { font-weight: 700; }
.stp small { font-size: 10.5px; color: var(--muted); margin-left: 2px; }
.stp small::before { content: "auf LKW "; }
.stp.load { background: #e7f4ea; color: #1d6b2b; }
.stp.unload { background: #fdf0e3; color: #9a4d00; }
.stp.home { background: none; color: var(--muted); font-weight: 600; padding: 1px 2px; }
.stp-arr { color: #b5bbb5; font-size: 12px; }
.dp-steps + .dp-route { display: block; }
/* Schieberegler "abgerechnet" */
.bill-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; font-weight: 400; flex: none; align-self: center; }
.bill-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.bill-toggle .sw { flex: none; width: 40px; height: 23px; border-radius: 99px; background: #e3b4b4; position: relative; transition: background .15s; }
.bill-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.bill-toggle input:checked + .sw { background: var(--accent); }
.bill-toggle input:checked + .sw::after { transform: translateX(17px); }
.bill-toggle input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.bill-txt b { display: block; font-size: 13px; color: #b42318; }
.bill-toggle.on .bill-txt b { color: var(--accent-dark); }
.bill-txt small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.order-detail .bill-toggle { margin-top: 2px; }
@media (max-width: 600px) { .order-row .bill-toggle { margin-left: 96px; } }
/* Knopf + Fenster "Offene Aufträge" */
.plan-open-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.big-open { font-size: 16px; padding: 11px 20px; }
.big-open .count { background: rgba(255,255,255,.25); color: inherit; margin-left: 6px; }
.btn.ghost.big-open .count { background: #eceeec; }
.pick-hint { font-size: 13.5px; color: var(--accent-dark); background: var(--accent-bg); border-radius: 10px; padding: 7px 12px; }
.oo-group { margin-top: 16px; }
.oo-head { font-family: var(--head); font-weight: 700; font-size: 16px; margin-bottom: 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.oo-head small { font-family: inherit; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.oo-row { display: grid; grid-template-columns: 78px 58px minmax(0, 1fr); grid-template-areas: "date ldm main" ". . act"; gap: 4px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.oo-row.late .oo-date b { color: var(--red); }
.oo-date { grid-area: date; } .oo-date b { display: block; font-size: 13.5px; } .oo-date small { font-size: 11.5px; }
.oo-row .oc-ldm { grid-area: ldm; }
.oc-ldm.m { font-size: 13px; padding: 10px 4px; }
.oo-main { grid-area: main; min-width: 0; } .oo-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .oo-main small { color: var(--muted); font-size: 12.5px; }
.oo-act { grid-area: act; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (min-width: 900px) { .oo-row { grid-template-columns: 84px 58px minmax(0, 1fr) auto; grid-template-areas: "date ldm main act"; } .oo-act { justify-content: flex-end; max-width: 520px; } }
@media (max-width: 600px) { .oo-row { grid-template-columns: 64px 52px minmax(0, 1fr); grid-template-areas: "date ldm main" "act act act"; } }
.order-form.partial .split-toggle { border-color: var(--accent); background: var(--accent-bg); }
/* Stationen verschieben + Rolle (Laden/Entladen) im Tourformular */
.stop-row, form.split .stop-row { grid-template-columns: 28px minmax(0, 1fr) auto 32px; }
.stop-row.home { grid-template-columns: 28px minmax(0, 1fr) 32px; }
.stop-mv { display: inline-flex; gap: 2px; }
.stop-mv button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 14px; line-height: 1; cursor: pointer; color: var(--text); padding: 0; }
.stop-mv button:hover { border-color: var(--accent); color: var(--accent-dark); }
.stop-role { grid-column: 2 / -1; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 7px; justify-self: start; margin-top: -2px; }
.stop-role.load { background: #e7f4ea; color: #1d6b2b; }
.stop-role.unload { background: #fdf0e3; color: #9a4d00; }
.stop-row.moved { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .3s; }
.peakline { display: block; margin-top: 4px; font-size: 13px; }
.peakline.over { color: var(--red); font-weight: 700; }
.stop-row .stop-cargo, .stop-row .stop-extra { grid-column: 2 / -1; }
/* Dispoplan: Stationen (was der Fahrer fährt) groß, Auslastung klein rechts */
.dispo-table th:nth-child(1) { width: 15%; } .dispo-table th:nth-child(2) { width: 13%; } .dispo-table th:nth-child(3) { width: auto; } .dispo-table th:nth-child(4) { width: 14%; }
.dp-steps { gap: 4px 3px; margin-top: 4px; }
.stp { font-size: 13.5px; padding: 3px 9px; border-radius: 8px; }
.stp i { font-size: 10px; }
.stp small { font-size: 10.5px; }
.dp-cust { font-size: 13px; color: var(--muted); font-weight: 600; }
.dp-load { background: #fcfcfb; }
.dp-load .lbar { height: 6px; }
.dp-load .lbar-txt { font-size: 11px; color: var(--muted); }
.dp-load .lbar-txt b { font-size: 12px; color: var(--text); }
.dp-load .fit-here { font-size: 11.5px; padding: 4px 6px; }
@media (max-width: 700px) {
  .dispo-table tr { grid-template-areas: "name veh" "tours tours" "load load"; }
  .dp-load { margin-top: 6px; background: none; }
}

/* ===== Planung: Excel-Tabelle, offene Aufträge oben, Fahrer-Fenster, Kalender, Versand-Übersicht ===== */
.plan-nav .cal-open { background: none; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.plan-nav .cal-open:hover { border-color: var(--accent); }
.plan-nav .cal-open small { font-size: 11.5px; color: var(--accent-dark); font-weight: 600; }
.oo-strip { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.oo-strip-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.oo-strip-head b { font-family: var(--head); font-size: 16px; }
.oo-strip-head .btn { margin-left: auto; }
.oo-strip .pick-hint { margin: 0 0 8px; }
.oo-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.oo-chip { flex: none; min-width: 170px; max-width: 230px; text-align: left; font: inherit; color: inherit; background: #f7f8f7; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.oo-chip:hover { border-color: var(--accent); }
.oo-chip.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-bg); }
.oo-chip.late { border-left: 4px solid var(--red); }
.oo-chip b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oo-chip small, .ooc-d { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oo-chip.late .ooc-d { color: var(--red); font-weight: 600; }
.ooc-m { font-size: 12.5px; font-weight: 600; color: var(--accent-dark); }
.dispo-table td.click { cursor: pointer; }
.dispo-table td.click:hover { background: var(--accent-bg); }
.dp-edit { color: var(--accent-dark); font-weight: 600; }
.ok-text { color: #1f8a3a; font-weight: 600; }
/* Fahrer-Fenster */
.ds-tour { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.ds-tour-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ds-tour-head .link { margin-left: auto; }
.ds-kg { font-size: 13px; margin: 2px 0 4px; }
.ds-stops { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ds-stop { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; background: #f7f8f7; }
.ds-stop.load { background: #eaf6ee; } .ds-stop.unload { background: #fdf1e7; }
.ds-stop .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ds-stop .main small { color: var(--muted); font-size: 12.5px; }
.ds-ic { font-size: 14px; width: 18px; text-align: center; }
.ds-stop.load .ds-ic { color: #1f8a3a; } .ds-stop.unload .ds-ic { color: #b45309; }
.ds-move { display: flex; gap: 4px; }
.ds-move .btn { min-width: 38px; }
.ds-orders { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.ds-cand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; }
.ds-cand.ok { border-color: #9fd3ae; background: #f3faf5; }
.ds-cand .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ds-cand .main small { font-size: 12.5px; color: var(--muted); }
.ds-cand .main small.ok-text, .ds-cand .main small.warn-text { color: inherit; }
.ds-cand .main small.ok-text { color: #1f8a3a; } .ds-cand .main small.warn-text { color: #b42318; }
/* großer Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .cal-head h3 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-cell { min-height: 86px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.cal-cell.empty { border: 0; background: none; cursor: default; }
.cal-cell.we { background: #f7f7f5; } .cal-cell.today { border-color: var(--accent); } .cal-cell.sel { box-shadow: 0 0 0 2px var(--accent); }
.cal-cell:hover:not(.empty) { border-color: var(--accent); }
.cal-cell b { font-family: var(--head); font-size: 16px; }
.cc-tours, .cc-open, .cc-away, .cc-pct { font-size: 11.5px; } .cc-open { color: #b42318; font-weight: 600; } .cc-away { color: var(--muted); }
.cc-bar { height: 6px; background: #eceeec; border-radius: 99px; overflow: hidden; } .cc-bar i { display: block; height: 100%; }
.cc-bar i.mid { background: #7cc48b; } .cc-bar i.good { background: #1f8a3a; } .cc-bar i.over { background: var(--red); }
/* Versand-Übersicht */
.ov-wrap { overflow-x: auto; margin-top: 10px; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ov-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 2px solid var(--line); }
.ov-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ov-table td small { display: block; font-size: 12px; }
.ov-table tr.err td { background: #fdecec; } .ov-table tr.warn td { background: #fff8e8; }
.ov-new { color: var(--accent-dark); font-weight: 600; }
.ov-tour { cursor: pointer; } .ov-tour:hover b, .ov-tour:hover { color: var(--accent-dark); }
.ov-tour small { color: var(--muted); }
.ov-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 3px; }
.ov-hint.err { color: #b42318; font-weight: 600; }
@media (max-width: 600px) {
  .cal-cell { min-height: 58px; padding: 4px; } .cc-tours, .cc-away { display: none; }
  .oo-strip-head .btn { margin-left: 0; }
  .ds-stop { flex-wrap: wrap; } .ds-move { margin-left: auto; }
  .ov-table thead { display: none; } .ov-table, .ov-table tbody, .ov-table tr, .ov-table td { display: block; width: 100%; }
  .ov-table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; } .ov-table td { border: 0; padding: 4px 10px; }
}

/* ===== Aufträge: Archiv, Monatsexport, Alle drucken ===== */
.order-tools { flex-wrap: wrap; }
.order-search-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.order-search-row .chat-search { flex: 1; margin: 0; }
.order-month { width: auto; min-width: 170px; margin: 0; }
.export-sum { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.export-sum div { background: #f5f7f5; border-radius: 10px; padding: 8px 12px; min-width: 110px; }
.export-sum div.warn { background: #fdecec; }
.export-sum b { display: block; font-family: var(--head); font-size: 18px; }
.export-sum span { font-size: 12.5px; color: var(--muted); }
.export-btns { display: grid; gap: 8px; }
.export-btns .btn { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 11px 14px; }
.export-btns .btn small { font-weight: 400; font-size: 12.5px; opacity: .8; }
.archived-note { margin-top: 12px; background: #f5f7f5; border-radius: 10px; padding: 10px 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 600px) { .order-search-row { flex-direction: column; align-items: stretch; } .order-month { width: 100%; } }
.export-btns a.btn, #opv-all a.btn { text-decoration: none; }

/* ===== LKW-/PKW-Fahrer ===== */
.dispo-table tr.dp-group td { background: #eef2ee; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; padding: 7px 10px; color: var(--text); }
.dispo-table tr.dp-group td small { font-weight: 600; color: var(--muted); text-transform: none; margin-left: 4px; }
.dispo-table tr.dp-group.pkw td { background: #f5f5f3; border-top: 10px solid #fff; }
.dispo-table tr.dp-group .link { font: inherit; color: inherit; text-decoration: none; text-transform: inherit; }
.dispo-table tr.dp-pkw td { font-size: 92%; opacity: .85; }
.dispo-table tr.dp-pkw .dp-tour { padding-top: 4px; padding-bottom: 4px; }
.pill.drv-lkw { background: #e6f2e9; color: #1f6a33; } .pill.drv-pkw { background: #eef0f6; color: #3d4a6b; }
.drv-filter { margin: 12px 0 4px; }
@media (max-width: 700px) { .dispo-table tr.dp-group { display: block; } .dispo-table tr.dp-group td { display: block; border-radius: 8px; } }

/* ===== Monatsauftrag: Tage auf Fahrer verteilen ===== */
.md-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; }
.md-count { margin-left: auto; font-weight: 600; color: var(--accent-dark); font-size: 14px; }
.md-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.md-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.md-cell { min-width: 0; min-height: 58px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 5px 6px; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.md-cell.empty { border: 0; background: none; cursor: default; }
.md-cell b { font-family: var(--head); font-size: 15px; }
.md-cell small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-cell.open { border-color: #f0b060; background: #fff7ec; } .md-cell.open small { color: #b45309; font-weight: 600; }
.md-cell.other { background: #f1f2f1; } .md-cell.other small { color: #444; }
.md-cell.on { background: var(--accent); border-color: var(--accent); color: #fff; } .md-cell.on small { color: #fff; font-weight: 600; }
.md-cell.off:not(.on) { background: #fafafa; color: #999; }
.md-cell.skip:not(.on) small { text-decoration: line-through; }
.md-cell.busy:not(.on) { opacity: .6; }
.md-cell.past { opacity: .45; cursor: default; }
.md-cell:not(:disabled):not(.empty):hover { border-color: var(--accent); }
.md-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.md-legend span::before { content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line); }
.md-legend .on::before { background: var(--accent); border-color: var(--accent); } .md-legend .other::before { background: #f1f2f1; }
.md-legend .open::before { background: #fff7ec; border-color: #f0b060; } .md-legend .off::before { background: #fafafa; }
.oo-month { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.oo-chip.month { border-left: 4px solid #f0b060; }
@media (max-width: 600px) { .md-grid { gap: 3px; } .md-cell { min-height: 46px; padding: 3px; border-radius: 7px; } .md-cell b { font-size: 13px; } .md-cell small { font-size: 9.5px; } }
.oo-month-head { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.oo-chip.month { cursor: default; gap: 3px; }
.ooc-btns { display: flex; gap: 6px; margin: 3px 0 1px; }
.ooc-btns .btn { padding: 5px 10px; }
.mo-list .row.mo-no { opacity: .6; }

/* ===== Lieferscheine je Auftrag ===== */
.section-title .count.ok { background: #e6f2e9; color: #1f6a33; }
.doc-orders { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; }
.doc-order { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.doc-order.ok { border-color: #9fd3ae; background: #f3faf5; }
.doc-order.loose { border-style: dashed; margin-top: 10px; }
.doc-order-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.doc-order-head .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-order-head .main small { color: var(--muted); font-size: 13px; }
.doc-n { width: 26px; height: 26px; border-radius: 50%; background: #eceeec; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.doc-order.ok .doc-n { background: var(--accent); color: #fff; }
.doc-ok { color: #1f8a3a; font-weight: 700; white-space: nowrap; }
.doc-order .thumbs { margin: 0 0 8px; }
.doc-order .upload-btn { width: 100%; justify-content: center; }
.doc-assign { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.doc-assign .thumbs { margin: 0; } .doc-assign select { flex: 1; margin: 0; }
.doc-split { display: flex; flex-direction: column; gap: 8px; }
.doc-split-no { display: block; font-weight: 600; margin-bottom: 2px; }

/* ===== Sonder-Stopps (Auflieger wechseln, Tanken …) ===== */
.ds-stop.stop { background: #eef0f6; } .ds-stop.stop .ds-ic { color: #3d4a6b; }
.ds-add-stop { margin-top: 8px; } .ds-add-stop small { font-weight: 400; opacity: .75; }
.stp.special { background: #eef0f6; color: #3d4a6b; } .stp.special em { font-style: normal; font-weight: 600; font-size: 11px; }
ol.stops li.special { color: #3d4a6b; } .stop-kind { background: #eef0f6; border-radius: 6px; padding: 1px 6px; font-size: 13px; }

/* ===== Rückgängig ===== */
.undo-bar { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #f5f7f5; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.undo-bar small { color: var(--muted); margin-left: 4px; }
.undo-btn { white-space: nowrap; font-weight: 600; }
.ds-top { display: flex; align-items: center; gap: 10px; padding-right: 44px; } .ds-top h3 { margin: 0; flex: 1; }
.toast-btn { margin-left: 12px; background: #fff; color: #191919; border: 0; border-radius: 8px; padding: 5px 10px; font: inherit; font-weight: 700; cursor: pointer; }

/* ===== Tankkarten-Code ===== */
.fuel-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-btn { padding: 3px 10px; margin-left: auto; }
.code-val { font-family: var(--head); letter-spacing: .12em; font-size: 16px; }
.code-field input { flex: 1; min-width: 0; }

/* ===== Aufträge als Pärchen verschieben ===== */
.ds-pairs-head { margin: 10px 0 6px; font-weight: 700; font-size: 13.5px; } .ds-pairs-head small { font-weight: 400; color: var(--muted); }
.ds-pairs { display: flex; flex-direction: column; gap: 6px; }
.ds-pair { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ds-pair .main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ds-pair .main small { color: var(--muted); font-size: 12.5px; }

/* ===== Fahrer-App: Tour Schritt für Schritt ===== */
.offline-box { background: #fff4e0; border: 1px solid #f0c27a; color: #7a4b00; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0 0 10px; }
.dt-veh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.dt-progress { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 13.5px; color: var(--muted); }
.dt-progress .lbar, .tc-prog .lbar { flex: 1; height: 8px; background: #eceeec; border-radius: 99px; overflow: hidden; } .dt-progress .lbar i, .tc-prog .lbar i { display: block; height: 100%; background: var(--accent); }
.dt-next { border: 2px solid var(--accent); border-radius: 14px; padding: 10px 12px 12px; margin: 6px 0 14px; background: var(--accent-bg); }
.dt-next > small { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; color: var(--accent-dark); margin-bottom: 4px; }
.dt-next.done { border-color: #9fd3ae; } .dt-next.done p { margin: 6px 0 10px; }
.dt-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dt-list li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.dt-list li.done { background: #f3faf5; border-color: #cfe9d6; } .dt-list li.done .st-what, .dt-list li.done .st-hint { opacity: .7; }
.dt-list li.next { border: 2px solid var(--accent); }
.st-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .st-head b { font-size: 16px; }
.st-card.big .st-head b { font-size: 19px; }
.st-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: #eceeec; flex: none; }
.st-load .st-ic { background: #e6f2e9; color: #1f8a3a; } .st-unload .st-ic { background: #fdf1e7; color: #b45309; } .st-special .st-ic { background: #eef0f6; color: #3d4a6b; }
.st-no { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.st-addr { margin: 4px 0 0 34px; font-size: 14.5px; }
.st-card.big .st-addr { font-size: 16px; }
.st-nav { margin-left: 6px; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.st-what { margin: 3px 0 0 34px; font-size: 13.5px; color: #1f4f2c; }
.st-unload .st-what { color: #7a3b05; }
.st-hint { margin: 6px 0 0 34px; font-size: 13.5px; background: #fff8e8; border-radius: 8px; padding: 5px 8px; }
.st-doc { margin: 8px 0 0 34px; display: flex; flex-direction: column; gap: 6px; }
.st-btns { display: flex; gap: 8px; margin: 10px 0 0 34px; flex-wrap: wrap; align-items: center; } .st-btns .btn { flex: 1; min-width: 130px; justify-content: center; }
.st-card.big .st-btns .btn { padding: 14px; font-size: 17px; }
.st-arr { font-size: 13px; color: var(--muted); }
.st-done { margin: 8px 0 0 34px; color: #1f8a3a; font-weight: 600; font-size: 14px; } .st-done .link { font-weight: 400; margin-left: 8px; }
.tc-prog { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; } .tc-prog small { white-space: nowrap; }
.tc-next { display: flex; flex-direction: column; margin: 6px 0; } .tc-next > small:first-child { font-weight: 700; color: var(--accent-dark); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.tc-open { margin-top: 8px; }
.stp.did { opacity: .55; text-decoration: line-through; }
.cp-flag.prog { background: #e6f2e9; color: #1f6a33; }

/* ===== Frachtkostenrechner, Weitere Kosten ===== */
.calc-form .stop-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; position: relative; } .calc-form .stop-row input { flex: 1; margin: 0; }
.calc-n { width: 18px; text-align: center; color: var(--muted); }
.calc-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0; }
.calc-res { margin-top: 14px; }
.calc-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.calc-head div { background: #f5f7f5; border-radius: 10px; padding: 8px 10px; } .calc-head b { display: block; font-family: var(--head); font-size: 20px; } .calc-head span { font-size: 12.5px; color: var(--muted); }
.calc-head div:first-child { background: #fdecec; }
.row.total { border-top: 2px solid var(--line); } .row.total b { font-size: 16px; }
.calc-share { margin: 10px 0; background: #eef0f6; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.calc-price { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.calc-price.ok { background: #e6f2e9; } .calc-price.bad { background: #fdecec; } .calc-price b { font-size: 16px; }
.calc-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; font-size: 14px; } .calc-sug .chip { cursor: pointer; }
.calc-list-num { text-align: right; display: flex; flex-direction: column; margin-right: 6px; } .calc-list-num small { color: var(--muted); font-size: 12px; }
.cost-item { display: grid; grid-template-columns: 1fr 130px 120px auto; gap: 8px; margin-bottom: 6px; align-items: center; } .cost-item input, .cost-item select { margin: 0; }
.cost-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; background: #f5f7f5; border-radius: 10px; padding: 10px 12px; margin: 14px 0; } .cost-sum b { font-size: 17px; } .cost-sum small { color: var(--muted); }
@media (max-width: 700px) { .calc-head { grid-template-columns: 1fr 1fr; } .cost-item { grid-template-columns: 1fr 100px; } .cost-item select { grid-column: 1; } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .page-head .page-title { margin-bottom: 12px; } .page-head .btn { margin-bottom: 12px; }

/* ===== Mehrtägige Aufträge, Fahrtzeit, überfällig ===== */
.multi-tag { display: inline-block; background: #eef0f6; color: #3d4a6b; border-radius: 6px; padding: 0 6px; font-size: 12px; font-weight: 600; margin-left: 4px; }
.ds-eta { font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.eta { font-family: var(--head); font-weight: 700; color: var(--accent-dark); }
.dp-end { font-size: 11.5px; color: var(--muted); margin: 0 6px 0 2px; white-space: nowrap; }
.oo-late { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: #fdecec; border: 1px solid #f3b4b4; color: #b42318; border-radius: 10px; padding: 6px 10px; margin: 0 0 6px; font-size: 13.5px; }
.oo-late .count { background: #b42318; color: #fff; }
.oo-chips.late-row .oo-chip { background: #fff5f5; border-color: #f3b4b4; }
.st-what.multi { color: #3d4a6b; font-weight: 600; }
.stp-ul { display: block; font-size: 10.5px; font-weight: 600; color: #3d4a6b; line-height: 1.1; }
.stp:has(.stp-ul) { flex-wrap: wrap; }
.ul-txt { color: #3d4a6b; font-weight: 600; }
.oo-chip .ul-txt { font-size: 11.5px; }

/* ===== Absender/Empfänger-Vorschläge ===== */
.party-wrap { position: relative; }
.party-sugg { top: calc(100% - 4px); left: 0; right: 0; }
.sg-tag { margin-left: auto; align-self: center; background: var(--accent-bg); color: var(--accent-dark); border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; }
/* Abfahrt: Startort ändern */
.start-chg { margin-left: 8px; padding: 2px 8px; border: 1px solid #c9dbf3; border-radius: 999px; background: #fff; color: #1e5fbf; font-size: 12px; font-weight: 600; cursor: pointer; vertical-align: 1px; }
.start-chg:hover { background: #e3eefb; }
.stop-row.home.custom .home-label input { margin-top: 6px; font-weight: 600; }
.stop-row.home.custom::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.4'/%3E%3C/svg%3E"); }
.stop-kind-tag { grid-column: 2; font-size: 12px; color: #8a5a00; margin-bottom: -4px; }
/* Fortschritt des Fahrers in der Planung */
.ds-prog { margin: 6px 0 8px; padding: 8px 10px; border-radius: 10px; background: #eef4fb; border: 1px solid #c9dbf3; font-size: 13.5px; color: #1e4b7a; }
.ds-prog.done { background: #e9f5ea; border-color: #bfe0c3; color: #1d6b2a; }
.ds-prog .dp-bar { height: 6px; border-radius: 99px; background: rgba(30,95,191,.15); margin-bottom: 6px; overflow: hidden; }
.ds-prog.done .dp-bar { background: rgba(29,107,42,.15); }
.ds-prog .dp-bar i { display: block; height: 100%; background: currentColor; border-radius: 99px; }
.ds-prog .dp-row { margin-top: 3px; color: #2a3a4a; }
.ds-prog .dp-k { display: inline-block; min-width: 62px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ds-start { font-size: 13.5px; margin: 4px 0 6px; padding: 6px 10px; border-left: 3px solid #1e5fbf; background: #f4f8fd; border-radius: 6px; }
.ds-start .dp-k { display: inline-block; min-width: 62px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ds-start small { color: var(--muted); }
.stop-row.home.auto { background: #f4f8fd; border-style: dashed; }
.stop-row.home.auto::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.4'/%3E%3C/svg%3E"); }
.start-chg + .start-chg { margin-left: 4px; }
.ds-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; font-size: 13.5px; }
.ds-end .dp-k { display: inline-block; min-width: 62px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ds-end select { width: auto; min-width: 220px; margin: 0; padding: 6px 10px; }
.ds-end small { color: var(--muted); }
/* Karte: Tage-Auswahl und Legende */
.map-head { flex-wrap: wrap; }
.map-days { display: inline-flex; gap: 4px; margin-left: auto; }
.map-days button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.map-days button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.map-legend { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.map-legend .lg-solid, .map-legend .lg-dash { display: inline-block; width: 26px; height: 0; border-top: 4px solid #555; border-radius: 2px; }
.map-legend .lg-dash { border-top-style: dashed; border-top-width: 3px; margin-left: 10px; }
.map-legend { gap: 6px 16px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-legend i { display: inline-block; width: 26px; height: 0; border-top: 4px solid #555; border-radius: 2px; }
.map-legend i.lg-dash { border-top: 3px dashed #777; }
/* Karte: Zeitraum von/bis + Heute */
.map-range { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.map-range label { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin: 0; }
.map-range input[type=date] { width: auto; margin: 0; padding: 4px 6px; font-size: 13px; border-radius: 8px; }
.map-range button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.map-range button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Hinweis Sonn-/Feiertagsfahrverbot (nur Hinweis) */
.ds-ban { margin: 4px 0 6px; padding: 6px 10px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 600; }
.ban-txt { display: block; color: var(--amber); font-weight: 600; }
/* Dashboard: Zeitraum oben für alles */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-head .page-title { margin-bottom: 0; }
.dash-head .map-range { margin-left: 0; }
/* Panne / Ausfall */
.ds-bd { margin: 6px 0 8px; padding: 9px 11px; border-radius: 10px; background: #fdecec; border: 1px solid #f3c4c4; color: #8f1d1d; font-size: 13.5px; }
.ds-bd b { display: block; }
.ds-bd small { display: block; color: #a14040; margin-top: 2px; }
.ds-bd.solved { background: #f3f4f3; border-color: var(--line); color: var(--ink, #333); }
.ds-bd.solved small { color: var(--muted); }
.ds-bd-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ds-bd-act span { font-weight: 700; margin-right: 4px; }
.ds-bd-btn { margin-left: 6px; color: #c62828; }
.bd-list { margin-bottom: 8px; }
.stop-row.bd-row { grid-template-columns: 1fr; padding: 4px; }
.stop-row.bd-row::before { display: none; }
.bd-driver { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #8f1d1d; }
.bd-driver p { margin: 4px 0 0; }
/* Palettenart + Weiterfahrt (Fahrer-App) */
.pal-head, .pal-row { grid-template-columns: 1fr 118px 64px 28px; }
.pal-row select { padding: 9px 6px; margin: 0; font-size: 14px; }
@media (max-width: 420px) { .pal-head, .pal-row { grid-template-columns: 1fr 104px 52px 24px; } }
.drive-on { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: #eef4fb; border: 1px solid #c9dbf3; color: #1e4b7a; }
.drive-on b, .drive-on span, .drive-on small { display: block; }
.drive-on small { color: var(--muted); margin-top: 2px; }
/* Termine beim Kunden */
.term-grid { margin-top: 4px; }
.term-box { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fafbfa; }
.term-times { display: flex; gap: 10px; margin-top: 8px; }
.term-times label { flex: 1; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); margin: 0; }
.term-times input { margin-top: 2px; }
.term-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #eef4fb; color: #1e5fbf; margin-left: 4px; white-space: nowrap; }
.term-tag.late { background: #fdecec; color: #c62828; }
.ooc-term { display: block; margin-top: 2px; }
.ooc-term .term-tag { margin-left: 0; margin-right: 4px; }
.ds-warn { margin: 2px 0 6px; padding: 6px 10px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 600; }
.st-term { margin-top: 4px; font-weight: 700; color: #1e5fbf; }
.term-box { border: 0; padding: 0; background: none; }
.term-times input { min-width: 0; width: 100%; box-sizing: border-box; }
.term-times label { min-width: 0; }
@media (max-width: 640px) { .grid2.term-grid { grid-template-columns: 1fr; } }
/* Aufträge per Ziehen umsortieren */
.ds-pair { cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .15s, background .15s; }
.ds-pair:hover { border-color: #b9c9b9; background: #fbfdfb; }
.ds-grip { width: 22px; height: 30px; flex: none; touch-action: none; cursor: grab; border-radius: 6px;
  background: radial-gradient(circle, #9aa59a 1.6px, transparent 1.9px) 0 0 / 8px 8px; background-position: 3px 3px; opacity: .9; }
.ds-pair:hover .ds-grip { background-color: #eef3ee; }
.ds-pair.dragging { position: relative; z-index: 5; cursor: grabbing; background: #fff; border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.ds-pairs.sorting .ds-pair:not(.dragging) { transition: transform .15s; }
/* Fahrer bestätigt Tour / Änderung */
.ack-box { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff4e0; border: 2px solid #f0b54a; color: #7a4b00; }
.ack-box b { font-size: 15px; }
.ack-box .btn { align-self: flex-start; }
/* Stationen einzeln ziehen */
.ds-stop[data-drag] { cursor: grab; user-select: none; -webkit-user-select: none; }
.ds-stop .ds-grip { height: 26px; width: 18px; margin-right: 2px; align-self: center; }
.ds-stop.dragging { position: relative; z-index: 5; cursor: grabbing; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
