/* ==========================================================================
   HEROCK® Hub — design system
   Stijl: lichte "soft UI" met zwarte pill-navigatie en vrijstaande
   packshots, in het HEROCK®-oranje (#FF5409) met Anton als accentletter.
   ========================================================================== */

: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: #ff5409;
  --brand-ink: #c94300;
  --brand-600: #d54100;
  --brand-300: #ffa47a;
  --brand-50: #fff0e8;

  --ok: #1e9a4b;
  --ok-bg: #e5f6eb;
  --warn: #df7a25;
  --warn-bg: #fcefe2;
  --late: #c39206;
  --late-bg: #fbf4d9;
  --bad: #b42318;
  --bad-bg: #fbe6e4;
  --info: #2e69d9;
  --info-bg: #e8effd;
  --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;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --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: #ffa47a; 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, #ff7a3d, var(--brand) 55%, #d84500);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 14px rgba(255, 84, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand-mark svg { width: 15px; height: 26px; }
.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); }

.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, #ff6c2a, #ee4a04); color: #fff; box-shadow: 0 6px 16px rgba(255, 84, 9, 0.28); }
.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; }
.chip.on .n { color: var(--brand-300); }

.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, var(--brand), #ff7a3d); }
.prog-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--brand);
  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: 50px; height: 82%;
  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(255,84,9,.10), 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(--brand); filter: drop-shadow(0 2px 4px rgba(255,84,9,.35)); }
.route-line .me::after { content: ""; position: absolute; left: 50%; top: 100%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); 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: #cfd3e8; }
.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, #ffd9c6 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(--brand); 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: var(--brand); color: #fff; box-shadow: 0 4px 10px rgba(255,84,9,.22);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.g-bar:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255,84,9,.3); 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,.7); }
.g-bar.res { background: repeating-linear-gradient(-55deg, #ffb08a 0 4px, #ffc8ad 4px 8px); color: #6b2300; box-shadow: none; }
.g-bar.svc { background: var(--info); box-shadow: 0 4px 10px rgba(46,105,217,.2); }
.g-bar.bad { background: #111; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); 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); }
.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); }
.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(--brand); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px rgba(255,84,9,.4); border: 3px solid #fff; }
.depot-pin svg { width: 12px; height: 20px; }
.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(--brand); }

/* ==========================================================================
   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); box-shadow: 0 10px 24px rgba(255,84,9,.12); }
.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, var(--brand), #ff7a3d); }
.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, var(--brand), #ff7a3d); }

/* ==========================================================================
   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; }
}

/* ==========================================================================
   HEROCK® — merk, kleding en eigen componenten
   ========================================================================== */
