:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #d8dee8;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--primary-dark); text-decoration: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; background: #17212b; color: white; padding: 22px 16px; overflow-y: auto; }
.brand { font-weight: 700; font-size: 20px; margin-bottom: 22px; }
.app-version { position: fixed; left: 8px; bottom: 6px; color: #9aa8ba; font-size: 9px; line-height: 1; pointer-events: none; }
nav { display: grid; gap: 4px; }
nav a { color: #dbe4ee; padding: 10px 12px; border-radius: 6px; }
nav a:hover { background: #233242; color: white; }
.nav-alert { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 8px; border-radius: 999px; background: #f59e0b; color: #17212b; font-size: 12px; font-weight: 900; line-height: 1; }
.sidebar-menu { display: grid; gap: 4px; }
.sidebar-menu-title { width: 100%; min-height: 0; border: 0; background: transparent; color: #dbe4ee; padding: 10px 12px; border-radius: 6px; font: inherit; font-weight: 700; text-align: left; justify-content: flex-start; }
.sidebar-menu-title:hover, .sidebar-menu-title[aria-expanded="true"] { background: #233242; color: white; }
.sidebar-menu-title::after { content: ">"; margin-left: auto; color: #9aa8ba; }
.sidebar-menu-title[aria-expanded="true"]::after { content: "v"; }
.sidebar-menu summary { color: #dbe4ee; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-weight: 700; list-style: none; }
.sidebar-menu summary::-webkit-details-marker { display: none; }
.sidebar-menu summary:hover, .sidebar-menu[open] summary { background: #233242; color: white; }
.sidebar-menu summary::after { content: ">"; float: right; color: #9aa8ba; }
.sidebar-menu[open] summary::after { content: "v"; }
.sidebar-submenu { display: grid; gap: 4px; padding-left: 12px; }
.sidebar-submenu a { padding-left: 16px; font-size: 14px; }
.main { margin-left: 245px; min-height: 100vh; padding: 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.muted { color: var(--muted); font-size: 14px; margin-left: 10px; }
.no-margin { margin: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 18px; overflow-x: auto; }
.narrow { max-width: 720px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-daily, .service-stack { display: grid; gap: 18px; }
.settings-full { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stats div { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.stats span { display: block; color: var(--muted); }
.stats strong { display: block; font-size: 30px; margin-top: 8px; }
h1, h2 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
label { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; font: inherit; background: white; }
textarea { min-height: 90px; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
.button, button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 6px; padding: 10px 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
.button.primary, button.primary { background: var(--primary); color: white; border-color: var(--primary); }
.button.primary:hover { background: var(--primary-dark); }
.button.ghost { background: transparent; }
.button.danger { color: white; background: var(--danger); border-color: var(--danger); }
button:disabled, .button.disabled { opacity: 0.72; cursor: wait; }
.button.loading::before, button.loading::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(255,255,255,0.55); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { border: 0; padding: 0; min-height: 0; color: var(--primary-dark); background: transparent; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; min-width: 360px; }
.notice { border-radius: 6px; padding: 8px 11px; margin-bottom: 10px; border: 1px solid var(--line); }
.notice.error { background: #fef3f2; color: #912018; border-color: #fecdca; }
.notice.warn { background: #fffaeb; color: #93370d; border-color: #fedf89; }
.notice.ok { background: #ecfdf3; color: #05603a; border-color: #abefc6; }
.notice.fade-out { opacity: 0; transition: opacity 0.45s ease; }
.arrival-dialog { max-width: 760px; width: min(760px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22); }
.arrival-dialog::backdrop { background: rgba(15, 23, 42, 0.34); }
.arrival-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 12px; background: #fbfcfe; }
.arrival-card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.arrival-card-actions form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 0; }
.arrival-card-actions label { margin-bottom: 0; min-width: 190px; }
.mode-box { display: grid; gap: 4px; border-radius: 6px; padding: 12px; margin: 12px 0; border: 1px solid var(--line); }
.mode-box.safe { background: #ecfdf3; color: #05603a; border-color: #abefc6; }
.mode-box.live { background: #fef3f2; color: #912018; border-color: #fecdca; }
.radio-group { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; }
.radio-group legend { color: var(--muted); font-weight: 700; padding: 0 4px; }
.status { display: inline-block; min-width: 70px; text-align: center; border-radius: 999px; padding: 4px 8px; font-weight: 700; font-size: 12px; }
.status.groen { background: #dcfae6; color: #067647; }
.status.oranje { background: #fef0c7; color: #93370d; }
.status.rood { background: #fee4e2; color: #b42318; }
.dropzone { min-height: 90px; border: 2px dashed #9aa8ba; border-radius: 8px; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.dropzone.drag { border-color: var(--primary); background: #ecfdf3; }
.dropzone input { border: 0; text-align: center; }
.sticker-template-dropzone { display: grid; gap: 6px; padding: 22px; cursor: pointer; }
.sticker-template-dropzone strong { color: var(--ink); font-size: 18px; }
.sticker-template-dropzone span, .sticker-template-dropzone small { display: block; }
.actions form { margin: 0; }
.preview iframe { width: 100%; min-height: 650px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.meta { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; }
.meta dt { color: var(--muted); font-weight: 700; }
.meta dd { margin: 0; word-break: break-word; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.timing-log { max-width: 360px; max-height: 260px; overflow: auto; white-space: pre-wrap; font-family: Consolas, monospace; font-size: 12px; margin: 8px 0 0; }
.document-workflow-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.95fr); gap: 16px; align-items: start; }
.document-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "sticker pakbon"
    "toevoeging inkoopbon";
  gap: 18px;
  align-items: stretch;
}
.document-box-sticker { grid-area: sticker; }
.document-box-pakbon { grid-area: pakbon; }
.document-box-toevoeging-klant { grid-area: toevoeging; }
.document-box-inkoopbon { grid-area: inkoopbon; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.order-process-actions { margin-top: 4px; margin-bottom: 18px; }
.order-process-actions form { width: 100%; display: flex; gap: 16px; align-items: center; justify-content: flex-start; flex-wrap: nowrap; }
.order-process-actions .check { margin-bottom: 0; white-space: nowrap; }
.order-process-actions .big-action { width: auto; min-width: 220px; margin-left: auto; }
.order-workflow-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr); gap: 18px; align-items: stretch; }
.order-process-form { display: grid; align-content: end; }
.big-action { width: 100%; min-height: 54px; font-size: 16px; }
.pending-classify-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-bottom: 10px; background: #fbfcfe; }
.pending-classify-row label { margin-bottom: 0; }
.order-result { font-weight: 700; }
.document-box { min-height: 240px; height: 100%; display: flex; flex-direction: column; }
.document-box-upload { margin-bottom: 12px; }
.document-dropzone { min-height: 72px; margin-bottom: 0; }
.document-box-list { display: grid; gap: 10px; margin-top: 14px; }
.document-box-row { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fbfcfe; }
.document-box-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.document-box-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.document-box-actions form { margin: 0; }
.document-main-column { min-width: 0; }
.document-detail-compact { display: grid; gap: 16px; }
.compact-detail-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-wrap: wrap; }
.compact-order-meta { grid-template-columns: 150px minmax(0, 1fr); }
.detail-actions-row { display: grid; gap: 12px; }
.nog-inkoop-order { display: grid; gap: 16px; }
.nog-inkoop-detail { display: grid; gap: 16px; padding-top: 16px; }
.nog-inkoop-header { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nog-inkoop-header div { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fbfcfe; }
.nog-inkoop-header span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.nog-inkoop-header strong { display: block; margin-top: 4px; word-break: break-word; }
.nog-inkoop-table textarea { min-height: 58px; }
.nog-inkoop-meter-fields { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; align-items: start; }
.nog-inkoop-meter-fields label { margin-bottom: 0; }
.nog-inkoop-meter-fields .radio-group { margin: 0; }
.nog-inkoop-final-purchase { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.nog-inkoop-final-purchase h3 { margin: 0; }
.compact-print-form { display: grid; gap: 12px; max-width: 520px; }
.sticker-side-panel { align-self: start; position: sticky; top: 16px; }
.parser-diagnostics { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 12px 0; background: #fbfcfe; }
.parser-diagnostics summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); }
.sticker-preview-box { aspect-ratio: 2 / 1; width: min(360px, 100%); border: 2px solid var(--ink); border-radius: 4px; background: white; display: grid; place-items: center; text-align: center; margin: 12px 0; }
.sticker-preview-box span { display: block; color: var(--muted); margin-top: 4px; }
.sticker-plan-list { display: grid; gap: 10px; margin: 14px 0; }
.sticker-plan-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fbfcfe; }
.sticker-plan-row .muted { display: block; margin-left: 0; margin-top: 4px; }
.sticker-item-list { display: grid; gap: 10px; margin: 14px 0; }
.sticker-item-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 0.45fr); gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fbfcfe; }
.sticker-item-row.needs-check { border-color: #fedf89; background: #fffcf2; }
.sticker-item-main, .sticker-item-actions { display: grid; gap: 6px; min-width: 0; }
.sticker-item-main span { overflow-wrap: anywhere; }
.sticker-item-actions label { margin-bottom: 6px; }
.warn-text { color: #93370d; font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.customer-profile-grid { display: grid; gap: 12px; }
.customer-profile-card { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fbfcfe; }
.customer-profile-general-row { display: grid; grid-template-columns: 1.1fr 0.9fr 1.2fr 0.6fr 0.6fr 0.8fr 0.7fr 0.7fr auto; gap: 10px; align-items: end; }
.customer-profile-document-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.customer-profile-general-row label, .customer-profile-document-row label { margin-bottom: 0; }
.customer-profile-row { display: grid; grid-template-columns: 1.2fr 1.4fr 0.7fr 0.7fr 0.8fr 0.8fr; gap: 10px; align-items: end; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fbfcfe; }
.customer-profile-row.dynamic { grid-template-columns: 1.1fr 0.9fr 1.2fr 0.65fr 0.65fr 0.8fr 0.7fr minmax(260px, 1.5fr) auto; }
.customer-profile-row.simple { grid-template-columns: 1.2fr 1.3fr 0.75fr minmax(220px, 1fr); }
.customer-profile-row label { margin-bottom: 0; }
.customer-print-options { border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: flex; gap: 8px 12px; flex-wrap: wrap; background: white; }
.customer-print-options legend { font-weight: 700; color: var(--muted); padding: 0 4px; }
.customer-print-options .check { margin: 0; }
.customer-document-options { border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; align-content: start; background: white; }
.customer-document-options legend { font-weight: 700; color: var(--muted); padding: 0 4px; }
.customer-document-options .muted { margin-left: 0; }
.customer-purchase-options label:not(.check) { min-width: 160px; flex: 1 1 160px; }
.printer-profile-grid { display: grid; gap: 12px; }
.printer-profile-row { display: grid; grid-template-columns: 1.8fr 0.8fr 0.8fr 0.9fr; gap: 10px; align-items: end; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fbfcfe; }
.printer-profile-row label { margin-bottom: 0; }
.customer-profile-override { border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: white; }
.customer-profile-override summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); }
.customer-profile-override-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.access-user-create, .access-role-create { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.access-user-create label, .access-role-create label { margin-bottom: 0; }
.access-inline-form { display: grid; gap: 8px; min-width: 260px; margin: 10px 0; }
.inline-details summary { cursor: pointer; color: var(--primary-dark); font-weight: 700; }
.purchase-category-tree { display: grid; gap: 10px; grid-column: 1 / -1; }
.purchase-category-accordion { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; overflow: hidden; }
.purchase-category-accordion summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; color: var(--primary-dark); font-weight: 800; }
.purchase-category-accordion summary:hover { background: #ecfdf3; }
.purchase-category-accordion summary small { color: var(--muted); font-weight: 700; white-space: nowrap; }
.nog-inkoop-summary-cell { display: grid; gap: 2px; }
.nog-inkoop-summary-cell strong { font-size: 14px; }
.purchase-category-accordion[open] summary { border-bottom: 1px solid var(--line); background: #f3fbf6; }
.purchase-category-accordion table { margin: 0; border: 0; border-radius: 0; }
.access-permission-table { overflow: auto; max-height: 680px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; }
.access-permission-table table { min-width: 900px; }
.access-permission-table th:first-child, .access-permission-table td:first-child { position: sticky; left: 0; background: white; z-index: 1; }
.access-permission-table td:not(:first-child), .access-permission-table th:not(:first-child) { text-align: center; }
.access-permission-table input[type="checkbox"] { width: 20px; height: 20px; }
.service-details summary { cursor: pointer; font-weight: 800; color: var(--primary-dark); }
.service-details[open] summary { margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 4px; }
.section-head .muted { margin-left: 0; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.category-card { display: grid; align-content: center; min-height: 86px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfcfe; color: var(--ink); }
.category-card:hover, .category-card.selected { border-color: var(--primary); background: #ecfdf3; }
.category-card strong { overflow-wrap: anywhere; }
.category-card span { display: block; color: var(--muted); margin-top: 5px; font-size: 13px; }
.product-browser { display: grid; grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.product-folder-panel { display: grid; gap: 14px; align-self: start; position: sticky; top: 16px; }
.product-folder-actions { display: grid; gap: 8px; }
.product-folder-actions .button { width: 100%; }
.product-group-forms { display: grid; gap: 10px; }
.product-group-form { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 12px; }
.product-folder-list { display: grid; gap: 8px; }
.product-group-button { width: 100%; min-height: 48px; display: flex; justify-content: space-between; gap: 10px; text-align: left; }
.product-group-button.selected { border-color: var(--primary); background: var(--primary); color: white; }
.product-group-button span { overflow-wrap: anywhere; }
.product-group-button small { color: var(--muted); font-weight: 700; }
.product-group-button.selected small { color: white; }
.product-demo-cleanup { display: grid; }
.product-list-panel { min-width: 0; }
.inventory-browser { display: grid !important; grid-template-columns: minmax(220px, 24%) minmax(0, 1fr) !important; grid-template-rows: auto; gap: 18px; align-items: start; width: 100%; }
.inventory-category-panel { display: grid; gap: 12px; align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.inventory-list-panel { min-width: 0; overflow-x: auto; }
.inventory-category-panel .product-group-button { min-height: 38px; white-space: nowrap; }
.inventory-category-panel .product-group-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-category-panel .product-group-button.selected { background: #16a34a; border-color: #15803d; color: white; }
.inventory-category-panel .product-group-button.selected small { color: white; }
.inventory-status-cards { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.inventory-status-cards div { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.inventory-status-cards span { display: block; color: var(--muted); font-size: 13px; }
.inventory-status-cards strong { display: block; font-size: 24px; margin-top: 7px; }
.purchase-advice-cards { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
.purchase-advice-row.rood { background: #fef3f2; }
.purchase-advice-row.geel { background: #fffaeb; }
.purchase-advice-row.groen { background: #f6fef9; }
.purchase-advice-meta { grid-template-columns: 210px minmax(0, 1fr); margin-bottom: 16px; }
.inventory-status-filters { display: grid; grid-template-columns: 1fr 0.75fr 0.75fr 1.2fr 1.6fr auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.inventory-status-filters label { margin-bottom: 0; }
.inventory-chart-block { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 16px; background: #fbfcfe; }
.inventory-chart-block h2 { font-size: 18px; margin-bottom: 10px; }
.inventory-chart { width: 100%; min-height: 230px; display: block; background: white; border: 1px solid var(--line); border-radius: 6px; }
.inventory-print-form { display: grid; gap: 14px; }
.inventory-print-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inventory-print-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.inventory-print-sheet { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.inventory-print-page-header { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.inventory-print-group { break-after: page; page-break-after: always; margin-bottom: 22px; }
.inventory-print-group:last-child { break-after: auto; page-break-after: auto; }
.inventory-print-group h2 { border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; }
.orderpick-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.orderpick-date-form { display: flex; gap: 10px; align-items: end; min-width: 320px; }
.orderpick-date-form label { margin-bottom: 0; min-width: 180px; }
.orderpick-stats { grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr; }
.orderpick-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.orderpick-meta span { display: block; color: var(--muted); font-size: 12px; }
.orderpick-meta strong { display: block; margin-top: 4px; }
.orderpick-table th:first-child, .orderpick-table td:first-child { width: 86px; text-align: center; }
.orderpick-table-simple { table-layout: fixed; width: 100%; }
.orderpick-table-simple th:first-child, .orderpick-table-simple td:first-child { width: 72px; text-align: center; }
.orderpick-table-simple th:nth-child(2), .orderpick-table-simple td:nth-child(2) { width: 170px; }
.orderpick-table-simple th:nth-child(3), .orderpick-table-simple td:nth-child(3) { white-space: normal; overflow-wrap: anywhere; }
.orderpick-table-simple th:nth-child(4), .orderpick-table-simple td:nth-child(4) { width: 110px; text-align: right; }
.orderpick-weekly-table th:first-child, .orderpick-weekly-table td:first-child { width: 170px; }
.orderpick-weekly-table th:nth-child(2), .orderpick-weekly-table td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
.orderpick-weekly-table th:nth-child(3), .orderpick-weekly-table td:nth-child(3) { width: 110px; text-align: right; }
.orderpick-table-simple .orderpick-group-heading td { background: #e2e8f0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 900; padding: 20px 10px 14px; text-align: left; text-transform: uppercase; }
.orderpick-check-form { display: inline-grid; place-items: center; margin: 0; }
.orderpick-check-form input[type="checkbox"] { width: 24px; height: 24px; }
.orderpick-table tr.picked { background: #ecfdf3; color: #475569; }
.orderpick-table tr.picked td:nth-child(2), .orderpick-table tr.picked td:nth-child(3) { text-decoration: line-through; }
.orderpick-table-simple tr.picked td:nth-child(2), .orderpick-table-simple tr.picked td:nth-child(3), .orderpick-table-simple tr.picked td:nth-child(4) { text-decoration: line-through; }
.chart-axis { stroke: #94a3b8; stroke-width: 1; }
.chart-line { fill: none; stroke: #0f766e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-reserved-line { fill: none; stroke: #7c3aed; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 5; }
.chart-minimum { stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 6 5; }
.chart-marker-add { fill: #16a34a; }
.chart-marker-remove { fill: #dc2626; }
.chart-label { fill: #64748b; font-size: 12px; }
.chart-bar-add { fill: #16a34a; }
.chart-bar-remove { fill: #dc2626; }
.chart-legend { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.chart-legend span { display: inline-flex; gap: 6px; align-items: center; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend-add { background: #16a34a; }
.legend-remove { background: #dc2626; }
.legend-stock { background: #0f766e; }
.legend-reserved { background: #7c3aed; }
.legend-minimum { background: #f59e0b; }
.low-stock-row { background: #fff7ed; }
.product-data-row.product-has-actions.low-stock-row td { border-bottom: 0; }
.product-action-row.low-stock-row td { background: #fff7ed; }
.highlight-product { outline: 2px solid #2563eb; outline-offset: -2px; }
.stock-confirmation { margin: 14px 0; }
.empty-state { min-height: 280px; display: grid; align-content: center; justify-items: center; text-align: center; }
.login-body { display: grid; place-items: center; min-height: 100vh; background: #eef3f7; padding: 18px; }
.login-box { width: min(430px, 100%); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
@media (max-width: 980px) {
  .sidebar { position: static; width: 100%; }
  .app-version { position: static; width: auto; margin-top: 12px; }
  .main { margin-left: 0; padding: 16px; }
  .grid.two, .stats, .document-workflow-grid, .product-browser { grid-template-columns: 1fr; }
  .document-box-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .order-workflow-panel, .customer-profile-row, .customer-profile-row.dynamic, .customer-profile-row.simple, .customer-profile-general-row, .customer-profile-document-row, .printer-profile-row, .customer-profile-override-grid { grid-template-columns: 1fr; }
  .access-user-create, .access-role-create { grid-template-columns: 1fr; }
  .inventory-status-cards, .inventory-status-filters { grid-template-columns: 1fr 1fr; }
  .orderpick-stats { grid-template-columns: 1fr; }
  .orderpick-date-form { min-width: 0; width: 100%; }
  .order-process-actions form { flex-wrap: wrap; }
  .sticker-item-row { grid-template-columns: 1fr; }
  .sticker-side-panel { position: static; }
  .product-folder-panel { position: static; }
  .inventory-category-panel { position: sticky; }
  .toolbar { display: grid; }
  .toolbar form { min-width: 0; }
}

@media (max-width: 640px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .sidebar { padding: 16px 12px; }
  .brand { margin-bottom: 14px; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav a { min-height: 42px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 9px 8px; }
  .main { padding: 12px; }
  .topbar { display: grid; gap: 10px; align-items: stretch; }
  .topbar .button { width: 100%; }
  .panel { padding: 14px; border-radius: 6px; }
  .toolbar, .orderpick-toolbar, .actions, .inventory-print-actions, .document-box-actions { display: grid; grid-template-columns: 1fr; }
  .toolbar form, .orderpick-date-form { display: grid; width: 100%; }
  .document-box-grid { grid-template-columns: 1fr; grid-template-areas: "sticker" "pakbon" "toevoeging" "inkoopbon"; }
  .document-box { min-height: 190px; }
  .stats strong, .inventory-status-cards strong { font-size: 22px; }
  input, select, textarea, .button, button { min-height: 44px; }
}

@media print {
  @page { size: A4; margin: 15mm 10mm 14mm; }
  body { background: white; }
  .sidebar, .topbar, .orderpick-print-header, .orderpick-check-form button, .notice, .inventory-print-controls { display: none !important; }
  .main { margin-left: 0; padding: 0; }
  .panel, .stats div { border: 0; box-shadow: none; padding: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
  .stats strong { font-size: 20px; }
  .orderpick-table { font-size: 12px; }
  .orderpick-table th, .orderpick-table td { padding: 7px 6px; }
  .orderpick-check-form input[type="checkbox"] { width: 18px; height: 18px; }
  .inventory-print-sheet { border: 0; border-radius: 0; padding: 0; }
  .inventory-print-page-header { position: fixed; top: 0; left: 0; right: 0; font-size: 10px; color: #111827; }
  .print-page-number::after { content: counter(page); }
  .inventory-print-group { padding-top: 16mm; break-after: page; page-break-after: always; }
  .inventory-print-group:last-child { break-after: auto; page-break-after: auto; }
  .inventory-print-group h2 { font-size: 16px; margin-bottom: 8px; }
  .inventory-print-group table { font-size: 10px; }
  .inventory-print-group th, .inventory-print-group td { padding: 4px 5px; }
}
