/* ==========================================================================
   Vierboet Creations · Business Portal & Operations
   Rustig, premium, maritiem en zakelijk. Marine = actie, koper = karakter.
   Lora voor merk- en paginakoppen, Inter voor alles wat operationeel is.
   Zelf gehoste fonts (OFL) omdat de CSP alleen eigen bronnen toestaat.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.260c81a4759b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/lora-latin.9577af3ccda5.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/lora-latin-ext.1d361631357e.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Kleur: warm canvas, wit, marine, koper */
  --canvas: #F7F5F0;
  --surface: #FFFFFF;
  --surface-sunken: #F1EDE5;
  --sand: #F3E8DC;
  --ink: #1F2933;
  --ink-muted: #66717D;
  --ink-soft: #6B7580;
  --border: #DDD8D0;
  --border-strong: #C6BFB4;
  --navy: #17324D;
  --navy-dark: #10243A;
  --navy-soft: #E7ECF2;
  --navy-ink-on: #F7F5F0;
  --copper: #C97732;
  --copper-dark: #8F4E1A;
  --copper-on-dark: #E2A66E;
  --copper-soft: #F3E8DC;
  --success: #3F7D5A;
  --success-soft: #E3EFE7;
  --warning: #B77A24;
  --warning-soft: #F6ECDA;
  --error: #B84A4A;
  --error-soft: #F6E2E2;
  --note: #FFF6DB;
  --note-border: #E8D591;
  --note-ink: #6B4E00;
  --focus: #17324D;
  /* Compatibiliteit met bestaande componenten */
  --green: var(--navy);
  --green-dark: var(--navy-dark);
  --green-soft: var(--navy-soft);
  --red: var(--error);
  --signal: var(--error);
  --signal-soft: var(--error-soft);
  --orange: var(--warning);
  --orange-soft: var(--warning-soft);
  --mist: var(--navy-soft);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-l: 12px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.04);
  --shadow-l: 0 8px 24px rgba(31, 41, 51, 0.08);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --max-w: 1180px;
  --touch: 44px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 425;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; color: var(--ink); }
h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.125rem, 1.75rem + 1.2vw, 2.625rem); letter-spacing: -0.012em; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.875rem); letter-spacing: -0.008em; }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.3125rem; }
h4 { font-weight: 600; font-size: 1.0625rem; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.list-plain { list-style: none; }
small, .small { font-size: 0.875rem; }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-5) 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.topbar :focus-visible, .sidebar :focus-visible, .cart-bar :focus-visible, .card--navy :focus-visible, .menu-toggle summary:focus-visible { outline-color: #fff; }
::selection { background: var(--copper-soft); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; background: var(--navy); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--radius-s); z-index: 100; }
.skip-link:focus { top: var(--s-4); }

