/* Voorraad (design: Voorraad.dc.html, the rules after "End of the shell" that
   base.css does not hold). Everything is scoped under .scr-voorraad (the
   screen's <main>), since every screen's CSS loads at once. */
.page.scr-voorraad{gap:24px}
/* The design's own sizes where they differ from the shared parts. */
.scr-voorraad .h2{font-size:clamp(24px,2.2vw,30px);letter-spacing:-.035em;line-height:1.05}
.scr-voorraad .h3{font-size:20px}
.scr-voorraad .pin input{width:78px}
.scr-voorraad .confirm{margin-top:8px}
.scr-voorraad .dwrap{margin-bottom:-14px}
/* On a computer the search and filters above the list stay put while the page scrolls. */
@container (min-width:901px){.scr-voorraad .tool{position:sticky;top:73px;z-index:12;background:#FAFAF7;padding:10px 0;margin:-10px 0}}

/* Records */
.scr-voorraad .tool{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.scr-voorraad .fpanel{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 28px;padding:16px 18px;background:#F2F1EC;border-radius:12px}
.scr-voorraad .gchip{min-width:48px;min-height:44px;padding:0 10px;border:1px solid #8C8981;border-radius:4px;background:#FFFFFF;color:#121212;font-size:15px;font-weight:700;cursor:pointer}
.scr-voorraad .gchip:hover{border-color:#121212}
.scr-voorraad .gchip-on,.scr-voorraad .gchip-on:hover{background:#121212;border-color:#121212;color:#FAFAF7}
.scr-voorraad .fchip{display:inline-flex;align-items:center;gap:2px;max-width:100%;min-height:44px;padding:0 4px 0 14px;border-radius:999px;background:#121212;color:#FAFAF7;font-size:14px;font-weight:700}
.scr-voorraad .fchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scr-voorraad .fchip button{flex:none;width:36px;height:36px;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer}
.scr-voorraad .fchip button:hover{background:#3F3D39}
.scr-voorraad .fchip button:focus-visible{outline-color:#FAFAF7}
.scr-voorraad .tscroll{overflow-x:auto}
.scr-voorraad .tgrid{min-width:900px}
.scr-voorraad .trow{display:grid;grid-template-columns:52px minmax(250px,1fr) 78px 58px 96px 122px 224px;align-items:center;gap:0 10px;border-bottom:1px solid #ECEAE4;min-height:68px;padding-right:12px}
.scr-voorraad .trow-head{min-height:44px;border-bottom:2px solid #121212;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#5E5B55}
.scr-voorraad .trow-sel{background:#FFF1E9}
.scr-voorraad .trow-open{background:#F2F1EC}
.scr-voorraad .cbl{display:inline-grid;place-items:center;width:44px;height:44px;cursor:pointer;margin-left:4px}
.scr-voorraad .cb{width:20px;height:20px;accent-color:#121212;cursor:pointer;margin:0}
.scr-voorraad .rowbtn{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:52px;padding:0;border:0;background:none;text-align:left;color:#121212;cursor:pointer;font:inherit}
.scr-voorraad .rowbtn:hover .rt{text-decoration:underline;text-underline-offset:3px}
.scr-voorraad .inb{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:0 12px;border:1.5px solid #121212;border-radius:999px;background:#FFFFFF;color:#121212;font-size:13px;font-weight:700;cursor:pointer}
.scr-voorraad .inb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scr-voorraad .inb:hover{background:#121212;color:#FAFAF7}
.scr-voorraad .bulk{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;background:#121212;color:#FAFAF7;border-radius:12px}
.scr-voorraad .bulk :focus-visible{outline-color:#FAFAF7}
.scr-voorraad .bulk input:focus,.scr-voorraad .bulk select:focus{outline-color:#FF6B2C}
.scr-voorraad .bb{min-height:44px;padding:0 14px;border-radius:4px;border:1.5px solid #FAFAF7;background:transparent;color:#FAFAF7;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.scr-voorraad .bb:hover,.scr-voorraad .bb-open{background:#FAFAF7;color:#121212}
.scr-voorraad .bb-o,.scr-voorraad .bb-o:hover{background:#FF6B2C;border-color:#FF6B2C;color:#121212}
.scr-voorraad .bb-o:hover{filter:brightness(.93)}
.scr-voorraad .bb:disabled{opacity:.6;cursor:default}
.scr-voorraad .bb-link{background:none;border:0;padding:0 6px;min-height:44px;color:#FAFAF7;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.scr-voorraad .bulk-form{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;padding-top:12px;border-top:1px solid #3F3D39}
.scr-voorraad .bulk-form label{font-size:14px;font-weight:700}
.scr-voorraad .bulk-form .inp{border:0;min-height:44px}
.scr-voorraad .bulk-form .inp[aria-invalid="true"]{border:2px solid #A3260F}
.scr-voorraad .bcheck{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:600;cursor:pointer}
.scr-voorraad .bcheck input{width:20px;height:20px;margin:0;accent-color:#FF6B2C}
.scr-voorraad .pin input[aria-invalid="true"]{border:2px solid #A3260F}
/* A record, opened: a panel over the right of the list */
.scr-voorraad .dgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.scr-voorraad .dprice{background:#F2F1EC;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:14px}
/* Boxes */
.scr-voorraad .bgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr));gap:16px}
.scr-voorraad .boxcard{display:flex;flex-direction:column;gap:6px;padding:20px;border:1.5px solid #D9D7D0;border-radius:14px;background:#FFFFFF;min-height:236px;min-width:0}
.scr-voorraad .boxcard-b{border-color:#121212;box-shadow:inset 0 5px 0 #FF6B2C}
.scr-voorraad .boxc-lg{font-size:18px;padding:5px 10px}
.scr-voorraad .bstate{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:700}
.scr-voorraad .kinds{display:flex;flex-wrap:wrap;gap:8px}
.scr-voorraad .kind{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1.5px solid #D9D7D0;border-radius:999px;background:#FFFFFF;font-size:15px;font-weight:700;cursor:pointer}
.scr-voorraad .kind:hover{border-color:#121212}
.scr-voorraad .kind-on,.scr-voorraad .kind-on:hover{border-color:#121212;background:#121212;color:#FAFAF7}
.scr-voorraad .kind input{position:absolute;opacity:0;width:1px;height:1px}
.scr-voorraad .kind:focus-within{outline:3px solid #121212;outline-offset:2px}
.scr-voorraad .kind code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;opacity:.75}
/* Bundles */
.scr-voorraad .stack{position:relative;display:block;width:100%;aspect-ratio:1/1}
.scr-voorraad .stack .cover{position:absolute;width:84%}
.scr-voorraad .stack .sc-1{right:0;top:0;filter:brightness(.8)}
.scr-voorraad .stack .sc-2{left:8%;top:8%;filter:brightness(.92)}
.scr-voorraad .stack .sc-3{left:0;bottom:0}
.scr-voorraad .bcard{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;padding:20px 24px;border:1.5px solid #D9D7D0;border-radius:16px;background:#FFFFFF;scroll-margin-top:90px}
.scr-voorraad .bcard-hl{border-color:#121212;box-shadow:0 0 0 4px #FFB08A}
.scr-voorraad .bstack{flex:none;width:104px}
.scr-voorraad .bmain{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:4px}
.scr-voorraad .bprice{flex:0 0 190px}
.scr-voorraad .bmkt{flex:0 0 210px;display:flex;align-items:center;gap:12px}
/* Making a bundle or a box */
.scr-voorraad .maker{border:1.5px solid #121212;border-radius:18px;background:#FFFFFF;padding:clamp(20px,2.4vw,32px);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:28px 48px;scroll-margin-top:90px}
.scr-voorraad .mopt{display:flex;gap:14px;align-items:flex-start;padding:16px;border:1.5px solid #D9D7D0;border-radius:12px;cursor:pointer;background:#FFFFFF}
.scr-voorraad .mopt:hover{border-color:#121212}
.scr-voorraad .mopt-on,.scr-voorraad .mopt-on:hover{border-color:#121212;background:#FFF1E9}
.scr-voorraad .mopt-off,.scr-voorraad .mopt-off:hover{cursor:default;border-color:#ECEAE4;background:#F4F3EE}
.scr-voorraad .mopt input{width:20px;height:20px;margin:2px 0 0;accent-color:#121212;flex:none}
/* Import and export */
.scr-voorraad .vtool{margin-top:14px;display:flex;flex-direction:column;gap:14px;padding:18px 20px;background:#FFFFFF;border:1.5px solid #121212;border-radius:14px;max-width:760px}
.scr-voorraad .vtool-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.scr-voorraad .vnote{font-size:14px;color:#5E5B55;line-height:1.45}
.scr-voorraad .verr{font-size:14px;font-weight:600;color:#A3260F}
.scr-voorraad .vlines{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px}

@container (max-width:900px){
  .scr-voorraad .dwrap{margin-bottom:0}
}
@container (max-width:700px){
  /* Each record becomes a small card. */
  .scr-voorraad .tgrid{min-width:0}
  .scr-voorraad .trow{grid-template-columns:52px auto auto auto minmax(0,1fr);grid-template-areas:"cb rec rec rec rec" "cb box cond val price" "cb mkt mkt mkt mkt";gap:6px 12px;padding:10px 0 12px}
  .scr-voorraad .trow>:nth-child(1){grid-area:cb;align-self:start}
  .scr-voorraad .trow>:nth-child(2){grid-area:rec}
  .scr-voorraad .trow>:nth-child(3){grid-area:box}
  .scr-voorraad .trow>:nth-child(4){grid-area:cond}
  .scr-voorraad .trow>:nth-child(5){grid-area:val}
  .scr-voorraad .trow>:nth-child(6){grid-area:price;justify-self:end}
  .scr-voorraad .trow>:nth-child(7){grid-area:mkt}
  .scr-voorraad .trow-head{grid-template-areas:"cb rec rec rec rec";min-height:44px;padding:0}
  .scr-voorraad .trow-head>:nth-child(n+3){display:none}
}
@container (max-width:600px){
  .scr-voorraad .vact{order:-1}
  .scr-voorraad .vact .btn-o{flex:1}
  .scr-voorraad .tool>select{flex:1 1 130px}
  .scr-voorraad .bb{flex:1 1 auto}
  .scr-voorraad .bcard{padding:16px;gap:14px 16px}
  .scr-voorraad .bstack{width:72px}
  .scr-voorraad .bmain{flex:1 1 160px}
  .scr-voorraad .bprice,.scr-voorraad .bmkt{flex:1 1 100%}
  .scr-voorraad .dgrid{grid-template-columns:minmax(0,1fr)}
}