.brand-mark svg { width: 22px; height: 32px; }
.brand-name { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; font-size: 23px; }
.brand-name b { font-weight: 400; }
.live-dot.off { background: var(--ink-4); box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.stage-word { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; color: rgba(0, 0, 0, 0.03); font-size: 230px; top: 6%; }
.dc-id { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; font-size: 30px; }
.dc-name { font-size: 15px; color: var(--ink-2); margin: 2px 0 14px; }
.head h1.ptitle { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; font-size: 46px; }
.side-link .tip b { color: #ffa47a; }
.detail-card { background: radial-gradient(120% 70% at 0% 0%, rgba(255,84,9,.10), transparent 60%), rgba(250,250,250,.8); }

/* badges */
.badge.s-ok { background: var(--ok-bg); color: var(--ok); }
.badge.s-laag, .badge.s-picking { background: var(--warn-bg); color: var(--warn); }
.badge.s-bad { background: var(--bad-bg); color: var(--bad); }
.badge.s-nieuw { background: var(--brand-50); color: var(--brand-ink); }
.badge.s-atelier { background: #f1ebfd; color: #6d3fd6; }
.badge.s-onderweg, .badge.s-info { background: var(--info-bg); color: var(--info); }
.badge.s-new { background: var(--brand); color: #fff; }
.badge.s-she { background: #111; color: #fff; }
.badge.s-norm { background: rgba(255,255,255,.9); color: var(--ink); }
.badge.line { font-weight: 600; letter-spacing: .01em; }
.badge.l-ess { background: #ececec; color: #3a3a3a; }
.badge.l-add { background: #e3e6ea; color: #26313d; }
.badge.l-exp { background: #111; color: #fff; }
.badge.l-exp::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); margin-right: 1px; }
.badge.l-hv { background: #f3f7b9; color: #4b5100; }
.badge.l-foot { background: #e8effd; color: #1f4fae; }
.badge.l-lim { background: linear-gradient(135deg, #2a2a2a, #0d0d0d); color: #ffa47a; }
.flag-cc { display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 2px 5px; border-radius: 5px; background: var(--panel); color: var(--ink-2); vertical-align: 1px; }

/* kleurstalen */
.sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; vertical-align: -4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px #fff; }
.sw.xs { width: 12px; height: 12px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.sws { display: inline-flex; align-items: center; gap: 2px; }
.sws .sw { width: 16px; height: 16px; margin-left: -4px; }
.sws .sw:first-child { margin-left: 0; }
.sw-more { font-size: 12px; color: var(--ink-3); margin-left: 4px; }

/* voorraad per maat */
.szb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; align-items: end; height: 116px; }
.szb.tall { height: 150px; }
.szb-c { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; min-width: 0; }
.szb-c i { align-self: end; width: 100%; border-radius: 7px; background: linear-gradient(180deg, #2a2a2a, #111); display: block; }
.szb-c.low i { background: linear-gradient(180deg, #ff7a3d, #ee4a04); }
.szb-c.zero i { background: repeating-linear-gradient(-55deg, #ffc8ad 0 3px, #fff0e8 3px 6px); box-shadow: inset 0 0 0 1px #ffd2bd; }
.szb-v { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.szb-c.zero .szb-v { color: var(--bad); font-weight: 600; }
.szb-s { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.szb-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.szb-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* podium: kleding staat rechtop */
.stage-machine img { filter: drop-shadow(0 26px 22px rgba(0,0,0,.14)) drop-shadow(0 4px 4px rgba(0,0,0,.1)); }
.seg.color-seg button { width: 40px; }
.seg.color-seg button .sw { width: 20px; height: 20px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.seg.color-seg button.on { box-shadow: 0 0 0 2px #111; }
.seg.color-seg .wide { width: auto; }
.mini { grid-template-columns: 1fr 76px; }
.mini img { height: 76px; width: 76px; }
.mini .id { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.hot-pop .row b { text-align: right; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* depot = HEROCK® hoofdkantoor */
.depot-pin svg { width: 20px; height: 29px; }
.hq-av { background: linear-gradient(160deg, #ff7a3d, var(--brand) 55%, #d84500) !important; border-radius: 50% !important; }
.hq-mk { width: 15px; height: 22px; display: block; }
.hq-mk svg { width: 100%; height: 100%; }
.av-mono.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 12.5px; }
.av-mono.xl { width: 60px; height: 60px; border-radius: 18px; font-size: 20px; }

/* productkaart */
.pcard .mimg { height: 196px; margin: 12px 0 16px; }
.pcard .mimg img { max-height: 188px; }
.pcard .mimg::after { left: 22%; right: 22%; }
.pc-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcard .mcard-person { align-items: center; margin-bottom: 22px; }
.pcard .mcard-person .upd { align-self: center; color: var(--ink); font-weight: 500; font-size: 14.5px; }
.prog.warn .prog-fill { background: linear-gradient(90deg, #f0a55b, var(--warn)); }
.prog.warn .prog-marker { color: var(--warn); }
.prog.bad .prog-fill { background: #e9b3ad; }
.prog.bad .prog-marker { color: var(--bad); }
.prog.warnp .prog-fill { background: repeating-linear-gradient(-55deg, var(--brand) 0 4px, #ff8d57 4px 8px); }
.line-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -6px 0 16px; }
.line-row::-webkit-scrollbar { display: none; }
.lp { flex: none; height: 34px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; white-space: nowrap; }
.lp:hover { background: rgba(255,255,255,.7); }
.lp.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ld { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ld.l-ess { background: #bdbdbd; } .ld.l-add { background: #5b6878; } .ld.l-exp { background: #111; box-shadow: inset 0 0 0 2px var(--brand); }
.ld.l-hv { background: #dbe31a; } .ld.l-foot { background: var(--info); } .ld.l-lim { background: #ffa47a; }

/* productfiche */
.md-hero .stage-machine { left: 10%; width: 80%; bottom: 74px; height: 72%; }
.md-hero .stage-shadow { bottom: 58px; left: 26%; width: 48%; }
.md-hero .stage-word { font-size: 170px; left: 5%; top: 16%; }
.pd-colors { position: absolute; left: 18px; bottom: 16px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 36px); }
.pd-colors button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 9px; border-radius: 12px; background: rgba(255,255,255,.75); backdrop-filter: blur(10px); font-size: 13.5px; color: var(--ink-2); transition: background .2s; }
.pd-colors button.on { background: #111; color: #fff; }
.pd-colors button.on .sw { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 0 2px #111; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.feat li .ico { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--brand-50); color: var(--brand-ink); }
.spec-list.one { grid-template-columns: minmax(0, 1fr); }
.kv .v.wrap { white-space: normal; line-height: 1.3; font-size: 14px; }
.spec-list.one .kv { height: auto; min-height: 40px; padding: 9px 14px; }
.norms { display: flex; flex-wrap: wrap; gap: 6px; }
.norms span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--panel); font-size: 13px; font-weight: 500; }
.norms span.g { background: var(--ok-bg); color: var(--ok); }
.res-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px; border-radius: 14px; background: var(--panel); margin-top: 6px; font-size: 14px; transition: background .2s; }
.res-row:hover { background: #ececec; }
.res-row > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-row b { font-weight: 500; }
.matrix td { padding: 11px 12px; }
.matrix td.mx { text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.matrix td.mx.low { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.matrix td.mx.zero { background: repeating-linear-gradient(-55deg, #ffd9c6 0 3px, #fff3ec 3px 6px); color: var(--bad); font-weight: 600; }
.matrix td.mx.transit { background: var(--info-bg); color: var(--info); font-size: 13px; }
.matrix .tr-transit td:first-child, .matrix .tr-transit td:last-child { background: var(--info-bg); color: var(--info); }
.mx-c { display: inline-flex; align-items: center; gap: 9px; }

/* orderkaarten */
.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.order-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ocard { background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow-card); text-align: left; width: 100%; border: 1.5px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ocard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.07); border-color: var(--brand); }
.ocard .mcard-foot { margin-top: 0; font-size: 13.5px; }
.oc-dealer { display: flex; align-items: center; gap: 12px; }
.oc-dealer .t { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.oc-dealer .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-thumbs { display: flex; gap: 8px; align-items: center; }
.oc-th { position: relative; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(180deg, #fafafa, #efefef); display: grid; place-items: center; flex: none; }
.oc-th img { max-width: 52px; max-height: 54px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.1)); }
.oc-th b { position: absolute; right: -4px; top: -5px; font-size: 11px; font-weight: 600; background: #111; color: #fff; border-radius: 8px; padding: 2px 6px; box-shadow: 0 0 0 2px #fff; }
.oc-more { font-size: 13px; color: var(--ink-3); padding-left: 4px; }
.wide-chips { margin-bottom: 16px; width: max-content; max-width: 100%; }
.wide-chips .chip .n { margin-left: 2px; }
.tbl-prod { display: inline-flex; align-items: center; gap: 12px; }
.tbl-prod img { width: 42px; height: 42px; object-fit: contain; }
.bo-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--bad); background: var(--bad-bg); padding: 5px 9px; border-radius: 8px; line-height: 1.3; }

/* orderlijnen in de drawer */
.oline { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.oline:first-of-type { border-top: 0; padding-top: 2px; }
.oline-img { width: 70px; height: 70px; border-radius: 14px; background: linear-gradient(180deg, #fafafa, #efefef); display: grid; place-items: center; }
.oline-img img { max-width: 58px; max-height: 60px; object-fit: contain; }
.oline .t { font-size: 15px; display: inline-block; }
.oline .s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.oline-r { text-align: right; }
.oline-r b { display: block; font-size: 18px; font-weight: 500; }
.oline-r span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.szchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.szchips span { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; padding: 3px 7px; border-radius: 7px; background: var(--panel); color: var(--ink-2); }
.szchips span b { color: var(--ink); font-weight: 600; }
.szchips span.bo { background: var(--bad-bg); color: var(--bad); }
.szchips span.bo b { color: var(--bad); }
.res-row .szchips { margin-top: 0; flex-wrap: nowrap; overflow: hidden; max-width: 40%; }

/* nieuwe order */
.color-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cp { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 9px; border-radius: 12px; background: var(--panel); font-size: 13.5px; }
.cp.on { background: #111; color: #fff; }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.qg { background: var(--panel); border-radius: 14px; padding: 10px; display: grid; gap: 6px; border: 1.5px solid transparent; }
.qg.over { border-color: var(--bad); background: var(--bad-bg); }
.qg-s { font-weight: 600; font-size: 14px; }
.qg-ctl { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 10px; padding: 3px; }
.qg-ctl button { width: 28px; height: 28px; border-radius: 8px; background: var(--panel); display: grid; place-items: center; }
.qg-ctl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.qg-st { font-size: 11.5px; color: var(--ink-3); }
.qg-st.low { color: var(--warn); } .qg-st.zero { color: var(--bad); font-weight: 600; }

/* logo-proef */
.logo-mk { --lc: #111; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.logo-mk b { width: 34px; height: 34px; border-radius: 10px; background: var(--lc); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.logo-mk i { font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--lc); }
.logo-mk.sm i { display: none; }
.logo-mk.sm b { width: 34px; height: 34px; }
.drawer-hero.proof { height: 260px; }
.drawer-hero.proof img { max-height: 228px; }
.logo-mk.on-proof { position: absolute; z-index: 2; transform: scale(.62); transform-origin: center; flex-direction: column; gap: 2px; filter: saturate(.9); }
.logo-mk.on-proof b { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.logo-mk.on-proof i { font-size: 9px; color: #fff; background: var(--lc); padding: 1px 4px; border-radius: 3px; }
.logo-mk.on-proof.pos-chest { left: 55%; top: 31%; }
.logo-mk.on-proof.pos-thigh { left: 54%; top: 46%; }
.logo-mk.on-proof.pos-front { left: 46%; top: 44%; }
.logo-mk.on-proof::after { content: ""; position: absolute; inset: -8px; border: 1.5px dashed var(--brand); border-radius: 12px; }
.proof-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.9); padding: 6px 10px; border-radius: 9px; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps4 span { font-size: 11.5px; color: var(--ink-3); padding-top: 10px; border-top: 3px solid #e3e3e3; line-height: 1.3; }
.steps4 span.on { color: var(--ink); border-top-color: var(--brand); font-weight: 500; }
.job-card .wo-m img { height: 64px; }
.jc-logo { margin-bottom: 8px; }
.job-card .wo-t { margin-top: 0; }
.col-empty { padding: 18px; text-align: center; color: var(--ink-3); font-size: 13.5px; border: 1.5px dashed var(--line-strong); border-radius: 16px; }
.cap-list { display: grid; gap: 14px; }
.cap { display: flex; align-items: center; gap: 14px; }
.cap-i { width: 42px; height: 42px; border-radius: 13px; background: var(--panel); display: grid; place-items: center; flex: none; }
.cap-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.cap-t b { font-weight: 500; }
.cap-v { font-weight: 600; width: 44px; text-align: right; }

/* dealers */
.dl-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: stretch; }
.dl-map { height: auto; min-height: 470px; }
.apps { display: flex; flex-direction: column; }
.app-row { background: var(--panel); border-radius: 16px; padding: 12px; margin-top: 8px; }
.app-row:first-of-type { margin-top: 0; }
.app-top { display: flex; gap: 10px; align-items: center; }
.app-top .t { font-weight: 500; font-size: 15px; }
.app-top .s { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.app-row p { margin: 10px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.app-row .btn.sm { height: 36px; font-size: 13.5px; padding: 0 10px; }
.app-row .btn.ghost { background: #fff; }
.cust-kpis .v.up { color: var(--ok); }
.cust-machines { height: 74px; }
.cust-machines img { height: 62px; max-width: 23%; }

/* logistiek */
.carrier-mk { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 6px; border-radius: 6px; color: #fff; }
.carrier-mk.dpd { background: #dc0032; }
.carrier-mk.dhl { background: #ffcc00; color: #d40511; }
.ride-driver .plate { border-color: #111; color: #111; font-weight: 500; letter-spacing: .02em; }
.ride-mid img { height: 70px; }
.cont-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cont { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cont-t { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.cont .mcard-foot { margin-top: 0; font-size: 13px; }
.cont .oc-th { width: 52px; height: 52px; border-radius: 12px; }
.cont .oc-th img { max-width: 42px; max-height: 44px; }

/* seizoenen */
.season-grid { --gl: 280px; min-width: 1260px; }
.season-grid .g-row { min-height: 66px; }
.season-grid .g-day { font-size: 11px; }
.season-grid .g-day b { font-size: 14px; text-transform: capitalize; }
.season-grid .g-day.today b { background: var(--brand); }
.g-day.ny, .g-lane .bg i.ny { border-left: 1.5px solid rgba(0,0,0,.18); }
.g-bar.ph { top: 16px; bottom: 16px; font-size: 12px; box-shadow: none; border-radius: 10px; padding: 0 10px; }
.g-bar.ph:hover { transform: none; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.ss-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.g-now { background: var(--brand); }
.g-now::before { background: var(--brand); }
.cat-covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cover { display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0; }
.cover-img { aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden; background: #e9e9e9; box-shadow: var(--shadow-card); transition: transform .3s var(--ease); display: block; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.cover:hover .cover-img { transform: translateY(-3px); }
.cover-t { font-size: 14.5px; font-weight: 500; margin-top: 4px; }
.cover-s { font-size: 12.5px; color: var(--ink-3); }
.cover.next .cover-img { display: grid; place-content: center; justify-items: center; gap: 4px; background: repeating-linear-gradient(-55deg, #f1f1f1 0 3px, #f8f8f8 3px 8px); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-3); }
.cover.next .cover-img b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--ink); letter-spacing: .02em; }
.cover.next .cover-img span { font-size: 12.5px; }

/* rapporten */
a.hb { color: inherit; }
a.hb:hover .track i { filter: brightness(1.08); }
.hb .track.green i { background: linear-gradient(90deg, #1e9a4b, #4cc274); }
.hb > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@container shell (min-width: 1820px) {
  .order-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cont-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container shell (max-width: 1320px) {
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cont-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container shell (max-width: 1120px) {
  .dl-top { grid-template-columns: minmax(0, 1fr); }
  .dl-map { min-height: 380px; }
  .order-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container shell (max-width: 840px) {
  .order-grid, .order-grid.two { grid-template-columns: minmax(0, 1fr); }
  .stage-ctrl { display: flex; top: 312px; bottom: auto; left: 30px; }
  .zoom-seg, .seg.color-seg .wide { display: none; }
}
@media (max-width: 760px) {
  .stage-word { font-size: 120px; }
  .head h1.ptitle { font-size: 34px; }
  .stage-ctrl { left: 16px; top: 236px; }
  .stage-machine { left: 72px; right: 72px; }
  .md-hero .tags .s-norm { display: none; }
  .pcard .mimg { height: 170px; }
  .pcard .mimg img { max-height: 162px; }
  .md-hero { height: 400px; }
  .md-hero .stage-machine { top: 56px; height: 210px; bottom: auto; left: 8%; width: 84%; }
  .md-hero .stage-shadow { top: 254px; bottom: auto; }
  .md-hero .specs-float { bottom: 62px; }
  .pd-colors { left: 12px; bottom: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 24px); }
  .pd-colors::-webkit-scrollbar { display: none; }
  .pd-colors button { flex: none; }
  .wide-chips { width: 100%; }
  .cont-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-map { min-height: 320px; }
  .cat-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-grid { --gl: 150px; min-width: 1100px; }
  .season-grid .g-label .s { display: none; }
  .oline { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .oline-img { width: 56px; height: 56px; }
  .oline-img img { max-width: 46px; max-height: 48px; }
  .qty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .res-row .szchips { display: none; }
  .mini img { width: 64px; height: 64px; }
  .mini { grid-template-columns: 1fr 64px; }
}
.mini-proof { height: 230px; }
.mini-proof img { max-height: 200px; }
.logo-ph { position: absolute; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--brand-ink); padding: 6px 8px; border: 1.5px dashed var(--brand); border-radius: 8px; background: rgba(255,255,255,.75); }
.logo-ph.pos-chest { left: 54%; top: 30%; }
.logo-ph.pos-thigh { left: 53%; top: 45%; }
.logo-ph.pos-front { left: 45%; top: 44%; }

.st-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.st-goal { text-align: right; }
.st-goal b { display: block; font-size: 20px; font-weight: 500; margin-top: 2px; }
.in-dealer .oc-dealer { display: none; }
@container shell (max-width: 900px) {
  .ctx-chip { display: none; }
}
/* lage schermen (laptop/tablet liggend): compactere iconenbalk */
@media (max-height: 860px) and (min-width: 761px) {
  .sidebar { gap: 8px; padding: 12px 10px 10px; }
  .side-link { height: 46px; }
  .side-link .ico-wrap { width: 36px; height: 36px; border-radius: 12px; }
  .side-sec { margin: 4px 0; }
  .brand-mark { width: 42px; height: 42px; }
}
/* smalle content naast de iconenbalk (tablet staand): minder kolommen */
@container shell (max-width: 960px) {
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .cust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cont-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container shell (max-width: 620px) {
  .fleet-grid, .cust-grid, .cont-grid { grid-template-columns: minmax(0, 1fr); }
}
.pcard .mcard-name { font-size: 17px; }
.mcard-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@container shell (max-width: 1120px) {
  .tr-layout .bigmap { order: -1; height: 460px; }
  .ride-list { max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container shell (max-width: 620px) {
  .ride-list { grid-template-columns: minmax(0, 1fr); }
  .tr-layout .bigmap { height: 360px; }
}
@container shell (max-width: 1120px) { .map-card { width: 290px; } }
.bo-flag { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--bad); background: var(--bad-bg); padding: 4px 7px; border-radius: 8px; flex: none; }
.in-dealer .bo-flag { display: none; }
.head h1.ptitle.long { font-size: 36px; }
@media (max-width: 760px) { .head h1.ptitle.long { font-size: 28px; } }
.ocard.reorder { gap: 8px; cursor: default; }
.ocard.reorder:hover { transform: none; border-color: transparent; box-shadow: var(--shadow-card); }
.rr-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 6px; border-radius: 14px; transition: background .2s; }
.rr-row:hover { background: var(--panel); }
.rr-row .oc-th { width: 52px; height: 52px; }
.rr-row .oc-th img { max-width: 42px; max-height: 44px; }
.rr-row b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-row .dim { display: block; }
