* { box-sizing: border-box; }
:root {
  --paper: var(--v7-vlak);
  --canvas: var(--v7-doek);
  --ink: var(--v7-inkt);
  --muted: var(--v7-inkt-2);
  --subtle: var(--v7-inkt-3);
  --line: var(--v7-lijn);
  --accent: var(--v7-accent);
  --accent-text: var(--v7-accent-tekst);
}
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 14px/1.5 var(--v7-letter); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; background: transparent; }
button, select, input, textarea, a { -webkit-tap-highlight-color: transparent; }
button, input, select { min-height: 44px; }
button, a, select { touch-action: manipulation; }
button { min-width: 44px; }
button:disabled { opacity: .56; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3, h4, p, dl, dd, ol { margin: 0; }
h1, h2, h3 { line-height: 1.18; text-wrap: pretty; }
h1 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 650; letter-spacing: -.05em; }
h2 { font-size: 20px; font-weight: 640; letter-spacing: -.038em; }
h3 { font-size: 16px; font-weight: 630; letter-spacing: -.022em; }
svg { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.sr,.sr-only,.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.demo-bar { min-height: 44px; background: #19263c; color: #e1e8f5; font-size: 12px; padding: 0 clamp(16px, 2.4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 4px 24px; }
.demo-bar a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 550; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }
.demo-bar svg { width: 15px; height: 15px; }
.masthead { min-height: 76px; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 2.4vw, 40px); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand, .role-switch, .utilities, .heading-actions, .panel-header, .choice, .action, .list-row, .product-info { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { flex: none; }
.brand strong { display: block; font-size: 23px; line-height: 1.05; font-weight: 700; letter-spacing: -.055em; }
.brand small { display: block; font-size: 12px; color: var(--subtle); margin-top: 3px; }
.role-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: 10px; background: var(--v7-vlak-2); }
.role-switch button, .utilities button, .utilities select { border-radius: 7px; font-size: 13px; font-weight: 550; }
.role-switch button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; color: var(--muted); }
.role-switch [aria-pressed=true], .role-switch .active { background: var(--accent); color: var(--v7-op-accent); }
.role-switch svg, .utilities svg { width: 17px; height: 17px; }
.utilities { display: flex; align-items: center; gap: 8px; }
.utilities button, .utilities select { border: 1px solid var(--v7-lijn-sterk); background: var(--paper); }
.utilities select { padding: 0 8px; }
.workspace { display: grid; grid-template-columns: 212px minmax(0,1fr); min-height: calc(100vh - 120px); }
.sidebar { background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; padding: 30px 14px 20px; }
.sidebar nav, .side-tools { display: grid; gap: 4px; }
.sidebar .side-tools { margin-top: auto; }
.nav-item, .side-tools button { width: 100%; display: flex; align-items: center; justify-content: start; gap: 11px; border-radius: 8px; padding: 10px 12px; text-align: start; color: var(--muted); font-size: 14px; font-weight: 540; }
.nav-item svg, .side-tools svg { width: 19px; height: 19px; }
.nav-item:hover, .side-tools button:hover, .utilities button:hover { background: var(--v7-hover); }
.nav-item.active, .nav-item[aria-current=page], .nav-item[aria-pressed=true] { background: var(--v7-accent-vlak); color: var(--accent-text); font-weight: 650; }
.nav-item small { margin-left: auto; font-variant-numeric: tabular-nums; }
.main { min-width: 0; width: min(100%, 1472px); margin-inline: auto; padding: 32px clamp(20px, 2.7vw, 44px); }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.eyebrow { color: var(--subtle); font-size: 13px; font-weight: 550; margin-bottom: 7px; }
.subheading { color: var(--muted); font-size: 14px; margin-top: 6px; }
.heading-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 8px; background: var(--accent); color: var(--v7-op-accent); text-decoration: none; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.3; }
.action:hover { background: var(--v7-accent-hover); }
.action.secondary, .action.outline { color: var(--ink); border: 1px solid var(--v7-lijn-sterk); background: var(--paper); }
.action.secondary:hover, .action.outline:hover { background: var(--v7-vlak-2); }
.action svg { width: 17px; height: 17px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(230px, .88fr); gap: 20px; align-items: start; }
.rail { display: grid; gap: 16px; min-width: 0; }
.panel { background: var(--paper); border-radius: 12px; padding: 24px; min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.panel p, .product-block p { color: var(--muted); }
.product-block { display: flex; align-items: center; gap: 20px; }
.product-photo { width: 112px; height: 104px; display: block; object-fit: cover; border-radius: 8px; flex: none; }
.product-info h2,.product-info h3 { font-size: 24px; letter-spacing: -.045em; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 20px 0; border-block: 1px solid var(--line); padding: 16px 0; }
.metric { min-width: 0; padding-inline: 14px; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border: 0; }
.metric :is(strong,dd) { display: block; font-size: 31px; font-weight: 590; line-height: 1.12; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric :is(span,small,dt) { display: block; color: var(--muted); font-size: 12px; }
.metric:last-child :is(strong,dd) { color: var(--accent-text); }
.schedule-row, .detail-row, .list-row { display: flex; align-items: center; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.schedule-row:last-child, .detail-row:last-child, .list-row:last-child { border-bottom: 0; }
.list-row { text-align: left; width: 100%; }
.list-row:hover { background: var(--v7-hover); }
.pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 9px; border-radius: 6px; color: var(--v7-grijs-tekst); background: var(--v7-grijs-vlak); font-size: 12px; font-weight: 560; }
.pill.good,.pill.done { background: var(--v7-groen-vlak); color: var(--v7-groen-tekst); }
.pill.warn,.pill.wait { background: var(--v7-geel-vlak); color: var(--v7-geel-tekst); }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; background: var(--paper); border: 1px solid var(--v7-lijn-sterk); border-radius: 8px; padding: 14px; color: var(--ink); }
.choice:hover,.choice[aria-pressed=true] { background: var(--v7-accent-vlak); border-color: var(--accent); }
.choice strong { font-weight: 630; }
.address-card { display: grid; gap: 4px; }
.guide { margin-block-end: 20px; }
.footer { margin-top: 24px; color: var(--subtle); font-size: 12px; }
dialog { background: var(--paper); color: var(--ink); border: 0; border-radius: 12px; padding: 24px; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--v7-schaduw-zweef); }
dialog::backdrop { background: rgba(17,27,43,.48); }
dialog form { display: grid; gap: 12px; }
dialog header, dialog footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
label { display: grid; gap: 4px; font-weight: 560; font-size: 13px; }
input, select, textarea { max-width: 100%; min-width: 0; padding: 8px 12px; border: 1px solid var(--v7-lijn-sterk); border-radius: 7px; background: var(--paper); }
fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
#notice:not(:empty) { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); border-radius: 8px; padding: 10px 18px; box-shadow: var(--v7-schaduw-zweef); z-index: 8; text-align: center; }
@media (min-width: 1700px) { .workspace { grid-template-columns: 248px minmax(0,1fr); } }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 174px minmax(0, 1fr); }
  .content-grid { grid-template-columns: minmax(0,1.65fr) minmax(188px,.85fr); gap: 12px; }
  .main, .panel { padding: 20px; }
  .sidebar { padding-inline: 8px; }
}
@media (max-width: 850px) {
  .content-grid { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 12px; }
  .sidebar nav { display: flex; }
  .sidebar .nav-item { width: auto; padding: 8px 12px; justify-content: center; }
  .sidebar .side-tools { display: flex; }
  .rail { grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); }
  .masthead { gap: 12px; min-height: 64px; }
}
@media (max-width: 620px) {
  .demo-bar { display: block; padding: 7px 16px 1px; line-height: 1.35; }
  .demo-bar a { display: flex; gap: 5px; flex-wrap: wrap; align-content: center; }
  .masthead { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .brand strong { font-size: 20px; }
  .role-switch { order: 3; }
  .utilities { gap: 5px; }
  .utilities select { max-width: 104px; }
  .sidebar { padding-inline: 6px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
  .sidebar .nav-item { padding: 4px 1px; display: flex; flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.25; min-width: 0; }
  .sidebar .nav-item svg { width: 17px; height: 17px; }
  .main { padding: 18px 12px 28px; }
  .page-heading { gap: 8px; margin-bottom: 12px; }
  .panel { padding: 16px; }
  .rail { grid-template-columns: 1fr; }
  .eyebrow { margin-bottom: 4px; }
  .product-photo { width: 84px; height: 80px; }
  .product-block { gap: 14px; }
  .product-info h2,.product-info h3 { font-size: 20px; }
  .metrics { padding: 12px 0; margin: 14px 0; }
  .metric { padding-inline: 7px; }
  .metric :is(strong,dd) { font-size: 26px; }
  .metric :is(span,small,dt) { font-size: 12px; }
  .choice-grid { gap: 8px; }
  .choice { padding: 12px; }
  .footer { margin-top: 16px; }
}
.panel-stack,.rail-actions { display: grid; gap: 16px; min-width: 0; }
.rail-actions { gap: 8px; }
.rail-actions .action { justify-content: flex-start; }
.rail-actions .primary { color: var(--accent-text); background: var(--v7-accent-vlak); }
.product-block { justify-content: space-between; }
.product-photo { width: 118px; height: 118px; object-fit: cover; }
.product-info h2 { font-size: clamp(23px,2vw,30px); }
.colour-label,.product-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.product-info .colour-label { margin-top: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid color-mix(in srgb,var(--ink) 15%,transparent); }
.swatch-green { background: #577860; } .swatch-sand { background: #d3be9f; } .swatch-oak { background: #b28455; } .swatch-ink { background: #344566; } .swatch-clay { background: #aa694c; }
.product-symbol { width: 76px; height: 72px; background: var(--v7-vlak-2); border-radius: 8px; display: grid; place-items: center; color: var(--subtle); }
.product-symbol svg { width: 32px; height: 32px; }
.count { min-width: 22px; padding: 2px 6px; font-size: 12px; font-weight: 600; border-radius: 5px; text-align: center; background: var(--v7-vlak-2); color: var(--muted); }
.row-text,.row-end { display: flex; align-items: center; gap: 8px; }
.row-text { flex-direction: column; align-items: flex-start; min-width: 0; gap: 3px; }
.row-text small,.row-qty small,.load-qty small,.choice-copy small { font-size: 12px; color: var(--muted); font-weight: 450; }
.row-end,.row-qty { margin-left: auto; }
.row-qty { white-space: nowrap; font-weight: 620; font-size: 19px; }
.row-end .icon { width: 16px; height: 16px; color: var(--subtle); }
.date-tile { flex: none; width: 44px; min-height: 48px; border-radius: 7px; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.1; background: var(--v7-vlak-2); }
.date-tile b { font-size: 17px; font-weight: 650; }
.date-tile small { color: var(--subtle); font-size: 11px; }
.schedule .panel-header { margin-bottom: 2px; }
.schedule .panel-header svg,.rail .panel-header svg { color: var(--subtle); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.attention { background: var(--v7-geel-vlak); color: var(--v7-geel-tekst); }
.heading-meta { display: inline-block; font-size: 13px; color: var(--subtle); margin-left: 5px; }
.search-field { margin-bottom: 12px; }
.search-field input { width: min(100%,440px); }
.empty-state { font-size: 14px; line-height: 1.55; }
.detail-row { justify-content: space-between; align-items: baseline; padding: 10px 0; }
.detail-row dt { color: var(--muted); font-size: 13px; }
.detail-row dd { text-align: right; font-size: 14px; font-weight: 570; }
.decision-block { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.decision-block .panel-header { margin-bottom: 6px; }
.decision-block .choice-grid,.decision-block > .action { margin-top: 16px; }
.choice { flex-direction: row; align-items: flex-start; gap: 10px; }
.choice-radio { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--subtle); flex: none; margin-top: 2px; }
.choice-radio svg { width: 13px; height: 13px; }
.selected .choice-radio { background: var(--accent); color: var(--v7-op-accent); border-color: var(--accent); }
.choice-copy { display: grid; gap: 4px; }
.next-summary { border-radius: 8px; background: var(--v7-accent-vlak); color: var(--accent-text); margin-top: 20px; padding: 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.next-summary > strong,.load-qty strong { font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.next-summary .action { margin-left: auto; }
.pack-item { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-block: 1px solid var(--line); margin-block: 16px; }
.pack-item .row-text > strong { font-size: 19px; letter-spacing: -.035em; }
.load-qty { display: grid; gap: 3px; text-align: right; margin-left: auto; }
.load-qty strong { font-size: 36px; color: var(--accent-text); }
.stop-head p:last-child { display: flex; gap: 6px; align-items: center; margin-top: 7px; }
.stop-head p:last-child svg { width: 16px; height: 16px; }
.pack-actions,.form-actions,.form-line-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-body,.form-line { display: grid; gap: 12px; }
.form-line legend { padding-inline: 5px; font-weight: 600; }
.form-grid,.plan-entry { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.plan-entry { grid-template-columns: minmax(130px,1.7fr) minmax(65px,.8fr) auto; align-items: end; }
.form-actions { justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.form-intro { font-weight: 630; }
.form-error { color: var(--v7-rood-tekst); }
.ship-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ship-line input { width: 90px; }
.icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 8px; }
.icon-button:hover { background: var(--v7-hover); }
@media (max-width: 620px) {
  .product-photo { width: 84px; height: 84px; }
  .metrics { grid-template-rows: auto auto; row-gap: 3px; }
  .metric { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  .schedule-row { padding-block: 9px; gap: 8px; }
  .schedule .panel-header { margin-bottom: 4px; }
  .date-tile { width: 38px; min-height: 42px; }
  .choice { gap: 7px; padding: 9px; }
  .choice strong { font-size: 13px; }
  .choice-radio { width: 15px; height: 15px; }
  .next-summary { margin-top: 12px; padding: 8px; }
  .pack-item .product-photo { width: 72px; height: 70px; }
  .pack-actions .action { flex: 1; }
  .form-grid { grid-template-columns: 1fr; gap: 8px; }
  dialog { padding: 16px; }
  .decision-block { margin-top: 12px; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.skip-link { position: fixed; z-index: 12; top: 6px; left: 12px; padding: 10px 16px; border-radius: 8px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
#notice { pointer-events: none; }
.demo-price { color: #d1def4; font-weight: 450; }
.language-control { display: flex; align-items: center; position: relative; }
.language-control > .icon { position: absolute; left: 10px; pointer-events: none; color: var(--muted); }
.language-control select { padding-left: 32px; }
.nav-label { margin: 0 12px 1px; color: var(--subtle); font-size: 12px; font-weight: 600; }
.mobile-tools { display: none; }
.guide { padding: 16px 20px; background: var(--v7-accent-vlak); border-radius: 12px; }
.guide header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guide h2 { font-size: 18px; }
.guide ol { counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; list-style: none; margin: 8px 0 14px; }
.guide li { counter-increment: step; font-size: 13px; line-height: 1.45; color: var(--muted); }
.guide li::before { content: counter(step); font-variant-numeric: tabular-nums; width: 22px; height: 22px; background: var(--accent-text); color: var(--paper); display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 650; margin-bottom: 6px; }
[data-stijl=donker] .guide li::before { color: var(--v7-op-accent); }
.footer p { margin-block: 3px; }
@media (max-width: 850px) {
  .sidebar .side-tools,.sidebar .nav-label { display: none; }
  .mobile-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
}
@media (max-width: 620px) {
  .role-switch { flex-basis: 100%; }
  .role-switch button { flex: 1; min-height: 44px; }
  .guide { padding: 10px 14px 14px; }
  .guide ol { grid-template-columns: 1fr; gap: 5px; margin: 4px 0 10px; }
  .guide li { display: flex; align-items: baseline; gap: 7px; }
  .guide li::before { flex: none; width: 18px; height: 18px; margin: 0; font-size: 11px; }
}
