/* sja-production-cart.css — Catat Hasil Produksi (SJA) as a cart list + Lapor Rusak. Logic: sja-production-cart.js. Every class starts with spc-.
 * Phone first: one column of rows, big code and numbers, 44px+ targets, the footer sticks to the bottom of the real scroller (.content / the viewport). */
.spc{container:spc/inline-size;max-width:900px;margin:0 auto;padding:.6rem .7rem 0;color:var(--dark,#101828);font-size:1rem}
.spc *,.spc *::before,.spc *::after{box-sizing:border-box}
.spc [hidden]{display:none!important}
.spc-h{margin:0 0 .3rem;font-size:1.05rem;font-weight:800}
.spc-btn{min-height:44px;min-width:44px;padding:.35rem .9rem;border:1.5px solid var(--border-input,#D0D5DD);border-radius:11px;background:#fff;color:var(--dark,#101828);font:inherit;font-size:.95rem;font-weight:700;cursor:pointer}
.spc-btn:disabled{opacity:.5;cursor:default}
.spc-date{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;padding:.55rem .7rem;margin-bottom:.6rem;background:#fff;border:1px solid var(--border,#E4E7EC);border-radius:12px}
.spc-date-t{flex:1 1 12rem;font-size:1.05rem;line-height:1.3}
.spc-date-l{color:var(--muted,#667085)}
.spc-date-ed{display:flex;gap:.4rem;flex:1 0 100%}
.spc-dateinput{flex:1;min-height:48px;padding:.3rem .6rem;border:1.5px solid var(--border-input,#D0D5DD);border-radius:10px;font:inherit;font-size:1rem}
.spc-warn-day{flex:1 0 100%;padding:.3rem .6rem;border-radius:8px;background:#FFFAEB;border:1px solid #FEDF89;color:#B54708;font-weight:700;font-size:.9rem}
.spc-done{margin-bottom:.7rem;padding:.6rem .7rem;background:#fff;border:1px solid var(--border,#E4E7EC);border-radius:12px}
.spc-done-sum{display:block;margin-bottom:.3rem;font-size:.95rem;color:var(--ink2,#475467);font-variant-numeric:tabular-nums}
.spc-empty{padding:.5rem .2rem;color:var(--muted,#667085);text-align:center}
.spc-done-row{display:flex;align-items:center;gap:.5rem;padding:.4rem 0;border-top:1px solid #F1F5F9}
.spc-done-main{flex:1;min-width:0}
.spc-done-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .5rem}
.spc-done-qty{font-size:1.05rem;font-weight:800;font-variant-numeric:tabular-nums}
.spc-done-meta{display:flex;flex-wrap:wrap;gap:.2rem .35rem;margin-top:.1rem}
.spc-tag{padding:.05rem .45rem;border-radius:7px;background:#EEF2FF;color:var(--p,#4F46E5);font-size:.82rem;font-weight:700}
.spc-done-acts{display:flex;gap:.2rem;flex:none}
.spc-done-acts .tedit,.spc-done-acts .tdel{min-width:44px;min-height:44px}
.spc-more-btn{width:100%;margin-top:.3rem}
.spc-name{font-size:1.15rem;font-weight:800;line-height:1.25;color:var(--dark,#101828);overflow-wrap:anywhere}
.spc-code{flex:none;font-size:.8rem;font-weight:700;color:var(--muted,#667085)}
.spc-tools{margin:.2rem 0 .6rem}
.spc-q{width:100%;min-height:48px;padding:.4rem .75rem;border:1.5px solid var(--border-input,#D0D5DD);border-radius:10px;background:#fff;font:inherit;font-size:1rem}
.spc-gh{margin:.9rem 0 .4rem;padding:0 .1rem;font-size:.95rem;font-weight:800;color:var(--ink2,#475467);text-transform:none}
.spc-grp.is-short .spc-gh{color:#B42318}
.spc-row{margin:0 0 .5rem;padding:.6rem .7rem;background:#fff;border:1px solid var(--border,#E4E7EC);border-radius:12px}
.spc-grp.is-short .spc-row{border-left:5px solid var(--danger,#DC2626)}
.spc-row[data-filled="1"]{border-color:var(--p,#4F46E5);box-shadow:0 0 0 1px var(--p,#4F46E5) inset}
.spc-row.is-bad{border-color:var(--danger,#DC2626);box-shadow:0 0 0 1px var(--danger,#DC2626) inset}
.spc-row.is-flash{animation:spcflash 2.2s ease-out}
@keyframes spcflash{0%,60%{background:#FEF9C3}100%{background:#fff}}
.spc-hd{display:flex;flex-wrap:wrap;align-items:baseline;gap:.05rem .6rem;margin-bottom:.4rem}
.spc-need{margin-left:auto;padding:.05rem .5rem;border-radius:8px;background:#FEF3F2;color:#B42318;font-size:.85rem;font-weight:800}
.spc-in{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.5rem;align-items:end}
.spc-f{display:block;min-width:0}
.spc-fl{display:block;margin-bottom:.15rem;font-size:.82rem;font-weight:700;color:var(--ink2,#475467)}
.spc-fl small{font-weight:600;color:var(--muted,#667085)}
.spc-nobox{color:#B42318!important}
.spc-f input,.spc-f select{display:block;width:100%;min-height:48px;padding:.3rem .6rem;border:1.5px solid var(--border-input,#D0D5DD);border-radius:10px;background:#fff;font:inherit;font-size:1.25rem;font-weight:800;font-variant-numeric:tabular-nums}
.spc-f input[type=text],.spc-f select{font-size:1rem;font-weight:600}
.spc-chip{display:flex;align-items:center;gap:.4rem;min-height:48px;padding:.3rem .7rem;border:1.5px dashed var(--border-input,#D0D5DD);border-radius:10px;background:#fff;color:var(--ink2,#475467);font:inherit;font-size:.95rem;font-weight:700;cursor:pointer;text-align:left;min-width:0}
.spc-chip.is-set{border-style:solid;border-color:var(--p,#4F46E5);background:#EEF2FF;color:var(--p,#4F46E5)}
.spc-chip-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spc-ctn{margin:.35rem 0 0}
.spc-ctnw:empty{display:none}
.spc-ctnwarn{display:block;margin-top:.2rem;color:#B42318;font-weight:700;font-size:.9rem}
.spc-more{margin-top:.5rem;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));align-items:end}
.spc-row .spc-more:not([hidden]){display:grid}
.spc-rusak .spc-row .spc-more{display:none}
.spc-rusak .spc-row[data-filled="1"] .spc-more{display:grid}
.spc-note{grid-column:1/-1}
.spc-bad{margin:.4rem 0 0;padding:.4rem .6rem;border-radius:8px;background:#FEF2F2;color:#991B1B;font-weight:700}
.spc-ok{margin:0 0 .6rem;padding:.6rem .8rem;border-radius:10px;background:#ECFDF3;border-left:4px solid var(--ok,#059669);color:#067647;font-weight:700}
.spc-note-top{margin:0 0 .6rem;padding:.6rem .8rem;border-radius:10px;background:#FEF2F2;border-left:4px solid var(--danger,#DC2626);color:#991B1B;font-weight:600}
.spc-hint{margin:0 0 .6rem;color:var(--ink2,#475467);font-size:.95rem}
.spc-lock{margin:0 0 .6rem;padding:.7rem .8rem;border-radius:10px;background:#F8FAFC;border:1px solid var(--border,#E4E7EC)}
.spc-lock.is-uncertain{background:#FEF2F2;border-color:#FDA29B;color:#7A271A}
.spc-lock-list{margin:.4rem 0 .4rem 1.1rem}
.spc-lock-acts{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}
.spc-legacy{margin-bottom:.7rem}
.spc[data-state="saving"] .spc-list,.spc[data-state="uncertain"] .spc-list{opacity:.6}
/* footer: sticks to the bottom of the real scroller (.content), above the bottom nav */
.spc-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:.6rem;margin:.6rem -.7rem 0;padding:.6rem .7rem calc(.6rem + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--border,#E4E7EC);box-shadow:0 -4px 14px rgba(16,24,40,.08)}
.spc-sum{flex:1;min-width:0;font-size:1rem;line-height:1.3;font-variant-numeric:tabular-nums}
.spc-sum b{font-weight:900}
.spc-save{flex:none;min-height:52px;min-width:8.5rem;padding:.4rem 1.1rem;border:0;border-radius:12px;background:var(--p,#4F46E5);color:#fff;font:inherit;font-size:1.05rem;font-weight:800;cursor:pointer}
.spc-save:disabled{opacity:.45;cursor:default}
/* Lapor Rusak */
.spc-reasons{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.4rem}
.spc-reason{min-height:44px;padding:.3rem .8rem;border:1.5px solid var(--border-input,#D0D5DD);border-radius:22px;background:#fff;color:var(--dark,#101828);font:inherit;font-size:.92rem;font-weight:700;cursor:pointer}
.spc-reason.is-on{border-color:var(--danger,#DC2626);background:#FEF3F2;color:#B42318}
.spc-req{color:#B42318}
.spc-from{grid-column:1/-1}
.spc-note-r{grid-column:1/-1}
.spc-in-r{grid-template-columns:minmax(8.5rem,14rem)}
/* customer sheet */
.spc-sheet{display:block}
.spc-picks{display:grid;gap:.4rem;margin-top:.6rem;max-height:60vh;overflow:auto}
.spc-pick{display:flex;align-items:center;gap:.6rem;min-height:54px;padding:.4rem .8rem;border:1.5px solid var(--border-input,#D0D5DD);border-radius:12px;background:#fff;font:inherit;font-size:1.02rem;text-align:left;cursor:pointer}
.spc-pick b{flex:1;min-width:0;overflow-wrap:anywhere}
.spc-pick small{color:var(--muted,#667085)}
.spc-pick.is-on{border-color:var(--p,#4F46E5);background:#EEF2FF}
.spc-pick[hidden]{display:none}
/* cart row: ONE product = one compact row. Key line = code + name and the carton box (big); stock, KG, batch, customer, note are a notch smaller (>= .85rem). */
.spc-grp > .spc-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;grid-template-areas:"hd hd hd" "stock stock stock" "kg c exp" "more more more" "bad bad bad";gap:.2rem .5rem;align-items:center;padding:.4rem .6rem}
.spc-grp > .spc-row .spc-hd{grid-area:hd;margin:0}
.spc-grp > .spc-row .spc-stock{grid-area:stock;justify-self:start;text-align:left;font-size:.86rem;color:var(--ink2,#475467);font-variant-numeric:tabular-nums;white-space:nowrap}
.spc-stock .is-neg{color:#B42318;font-weight:800}
.spc-stock:empty{display:none}
.spc-grp > .spc-row .spc-kg{grid-area:kg}
.spc-grp > .spc-row .spc-c{grid-area:c}
.spc-grp > .spc-row .spc-exp{grid-area:exp}
.spc-grp > .spc-row .spc-more{grid-area:more;margin-top:.2rem}
.spc-grp > .spc-row .spc-bad{grid-area:bad;margin:0}
.spc-need{font-size:.86rem}
.spc-fw{position:relative;display:block}
.spc-fw input{padding-right:2.5rem}
.spc-sfx{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);font-style:normal;font-size:.86rem;font-weight:700;color:var(--muted,#667085);pointer-events:none}
.spc-kg input{font-size:1.05rem;font-weight:700}
.spc-c input{font-size:1.35rem;font-weight:900}
.spc-noctn{font-size:.86rem;font-weight:600;color:var(--muted,#667085)}
.spc-exp{min-height:44px;min-width:44px;padding:.2rem .5rem;border:0;border-radius:10px;background:transparent;color:var(--ink2,#475467);font:inherit;font-size:.9rem;font-weight:700;cursor:pointer;white-space:nowrap}
.spc-exp:hover{background:#F2F4F7}
@container spc (max-width:639px){.spc-xc{display:none}}
@container spc (min-width:640px){
  .spc-grp > .spc-row{grid-template-columns:minmax(0,2.4fr) minmax(0,1.3fr) 8.5rem 8.5rem auto;grid-template-areas:"hd stock kg c exp" "more more more more more" "bad bad bad bad bad";padding:.3rem .7rem;min-height:56px}
  .spc-grp > .spc-row .spc-stock{justify-self:start;text-align:left}
  .spc-hd{flex-wrap:nowrap}
  .spc-hd .spc-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* ═══ TABLET (>= 900 px, sja-production-cart.js tabletHTML): two columns. Colour roles: orange = PO work still to do / incomplete, green = filled / in the cart / saved,
 * blue = navigation and the main action, red = delete and "belum". The rest is black on white. Lists are BLOCK layout (cards never shrink); the only flex column is the
 * right column, whose scroller has min-height:0 and whose other parts are flex:none. ═══ */
.spct{max-width:none;margin:0;padding:0;container-type:normal;color:#111;font-size:1rem}
.spt-cols{display:grid;grid-template-columns:minmax(0,1fr) 400px;align-items:start}
.spt-left{min-width:0;padding:.7rem .8rem 1rem}
.spt-lhead{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.6rem}
.spt-q{flex:0 0 15rem;min-width:9rem;min-height:48px;padding:.4rem .75rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;font:inherit;font-size:1rem;color:#111}
.spt-hint{flex:1 1 auto;margin:0;color:#374151;font-size:.9rem;font-weight:700;line-height:1.35}
.spt-cbody{display:block;border-top:2px solid #C5C9D3}
.spt-cat{display:block;margin:0 0 .8rem;border:2px solid #C5C9D3;border-radius:12px;background:#fff}
.spt-ch{display:flex;align-items:stretch;min-height:48px;border-radius:10px 10px 0 0;background:#1E3A8A;color:#fff}
.spt-chb{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:.6rem;min-height:48px;padding:.2rem .8rem;border:0;border-radius:10px 0 0 0;background:transparent;color:#fff;font:inherit;text-align:left;cursor:pointer}
.spt-arrow{flex:none;width:1.1rem;font-size:1.1rem;color:#fff}
.spt-cn{flex:none;font-size:1.1875rem;font-weight:800;color:#fff}
.spt-cc{flex:none;font-size:.85rem;font-weight:700;color:#C7D2FE}
.spt-pill{flex:none;padding:.1rem .65rem;border-radius:999px;background:#FBBF24;color:#1F2937;font-size:.8rem;font-weight:800;white-space:nowrap}


.spt-prow{display:grid;grid-template-columns:34px minmax(0,1fr) auto;grid-template-areas:"bd nm act" "bd stk act";column-gap:.6rem;align-items:center;min-height:58px;margin:0;padding:6px 12px 6px 8px;border:0;border-bottom:2px solid #C5C9D3;border-radius:0;background:#fff}
.spt-prow.is-po{grid-template-areas:"bd nm act" "bd po po" "bd prog prog" "bd cu cu" "bd ov ov" "bd stk stk"}
.spt-prow.has-cl{grid-template-areas:"bd nm act" "bd cu cu" "bd stk stk"}
.spt-prow .spt-cuw{grid-area:cu}
.spt-prow .spt-pt{grid-area:nm}
.spt-prow .spt-po{grid-area:po}
.spt-prow .spt-prog{grid-area:prog}
.spt-prow .spt-stk{grid-area:stk}
.spt-prow .spt-over{grid-area:ov}
.spt-prow .spt-pact{grid-area:act}
.spt-cbody .spt-prow:last-child{border-bottom:0}
.spt-pt{display:block;overflow-wrap:anywhere}
.spt-nm{font-size:1.0625rem;font-weight:800;color:#111}
.spt-cd{font-size:.8rem;font-weight:600;color:#6B7280}
.spt-po{margin-top:.15rem;font-size:.88rem;font-weight:700;color:#7C2D12}
.spt-prog{height:6px;margin:.3rem 0 .2rem;border-radius:3px;background:#E5E7EB;overflow:hidden}
.spt-prog i{display:block;height:100%;background:#F59E0B}
.spt-stk{margin-top:.1rem;font-size:.85rem;color:#374151}
.spt-pact{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.3rem .5rem;max-width:25rem}
.spt-pair{display:flex;align-items:center;gap:.35rem}
.spt-box{position:relative;display:block;width:5.2rem}
.spt-box input{display:block;width:100%;min-height:48px;padding:.3rem 2.2rem .3rem .5rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:1.25rem;font-weight:800;font-variant-numeric:tabular-nums;text-align:left}
.spt-box input:disabled{background:#F3F4F6;color:#374151}
.spt-sfx{position:absolute;right:.55rem;top:50%;transform:translateY(-50%);font-style:normal;font-size:.8rem;font-weight:800;color:#374151;pointer-events:none}
.spt-noctn{align-self:center;font-size:.82rem;font-weight:700;color:#374151}
.spt-add{min-height:48px;min-width:6.4rem;padding:.3rem .8rem;border:0;border-radius:12px;background:#1D4ED8;color:#fff;font:inherit;font-size:1.02rem;font-weight:800;white-space:nowrap;cursor:pointer}
.spt-add:disabled{background:#9CA3AF}
.spt-inc{display:block;flex:0 0 100%;font-size:.88rem;font-weight:800;line-height:1.25;text-align:right}
.spt-inc.is-ok{color:#15803D}
.spt-inc.is-warn{color:#B45309}
/* right column */
.spt-right{position:sticky;top:4.3rem;display:flex;flex-direction:column;height:calc(100vh - 10.6rem);min-height:22rem;border-left:2px solid #9AA0AE;background:#fff}
.spt-rbody{flex:1 1 auto;min-height:0;overflow-y:auto;padding:.6rem .7rem}
.spt-lbl{font-size:.8rem;font-weight:800;color:#374151;letter-spacing:.02em}
.spt-date{display:block;margin:0 0 .6rem;padding:.4rem .2rem}
.spt-date.is-off{padding:.5rem .6rem;border:2px solid #F59E0B;border-radius:12px}
.spt-dchips{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.3rem}
.spt-dchip{min-height:44px;padding:.3rem .9rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:.95rem;font-weight:800;white-space:nowrap;cursor:pointer}
.spt-dchip.is-on{background:#1D4ED8;border-color:#1D4ED8;color:#fff}
.spt-dinput{margin-top:.4rem;width:100%}
.spt-offday{margin:.5rem 0 0;color:#7C2D12;font-size:.92rem;font-weight:800}
.spt-batch{display:block;margin:0 0 .6rem}
.spt-batch input{display:block;width:100%;min-height:44px;margin-top:.2rem;padding:.3rem .6rem;border:2px solid #9AA0AE;border-radius:10px;background:#fff;color:#111;font:inherit;font-size:1rem;font-weight:700}
.spt-crow{display:block;margin:0 0 .6rem;padding:.6rem .7rem;border:2px solid #D9DCE3;border-radius:12px;background:#fff}
.spt-crow.is-empty,.spt-crow.is-need{border-color:#F59E0B}
.spt-chd{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:.4rem}
.spt-chd .spt-pt{flex:1 1 auto;min-width:0}
.spt-chd .spt-nm{font-size:1.1rem}
.spt-x{flex:none;width:44px;height:44px;border:2px solid #9AA0AE;border-radius:10px;background:#fff;color:#B91C1C;font:inherit;font-size:1.4rem;font-weight:800;cursor:pointer}
.spt-cin{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.spt-cin .spt-box{width:6rem}
.spt-cust{min-height:48px;min-width:5rem;padding:.3rem .7rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:.95rem;font-weight:800;white-space:nowrap;cursor:pointer}
.spt-cust.is-set{border-color:#1D4ED8;color:#1D4ED8}
.spt-csub{min-height:0;margin-top:.15rem;font-size:.85rem;font-weight:700;color:#374151}
.spt-csub:empty{display:none}
.spt-warn{margin:.3rem 0 0;font-size:.88rem;font-weight:800;color:#B45309}
.spt-emptyc{margin:1rem .4rem;color:#374151;font-weight:700}
.spt-undo{flex:none;display:flex;align-items:center;gap:.6rem;margin:.4rem .7rem 0;padding:.5rem .7rem;border:2px solid #16A34A;border-radius:12px;background:#fff;color:#15803D;font-weight:800;font-size:.92rem}
.spt-undo-t{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.spt-undo-b{flex:none;min-height:44px;padding:.3rem .9rem;border:0;border-radius:10px;background:#14532D;color:#fff;font:inherit;font-size:.95rem;font-weight:800;white-space:nowrap;cursor:pointer}
.spt-undo-b:disabled{opacity:.6}
.spt-foot{flex:none;padding:.5rem .7rem .7rem;border-top:2px solid #9AA0AE;background:#fff}
.spt-warns{min-height:1.2rem;margin-bottom:.35rem;font-size:.88rem;font-weight:800;color:#B45309;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spt-fbtns{display:flex;gap:.5rem}
.spt-clear{flex:none;min-height:56px;padding:.3rem 1.1rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:1rem;font-weight:800;cursor:pointer}
.spt-clear:disabled{opacity:.5}
.spt-save{flex:1 1 auto;min-height:56px;padding:.3rem 1rem;border:0;border-radius:12px;background:#1D4ED8;color:#fff;font:inherit;font-size:1.15rem;font-weight:800;white-space:nowrap;cursor:pointer}
.spt-save:disabled{background:#9CA3AF;color:#fff;cursor:default}
/* saved list + inline editor */
.spt-sday{margin:0 0 .5rem}
.spt-srow{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin:0 0 .5rem;padding:.55rem .7rem;border:2px solid #D9DCE3;border-left:6px solid #16A34A;border-radius:12px;background:#fff}
.spt-srow.is-tap{cursor:pointer;border-color:#9AA0AE}
.spt-srow.is-edit{display:block;border-color:#1D4ED8}
.spt-sinfo{flex:1 1 auto;min-width:0}
.spt-sq{font-size:1.25rem;font-weight:800;font-variant-numeric:tabular-nums}
.spt-meta{font-size:.85rem;font-weight:600;color:#374151}
.spt-pen{flex:none;font-size:1.3rem;color:#1D4ED8}
.spt-by,.spt-lockt{flex:none;max-width:9rem;font-size:.82rem;font-weight:700;color:#374151;text-align:right}
.spt-ein{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.5rem 0}
.spt-edate{min-height:48px;padding:.3rem .5rem;border:2px solid #9AA0AE;border-radius:12px;font:inherit;font-size:.95rem;font-weight:700;background:#fff;color:#111}
.spt-ebtns,.spt-cbtns{display:flex;gap:.5rem;margin-top:.4rem}
.spt-b{flex:1 1 0;min-height:48px;padding:.3rem .6rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:.98rem;font-weight:800;cursor:pointer}
.spt-b.is-blue{background:#1D4ED8;border-color:#1D4ED8;color:#fff}
.spt-b.is-red{background:#B91C1C;border-color:#B91C1C;color:#fff}
.spt-b:disabled{opacity:.6}
.spt-conf{margin-top:.4rem;padding:.5rem .6rem;border:2px solid #1D4ED8;border-radius:12px;background:#fff}
.spt-conf.is-red{border-color:#B91C1C}
.spt-conf p{margin:0;font-size:.95rem;font-weight:600;color:#111}
/* the SJA Produksi sub-tab bar looks like real tabs on a tablet (the phone keeps its look) */
@media (min-width:900px){
  #sja-nav.tab-nav{gap:.4rem;padding:.4rem .6rem 0;background:#DFE5F2;border-bottom:3px solid #1D4ED8}
  #sja-nav.tab-nav .tsw{flex:none;min-height:46px;padding:.3rem 1.1rem;border:2px solid #9FB3E6;border-bottom:0;border-radius:12px 12px 0 0;background:#fff;color:#1D4ED8;font-size:.95rem;font-weight:800;white-space:nowrap}
  #sja-nav.tab-nav .tsw.act{background:#1D4ED8;border-color:#1D4ED8;color:#fff}
  #sja-nav.tab-nav{box-shadow:0 -8px 0 #DFE5F2} /* the fixed app header is 55px but the page starts 60px down: nothing may show through that strip above the sticky bar (a shadow, the bar itself clips its own pseudo-elements) */
  #sja-nav ~ #sja-body .stl-gh{top:55px} /* the Stok group headers stick under this taller tab bar (stok-list.css says 40px for the phone bar) */
}
/* the PO number on the sub-tab labels and at the top of the tablet list */
.spc-badge{display:inline-block;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#F59E0B;color:#1F2937;font-size:.8rem;font-weight:800;line-height:22px;text-align:center;vertical-align:middle}
#sja-nav .tsw.act .spc-badge{background:#fff}
/* no spinner arrows in the quantity boxes of the tablet (a tap on them stepped the number by itself) */
.spt-box input{-moz-appearance:textfield;appearance:textfield}
.spt-box input::-webkit-outer-spin-button,.spt-box input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
/* first column of a product row: running PO number / green check / empty slot */
.spt-prow .spt-bdg{grid-area:bd;align-self:start;margin-top:5px;display:block;width:30px;height:30px;border-radius:50%;font-size:.95rem;font-weight:800;line-height:30px;text-align:center}
.spt-bdg.is-n{background:#F59E0B;color:#1F2937}
.spt-bdg.is-ok{background:#16A34A;color:#fff}
.spt-over{font-size:.88rem;font-weight:800;color:#B45309}
.spt-over:empty{display:none}
.spt-guard p{margin:0 0 .5rem;font-weight:700}
.spt-guard ul{margin:0 0 .8rem 1.1rem}
.spt-guard .spt-b{display:block;width:100%;margin:.4rem 0}
/* additive quantity: [ctn] + [loose] = total */
.spt-plus{flex:none;font-size:1.2rem;font-weight:800;color:#374151}
.spt-eq{flex:none;min-width:4.6rem;font-size:.95rem;font-weight:800;color:#111;white-space:nowrap}
.spt-eq small,.spt-csum small{font-size:.8rem;font-weight:700;color:#374151}
.spt-csum{margin-top:.2rem;font-size:1rem;font-weight:800;color:#111}
.spt-cin .spt-box{width:5rem}
.spt-ein .spt-eq{min-width:0}
.spt-prow .spt-pt{cursor:pointer}
.spt-eq[data-spt-act]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.3rem 1rem;border-radius:12px;background:#1D4ED8;color:#fff;font-size:1.02rem;cursor:pointer}
/* slim right column (audit 2026-11-06): date and batch each on one line, so the first card is visible without scrolling */
.spt-date{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .6rem;margin:0 0 .4rem;padding:.2rem .2rem}
.spt-date .spt-dchips{margin-top:0}
.spt-date .spt-dinput,.spt-date .spt-offday{flex:0 0 100%}
.spt-batch{display:flex;align-items:center;gap:.6rem;margin:0 0 .4rem}
.spt-batch .spt-lbl{flex:none}
.spt-batch input{flex:1 1 auto;width:auto;margin-top:0}
/* the reason Simpan is grey is shown in full (it used to be cut off with an ellipsis) */
.spt-warns{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}
.spt-sec{margin:.2rem 0 .5rem;font-size:1.05rem;font-weight:800;color:#111}
.spt-sec small{font-size:.8rem;font-weight:700;color:#374151}
.spt-sec-saved{margin-top:1.1rem;padding-top:.7rem;border-top:3px solid #9AA0AE}

/* ═══ STAGE 2 (docs/PRODUKSI_TABLET.md): Ulangi kemarin, "Belum terkirim", Lapor Rusak by batch. Roles: blue = action, orange = incomplete / not sent, red = rusak / alert / delete. ═══ */
.spt-sech{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0 0 .5rem}
.spt-sech .spt-sec{margin:0}
.spt-rep,.spc-rep{flex:none;min-height:44px;padding:.2rem .85rem;border:2px solid #1D4ED8;border-radius:12px;background:#fff;color:#1D4ED8;font:inherit;font-size:.92rem;font-weight:800;white-space:nowrap;cursor:pointer}
.spt-rep:disabled,.spc-rep:disabled{opacity:.5;cursor:default}
.spc-tools{display:flex;align-items:center;gap:.5rem}
.spc-tools .spc-q{flex:1 1 auto;min-width:0}
.spt-save.is-unsent,.spc-save.is-unsent{background:#fff;border:3px solid #F59E0B;color:#7C2D12}
.spt-save.is-unsent:disabled,.spc-save.is-unsent:disabled{background:#fff;color:#7C2D12;opacity:.6}
/* Lapor Rusak, tablet */
.sprt .fg-rusak-bar{margin:0 0 .6rem}
.sprt .fg-rusak-bar:empty{display:none}
.spr-dh{cursor:default}
.spr-brow{grid-template-areas:"bd nm act" "bd ln ln" "bd ov ov";min-height:64px}
.spr-brow .spt-pt{grid-area:nm}
.spr-brow .spr-bl{grid-area:ln;margin-top:.1rem;font-size:.88rem;font-weight:600;color:#374151}
.spr-brow .spt-pact{grid-area:act}
.spr-brow .spr-over{grid-area:ov}
.spr-already{font-weight:800;color:#B91C1C}
.spr-over{font-size:.9rem;font-weight:800;color:#B91C1C}
.spr-over:empty{display:none}
.spr-bad{margin:.3rem 0 0;font-size:.9rem;font-weight:800;color:#B91C1C}
.spr-card.is-over{border-color:#B91C1C}
.spr-cm{font-size:.85rem;font-weight:600;color:#374151;margin:0 0 .4rem}
.spr-sel{display:block;width:100%;min-height:48px;margin-top:.5rem;padding:.3rem .6rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:1rem;font-weight:700}
.spr-note{display:block;width:100%;min-height:48px;margin-top:.4rem;padding:.3rem .6rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:1rem}
.spr-rh{padding:.7rem .8rem 0}
.spr-right .spt-rbody{padding-top:.4rem}
.spr-note-f{margin:0 0 .4rem;font-size:.85rem;font-weight:600;color:#374151}
.spr-send{background:#B91C1C}
.spr-send:disabled{background:#9CA3AF}
.spr-send.is-unsent{background:#fff}
.spr-unk{display:flex;align-items:center;gap:.8rem;margin:0 0 .8rem;padding:.8rem;border:2px dashed #9AA0AE;border-radius:12px;background:#fff}
.spr-unk-t{flex:1 1 auto;min-width:0}
.spr-unk-t b{display:block;font-size:1rem;font-weight:800}
.spr-unk-t span{display:block;font-size:.85rem;font-weight:600;color:#374151}
.spr-unk .spt-b{flex:none}
.spr-back{margin:.5rem .8rem 0}
/* Lapor Rusak below 900 px: the same batch list stacked, the report is a bottom section, its footer sticks to the bottom of the screen */
@media (max-width:899px){
  .sprt .spt-cols{display:block}
  .sprt .spt-left{padding:.5rem .6rem .6rem}
  .sprt .spt-lhead{flex-wrap:wrap}
  .sprt .spt-q{flex:1 1 100%}
  .sprt .spt-right{display:contents}
  .sprt .spr-rh{margin:.4rem .6rem 0;padding:.7rem 0 0;border-top:3px solid #9AA0AE}
  .sprt .spt-rbody{padding:.4rem .6rem;overflow:visible}
  /* audit 2026-11-06 item 1: the selected cards and the send button sit at the top, the batch list below; the send bar stays visible while scrolling */
  .sprt .spt-cols{display:flex;flex-direction:column}
  .sprt .spr-rh{order:-4}
  .sprt .spt-foot{order:-3;position:sticky;top:0;z-index:3;padding:.4rem .6rem .6rem;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.12)}
  .sprt .spt-rbody{order:-2}
  .sprt .spt-left{order:1}
  .sprt .spr-note-f{display:none}
  .sprt .spt-warns:empty{display:none}
  .sprt .spt-warns{margin-bottom:.25rem}
  .sprt .spr-note-b{display:block}
  .spr-brow{grid-template-columns:34px minmax(0,1fr);grid-template-areas:"bd nm" "bd ln" "bd act" "bd ov"}
  .spr-brow .spt-pact{justify-content:flex-start;margin-top:.3rem}
  .spr-unk{flex-wrap:wrap}
}
.spt-warns.is-msg{white-space:normal;overflow:visible;text-overflow:clip}
.spr-note-b{display:none;margin:.4rem 0 .2rem;font-size:.85rem;font-weight:600;color:#374151}
.spt-save.is-unsent{white-space:normal;line-height:1.15;font-size:1.02rem;padding:.3rem .6rem}
.spt-prow.is-in .spt-pact{max-width:18.5rem}
.spt-prow.is-in .spt-inc{white-space:normal}

/* ═══ STAGE 3 (owner 2026-10-30): Cukup segini, Belum terkirim retry ═══ */
.spt-cukup{display:inline-flex;align-items:center;min-height:44px;margin:.35rem 0 0;padding:.2rem .9rem;border:2px dashed #6B7280;border-radius:11px;background:#fff;color:#111;font:inherit;font-size:.9rem;font-weight:800;cursor:pointer}
.spt-cukup:disabled{opacity:.5;cursor:default}
.spt-cukq{margin:.4rem 0 0;padding:.6rem .7rem;border:2px solid #1D4ED8;border-radius:12px;background:#EFF6FF;color:#111;font-size:.95rem}
.spt-cukq p{margin:0 0 .45rem}
.spt-cl{margin:.3rem 0 0;padding:.4rem .6rem;border-radius:10px;background:#ECFDF3;color:#05603A;font-size:.92rem;font-weight:700}
.spt-reopen{min-height:40px;margin-left:.4rem;padding:.1rem .8rem;border:2px solid #05603A;border-radius:10px;background:#fff;color:#05603A;font:inherit;font-size:.85rem;font-weight:800;cursor:pointer}
.spc-lock.is-unsent{border-color:#B45309;background:#FFF7E6;color:#7A4500}

/* ═══ "Atur urutan" (owner 2026-11-01, docs/PRODUKSI_TABLET.md): a small toggle above the product list; while it is on every product row shows three 44px buttons.
   Plain neutral buttons, no new colour roles; the only red is the existing error look (like .spc-bad). Rows stay block layout / grid cells, nothing shrinks. ═══ */
.spo-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .8rem;margin:0 0 .5rem}
.spo-tgl{flex:none;min-height:44px;padding:.2rem .85rem;border:1.5px solid var(--border-input,#D0D5DD);border-radius:11px;background:#fff;color:var(--ink2,#475467);font:inherit;font-size:.9rem;font-weight:700;cursor:pointer}
.spo-tgl.is-on{border-color:var(--dark,#101828);background:var(--dark,#101828);color:#fff}
.spo-hint{flex:1 1 12rem;min-width:0;font-size:.9rem;font-weight:700;line-height:1.3;color:var(--ink2,#475467)}
.spo-err{flex:1 1 100%;margin:0;padding:.4rem .6rem;border-radius:8px;background:#FEF2F2;color:#991B1B;font-weight:700}
.spo-btns{display:flex;flex:none;gap:.4rem;margin:0 0 .45rem}
.spo-b{flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:2px solid #9AA0AE;border-radius:11px;background:#fff;color:#111;font:inherit;font-size:1.1rem;font-weight:800;line-height:1;cursor:pointer}
.spo-b:disabled{opacity:.35;cursor:default}
.spt-prow.is-ord{grid-template-columns:34px minmax(0,1fr) auto auto;grid-template-areas:"bd nm ord act" "bd stk ord act"}
.spt-prow.is-ord.is-po{grid-template-areas:"bd nm ord act" "bd po po po" "bd prog prog prog" "bd cu cu cu" "bd ov ov ov" "bd stk stk stk"}
.spt-prow.is-ord.has-cl{grid-template-areas:"bd nm ord act" "bd cu cu cu" "bd stk stk stk"}
.spt-prow .spo-btns{grid-area:ord;margin:0}
/* the phone / narrow row is a named grid: the buttons get their own line under the name */
.spc-grp > .spc-row.is-ord{grid-template-areas:"hd hd hd" "ord ord ord" "stock stock stock" "kg c exp" "more more more" "bad bad bad"}
.spc-grp > .spc-row .spo-btns{grid-area:ord;margin:0}
@container spc (min-width:640px){.spc-grp > .spc-row.is-ord{grid-template-areas:"hd stock kg c exp" "ord ord ord ord ord" "more more more more more" "bad bad bad bad bad"}}

/* ═══ "Lini saya", "Rekap hari ini" and the automatic Batch No (owner 2026-11-01, docs/PRODUKSI_TABLET.md). Typography per the owner-reviewed rules: product NAME first and bold, the code small and grey,
   the NUMBERS the biggest, nothing under 14px (.875rem), targets 44px and more, a status is an icon AND a word (never colour alone), a divider between products. Blue = the chosen line / action,
   amber = a warning or a PO that is short, green = enough. The product cards of the Rekap are block layout (lesson cards-in-a-scrolling-list-are-block-layout). ═══ */
.spl{margin:0 0 .6rem}
.spl-h{margin:0 0 .25rem;font-size:.95rem;font-weight:800;color:#374151}
.spl-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
@container spc (min-width:560px){.spl-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:900px){.spct .spl-row{grid-template-columns:repeat(4,minmax(0,1fr))}} /* the tablet root is not a container (.spct): one row of four */
.spl-b{min-height:52px;padding:.35rem .5rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:1rem;font-weight:800;line-height:1.2;cursor:pointer}
.spl-b.is-on{border-color:#1D4ED8;background:#1D4ED8;color:#fff}
.spl-hint{margin:.35rem 0 0;font-size:.95rem;font-weight:800;color:#374151}
.spl-tag{display:inline-block;padding:.05rem .5rem;border-radius:7px;background:#EEF2FF;color:#3730A3;font-size:.875rem;font-weight:800;white-space:nowrap}
.spl-bang{color:#B45309;font-weight:800}
.spl-strip{margin:0 0 .6rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff}
.spl-sh{display:flex;align-items:center;gap:.4rem;width:100%;min-height:52px;padding:.4rem .8rem;border:0;border-radius:12px;background:transparent;color:#111;font:inherit;font-size:1rem;font-weight:800;text-align:left;cursor:pointer}
.spl-sh .spl-arrow{margin-left:auto;font-size:1.2rem}
.spl-sbody{padding:0 .7rem .7rem}
.spt-tabs{flex:none;display:flex;border-bottom:2px solid #9AA0AE}
.spt-tab{flex:1 1 0;min-width:0;min-height:52px;padding:.3rem .5rem;border:0;border-bottom:4px solid transparent;background:#fff;color:#374151;font:inherit;font-size:1rem;font-weight:800;cursor:pointer}
.spt-tab.is-on{border-bottom-color:#1D4ED8;background:#F3F6FF;color:#1D4ED8}
.spl-rkh{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0 0 .5rem}
.spl-rkt{min-width:0;font-size:1rem;color:#111;overflow-wrap:anywhere}
.spl-chg{flex:none;min-height:44px;padding:.2rem .85rem;border:2px solid #9AA0AE;border-radius:11px;background:#fff;color:#111;font:inherit;font-size:.95rem;font-weight:800;cursor:pointer}
.spl-days{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin:0 0 .6rem}
.spl-chip{min-height:44px;padding:.3rem .9rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:.95rem;font-weight:800;cursor:pointer}
.spl-chip.is-on{border-color:#1D4ED8;background:#1D4ED8;color:#fff}
.spl-date{min-height:44px;padding:.2rem .5rem;border:2px solid #9AA0AE;border-radius:11px;background:#fff;color:#111;font:inherit;font-size:1rem}
.spl-note{margin:0 0 .5rem;font-size:.9rem;font-weight:700;color:#374151}
.spl-ban{margin:0 0 .7rem;padding:.6rem .75rem;border:2px solid #F59E0B;border-radius:12px;background:#FFF7E6;color:#7A4500}
.spl-bt{display:block;font-size:1.1rem;font-weight:800}
.spl-bl{margin:.3rem 0 0;padding:0;list-style:none;font-size:.95rem;font-weight:700}
.spl-bl li{padding:.15rem 0}
.spl-it{display:block;padding:.7rem .1rem .8rem;border-top:3px solid #C5C9D3}
.spl-it.is-flag{padding-left:.6rem;border-left:6px solid #F59E0B}
.spl-ih{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .5rem}
.spl-nm{font-size:1.15rem;font-weight:800;line-height:1.25;color:#111;overflow-wrap:anywhere}
.spl-cd{font-size:.9rem;font-weight:700;color:#6B7280}
.spl-tot{margin:.2rem 0;font-size:1.45rem;font-weight:800;line-height:1.2;color:#111;font-variant-numeric:tabular-nums}
.spl-tot.is-none{color:#6B7280}
.spl-po{margin:.1rem 0;font-size:1rem;font-weight:800}
.spl-po.is-ok{color:#15803D}
.spl-po.is-short{color:#B45309}
.spl-w{margin:.1rem 0;font-size:1rem;font-weight:800;color:#B45309}
.spl-w small{font-size:.9rem;font-weight:700;color:#7A4500}
.spl-n{display:flex;align-items:center;gap:.4rem;min-height:44px;margin-top:.25rem;padding:.2rem .7rem;border:2px solid #9AA0AE;border-radius:11px;background:#fff;color:#111;font:inherit;font-size:.95rem;font-weight:800;cursor:pointer}
.spl-rows{margin-top:.45rem}
.spl-rm{flex:1 1 auto;min-width:0}
.spl-r1{font-size:1rem;color:#111}
.spl-time{font-variant-numeric:tabular-nums}
.spl-who{font-weight:700;color:#374151}
.spl-fl{color:#B45309;font-size:.9rem;font-weight:800}
.spl-r2{font-size:.9rem;font-weight:700;color:#374151;overflow-wrap:anywhere}
.spl-rq{flex:none;font-size:1.25rem;font-weight:800;color:#111;font-variant-numeric:tabular-nums;white-space:nowrap}
.spl-rq small{font-size:.9rem;font-weight:700;color:#374151}
.spl-srow.is-flag{border-left-color:#F59E0B}
.spl-prow{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0;padding:.5rem .1rem;border-top:1px solid #D9DCE3}
.spl-prow.is-flag{border-left:4px solid #F59E0B;padding-left:.5rem}
.spt-batch.is-auto input::placeholder{color:#374151;font-weight:800;opacity:1}
/* audit 2026-11-06 item 7: big − / + beside the carton and loose boxes (one step each, 44px+ targets) */
.spt-stp{display:inline-flex;align-items:center;gap:.2rem}
.spt-sbtn{flex:none;min-width:44px;min-height:48px;padding:0 .4rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:1.4rem;font-weight:800;line-height:1;cursor:pointer}
.spt-sbtn:disabled{opacity:.5;cursor:default}
/* audit 2026-11-06 item 3: Lapor Rusak reason as big buttons (tablet) */
.spr-rbs{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0 .2rem}
.spr-rb{min-height:48px;padding:.3rem .8rem;border:2px solid #9AA0AE;border-radius:12px;background:#fff;color:#111;font:inherit;font-size:1rem;font-weight:700;cursor:pointer}
.spr-rb.is-on{background:#1D4ED8;border-color:#1D4ED8;color:#fff}
.spr-rb:disabled{opacity:.6;cursor:default}
/* audit 2026-11-06 item 2: a warning line of Rekap is a button that opens that product */
.spl-bi{display:flex;align-items:center;gap:.4rem;width:100%;min-height:48px;padding:.3rem .6rem;border:2px solid #F59E0B;border-radius:10px;background:#fff;color:#111;font:inherit;font-size:.98rem;text-align:left;cursor:pointer}
.spl-bgo{margin-left:auto;font-size:1.2rem;font-weight:800;color:#B45309}
/* audit 2026-11-06 item 5: small text up to 0.9rem+ */
.spr-cm{font-size:.9rem}
.spt-by,.spt-lockt{font-size:.9rem}
.spt-hint{font-size:.95rem}
