/* ==========================================================================
   Servito Hub — design system
   Stijl: lichte "soft UI" met zwarte pill-navigatie en fotorealistische
   toestellen, in de huiskleuren van Servito (goud #E3C04B, antraciet #303030).
   ========================================================================== */

:root {
  --page: #e4e4e4;
  --shell: #efefef;
  --panel: #f4f4f4;
  --card: #ffffff;
  --card-soft: #fafafa;
  --line: rgba(17, 17, 17, 0.06);
  --line-strong: rgba(17, 17, 17, 0.1);

  --ink: #121212;
  --ink-2: #5f5f5f;
  --ink-3: #9a9a9a;
  --ink-4: #c4c4c4;

  --brand: #e3c04b;
  --brand-600: #c9a52f;
  --brand-300: #efd88f;
  --brand-50: #fbf5df;
  --brand-ink: #866709;
  --anthracite: #303030;

  --ok: #1e9a4b;
  --ok-bg: #e5f6eb;
  --warn: #df7a25;
  --warn-bg: #fcefe2;
  --late: #c39206;
  --late-bg: #fbf4d9;
  --bad: #b42318;
  --bad-bg: #fbe6e4;
  --info: #0a8fd0;
  --info-bg: #e2f3fc;
  --idle: #4a4a4a;
  --idle-bg: #ececec;

  --r-shell: 30px;
  --r-panel: 24px;
  --r-card: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.035);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-shell: 0 40px 80px rgba(0, 0, 0, 0.08), 0 2px 0 rgba(255, 255, 255, 0.9) inset;

  --font: "Satoshi", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "tnum";
  letter-spacing: -0.005em;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.page { min-height: 100vh; }
