/* Styles of page-godown.js: Stock ('/stock') and Register ('/indent/register'), stop 2 of the journey.
   Styles made at run time are forbidden by the Content-Security-Policy, so every rule of the page lives here.
   Two families of class names:
   - gs-  the first design's rules that are still worn: the day-end counts of the Stock page (their rows, the opened
          day), the day control of the Register, and the list and card pieces the Indent and On the road pages
          lean on (page-lorries.css says "the lists wear the Godown pages' styles");
   - g2-  the second design (2 Dec 2026): the card on top of the Stock page, the product list, the Register's two panels.
   gd- is the page root and the camera button. */

/* =====================================================================================================
   /stock
   ===================================================================================================== */
.gd-root{display:flex;flex-direction:column;gap:16px}
/* just packed is the blue of the lines; warehouse and staging are the same carton colour, light and dark (palette validator:
   blue against carton as two categories, the two cartons with --ordinal); the second pair is one slate and its pale rest */
.gs-k-in{background:var(--flow)}.gs-k-ware{background:var(--carton)}.gs-k-stag{background:#6f4a1c}.gs-k-a{background:var(--navy)}.gs-k-b{background:#c3cad4}
/* ---------- a card on top (the Indent and Trucks pages wear it) ---------- */
.gs-top{padding:0}

/* ---------- the lists ---------- */
.gs-list{container:gsl/inline-size;padding:14px 12px 10px}
.gs-head2{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 20px;padding:0 6px;margin-bottom:12px}
.gs-head2 h2{font:800 22px/1 var(--display);letter-spacing:-.03em}
.gs-scope{margin-top:7px;font-size:13px;line-height:1.2;color:var(--ink-2)}
.gs-grid{display:grid;column-gap:16px;align-items:center}

.gs-gc{grid-template-columns:minmax(170px,1.3fr) repeat(7,minmax(84px,1fr))}
.gs-hd{padding:0 8px 5px;font-size:13px;line-height:1.2;color:var(--ink-3)}
.gs-hd .r{text-align:right}
.gs-hd i{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:2.5px}
.gs-b{position:relative;padding:4px 0;border-radius:12px;scroll-margin-top:96px}
.gs-b::before{content:"";position:absolute;left:8px;right:8px;top:0;height:1px;background:var(--hair)}
.gs-b.is-hit{background:rgba(185,131,62,.13)}
.gs-line{min-height:36px;padding:0 8px;border-radius:9px}

.gs-v{font-size:14px;line-height:1.2;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;color:var(--ink-2)}
.gs-v.gs-st{font:700 15px/1.15 var(--display);letter-spacing:-.01em;color:var(--ink)}
.gs-v.is-none,.gs-v.gs-st.is-none{color:var(--ink-3);font-weight:400}

.gs-none{padding:18px 8px 14px;font-size:14px;color:var(--ink-3)}
.gs-none[hidden],.gs-hd[hidden]{display:none}
/* closing stock by day: a row a day, a day opens */

.gs-day{cursor:pointer}
.gs-day:hover{background:rgba(185,131,62,.09)}
.gs-date{display:flex;align-items:center;gap:8px;min-width:0;font:600 14.5px/1.25 var(--body);white-space:nowrap}
.gs-date .ic{color:var(--ink-3);transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.gs-day.is-sel .gs-date .ic{transform:rotate(180deg)}
.gs-tag{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;background:rgba(23,33,46,.07);font:500 12.5px/1 var(--body);color:var(--ink-2)}
.gs-diff{display:inline-flex;align-items:center;gap:5px}
.gs-diff svg{flex:none;display:block}
.gs-day.is-sel{z-index:1;--ring:var(--card);background:var(--card);border-radius:14px 14px 0 0;box-shadow:0 0 0 1px var(--hair);margin-top:4px}
.gs-day.is-sel::before,.gs-detail+.gs-b::before{display:none}
.gs-more{display:flex;justify-content:center;padding:10px 0 4px}
.gs-detail .gs-d-cols{grid-template-columns:minmax(0,1fr)}
.gs-detail .gs-d-gr>b,.gs-detail .gs-d-gr .r{font-variant-numeric:tabular-nums}
.gs-detail .gs-d-gr [data-l]::before{font:400 13px/1.3 var(--body)}
.gs-pn{display:flex;align-items:center;gap:10px;min-width:0}
.gs-pn b{font:600 14px/1.25 var(--body)}
.gs-cl{order:9}
@container gsd (max-width:620px){.gs-detail .gs-nil{display:none}.gs-detail .gs-d-top2,.gs-pn{flex-wrap:wrap}}
/* a narrow screen: every day is a small card */
@container gsl (max-width:900px){
  .gs-hd{display:none}
  .gs-b{--ring:var(--card);background:var(--card);border-radius:16px;box-shadow:0 0 0 1px var(--hair);padding:11px 12px 12px;margin:8px 0 0}
  .gs-b::before{display:none}
  .gs-b.is-hit{background:var(--card);box-shadow:0 0 0 2px var(--carton)}
  .gs-day:hover{background:var(--card)}
  .gs-line{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:10px;row-gap:9px;min-height:0;padding:0;border-radius:0;align-items:start}
  .gs-gc.gs-line{grid-template-areas:"nm nm nm st" "ju wa sg rs" "ch ch ou ou"}
  .gs-line+.gs-line{margin-top:12px;padding-top:12px;border-top:1px solid var(--hair)}
  .gs-date{grid-area:nm;font-size:16px;align-self:center}
  .gs-v.gs-st{grid-area:st;justify-self:end;align-self:center;font-size:17px}
  .a-ju{grid-area:ju}.a-wa{grid-area:wa}.a-sg{grid-area:sg}.a-ou{grid-area:ou}.a-rs{grid-area:rs}.a-ch{grid-area:ch}
  .gs-v:not(.gs-st){display:flex;flex-direction:column;gap:1px;align-self:end;text-align:left;white-space:normal;color:var(--ink)}
  .gs-v:not(.gs-st).is-none{color:var(--ink-3)}
  .gs-v:not(.gs-st)::before{content:attr(data-l);font:400 13px/1.2 var(--body);color:var(--ink-3)}
  .gs-day.is-sel{border-radius:16px 16px 0 0;margin-top:8px}
  .gs-detail.gs-d{border-radius:0 0 16px 16px;padding:12px 12px 14px;margin-bottom:6px}
}
@container gsl (max-width:330px){
  .gs-line{column-gap:8px}
  .gs-v:not(.gs-st)::before{font-size:12.5px}
}
@container gsl (max-width:300px){
  .gs-line{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gs-gc.gs-line{grid-template-areas:"nm st" "ju wa" "sg rs" "ch ou"}
  .gs-date{flex-wrap:wrap;white-space:normal;gap:3px 8px}
  .gs-date .ic{display:none}
}

@media (max-width:760px){
  .cb.gd-cb{height:40px;padding:0 14px 0 12px;border-radius:20px}
}

/* ---------- the Sort control, and the opened day ---------- */
.gs-x-pick{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2)}
.gs-x-pick select{height:36px;max-width:100%;padding:0 34px 0 12px;border:0;border-radius:11px;font-weight:600;font-size:13px;color:var(--ink);cursor:pointer;-webkit-appearance:none;appearance:none;box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.18);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1.5 1.5 4.500 4.500 4.500-4.500' fill='none' stroke='%2317212e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center}
.gs-x-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* the opened day: a drawer that hangs under its row */
.gs-d{position:relative;--ring:var(--card);background:var(--card);border-radius:0 0 22px 22px;padding:12px 18px 16px;margin:0 0 14px;cursor:default;box-shadow:0 0 0 1px var(--hair),0 26px 36px -28px rgba(23,33,46,.55);animation:fade .25s both;container:gsd/inline-size}
.gs-d-cols{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:14px 36px;align-items:start}
.gs-d-g{display:grid;grid-template-columns:var(--g);column-gap:18px;align-items:center}
.gs-d-g .r{text-align:right;justify-self:end}
.gs-d-gh{padding:0 8px 5px;font-size:13px;line-height:1.2;color:var(--ink-3);border-bottom:1px solid var(--hair)}
.gs-d-gh[hidden],.gs-d-gl[hidden]{display:none}
.gs-d-gr{padding:6px 8px;font-size:13px;line-height:1.3;font-variant-numeric:tabular-nums;border-bottom:1px solid var(--hair);text-decoration:none;color:inherit}
.gs-d-gr:last-child{border-bottom:0}
.gs-d-top2{display:contents}
.gs-d-gr b{font:700 14px/1.2 var(--display);white-space:nowrap}
.gs-d-gr>span,.gs-d-top2>span{white-space:nowrap}
@container gsd (max-width:1040px){.gs-d-cols{grid-template-columns:minmax(0,1fr)}}
@container gsd (max-width:620px){
  .gs-d-gh{display:none}
  .gs-d-gr{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:9px 2px}
  .gs-d-top2{display:flex;flex:1 1 100%;align-items:center;justify-content:space-between;gap:10px}
  .gs-d-gr [data-l]::before{content:attr(data-l) " ";color:var(--ink-3)}
  .gs-d-gr [data-u]::after{content:" " attr(data-u);font:400 13px/1.3 var(--body);color:var(--ink-3)}
  .gs-d-cols{gap:16px}
}
@media (max-width:640px){
  .gs-x-pick{display:flex;width:100%}
  .gs-x-pick select{height:42px;flex:1;min-width:0;font-size:14px}
  .gs-x-tools{width:100%}
}

/* =====================================================================================================
   /indent/register: the day control in the page header · the "part" boxes the Trucks page wears
   ===================================================================================================== */
.gs-dayctl{display:flex;align-items:center;gap:6px}
.gs-nav{width:38px;height:38px;border-radius:13px;background:rgba(255,255,255,.66)}
.gs-nav:hover{background:#fff}
.gs-dayctl .gs-tag{margin-right:4px;height:24px;background:rgba(255,255,255,.62)}
.gs-dayctl .gs-tag[hidden]{display:none}
.gs-dayctl .rg-pick{min-width:132px;justify-content:center}

.gs-v .badge{height:22px}

.gs-calb .cal-months{min-width:280px}

@media (max-width:760px){
  .gs-dayctl{width:100%}
  .gs-dayctl .rg-dates{flex:1;min-width:0}
  .gs-dayctl .rg-pick{min-width:0;padding:0 8px}
  .gs-nav{width:42px;height:42px;border-radius:14px}
}
@media (max-width:340px){
  .gs-dayctl .rg-pick .ic{display:none}
  .gs-dayctl .gs-tag{padding:0 5px;margin-right:0}
}

/* ---------- waiting for data: where a state block (loading, failed, no access, nothing there) stands ---------- */
.gs-top>.slot>.sk,.gs-top>.slot>.st,.gs-top>.slot>.empty{margin:16px 20px}
.gs-list>.slot>.sk,.gs-list>.slot>.st{margin:4px 6px 10px}

.gs-detail .slot>.sk,.gs-detail .slot>.st{margin:6px 2px}

.gs-x-tools:empty{display:none}
/* a long product name wraps in the opened day; it is never cut */
.gs-detail .gs-pn b{white-space:normal;overflow-wrap:anywhere}

@media (max-width:760px){
  .gs-top>.slot>.sk,.gs-top>.slot>.st,.gs-top>.slot>.empty{margin:14px}
}
/* the opened day on a narrow screen: the closing figure keeps its place at the right of the first line, and a long
   product name wraps beside it (real names are much longer than the design's sample names) */
@container gsd (max-width:620px){
  .gs-detail .gs-d-top2{flex-wrap:nowrap}
  .gs-detail .gs-pn{flex:1 1 auto}
  .gs-detail .gs-cl{flex:none}
}
/* =====================================================================================================
   The second design (2 Dec 2026): class names start with g2-.
   ===================================================================================================== */
.g2-k-in{background:var(--flow)}.g2-k-ware{background:var(--carton)}.g2-k-stag{background:#6f4a1c}.g2-k-a{background:var(--navy)}.g2-k-b{background:#c3cad4}
.g2-k-here{background:var(--flow)}.g2-k-gone{background:repeating-linear-gradient(135deg,#86b6ef 0 4px,#c6daf6 4px 8px)}

/* ---------- the card on top: the stock as it stands (left) · the chosen days (right) ---------- */
.g2-hero{position:relative;display:grid;grid-template-columns:minmax(300px,.5fr) minmax(0,1fr);padding:0;overflow:hidden}
.g2-stale{position:absolute;right:14px;top:10px;z-index:2}
.g2-stale[hidden]{display:none}
.g2-rail{padding:20px 22px 14px;background:var(--b-godown);min-width:0}
.g2-main{padding:20px 26px 18px;min-width:0}
.g2-hd .stat-l{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;min-height:22px}
.g2-chip:empty{display:none}
.g2-chip .badge{height:22px;background:rgba(255,255,255,.72)}
.g2-big{display:block;margin-top:5px;font:800 50px/1 var(--display);letter-spacing:-.05em;font-variant-numeric:tabular-nums;white-space:nowrap}
.g2-note{margin-top:7px;font-size:13px;line-height:1.3;color:var(--ink-2)}
.g2-note:empty{display:none}
.g2-cap{margin-top:16px}
.g2-pbar{display:flex;gap:2px;height:10px;margin-top:12px;border-radius:5px;overflow:hidden;transform-origin:0 50%;transform:scaleX(var(--on,1));transition:transform .9s cubic-bezier(.2,.7,.2,1) .2s}
.g2-cap+.g2-pbar{margin-top:8px}
.g2-pbar i{flex:1 1 0;min-width:4px;transition:flex-grow 1s cubic-bezier(.2,.7,.2,1)}
.g2-pbar i[hidden]{display:none}
.g2-pls{margin-top:6px}
.g2-pls li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:11px;padding:7px 0;border-top:1px solid rgba(23,33,46,.09)}
.g2-pls li:first-child{border-top:0}
.g2-pic{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.78)}
.g2-pic svg{width:24px;height:24px}
.g2-pn{display:flex;flex-direction:column;min-width:0;font:600 13.5px/1.2 var(--body);color:var(--ink)}
.g2-pn>span{display:flex;align-items:center;gap:7px}
.g2-pn>span::before{content:"";flex:none;width:9px;height:9px;border-radius:3px;background:var(--nc)}
.g2-pn small{margin-top:2px;padding-left:16px;font-size:12.5px;font-weight:400;color:var(--ink-2)}
.g2-pn small:empty{display:none}
.g2-pls b{font:800 21px/1 var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.g2-s-hd>.sk,.g2-s-pl>.sk{padding:6px 0 10px}

/* today: the day's sum as floating bars on one scale */
.g2-mt{margin-bottom:2px}
.g2-wf{position:relative;--lw:210px;--nw:118px}
.g2-w{display:grid;grid-template-columns:var(--lw) var(--nw) minmax(0,1fr);align-items:center;padding:13px 0;border-top:1px solid var(--hair)}
.g2-w:first-child{border-top:0}
.g2-wl{min-width:0}
.g2-wl>span{display:flex;align-items:center;gap:8px;font:600 14.5px/1.2 var(--body)}
.g2-sg{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ink);color:#fff;font:700 14px/1 var(--display);font-style:normal}
.g2-wl small{display:block;margin-top:3px;font-size:12.5px;line-height:1.3;color:var(--ink-3)}
.g2-wl small:empty{display:none}
.g2-w>b{justify-self:end;padding-right:22px;font:800 26px/1 var(--display);letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}
.g2-wt{position:relative;height:24px;background:linear-gradient(var(--belt),var(--belt)) 0 50%/100% 2px no-repeat}
.g2-wb{position:absolute;top:0;bottom:0;left:var(--l,0%);width:var(--w,0%);min-width:3px;display:flex;gap:2px;border-radius:6px;overflow:hidden;transform-origin:0 50%;transform:scaleX(var(--on,1));transition:transform .9s cubic-bezier(.2,.7,.2,1) .15s,left .8s cubic-bezier(.2,.7,.2,1),width .8s cubic-bezier(.2,.7,.2,1)}
.g2-wb[hidden]{display:none}
.g2-w-open .g2-wb{background:var(--carton)}
.g2-w-made .g2-wb{transition-delay:.3s,0s,0s}
.g2-w-made .g2-wb i{flex:1 1 0;min-width:0}
.g2-w-made .g2-wb i[hidden]{display:none}
.g2-w-out .g2-wb{background:repeating-linear-gradient(135deg,var(--navy) 0 5px,#5b6c82 5px 10px);transition-delay:.5s,0s,0s}
.g2-wk{grid-column:3;display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:8px;font-size:13px;line-height:1.2;color:var(--ink-2)}
.g2-wk span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.g2-wk i{flex:none;width:10px;height:10px;border-radius:3px}
.g2-wk b{font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.g2-tk{position:absolute;left:calc(var(--lw) + var(--nw));right:0;top:4px;bottom:0;pointer-events:none}
.g2-tick{position:absolute;top:0;bottom:17px;left:var(--x,0%);width:0;border-left:2px dashed var(--ink);opacity:var(--on,1);transition:left .8s cubic-bezier(.2,.7,.2,1),opacity .4s .9s}
.g2-tick[hidden]{display:none}
.g2-tick span{position:absolute;top:100%;left:-1px;transform:translateX(-50%);padding-top:2px;white-space:nowrap;font:600 12.5px/1.2 var(--body);color:var(--ink)}
.g2-tick.is-r span{transform:translateX(-100%)}
.g2-wf{padding-bottom:16px}
.g2-s-sum>.sk,.g2-s-sum>.st,.g2-s-sum>.empty{margin:12px 0}

/* other days: one figure or split at the left, the picture at the right */
.g2-main.is-span,.g2-main.is-all{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);column-gap:30px;align-items:start}
.g2-main.is-day .g2-figs{display:grid;grid-template-columns:minmax(200px,280px) minmax(0,1fr);column-gap:30px;align-items:start}
.g2-fig .stat-v{font-size:40px;letter-spacing:-.045em}
.g2-sp .stat-l em{font-style:normal;font-weight:400;color:var(--ink-3);margin-left:6px}
.g2-sps{display:flex;flex-wrap:wrap;gap:8px 30px;margin-top:8px}
.g2-sp1{min-width:0}
.g2-sp1 span{display:flex;align-items:center;gap:6px;font-size:13px;line-height:1.2;color:var(--ink-2);white-space:nowrap}
.g2-sp1 span i{flex:none;width:10px;height:10px;border-radius:3px}
.g2-sp1 b{display:block;margin-top:4px;font:800 26px/1 var(--display);letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}
.g2-spb{display:flex;gap:2px;height:18px;margin-top:12px;border-radius:6px;overflow:hidden;transform-origin:0 50%;transform:scaleX(var(--on,1));transition:transform .9s cubic-bezier(.2,.7,.2,1) .2s}
.g2-spb i{flex:1 1 0;min-width:3px;transition:flex-grow 1s cubic-bezier(.2,.7,.2,1)}
.g2-spb i[hidden]{display:none}
.g2-trend[hidden]{display:none}
.g2-trend>.stat-l{margin-bottom:4px}
.g2-chart,.g2-chartbox{--chart-h:150px}
.g2-chart{padding:0 0 26px}
.g2-s-figs>.sk{padding:4px 0}

/* ---------- by product: one row a brand, its bar cut by bottle size ---------- */
.g2-list{container:g2l/inline-size;padding:16px 14px 10px}
.g2-lh{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 20px;padding:0 8px;margin-bottom:12px}
.g2-lh h2{font:800 22px/1 var(--display);letter-spacing:-.03em}
.g2-scope{margin-top:7px;font-size:13px;line-height:1.2;color:var(--ink-2)}
.g2-scope:empty{display:none}
.g2-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.g2-cols{display:grid;grid-template-columns:minmax(190px,1.05fr) minmax(160px,2.1fr) 104px 104px 18px;column-gap:20px;align-items:center}
.g2-ch{padding:0 10px 7px;font-size:13px;line-height:1.2;color:var(--ink-3)}
.g2-ch .r{text-align:right}
.g2-ch[hidden],.g2-tot[hidden]{display:none}
.g2-keys{display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--ink-2)}
.g2-keys span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.g2-keys i{flex:none;width:10px;height:10px;border-radius:3px}
.g2-b{position:relative;border-top:1px solid var(--hair);scroll-margin-top:96px}
.g2-bh{width:100%;min-height:44px;padding:7px 10px;border:0;border-radius:10px;background:transparent;text-align:left;color:inherit;cursor:pointer}
.g2-bh:hover{background:rgba(185,131,62,.09)}
.g2-bn{min-width:0;font:600 14.5px/1.25 var(--body);color:var(--ink)}
.g2-barw{display:block;height:16px;min-width:0}
.g2-bar{display:flex;gap:2px;height:100%;width:calc(var(--w,0)*1%*var(--on,1));border-radius:5px;overflow:hidden;transition:width 1s cubic-bezier(.2,.7,.2,1)}
.g2-bar i{flex:1 1 0;min-width:2px}
.g2-v{justify-self:end;font:700 15.5px/1.15 var(--display);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink)}
.g2-v.g2-vo{font:400 14px/1.2 var(--body);letter-spacing:0;color:var(--ink-2)}
.g2-v.is-none{font-weight:400;color:var(--ink-3)}
.g2-bh>.ic{justify-self:end;color:var(--ink-3);transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.g2-b.is-open>.g2-bh>.ic{transform:rotate(180deg);color:var(--ink)}
.g2-b.is-open{z-index:1;margin:5px 0;border-top-color:transparent;border-radius:16px;background:var(--card);box-shadow:0 0 0 1px var(--hair),0 18px 30px -26px rgba(23,33,46,.55)}
.g2-b.is-open+.g2-b{border-top-color:transparent}
.g2-b.is-hit{background:rgba(185,131,62,.13);border-radius:12px}
.g2-bd{padding:0 10px 10px}
.g2-bd[hidden]{display:none}
.g2-sr{display:grid;grid-template-columns:minmax(110px,1.05fr) repeat(5,minmax(70px,1fr));column-gap:20px;align-items:center;padding:7px 0;border-top:1px solid var(--hair);font-size:13.5px;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.g2-sh{font-size:13px;color:var(--ink-3);padding-bottom:6px}
.g2-sr .r{text-align:right;white-space:nowrap}
.g2-sr .is-none{color:var(--ink-3)}
.g2-sr b.g2-ss{font:700 14.5px/1.2 var(--display);color:var(--ink)}
.g2-sz{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--ink)}
.g2-sz i{flex:none;width:10px;height:10px;border-radius:3px}
.g2-tot{margin-top:6px;padding:13px 10px 6px;border-top:2px solid var(--ink)}
.g2-tot .g2-bn{font:800 17px/1 var(--display);letter-spacing:-.025em}
.g2-tm{display:flex;flex-wrap:wrap;gap:3px 20px;font-size:13px;line-height:1.2;color:var(--ink-2)}
.g2-tm span{white-space:nowrap}
.g2-tm b{margin-left:6px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.g2-seg .seg-b{height:30px}
.g2-list>.slot>.sk,.g2-list>.slot>.st{margin:4px 8px 10px}

/* ---------- the register: the day at the left (it stays in view), the indents of the chosen part at the right ---------- */
.g2-p1{background:var(--navy)}.g2-p2{background:var(--crit)}.g2-p3{background:#1baf7a}.g2-p4{background:#8d96a3}
.g2-reg2{display:grid;grid-template-columns:minmax(320px,.5fr) minmax(0,1fr);gap:16px;align-items:start}
.g2-side{position:sticky;top:84px;min-width:0;border-radius:24px;background:var(--b-godown);box-shadow:0 0 0 1px var(--hair),0 22px 34px -28px rgba(23,33,46,.5);overflow:hidden}
.g2-rg-day{padding:8px 22px 0}
.g2-rf{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:12px 0;border-bottom:1px solid rgba(23,33,46,.09)}
.g2-rfl{display:flex;flex-direction:column;min-width:0;font:600 14.5px/1.2 var(--body)}
.g2-rfl small{margin-top:3px;font-size:12.5px;font-weight:400;color:var(--ink-2)}
.g2-rf>b{font:800 27px/1 var(--display);letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}
.g2-rg-pend{padding:18px 22px 14px}
.g2-rg-ph{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px}
.g2-rg-ph .g2-note{margin:0;font-size:14px}
.g2-parts{display:grid;gap:4px;margin:14px -10px 0}
.g2-part{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 16px;grid-template-areas:"nm v ic" "sm sm ic" "tr tr tr";align-items:center;column-gap:10px;padding:11px 10px 12px 12px;border:0;border-radius:15px;background:transparent;text-align:left;color:inherit;cursor:pointer;transition:background .15s,box-shadow .15s}
.g2-part[hidden]{display:none}
.g2-part:hover{background:rgba(255,255,255,.55)}
.g2-part[aria-pressed=true]{background:#fff;box-shadow:0 0 0 1.5px var(--ink),0 14px 22px -18px rgba(23,33,46,.6)}
.g2-pt{grid-area:nm;display:flex;align-items:center;gap:8px;min-width:0;font:600 14px/1.2 var(--body)}
.g2-pt i{flex:none;width:10px;height:10px;border-radius:3px}
.g2-part>b{grid-area:v;font:800 22px/1 var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.g2-part>small{grid-area:sm;margin-top:3px;padding-left:18px;font-size:12.5px;line-height:1.2;color:var(--ink-2)}
.g2-part>.ic{grid-area:ic;color:var(--ink-3)}
.g2-part[aria-pressed=true]>.ic{color:var(--ink)}
.g2-ptr{grid-area:tr;position:relative;height:8px;margin-top:9px;border-radius:4px;background:rgba(23,33,46,.08)}
.g2-ptr i{position:absolute;top:0;bottom:0;left:var(--l,0%);width:var(--w,0%);min-width:4px;border-radius:4px;transform-origin:0 50%;transform:scaleX(var(--on,1));transition:transform .9s cubic-bezier(.2,.7,.2,1) .2s,left .8s cubic-bezier(.2,.7,.2,1),width .8s cubic-bezier(.2,.7,.2,1)}
.g2-ptr i[hidden]{display:none}
.g2-lt{display:flex;align-items:center;gap:9px}
.g2-ldot{flex:none;width:12px;height:12px;border-radius:4px}
.g2-side>.slot>.sk,.g2-side>.slot>.st,.g2-side>.slot>.empty{margin:18px 22px}
/* the indents */
.g2-ilist{container:g2i/inline-size;padding:16px 14px 10px;min-width:0}
/* (the indent number's column takes the factory's 13 digits; the depot, the products and the bar gave up the room) */
.g2-icols{display:grid;grid-template-columns:minmax(120px,1.5fr) 118px 84px minmax(104px,.9fr) 60px minmax(44px,.9fr) 60px 18px;column-gap:16px;align-items:center}
.g2-ich{padding:0 10px 7px;font-size:13px;line-height:1.2;color:var(--ink-3)}
.g2-ich .r{text-align:right}
.g2-ich[hidden]{display:none}
.g2-i{position:relative;border-top:1px solid var(--hair);cursor:pointer}
.g2-ih{min-height:44px;padding:6px 10px;border-radius:10px}
.g2-i:hover>.g2-ih{background:rgba(185,131,62,.09)}
.g2-idep{min-width:0;font:600 14.5px/1.25 var(--body);color:var(--ink)}
.g2-iv{font-size:14px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink-2)}
.g2-iv .badge{height:22px}
.g2-ipc{text-align:right}
.g2-ipw{display:none}
.g2-ibar{display:block;height:8px;min-width:0;border-radius:4px;background:rgba(23,33,46,.06)}
.g2-ibar i{display:block;height:100%;width:calc(var(--w,0)*1%*var(--on,1));min-width:3px;border-radius:4px;transition:width 1s cubic-bezier(.2,.7,.2,1)}
.g2-ics{justify-self:end;font:700 15.5px/1.15 var(--display);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}
.g2-ih>.ic{justify-self:end;color:var(--ink-3);transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.g2-i.is-open>.g2-ih>.ic{transform:rotate(180deg);color:var(--ink)}
.g2-i.is-open{z-index:1;margin:5px 0;border-top-color:transparent;border-radius:16px;background:var(--card);box-shadow:0 0 0 1px var(--hair),0 18px 30px -26px rgba(23,33,46,.55)}
.g2-i.is-open+.g2-i{border-top-color:transparent}
.g2-ip{padding:0 10px 8px}
.g2-ip[hidden]{display:none}
.g2-ipr{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--hair);font-size:13.5px;line-height:1.25}
.g2-ipn{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-width:0}
.g2-ipn b{font:500 13.5px/1.25 var(--body);color:var(--ink)}
.g2-ipq{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
@container g2i (max-width:680px){
  .g2-ich{display:none}
  /* a row as a card: the depot and its cases, the bar, then the indent's details side by side for as long as they fit
     (an indent number has 13 digits, a date of another year carries its year: what does not fit goes to the next line) */
  .g2-ih.g2-icols{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
  .g2-ih{padding:12px 4px 11px}
  .g2-i.is-open>.g2-ih{padding-left:12px;padding-right:12px}
  .g2-ip{padding:0 12px 8px}
  .g2-idep{order:0;flex:1 1 40%;min-width:0;font-size:15.5px}
  .g2-ics{order:1;flex:none;margin-left:auto}
  .g2-ics::after{content:" cases";font:400 13px/1 var(--body);letter-spacing:0;color:var(--ink-3)}
  .g2-ibar{order:3;flex:1 1 100%}
  .g2-ino{order:4}.g2-idt{order:5}.g2-iwh{order:6}
  .g2-iv{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex:1 1 28%;min-width:max-content;color:var(--ink)}
  .g2-iv::before{content:attr(data-l);font:400 12.5px/1.2 var(--body);color:var(--ink-3)}
  .g2-iv.g2-ipc{order:7;flex:1 1 100%;display:block;font-size:13px;text-align:left;color:var(--ink-2)}
  .g2-iv.g2-ipc::before{content:none}
  .g2-ipw{display:inline}
  .g2-ih>.ic{order:2;flex:none}
}

/* ---------- narrower screens ---------- */
@media (max-width:1180px){
  .g2-hero{grid-template-columns:minmax(270px,.62fr) minmax(0,1fr)}
  .g2-wf{--lw:176px;--nw:104px}
  .g2-main.is-span,.g2-main.is-all{grid-template-columns:minmax(0,1fr);row-gap:16px}
}
@media (max-width:760px){
  .g2-hero{grid-template-columns:minmax(0,1fr)}
  .g2-rail{padding:16px 16px 10px}
  .g2-main{padding:16px 16px 16px}
  .g2-big{font-size:42px}
  .g2-w{grid-template-columns:minmax(0,1fr) auto;padding:11px 0}
  .g2-w>b{padding-right:0;font-size:23px}
  .g2-wt{grid-column:1/-1;margin-top:9px;height:20px}
  .g2-wk{grid-column:1/-1}
  .g2-tk{display:none}
  .g2-wf{padding-bottom:0}
  .g2-main.is-day .g2-figs{grid-template-columns:minmax(0,1fr);row-gap:16px}
  .g2-fig .stat-v{font-size:34px}
  .g2-tools{width:100%}
  .g2-seg{display:flex;width:100%}
  .g2-seg .seg-b{flex:1 1 0;height:38px;min-width:0;padding:0 6px}
  .cb.gd-cb{height:40px;padding:0 14px 0 12px;border-radius:20px}
}
/* a narrow list: a brand is a small block (name · bar · the two figures), a size inside it too */
@container g2l (max-width:760px){
  .g2-ch{display:block;padding:0 4px 8px}
  .g2-ch>span{display:none}
  .g2-cols{grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:8px}
  .g2-bh{grid-template-areas:"nm ic" "bar bar" "st ou";padding:11px 4px 12px}
  .g2-bn{grid-area:nm;font-size:15.5px}
  .g2-bh>.ic{grid-area:ic}
  .g2-barw{grid-area:bar}
  .g2-v{grid-area:st;justify-self:start}
  .g2-v.g2-vo{grid-area:ou;justify-self:end}
  .g2-v::before{content:attr(data-l) " ";font:400 13px/1 var(--body);letter-spacing:0;color:var(--ink-3)}
  .g2-b.is-open>.g2-bh{padding-left:12px;padding-right:12px}
  .g2-bd{padding:0 12px 8px}
  .g2-sh{display:none}
  .g2-sr{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"sz sz st st";column-gap:10px;row-gap:7px;padding:10px 0}
  .g2-sr>.g2-sz{grid-area:sz}
  .g2-sr>b.g2-ss{grid-area:st;justify-self:end}
  .g2-sr>b.g2-ss::after{content:" stock";font:400 13px/1 var(--body);color:var(--ink-3)}
  .g2-sr>span.r{display:flex;flex-direction:column;gap:1px;text-align:left;color:var(--ink)}
  .g2-sr>span.r.is-none{color:var(--ink-3)}
  .g2-sr>span.r::before{content:attr(data-l);font:400 12.5px/1.2 var(--body);color:var(--ink-3)}
  .g2-tot{grid-template-areas:"nm nm" "tm tm" "st ou";padding:13px 4px 8px}
  .g2-tot>.g2-tm{grid-area:tm}
  .g2-tot>span:last-child{display:none}
}
@media (max-width:640px){
  .g2-lh{align-items:stretch}
}

/* the whole stock has no "Dispatched" figure: its column goes, the arrow keeps its place */
.g2-list.is-all .g2-cols{grid-template-columns:minmax(190px,1.05fr) minmax(160px,2.1fr) 104px 18px}
.g2-list.is-all .g2-vo,.g2-list.is-all .g2-ch>span:nth-child(4){display:none}
/* today: the three rows of the sum share the height of the card */
.g2-main.is-today{display:flex;flex-direction:column}
.g2-main.is-today>.g2-s-sum{flex:1 1 auto;display:flex;flex-direction:column}
.g2-main.is-today .g2-wf{flex:1 1 auto;display:flex;flex-direction:column}
.g2-main.is-today .g2-w{flex:1 1 auto}
/* one past day: the two parts under each other, sharing the height */
.g2-main.is-day{display:flex;flex-direction:column}
.g2-main.is-day>.g2-s-figs{flex:1 1 auto;display:flex;flex-direction:column}
.g2-main.is-day .g2-figs{flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1fr);align-content:space-evenly;row-gap:14px}
.g2-main.is-day .g2-figs>*+*{padding-top:16px;border-top:1px solid var(--hair)}
.g2-main.is-day .g2-fig{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:14px}
.g2-main.is-day .g2-fig .stat-l{grid-column:1/-1}
.g2-main.is-day .g2-fig .stat-n{margin-top:0}
.g2-main.is-day .g2-spb{height:22px}
/* several days: the line is as tall as the card allows */
.g2-chart,.g2-chartbox{--chart-h:192px}
@container g2l (max-width:760px){
  .g2-list.is-all .g2-cols{grid-template-columns:minmax(0,1fr) auto}
}
@media (max-width:1180px){ .g2-chart,.g2-chartbox{--chart-h:160px} }

/* the register on narrower screens: the day on top, the indents under it */
@media (max-width:900px){
  .g2-reg2{grid-template-columns:minmax(0,1fr)}
  .g2-side{position:relative;top:auto}
}
@media (max-width:760px){
  .g2-rg-day{padding:6px 16px 0}
  .g2-rg-pend{padding:16px 16px 12px}
  .g2-parts{margin:12px -8px 0}
}
/* today, when the day's sum cannot be drawn: today's packing stands under the notice */
.g2-main.is-today>.g2-sp{margin-top:14px;padding-top:14px;border-top:1px solid var(--hair)}
