*{box-sizing:border-box}body{margin:0;background:#faf8f3;color:#263e33;font:16px/1.5 system-ui,-apple-system,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-underline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,serif;font-weight:500}h1{font-size:clamp(34px,5vw,50px);line-height:1.15;margin:8px 0 12px}h2{font-size:27px;line-height:1.25}h3{font-size:18px}.stock-brand{max-width:1120px;margin:auto;padding:calc(22px + env(safe-area-inset-top)) 28px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}.stock-brand>a:first-child{display:flex;gap:10px;align-items:center;font:700 25px Georgia,serif;text-decoration:none}.stock-brand img{object-fit:contain}.stock-brand>a:last-child{font-size:14px}.stock-wrap{max-width:1064px;margin:auto;padding:24px 28px 160px}.stock-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{letter-spacing:2px;font-size:11px;font-weight:750;color:#577151;margin-bottom:8px}.muted{color:#748075}.stock-heading .muted{margin-bottom:0}.stock-mark{font-size:45px;background:#e9efe3;width:90px;height:90px;display:grid;place-items:center;border-radius:28px}.stock-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:26px}.stock-actions .text-button{margin-left:auto}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;padding:12px 18px;border-radius:12px;min-height:46px;text-decoration:none;font-weight:650}.primary{color:white;background:#4f6d50}.secondary{background:#fffdf8;border-color:#d9dfd3;color:#344f3e}.text-button{background:none;border:0;color:#567351;padding:9px 0;min-height:44px;text-align:left}.stock-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:26px}.stock-counts button{background:#f0f1e9;border:1px solid transparent;border-radius:16px;padding:15px 18px;text-align:left;color:inherit}.stock-counts strong{display:block;font-size:28px;font-weight:600}.stock-counts span{font-size:13px}.stock-counts [data-view=soon]{background:#f7ecd8}.stock-counts [data-view=overdue]{background:#f5e9e2}.stock-counts [data-view=low]{background:#e9eff1}.stock-counts button[aria-pressed=true]{border-color:#4f6d50;box-shadow:0 0 0 1px #4f6d50}.stock-toolbar{display:flex;gap:12px;margin:12px 0 16px}.stock-search{flex:1;display:flex;align-items:center;gap:10px;background:#efeee6;border-radius:13px;padding:0 14px;min-width:0}.stock-search>span{font-size:29px;color:#7c887b}.stock-search input{border:0;background:none;min-width:0;width:100%;height:48px;outline-offset:3px}.stock-sort select{height:48px;border:1px solid #dbe0d5;border-radius:12px;background:#fffdf8;color:#405c44;padding:0 12px;max-width:170px}.stock-locations{display:flex;gap:8px;overflow:auto;padding:2px 1px 8px;scrollbar-width:thin}.stock-locations button{border:1px solid #dce1d5;background:transparent;border-radius:99px;padding:8px 15px;min-height:42px;white-space:nowrap;color:#4c6550;font-size:14px}.stock-locations button[aria-pressed=true]{color:#fff;background:#4f6d50;border-color:#4f6d50}.stock-list-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:24px}.stock-list-heading h2{margin:0}.selection-help{font-size:13px;margin:5px 0 18px}.stock-list{display:grid;gap:10px}.stock-item{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:12px;align-items:center;background:#fffdf9;border:1px solid #e1e5da;padding:17px 20px;border-radius:15px}.stock-item.is-selected{border-color:#6b8965;background:#f2f6ec}.stock-item.is-empty{opacity:.75}.stock-item .select-stock{display:flex;align-items:center;min-height:44px}.stock-item input[type=checkbox]{appearance:auto;width:22px;height:22px;accent-color:#4f6d50;margin:0}.stock-product h3{margin:0 0 3px;overflow-wrap:anywhere}.stock-meta{font-size:13px;color:#7b857a;display:flex;gap:6px 12px;flex-wrap:wrap}.stock-item-buttons{display:flex;gap:10px;align-items:center}.stock-item-buttons button{min-height:44px}.stock-item-buttons .text-button{font-size:13px;padding:8px}.stock-item-buttons .secondary{font-size:14px;min-width:90px}.stock-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.stock-badges span{font-size:11px;padding:3px 8px;border-radius:6px;background:#f4e4cc;color:#79562c}.stock-badges .overdue{background:#f6e2db;color:#984b38}.stock-badges .low{background:#e7eef0;color:#43646c}.stock-empty,.stock-welcome{padding:28px;background:#eeefe6;border-radius:16px}.stock-empty p:last-child{margin-bottom:0}.stock-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:18px;font-size:13px}.stock-date-help{font-size:12px;color:#7a8377;max-width:720px;margin-top:24px}.stock-selection{position:fixed;bottom:0;left:0;right:0;padding:16px max(22px,calc((100vw - 1008px)/2)) calc(16px + env(safe-area-inset-bottom));background:#faf8f3f5;backdrop-filter:blur(12px);border-top:1px solid #dce1d4;display:flex;gap:20px;justify-content:space-between;align-items:center;z-index:5}.stock-selection strong{display:block;font-size:14px}.stock-selection .text-button{font-size:12px;padding:0;min-height:26px}#stockStatus:not(:empty){padding:12px 16px;background:#edf1e6;border-radius:12px;font-size:14px}dialog{border:1px solid #dce1d4;border-radius:23px;padding:26px;width:min(610px,calc(100vw - 28px));max-height:calc(100dvh - 40px);background:#faf8f3;color:#263e33;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#183a2b66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:15px}.dialog-heading h2{font-size:29px;margin:0 0 18px}.close{border:0;background:#e9eee1;border-radius:50%;width:42px;height:42px;font-size:25px;flex-shrink:0;color:#38543e}dialog form{display:grid;gap:14px}dialog label:not(.inline-label){display:grid;gap:6px;font-size:14px;font-weight:600}dialog input:not([type=checkbox]):not([type=file]),dialog select,dialog textarea{display:block;width:100%;min-height:45px;padding:10px 12px;border:1px solid #d4dccd;background:#fffdf9;border-radius:9px;color:#294331;min-width:0}dialog textarea{resize:vertical}dialog .field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}dialog small,.dialog-hint{font-size:12px;font-weight:400;color:#73806f}.dialog-hint{margin:0}.dialog-buttons{display:flex;gap:12px;justify-content:flex-end;margin-top:5px}.form-error{color:#9b4939;font-size:14px;margin:0}.inline-label{display:flex;gap:8px;align-items:center}.inline-label input{width:20px;height:20px;accent-color:#4f6d50}.danger{color:#a24937}#stockVideo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:#233b2d}.scan-options{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.scan-photo{position:relative;overflow:hidden}.scan-photo input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.place-options{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.place-options button{padding:8px 12px;border:1px solid #d4dccd;border-radius:99px;background:white;color:#456147;min-height:42px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:3px solid #a5bd82;outline-offset:3px}[hidden]{display:none!important}body:has(dialog[open]){overflow:hidden}@media(max-width:600px){.stock-brand{padding:calc(15px + env(safe-area-inset-top)) 20px 15px}.stock-brand>a:first-child{font-size:20px;gap:6px}.stock-brand img{width:30px;height:30px}.stock-brand>a:last-child{font-size:12px}.stock-wrap{padding:20px 20px 165px}.stock-heading{gap:12px;margin-bottom:22px}.stock-mark{width:57px;height:65px;border-radius:19px;font-size:32px;flex-shrink:0}.stock-heading .muted{font-size:13px;max-width:230px}.eyebrow{font-size:9px;letter-spacing:1.5px}.stock-actions{gap:8px}.stock-actions>.primary,.stock-actions>.secondary{flex:1;padding:11px 10px;font-size:13px}.stock-actions .text-button{font-size:12px}.stock-counts{gap:7px;margin-bottom:20px}.stock-counts button{padding:12px 9px;border-radius:12px}.stock-counts strong{font-size:25px}.stock-counts span{font-size:10px;line-height:1.2;display:block;min-height:24px}.stock-sort select{font-size:13px;max-width:130px}.stock-search{padding:0 10px}.stock-search input{font-size:14px}.stock-list-heading h2{font-size:25px}.stock-list-heading .text-button{font-size:12px}.stock-item{grid-template-columns:25px minmax(0,1fr);gap:9px 10px;padding:13px}.stock-product h3{font-size:16px}.stock-meta{font-size:12px;gap:3px 10px}.stock-item-buttons{grid-column:2;justify-content:space-between}.stock-item-buttons .secondary{min-height:38px;padding:7px 13px}.stock-item-buttons .text-button{min-height:38px}.stock-selection{gap:8px;padding:12px 20px calc(12px + env(safe-area-inset-bottom))}.stock-selection>.primary{font-size:12px;padding:11px}.stock-selection strong{font-size:12px}dialog{padding:22px}.dialog-heading h2{font-size:26px}.stock-date-help{font-size:11px}.stock-brand a{white-space:nowrap}}

/* Illustrated Goeroe navigation and product details. */
.stock-counts{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.stock-counts button{position:relative;padding:14px 14px 12px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.stock-counts [data-view=restock]{background:#f1e8d8}.stock-counts .stock-menu-icon{width:43px;height:43px;min-height:0;display:block;margin:0 0 3px}.stock-menu-icon svg{width:43px;height:43px}.stock-counts strong{position:absolute;top:12px;right:14px;font-size:24px}.stock-counts .stock-menu-title{font-size:14px;font-weight:750;line-height:1.3;min-height:0;display:block}.stock-counts .stock-menu-description{font-size:11px;line-height:1.4;min-height:32px;color:#667361;display:block;text-wrap:pretty}.stock-locations button{display:flex;align-items:center;gap:6px}.location-icon{width:23px;height:25px;display:inline-block}.location-icon svg{width:23px;height:25px}.stock-product-open{display:flex;align-items:center;gap:14px;text-align:left;padding:0;border:0;background:none;min-width:0;color:inherit;width:100%;min-height:65px}.stock-product-open:hover .product-name{text-decoration:underline;text-underline-offset:3px}.stock-product-open .stock-product{display:block;min-width:0}.product-name{display:block;font-size:17px;margin:0 0 5px;overflow-wrap:anywhere}.stock-thumb{display:grid;place-items:center;width:56px;height:64px;border-radius:11px;background:#f0f0e6;flex-shrink:0;overflow:hidden}.stock-thumb svg{width:43px;height:43px}.stock-thumb img{width:100%;height:100%;object-fit:contain;padding:4px}.stock-item.is-empty{opacity:1}.stock-item.is-empty .stock-meta{color:#7a8575}.restock-badge{display:inline-block;color:#806538;background:#f3e9d1;padding:3px 7px;border-radius:6px;font-size:11px;margin-top:6px}.restock-option{align-items:flex-start!important;background:#edf1e5;padding:13px;border-radius:12px}.restock-option input{margin-top:2px}.restock-option small{display:block;margin-top:4px}.product-detail-top{display:flex;gap:20px;align-items:center;margin-bottom:22px}.detail-thumb{width:100px;height:110px}.detail-thumb svg{width:70px;height:70px}.product-detail-top>div>strong{font-size:23px}.product-detail-top p{margin:3px 0}.product-details{display:grid;gap:12px;margin:0 0 20px}.product-details>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:15px;border-bottom:1px solid #e1e5d9;padding-bottom:10px;font-size:14px}.product-details dt{color:#74816f}.product-details dd{margin:0;overflow-wrap:anywhere}.product-notes{white-space:pre-wrap;background:#eeefe5;border-radius:12px;padding:14px;font-size:14px}.scan-preview{position:relative;border-radius:14px;overflow:hidden;background:#1b3125;aspect-ratio:4/3}.scan-preview video{width:100%;height:100%;object-fit:cover;border-radius:0}.barcode-frame{position:absolute;pointer-events:none;top:32%;left:10%;height:34%;width:80%;border:2px solid #e4edc8;border-radius:10px;box-shadow:0 0 0 100px #0002}.scan-status{font-size:13px;color:#4d694d;margin:12px 0;min-height:40px}
@media(max-width:600px){.stock-counts{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;padding:3px 2px 12px;margin:0 -2px 14px;scrollbar-width:thin}.stock-counts button{flex:0 0 148px;scroll-snap-align:start;padding:12px}.stock-counts .stock-menu-title{font-size:14px}.stock-counts .stock-menu-description{font-size:11px;min-height:31px}.stock-counts strong{font-size:23px;top:10px;right:12px}.stock-counts .stock-menu-icon{height:40px;width:40px}.stock-menu-icon svg{width:40px;height:40px}.stock-thumb{width:47px;height:56px}.stock-thumb svg{width:38px;height:38px}.stock-product-open{gap:10px}.product-name{font-size:15px}.stock-item{padding:12px;gap:8px 9px}.stock-item-buttons{justify-content:flex-end;gap:18px}.stock-item-buttons .secondary{min-width:88px}.stock-meta{font-size:11px}.detail-thumb{width:90px;height:100px}.detail-thumb svg{width:65px;height:65px}.product-details>div{grid-template-columns:1fr 1.3fr;font-size:13px}.stock-brand>a:first-child{font-size:19px}}
/* Compact product rows; the heading, overview tiles and filters stay unchanged. */
.stock-list{gap:7px}.stock-item{grid-template-columns:22px minmax(180px,1fr) 170px auto;align-items:center;gap:12px;padding:9px 12px;border-radius:11px;min-height:64px}.stock-product-open{gap:10px;min-height:42px}.stock-thumb{width:36px;height:42px;border-radius:8px}.stock-thumb svg{width:30px;height:30px}.stock-thumb img{padding:2px}.product-name{font-size:14px;line-height:1.3;margin-bottom:3px}.stock-meta{font-size:11px;gap:3px 10px;line-height:1.4}.stock-badges{margin-top:3px;gap:4px}.stock-badges span,.restock-badge{font-size:10px;padding:2px 5px}.stock-item-buttons{display:flex;gap:8px;align-items:center}.stock-item-buttons .secondary{min-height:36px;padding:6px 10px;font-size:11px;border-radius:8px}.stock-item-buttons .text-button{font-size:11px;min-height:36px;padding:4px 6px}
.stock-quantity{display:flex;align-items:center;gap:5px;min-width:0;margin:0}.stock-quantity input{box-sizing:border-box;width:72px;min-width:0;height:36px;border:1px solid #c8d5bd;border-radius:7px;padding:6px 8px;background:#fffdf9;color:#263e33;font-size:13px;text-align:right}.stock-quantity-unit{font-size:11px;color:#74806e;min-width:22px;max-width:75px;overflow-wrap:anywhere}.stock-quantity button{width:34px;height:36px;flex-shrink:0;padding:0;border:1px solid #cad8bd;border-radius:7px;background:#eaf0e2;color:#345735;font-weight:700}.stock-quantity:focus-within{outline:2px solid #8fa57b;outline-offset:3px;border-radius:7px}
@media(max-width:1000px){.stock-item{grid-template-columns:22px minmax(0,1fr) 160px;gap:8px 10px}.stock-item-buttons{grid-column:2/-1;justify-content:flex-end}.stock-item-buttons:empty{display:none}}
@media(max-width:600px){.stock-item{grid-template-columns:20px minmax(0,1fr);padding:9px 10px;gap:6px 8px}.stock-product-open{gap:8px;grid-column:2;grid-row:1}.stock-thumb{width:31px;height:36px}.stock-thumb svg{width:26px;height:26px}.product-name{font-size:13px}.stock-meta{font-size:10px;gap:2px 7px}.select-stock{grid-column:1;grid-row:1/3;align-self:start;margin-top:9px}.stock-quantity{grid-column:2;grid-row:2;max-width:calc(100% - 90px)}.stock-quantity input{width:65px;height:34px}.stock-quantity button{height:34px;width:32px}.stock-item-buttons{grid-column:2;grid-row:2;justify-self:end;max-width:90px;gap:4px}.stock-item-buttons .secondary{min-width:0;min-height:34px;font-size:10px;padding:5px 8px}.stock-item-buttons .text-button{font-size:10px;min-height:34px;padding:4px}.stock-item:has([data-clear-restock]) .stock-item-buttons{grid-row:3;max-width:none}.stock-quantity-unit{font-size:10px;min-width:0}}
/* Keep the larger image in the product detail dialog. */
.detail-thumb{width:90px;height:100px}.detail-thumb svg{width:65px;height:65px}

/* Compact product editor; keep the overview header unchanged. */
dialog:has(.compact-product-form){padding:20px;width:min(580px,calc(100vw - 24px))}
dialog:has(.compact-product-form) .dialog-heading h2{font-size:25px;margin-bottom:12px}
dialog .compact-product-form{gap:10px}
dialog .compact-product-form label:not(.inline-label){gap:4px;font-size:13px}
dialog .compact-product-form .field-pair{gap:10px}
dialog .compact-product-form input:not([type=checkbox]),dialog .compact-product-form select,dialog .compact-product-form textarea{min-height:40px;padding:8px 10px;font-size:14px}
dialog .compact-product-form .restock-option{padding:9px 10px;gap:8px;border-radius:9px;font-size:13px}
dialog .compact-product-form .restock-option small{margin-top:2px;font-size:11px;line-height:1.4}
.stock-extra-fields{display:grid;gap:10px;margin-top:8px}
dialog .compact-product-form summary{font-size:13px}
dialog .compact-product-form .form-error:empty{display:none}
@media(max-width:480px){dialog:has(.compact-product-form){padding:16px}dialog .compact-product-form .field-pair{gap:8px}dialog .compact-product-form label:not(.inline-label){font-size:12px}}

/* Voorraad: direct +/− aanpassen zonder losse bevestigingsknop. */
.stock-quantity{gap:5px}.stock-quantity .stock-quantity-step{display:grid;place-items:center;width:32px;height:34px;flex:0 0 32px;padding:0;border:1px solid #cad8bd;border-radius:8px;background:#eaf0e2;color:#345735;font-size:20px;line-height:1;font-weight:600;cursor:pointer}.stock-quantity .stock-quantity-step:disabled{opacity:.45;cursor:default}.stock-quantity input{width:62px;height:34px}.stock-item-buttons:empty{display:none}.stock-item{grid-template-columns:22px minmax(180px,1fr) auto auto}.stock-item-buttons{min-width:0}
@media(max-width:1000px){.stock-item{grid-template-columns:22px minmax(0,1fr) auto}.stock-item-buttons{grid-column:2/-1;grid-row:3}.stock-quantity{grid-column:2;grid-row:2}.stock-quantity input{width:62px}}
@media(max-width:600px){.stock-item{grid-template-columns:20px minmax(0,1fr);gap:5px 8px;padding:8px 9px}.stock-product-open{grid-column:2;grid-row:1;min-height:36px}.stock-thumb{width:28px;height:32px}.stock-thumb svg{width:23px;height:23px}.product-name{font-size:13px}.stock-meta{font-size:10px}.select-stock{grid-column:1;grid-row:1/3;margin-top:3px}.stock-quantity{grid-column:2;grid-row:2;max-width:none;gap:4px}.stock-quantity .stock-quantity-step{width:30px;height:30px;flex-basis:30px;font-size:18px}.stock-quantity input{width:54px;height:30px;padding:4px 6px;font-size:12px}.stock-quantity-unit{font-size:10px}.stock-item-buttons{grid-column:2;grid-row:3;justify-self:start;max-width:none;justify-content:flex-start}.stock-item-buttons .secondary,.stock-item-buttons .text-button{min-height:30px;font-size:10px;padding:4px 8px}.stock-item:has([data-clear-restock]) .stock-item-buttons{grid-row:3}}

/* Keep separate stock batches easy to choose after a barcode scan. */
.stock-scan-matches{display:grid;gap:16px}.stock-scan-matches section{padding:14px;border:1px solid #dce1d7;border-radius:14px}.stock-scan-matches p{margin:6px 0 12px}