body { --side-w: 84px; }
.shell {
  container: shell / inline-size;
  width: 100%;
  background: var(--shell);
  padding: 22px 30px 30px calc(var(--side-w) + 14px + 30px);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
body { background: var(--shell); }

/* ---------- topbar ---------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 30;
}
.m-only { display: none !important; }
.top-ctx { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; white-space: nowrap; }
.top-ctx b { font-weight: 500; }
.top-ctx .ico { color: var(--ink-4); }
.ctx-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 7px 12px; border-radius: 11px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); font-size: 13px; color: var(--ink-2);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(30,154,75,.14); }

/* ---------- zijbalk (iconenbalk) ---------- */
.sidebar {
  position: fixed; z-index: 60; left: 14px; top: 14px; bottom: 14px; width: var(--side-w);
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 10px 12px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 24px 48px rgba(0,0,0,.05);
}
.side-brand { justify-content: center; flex: none; }
.side-nav {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; width: 100%;
  overflow-y: auto; overflow-x: visible; scrollbar-width: none; padding-top: 6px;
}
.side-nav::-webkit-scrollbar { display: none; }
.side-sec { width: 32px; height: 1px; background: var(--line-strong); margin: 8px 0; flex: none; }
.side-link {
  position: relative; display: grid; place-items: center; width: 58px; height: 54px; flex: none;
  border-radius: 18px; color: var(--ink); transition: background .2s, transform .2s var(--ease);
}
.side-link:hover { background: rgba(255, 255, 255, 0.85); }
.side-link .ico-wrap {
  width: 40px; height: 40px; border-radius: 13px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.side-link.active {
  background: linear-gradient(180deg, #2a2a2a, #0f0f0f);
  box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
}
.side-link.active .ico-wrap { border-radius: 50%; width: 34px; height: 34px; }
.side-link .count {
  position: absolute; top: 7px; right: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 2px #fff;
}
.side-link .tip, .side-avatar .tip {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-4px, -50%);
  background: #111; color: #fff; font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 9px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: .18s var(--ease); z-index: 5;
}
.side-link .tip b { font-weight: 600; color: #ecd06a; margin-left: 4px; }
.side-link:hover .tip, .side-avatar:hover .tip { opacity: 1; transform: translate(0, -50%); }
.side-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; padding-top: 10px; border-top: 1px solid var(--line-strong); width: 58px; }
.side-avatar { position: relative; width: 46px; height: 46px; border-radius: 15px; padding: 0; }
.side-avatar img { width: 100%; height: 100%; border-radius: 15px; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0,0,0,.12); transition: box-shadow .2s; }
.side-avatar.open img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111; }
.side-avatar .presence { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2.5px #fff; }

/* menu's die naast de balk openen */
.popover.side-pop { position: fixed; left: calc(var(--side-w) + 28px); bottom: 14px; top: auto; right: auto; width: 360px; z-index: 900; transform-origin: bottom left; }
.popover.user-pop { width: 290px; padding: 8px; }
.user-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-head img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.user-head b { display: block; font-size: 15.5px; font-weight: 500; }
.user-head span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.user-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; font-size: 14.5px; text-align: left; }
.user-item:hover { background: var(--panel); }
.user-item .ico { color: var(--ink-2); }
.user-item kbd { margin-left: auto; font-family: inherit; font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-strong); padding: 2px 6px; border-radius: 6px; }
.user-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.user-item.danger, .user-item.danger .ico { color: var(--bad); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(160deg, #464646, var(--anthracite) 55%, #1e1e1e);
  display: grid; place-items: center; color: var(--brand);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.brand-mark svg { width: 20px; height: 27px; }
.brand-name { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.brand-name b { font-weight: 700; }
.brand-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }

.nav {
  display: flex; gap: 6px; padding: 5px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.nav-btn {
  height: 50px; min-width: 50px; padding: 0 14px;
  border-radius: 15px; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: var(--ink); position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.nav-btn:hover { transform: translateY(-1px); }
.nav-btn .lbl { display: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-btn.active {
  background: linear-gradient(180deg, #2a2a2a, #0f0f0f);
  color: #fff; padding: 0 20px 0 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav-btn.active .lbl { display: inline; }
.nav-btn .ico-wrap {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
}
.nav-btn.active .ico-wrap { background: #fff; color: #111; }
.nav-btn .tip {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: #111; color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: 0.18s var(--ease); white-space: nowrap;
}
.nav-btn:not(.active):hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.search {
  position: relative; flex: 0 1 380px;
  height: 52px; border-radius: 18px; background: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.search input::placeholder { color: var(--ink-3); }
.search kbd {
  font-family: inherit; font-size: 11px; color: var(--ink-3);
  border: 1px solid var(--line-strong); padding: 2px 6px; border-radius: 6px;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-pop);
  padding: 8px; max-height: 420px; overflow: auto; z-index: 40;
}
.sr-group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding: 10px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sr-item:hover, .sr-item.kbd { background: var(--panel); }
.sr-item .thumb { width: 52px; height: 36px; object-fit: contain; }
.sr-item .t { font-size: 14px; font-weight: 500; }
.sr-item .s { font-size: 12px; color: var(--ink-3); }
.sr-empty { padding: 18px; color: var(--ink-3); font-size: 14px; text-align: center; }

.icon-btn {
  width: 52px; height: 52px; border-radius: 18px; background: #fff;
  display: grid; place-items: center; position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s var(--ease);
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn .dot {
  position: absolute; top: 13px; right: 14px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 2px #fff;
}
.avatar-btn { width: 52px; height: 52px; border-radius: 18px; overflow: hidden; background: #ddd; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.top-group { display: flex; gap: 6px; padding: 4px; background: rgba(255,255,255,.55); border-radius: 22px; border: 1px solid rgba(255,255,255,.9); }

.popover {
  position: absolute; top: calc(100% + 10px); right: 0; width: 360px;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-pop);
  padding: 10px; z-index: 50;
  animation: pop 0.22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; font-weight: 600; }
.pop-head small { color: var(--ink-3); font-weight: 400; }
.notif { display: flex; gap: 12px; padding: 10px; border-radius: 14px; align-items: flex-start; }
.notif:hover { background: var(--panel); }
.notif .ni { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.notif .nt { font-size: 14px; font-weight: 500; line-height: 1.3; }
.notif .ns { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.notif .nm { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* ---------- mobiele navigatie (alleen telefoon) ---------- */
.m-search-btn { display: none; }
.tabbar {
  display: none; position: fixed; z-index: 800; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  justify-content: space-between; gap: 4px; padding: 6px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 24px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}
.tab {
  flex: 1 1 0; min-width: 0; height: 52px; border-radius: 18px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tab .ico { width: 21px; height: 21px; }
.tab.active { background: linear-gradient(180deg, #2a2a2a, #0f0f0f); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.more-sheet {
  position: fixed; z-index: 902; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 24px; padding: 8px; box-shadow: var(--shadow-pop);
  display: grid; gap: 2px; animation: pop .22s var(--ease);
}
.more-sheet a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; font-size: 16px; font-weight: 500; }
.more-sheet a:active, .more-sheet a.active { background: var(--panel); }
.more-sheet .mi { width: 42px; height: 42px; border-radius: 13px; background: var(--panel); display: grid; place-items: center; }
.more-sheet a.active .mi { background: #111; color: #fff; }
.more-sheet small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }
.ov-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.calc { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.topc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }

/* ---------- page head ---------- */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.head.stack { flex-direction: column; align-items: stretch; }
.cd-layout > div, .md > div, .adv > div { min-width: 0; }
.cd-layout > div:first-child { grid-template-columns: minmax(0, 1fr); }
.view { animation: viewIn 0.45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin: 26px 0 20px;
}
.head h1 { font-size: 38px; font-weight: 500; letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
.head p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13.5px; margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }

.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.stat {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px; padding: 8px 18px 8px 8px; min-width: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.stat-ico {
  width: 64px; height: 64px; border-radius: 17px; background: #fff;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.stat-l { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-v { display: flex; align-items: center; gap: 4px 10px; margin-top: 4px; flex-wrap: wrap; }
.stat-v b { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.stat-v b small { font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12.5px; font-weight: 500; padding: 4px 8px; border-radius: 8px;
  background: var(--ok-bg); color: var(--ok); white-space: nowrap;
}
.delta.down { background: var(--bad-bg); color: var(--bad); }
.delta svg { width: 13px; height: 13px; }

/* ---------- generic cards ---------- */
.panel {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-panel);
  padding: 18px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 21px; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
.card {
  background: var(--card); border-radius: var(--r-card); padding: 20px;
  box-shadow: var(--shadow-card); border: 1px solid rgba(0, 0, 0, 0.025);
}
.card.soft { background: var(--card-soft); }
.card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 13px; }
.big-num { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.big-num small { font-size: 18px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.link { color: var(--brand-ink); font-weight: 500; }
.link:hover { text-decoration: underline; }
.ent { font-weight: 500; border-bottom: 1px dashed transparent; transition: border-color 0.2s; }
.ent:hover { border-bottom-color: currentColor; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 9px; white-space: nowrap;
  background: var(--idle-bg); color: var(--idle);
}
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.s-verhuurd, .badge.s-afgeleverd, .badge.s-afgerond, .badge.s-actief { background: var(--ok-bg); color: var(--ok); }
.badge.s-transport, .badge.s-onderweg, .badge.s-laden { background: var(--warn-bg); color: var(--warn); }
.badge.s-gereserveerd, .badge.s-gepland, .badge.s-wacht { background: var(--late-bg); color: var(--late); }
.badge.s-onderhoud, .badge.s-uitvoering { background: var(--info-bg); color: var(--info); }
.badge.s-storing, .badge.s-hoog { background: var(--bad-bg); color: var(--bad); }
.badge.s-tekoop { background: #111; color: #fff; }
.badge.s-gps { background: #111; color: #fff; }
.badge.s-brand { background: var(--brand-50); color: var(--brand-ink); }

.btn {
  height: 48px; padding: 0 20px; border-radius: 15px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.dark { background: linear-gradient(180deg, #2a2a2a, #0f0f0f); color: #fff; }
.btn.brand { background: linear-gradient(180deg, #ecd06a, var(--brand) 60%, #d8b33c); color: #231c06; box-shadow: 0 6px 16px rgba(201, 165, 47, 0.3), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.ghost { background: var(--panel); box-shadow: none; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.round-btn {
  width: 48px; height: 48px; border-radius: 15px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: transform .18s var(--ease);
}
.round-btn:hover { transform: translateY(-1px); }
.round-btn.sm { width: 38px; height: 38px; border-radius: 12px; }

.chips { display: flex; gap: 6px; padding: 5px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); border-radius: 18px; flex-wrap: wrap; }
.chip {
  height: 44px; padding: 0 18px; border-radius: 13px; background: #fff; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: color .2s, background .2s;
}
.chip .n { font-size: 12px; color: var(--ink-3); }
.chip.on { color: var(--brand-ink); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--brand), 0 1px 2px rgba(0,0,0,.04); }
.chip.on .n { color: var(--brand-600); }

.field {
  height: 48px; border-radius: 15px; background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); min-width: 260px;
}
.field input, .field select { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.field input::placeholder { color: var(--ink-3); }
select.plain { appearance: none; border: 0; outline: 0; background: transparent; cursor: pointer; }

.divider { border: 0; border-top: 1.5px dashed var(--line-strong); margin: 16px 0; }

.ico { width: 22px; height: 22px; stroke-width: 1.6; flex: none; }
.ico.sm { width: 17px; height: 17px; }
.ico.xs { width: 14px; height: 14px; }

.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #ddd; flex: none; }
.av.sm { width: 32px; height: 32px; }
.av.lg { width: 56px; height: 56px; }
.av-mono {
  width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: #fff;
}

/* ---------- progress (huurperiode) ---------- */
.prog { position: relative; }
.prog-times { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.prog-bar {
  height: 9px; border-radius: 99px; position: relative;
  background-image: repeating-linear-gradient(-55deg, #e6e6e6 0 2px, transparent 2px 6px);
}
.prog-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #d4ad35, #ebce68); }
.prog-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--anthracite);
  width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.prog-marker svg { width: 16px; height: 16px; }
.prog.done .prog-fill { background: var(--ok); }
.prog.idle .prog-fill { background: var(--ink-4); }

/* ---------- machine imagery ---------- */
.mimg { position: relative; display: grid; place-items: end center; }
.mimg img { position: relative; z-index: 1; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.08)); }
.mimg::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -4px; height: 18px; z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.18), transparent);
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-rows: auto auto auto;
  column-gap: 14px; row-gap: 14px;
  position: relative;
}
.stage {
  grid-column: 1; grid-row: 1; height: 580px; position: relative;
  margin-left: -30px;
  overflow: hidden;
}
.stage-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background:
    linear-gradient(180deg, rgba(239,239,239,0) 0%, rgba(226,226,226,.9) 46%, #e9e9e9 100%);
}
.stage-floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.08) 20%, rgba(0,0,0,.08) 80%, transparent);
}
.stage-word {
  position: absolute; left: 22%; top: 10%; font-size: 210px; font-weight: 700; letter-spacing: -0.06em;
  color: rgba(0, 0, 0, 0.028); white-space: nowrap; pointer-events: none; line-height: 1;
}
.stage-machine {
  position: absolute; left: 440px; right: 24px; bottom: 58px; height: 76%;
  display: flex; align-items: flex-end; justify-content: center;
  transform-origin: 50% 85%;
  transition: transform 0.7s var(--ease), opacity 0.35s var(--ease);
}
.stage-machine img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.16)) drop-shadow(0 4px 4px rgba(0,0,0,.12));
}
.stage-machine.swap { opacity: 0; transform: translateX(40px) scale(0.98); }
.stage-shadow {
  position: absolute; left: 500px; right: 70px; bottom: 40px; height: 40px;
  background: radial-gradient(closest-side, rgba(0,0,0,.26), transparent);
}
.hotspot {
  position: absolute; width: 58px; height: 58px; border-radius: 17px; z-index: 4;
  background: linear-gradient(180deg, #2a2a2a, #0d0d0d); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .25s var(--ease);
}
.hotspot:hover { transform: scale(1.06); }
.hotspot.open { transform: rotate(45deg); }
.hotspot::before {
  content: ""; position: absolute; inset: -8px; border-radius: 22px; border: 2px solid rgba(17,17,17,.12);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { opacity: 1; transform: scale(.9); } 80%,100% { opacity: 0; transform: scale(1.25); } }
.hot-pop {
  position: absolute; z-index: 5; width: 270px; background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 18px; padding: 14px; box-shadow: var(--shadow-pop);
  animation: pop .22s var(--ease);
}
.hot-pop .row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.hot-pop .row + .row { border-top: 1px solid var(--line); }

.glass {
  background: rgba(250, 250, 250, 0.74);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.9);
}
.detail-card {
  position: absolute; left: 30px; top: 22px; width: 380px; z-index: 3;
  border-radius: 24px; padding: 20px;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(227,192,75,.20), transparent 60%),
    rgba(250,250,250,.8);
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.dc-head { display: flex; align-items: center; gap: 12px; }
.dc-head .ic { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.dc-head .t { font-size: 18px; font-weight: 500; flex: 1; }
.dc-id-l { font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.dc-id { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.dc-img { height: 104px; margin: 8px 0 12px; display: flex; justify-content: center; }
.dc-img img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,0,0,.12)); }
.kv-rows { display: grid; gap: 7px; }
.kv {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,.9); border-radius: 12px; padding: 0 14px; height: 40px; font-size: 15px;
}
.kv .k { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.kv .v { font-weight: 500; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv .v .live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 0 4px rgba(30,154,75,.14); }

.stage-ctrl { position: absolute; left: 30px; bottom: 16px; z-index: 3; display: flex; gap: 8px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 15px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); }
.seg button { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.seg .wide { width: auto; padding: 0 16px; gap: 8px; display: flex; align-items: center; font-size: 15px; font-weight: 500; }
.stage-arrows { position: absolute; right: 16px; bottom: 16px; z-index: 3; }

.side { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 14px; align-content: start; z-index: 4; position: relative; }
.side .card { background: rgba(247,247,247,.72); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); border: 1px solid rgba(255,255,255,.95); }
.contract-person { display: flex; align-items: center; gap: 14px; }
.contract-person .who { flex: 1; min-width: 0; }
.contract-person .lbl { font-size: 14px; color: var(--ink-2); }
.contract-person .nm { display: block; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.trio .l { font-size: 14px; color: var(--ink-2); }
.trio .v { font-size: 16px; font-weight: 500; margin-top: 6px; }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.route .end b { font-size: 17px; font-weight: 600; display: block; }
.route .end span { font-size: 13.5px; color: var(--ink-2); }
.route .end.r { text-align: right; }
.route-line { position: relative; height: 34px; display: flex; align-items: center; }
.route-line .ticks {
  position: absolute; left: 10px; right: 10px; top: 50%; height: 20px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #cfcfcf 0 1.4px, transparent 1.4px 4px);
  mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.route-line .ticks.done {
  background: repeating-linear-gradient(90deg, #7a7a7a 0 1.4px, transparent 1.4px 4px);
  mask: linear-gradient(90deg, transparent, #000 25%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 25%);
  right: auto;
}
.route-line .pt { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #222; top: 50%; transform: translateY(-50%); }
.route-line .pt.a { left: 0; } .route-line .pt.b { right: 0; }
.route-line .me { position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--anthracite); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.route-line .me::after { content: ""; position: absolute; left: 50%; top: 100%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand-600); margin-top: 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.gauge-wrap { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.gauge { position: relative; width: 210px; height: 120px; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge .gv { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.gauge .gv b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.gauge .gv span { display: block; font-size: 13.5px; color: var(--ink-2); }
.gauge-side .l { font-size: 14px; color: var(--ink-2); }
.gauge-side .v { font-size: 22px; font-weight: 500; margin: 4px 0 14px; letter-spacing: -0.02em; }
.gauge-side .v small { font-size: 14px; color: var(--ink-3); font-weight: 400; }

.minimap { height: 200px; border-radius: 16px; overflow: hidden; position: relative; background: #e9e9e9; }
.minimap .leaflet-container { width: 100%; height: 100%; background: #ececec; }
.map-pills { position: absolute; left: 12px; top: 12px; z-index: 500; display: grid; gap: 6px; }
.map-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.94); border-radius: 10px; padding: 7px 11px; font-size: 13px; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.08); width: max-content; }

.strip { grid-column: 1; grid-row: 2; display: flex; gap: 10px; align-items: stretch; position: relative; margin-top: -26px; z-index: 3; }
.strip-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow: hidden; flex: 1; scroll-behavior: smooth; }
.mini {
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); border-radius: 18px;
  padding: 14px 14px 12px 16px; display: grid; grid-template-columns: 1fr 112px; gap: 6px; align-items: center;
  text-align: left; position: relative; overflow: hidden; transition: background .25s, transform .25s var(--ease), box-shadow .25s;
  min-width: 0;
}
.mini:hover { transform: translateY(-2px); background: #fff; }
.mini.on { background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.06), inset 0 -3px 0 var(--brand); }
.mini .id { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mini .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini img { height: 62px; width: 112px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.12)); }
.strip-arrow { width: 34px; border-radius: 12px; background: rgba(255,255,255,.7); display: grid; place-items: center; flex: none; }
.strip-arrow:hover { background: #fff; }

.kpis { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.25fr; gap: 10px; }
.kpi-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-column: span 2; }
.kpi { background: var(--card-soft); border-radius: 18px; padding: 16px 16px 18px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; justify-content: space-between; min-height: 148px; }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink-2); }
.kpi-top .ki { width: 40px; height: 40px; border-radius: 50%; background: #efefef; display: grid; place-items: center; flex: none; color: var(--ink); }
.kpi .big-num { margin-top: 18px; }
.ticks-chart { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-top: 14px; position: relative; }
.ticks-chart i { flex: 1; background: #d9d9d9; border-radius: 1px; }
.ticks-chart i.hi { background: var(--brand); }
.marker-line { position: absolute; top: -18px; font-size: 12px; transform: translateX(-50%); font-weight: 500; }
.dash-bars { display: flex; gap: 4px; margin-top: 16px; }
.dash-bars i { height: 3px; flex: 1; border-radius: 2px; background: var(--brand); }
.dash-bars i.off { background: #dcdcdc; }
.dash-bars i.svc { background: var(--anthracite); }
.dash-bars i.mat { background: #9fc9e6; }
.dash-bars i.gap { flex: .3; background: transparent; }
.kpi-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.kpi-foot b { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   VLOOT
   ========================================================================== */
.fleet-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 13px; background: rgba(255,255,255,.6); font-size: 14px; white-space: nowrap; transition: background .2s; }
.cat-pill img { width: 44px; height: 30px; object-fit: contain; }
.cat-pill.on { background: #111; color: #fff; }
.cat-pill .n { font-size: 12px; opacity: .55; }
.fleet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mcard {
  background: #fff; border-radius: 22px; padding: 22px 22px 20px; position: relative;
  box-shadow: var(--shadow-card); border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
  display: flex; flex-direction: column; text-align: left; min-width: 0;
}
.mcard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.07); border-color: var(--brand); }
.mcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mcard-name { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.mcard-id { font-size: 14.5px; color: var(--ink-3); margin-top: 6px; }
.mcard .mimg { height: 168px; margin: 14px 0 18px; }
.mcard .mimg img { max-height: 160px; }
.mcard-person { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.mcard-person .l { font-size: 13px; color: var(--ink-3); }
.mcard-person .n { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-person .upd { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; align-self: flex-end; }
.mcard-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14.5px; gap: 8px; }
.mcard-foot span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mcard-foot svg { color: var(--ink-3); }
.mcard .flag { position: absolute; left: 0; top: 0; z-index: 2; padding: 4px 8px; font-size: 12px; }
.mcard-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.pager .info { background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); }
.pager .pages { display: flex; gap: 6px; }
.pager .pages button { width: 40px; height: 40px; border-radius: 12px; background: #fff; font-size: 14px; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pager .pages button.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ink); }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 18px; font-weight: 500; margin-bottom: 6px; }

/* ==========================================================================
   MACHINE DETAIL
   ========================================================================== */
.md { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; }
.md-hero { position: relative; height: 460px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #f6f6f6, #ececec 60%, #e4e4e4); }
.md-hero .stage-floor { height: 40%; }
.md-hero .stage-machine { left: 8%; width: 84%; bottom: 46px; height: 74%; }
.md-hero .stage-shadow { left: 18%; width: 64%; bottom: 30px; }
.md-hero .tags { position: absolute; left: 22px; top: 22px; display: flex; gap: 8px; z-index: 3; flex-wrap: wrap; }
.md-hero .specs-float { position: absolute; right: 18px; top: 18px; z-index: 3; display: grid; gap: 8px; }
.spec-chip { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 14px; min-width: 150px; }
.spec-chip .l { font-size: 12.5px; color: var(--ink-3); }
.spec-chip .v { font-size: 17px; font-weight: 500; margin-top: 2px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.55); border-radius: 16px; width: max-content; margin: 14px 0; border: 1px solid rgba(255,255,255,.9); }
.tabs button { height: 42px; padding: 0 16px; border-radius: 12px; font-size: 15px; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rate { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow-card); }
.rate .l { font-size: 14px; color: var(--ink-2); }
.rate .v { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; margin-top: 10px; }
.rate .v small { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.rate.best { background: #111; color: #fff; }
.rate.best .l, .rate.best .v small { color: rgba(255,255,255,.6); }
.table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14.5px; }
.table th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: 13px; padding: 0 14px 4px; white-space: nowrap; }
.table td { background: #fff; padding: 13px 14px; white-space: nowrap; }
.table td:first-child { border-radius: 12px 0 0 12px; }
.table td:last-child { border-radius: 0 12px 12px 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #fafafa; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.avail { display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; margin-top: 10px; }
.avail i { height: 30px; border-radius: 6px; background: #e3e3e3; position: relative; }
.avail i.busy { background: var(--brand); }
.avail i.res { background: repeating-linear-gradient(-55deg, var(--brand-300) 0 3px, #f6e7b5 3px 6px); }
.avail i.svc { background: var(--info); }
.avail i.today { outline: 2px solid #111; outline-offset: 1px; }
.avail-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 10px; flex-wrap: wrap; }
.avail-legend span { display: inline-flex; align-items: center; gap: 6px; }
.avail-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.acc { background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; box-shadow: var(--shadow-card); }
.acc .n { font-size: 14.5px; font-weight: 500; }
.acc .c { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.acc .p { font-size: 15px; font-weight: 600; white-space: nowrap; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-list .kv { background: #fff; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 10px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1.5px; background: var(--line-strong); }
.tl:first-child::before { top: 18px; }
.tl:last-child::before { bottom: calc(100% - 18px); }
.tl .d { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink-4); position: relative; z-index: 1; margin-top: 2px; display: grid; place-items: center; }
.tl .d.on { border-color: var(--brand); }
.tl .d.on::after { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }
.tl .t { font-size: 14.5px; font-weight: 500; }
.tl .s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.tl .r { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* ==========================================================================
   PLANNING (gantt)
   ========================================================================== */
.gantt { background: #fff; border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; }
.g-scroll { overflow-x: auto; }
.g-grid { --gl: 290px; display: grid; min-width: 1200px; }
.g-row { display: grid; grid-template-columns: var(--gl) 1fr; border-bottom: 1px solid var(--line); min-height: 64px; }
.g-row.head { min-height: 58px; position: sticky; top: 0; background: #fff; z-index: 3; }
.g-row.group { min-height: 40px; background: #fafafa; }
.g-row.group .g-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.g-label { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-right: 1px solid var(--line); min-width: 0; }
.g-label img { width: 66px; height: 42px; object-fit: contain; flex: none; }
.g-label .t { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-label .s { font-size: 12.5px; color: var(--ink-3); }
.g-days { display: grid; position: relative; }
.g-day { border-left: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.g-day b { font-size: 15px; color: var(--ink); font-weight: 500; }
.g-day.we { background: repeating-linear-gradient(-55deg, #f6f6f6 0 2px, transparent 2px 7px); }
.g-day.today b { background: var(--anthracite); color: #fff; border-radius: 8px; padding: 2px 7px; }
.g-lane { position: relative; }
.g-lane .bg { position: absolute; inset: 0; display: grid; }
.g-lane .bg i { border-left: 1px solid var(--line); }
.g-lane .bg i.we { background: repeating-linear-gradient(-55deg, #f8f8f8 0 2px, transparent 2px 7px); }
.g-bar {
  position: absolute; top: 12px; bottom: 12px; border-radius: 12px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden;
  background: linear-gradient(180deg, #ebcd66, var(--brand)); color: #2a2208; box-shadow: 0 4px 10px rgba(201,165,47,.25);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.g-bar:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(201,165,47,.35); z-index: 2; }
.g-bar img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid rgba(255,255,255,.8); }
.g-bar.res { background: repeating-linear-gradient(-55deg, #efd88f 0 4px, #f6e7b5 4px 8px); color: #5c4708; box-shadow: none; }
.g-bar.svc { background: var(--info); color: #fff; box-shadow: 0 4px 10px rgba(10,143,208,.22); }
.g-bar.bad { background: #111; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--anthracite); z-index: 2; pointer-events: none; }
.g-now::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--anthracite); }
.legend { display: flex; gap: 16px; font-size: 13.5px; color: var(--ink-2); align-items: center; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend i { width: 22px; height: 10px; border-radius: 4px; display: inline-block; }

/* ==========================================================================
   TRANSPORT
   ========================================================================== */
.tr-layout { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 14px; }
.bigmap { height: 720px; border-radius: 24px; overflow: hidden; position: relative; box-shadow: var(--shadow-card); }
.bigmap .leaflet-container { height: 100%; width: 100%; background: #ececec; font-family: var(--font); }
.ride-list { display: grid; gap: 10px; align-content: start; max-height: 720px; overflow: auto; padding-right: 2px; }
.ride { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-card); border: 1.5px solid transparent; transition: border-color .2s, transform .25s var(--ease); text-align: left; width: 100%; }
.ride:hover { transform: translateY(-2px); }
.ride.on { border-color: var(--brand-600); }
.ride-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ride-type { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.ride-mid { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; margin: 10px 0 12px; }
.ride-mid .t { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.ride-mid .s { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.ride-mid img { height: 64px; object-fit: contain; justify-self: end; filter: drop-shadow(0 6px 6px rgba(0,0,0,.12)); }
.ride-driver { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ride-driver .plate { margin-left: auto; font-size: 12.5px; border: 1.5px solid #b51f1f; color: #b51f1f; border-radius: 5px; padding: 2px 6px; font-weight: 600; letter-spacing: .04em; }
.map-legend { position: absolute; z-index: 500; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 14px; display: flex; gap: 14px; font-size: 13px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-card { position: absolute; z-index: 500; right: 16px; top: 16px; width: 330px; }
.pin { position: relative; }
.pin-dot { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.25); border: 2.5px solid #fff; }
.pin-dot span { transform: rotate(45deg); color: #fff; font-size: 11px; font-weight: 700; }
.depot-pin { width: 44px; height: 44px; border-radius: 14px; background: var(--anthracite); display: grid; place-items: center; color: var(--brand); box-shadow: 0 8px 18px rgba(0,0,0,.3); border: 3px solid #fff; }
.depot-pin svg { width: 16px; height: 22px; }
.truck-pin { width: 38px; height: 38px; border-radius: 12px; background: #111; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.3); border: 2.5px solid #fff; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: var(--shadow-pop) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font); font-size: 14px; }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255,255,255,.6) !important; }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 2px 8px rgba(0,0,0,.1) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; border: 0 !important; color: #111 !important; }

/* ==========================================================================
   SERVICE
   ========================================================================== */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.col { background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.85); border-radius: 22px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 420px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 4px; font-weight: 500; font-size: 16px; }
.col-head .n { font-size: 13px; color: var(--ink-3); background: #fff; border-radius: 8px; padding: 3px 8px; }
.wo { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow-card); text-align: left; width: 100%; transition: transform .25s var(--ease), box-shadow .25s; }
.wo:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.06); }
.wo-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.wo-id { font-size: 12.5px; color: var(--ink-3); }
.wo-t { font-size: 16px; font-weight: 500; margin: 10px 0 2px; letter-spacing: -0.01em; }
.wo-m { display: grid; grid-template-columns: 1fr 92px; gap: 8px; align-items: center; }
.wo-m img { height: 54px; object-fit: contain; justify-self: end; }
.wo-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.wo-foot .due { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; }
.svc-hrs { display: grid; gap: 8px; }
.svc-row { display: grid; grid-template-columns: 76px 1fr 120px; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow-card); }
.svc-row img { width: 76px; height: 46px; object-fit: contain; }
.hbar { height: 8px; border-radius: 99px; background: #ececec; overflow: hidden; margin-top: 8px; }
.hbar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.hbar i.warn { background: var(--warn); }
.hbar i.bad { background: var(--bad); }

/* ==========================================================================
   KLANTEN
   ========================================================================== */
.cust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cust { background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; text-align: left; transition: transform .3s var(--ease), box-shadow .3s; border: 1.5px solid transparent; }
.cust:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.07); border-color: var(--brand); }
.cust-top { display: flex; gap: 14px; align-items: center; }
.cust-top .t { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.cust-top .s { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.cust-machines { display: flex; gap: 4px; align-items: flex-end; height: 64px; padding: 6px 4px 0; background: linear-gradient(180deg, transparent, #f5f5f5); border-radius: 14px; overflow: hidden; }
.cust-machines img { height: 52px; width: auto; max-width: 31%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.1)); }
.cust-machines .more { font-size: 13px; color: var(--ink-3); align-self: center; margin-left: auto; padding-right: 8px; }
.cust-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cust-kpis > div { background: var(--panel); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.cust-kpis .v { white-space: nowrap; }
.cust-kpis .l { font-size: 12px; color: var(--ink-3); }
.cust-kpis .v { font-size: 17px; font-weight: 500; margin-top: 2px; }
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px; }
.werf-card { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-card); border: 1.5px solid transparent; }
.werf-card.hl { border-color: var(--brand); }
.werf-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.werf-head .t { font-size: 17px; font-weight: 500; }
.werf-head .s { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.werf-machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.wm { background: var(--panel); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr 64px; gap: 6px; align-items: center; text-align: left; transition: background .2s; }
.wm:hover { background: #ececec; }
.wm .t { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.wm img { height: 40px; width: 64px; object-fit: contain; }
.contact-card { display: grid; gap: 10px; }

/* ==========================================================================
   ADVIES / OFFERTE
   ========================================================================== */
.adv { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; margin: 4px 0 12px; }
.step-title .n { width: 28px; height: 28px; border-radius: 9px; background: #111; color: #fff; display: grid; place-items: center; font-size: 13px; }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.job { background: #fff; border-radius: 18px; padding: 16px; text-align: left; border: 1.5px solid transparent; box-shadow: var(--shadow-card); transition: border-color .2s, transform .25s var(--ease); display: grid; grid-template-columns: 1fr 96px; gap: 8px; align-items: end; min-height: 112px; }
.job:hover { transform: translateY(-2px); }
.job.on { border-color: var(--brand-600); box-shadow: 0 10px 24px rgba(201,165,47,.18); }
.job .t { font-size: 16px; font-weight: 500; }
.job .s { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
.job img { height: 60px; width: 96px; object-fit: contain; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.rec-list { display: grid; gap: 10px; }
.rec { background: #fff; border-radius: 20px; padding: 14px 18px 14px 14px; display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; box-shadow: var(--shadow-card); border: 1.5px solid transparent; transition: border-color .2s; }
.rec.on { border-color: var(--ink); }
.rec img { width: 150px; height: 86px; object-fit: contain; }
.rec .t { font-size: 17px; font-weight: 500; }
.rec .s { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.rec .why { font-size: 13px; color: var(--ink-2); margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.rec .why span { background: var(--panel); padding: 4px 8px; border-radius: 8px; }
.rec .price { text-align: right; }
.rec .price b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; display: block; }
.rec .price small { font-size: 12.5px; color: var(--ink-3); }
.quote { position: sticky; top: 20px; }
.q-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 8px 0; }
.q-line .l { color: var(--ink-2); }
.q-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.q-total b { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.range { width: 100%; accent-color: var(--brand); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 13px; padding: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.stepper button { width: 36px; height: 36px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; }
.stepper span { min-width: 90px; text-align: center; font-weight: 500; }

/* ==========================================================================
   RAPPORTEN
   ========================================================================== */
.rep-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--ink-3); }
.chart .hit { fill: transparent; transition: fill .2s; }
.chart .bar-g { cursor: pointer; }
.chart .bar-g .b { transition: opacity .2s var(--ease); }
.chart svg.hovering .bar-g:not(.on) .b { opacity: .3; }
.chart .bar-g.on .hit { fill: rgba(0, 0, 0, 0.035); }
.chart .bar-g.on text { fill: var(--ink); font-weight: 500; }
.chart-tip {
  position: absolute; z-index: 5; min-width: 210px; pointer-events: none;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-pop); animation: pop .18s var(--ease);
}
.chart-tip .ct-m { font-size: 13px; color: var(--ink-3); text-transform: capitalize; margin-bottom: 8px; }
.chart-tip .ct-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; }
.chart-tip .ct-row i { width: 10px; height: 10px; border-radius: 3px; }
.chart-tip .ct-row i.prev { background: repeating-linear-gradient(-55deg, #cfcfcf 0 2px, #ececec 2px 4px); }
.chart-tip .ct-row b { margin-left: auto; padding-left: 14px; font-weight: 600; }
.chart-tip .ct-d { margin-top: 8px; font-size: 12.5px; font-weight: 500; padding: 4px 8px; border-radius: 8px; display: inline-block; }
.chart-tip .ct-d.up { background: var(--ok-bg); color: var(--ok); }
.chart-tip .ct-d.down { background: var(--bad-bg); color: var(--bad); }
.hbars { display: grid; gap: 12px; }
.hb { display: grid; grid-template-columns: 170px 1fr 52px; gap: 12px; align-items: center; font-size: 14px; }
.hb .track { height: 12px; border-radius: 99px; background-image: repeating-linear-gradient(-55deg, #e6e6e6 0 2px, transparent 2px 6px); position: relative; }
.hb .track i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #d4ad35, #ebce68); }
.hb .v { text-align: right; font-weight: 500; }
.top-row { display: grid; grid-template-columns: 26px 70px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.top-row:last-child { border-bottom: 0; }
.top-row .r { color: var(--ink-3); font-size: 13px; }
.top-row img { width: 70px; height: 40px; object-fit: contain; }
.ring { position: relative; width: 200px; height: 200px; margin: 4px auto 0; }
.ring svg { width: 100%; height: 100%; }
.ring circle { transition: opacity .2s; }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .c b { font-size: 38px; font-weight: 500; letter-spacing: -0.03em; display: block; line-height: 1; }
.ring .c span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.occ-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; }
.occ-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px; background: var(--panel); font-size: 13.5px; transition: background .2s; }
.occ-item:hover { background: #ececec; }
.occ-item i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.occ-item b { margin-left: auto; font-weight: 600; }
.occ-goal { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.occ-goal-top { display: flex; justify-content: space-between; align-items: baseline; }
.occ-goal-top b { font-weight: 500; }
.occ-goal .hbar i.bad { background: linear-gradient(90deg, #d4ad35, #ebce68); }

/* ==========================================================================
   DRAWER + TOAST
   ========================================================================== */
.scrim { position: fixed; inset: 0; background: rgba(20,20,20,.25); backdrop-filter: blur(3px); z-index: 900; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 16px; right: 16px; bottom: 16px; width: 520px; max-width: calc(100vw - 32px);
  background: var(--shell); border-radius: 28px; z-index: 901; box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; overflow: hidden;
  animation: slide .4s var(--ease);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 24px 8px; }
.drawer-head h2 { margin: 6px 0 0; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.drawer-body { padding: 12px 24px 24px; overflow: auto; display: grid; gap: 12px; align-content: start; }
.drawer-hero { height: 190px; border-radius: 20px; background: linear-gradient(180deg, #fafafa, #ececec); position: relative; overflow: hidden; display: grid; place-items: center; }
.drawer-hero img { max-height: 160px; max-width: 86%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0,0,0,.15)); }
.drawer-foot { padding: 16px 24px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); }
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; }
.toast { background: #111; color: #fff; border-radius: 16px; padding: 12px 18px; display: flex; gap: 10px; align-items: center; font-size: 14.5px; box-shadow: var(--shadow-pop); animation: toastIn .35s var(--ease); }
.toast svg { color: #6ee7a0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@container shell (min-width: 1820px) {
  .fleet-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip-track { grid-auto-columns: calc((100% - 40px) / 5); }
  .dash { grid-template-columns: minmax(0, 1fr) 420px; }
  .stage { height: 620px; }
  .stage-machine { left: 480px; right: 32px; }
}
@container shell (min-width: 2240px) {
  .fleet-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .strip-track { grid-auto-columns: calc((100% - 50px) / 6); }
}
@container shell (max-width: 1320px) {
  .fleet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-mini { grid-column: span 2; }
  .search { flex-basis: 260px; }
  .head { flex-direction: column; align-items: stretch; }
}
@container shell (max-width: 1120px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-column: 1; }
  .side { grid-column: 1; grid-row: auto; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .strip { grid-row: 2; }
  .side { grid-row: 3; }
  .kpis { grid-row: 4; }
  .md, .tr-layout, .cd-layout, .adv { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-8, .span-4, .span-6 { grid-column: span 12; }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { position: static; }
  .topc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- smalle content: machine bovenaan, details eronder ---------- */
@container shell (max-width: 840px) {
  .dash { display: flex; flex-direction: column; gap: 12px; }
  .stage { order: 1; height: auto; padding-top: 360px; margin: 0 -30px; overflow: visible; }
  .stage-floor { top: 0; bottom: auto; height: 360px; }
  .stage-word { display: none; }
  .stage-machine { top: 22px; bottom: auto; left: 30px; right: 30px; width: auto; height: 290px; }
  .stage-shadow { top: 296px; bottom: auto; left: 18%; right: 18%; }
  .stage-ctrl { display: none; }
  .stage-arrows { top: 296px; bottom: auto; right: 30px; }
  .detail-card { position: relative; left: auto; top: auto; width: auto; margin: 0 30px; }
  .dc-img { display: none; }
  .dc-id-l { margin-top: 12px; }
  .hot-pop { width: auto; left: 12px !important; right: 12px; }
  .strip { order: 2; margin: 0 -30px; padding: 0 30px; }
  .strip-arrow { display: none; }
  .strip-track { grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
  .strip-track::-webkit-scrollbar { display: none; }
  .mini { scroll-snap-align: start; grid-template-columns: 1fr 96px; }
  .mini img { width: 96px; height: 54px; }
  .side { order: 3; gap: 12px; }
  .kpis { order: 4; }
}

/* ---------- telefoon ---------- */
@media (max-width: 760px) {
  body { -webkit-text-size-adjust: 100%; }
  .shell { padding: 12px 16px calc(108px + env(safe-area-inset-bottom)); }

  /* topbar + navigatie onderaan */
  .topbar { grid-template-columns: 1fr auto; gap: 10px; }
  .topbar > .nav, .sidebar, .top-ctx { display: none; }
  .brand.m-only { display: flex !important; }
  .avatar-btn.m-only { display: block !important; }
  .top-group.m-only { display: flex !important; }
  .popover.side-pop { left: 12px; right: 12px; top: 70px; bottom: auto; width: auto; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }
  .top-group { gap: 4px; padding: 3px; border-radius: 18px; }
  .icon-btn, .avatar-btn { width: 44px; height: 44px; border-radius: 15px; }
  .icon-btn .dot { top: 10px; right: 11px; }
  .m-search-btn { display: grid; }
  .search { display: none; }
  .topbar.search-open .search { display: flex; position: absolute; top: calc(100% + 8px); left: 0; right: 0; height: 52px; z-index: 40; box-shadow: var(--shadow-pop); }
  .search kbd { display: none; }
  .popover { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; }
  .tabbar { display: flex; }

  /* koppen & statistieken */
  .head { margin: 18px 0 14px; gap: 14px; }
  .head h1 { font-size: 30px; }
  .head p { font-size: 14.5px; margin-top: 6px; }
  .head-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .head-actions .btn { width: 100%; padding: 0 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px; gap: 10px; border-radius: 18px; align-items: flex-start; }
  .stat-ico { width: 40px; height: 40px; border-radius: 12px; }
  .stat-ico .ico { width: 19px; height: 19px; }
  .stat-l { font-size: 12.5px; white-space: normal; line-height: 1.25; }
  .stat-v { margin-top: 6px; }
  .stat-v b { font-size: 24px; }
  .delta { font-size: 11px; padding: 2px 6px; border-radius: 6px; }

  .panel { padding: 12px; border-radius: 20px; }
  .panel-head { gap: 10px; }
  .panel-head h2 { font-size: 19px; }
  .card { padding: 16px; border-radius: 18px; }
  .card h3 { font-size: 18px; }
  .fleet-tools { width: 100%; justify-content: stretch; }
  .fleet-tools .field { width: 100%; min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 40px; padding: 0 14px; font-size: 14px; flex: none; }
  .btn { height: 46px; }
  .table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

  /* dashboard (telefoon): randen volgen de kleinere shell-padding */
  .stage { margin: 0 -16px; padding-top: 286px; }
  .stage-floor { height: 286px; }
  .stage-machine { left: 16px; right: 16px; height: 228px; }
  .stage-shadow { top: 232px; }
  .stage-arrows { top: 232px; right: 16px; }
  .detail-card { margin: 0 16px; padding: 16px; }
  .strip { margin: 0 -16px; padding: 0 16px; }
  .strip-track { grid-auto-columns: 74%; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kpi-mini { grid-template-columns: 1fr 1fr; gap: 8px; grid-column: auto; }
  .kpi { min-height: 0; padding: 14px; }
  .kpi .big-num { font-size: 32px; margin-top: 12px; }
  .gauge-wrap { grid-template-columns: auto 1fr; }
  .gauge { width: 180px; height: 104px; }
  .minimap { height: 220px; }

  /* vloot */
  .fleet-grid { grid-template-columns: minmax(0, 1fr); }
  .mcard { padding: 18px; }
  .mcard .mimg { height: 150px; margin: 10px 0 14px; }
  .mcard .mimg img { max-height: 144px; }
  .mcard-person { margin-bottom: 18px; }
  .pager { flex-direction: column; gap: 10px; align-items: stretch; }
  .pager .info { text-align: center; }
  .pager .pages { justify-content: center; }

  /* machinefiche */
  .md-hero { height: 340px; border-radius: 22px; }
  .md-hero .stage-word { display: none; }
  .md-hero .stage-machine { left: 4%; width: 92%; top: 56px; bottom: auto; height: 170px; }
  .md-hero .stage-shadow { top: 214px; bottom: auto; }
  .md-hero .stage-floor { height: 50%; }
  .md-hero .tags { left: 14px; top: 14px; }
  .md-hero .specs-float { top: auto; bottom: 12px; left: 12px; right: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-chip { min-width: 0; padding: 8px 10px; border-radius: 12px; }
  .spec-chip .v { font-size: 15px; }
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 0 14px; }
  .ov-grid, .spec-list, .rates { grid-template-columns: minmax(0, 1fr) !important; }
  .calc { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .calc > div:last-child { text-align: left !important; }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }

  /* planning */
  .g-grid { --gl: 150px; min-width: 980px; }
  .g-label { padding: 8px 10px; position: sticky; left: 0; background: #fff; z-index: 2; }
  .g-row.group .g-label { background: #fafafa; }
  .g-label img { display: none; }
  .g-label .t { font-size: 13.5px; }
  .legend { gap: 10px; font-size: 12.5px; }

  /* transport */
  .tr-layout { display: flex; flex-direction: column; gap: 12px; }
  .bigmap { order: -1; height: 360px; border-radius: 20px; }
  .map-card { display: none; }
  .map-legend { left: 10px; right: 10px; bottom: 10px; gap: 10px; font-size: 12px; flex-wrap: wrap; }
  .ride-list { max-height: none; overflow: visible; }
  .ride-mid { grid-template-columns: 1fr 96px; }
  .ride-driver .dim { display: none; }

  /* service */
  .kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .kanban::-webkit-scrollbar { display: none; }
  .col { scroll-snap-align: start; min-height: 0; }
  .svc-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .svc-row img { width: 56px; height: 38px; }
  .svc-row > div:last-child { grid-column: 2; text-align: left !important; display: flex; gap: 8px; align-items: baseline; }

  /* klanten */
  .cust-grid { grid-template-columns: minmax(0, 1fr); }
  .cust-head { gap: 12px !important; }
  .cust-head h1 { font-size: 26px; }
  .werf-machines { grid-template-columns: minmax(0, 1fr); }

  /* advies */
  .job-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .job { grid-template-columns: minmax(0, 1fr); padding: 12px; min-height: 0; align-items: start; }
  .job img { order: -1; width: 84px; height: 48px; justify-self: start; }
  .job .t { font-size: 15px; }
  .job .s { font-size: 12.5px; }
  .opt-row .field { min-width: 0 !important; width: 100%; flex-basis: 100% !important; }
  .rec { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .rec img { width: 96px; height: 60px; }
  .rec .price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .rec .why { display: none; }

  /* rapporten */
  .rep-grid { grid-template-columns: minmax(0, 1fr); }
  .rep-grid > * { grid-column: auto !important; }
  .hb { grid-template-columns: 112px minmax(0, 1fr) 40px; font-size: 13px; gap: 8px; }
  .topc { grid-template-columns: minmax(0, 1fr) 1fr; }
  .chart .card-head { flex-wrap: wrap; }
  .chart-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .chart-scroll::-webkit-scrollbar { display: none; }
  .chart-scroll svg { min-width: 620px; }
  .chart text { font-size: 15px; }

  /* drawer als bottom sheet */
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; animation: sheet .4s var(--ease); }
  .drawer-head { padding: 18px 18px 6px; }
  .drawer-head h2 { font-size: 24px; }
  .drawer-body { padding: 10px 16px 16px; }
  .drawer-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .drawer-hero { height: 150px; }
  .toast-wrap { bottom: calc(96px + env(safe-area-inset-bottom)); left: 16px; right: 16px; transform: none; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   SERVITO — aanvullende componenten
   ========================================================================== */
.side-link { height: 50px; }
.side-nav { gap: 3px; }
.badge.s-ok { background: var(--ok-bg); color: var(--ok); }
.badge.s-info { background: var(--info-bg); color: var(--info); }
.badge.s-bad { background: var(--bad-bg); color: var(--bad); }
.badge.s-warn { background: var(--warn-bg); color: var(--warn); }
.badge.s-late { background: var(--late-bg); color: var(--late); }
.badge.s-dark { background: #111; color: #fff; }
.kv .v .live.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(180,35,24,.14); }
.hq-av { background: var(--anthracite); color: var(--brand); border-radius: 50%; }
.hq-av svg { width: 16px; height: 22px; }
.av-mono.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 12.5px; }
.warn-t { color: var(--warn); }

/* dashboard */
.stage-machine.lowres img { max-width: min(100%, 660px); }
.mini { position: relative; }
.mini-st { position: absolute; left: 16px; bottom: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.mini-st.s-ok { background: var(--ok); } .mini-st.s-bad { background: var(--bad); } .mini-st.s-info { background: var(--info); }
.mini-st.s-late { background: var(--late); } .mini-st.s-brand { background: var(--brand-600); } .mini-st.s-warn { background: var(--warn); }
.mini .sub { padding-bottom: 12px; }
.map-pill .av { border-radius: 50%; }

/* progress-varianten */
.prog.alert .prog-fill { background: linear-gradient(90deg, #e0574f, #b42318); }
.prog.alert .prog-marker { color: var(--bad); }
.prog.warn .prog-fill { background: linear-gradient(90deg, #3aa9e0, var(--info)); }

/* drawers */
.bullets { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel); font-size: 14px; margin-top: 6px; }
.doc-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row:hover { background: #ececec; }
.mat-line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mat-line:last-child { border-bottom: 0; }
.mat-line img { width: 54px; height: 44px; object-fit: contain; }
.mat-line .t { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-line .s { font-size: 12.5px; color: var(--ink-3); }

/* projecten-pijplijn */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pipeline .col { min-height: 360px; }
.ph-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #111; color: #fff; font-size: 11.5px; margin-right: 8px; }
.col-empty { display: grid; justify-items: center; gap: 8px; padding: 26px 10px; color: var(--ink-3); font-size: 13px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: 16px; }
.pcard { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow-card); display: grid; gap: 12px; border: 1.5px solid transparent; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; min-width: 0; }
.pcard:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 14px 28px rgba(0,0,0,.06); }
.pcard-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pcard-top .t { font-size: 15.5px; font-weight: 500; line-height: 1.25; }
.pcard-top .s { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.pcard .cust-machines { height: 56px; }
.pcard .cust-machines img { height: 46px; }
.pcard-cust { display: flex; gap: 10px; align-items: center; }
.pcard-cust .n { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-cust .l { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbud { font-weight: 600; font-size: 15px; white-space: nowrap; background: var(--panel); padding: 4px 8px; border-radius: 8px; }
.pcard .prog-times { font-size: 12.5px; }
.pcard-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding-top: 10px; border-top: 1px solid var(--line); }
.pcard-foot .due { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.step { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-card); min-width: 0; }
.step .stat-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand-ink); }
.step b { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; margin-top: 2px; }

/* projectfiche */
.proj-hero { height: 400px; }
.lineup { position: absolute; left: 6%; right: 6%; bottom: 44px; height: 60%; display: flex; align-items: flex-end; gap: 2px; z-index: 2; }
.lu { height: 100%; display: flex; align-items: flex-end; justify-content: center; min-width: 0; padding: 0; transition: transform .25s var(--ease); }
.lu:hover { transform: translateY(-4px); }
.lu img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(0,0,0,.14)); }
.proj-hero::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 30px; height: 30px; background: radial-gradient(closest-side, rgba(0,0,0,.22), transparent); z-index: 1; }
.team { display: grid; gap: 10px; }
.tm { display: flex; gap: 12px; align-items: center; }
.tm .n { font-size: 15px; font-weight: 500; }
.tm .l { font-size: 12.5px; color: var(--ink-3); }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; height: 170px; object-fit: cover; }
.photo-card > div { padding: 14px 18px 16px; }
.photo-card b { display: block; font-weight: 500; font-size: 16px; }
.photo-card span { font-size: 13px; color: var(--ink-3); }
.phases { display: grid; }
.ph { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; position: relative; align-items: center; }
.ph::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.ph:first-child::before { top: 50%; } .ph:last-child::before { bottom: 50%; }
.ph.done::before { background: var(--brand); }
.ph-dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-4); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-3); position: relative; z-index: 1; }
.ph.done .ph-dot { background: var(--brand); border-color: var(--brand); color: #231c06; }
.ph.now .ph-dot { border-color: var(--anthracite); background: var(--anthracite); color: #fff; box-shadow: 0 0 0 5px rgba(227,192,75,.35); }
.ph .t { font-size: 15px; font-weight: 500; }
.ph .s { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.ph .r { font-size: 13px; color: var(--ink-3); }
.acc.doc { text-align: left; width: 100%; gap: 12px; justify-content: flex-start; }
.acc.doc.off { opacity: .55; }

/* 2D-plan */
.plan-card { padding: 16px; }
.plan-wrap { position: relative; background: #fff; border-radius: 16px; }
.plan-svg { width: 100%; height: auto; display: block; overflow: visible; }
.plan-svg text { font-family: var(--font); font-size: 17px; fill: #3a3a3a; font-weight: 500; pointer-events: none; }
.plan-svg .pl-note { font-size: 15px; fill: var(--ink-3); font-weight: 400; }
.plan-svg .pl-dim line { stroke: #b4b4b4; stroke-width: 1.5; }
.plan-svg .pl-dim text { font-size: 16px; fill: var(--ink-3); font-weight: 400; }
.plan-svg .pl-item[data-pid] { cursor: pointer; }
.plan-svg .pl-item rect { transition: opacity .2s, stroke .2s; }
.plan-svg.hovering .pl-item[data-pid]:not(.on) rect { opacity: .45; }
.plan-svg .pl-item.on rect { stroke: #111; stroke-width: 3; }
.plan-svg .pl-item.tbl text { fill: var(--ink-3); font-weight: 400; }
.plan-tip { min-width: 230px; }

/* keukenontwerp */
.rec.dsg { grid-template-columns: 110px minmax(0, 1fr) auto; padding: 10px 16px 10px 10px; }
.rec-img { width: 110px; height: 70px; display: grid; place-items: center; border-radius: 12px; transition: background .2s; }
.rec-img:hover { background: var(--panel); }
.rec-img img { width: 100px; height: 64px; object-fit: contain; }
.rec-r { display: flex; align-items: center; gap: 14px; }
.rec-r b { font-size: 16px; font-weight: 500; min-width: 86px; text-align: right; white-space: nowrap; }
.stepper.sm { padding: 3px; border-radius: 11px; }
.stepper.sm button { width: 28px; height: 28px; border-radius: 8px; }
.stepper.sm span { min-width: 34px; font-size: 14px; }
.marrone-banner { position: relative; margin-top: 14px; border-radius: 14px; overflow: hidden; }
.marrone-banner img { width: 100%; height: 86px; object-fit: cover; }
.marrone-banner span { position: absolute; left: 10px; bottom: 8px; background: rgba(17,17,17,.78); color: #fff; font-size: 12.5px; padding: 5px 9px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* toestelfiche */
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.live-tile { display: flex; gap: 12px; align-items: center; background: var(--card-soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 0; }
.live-tile b { display: block; font-size: 16px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check { display: flex; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.check:last-child { border-bottom: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--anthracite); }

/* service */
.kanban.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wo.urgent { box-shadow: inset 3px 0 0 var(--bad), var(--shadow-card); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.van-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.van { background: #fff; border-radius: 20px; padding: 14px 16px 16px; box-shadow: var(--shadow-card); min-width: 0; }
.van-top { display: flex; gap: 12px; align-items: center; }
.van-top .t { font-size: 16px; font-weight: 500; }
.van-top .s { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate, .van .plate { font-size: 12px; border: 1.5px solid #b51f1f; color: #b51f1f; border-radius: 5px; padding: 2px 6px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.van-where { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-2); margin: 12px 0 10px; padding: 8px 10px; background: var(--panel); border-radius: 10px; }
.van-stock { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.van-stock b { color: var(--ink); font-weight: 500; }
.hbar i.warn { background: var(--warn); }
.hbar i.bad-gold { background: linear-gradient(90deg, #d4ad35, #ebce68); }

/* routes */
.truck-pin.lv { background: var(--brand); color: #231c06; }
.ride-mats { display: flex; justify-content: flex-end; gap: 2px; }
.ride-mats img { width: 40px; height: 44px; object-fit: contain; }
.stops { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.stop { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel); width: 100%; }
.stop .sn { width: 24px; height: 24px; border-radius: 8px; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.stop.klaar .sn { background: var(--ok); color: #fff; }
.stop.bezig .sn { background: var(--brand); }
.stop .t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop .s { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.stop:hover { background: #ececec; }

/* planning */
.g-bar.thin { top: 6px; bottom: auto; height: 12px; padding: 0 8px; font-size: 0; border-radius: 6px; }
.g-bar.thin::after { content: attr(title); font-size: 10.5px; font-weight: 600; }
.g-bar.past { opacity: .5; }
.g-bar.tour { background: #e2e2e2; color: #3a3a3a; box-shadow: none; }
.g-row:has(.g-bar.thin) .g-bar:not(.thin) { top: 22px; }
.g-label .av { flex: none; }

/* horecamaterialen */
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.order { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow-card); text-align: left; display: grid; gap: 12px; border: 1.5px solid transparent; transition: transform .25s var(--ease), border-color .2s; min-width: 0; }
.order:hover { transform: translateY(-2px); border-color: var(--brand); }
.order-top { display: flex; gap: 10px; align-items: center; }
.order-top .t { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-top .s { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-mats { display: flex; gap: 6px; align-items: center; height: 56px; padding: 4px 8px; background: linear-gradient(180deg, transparent, #f5f5f5); border-radius: 12px; }
.order-mats img { height: 46px; width: 46px; object-fit: contain; }
.order-mats .more { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.order-foot { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.order-foot .key { display: inline-flex; gap: 4px; align-items: center; background: var(--brand-50); color: var(--brand-ink); padding: 2px 7px; border-radius: 7px; font-weight: 500; }
.order-foot .due { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.order-foot b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.mat { background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-card); text-align: left; display: grid; gap: 4px; border: 1.5px solid transparent; transition: border-color .2s, transform .25s var(--ease); min-width: 0; }
.mat:hover { transform: translateY(-2px); }
.mat.on { border-color: var(--brand-600); }
.mat-img { height: 96px; display: grid; place-items: center; margin-bottom: 6px; }
.mat-img img { max-height: 92px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.1)); }
.mat .t { font-size: 13.5px; font-weight: 500; line-height: 1.3; min-height: 35px; }
.mat .s { font-size: 12px; color: var(--ink-3); }
.mat-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.mat-foot b { font-weight: 600; font-size: 14.5px; }
.mat-foot .add { min-width: 28px; height: 28px; border-radius: 9px; background: var(--panel); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; padding: 0 6px; }
.mat.on .add { background: var(--brand); color: #231c06; }
.basket { margin-top: 12px; max-height: 360px; overflow: auto; }

/* assortiment */
.pcat-spec { font-size: 13px; color: var(--ink-3); margin: -6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcat .mimg { margin-bottom: 14px; }
.pcat .mcard-foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
button.mcard { width: 100%; }
button.top-row { width: 100%; text-align: left; }
button.top-row:hover { background: var(--card-soft); }

/* ---------- responsive (Servito) ---------- */
@container shell (max-width: 1500px) {
  .pipeline { grid-auto-flow: column; grid-auto-columns: minmax(296px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
  .pipeline .col { scroll-snap-align: start; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container shell (max-width: 1320px) {
  .kanban.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container shell (max-width: 1120px) {
  .kanban.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container shell (max-width: 840px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .van-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pipeline { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 10px; padding: 0; }
  .pipeline .col { min-height: 0; }
  .pipeline .col-empty { padding: 14px 10px; grid-auto-flow: column; justify-content: center; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kanban.k5 { grid-template-columns: none; }
  .proj-hero { height: 300px; }
  .lineup { left: 4%; right: 4%; bottom: 74px; height: 44%; }
  .proj-hero::after { bottom: 64px; }
  .proj-hero .stage-word { display: none; }
  .rec.dsg { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .rec-img { width: 76px; height: 54px; }
  .rec-img img { width: 70px; height: 50px; }
  .rec-r { grid-column: 1 / -1; justify-content: space-between; }
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-svg text { font-size: 22px; }
  .plan-card { padding: 10px; }
  .g-label .av { width: 30px !important; height: 30px !important; }
  .stops { max-height: none; }
}

/* kop: titel links, statistieken krijgen de resterende breedte */
.head > div:first-child { min-width: 0; flex: 1 1 auto; }
.head:has(> .stats) > div:first-child { flex: 0 1 380px; }
.head > .stats { flex: 1 1 auto; max-width: 1040px; }
.head.stack > div:first-child { flex: none; }
.head.stack > .stats { max-width: none; }
@container shell (max-width: 1320px) {
  .head > div:first-child, .head:has(> .stats) > div:first-child, .head > .stats { flex: none; max-width: none; }
}

.kanban.k5 .wo { padding: 14px; }
.kanban.k5 .wo-m { grid-template-columns: minmax(0, 1fr) 64px; }
.kanban.k5 .wo-m img { height: 48px; width: 64px; }
.wo-t { overflow-wrap: break-word; hyphens: auto; }
.mcard-id { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.order, .mat, .pcard, .van { grid-template-columns: minmax(0, 1fr); }
.stop .dim { flex: none; white-space: nowrap; }
.g-bar.tour svg { flex: none; }

.g-bar .gl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; width: max-content; max-width: 100%; }
.brand-row::-webkit-scrollbar { display: none; }
.brand-row .chip { flex: none; }

.chart-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.chart-sum > div { background: var(--panel); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.chart-sum span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-sum i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chart-sum i.prev { background: repeating-linear-gradient(-55deg, #cfcfcf 0 2px, #ececec 2px 4px); }
.chart-sum b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; }
.chart-sum small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .chart-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 760px) {
  .lineup .lu:nth-child(n+4) { display: none; }
  .lineup .lu { flex: 1 1 0 !important; }
  .lineup { bottom: 70px; height: 52%; }
}
@media (max-width: 760px) {
  .kanban.k5 { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; gap: 10px; }
  .kanban.k5 .col:last-child .wo:nth-of-type(n+4) { display: none; }
  .g-bar.tour svg { display: none; }
  .md-hero .spec-chip .v { font-size: 13.5px; }
}
.adv > div, .md > div, .cd-layout > div, .md > aside, .cd-layout > aside { grid-template-columns: minmax(0, 1fr); }
@container shell (max-width: 900px) { .ctx-chip { display: none; } }
.mini { grid-template-columns: minmax(0, 1fr) 88px; }
.mini img { width: 88px; height: 56px; }
