:root {
  --navy: #1f2756;
  --navy-2: #2a336b;
  --navy-3: #36418a;
  --brand-blue: #2e3773;
  --accent: #be0014;
  --accent-ink: #ffffff;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #142033;
  --muted: #64748b;
  --line: #e3e8f0;
  --blue: #2563eb;  --blue-bg: #e8effe;
  --green: #15803d; --green-bg: #e3f6ea;
  --amber: #b45309; --amber-bg: #fdf1dc;
  --red: #c2410c;   --red-bg: #fde9e1;
  --violet: #6d28d9; --violet-bg: #efe8fd;
  --gray-bg: #eef1f5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* Boot / Login */
.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { background: radial-gradient(900px 500px at 110% 120%, rgba(190,0,20,.55) 0%, transparent 60%), linear-gradient(160deg, #2e3773 0%, #161c40 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-hero h1 { font-size: 40px; line-height: 1.1; max-width: 460px; }
.login-hero p { color: #b7c4d8; max-width: 420px; font-size: 16px; }
.login-hero .road { position: absolute; right: -80px; bottom: 60px; width: 520px; opacity: .14; }
.login-form-side { display: grid; place-items: center; padding: 32px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 26px; margin-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-weight: 700; font-size: 16px; line-height: 1.1; }
.brand-sub { font-size: 12px; color: #93a4bd; letter-spacing: .08em; text-transform: uppercase; }
.login-hero .brand-mark { background: rgba(255,255,255,.08); }

/* Layout */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: var(--navy); color: #d8e1ee; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex: none; }
.sidebar .brand { padding: 22px 20px 18px; }
.sidebar .brand-name { color: #fff; }
.nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b9c6d8; font-weight: 500; position: relative; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--navy-3); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav .badge { margin-left: auto; }
.nav-sep { height: 1px; background: rgba(255,255,255,.07); margin: 10px 12px; }
.sidebar-user { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: 13px; flex: none; }
.sidebar-user .who { flex: 1; min-width: 0; }
.sidebar-user .who b { display: block; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .who span { font-size: 12px; color: #8ea0b9; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 9px; cursor: pointer; color: inherit; display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(127,127,127,.14); }
.icon-btn svg { width: 20px; height: 20px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 28px 32px 48px; max-width: 1400px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Bottom nav (mobile) */
.bottom-nav { display: none; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16px; }
.grid { display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: center; cursor: default; }
.stat.link { cursor: pointer; }
.stat.link:hover { border-color: #cdd6e3; }
.stat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .ico svg { width: 22px; height: 22px; }
.stat .val { font-size: 26px; font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.truck { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.truck-top { display: flex; align-items: center; gap: 12px; }
.truck-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-bg); display: grid; place-items: center; flex: none; color: var(--navy); }
.truck-ico svg { width: 24px; height: 24px; }
.truck-ico.on { background: var(--blue-bg); color: var(--blue); }
.truck-ico.arr { background: var(--violet-bg); color: var(--violet); }
.plate { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.truck-sub { color: var(--muted); font-size: 13px; }
.truck-cur { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.truck-cur .dest { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.truck-cur .dest svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.truck-queue { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.truck-queue div { display: flex; gap: 6px; align-items: center; }
.truck-queue div::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c3cddb; flex: none; }

/* Chips / badges */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gray-bg); color: #475569; white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip.feat { background: #fff; border: 1px solid var(--line); color: #334155; font-weight: 500; }
.chip.feat.miss { border-color: #f3c7b5; color: var(--red); background: var(--red-bg); }
.chip.feat.ok { border-color: #b9e3c7; color: var(--green); background: var(--green-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: #f7f9fc; border-color: #cfd8e5; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-3); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: #d4001a; border-color: #d4001a; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-bg); border-color: #f3c7b5; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--gray-bg); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 50px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Forms */
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; }
label.f .hint { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input { height: 42px; border: 1px solid #d5dde8; border-radius: 10px; padding: 0 12px; background: #fff; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; }
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.feat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #d5dde8; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; background: #fff; user-select: none; }
.feat-pick input { display: none; }
.feat-pick label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: inline-flex; background: var(--gray-bg); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; color: #475569; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-left: 36px; }
.err { color: var(--red); font-size: 14px; min-height: 1em; }

/* Tables / lists */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #f8fafc; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t tfoot td { font-weight: 700; background: #fafbfd; }

.list { display: flex; flex-direction: column; }
.item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item .meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.item .meta span { display: inline-flex; align-items: center; gap: 4px; }
.item .meta svg { width: 14px; height: 14px; }
.item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: #c3cddb; margin-bottom: 8px; }

/* Order card (pool) */
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ocard { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ocard .route { display: flex; flex-direction: column; gap: 2px; }
.ocard .route .to { font-weight: 700; font-size: 16px; }
.ocard .route .from { color: var(--muted); font-size: 13px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #475569; }
.kv span { display: inline-flex; gap: 5px; align-items: center; }
.kv svg { width: 15px; height: 15px; color: var(--muted); }
.ocard .foot { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.ocard .foot .btn:first-child { flex: 1; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(9,17,30,.48); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.pick:hover { border-color: #c4cfdd; }
.pick.sel { border-color: var(--navy); background: #f5f8fc; box-shadow: 0 0 0 3px rgba(14,26,43,.08); }
.pick.dim { opacity: .75; }
.pick input { display: none; }
.pick .grow { flex: 1; min-width: 0; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3cddb; flex: none; display: grid; place-items: center; }
.pick.sel .radio-dot { border-color: var(--navy); }
.pick.sel .radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.order-summary { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.warn { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 500; }

/* Toast */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 500; animation: pop .2s; }
.toast.error { background: #9a3412; }

/* Driver */
.drv-hero { background: linear-gradient(135deg, var(--navy) 0%, #1c3355 100%); color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 18px; }
.drv-hero .hi { color: #a9b8cd; font-size: 14px; }
.drv-hero h2 { font-size: 22px; margin-top: 2px; }
.task { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.task.current { border: 2px solid var(--accent); }
.task .to { font-size: 19px; font-weight: 700; }
.task .from { color: var(--muted); font-size: 14px; }
.steps { display: flex; gap: 6px; }
.steps div { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps div.on { background: var(--accent); }
.task .acts { display: grid; gap: 8px; }
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav .lbl { font-weight: 600; min-width: 210px; text-align: center; }

.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 26px 0 10px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }

/* Report */
.report-days td.d { text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }
.report-days td.d .h { font-weight: 600; font-size: 14px; }
.report-days td.d .k { color: var(--muted); font-size: 12px; }
.print-only { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 24px; min-height: 0; }
  .login-hero h1 { font-size: 26px; margin-top: 28px; }
  .login-hero p, .login-hero .road, .login-hero .foot { display: none; }
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
  .topbar .brand-mark { width: 34px; height: 34px; background: rgba(255,255,255,.08); }
  .topbar .t-title { font-weight: 700; flex: 1; }
  .content { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 22px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; position: relative; }
  .bottom-nav a svg { width: 23px; height: 23px; }
  .bottom-nav a.active { color: var(--navy); }
  .bottom-nav a.active svg { color: var(--accent); }
  .bottom-nav .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; font-size: 10px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .row2.keep { grid-template-columns: 1fr 1fr; }
  .row3.keep { grid-template-columns: 1fr 1fr 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ico { width: 36px; height: 36px; }
  .stat .val { font-size: 22px; }
  .fleet, .orders { grid-template-columns: 1fr; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .modal-foot .left { flex: 0 0 auto; }
  .item { padding: 14px 16px; flex-wrap: wrap; }
  .item .acts { width: 100%; justify-content: flex-start; }
  .hide-m { display: none !important; }
  .week-nav .lbl { min-width: 0; flex: 1; font-size: 14px; }
  .card-head { padding: 14px 16px; }
  #toast-root { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) { .show-m { display: none !important; } }

@media print {
  .sidebar, .topbar, .bottom-nav, .page-actions, .no-print { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; font-size: 12px; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .t th, .t td { padding: 6px 8px; }
}

/* Logo */
.logo-card { background: #fff; border-radius: 12px; padding: 8px 10px; display: inline-flex; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.logo-card img { height: 46px; width: auto; display: block; }
.sidebar .logo-card { margin: 18px 16px 8px; display: flex; justify-content: center; }
.sidebar .logo-card img { height: auto; width: 100%; max-width: 200px; }
.sidebar .role-tag { padding: 0 20px 10px; font-size: 11px; color: #9aa6d0; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.topbar .logo-mini { height: 30px; border-radius: 6px; background: #fff; padding: 3px 6px; display: block; }
.login-hero .logo-card img { height: 64px; }

/* Menü-Sheet (mobil) */
.menu-list { display: flex; flex-direction: column; gap: 4px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; text-align: left; width: 100%; }
.menu-list a:hover, .menu-list button:hover, .menu-list a.active { background: var(--gray-bg); }
.menu-list .mi { width: 38px; height: 38px; border-radius: 10px; background: var(--gray-bg); color: var(--navy); display: grid; place-items: center; flex: none; }
.menu-list a.active .mi { background: var(--navy); color: #fff; }
.menu-list svg { width: 20px; height: 20px; flex: none; }
.menu-list .chev { margin-left: auto; color: #a0abbb; }
.menu-list .danger { color: var(--red); }
.menu-list .danger .mi { background: var(--red-bg); color: var(--red); }
.pick > svg { width: 20px; height: 20px; flex: none; }

/* Fahrzeugfotos */
.truck-photo { margin: -16px -18px 4px; height: 150px; border-radius: var(--radius) var(--radius) 0 0; background: var(--gray-bg) center/cover no-repeat; position: relative; }
.truck-photo .chip { position: absolute; top: 10px; right: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.truck-thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-bg) center/cover no-repeat; flex: none; }
.photo-edit { display: flex; gap: 12px; align-items: center; }
.photo-edit .prev { width: 120px; height: 80px; border-radius: 10px; background: var(--gray-bg) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); flex: none; }
.photo-edit .prev svg { width: 28px; height: 28px; }

/* Installieren-Hinweis */
.install-banner { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.install-banner img { width: 40px; height: 40px; border-radius: 10px; }
.install-banner .grow { flex: 1; min-width: 0; font-size: 14px; }

/* Stempeluhr */
.clock { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.clock .grow { flex: 1; min-width: 0; }
.clock .title { font-weight: 700; }
.clock-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-bg); color: var(--muted); display: grid; place-items: center; flex: none; }
.clock-ico svg { width: 22px; height: 22px; }
.clock.on { border-color: #b9e3c7; background: linear-gradient(90deg, #f1fbf4, #fff); }
.clock.on .clock-ico { background: var(--green-bg); color: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(21,128,61,.12); } }
@media (max-width: 520px) { .clock { flex-wrap: wrap; } .clock .btn { width: 100%; } }
.ac-hint { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Disponieren: Schritte */
.steps-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.steps-tabs button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; min-width: 0; }
.steps-tabs .n { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-bg); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.steps-tabs .t { font-weight: 700; }
.steps-tabs .v { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-tabs button.on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,39,86,.08); }
.steps-tabs button.on .n { background: var(--navy); color: #fff; }
.steps-tabs button.done:not(.on) .n { background: var(--green-bg); color: var(--green); }
@media (max-width: 520px) { .steps-tabs .v { display: none; } }

/* Alarm Krankmeldung */
.alert { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; border: 1.5px solid; display: flex; flex-direction: column; gap: 10px; }
.alert.sick { background: #fff3f1; border-color: #f5b4a5; animation: glow 2.4s ease-in-out infinite; }
.alert.vac { background: var(--amber-bg); border-color: #f3d29a; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(194,65,12,.12); } }
.alert .ah { display: flex; gap: 12px; align-items: center; }
.alert .ai { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--red-bg); color: var(--red); }
.alert.vac .ai { background: #fff; color: var(--amber); }
.alert .ai svg { width: 22px; height: 22px; }
.alert .ao { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 9px 12px; }
.alert .ao .grow { flex: 1; min-width: 0; }

/* Kontakt-Links */
.clink { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.kv-big { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.kv-big a, .kv-big span { display: flex; gap: 10px; align-items: center; }
.kv-big svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* Autocomplete-Dropdown */
.ac-wrap { position: relative; }
.ac-wrap .input { padding-right: 40px; }
.ac-toggle { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.ac-toggle svg { width: 18px; height: 18px; }
.ac-toggle:hover { background: var(--gray-bg); }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid #d5dde8; border-radius: 12px; box-shadow: 0 12px 30px rgba(16,24,40,.16); max-height: 260px; overflow-y: auto; padding: 4px; }
.ac-item { padding: 9px 11px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-weight: 400; }
.ac-item b { font-weight: 600; color: var(--ink); }
.ac-item span { font-size: 12.5px; color: var(--muted); }
.ac-item:hover, .ac-item.on { background: var(--gray-bg); }
.ac-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; font-weight: 400; }

/* Zieladresse + Navigation (Fahrer) */
.dest-box { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.dest-addr { display: flex; gap: 10px; align-items: flex-start; }
.dest-addr > svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.dest-addr .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dest-addr b { font-size: 16px; }

/* Fahrer: Live-Uhr & Zusammenfassung */
.live-box { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.live-box.drive { background: var(--blue-bg); }
.live-box.work { background: var(--violet-bg); }
.live-box .lt { display: flex; gap: 12px; align-items: center; }
.live-box .lt > svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.live-box.work .lt > svg { color: var(--violet); }
.live-box .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.live.big { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.live { font-variant-numeric: tabular-nums; }
.item.running { background: #f6f3ff; }
.list.mini .item { padding: 9px 4px; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.sum-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.sum-grid span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.sum-grid b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sum-grid .tot { background: var(--navy); border-color: var(--navy); color: #fff; }
.sum-grid .tot span { color: #b9c3e6; }
.task .acts > * { min-width: 0; }
.task .row2.keep .btn { white-space: normal; padding: 0 10px; font-size: 15px; line-height: 1.15; }
.task .row2.keep .btn svg { flex: none; }
.live-box .item .title { font-size: 14px; }

/* Stempeluhr im Begrüssungskasten (Fahrer) */
.drv-hero .clock { background: rgba(255,255,255,.09); border: 0; box-shadow: none; color: #fff; margin-top: 14px; padding: 10px 12px; }
.drv-hero .clock .muted { color: #b9c3e6; }
.drv-hero .clock-ico { background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; }
.drv-hero .clock.on { background: rgba(21,128,61,.35); }
.drv-hero .clock.on .clock-ico { background: rgba(255,255,255,.18); color: #fff; }
.rel-hint { display: flex; align-items: center; gap: 10px; background: var(--amber-bg); color: var(--amber); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.rel-hint svg { width: 18px; height: 18px; flex: none; }
.rel-hint span { flex: 1; }

/* Fahrer: Heute / Zukünftig */
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; padding: 10px 14px; border-radius: 12px; }
.day-head > div { display: flex; flex-direction: column; }
.day-head .dh-t { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.day-head .dh-d { font-size: 13px; color: var(--muted); }
.day-head.today { background: #fff; border-left: 5px solid var(--accent); box-shadow: var(--shadow); }
.day-head.future { margin-top: 28px; background: var(--gray-bg); border-left: 5px solid #a0abbb; }
.fut-day { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px 4px; }
.fut-time { width: 58px; flex: none; display: flex; flex-direction: column; padding-top: 2px; font-variant-numeric: tabular-nums; }
.fut-time b { font-size: 16px; }
.fut-time span { font-size: 12px; color: var(--muted); }
