/* pages/inventory.css — the prototype's website-redesign/p-inventory.css, every rule under .pg-inventory (all pages' styles are loaded
   at once). Scoped by scripts/scope-css.js — run it again after editing. */
/* Inventory & rate cards — this page's own product screens (prefix iv-). Red only for primary actions. */

/* ---- hero ---- */
:where(.site).pg-inventory #iv-hero h1 { max-width: 1040px; }
/* the cards live inside .fh-win, in the window's own coordinates, so they scale and pan with it */
:where(.site).pg-inventory .iv-stage .fh-win { position: relative; z-index: 2; }
:where(.site).pg-inventory .iv-f { position: absolute; z-index: 4; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .35s ease, transform .5s cubic-bezier(.2,1.1,.3,1); pointer-events: none; }
/* the scanner opens under "Receive stock" (top right), clear of the Phones tab and the IMEI rows */
:where(.site).pg-inventory .iv-scan { right: -46px; top: 146px; transform-origin: 80% 0; }
:where(.site).pg-inventory .iv-line { left: -86px; top: 384px; }
:where(.site).pg-inventory .iv-stage.k1 .iv-scan, :where(.site).pg-inventory .iv-stage.k2 .iv-line { opacity: 1; transform: none; }
:where(.site).pg-inventory .iv-stage.k3 .iv-scan { opacity: 0; transform: translateY(-12px) scale(.97); }
/* the payoff, inside the window: the tab count, the model count and the low-stock marks */
:where(.site).pg-inventory .iv-tab .iv-tot { display: inline-block; min-width: 16px; transition: color .3s ease; }
:where(.site).pg-inventory .k3 .iv-tab .iv-tot { color: var(--u-ink); }
:where(.site).pg-inventory .iv-ml { margin-left: auto; margin-right: 8px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--u-amber); background: var(--u-amber-soft); padding: 2px 6px; border-radius: 999px; opacity: 0; transform: scale(.85); transition: opacity .3s ease, transform .4s cubic-bezier(.2,1.4,.3,1); }
:where(.site).pg-inventory .k4 .iv-ml { opacity: 1; transform: none; }
:where(.site).pg-inventory .k4 .iv-m.on em { color: var(--u-amber); }
:where(.site).pg-inventory .k4 .iv-cnt .big-n { color: var(--u-amber); }
:where(.site).pg-inventory .iv-fc { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 24px 50px -20px rgba(28,28,30,.38); }
:where(.site).pg-inventory .iv-scan .iv-fc { width: 280px; }
:where(.site).pg-inventory .iv-line .iv-fc { width: 296px; }
:where(.site).pg-inventory .iv-mode { white-space: nowrap; display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(0,0,0,.05); font-size: 11px; }
:where(.site).pg-inventory .iv-mode span { padding: 3px 8px; border-radius: 6px; }
:where(.site).pg-inventory .iv-mode span.on { background: #fff; color: var(--u-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
:where(.site).pg-inventory .iv-sbox { position: relative; margin-top: 12px; height: 70px; border-radius: 10px; background: var(--u-bg); display: grid; place-items: center; overflow: hidden; }
:where(.site).pg-inventory .iv-bc { fill: var(--u-ink); }
:where(.site).pg-inventory .iv-laser { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; border-radius: 1px; background: var(--u-blue); box-shadow: 0 0 10px 2px rgba(61,107,201,.45); }
:where(.site).pg-inventory .iv-sread { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; }
:where(.site).pg-inventory .iv-sm { margin-top: 4px; font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-lbtn { margin-top: 12px; position: relative; height: 34px; }
:where(.site).pg-inventory .iv-lbtn > * { position: absolute; left: 0; top: 0; transition: opacity .3s ease, transform .4s cubic-bezier(.2,1.1,.3,1); }
:where(.site).pg-inventory .iv-lbtn .ub { width: 100%; justify-content: center; }
:where(.site).pg-inventory .iv-lbtn .chip { height: 34px; width: 100%; justify-content: center; border-radius: 10px; font-size: 12.5px; opacity: 0; transform: scale(.96); }
:where(.site).pg-inventory .iv-stage.k3 .iv-lbtn .ub { opacity: 0; }
:where(.site).pg-inventory .iv-stage.k3 .iv-lbtn .chip { opacity: 1; transform: none; }
:where(.site).pg-inventory .u .chip svg { margin-left: -1px; }

/* ---- the inventory window ---- */
:where(.site).pg-inventory .iv-main { gap: 12px; }
:where(.site).pg-inventory .iv-main .pg-h .ub svg { margin-left: -2px; }
:where(.site).pg-inventory .seg2u em { font-style: normal; }
:where(.site).pg-inventory .iv-grid { display: grid; grid-template-columns: 196px 1fr 218px; gap: 12px; align-items: start; }
:where(.site).pg-inventory .iv-ch { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; font-size: 13px; font-weight: 600; }
:where(.site).pg-inventory .iv-ch small { font-size: 11.5px; font-weight: 500; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-models { padding: 2px 4px 6px; }
:where(.site).pg-inventory .iv-m { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; }
:where(.site).pg-inventory .iv-m b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-m small { display: block; font-size: 11px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-m em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
:where(.site).pg-inventory .iv-m.on { background: var(--u-bg); box-shadow: inset 2px 0 0 var(--u-ink); }
:where(.site).pg-inventory .iv-mf { padding: 8px 10px 4px; font-size: 11.5px; color: var(--u-ink-3); border-top: 1px solid var(--u-line-2); margin-top: 4px; }
:where(.site).pg-inventory .iv-panel { padding: 2px 4px 6px; overflow: hidden; }
:where(.site).pg-inventory .iv-ph { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px; }
:where(.site).pg-inventory .iv-ph > div { margin-right: auto; }
:where(.site).pg-inventory .iv-ph b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
:where(.site).pg-inventory .iv-ph small { font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-cnt { display: flex; align-items: baseline; gap: 6px; }
:where(.site).pg-inventory .iv-cnt .big-n { font-size: 30px; display: inline-block; min-width: 18px; text-align: right; }
:where(.site).pg-inventory .iv-cnt small { font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-low { opacity: 0; transform: scale(.9); transition: opacity .3s ease, transform .4s cubic-bezier(.2,1.4,.3,1); }
:where(.site).pg-inventory .k4 .iv-low { opacity: 1; transform: none; }
:where(.site).pg-inventory .iv-r { display: grid; grid-template-columns: 158px 64px 60px 1fr; align-items: center; gap: 10px; padding: 0 10px; height: 40px; font-size: 12.5px; }
:where(.site).pg-inventory .iv-r .mut { color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-th { height: 28px; font-size: 11.5px; font-weight: 600; color: var(--u-ink-3); border-top: 1px solid var(--u-line-2); }
:where(.site).pg-inventory .iv-tb { position: relative; transition: height .5s ease; }
:where(.site).pg-inventory .iv-tb .iv-r, :where(.site).pg-inventory .iv-sh { position: absolute; left: 0; right: 0; transition: top .6s cubic-bezier(.3,.9,.3,1), background-color .35s ease, box-shadow .35s ease; }
:where(.site).pg-inventory .iv-tb .iv-r { border-top: 1px solid var(--u-line-2); border-radius: 8px; }
:where(.site).pg-inventory .iv-sh { height: 30px; padding: 12px 10px 0; line-height: 14px; font-size: 11.5px; font-weight: 600; color: var(--u-ink-3); border-top: 1px solid var(--u-line-2); }
:where(.site).pg-inventory .iv-sh[data-k="h-in"] { border-top: 0; }
:where(.site).pg-inventory .iv-im { font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--u-ink-3); white-space: nowrap; }
:where(.site).pg-inventory .iv-im b { color: var(--u-ink); font-weight: 700; }
:where(.site).pg-inventory .iv-st { position: relative; height: 22px; }
:where(.site).pg-inventory .iv-st .chip { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .3s ease, transform .4s ease; }
:where(.site).pg-inventory .iv-st .s-act { opacity: 0; transform: translateX(-6px); }
:where(.site).pg-inventory .k3 [data-k="4417"] .iv-st .s-in { opacity: 0; }
:where(.site).pg-inventory .k3 .iv-st .s-act { opacity: 1; transform: none; background: var(--u-ok-soft); color: var(--u-ok); }
:where(.site).pg-inventory .k1 .iv-tb .iv-r[data-k="4417"] { background: #EEF3FC; box-shadow: inset 0 0 0 1.5px var(--u-blue); border-top-color: transparent; z-index: 2; }
:where(.site).pg-inventory .k3 .iv-tb .iv-r[data-k="4417"] { background: linear-gradient(90deg, rgba(23,112,61,.07), transparent 80%); box-shadow: none; }
:where(.site).pg-inventory .iv-wish { padding: 2px 4px 10px; }
:where(.site).pg-inventory .iv-ws { display: block; padding: 0 12px 4px; font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-w { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-top: 1px solid var(--u-line-2); font-size: 12.5px; }
:where(.site).pg-inventory .iv-w b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-w small { display: block; font-size: 11px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-wm { margin: 6px 6px 0; padding: 9px 10px; border-radius: 10px; background: var(--u-bg); font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-wm b { color: var(--u-ink); font-weight: 600; }
:where(.site).pg-inventory .iv-wb { margin: 8px 6px 0; width: calc(100% - 12px); justify-content: center; }

/* ---- how it works: the frame ----
   s0, s3: a card over the dimmed window · s1, s4: a full window of their own · s2: the stock list itself, after activation */
:where(.site).pg-inventory .iv-how .hf-base { left: 34px; top: 34px; }
:where(.site).pg-inventory .iv-how .hf .b-inv { filter: blur(3px) saturate(.6); opacity: .5; }
:where(.site).pg-inventory .iv-how .hf.s2 .b-inv { filter: none; opacity: 1; }
:where(.site).pg-inventory .iv-how .hf.s1 .b-inv, :where(.site).pg-inventory .iv-how .hf.s4 .b-inv { opacity: 0; filter: none; }
:where(.site).pg-inventory .iv-how .hf-ov.o0, :where(.site).pg-inventory .iv-how .hf-ov.o3 { left: 0; top: 0; right: 0; bottom: 0; margin: 0; display: grid; place-items: center; }
:where(.site).pg-inventory .iv-how .hf-ov.iv-fw { left: 34px; top: 34px; right: auto; bottom: auto; margin: 0; transform: translateY(16px); }
:where(.site).pg-inventory .iv-how .hf-ov.iv-fw.on { transform: none; }
:where(.site).pg-inventory .iv-how .hf-ov.iv-fw .sc { width: 1100px; transform: scale(.7); transform-origin: 0 0; }
/* transfers */
:where(.site).pg-inventory .iv-xg { display: grid; grid-template-columns: 1fr 290px; gap: 12px; align-items: start; }
:where(.site).pg-inventory .iv-xl { padding: 2px 4px 6px; }
:where(.site).pg-inventory .iv-xr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-top: 1px solid var(--u-line-2); border-radius: 10px; font-size: 12.5px; }
:where(.site).pg-inventory .iv-xr b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-xr small { font-size: 11px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-xr .chip { flex: none; }
:where(.site).pg-inventory .iv-xr.on { background: var(--u-bg); box-shadow: inset 2px 0 0 var(--u-ink); border-top-color: transparent; }
:where(.site).pg-inventory .iv-xd { padding: 2px 4px 10px; }
:where(.site).pg-inventory .iv-xs { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; margin: 2px 8px 10px; }
:where(.site).pg-inventory .iv-xb { padding: 12px 14px; border-radius: 12px; background: var(--u-bg); font-size: 13px; }
:where(.site).pg-inventory .iv-xb small { display: block; font-size: 11px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-xb b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-top: 1px; }
:where(.site).pg-inventory .iv-xb span { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--u-ok); }
:where(.site).pg-inventory .iv-xb span i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--u-ok); color: #fff; flex: none; }
:where(.site).pg-inventory .iv-xb.wait { box-shadow: inset 0 0 0 1.5px rgba(143,82,8,.3); background: #FFFBF3; }
:where(.site).pg-inventory .iv-xb.wait span { color: var(--u-amber); }
:where(.site).pg-inventory .iv-xb.wait span i { background: var(--u-amber-soft); box-shadow: inset 0 0 0 2px var(--u-amber); }
:where(.site).pg-inventory .iv-xa { font-style: normal; align-self: center; text-align: center; color: var(--u-ink-3); font-size: 18px; }
:where(.site).pg-inventory .iv-xi { grid-template-columns: 1fr 170px 70px; border-top: 1px solid var(--u-line-2); }
:where(.site).pg-inventory .iv-xi b { font-weight: 600; }
:where(.site).pg-inventory .iv-xf { display: flex; align-items: center; gap: 12px; margin: 8px 6px 0; padding: 10px 12px; border-radius: 10px; background: var(--u-bg); font-size: 12px; color: var(--u-ink-3); line-height: 1.4; }
:where(.site).pg-inventory .iv-xf .ub { flex: none; }
/* rate cards */
:where(.site).pg-inventory .iv-rg { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: start; }
:where(.site).pg-inventory .iv-rc { display: flex; flex-direction: column; gap: 12px; }
:where(.site).pg-inventory .iv-rg .card { padding: 2px 4px 8px; }
:where(.site).pg-inventory .iv-rp { padding: 8px 10px; border-radius: 10px; }
:where(.site).pg-inventory .iv-rp:first-of-type { margin-top: 0; }
:where(.site).pg-inventory .iv-rp.on { background: var(--u-bg); border-top-color: transparent; }
:where(.site).pg-inventory .iv-rpr .iv-pr { padding: 10px 10px; }
:where(.site).pg-inventory .iv-rpr .iv-rn { margin: 8px 6px 0; }
:where(.site).pg-inventory .iv-ovc { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 30px 60px -24px rgba(28,28,30,.35); }
:where(.site).pg-inventory .iv-rh { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 6px; font-size: 13px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-rr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-inventory .iv-rn { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: var(--u-bg); font-size: 12px; color: var(--u-ink-3); line-height: 1.4; }
:where(.site).pg-inventory .iv-mt { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; margin: 10px 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--u-ok-soft); font-size: 13px; }
:where(.site).pg-inventory .iv-mt b { color: var(--u-ok); font-weight: 700; }
:where(.site).pg-inventory .iv-mt span:not(.ub) { color: var(--u-ink-2); grid-column: 1; }
:where(.site).pg-inventory .iv-mt .ub { grid-column: 2; grid-row: 1 / span 2; }
:where(.site).pg-inventory .iv-fu { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-pdf { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-inventory .iv-pdf:first-of-type { margin-top: 8px; }
:where(.site).pg-inventory .iv-pdf b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-pdf small { font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-pdf > :last-child { margin-left: auto; }
:where(.site).pg-inventory .iv-pdf .ub { height: 28px; padding: 0 10px; font-size: 12px; }
:where(.site).pg-inventory .iv-pi { width: 30px; height: 34px; border-radius: 7px; background: var(--u-bg); color: var(--u-ink-2); display: grid; place-items: center; flex: none; }
:where(.site).pg-inventory .iv-mut { font-size: 11.5px; color: var(--u-ink-3); font-weight: 600; }
:where(.site).pg-inventory .iv-pr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-inventory .iv-pr b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-pr small { font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-end { flex: none; font-size: 11.5px; font-weight: 600; color: var(--u-ink-2); padding: 3px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #D1D1D6; white-space: nowrap; }
:where(.site).pg-inventory .iv-end.soon { box-shadow: none; background: var(--u-amber-soft); color: var(--u-amber); }

/* ---- every detail: the pictures ---- */
:where(.site).pg-inventory .iv-hist { margin-top: 10px; display: flex; flex-direction: column; }
:where(.site).pg-inventory .iv-hist > div { display: flex; gap: 12px; padding: 7px 0; font-size: 13px; position: relative; }
:where(.site).pg-inventory .iv-hist > div:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: -8px; width: 2px; background: #E4E4EA; }
:where(.site).pg-inventory .iv-hist i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px #C4C4CA; flex: none; margin-top: 3px; }
:where(.site).pg-inventory .iv-hist .on i { box-shadow: inset 0 0 0 6px var(--u-ok); }
:where(.site).pg-inventory .iv-hist b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-hist small { font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-ac { display: grid; grid-template-columns: 1fr 78px 70px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-inventory .iv-ac > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
:where(.site).pg-inventory .iv-ac > span:nth-child(2) { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
:where(.site).pg-inventory .iv-ach { margin-top: 8px; border-top: 0; font-size: 11.5px; font-weight: 600; color: var(--u-ink-3); padding-bottom: 4px; }
:where(.site).pg-inventory .iv-ac.on { font-weight: 600; }
:where(.site).pg-inventory .iv-avg { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--u-bg); font-size: 12px; color: var(--u-ink-3); line-height: 1.5; }
:where(.site).pg-inventory .iv-avg b { color: var(--u-ink); font-weight: 600; }
:where(.site).pg-inventory .iv-mv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-inventory .iv-mv:first-of-type { margin-top: 8px; }
:where(.site).pg-inventory .iv-mv b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-mv small { font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-mv .chip { flex: none; }
:where(.site).pg-inventory .iv-wl { display: grid; grid-template-columns: 1fr 52px 52px 112px; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-inventory .iv-wl > span:nth-child(2), :where(.site).pg-inventory .iv-wl > span:nth-child(3) { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
:where(.site).pg-inventory .iv-wl > span:last-child { text-align: right; }
:where(.site).pg-inventory .iv-wl b { display: block; font-weight: 600; }
:where(.site).pg-inventory .iv-wl small { font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-wl .ub { height: 28px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
:where(.site).pg-inventory .iv-wlh { margin-top: 8px; border-top: 0; font-size: 11.5px; font-weight: 600; color: var(--u-ink-3); padding-bottom: 4px; }
:where(.site).pg-inventory .iv-wlh > span { font-weight: 600 !important; }
:where(.site).pg-inventory .iv-tl { margin-top: 12px; position: relative; padding-bottom: 6px; }
:where(.site).pg-inventory .iv-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--u-ink-3); }
:where(.site).pg-inventory .iv-rail { position: relative; margin-top: 8px; height: 8px; border-radius: 4px; background: #ECECF0; }
:where(.site).pg-inventory .iv-pb { position: absolute; left: 0; width: 65%; top: 0; bottom: 0; border-radius: 4px 0 0 4px; background: #B9C8EA; }
:where(.site).pg-inventory .iv-mk { position: absolute; top: -5px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--u-ink); }
:where(.site).pg-inventory .iv-mk.iv-pe { background: var(--u-amber); width: 2px; }
:where(.site).pg-inventory .iv-tlab { position: relative; height: 36px; margin-top: 6px; font-size: 11.5px; font-weight: 600; }
:where(.site).pg-inventory .iv-tlab span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; text-align: center; }
:where(.site).pg-inventory .iv-tlab span.pe { color: var(--u-amber); }
:where(.site).pg-inventory .iv-tlab small { display: block; font-weight: 500; color: var(--u-ink-3); }

/* (the port: a chip in a card's head never wraps; the timeline's two labels sit either side of their markers on
   every screen, so longer words — French — never run into each other) */
:where(.site).pg-inventory .iv-ch .chip { white-space: nowrap; flex: none; }
:where(.site).pg-inventory .iv-tlab span { transform: translateX(calc(-100% + 1px)); text-align: right; padding-right: 6px; }
:where(.site).pg-inventory .iv-tlab span.pe { transform: translateX(-1px); text-align: left; padding: 0 0 0 6px; }

/* ---- numbers band: four equal columns ---- */
:where(.site).pg-inventory .iv-nums .nums-g { grid-template-columns: repeat(4, 1fr); }

/* ======================== narrow screens ======================== */
@media (max-width: 900px) {
  /* the window is at half size; its cards are at 0.7 (1.4 × 0.5), inside the window and inside the stage */
  :where(.site).pg-inventory .iv-stage { height: 448px; }
  :where(.site).pg-inventory .iv-f .iv-fc { zoom: 1.4; }
  /* below the scanned row (…4417 sits at y 341–381), and below the row it moves to (y 491–531) */
  :where(.site).pg-inventory .iv-scan { right: auto; left: 330px; top: 392px; }
  :where(.site).pg-inventory .iv-line { left: 20px; top: 548px; }
  /* on a phone the line card only appears once the line is opened */
  :where(.site).pg-inventory .iv-stage.k2:not(.k3) .iv-line { opacity: 0; transform: translateY(18px) scale(.97); }
  :where(.site).pg-inventory .iv-how .hf-base { left: 14px; top: 14px; }
  :where(.site).pg-inventory .iv-how .hf-ov.o0 > *, :where(.site).pg-inventory .iv-how .hf-ov.o3 > * { zoom: .68; }
  :where(.site).pg-inventory .iv-how .hf-ov.iv-fw, :where(.site).pg-inventory .iv-how .hf-ov.iv-fw > * { zoom: 1; }
  :where(.site).pg-inventory .iv-how .hf-ov.iv-fw { left: 14px; top: 14px; margin: 0; }
  :where(.site).pg-inventory .iv-how .hf-ov.iv-fw .sc { transform: scale(.44); }
  :where(.site).pg-inventory .iv-nums .nums-g { grid-template-columns: 1fr 1fr; }
  :where(.site).pg-inventory .iv-wl { grid-template-columns: 1fr 50px 50px 96px; }
  /* the two timeline labels sit either side of their markers so they never touch */
  :where(.site).pg-inventory .iv-tlab span { transform: translateX(calc(-100% + 1px)); text-align: right; padding-right: 6px; }
  :where(.site).pg-inventory .iv-tlab span.pe { transform: translateX(-1px); text-align: left; padding: 0 0 0 6px; }
}