.muted { color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.kicker { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); font-weight: 600; }
.kicker--copper { color: var(--copper); }
.mono, .ref { font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.01em; font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.serif { font-family: var(--font-serif); font-weight: 600; }
.lead { font-size: 1.125rem; color: var(--ink-muted); max-width: 60ch; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.strong { font-weight: 650; }
.label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------------------
   Merk: woordmerk met descriptor
   -------------------------------------------------------------------------- */
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; gap: 3px; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--navy); white-space: nowrap; }
.brand__product { font-family: var(--font-sans); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--copper-dark); font-weight: 700; }
.brand--lg .brand__name { font-size: 1.875rem; }
.brand--on-dark .brand__name { color: #fff; }
.brand--on-dark .brand__product { color: var(--copper-on-dark); }
.brand:hover .brand__name { color: inherit; }

/* --------------------------------------------------------------------------
   Shell: portal (marine header) en operations (marine sidebar)
   -------------------------------------------------------------------------- */
.topbar { background: var(--navy); color: var(--navy-ink-on); }
.topbar__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-5); display: flex; align-items: center; gap: var(--s-6); min-height: 76px; }
.topbar .brand__name { color: #fff; }
.nav { display: flex; gap: var(--s-1); list-style: none; }
.nav a, .nav button { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--s-3); color: var(--ink-muted); text-decoration: none; border-radius: var(--radius-s); font-weight: 600; font-size: 0.9375rem; border: 0; background: none; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover { color: var(--ink); background: var(--surface-sunken); }
.nav a.is-active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--copper); border-radius: 0; }
.topbar .nav a, .topbar .nav button { color: rgba(247, 245, 240, 0.78); }
.topbar .nav a:hover, .topbar .nav button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topbar .nav a.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--copper); }
.topbar__spacer { flex: 1; }
.topbar__user { display: flex; align-items: center; gap: var(--s-3); font-size: 0.9rem; color: rgba(247, 245, 240, 0.8); }
.topbar__user .name { font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--copper-soft); color: var(--copper-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.topbar .avatar { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); }
.cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--copper-dark); color: #fff; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--touch); min-height: var(--touch); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-s); cursor: pointer; font-weight: 600; padding: 0 var(--s-3); gap: var(--s-2); background: transparent; color: #fff; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle[open] summary { background: rgba(255, 255, 255, 0.1); }
.menu-toggle__panel { position: absolute; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s-3) var(--s-4) var(--s-4); z-index: 40; box-shadow: var(--shadow-l); color: var(--ink); }
.menu-toggle__panel .nav { flex-direction: column; gap: 0; }
.menu-toggle__panel .nav a, .menu-toggle__panel .nav button { width: 100%; justify-content: flex-start; padding: var(--s-3); color: var(--ink); }
.menu-toggle__panel .nav a:hover { background: var(--surface-sunken); }
.menu-toggle__panel .nav a.is-active { box-shadow: none; background: var(--navy-soft); color: var(--navy); border-radius: var(--radius-s); }
.menu-toggle__panel .nav .nav__group { padding: var(--s-3) var(--s-3) var(--s-1); }

@media (max-width: 1199px) { .topbar__inner { gap: var(--s-4); } .topbar__user .name { display: none; } }
@media (max-width: 1023px) {
  .topbar__inner { min-height: 64px; gap: var(--s-3); position: relative; padding: 0 var(--s-4); }
  .brand__name { font-size: 1.25rem; }
  .nav--primary, .topbar__user { display: none; }
  .menu-toggle { display: block; }
}

