:root {
  /* Promodeer merkkleuren — zie Promodeer_style.md */
  color-scheme: light;
  --blue: #355c7d;
  --blue-dark: #1e3447;
  --teal: #00a090;
  --teal-dark: #008477;
  --teal-deep: #006f64;
  --coral: #f29799;
  --coral-bg: #fdecec;
  --coral-dark: #b4484b;
  --ink: #1e3447;
  --muted: #5f6b78;
  --placeholder: #8a94a0;
  --line: #dadae5;
  --line-soft: #e9e9f0;
  --paper: #ffffff;
  --canvas: #f8f8fa;
  --soft: #f5f5f8;
  --mint: #e6f5f3;
  --blue-bg: #ebf0f5;
  --amber: var(--coral-dark);
  --amber-bg: var(--coral-bg);
  --red: #c0392b;
  --radius: 3px;
  --sans: "Open Sans", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  --display: var(--sans);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.side-rail { position: fixed; inset: 0 auto 0 0; z-index: 4; display: flex; width: 238px; flex-direction: column; padding: 27px 18px 22px; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 42px 12px; color: var(--blue); text-decoration: none; }
.brand-logo { display: block; width: 160px; height: auto; }
.brand-app { padding: 3px 8px; border: 1px solid var(--teal); border-radius: var(--radius); color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.rail-label, .rail-footer { padding-left: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.25px; }
.nav-link { display: flex; height: 46px; align-items: center; gap: 13px; margin-top: 8px; padding: 0 12px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); text-align: left; font-weight: 600; }
.nav-link svg, .mobile-nav-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nav-link.active { background: var(--mint); color: var(--teal-dark); }
.rail-note { margin-top: auto; padding: 14px 12px; border-top: 1px solid var(--line); color: var(--blue); font-size: 12px; font-weight: 600; line-height: 1.8; }
.rail-note small { margin-left: 17px; color: var(--muted); font-size: 11px; font-weight: 400; }
.status-dot, .online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.rail-footer { margin-top: 17px; font-size: 9px; }
.rail-footer span { float: right; padding-right: 12px; letter-spacing: 0; }
.main-area { min-height: 100vh; margin-left: 238px; }
.topbar { display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 5.2%; border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.top-add, .heading-add { display: inline-flex; align-items: center; gap: 8px; }
.top-add { padding: 8px 0; border: 0; background: none; color: var(--blue); font-weight: 700; }
.top-add > span { color: var(--teal); font-size: 23px; font-weight: 400; }
.mobile-brand { display: none; }
.view { display: none; max-width: 1320px; margin: auto; padding: 45px 5.2% 38px; }
.view.active { display: block; animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.eyebrow { margin: 0 0 9px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: 1.35px; }
.eyebrow span { padding: 0 4px; color: var(--placeholder); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; color: var(--blue-dark); font: 700 30px/1.2 var(--display); letter-spacing: 0; }
.page-intro { margin: 0; color: var(--muted); font-size: 14px; }
.primary-button, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid var(--teal-dark); border-radius: var(--radius); font-weight: 700; transition: background .16s ease; }
.primary-button { background: var(--teal-dark); color: #fff; }
.primary-button:hover { border-color: var(--teal-deep); background: var(--teal-deep); }
.primary-button > span { font-size: 19px; font-weight: 400; line-height: 1; }
.secondary-button { border-color: var(--line); background: #fff; color: var(--blue); }
.secondary-button:hover { border-color: var(--teal); background: #fff; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat-item { display: flex; min-height: 98px; align-items: center; gap: 14px; padding: 18px 22px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); }
.stat-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: var(--radius); font-size: 21px; font-weight: 700; }
.teal-icon { background: var(--mint); color: var(--teal-dark); }
.blue-icon { background: var(--blue-bg); color: var(--blue); }
.amber-icon { background: var(--amber-bg); color: var(--amber); }
.stat-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .9px; }
.stat-label small { font-size: 9px; letter-spacing: 0; }
.stat-item strong { color: var(--blue-dark); font: 700 24px/1 var(--display); }
.inventory-section { min-height: 244px; }
.section-heading, .section-heading > div:first-child, .filter-row { display: flex; align-items: center; }
.section-heading { justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-heading > div:first-child { gap: 12px; }
h2 { margin: 0; color: var(--blue-dark); font: 700 17px/1.3 var(--display); }
.result-count { color: var(--muted); font-size: 11px; }
.filter-row { gap: 9px; }
.search-field { display: flex; width: 245px; height: 38px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.search-field:focus-within { border-color: var(--teal); }
.search-field svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.7; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.search-field input::placeholder { color: var(--muted); }
.search-field kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 10px; }
.filter-row select { height: 38px; padding: 0 27px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); font-size: 12px; }
.table-head, .stock-row { display: grid; grid-template-columns: 1.05fr 1.55fr .78fr 1.1fr 30px; align-items: center; column-gap: 13px; }
.table-head { min-height: 34px; padding: 0 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.stock-row { min-height: 72px; padding: 10px 15px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.stock-row:hover { background: var(--canvas); }
.stock-row.low-stock { background: #fffafa; }
.code-cell { display: flex; align-items: center; gap: 10px; }
.thread-swatch { width: 10px; height: 34px; flex: 0 0 10px; border-radius: var(--radius); background: linear-gradient(180deg, var(--teal) 0 33%, var(--blue) 33% 67%, var(--coral) 67%); }
.code-cell strong { display: block; color: var(--blue); font: 700 14px/1.3 var(--display); }
.code-cell small, .type-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.type-cell strong { color: var(--blue); font-size: 12px; font-weight: 600; }
.qty-pill { display: inline-flex; min-width: 42px; height: 29px; align-items: center; justify-content: center; gap: 5px; border-radius: var(--radius); background: var(--mint); color: var(--teal-dark); font: 700 13px var(--display); }
.low-stock .qty-pill { background: var(--amber-bg); color: var(--amber); }
.qty-pill small { font: 500 9px var(--sans); }
.last-move { color: var(--muted); font-size: 11px; }
.row-actions { display: flex; justify-content: end; }
.row-actions button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--blue); font-size: 19px; }
.row-actions button:hover { border-color: var(--teal); color: var(--teal-dark); }
.empty-state { display: none; padding: 52px 18px 44px; text-align: center; }
.empty-state.visible { display: block; }
.empty-spool { position: relative; width: 43px; height: 43px; margin: 0 auto 14px; border: 2px solid #a8d7ce; border-radius: 11px 11px 14px 14px; background: repeating-linear-gradient(0deg, #e1f3ef 0 4px, #fff 4px 7px); }
.empty-spool::before, .empty-spool::after { position: absolute; left: -5px; width: 49px; height: 7px; border: 1.5px solid #79bfb3; border-radius: var(--radius); background: #fff; content: ""; }
.empty-spool::before { top: -4px; }.empty-spool::after { bottom: -4px; }
.empty-state h3 { margin-bottom: 6px; color: var(--blue-dark); font: 700 15px var(--display); }
.empty-state p { margin-bottom: 19px; color: var(--muted); font-size: 12px; }
.local-notice { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--muted); font-size: 11px; }
.local-notice > span[aria-hidden] { display: grid; flex: 0 0 16px; width: 16px; height: 16px; place-items: center; border: 1px solid var(--muted); border-radius: 50%; font-size: 10px; }
.activity-panel { margin-top: 33px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.activity-panel-head { display: flex; min-height: 59px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.activity-row { display: grid; min-height: 68px; grid-template-columns: 37px 1fr auto; align-items: center; gap: 13px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); }
.activity-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--teal-dark); font-size: 19px; }
.activity-symbol.negative { background: var(--coral-bg); color: var(--red); }
.activity-copy strong { display: block; margin-bottom: 4px; color: var(--blue); font-size: 12px; }
.activity-copy small, .activity-date { color: var(--muted); font-size: 10px; }
.activity-delta { font: 700 14px var(--display); color: var(--teal-dark); }
.activity-delta.negative { color: var(--red); }
.compact-empty { padding: 38px 16px; }
.mobile-nav { display: none; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgb(25 42 53 / 44%); }
.dialog-backdrop[hidden] { display: none; }
.stock-dialog { width: min(100%, 520px); max-height: min(92vh, 850px); overflow-y: auto; padding: 23px 25px 20px; border-radius: var(--radius); background: #fff; box-shadow: 0 18px 60px rgb(22 46 61 / 20%); animation: dialog-in .18s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 19px; }
.dialog-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.dialog-heading h2 { font-size: 21px; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); font-size: 23px; line-height: 1; }
.operation-switch { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; padding: 3px; border-radius: var(--radius); background: var(--soft); }
.operation-switch button { min-height: 34px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.operation-switch button.selected { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgb(33 60 75 / 10%); }
.photo-area { margin-bottom: 17px; }
.photo-placeholder, .photo-selected { display: flex; min-height: 78px; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--canvas); }
.camera-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: var(--radius); background: var(--mint); color: var(--teal-dark); }
.camera-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.photo-placeholder > div strong, .photo-details strong { display: block; color: var(--blue); font-size: 12px; }
.photo-placeholder > div small, .photo-details small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.photo-button { margin-left: auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--teal-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }
.photo-selected { position: relative; min-height: 86px; }
.photo-selected img { width: 60px; height: 60px; flex: 0 0 60px; border-radius: var(--radius); object-fit: cover; }
.photo-details { min-width: 0; }
.photo-details small { max-width: 285px; line-height: 1.4; }
.text-button { margin-top: 5px; padding: 0; border: 0; background: transparent; color: var(--teal-dark); font-size: 10px; font-weight: 700; }
.remove-photo { position: absolute; top: 5px; right: 6px; border: 0; background: transparent; color: var(--muted); font-size: 19px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--blue); font-size: 11px; font-weight: 700; }
.form-field > span b { color: var(--teal-dark); }
.form-field > span small { color: var(--muted); font-size: 10px; font-weight: 400; }
.form-field > input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 12px; font-weight: 500; }
.form-field > select { width: 100%; height: 39px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 11px; }
.form-field > input::placeholder { color: var(--placeholder); }
.form-field > small { color: var(--muted); font-size: 9px; font-weight: 400; }
.full-field { grid-column: 1 / -1; }
.quantity-field { grid-column: 1 / 2; }
.quantity-control { display: grid; height: 39px; grid-template-columns: 38px 1fr 38px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.quantity-control button { border: 0; background: var(--soft); color: var(--blue); font-size: 20px; }
.quantity-control input { width: 100%; min-width: 0; border: 0; text-align: center; font-weight: 700; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.form-error { min-height: 16px; margin: 8px 0 0; color: var(--red); font-size: 11px; }
.delivery-preview { margin: 17px 0 3px; }
.delivery-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.delivery-preview-heading h3 { margin: 0 0 4px; color: var(--blue-dark); font: 700 14px var(--display); }
.delivery-preview-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.delivery-preview-heading > button { flex: 0 0 auto; }
.delivery-rows { display: grid; gap: 9px; }
.delivery-row { padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.delivery-row-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.delivery-row-heading strong { display: block; color: var(--blue); font: 700 12px var(--display); }
.delivery-row-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.delivery-row-heading .remove-photo { position: static; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.delivery-row-fields { display: grid; grid-template-columns: 90px minmax(100px, 1fr) 90px 100px; gap: 8px; }
.delivery-row-fields .form-field { gap: 4px; font-size: 9px; }
.delivery-row-fields .form-field > input, .delivery-row-fields .form-field > select { height: 35px; padding: 0 7px; font-size: 11px; }
.dialog-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 9px; padding: 13px 0 0; border-top: 1px solid var(--line-soft); background: #fff; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--radius); background: var(--blue-dark); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 1500px) { .view { padding-top: 55px; } }
@media (max-width: 1050px) {
  .side-rail { width: 205px; }
  .main-area { margin-left: 205px; }
  .view { padding-right: 4%; padding-left: 4%; }
  .topbar { padding-right: 4%; padding-left: 4%; }
  .table-head, .stock-row { grid-template-columns: .9fr 1.35fr .65fr .9fr 30px; column-gap: 8px; }
}
@media (max-width: 760px) {
  body { background: #fff; font-size: 13px; }
  .side-rail { display: none; }
  .main-area { margin-left: 0; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; top: 0; z-index: 3; height: 57px; padding: 0 17px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; color: var(--blue); font: 700 15px var(--sans); }
  .mobile-brand img { display: block; width: 28px; height: auto; }
  .topbar-meta { display: none; }
  .top-add { width: 36px; height: 36px; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0; }
  .top-add > span { font-size: 23px; }
  .view { padding: 25px 18px 28px; }
  .page-heading { align-items: flex-start; }
  .page-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
  h1 { font-size: 25px; }
  .page-intro { max-width: 275px; font-size: 12px; line-height: 1.5; }
  .heading-add { display: none; }
  .stat-strip { margin: 23px 0 29px; }
  .stat-item { min-height: 81px; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px; }
  .stat-item + .stat-item { border-left: 1px solid var(--line); }
  .stat-icon { display: none; }
  .stat-label { min-height: 22px; margin-bottom: 3px; font-size: 8px; line-height: 1.3; letter-spacing: .45px; }
  .stat-label small { font-size: 8px; }
  .stat-item strong { font-size: 21px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading > div:first-child { width: 100%; justify-content: space-between; }
  .filter-row { width: 100%; }
  .search-field { width: auto; flex: 1; }
  .search-field kbd { display: none; }
  .filter-row select { max-width: 112px; }
  .table-head { display: none; }
  .stock-row { position: relative; min-height: 77px; grid-template-columns: minmax(0, 1fr) auto 34px; gap: 7px; padding: 12px 4px; }
  .code-cell { grid-column: 1; grid-row: 1; }
  .type-cell { grid-column: 1; grid-row: 2; padding-left: 20px; }
  .type-cell strong { color: var(--muted); font-size: 11px; font-weight: 500; }
  .type-cell small { display: block; max-width: 100%; color: var(--muted); font-size: 9px; line-height: 1.3; }
  .qty-cell { grid-column: 2; grid-row: 1 / 3; }
  .qty-pill { min-width: 48px; height: 31px; }
  .move-cell { display: none; }
  .row-actions { grid-column: 3; grid-row: 1 / 3; }
  .row-actions button { width: 31px; height: 31px; }
  .thread-swatch { height: 39px; }
  .code-cell strong { font-size: 14px; }
  .code-cell small { font-size: 9px; }
  .local-notice { align-items: flex-start; margin-top: 20px; font-size: 10px; line-height: 1.5; }
  .activity-panel { margin-top: 23px; border-right: 0; border-left: 0; border-radius: 0; }
  .activity-panel-head { min-height: 54px; padding: 0 4px; }
  .activity-row { grid-template-columns: 34px 1fr auto; gap: 9px; padding: 11px 3px; }
  .activity-copy strong { font-size: 11px; }
  .activity-copy small { line-height: 1.4; }
  .activity-date { display: none; }
  .activity-delta { font-size: 12px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 5; display: grid; height: calc(59px + env(safe-area-inset-bottom)); grid-template-columns: 1fr 1fr; padding: 5px 16px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgb(255 255 255 / 96%); backdrop-filter: blur(12px); }
  .mobile-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 600; }
  .mobile-nav-link.active { color: var(--teal-dark); }
  .mobile-nav-link svg { width: 18px; height: 18px; }
  .dialog-backdrop { align-items: end; overflow: hidden; padding: 0; }
  .stock-dialog { width: 100%; max-height: 94dvh; padding: 20px 18px calc(17px + env(safe-area-inset-bottom)); border-radius: 10px 10px 0 0; }
  .dialog-heading { margin-bottom: 15px; }
  .dialog-heading h2 { font-size: 19px; }
  .photo-placeholder, .photo-selected { min-height: 72px; gap: 9px; padding: 9px; }
  .camera-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .photo-placeholder > div strong, .photo-details strong { font-size: 11px; }
  .photo-placeholder > div small, .photo-details small { font-size: 9px; }
  .photo-button { padding: 8px 9px; font-size: 10px; }
  .form-grid { gap: 11px 10px; }
  .form-field { font-size: 10px; }
  .form-field > input { height: 40px; padding: 0 8px; font-size: 12px; }
  .form-field > select { height: 40px; padding: 0 7px; font-size: 10px; }
  .delivery-preview { margin-top: 14px; }
  .delivery-rows { max-height: 34dvh; overflow-y: auto; overscroll-behavior: contain; }
  .delivery-row { padding: 9px; }
  .delivery-row-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
  .delivery-row-fields .form-field > input, .delivery-row-fields .form-field > select { height: 38px; }
  .quantity-control { height: 40px; grid-template-columns: 35px 1fr 35px; }
  .dialog-actions { position: static; width: auto; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); background: #fff; box-shadow: none; }
  .dialog-actions .primary-button, .dialog-actions .secondary-button { min-height: 42px; padding: 0 12px; font-size: 11px; }
  .toast { right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 16px; max-width: none; }
}
@media (max-width: 370px) {
  .view { padding-right: 14px; padding-left: 14px; }
  .filter-row select { max-width: 95px; padding-left: 7px; font-size: 10px; }
  .stat-item { padding-right: 7px; padding-left: 7px; }
  .stat-label { font-size: 7px; }
  .photo-placeholder { flex-wrap: wrap; }
  .photo-button { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* Gedeelde voorraad: verbindingsstatus en aanmelden */
.status-dot.connecting, .online-dot.connecting { background: var(--coral); }
.status-dot.offline, .online-dot.offline { background: var(--red); }
.local-notice .text-button { margin: 0; font-size: inherit; }
.local-notice strong { color: var(--blue); }
body.logged-out { overflow: hidden; }
.login-screen { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.login-card { display: flex; width: min(100%, 380px); flex-direction: column; gap: 14px; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 60px rgb(22 46 61 / 8%); }
.login-logo { display: block; width: 180px; height: auto; margin: 0 auto 4px; }
.login-card .eyebrow { margin: 0; text-align: center; }
.login-card h1 { margin: 0; font-size: 25px; }
.login-card .page-intro { margin-bottom: 4px; font-size: 12px; line-height: 1.5; }
.login-card .form-error { margin: 0; }
.login-card .primary-button { width: 100%; }
@media (max-width: 760px) { .login-screen { padding: 16px; background: #fff; } .login-card { padding: 24px 4px; border: 0; box-shadow: none; } }

/* Afnemen per kleurcode */
.remove-panel { display: grid; gap: 14px; margin-bottom: 4px; }
.remove-results { display: grid; gap: 8px; }
.remove-hint { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--canvas); color: var(--muted); font-size: 12px; line-height: 1.5; }
.remove-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.remove-item.low-stock { background: #fffafa; }
.remove-item .thread-swatch { height: 34px; }
.remove-item-copy strong { display: block; color: var(--blue); font-size: 13px; font-weight: 700; }
.remove-item-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.decrement-button { min-height: 38px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.decrement-button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 760px) {
  .remove-item { grid-template-columns: 10px minmax(0, 1fr) auto; row-gap: 10px; }
  .decrement-button { grid-column: 1 / -1; width: 100%; min-height: 42px; }
}
.local-notice { flex-wrap: wrap; }
.local-notice > span:not([aria-hidden]) { min-width: 0; overflow-wrap: anywhere; }
.local-notice > .text-button { flex: 0 0 auto; }

/* Catalogus-hulp bij kleurcode en kleurnaam */
#code-help.is-found { color: var(--teal-dark); font-weight: 600; }
.form-field > input[readonly] { background: var(--soft); color: var(--blue); }

/* Aanpassen per kleurcode: + en − per bobijn */
.adjust-item { grid-template-columns: 10px minmax(0, 1fr) auto; row-gap: 10px; }
.step-buttons { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; }
.step-button { min-height: 40px; padding: 0 10px; font-size: 12px; }
.step-button > span { font-size: 17px; line-height: 1; }
.step-button:disabled { cursor: not-allowed; opacity: .45; }
.remove-item.empty-stock { background: var(--canvas); }
.remove-item.empty-stock .qty-pill { background: var(--soft); color: var(--muted); }
.remove-hint p { margin: 0 0 12px; }
.remove-hint .primary-button { min-height: 38px; font-size: 12px; }