/* Operations layout */
.ops { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; background: var(--navy); color: var(--navy-ink-on); padding: var(--s-6) var(--s-4) var(--s-5); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { margin: 0 var(--s-3) var(--s-6); }
.sidebar .nav { flex-direction: column; gap: 2px; }
.sidebar .nav a { padding: 0 var(--s-3); width: 100%; color: rgba(247, 245, 240, 0.78); }
.sidebar .nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sidebar .nav a.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 3px 0 0 var(--copper); border-radius: var(--radius-s); }
.sidebar .nav a .count { margin-left: auto; font-size: 0.75rem; font-weight: 700; background: var(--copper-dark); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.sidebar__section { margin-top: var(--s-5); }
.sidebar__section .kicker { display: block; margin: 0 var(--s-3) var(--s-2); color: rgba(247, 245, 240, 0.55); }
.sidebar__footer { margin-top: auto; padding-top: var(--s-6); font-size: 0.875rem; color: rgba(247, 245, 240, 0.75); }
.sidebar__footer a, .sidebar__footer .link-btn { color: rgba(247, 245, 240, 0.85); }
.sidebar .avatar { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sidebar .search-form input { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.sidebar .search-form input::placeholder { color: rgba(247, 245, 240, 0.55); }
.sidebar .search-form input:focus { background: rgba(255, 255, 255, 0.16); outline-color: var(--copper); }
.ops__main { min-width: 0; }
.ops-topbar { display: none; }
.search-form { display: flex; gap: var(--s-2); }
.search-form input { flex: 1; min-width: 0; }
@media (max-width: 1023px) {
  .ops { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .ops-topbar { display: block; }
}

/* --------------------------------------------------------------------------
   Pagina-opbouw
   -------------------------------------------------------------------------- */
.page { max-width: var(--max-w); margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-8); }
.page--narrow { max-width: 760px; }
.page--wide { max-width: 1320px; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-5); margin-bottom: var(--s-6); }
.page-header__text { min-width: 0; flex: 1 1 320px; }
.page-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-3); color: var(--ink-muted); font-size: 0.9375rem; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.page-header .kicker { display: block; margin-bottom: var(--s-2); }
.subtitle { color: var(--ink-muted); margin-top: var(--s-2); font-size: 1.0625rem; max-width: 64ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; font-size: 0.875rem; color: var(--ink-muted); margin-bottom: var(--s-3); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--border-strong); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.stack > * + * { margin-top: var(--s-5); }
.stack--tight > * + * { margin-top: var(--s-3); }
.stack--loose > * + * { margin-top: var(--s-7); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.cluster--between { justify-content: space-between; }
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); align-items: start; }
.layout--wide-aside { grid-template-columns: minmax(0, 1fr) 420px; }
.layout__aside { position: sticky; top: var(--s-5); }
.layout > *, .grid > *, .stack > * { min-width: 0; }
.section { margin-top: var(--s-7); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.section-title h2 { font-size: 1.5rem; }
.section-title .count { color: var(--ink-muted); font-weight: 500; font-size: 1rem; }
@media (max-width: 1023px) {
  .layout, .layout--wide-aside { grid-template-columns: 1fr; }
  .layout__aside { position: static; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .page { padding: var(--s-5) var(--s-4) var(--s-7); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .page-header { margin-bottom: var(--s-5); }
}

/* --------------------------------------------------------------------------
   Cards & secties
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s-5) var(--s-6); box-shadow: var(--shadow); }
.card--flush { padding: 0; overflow: hidden; }
.card--sunken { background: var(--surface-sunken); box-shadow: none; }
.card--mist { background: var(--navy-soft); border-color: transparent; box-shadow: none; }
.card--sand { background: var(--sand); border-color: transparent; box-shadow: none; }
.card--navy { background: var(--navy); color: var(--navy-ink-on); border-color: var(--navy); }
.card--navy h2, .card--navy h3, .card--navy a { color: #fff; }
.card--navy .muted { color: rgba(247, 245, 240, 0.7); }
.card--attention { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper) inset; }
.card__header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.card__header h2, .card__header h3 { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 650; }
.card--flush .card__header { padding: var(--s-4) var(--s-5) 0; }
.card--flush .card__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.card__footer { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: 0; font-size: 0.9375rem; }
.dl dt { color: var(--ink-muted); font-weight: 500; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.dl--stack { grid-template-columns: 1fr; gap: var(--s-1); }
.dl--stack dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.dl--stack dd + dt { margin-top: var(--s-3); }
@media (max-width: 599px) { .card { padding: var(--s-4) var(--s-4); border-radius: var(--radius); } .dl { grid-template-columns: 1fr; gap: var(--s-1); } .dl dd + dt { margin-top: var(--s-2); } }

/* --------------------------------------------------------------------------
   Knoppen: marine is actie
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 46px; padding: 0 var(--s-5); border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease; }
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy-soft); color: var(--navy-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: transparent; }
.btn--ghost:hover { background: var(--surface-sunken); }
.btn--danger { background: var(--surface); color: var(--error); border-color: var(--error); }
.btn--danger:hover { background: var(--error-soft); }
.btn--on-dark { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { min-height: 36px; padding: 0 var(--s-3); font-size: 0.875rem; border-radius: var(--radius-s); }
.btn--lg { min-height: 54px; padding: 0 var(--s-6); font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--copper-dark); }
.inline-form { display: inline; }
@media (max-width: 599px) { .btn-row .btn, .form-actions .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   Badges, tags, status
   -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--surface-sunken); color: var(--ink-muted); border: 1px solid transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge--neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.badge--muted { background: transparent; color: var(--ink-soft); border-color: var(--border); }
.badge--info { background: var(--navy-soft); color: var(--navy); }
.badge--active { background: var(--navy-soft); color: var(--navy); }
.badge--success { background: var(--success-soft); color: #2C5B41; }
.badge--warning { background: var(--warning-soft); color: #7A4F12; }
.badge--danger { background: var(--error-soft); color: #8E3434; }
.badge--attention { background: var(--copper-soft); color: #7D4415; }
.badge--lg { font-size: 0.9375rem; padding: 5px 14px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-s); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface-sunken); color: var(--ink-muted); }
.tag--internal { background: var(--note); color: var(--note-ink); }
.tag--copper { background: var(--copper-soft); color: #7D4415; }
.tag--new { background: var(--copper-dark); color: #fff; }

/* --------------------------------------------------------------------------
   Meldingen & lege staten
   -------------------------------------------------------------------------- */
.flash-stack { margin-bottom: var(--s-5); display: grid; gap: var(--s-2); }
.alert { padding: var(--s-3) var(--s-4); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-size: 0.9375rem; }
.alert--success { background: var(--success-soft); border-color: transparent; color: #2A5A40; }
.alert--info { background: var(--navy-soft); border-color: transparent; color: var(--navy-dark); }
.alert--warning { background: var(--warning-soft); border-color: transparent; color: #7A4F12; }
.alert--error { background: var(--error-soft); border-color: transparent; color: #7F2F2F; }
.alert--attention { background: var(--copper-soft); border-color: transparent; color: var(--copper-dark); }
.empty { text-align: center; padding: var(--s-7) var(--s-5); color: var(--ink-muted); }
.empty h3 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); }
.empty p { max-width: 44ch; margin: 0 auto var(--s-4); }
.notice { padding: var(--s-3) var(--s-4); background: var(--note); border: 1px solid var(--note-border); color: var(--note-ink); border-radius: var(--radius); font-size: 0.9375rem; }
.note-box { background: var(--note); border: 1px solid var(--note-border); color: var(--note-ink); border-radius: var(--radius); padding: var(--s-3) var(--s-4); font-size: 0.9375rem; }
.note-box .tag { margin-bottom: var(--s-2); }

/* --------------------------------------------------------------------------
   Formulieren
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form--tight { gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field__label { font-weight: 600; font-size: 0.9375rem; }
.field__label .optional { font-weight: 500; color: var(--ink-soft); }
.field__help { font-size: 0.875rem; color: var(--ink-muted); }
.field__error { font-size: 0.875rem; color: var(--error); font-weight: 600; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="search"], input[type="url"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: auto; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 0; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--error); }
input[type="file"] { font-size: 0.9375rem; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); }
.check { display: flex; align-items: flex-start; gap: var(--s-3); font-size: 0.9375rem; }
.check input { margin-top: 3px; flex-shrink: 0; }
.check__text { font-weight: 500; }
.check__help { display: block; color: var(--ink-muted); font-weight: 400; font-size: 0.875rem; }
.radio-list { display: grid; gap: var(--s-2); }
.radio-card { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; background: var(--navy-soft); }
.radio-card:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.radio-card input { margin-top: 4px; }
.radio-card__title { font-weight: 600; }
.radio-card__help { font-size: 0.875rem; color: var(--ink-muted); }
.radio-inline { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.radio-inline label { display: inline-flex; gap: var(--s-2); align-items: center; }
.radio-inline > div { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.radio-inline > div > div { display: inline-flex; gap: var(--s-2); align-items: center; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding-top: var(--s-2); }
.form-actions--between { justify-content: space-between; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4); }
.errorlist { list-style: none; color: var(--error); font-size: 0.875rem; font-weight: 600; }
.form-errors { padding: var(--s-3) var(--s-4); background: var(--error-soft); border-radius: var(--radius); color: #7F2F2F; }
.file-picker { display: grid; gap: var(--s-2); }
.file-picker__names { list-style: none; font-size: 0.875rem; color: var(--ink-muted); }
.file-picker__names li { padding: 2px 0; }
.wizard-steps { display: flex; gap: var(--s-4); list-style: none; margin-bottom: var(--s-5); font-size: 0.875rem; color: var(--ink-muted); }
.wizard-steps li { display: flex; align-items: center; gap: var(--s-2); }
.wizard-steps li.is-current { color: var(--navy); font-weight: 600; }
.wizard-steps li.is-done { color: var(--success); }
.wizard-steps .n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid currentColor; font-size: 0.75rem; font-weight: 700; }
.wizard-steps li.is-current .n { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 599px) { .wizard-steps { flex-direction: column; gap: var(--s-2); } .form-row { grid-template-columns: 1fr; } }

/* Aantal-stepper: het hart van bestellen */
.qty { display: inline-grid; grid-template-columns: 44px 72px 44px; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.qty__btn { border: 0; background: var(--surface-sunken); color: var(--navy); font: inherit; font-size: 1.25rem; font-weight: 600; cursor: pointer; min-height: 46px; }
.qty__btn:hover { background: var(--navy-soft); }
.qty__input { border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0; text-align: center; font-weight: 650; font-size: 1.0625rem; min-height: 46px; padding: 0 4px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline-offset: -2px; }
.qty--sm { grid-template-columns: 38px 56px 38px; }
.qty--sm .qty__btn, .qty--sm .qty__input { min-height: 38px; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Prijzen: het grootste getal op het scherm
   -------------------------------------------------------------------------- */
.price { font-size: 1.375rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; line-height: 1.1; }
.price--lg { font-size: 1.75rem; }
.price--copper { color: var(--copper-dark); }
.price__unit { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; margin-top: 4px; }
.price__advice { display: block; font-size: 0.8125rem; color: var(--ink-soft); margin-top: 2px; font-weight: 450; }
.price-block { display: grid; gap: 2px; }
.price-block .kicker { margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   Assortiment: productkaarten en winkelwagen
   -------------------------------------------------------------------------- */
.catalog-group { margin-top: var(--s-7); }
.catalog-group:first-child { margin-top: 0; }
.catalog-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.catalog-group__head p { color: var(--ink-muted); max-width: 64ch; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-5); }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.product-card__media { aspect-ratio: 4 / 3; background: var(--sand); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder { font-family: var(--font-serif); font-size: 2rem; color: var(--copper); opacity: 0.7; }
.product-card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-3); flex: 1; align-content: start; }
.product-card__title { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 650; line-height: 1.25; }
.product-card__code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); }
.product-card__desc { font-size: 0.9375rem; color: var(--ink-muted); }
.product-card__price { padding-top: var(--s-2); border-top: 1px solid var(--border); }
.product-card__actions { display: grid; grid-template-columns: 1fr; gap: var(--s-2); align-items: stretch; margin-top: auto; }
.product-card__actions .qty { width: 100%; grid-template-columns: 44px minmax(0, 1fr) 44px; }
.product-card__actions .btn { min-height: 46px; }
.product-card__pack { font-size: 0.8125rem; color: var(--ink-soft); }
.product-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.product-row:first-child { border-top: 0; }
.product-row__thumb { width: 72px; height: 72px; border-radius: var(--radius-s); background: var(--sand); overflow: hidden; }
.product-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row__title { font-weight: 650; }
.product-row__meta { font-size: 0.875rem; color: var(--ink-muted); }
@media (max-width: 599px) { .product-row { grid-template-columns: 56px minmax(0, 1fr); } .product-row__thumb { width: 56px; height: 56px; } .product-row > .price, .product-row > .qty, .product-row__side { grid-column: 2; } }

.cart-bar { position: sticky; bottom: 0; z-index: 30; margin-top: var(--s-6); background: var(--navy); color: #fff; border-radius: var(--radius-l); padding: var(--s-4) var(--s-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); box-shadow: var(--shadow-l); }
.cart-bar__label { font-size: 0.875rem; color: rgba(247, 245, 240, 0.75); }
.cart-bar__total { font-size: 1.375rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.cart-bar .btn--on-dark { min-height: 48px; }
.cart-bar--empty { background: var(--surface); color: var(--ink-muted); border: 1px solid var(--border); box-shadow: none; }
.cart-bar--empty .cart-bar__label, .cart-bar--empty .cart-bar__total { color: var(--ink-muted); }
@media (max-width: 599px) { .cart-bar { border-radius: var(--radius); padding: var(--s-3) var(--s-4); } .cart-bar .btn { width: 100%; } }

.totals { display: grid; gap: var(--s-2); max-width: 360px; margin-left: auto; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: var(--s-4); }
.totals .grand { font-size: 1.25rem; font-weight: 650; border-top: 1px solid var(--border); padding-top: var(--s-2); margin-top: var(--s-1); }
.quote-total { display: grid; gap: 2px; }
.quote-total__value { font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Bestelkaart: nummer, relatie, omvang, status, één knop */
.order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3) var(--s-5); align-items: center; padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.order-card__ref { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-muted); }
.order-card__title { font-size: 1.125rem; font-weight: 650; margin-top: 2px; }
.order-card__meta { color: var(--ink-muted); font-size: 0.9375rem; margin-top: 2px; }
.order-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); }
.order-card--attention { border-color: var(--copper); }
.order-list { display: grid; gap: var(--s-3); }
@media (max-width: 599px) { .order-card { grid-template-columns: 1fr; } .order-card__side { flex-direction: row; align-items: center; justify-content: space-between; } }

/* --------------------------------------------------------------------------
   Lijsten, rijen, werklijsten, kpi's, tabellen
   -------------------------------------------------------------------------- */
.rows { list-style: none; }
.rows > li + li { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; }
.row--link { text-decoration: none; color: inherit; }
.row--link:hover { background: var(--surface-sunken); margin: 0 calc(-1 * var(--s-3)); padding-left: var(--s-3); padding-right: var(--s-3); border-radius: var(--radius-s); }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-weight: 600; }
.row__meta { display: block; font-size: 0.875rem; color: var(--ink-muted); }
.row__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-1); flex-shrink: 0; }
.row__amount { font-weight: 650; font-variant-numeric: tabular-nums; }
.row--stacked { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.chev { color: var(--border-strong); }
.work { list-style: none; display: grid; gap: var(--s-2); }
.work > li + li { border-top: 0; }
.work__item { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); align-items: center; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; }
.work__item:hover { border-color: var(--border-strong); background: var(--surface); }
.work__ref { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); display: grid; gap: 4px; }
.work__ref .tag { justify-self: start; }
.work__title { font-weight: 600; }
.work__company { color: var(--ink-muted); font-size: 0.9375rem; }
.work__meta { font-size: 0.875rem; color: var(--ink-muted); text-align: right; display: grid; gap: 4px; justify-items: end; }
.work__flag { color: #7D4415; font-weight: 600; }
.work__flag--danger { color: var(--error); }
.work--compact .work__item { grid-template-columns: minmax(0, 1fr) auto; padding: var(--s-2) var(--s-3); }
.work--compact .work__item > .work__title { grid-column: 1; }
.work--compact .work__item > .work__ref { display: none; }
.work--compact .work__item > .work__meta { grid-column: 2; }
@media (max-width: 1023px) { .work__item { grid-template-columns: minmax(0, 1fr) auto; } .work__ref { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-3); }
.stat { display: block; padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.stat:hover { border-color: var(--navy); }
.stat__value { font-size: 2rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--navy); }
.stat__label { display: block; font-size: 0.875rem; color: var(--ink-muted); margin-top: var(--s-1); font-weight: 500; }
.stat--attention { border-color: var(--copper); }
.stat--attention .stat__value { color: #7D4415; }
.stat--zero .stat__value { color: var(--ink-soft); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: -2px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 700; background: var(--surface-sunken); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr:hover td { background: var(--canvas); }
.table a.strong { font-weight: 650; text-decoration: none; }
.table a.strong:hover { text-decoration: underline; }
.table--lines th:first-child, .table--lines td:first-child { padding-left: var(--s-4); }
.table--lines th:last-child, .table--lines td:last-child { padding-right: var(--s-4); }
.table .price { font-size: 1.0625rem; }
.pricing-table td.price-cell { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.pricing-table .is-fixed { color: var(--copper-dark); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-1); border-bottom: 1px solid var(--border); margin-bottom: var(--s-5); }
.tabs a { padding: var(--s-2) var(--s-3) var(--s-3); text-decoration: none; color: var(--ink-muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--navy); border-bottom-color: var(--copper); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--ink-muted); font-size: 0.875rem; font-weight: 600; }
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .count { font-variant-numeric: tabular-nums; opacity: 0.8; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); font-size: 0.875rem; color: var(--ink-muted); }
.queue-nav { margin-bottom: var(--s-5); }
.meta-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); color: var(--ink-muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Relatietijdlijn (commerciële historie) en dossiergesprek
   -------------------------------------------------------------------------- */
.tl { list-style: none; display: grid; gap: 0; }
.tl__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--border); }
.tl__item:first-child { border-top: 0; }
.tl__icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; font-weight: 700; background: var(--surface-sunken); color: var(--ink-muted); }
.tl__icon--email { background: var(--navy-soft); color: var(--navy); }
.tl__icon--order { background: var(--copper-soft); color: var(--copper-dark); }
.tl__icon--moment { background: var(--success-soft); color: var(--success); }
.tl__icon--inquiry, .tl__icon--quote, .tl__icon--project { background: var(--sand); color: var(--ink-muted); }
.tl__icon--contact { background: var(--navy-soft); color: var(--navy); }
.tl__icon--company { background: var(--copper-soft); color: var(--copper-dark); }
.tl__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); }
.tl__title { font-weight: 600; }
.tl__title a { text-decoration: none; }
.tl__title a:hover { text-decoration: underline; }
.tl__time { font-size: 0.8125rem; color: var(--ink-soft); white-space: nowrap; }
.tl__meta { font-size: 0.875rem; color: var(--ink-muted); }
.tl__detail { font-size: 0.9375rem; margin-top: var(--s-1); white-space: pre-wrap; }
.dossier-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.dossier-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; }
@media (max-width: 1199px) { .dossier-head { grid-template-columns: 1fr; } }

.timeline { list-style: none; display: grid; gap: var(--s-4); }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); }
.msg__body { min-width: 0; }
.msg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-1); font-size: 0.875rem; }
.msg__author { font-weight: 650; }
.msg__time { color: var(--ink-soft); }
.msg__bubble { padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--staff .msg__bubble { background: var(--navy-soft); border-color: transparent; }
.msg--staff .avatar { background: var(--navy); color: #fff; }
.msg--customer .msg__bubble { background: var(--surface); }
.msg--internal .msg__bubble { background: var(--note); border-color: var(--note-border); }
.msg--internal .avatar { background: var(--note); color: var(--note-ink); }
.msg__attachments { margin-top: var(--s-2); }
.event { display: flex; gap: var(--s-3); align-items: baseline; font-size: 0.875rem; color: var(--ink-muted); padding-left: 52px; position: relative; }
.event::before { content: ""; position: absolute; left: 16px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.event__time { white-space: nowrap; color: var(--ink-soft); }
.event--internal { color: var(--note-ink); }
@media (max-width: 599px) { .event { padding-left: 24px; } .event::before { left: 4px; } }

/* --------------------------------------------------------------------------
   E-mail opstellen en voorbeeld
   -------------------------------------------------------------------------- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: var(--s-6); align-items: start; }
.template-picker { display: grid; gap: var(--s-2); }
.template-picker .radio-card { padding: var(--s-3) var(--s-4); }
.mail-preview { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s-5); }
.mail-preview__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); }
.mail-preview__brand { font-family: var(--font-serif); font-weight: 600; color: var(--navy); font-size: 1.125rem; margin-bottom: var(--s-3); }
.mail-preview__subject { font-weight: 650; margin-bottom: var(--s-3); }
.mail-preview__body p { margin-bottom: var(--s-3); }
.mail-preview__cta { display: inline-block; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius-s); font-weight: 600; font-size: 0.9375rem; margin: var(--s-2) 0; }
.mail-preview__attachment { font-size: 0.875rem; color: var(--ink-muted); margin-top: var(--s-3); }
.placeholders { font-size: 0.875rem; color: var(--ink-muted); display: grid; gap: 4px; }
.placeholders code { font-family: var(--font-mono); background: var(--surface-sunken); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
@media (max-width: 1023px) { .compose { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Bestanden, ontwerp, checklist, offerte-editor (maatwerk)
   -------------------------------------------------------------------------- */
.files { list-style: none; display: grid; gap: var(--s-2); }
.file { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; }
.file:hover { border-color: var(--border-strong); }
.file__icon { width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--surface-sunken); display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 700; color: var(--ink-muted); overflow: hidden; flex-shrink: 0; }
.file__icon img { width: 100%; height: 100%; object-fit: cover; }
.file__name { font-weight: 600; overflow-wrap: anywhere; }
.file__meta { font-size: 0.8125rem; color: var(--ink-muted); }
.file__main { min-width: 0; }
.files--inline { display: flex; flex-wrap: wrap; }
.files--inline .file { padding: 4px 10px 4px 4px; font-size: 0.875rem; }
.files--inline .file__icon { width: 30px; height: 30px; }
.design { display: grid; gap: var(--s-4); }
.design__preview { background: var(--sand); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.design__preview img { max-height: 420px; object-fit: contain; }
.design__placeholder { padding: var(--s-6); color: var(--ink-muted); }
.design-versions { list-style: none; display: grid; gap: var(--s-2); }
.design-versions li { padding: var(--s-2) 0; border-top: 1px solid var(--border); }
.design-versions li:first-child { border-top: 0; }
.decision { display: grid; gap: var(--s-4); }
.decision__actions { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .decision__actions { grid-template-columns: 1fr 1fr; } }
.decision__box { padding: var(--s-4) var(--s-5); border: 1px solid var(--border); border-radius: var(--radius-l); }
.decision__box--primary { border-color: var(--navy); background: var(--navy-soft); }
.checklist { list-style: none; }
.checklist li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; flex-shrink: 0; }
.checklist li.is-done .mark { background: var(--success); border-color: var(--success); color: #fff; }
.checklist li.is-done .label { color: var(--ink-muted); text-decoration: line-through; }
.checklist .label { flex: 1; }
.checklist form { margin-left: auto; }
.checklist .meta { font-size: 0.8125rem; color: var(--ink-soft); }
.progress-label { font-size: 0.875rem; color: var(--ink-muted); }
.line-editor { display: grid; gap: var(--s-2); }
.line-editor__row { display: grid; grid-template-columns: 1fr 90px 130px 110px 44px; gap: var(--s-2); align-items: center; }
.line-editor__head { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 700; }
.line-editor__total { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.line-editor__row .field { gap: 0; }
.line-editor__row .btn { min-height: 40px; padding: 0; }
@media (max-width: 767px) { .line-editor__row { grid-template-columns: 1fr 1fr; } .line-editor__head { display: none; } .line-editor__row .field:first-child { grid-column: 1 / -1; } }
.attention { list-style: none; display: grid; gap: var(--s-2); }
.attention li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: var(--copper-soft); border-radius: var(--radius); }
.attention__text { flex: 1; }
.status-hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.next-step { background: var(--navy-soft); border-radius: var(--radius-l); padding: var(--s-4) var(--s-5); }
.next-step h3, .next-step__title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); font-weight: 700; margin-bottom: var(--s-2); }

/* --------------------------------------------------------------------------
   Diversen
   -------------------------------------------------------------------------- */
.divider { border-top: 1px solid var(--border); margin: var(--s-5) 0; }
.disclosure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.disclosure > summary { cursor: pointer; padding: var(--s-3) var(--s-4); font-weight: 600; color: var(--navy); list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--copper); font-weight: 700; }
.disclosure[open] > summary::before { content: "−"; }
.disclosure__body { padding: 0 var(--s-4) var(--s-4); }
details > summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.product-thumb { width: 160px; aspect-ratio: 1; border-radius: var(--radius); background: var(--sand); overflow: hidden; border: 1px solid var(--border); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero { padding: var(--s-2) 0 var(--s-5); }
.hero h1 { font-size: clamp(2.125rem, 1.75rem + 1.4vw, 2.75rem); }
.hero p { color: var(--ink-muted); font-size: 1.125rem; max-width: 60ch; margin-top: var(--s-3); }
.welcome { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.welcome__text .kicker { margin-bottom: var(--s-2); display: block; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: var(--s-6) var(--s-4); }
.auth .brand { margin-bottom: var(--s-6); align-items: center; text-align: center; }
.auth .brand__name { font-size: 2rem; }
.auth .card { width: min(100%, 460px); padding: var(--s-6) var(--s-6); }
.auth h1 { font-size: 1.75rem; margin-bottom: var(--s-2); }
.auth .lead { font-size: 1rem; margin-bottom: var(--s-5); }
.footer { text-align: center; font-size: 0.8125rem; color: var(--ink-soft); padding: var(--s-6) var(--s-4) var(--s-7); }
.footer a { color: var(--ink-muted); }
.village-menu, .village-heading { display: none; }
.debug-box { font-family: var(--font-mono); font-size: 0.8125rem; background: var(--surface-sunken); padding: var(--s-3); border-radius: var(--radius); overflow: auto; }
.mb-1 { margin-bottom: var(--s-1); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: var(--s-2); }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-480 { max-width: 480px; }
.maxw-720 { max-width: 720px; }
.text-signal { color: var(--error); }
.text-copper { color: var(--copper-dark); }
.avatar--sm { width: 26px; height: 26px; font-size: 0.6875rem; }
.sidebar__links { gap: var(--s-3); }
.menu-toggle__search { margin-bottom: var(--s-3); }

@media print {
  .topbar, .sidebar, .ops-topbar, .menu-toggle, .footer, .cart-bar, .skip-link { display: none !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
