/* GSL Price Sheet Hub - shared shell styles (version pill, toast) */
/* v20.7: iPhone Safari enlarges small text on a zoomed-out page ("text autosizing"). On the price page previews that made the table text
   too big for its columns: headers piled up and rows ran behind the footer. Text now keeps the exact size the page was laid out with. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.ver{ display:inline-flex; align-items:center; gap:6px; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;
  font-size:9.5px; letter-spacing:.14em; color:#C9A84C; padding:4px 10px; border-radius:6px; border:1px solid rgba(201,168,76,.5); }
.ver .dot{ width:7px; height:7px; border-radius:50%; background:#2ECC71; box-shadow:0 0 6px rgba(46,204,113,.85); transition:background .2s,box-shadow .2s; }
.ver.off .dot{ background:#E5484D; box-shadow:0 0 6px rgba(229,72,77,.85); }
.ver.busy .dot{ opacity:.55; }
#toast{ position:fixed; left:50%; top:50%; transform:translate(-50%,-50%) scale(.96); z-index:9999; pointer-events:none;
  font:600 12px 'JetBrains Mono',ui-monospace,Menlo,monospace; letter-spacing:.2em; text-transform:uppercase;
  padding:14px 26px; border-radius:8px; color:#EAF2FF; background:linear-gradient(180deg,#1C2B47,#12203A); border:1px solid #34507E;
  box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 0 1px rgba(201,168,76,.25); opacity:0; transition:opacity .18s,transform .18s; }
#toast.on{ opacity:1; transform:translate(-50%,-50%) scale(1); }
#toast.bad{ background:#8B2635; color:#fff; border-color:#5F1820; }
@media print{ #toast{ display:none !important; } }

.hst{ display:flex; flex-direction:column; gap:12px; }
.hrow{ padding:14px 16px; border:1px solid rgba(128,110,70,.35); border-radius:9px; background:rgba(128,110,70,.06); }
.hrow .htop{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.hrow .hn{ font-size:14px; font-weight:800; }
.hrow .hwhen{ font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:10.5px; letter-spacing:.05em; opacity:.6; margin-top:3px; }
.hrow .hg{ margin-top:12px; }
.hrow .hgt{ font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; opacity:.75; margin:0 0 8px; }
.hrow .hcards{ display:flex; flex-wrap:wrap; gap:8px; }
.hcard{ display:flex; flex-direction:column; gap:5px; padding:9px 12px; border:1px solid rgba(128,110,70,.4); border-radius:8px; background:rgba(128,110,70,.09); }
.hcard .hck{ font-size:12px; font-weight:700; }
.hcard .hcr{ display:flex; align-items:baseline; gap:14px; }
.hcard .hcv{ display:inline-flex; align-items:baseline; gap:7px; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:12.5px; white-space:nowrap; }
.hcard .hcv s{ opacity:.55; } .hcard .hcv em{ font-style:normal; opacity:.5; } .hcard .hcv b{ font-weight:800; color:var(--hink,#111); }
.hcard .hcv2{ display:inline-flex; align-items:baseline; gap:7px; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:11px; color:var(--hgold,#8A6B1E); opacity:.6; white-space:nowrap; }
.hcard .hcv2 s{ text-decoration:line-through; } .hcard .hcv2 em{ font-style:normal; }
.btn.hr{ flex:none; font-weight:700; color:#1A1408; background:linear-gradient(180deg,#D9B85A,#B08935); border:1px solid #8A6B28; opacity:1; }
/* read-only (salesman, purchasing, admin previewing Salesman view): hide everything that edits or saves */
.ro .edonly{ display:none !important; }

/* v13.2 · Zip bundle toggle, shared by every PDF dialog. Gold on purpose: it must not blend in. */
.zipsw{display:flex;align-items:center;gap:14px;margin-top:16px;padding:13px 16px;border:2px solid #C9A84C;border-radius:10px;background:rgba(201,168,76,.10);cursor:pointer;user-select:none;-webkit-user-select:none;position:relative}
.zipsw input{position:absolute;opacity:0;width:0;height:0;margin:0}
.zipsw .sw{flex:none;width:50px;height:28px;border-radius:14px;background:rgba(255,255,255,.16);border:2px solid rgba(201,168,76,.75);position:relative;transition:background .2s,border-color .2s;box-sizing:border-box}
.zipsw .sw::after{content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .2s,background .2s;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.zipsw input:checked+.sw{background:#C9A84C;border-color:#C9A84C}
.zipsw input:checked+.sw::after{left:24px;background:#1A1408}
.zipsw input:focus-visible+.sw{outline:2px solid #fff;outline-offset:2px}
.zipsw .zt{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.zipsw .zt b{color:#C9A84C;font-weight:800;font-size:15.5px;letter-spacing:.01em;line-height:1.2}
.zipsw .zt b::after{content:'Off';float:right;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(201,168,76,.7);margin-left:10px}
.zipsw input:checked~.zt b::after{content:'On';color:#C9A84C}
.zipsw .zt small{color:rgba(255,255,255,.66);font-size:11.5px;line-height:1.35}

/* v13.3 · Cost Sheet tabs (Pricing / Margins) and the read-only margin tables */
.ctabs{display:flex;gap:8px;margin:0 0 16px;padding:0 0 12px;border-bottom:1.5px solid #B9A26B}
.ctabs button{font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;padding:9px 18px;border-radius:6px;border:1.5px solid #9C8753;background:#FBF5E4;color:#5A461C;cursor:pointer}
.mo .ctabs button.on,.ctabs button.on{background:#2A2016;color:#F5EED9;border-color:#2A2016}
.mo .bd p.mgn-hint,.mgn-hint{color:#5A461C}
.mgn-hint{font-size:12.5px;color:#5A461C;margin:0 0 6px;font-weight:600}
.mgn-sub{font-size:11px;color:#7A5E22;font-style:italic;margin:0 0 4px}
.mgw{overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 10px;margin-bottom:8px}
.mgt{border-collapse:separate;border-spacing:0;font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;font-size:12.5px;color:#1A2620}
.mgt th{background:linear-gradient(180deg,#E3C9A0,#C9A678);color:#3A2E12;font-size:9px;letter-spacing:.06em;text-transform:uppercase;padding:9px 10px;text-align:center;white-space:nowrap;line-height:1.25;font-weight:700;border-bottom:1px solid #9C8753}
.mgt th.grp{font-size:10.5px;letter-spacing:.12em;padding:11px 10px 9px;border-bottom:1px solid rgba(58,46,18,.22)}
.mgt th.sub{font-size:8.5px;font-weight:600;letter-spacing:.1em;padding-top:6px;padding-bottom:7px}
.mgt th.l,.mgt td.l{text-align:left}
.mgt th.out{background:linear-gradient(180deg,#1E2622,#070B09);color:#F2C9A8}
.mgt td{padding:11px 12px;text-align:center;border-bottom:1px solid rgba(122,94,34,.16);background:#FBF5E4;white-space:nowrap;font-variant-numeric:tabular-nums}
.mgt tbody tr:nth-child(even) td{background:#F3E9D2}
.mgt td.out{font-weight:700;color:#3A2E12}
.mgt td.pr{color:#5A461C}
.mgt td.mg{font-weight:800;font-size:13.5px;color:#2A2016}
.mgt td.mg.lo{color:#B3261E}
.mgt td.mg.mid{color:#8A5A00}
.mgt td.mg.hi{color:#1E6B3A}
.mgt td.mg.neg{color:#B3261E;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.mgt td.dsc{font-family:'Poppins',Inter,system-ui,sans-serif;text-align:left;white-space:normal;min-width:150px}
/* every tier (and the SKU block) is its own card: a spacer column between groups, borders on the group's outer cells */
.mgt .gap{width:12px;min-width:12px;padding:0;background:transparent !important;border:0 !important;box-shadow:none !important}
.mgt .gs{border-left:1.5px solid #9C8753}
.mgt .ge{border-right:1.5px solid #9C8753}
.mgt thead tr:first-child th.gs{border-top:1.5px solid #9C8753;border-top-left-radius:8px}
.mgt thead tr:first-child th.ge{border-top:1.5px solid #9C8753;border-top-right-radius:8px}
.mgt thead tr:first-child th.gs.ge{border-top-left-radius:8px;border-top-right-radius:8px}
.mgt tfoot td{background:#E3D5AE !important;font-weight:800;border-top:2px solid #9C8753;border-bottom:1.5px solid #9C8753}
.mgt tfoot td.gs{border-bottom-left-radius:8px}
.mgt tfoot td.ge{border-bottom-right-radius:8px}
.mgt tfoot td.mg{font-size:13.5px}
/* frozen SKU column */
.mgt th:first-child,.mgt td:first-child{position:sticky;left:0;z-index:3}
.mgt th:first-child{z-index:4}
/* tier tints, same family as the Echon pricing tab */
.mgt th.t0,.mgt td.t0{background:#EEF3E6}.mgt tbody tr:nth-child(even) td.t0{background:#E4EBD9}.mgt th.t0{background:linear-gradient(180deg,#D7E3C6,#BFCFA9)}
.mgt th.t1,.mgt td.t1{background:#EAF0F5}.mgt tbody tr:nth-child(even) td.t1{background:#DEE7EF}.mgt th.t1{background:linear-gradient(180deg,#CFDCE8,#B4C7D8)}
.mgt th.t2,.mgt td.t2{background:#F6EEE2}.mgt tbody tr:nth-child(even) td.t2{background:#EFE3D1}.mgt th.t2{background:linear-gradient(180deg,#E8D5BB,#D4BB98)}
.mgt th.t3,.mgt td.t3{background:#F2E9F2}.mgt tbody tr:nth-child(even) td.t3{background:#E9DCE9}.mgt th.t3{background:linear-gradient(180deg,#DCC8DC,#C6ADC6)}
.mgt th.t4,.mgt td.t4{background:#FBF1DF}.mgt tbody tr:nth-child(even) td.t4{background:#F4E6CB}.mgt th.t4{background:linear-gradient(180deg,#F0D9AE,#E0C08A)}
.mgt th.t5,.mgt td.t5{background:#E6F0EE}.mgt tbody tr:nth-child(even) td.t5{background:#D8E6E3}.mgt th.t5{background:linear-gradient(180deg,#C3DAD5,#A6C4BD)}
.mgleg{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;margin:0 0 14px;font-size:12px;color:#5A461C;font-weight:600}
.mgleg b{font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;font-weight:800;font-size:13px;margin-right:6px}

/* v13.8 · Cost Sheet pricing tab: each tier is its own card (spacer columns + outer borders), price box leads, multiplier recedes */
.ctbl th.gap,.ctbl td.gap{width:10px;min-width:10px;padding:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important}
.ctbl th.gs,.ctbl td.gs{border-left:1.5px solid #9C8753 !important}
.ctbl th.ge,.ctbl td.ge{border-right:1.5px solid #9C8753 !important}
.ctbl th.tt.gs{border-top:1.5px solid #9C8753;border-top-left-radius:8px}
.ctbl th.tt.ge{border-top:1.5px solid #9C8753;border-top-right-radius:8px}
.ctbl td.pr input{background:#fff !important;border:2px solid #6E5620 !important;font-weight:800 !important;font-size:14px !important;color:#1A1408 !important}
.ctbl td.pr input.ov{color:#B3261E !important;background:#FFF1A8 !important;border-color:#B3261E !important}
.ctbl td.mu input{background:#EFE8D8 !important;border:1px solid #C0AA75 !important;font-weight:400 !important;color:#5A461C !important;font-size:12px !important}
.cset.cb #s-tariff{font-size:20px !important;font-weight:800 !important;color:#1A1408 !important;width:92px !important}
.ctbl th.tt{line-height:1.25}
/* v13.8 · PDF dialog: list heading stands alone on the left, Select all / Clear sit to the right */
.mo .grp.selrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-bottom:10px}
.mo .grp.selrow .sel{display:flex;gap:8px;margin:0}

/* v13.9 · Cost Sheet: the wrapper no longer draws a border; the gold frame belongs to the first card (Show through Cost + tariff) only */
.ctw{border:0 !important;box-shadow:none !important;padding-bottom:4px}
.ctbl th:first-child,.ctbl td:first-child{border-left:1.5px solid #9C8753}
.ctbl th.out,.ctbl td.out{border-right:1.5px solid #9C8753}
.ctbl thead tr:first-child th:not(.gap):not(.tt):not(.rm){border-top:1.5px solid #9C8753}
.ctbl thead tr:first-child th:first-child{border-top-left-radius:8px}
.ctbl thead tr:first-child th.out{border-top-right-radius:8px}
.ctbl tbody tr:last-child td:not(.gap):not(.del){border-bottom:1.5px solid #9C8753}
.ctbl tbody tr:last-child td:first-child{border-bottom-left-radius:8px}
.ctbl tbody tr:last-child td.out{border-bottom-right-radius:8px}
.ctbl tbody tr:last-child td.gs{border-bottom-left-radius:8px}.ctbl tbody tr:last-child td.ge{border-bottom-right-radius:8px}
.ctbl th.rm,.ctbl td.del{border:0 !important;background:transparent !important}
/* v13.9 · Margins: the first card's frame runs across every header cell and closes under the averages */
.mgt thead tr:first-child th:not(.gap){border-top:1.5px solid #9C8753}
.mgt tbody tr:last-child td:not(.gap){border-bottom:0}
.mgt tfoot td:not(.gap){border-bottom:1.5px solid #9C8753}
/* v13.9 · truck discount lines read as one unit */
.wbt.dsc{width:auto}.wbt.dsc td.nm{text-align:right;padding-right:4px;white-space:nowrap}.wbt.dsc td{padding:3px 6px}

/* ---------- Download dialog, shared layout (v13.28): numbered steps, thumbnail cards, page grid. Accent from --pdf-acc on .mo ---------- */
.mo .step{display:flex;align-items:center;gap:10px;margin-top:16px}.mo .step .grp.big{margin-top:0}
.mo .step .n{flex:none;width:24px;height:24px;border-radius:50%;background:var(--pdf-acc,#C9A84C);color:#1A1408;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center}
.mo .ths{display:flex;gap:6px;flex:none}
.mo .thumb{display:block;width:92px;height:119px;border-radius:4px;border:1px solid rgba(255,255,255,.2);background:#0F1623;object-fit:cover;object-position:top}
.mo .thumb.ph{background:linear-gradient(100deg,#0F1623 30%,#1C2638 50%,#0F1623 70%);background-size:200% 100%;animation:thshm 1.1s linear infinite}
@keyframes thshm{from{background-position:200% 0}to{background-position:-200% 0}}
.mo .edn label.ck{padding:12px 16px;gap:16px}
.mo .edn label.ck span{font-size:20px;font-weight:800;color:var(--pdf-acc,#C9A84C);letter-spacing:.01em}
.mo .edn label.ck span small{display:block;color:rgba(255,255,255,.82);font-size:14px;font-weight:600;margin-top:4px;letter-spacing:0}
.mo .pick2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 6px}
.mo label.ck.pbk{border:1px solid rgba(255,255,255,.14);border-radius:6px;padding:12px 16px;gap:16px;align-items:center;border-top:1px solid rgba(255,255,255,.14)}
.mo label.ck.pbk span b{display:block;font-weight:800;font-size:20px;line-height:1.2;color:var(--pdf-acc,#C9A84C)}
.mo label.ck.pbk span small{display:block;color:rgba(255,255,255,.82);font-size:14px;font-weight:600;margin-top:5px;line-height:1.35}
.mo .grp.selrow.ipp>span:first-child{font-family:'Poppins',sans-serif;font-size:20px;font-weight:800;color:var(--pdf-acc,#C9A84C);letter-spacing:.01em;text-transform:none}
.mo .pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:6px 0 10px;align-items:start}
.mo label.ck.pcard{flex-direction:column;align-items:stretch;gap:8px;border:1px solid rgba(255,255,255,.14);border-radius:6px;padding:10px;position:relative;border-top:1px solid rgba(255,255,255,.14)}
.mo label.ck.pcard input{position:absolute;top:8px;left:8px;margin:0;z-index:1}
.mo label.ck.pcard .ths{width:100%}
.mo label.ck.pcard .thumb{flex:1;min-width:0;width:auto;height:auto;aspect-ratio:816/1056}
.mo label.ck.pcard span{text-align:left}
.mo label.ck.pcard span b{display:block;font-weight:800;font-size:14.5px;line-height:1.25;color:var(--pdf-acc,#C9A84C)}
.mo label.ck.pcard span small{display:block;color:rgba(255,255,255,.75);font-size:12px;font-weight:600;margin-top:3px}
.mo label.ck.pbk:has(input:checked),.mo label.ck.pcard:has(input:checked){border-color:var(--pdf-acc,#C9A84C);background:rgba(255,255,255,.06)}
.mo label.ck.pbk:has(input:disabled){opacity:.45}
.mo .ckrow{display:flex;flex-wrap:wrap;gap:0 26px}.mo .ckrow label.ck{flex:1 1 auto;white-space:nowrap}
@media (max-width:640px){.mo .pick2{grid-template-columns:1fr}.mo .pgrid{grid-template-columns:1fr 1fr}}

/* v13.66: Current pill on the live version in Price History */
.hcur{ display:inline-flex; align-items:center; gap:6px; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; padding:8px 14px; border-radius:6px; background:rgba(95,176,122,.2); color:#3F9A5A; border:1.5px solid rgba(63,154,90,.6); white-space:nowrap; }
.hcur::before{ content:''; width:8px; height:8px; border-radius:50%; background:#3F9A5A; }
.hrow .hwhen .hcur{ margin-left:10px; padding:3px 8px; font-size:9.5px; vertical-align:1px; }

/* v13.67: each History version shows its own price table */
.hrow .vtw{ margin-top:14px; max-height:440px; overflow:auto; border:1px solid #B9A26B; border-radius:8px; background:#FFFDF6; -webkit-overflow-scrolling:touch; }
.hrow .vt{ width:100%; border-collapse:collapse; font-size:13.5px; color:#2A2016; }
.hrow .vt th{ position:sticky; top:0; z-index:1; background:#E3D5AE; color:#3A2E18; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:9.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; padding:10px 12px; text-align:center; border-bottom:1px solid #B9A26B; white-space:nowrap; }
.hrow .vt th:first-child, .hrow .vt td:first-child{ text-align:left; }
.hrow .vt td{ padding:9px 12px; border-bottom:1px solid #E6DAB8; text-align:center; white-space:nowrap; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-variant-numeric:tabular-nums; }
.hrow .vt td.sk{ font-weight:800; } .hrow .vt td.cs{ color:#7A6A44; }
.hrow .vt tbody tr:nth-child(even):not(.vg){ background:#F8F1DE; }
.hrow .vt tr.vg td{ background:#C9B583; color:#2A2016; font-family:inherit; font-weight:800; font-size:12px; letter-spacing:.14em; text-transform:uppercase; padding:10px 12px; text-align:left; }
.hrow .vte{ margin-top:10px; opacity:.7; }

/* v13.68: Restore dialog */
.rsp{ font-size:14px; line-height:1.45; }
.rsp .rsi{ margin:0 0 14px; }
.rsp .rsh{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 8px; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:10.5px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; opacity:.85; }
.rsp .rsl{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:8px; }
.rsp .rsc, .rsp .rsr{ display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border:1px solid rgba(128,128,128,.4); border-radius:7px; cursor:pointer; }
.rsp .rsc input, .rsp .rsr input{ width:18px; height:18px; margin:1px 0 0; flex:none; accent-color:#C9A84C; }
.rsp .rsc span{ font-weight:700; }
.rsp .rsr{ margin-bottom:8px; } .rsp .rsr b{ display:block; } .rsp .rsr small{ display:block; opacity:.75; font-size:12.5px; margin-top:2px; }
.rsp .rsnote{ font-family:inherit; font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; opacity:.75; }
.rsp .rsg{ border:1px solid rgba(128,128,128,.4); border-radius:8px; margin-bottom:10px; overflow:hidden; }
.rsp .rsgh{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:4px 12px 4px 0; background:rgba(201,168,76,.14); }
.rsp .rsgh .rsc{ border:0; flex:1; font-size:15px; }
.rsp .rsn{ font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:11px; font-weight:700; opacity:.75; white-space:nowrap; }
.rsp .rsk{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:2px 10px; padding:8px 12px 10px; }
.rsp .rsi2{ display:flex; align-items:center; gap:8px; padding:5px 2px; cursor:pointer; font-family:'JetBrains Mono',ui-monospace,Menlo,monospace; font-size:12.5px; font-weight:600; }
.rsp .rsi2 input{ width:16px; height:16px; margin:0; flex:none; accent-color:#C9A84C; }

/* v13.70: tick SKUs on the History tables */
.hrow .vt .vck{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; }
.hrow .vt .vck input{ width:18px; height:18px; margin:0; accent-color:#C9A84C; flex:none; }
.hrow .vth{ margin:12px 0 -4px; font-size:12.5px; opacity:.75; }
.hrow button[data-h]:disabled{ opacity:.45; cursor:default; filter:grayscale(.4); }

/* v13.71: Price History opens big, and only the window scrolls (no scroll box inside each table, which made iPad scrolling stick) */
.mo .box:has(#mo-b .hst), #mo .mbox:has(#mo-b .hst){ width:min(1500px,96vw) !important; max-width:96vw !important; height:94vh; max-height:94vh !important; }
.mo .box:has(#mo-b .hst) #mo-b, #mo .mbox:has(#mo-b .hst) #mo-b{ flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.hrow .vtw{ max-height:none !important; overflow:visible !important; }
.hrow .vt thead th{ position:static; }
.hrow .vt td.cs{ font-size:13.5px !important; letter-spacing:0 !important; }
.hrow .vt tr.vg .vck input{ width:20px; height:20px; }
/* v18.7: the tariff percent box stands out on every cost sheet (Allan) */
html body input#s-tariff,html body .cset.cb input#s-tariff,html body input#c-tar,html body input[data-s="tariff"]{color:#D42A2A !important;-webkit-text-fill-color:#D42A2A;font-weight:800 !important}
/* v18.8: toasts in GSL gold so they stand out on every page (red stays for errors) */
html body #toast{background:linear-gradient(180deg,#F6E2A0,#DDBB57);color:#1A1408;border:1.5px solid #8C7430;box-shadow:0 18px 60px rgba(0,0,0,.5),0 0 0 4px rgba(246,226,160,.25);font-weight:700}
html body #toast.bad{background:#8B2635;color:#fff;border-color:#5F1820;box-shadow:0 18px 60px rgba(0,0,0,.5)}

/* v19.0: pending go-live pill beside the Effective date (every price page, salesmen included) */
#pendpill{cursor:pointer;display:inline-flex;align-items:center;gap:7px;margin-left:0;padding:6px 12px;border-radius:5px;border:1px solid #B08935;background:linear-gradient(180deg,#F6E39C,#D9B95A);color:#1A1408;font:600 12px 'Inter',sans-serif;letter-spacing:.01em;white-space:nowrap;vertical-align:middle}
#pendpill b{font-weight:800}
#pendpill i{width:8px;height:8px;border-radius:50%;background:#B3261E;box-shadow:0 0 0 2px rgba(179,38,30,.25)}
@media print{#pendpill,#aheadpill{display:none}}
#pendpill u{text-decoration:none;font-weight:700;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;border-left:1px solid rgba(26,20,8,.3);padding-left:8px;margin-left:2px;opacity:.85}
#pendpill:hover{filter:brightness(1.06)}
/* v19.1: the pending price window, opened from the pill */
#pp-mo{position:fixed;inset:0;overscroll-behavior:contain;z-index:2000;display:none;align-items:center;justify-content:center;padding:3vh 14px;background:rgba(8,10,16,.72)}
#pp-mo.on{display:flex}
#pp-mo .pp-box{width:min(1100px,100%);max-height:92vh;display:flex;flex-direction:column;background:#FAF6EC;color:#1A2620;border-radius:10px;box-shadow:0 28px 80px rgba(0,0,0,.45);font:14px 'Inter',sans-serif;overflow:hidden}
#pp-mo .pp-h{display:flex;align-items:center;gap:16px;padding:16px 22px;background:linear-gradient(180deg,#F6E39C,#D9B95A);color:#1A1408}
#pp-mo .pp-h b{font-size:15px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;white-space:nowrap}
#pp-mo .pp-h span{flex:1;font-size:13.5px}
#pp-mo .pp-h button{border:0;background:rgba(26,20,8,.12);color:#1A1408;width:32px;height:32px;border-radius:6px;font-size:22px;line-height:1;cursor:pointer}
#pp-mo .pp-f{display:flex;align-items:center;gap:14px;padding:12px 22px;border-bottom:1px solid #D9D0BC}
#pp-mo .pp-q{position:relative;display:inline-flex}
#pp-mo .pp-q input{font:14px 'Inter',sans-serif;padding:8px 30px 8px 10px;border:1px solid #CDBF9C;border-radius:6px;width:240px;background:#fff}
#pp-mo .pp-q button{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:none;font-size:18px;color:#7A8580;cursor:pointer}
#pp-mo .pp-n{color:#5A461C;font-size:13px}
#pp-mo .pp-tw{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
html:has(#pp-mo.on),html:has(#pp-mo.on) body{overflow:hidden}
#pp-mo .pp-t{width:100%;border-collapse:collapse}
#pp-mo .pp-t th{position:sticky;top:0;background:#1E2A44;color:#E8C96A;font:700 10.5px 'IBM Plex Mono',monospace;letter-spacing:.12em;text-transform:uppercase;padding:11px 10px;text-align:center;white-space:nowrap}
#pp-mo .pp-t th:first-child{text-align:left}
#pp-mo .pp-t td{padding:10px;border-bottom:1px solid #E8E1CE;text-align:center;font-variant-numeric:tabular-nums}
#pp-mo .pp-t tbody tr:nth-child(even) td{background:#F4EEDD}
#pp-mo .pp-t td b{display:block;font-size:15px;font-weight:800}
#pp-mo .pp-t td small{display:block;font-size:11px;color:#7A6638}
#pp-mo .pp-t td small s{color:#8B2635}
#pp-mo .pp-t td small em{font-style:normal;color:#1E6B3A;font-weight:700}
#pp-mo .pp-t td.pp-s{text-align:left;font:700 13px 'IBM Plex Mono',monospace;white-space:nowrap}
#pp-mo .pp-t td.pp-s small{font:500 11px 'Inter',sans-serif;color:#7A6638}
#pp-mo .pp-t td.pp-nc{color:#9A9A9A;font-size:12px}
/* v19.1: the pill is a button now; keep it out of the toolbar's button styling */
.bar #pendpill, #pendpill{text-transform:none !important;letter-spacing:.01em !important;font:600 12px 'Inter',sans-serif !important;height:auto !important;line-height:1.2 !important;padding:6px 12px !important;border-radius:5px !important;border:1px solid #B08935 !important;background:linear-gradient(180deg,#F6E39C,#D9B95A) !important;color:#1A1408 !important;box-shadow:none !important}
#pendpill b{font-weight:800 !important}
#pendpill u{font-size:10px !important}
/* v19.2: Download PDF at the far right of the Columns to view row */
#cols #pdf.pdf-r, #opts #pdf.pdf-r{margin-left:auto !important;flex:0 0 auto;align-self:center}
/* v19.3: Pages dropdown on the preview */
#pgf{position:relative;display:inline-flex;margin-left:-2px}
#pgf-btn{display:inline-flex !important;align-items:center;gap:8px;height:auto !important;padding:7px 12px !important;border-radius:6px !important;border:1px solid rgba(201,168,76,.55) !important;background:rgba(255,255,255,.04) !important;color:#E8DCC0 !important;font:600 12px 'Inter',sans-serif !important;letter-spacing:.02em !important;text-transform:none !important;cursor:pointer;box-shadow:none !important}
#pgf-btn .k{font-size:10px;letter-spacing:.16em;text-transform:uppercase;opacity:.75}
#pgf-btn b{font-weight:800;color:#F2D78A}
#pgf-btn i{font-style:normal;opacity:.7;font-size:10px}
#pgf-btn.lit{border-color:#E9C86A !important;background:rgba(233,200,106,.14) !important}
#pgf-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:300;min-width:250px;padding:8px;border-radius:8px;background:#FAF6EC;border:1px solid #CDBF9C;box-shadow:0 18px 40px rgba(0,0,0,.35)}
#pgf-pop[hidden]{display:none}
#pgf-pop label{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:6px;cursor:pointer;color:#1A2620;font:600 13px 'Inter',sans-serif;text-transform:none;letter-spacing:0}
#pgf-pop label:hover{background:#F0E8D4}
#pgf-pop label small{margin-left:auto;font-weight:500;font-size:11px;color:#7A6638}
#pgf-pop label.pgf-all{border-bottom:1px solid #E1D7BF;border-radius:6px 6px 0 0;margin-bottom:4px;font-weight:800}
#pgf-pop input{accent-color:#1E9E4A;width:16px;height:16px;margin:0}
@media print{#pgf{display:none}}
/* v19.3: stacked two-word column names */
.stk2{white-space:nowrap;line-height:1.12;text-align:left;display:inline-block}
.mo .ckrow label.ck:has(.stk2){white-space:normal;padding-top:6px !important;padding-bottom:6px !important}
.mo .ckrow{flex-wrap:nowrap !important;gap:0 12px !important}
.mo .ckrow label.ck{flex:0 1 auto !important}
.bar label.tg:has(.stk2){padding-top:4px !important;padding-bottom:4px !important}
.bar label.tg .stk2{font-size:inherit}
/* v19.3: on narrower screens the pill drops its "See what changes" tag (the whole pill still opens it) so the top bar stays on one line */
@media (max-width:1500px){ #pendpill{padding:5px 6px 5px 10px !important} #pgf-btn .k{display:none} } /* v20.3: the See what changes chip is never hidden */
/* v19.4: pending pill stacked: Pending changes on top, Goes live and the date under it */
#pendpill{padding:5px 12px !important;gap:9px !important;line-height:1.1 !important;text-align:left}
#pendpill .pp-st{display:flex;flex-direction:column;gap:1px}
#pendpill .pp-st strong{font:800 13px 'Inter',sans-serif;letter-spacing:.02em}
#pendpill .pp-st em{font:500 11px 'Inter',sans-serif;font-style:normal;opacity:.9}
#pendpill .pp-st em b{font-weight:800}
#pendpill u{line-height:1.1 !important;text-align:left;font-size:9.5px !important}
/* v19.4: "View" label beside the Pages dropdown */
#pgf{align-items:center;gap:10px}
#pgf .pgf-l{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:inherit;opacity:.7;font-weight:600}
#pgf-btn .k{display:none}
/* v19.4: picked pages stand out (dropdown and Download PDF window) */
.mo .pgrid label.ck:not(:has(input:checked)) b, .mo .pick2 label.ck:not(:has(input:checked)) b{opacity:.6}
.mo .pgrid label.ck:not(:has(input:checked)) .ths, .mo .pick2 label.ck:not(:has(input:checked)) .ths{opacity:.55}
/* v19.5: when only some pages are picked the View button turns gold; its height matches the Effective box (set in shell.js) */
#pgf-btn.lit{background:linear-gradient(180deg,#F6E39C,#D9B95A) !important;border-color:#B08935 !important;color:#1A1408 !important}
#pgf-btn.lit b{color:#1A1408 !important}
#pgf-btn.lit i{opacity:.8}
/* v19.6: every Download PDF window: a picked card (print style, full book, each page; Plywood's style buttons too) turns darker parchment
   with dark ink and a dark green check, keeping the gold outline and glow */
:is(.mo,#mo) :is(.edn,.pgrid,.pick2) label.ck:has(input:checked), #mo .pick button.on{
  background:radial-gradient(ellipse farthest-corner at 0% 0%,#E9D9B2 0%,#F2E6C9 45%,#FBF5E6 100%) !important;border-color:#B08935 !important; /* v19.9: spreads out from the top-left corner and scales with the card, so on a wide card it reads corner to corner: darkest top left, lightest bottom right */
  box-shadow:0 0 0 1.5px #E9C86A, 0 0 22px 2px rgba(242,210,122,.38) !important}
:is(.mo,#mo) :is(.edn,.pgrid,.pick2) label.ck:has(input:checked) :is(span,b,small,div),
#mo .pick button.on :is(.pt,.pd){color:#1A1408 !important;text-shadow:none !important}
:is(.mo,#mo) :is(.edn,.pgrid,.pick2) label.ck:has(input:checked) small, #mo .pick button.on .pd{color:#4A3B1A !important}
:is(.mo,#mo) :is(.edn,.pgrid,.pick2) label.ck:has(input:checked) input[type=checkbox]{accent-color:#1E6B3A !important}
#mo .pick button.on .ck{background:#1E6B3A !important;border-color:#1E6B3A !important}
#mo .pick button.on .ck::after{border-color:#fff !important}
/* v19.7: soft drop shadow under the page thumbnails on every Download PDF card */
:is(.mo,#mo) :is(.edn,.pgrid,.pick2) label.ck :is(.ths > *, img), #mo .pick button .thumb, #mo .pick button .ths > *{box-shadow:0 2px 6px rgba(0,0,0,.28), 0 6px 14px rgba(0,0,0,.18) !important;border-radius:3px}
/* v19.7: names on unpicked cards brighter so they read on the dark card (was dimmed to 60%) */
.mo .pgrid label.ck:not(:has(input:checked)) b, .mo .pick2 label.ck:not(:has(input:checked)) b{opacity:1 !important;filter:brightness(1.3) saturate(1.05)}
/* v19.9: NuCedar's tall page cards keep the 19.8 angle (Allan likes it there) */
#mo .pgrid.nc label.ck:has(input:checked){background:linear-gradient(135deg,#E9D9B2 0%,#F2E6C9 50%,#FBF5E6 100%) !important}

/* v20.3: "See what changes" is a dark chip on the right of every Pending pill, always visible, so it reads as a button */
#pendpill{padding:5px 5px 5px 12px !important;gap:10px !important}
#pendpill u{display:inline-flex !important;align-items:center;gap:6px;border-left:0 !important;margin-left:2px !important;padding:6px 8px 6px 9px !important;border-radius:4px;background:#1A1408;color:#F6E39C;opacity:1 !important;
  font:800 9.5px 'Inter',sans-serif !important;letter-spacing:.08em !important;text-transform:uppercase;line-height:1.15 !important;text-align:left;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(246,227,156,.18)}
#pendpill u svg{width:9px;height:9px;flex:none;transition:transform .15s ease}
#pendpill:hover u svg{transform:translateX(2px)}
#pendpill:hover u{background:#2A2112}

/* v20.3: Download <date> price pages, top right of the Pending price change window */
#pp-mo .pp-h .pp-dl{width:auto;height:auto;display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:6px;background:#1A1408;color:#F6E39C;font:800 12px 'Inter',sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;box-shadow:0 2px 0 rgba(0,0,0,.18),inset 0 0 0 1px rgba(246,227,156,.25)}
#pp-mo .pp-h .pp-dl svg{width:14px;height:14px}
#pp-mo .pp-h .pp-dl:hover{background:#2A2112}
@media (max-width:820px){ #pp-mo .pp-h{flex-wrap:wrap} #pp-mo .pp-h .pp-dl{order:3;width:100%;justify-content:center} }

/* v20.6: one top row on every price page: sheet name, Effective, (View), pending, admin buttons, Download PDF at the far right */
.toprow{flex-wrap:nowrap !important}
.toprow > *{flex-shrink:0}
.toprow > .t{flex-shrink:1 !important;min-width:0;white-space:normal !important;line-height:1.35}
.bar .pdf-top{height:48px !important;min-width:136px;padding:0 18px !important;font-size:11px !important;flex:none !important;align-self:center}
html.inhub .bar #ver, html.inhub .bar .ver{display:none !important}
.toprow.wrapd{flex-wrap:wrap !important;row-gap:10px}
.wrapd > #pdfpair{margin-left:auto !important}
.hidet > .t{display:none !important}
.hidet > label.effl{margin-left:0 !important}

.bar .t.tshrink{white-space:normal !important;max-width:165px;line-height:1.35}
.bar:has(> .t.tshrink){column-gap:10px}
.bar:has(> .t.tshrink) > label.effl{margin-left:6px !important}
.tight{column-gap:8px !important}
.tight > button:not(.pdf-top):not(#pendpill), .tight > .drop, .tight > .btn:not(.pdf-top){padding-left:12px !important;padding-right:12px !important;letter-spacing:.1em !important}
.tight > label.effl, .tight > #pgf{margin-left:4px !important}

/* v20.6: iPhone. The sheet toolbar scrolls away with the page instead of covering a third of the screen,
   the top row wraps neatly, and the column pills sit on one line you can swipe sideways. */
@media (max-width:640px){
  .bar{position:relative !important;top:auto !important}
  .toprow{flex-wrap:wrap !important;row-gap:10px}
  .bar label.effl{margin-left:0 !important}
  .bar #pgf{margin-right:0 !important}
  #pendpill{max-width:100%}
  .bar #cols, .bar .cols, .bar #opts{flex-wrap:nowrap !important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;max-width:100%}
  .bar #cols::-webkit-scrollbar, .bar .cols::-webkit-scrollbar, .bar #opts::-webkit-scrollbar{display:none}
  .bar #cols > *, .bar .cols > *, .bar #opts > *{flex-shrink:0}
  html, body{overflow-x:hidden}
  .bar #pendpill{flex:1 1 100%}
  .bar .pdf-top{flex:1 1 auto !important}
  .bar .t.tshrink{max-width:none}
  html body #toast{max-width:88vw;width:max-content;letter-spacing:.04em !important;line-height:1.35;text-align:center;font-size:13px !important;padding:14px 18px !important;white-space:normal}
}

/* v20.7: Cost Sheet: admin-only, so it looks different from Download PDF (dark with a gold outline and a sliders mark) but stands the same height, right beside it */
.bar .cost-top{height:48px !important;min-width:0;padding:0 18px 0 14px !important;display:inline-flex !important;align-items:center;gap:9px;flex:none !important;align-self:center;
  background:linear-gradient(180deg,rgba(232,201,106,.14),rgba(232,201,106,.04)) !important;border:1.5px solid #C9A84C !important;color:#E8C96A !important;
  box-shadow:none !important;font-size:11px !important;letter-spacing:.16em !important;text-transform:uppercase;font-weight:700 !important;border-radius:6px;white-space:nowrap}
.bar .cost-top::before{content:'';width:15px;height:15px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E") center/contain no-repeat}
.bar .cost-top:hover{background:linear-gradient(180deg,#E9C86A,#C9A84C) !important;color:#1A1408 !important;border-color:#E9C86A !important}
.bar .cost-top[style*="display: none"], .bar .cost-top[hidden]{display:none !important}
.ro .bar .cost-top, .ro .cost-top{display:none !important}

/* v20.7: the Cost Sheet + Download PDF pair */
#pdfpair{display:inline-flex;align-items:center;gap:10px;flex:none}
#pdfpair > #pdf{margin-left:0 !important}
.toprow > #pdfpair{margin-left:auto}
@media (max-width:640px){ #pdfpair{flex:1 1 100%} #pdfpair > .pdf-top{flex:1 1 auto !important} }
.spillx{flex-wrap:wrap !important;row-gap:10px}
.spillx > #pdfpair{order:4;margin-left:auto !important}
.spillx > :is(button,.btn,.drop):not(#pendpill), .spillx > .barsp{order:5}
.spillx > .barsp{display:none}
#pairbrk{display:none}
.spillx > #pairbrk{display:block;order:4;flex-basis:100%;height:0;margin:0;padding:0}
.spillx > #cols, .spillx > .cols{order:6}

/* v20.8: tools at the right end of a Cost Sheet's tab row (Plywood: History, Agility Export), lettered like the tabs, outlined */
.ctabs{align-items:center}
.ctabs .ctabs-r{margin-left:auto;display:flex;gap:8px}
.ctabs .ctool{font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;padding:9px 16px;border-radius:6px;border:1.5px solid #9C8753;background:transparent;color:#5A461C;cursor:pointer}
.ctabs .ctool:hover{background:#2A2016;color:#F5EED9;border-color:#2A2016}
/* v21.4: margin under each multiplier on the Cost Sheets; read-only multiplier in discount columns */
.ctbl td .mgx{display:block;min-height:12px;line-height:12px;font-family:Inter,system-ui,sans-serif;font-size:10.5px;font-weight:800;letter-spacing:.01em;margin-top:3px;color:#2A2016;font-style:normal}
.ctbl td .mgx.hi{color:#1E6B3A} .ctbl td .mgx.mid{color:#8A5A00} .ctbl td .mgx.lo{color:#B3261E}
.ctbl td .mgx.neg{color:#B3261E;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}
.ctbl td .mul{display:inline-block;font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;font-size:12px;font-weight:600;color:#5A461C;padding:3px 0}
/* v21.4: Storage & freight % (margins only) moved from the old Margins tab into the Cost Sheet tab row */
.ctabs .ctadder{display:inline-flex;align-items:center;gap:8px;margin-left:14px;padding:5px 12px;min-height:38px;box-sizing:border-box;border:1.5px solid #9C8753;border-radius:6px;font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#5A461C;background:#FBF5E4}
.ctabs .ctadder input{width:54px;text-align:center;font:600 13px Inter,system-ui,sans-serif;padding:5px 6px;border:1px solid #C0AA75;border-radius:4px;background:#fff;color:#2A2016}
.ctabs .ctadder em{font-style:normal;font-weight:600;letter-spacing:.08em;color:#8A6B1E;font-size:9px}
.cs-tbl td .mgx{display:block;min-height:12px;line-height:12px;font-family:Inter,system-ui,sans-serif;font-size:10.5px;font-weight:800;margin-top:3px;color:#2A2016} .cs-tbl td .mgx.hi{color:#1E6B3A} .cs-tbl td .mgx.mid{color:#8A5A00} .cs-tbl td .mgx.lo{color:#B3261E} .cs-tbl td .mgx.neg{color:#B3261E;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}

/* v21.5: the margin sits centred under its multiplier box; plain multipliers in discount columns are centred too */
.mubox{display:inline-block;vertical-align:middle;position:relative}
.mubox>.mgx{text-align:center}
.ctbl td.mud{text-align:center}
.ctbl td.mud .mul{display:inline-block}
/* Plywood and Jambs: the margin hangs below the box so every input in the row stays on one line; rows get room for it */
.mubox.ab>.mgx{position:absolute;left:-30px;right:-30px;top:100%;margin-top:3px;white-space:nowrap}
.stepwrap+.mgx{margin-right:18px}

/* v21.6: "How this sheet works" on every Cost Sheet header, centred in the header (it holds the long note) */
.mo h3, .costhd { position:relative; }
html body .howwrap { position:absolute !important; left:50%; top:50%; transform:translate(-50%,-50%); display:flex; justify-content:center; flex:none !important; z-index:6; }
.howwrap .howbtn { display:inline-flex; align-items:center; gap:9px; padding:7px 14px; border-radius:6px; border:1px solid #B9A26B; background:#FFFDF6; color:#3A2E18; font:800 11px Inter,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase; cursor:pointer; white-space:nowrap; }
.howwrap .howbtn i { font:italic 800 12px Georgia,serif; width:18px; height:18px; border-radius:50%; background:#1E2A44; color:#E9C86A; display:inline-flex; align-items:center; justify-content:center; text-transform:none; letter-spacing:0; }
.howwrap .howbtn em { font-style:normal; font-weight:600; letter-spacing:.04em; text-transform:none; color:#7A5E22; font-size:11px; }
.howwrap.open .howbtn em { visibility:hidden; }
.howwrap .howpop { display:none; position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%); z-index:20; width:min(640px,80vw); background:#FFFDF6; color:#2A2016; border:1px solid #B9A26B; border-radius:8px; box-shadow:0 18px 40px rgba(0,0,0,.25); padding:14px 18px; font:600 13px/1.5 Inter,system-ui,sans-serif; letter-spacing:0; text-transform:none; text-align:left; white-space:normal; }
.howwrap.open .howpop { display:block; }
/* v21.6: taller rows with every box centred top to bottom; the line under a price ("was", "calc") and the margin under a multiplier hang in the room below */
.ctbl tbody td, .cs-tbl tbody td { padding-top:19px !important; padding-bottom:19px !important; }
/* v21.9: the hanging lines are laid out in normal flow (see the v21.9 block at the end), not positioned */
/* v21.6: Jambs Cost Sheet close X matches the other Cost Sheets */
html body #cs-mo .cs-h .cs-x { width:30px; height:30px; border:0; border-radius:6px; background:rgba(122,94,34,.12); color:#7A5E22; font:400 22px/1 Inter,system-ui,sans-serif; cursor:pointer; padding:0; margin:0; display:inline-flex; align-items:center; justify-content:center; }
html body #cs-mo .cs-h .cs-x:hover { background:rgba(122,94,34,.22); }
/* v21.6: Plywood sell prices centred and a little bigger */
html body .ctbl td.out { text-align:center !important; font-size:16px !important; }

/* v21.8: red close X with a red box on every Cost Sheet */
html body #mo-x, html body #cs-mo .cs-h .cs-x { background:#FDECEC !important; border:1.5px solid #C0392B !important; color:#C0392B !important; box-sizing:border-box; }
html body #mo-x:hover, html body #cs-mo .cs-h .cs-x:hover { background:#C0392B !important; color:#fff !important; }
/* v21.8: SKU boxes sit nearer the green check, with room before the column edge */
html body .ctbl tbody td.nm:not(.pn) { padding-left:2px !important; padding-right:16px !important; }

/* v21.9: smooth Cost Sheet scrolling restored. v21.5/v21.6 made thousands of cells and lines inside the scrolling tables positioned
   (relative cells, absolute "was"/"calc"/margin lines, relative multiplier boxes). Same look now, all in normal flow: each line keeps its
   height but gives it back with a negative bottom margin, so the box stays centred and the line hangs in the row's bottom padding. */
html body .mubox, html body .mubox.ab { position:static !important; display:inline-flex !important; flex-direction:column; align-items:center; vertical-align:middle; }
html body .mubox>.mgx, html body .mubox.ab>.mgx { position:static !important; display:block; height:12px; min-height:12px; line-height:12px; margin:3px 0 -15px !important; white-space:nowrap; text-align:center; }
html body .ctbl td.pr>input+.was, html body .ctbl td.pr>input+.calc, html body .ctbl td.mu>.was, html body .ctbl td.mn>input+.was, html body .ctbl td.mud>.mgx {
  position:static !important; display:block; height:12px; line-height:12px; margin:3px 0 -15px !important; text-align:center; white-space:nowrap; }
html body .ctbl td.mud>.mul { margin-top:0; }
/* v21.9: a cleaner close X: two drawn strokes, exactly centred in the red box (same box on every Cost Sheet and window) */
html body #mo-x, html body #cs-mo .cs-h .cs-x { position:absolute; display:inline-flex !important; align-items:center; justify-content:center; width:32px !important; height:32px !important; padding:0 !important;
  font-size:0 !important; line-height:0 !important; color:transparent !important; border-radius:7px !important; }
html body #cs-mo .cs-h .cs-x { position:relative; }
html body #mo-x::before, html body #mo-x::after, html body #cs-mo .cs-h .cs-x::before, html body #cs-mo .cs-h .cs-x::after {
  content:''; position:absolute; left:50%; top:50%; width:16px; height:2.25px; margin:-1.125px 0 0 -8px; border-radius:2px; background:#C0392B; transform:rotate(45deg); }
html body #mo-x::after, html body #cs-mo .cs-h .cs-x::after { transform:rotate(-45deg); }
html body #mo-x:hover::before, html body #mo-x:hover::after, html body #cs-mo .cs-h .cs-x:hover::before, html body #cs-mo .cs-h .cs-x:hover::after { background:#fff; }

/* v22.2: the bulk-pricing warning and the truck-room notice wear the colors of the sheet they open on (--bk-* set per sheet) */
html body .mo.bulk .box { background:var(--bk-bg,linear-gradient(160deg,#1C2331,#0F141D)) !important; border:1.5px solid var(--bk-acc,#D98C34) !important; box-shadow:0 30px 70px rgba(0,0,0,.6) !important; }
html body .mo.bulk h3 { background:transparent !important; color:var(--bk-acc,#F0A64A) !important; border-bottom:1px solid var(--bk-line,rgba(255,255,255,.12)) !important; }
html body .mo.bulk .mft, html body .mo.bulk #mo-f { background:transparent !important; border-top:1px solid var(--bk-line,rgba(255,255,255,.12)) !important; }
html body .mo.bulk .bd p, html body .mo.bulk #mo-b p { color:var(--bk-txt,#fff) !important; }
html body .mo.bulk button.primary { background:var(--bk-btn,linear-gradient(180deg,#F0A64A,#C77A26)) !important; color:var(--bk-btntx,#1A1005) !important; border-color:transparent !important; }
html body .mo .ask { background:var(--bk-ask,rgba(14,19,28,.94)) !important; }
html body .mo .ask h4 { color:var(--bk-acc,#F0A64A) !important; }
.trk-note { margin:8px 0 2px; padding:9px 12px; border-radius:6px; border:1px solid var(--pdf-acc,#C9A84C); background:rgba(255,255,255,.05); font-size:12.5px; line-height:1.45; font-weight:600; color:#F3E9D2; }


/* v22.3: big, bold bullet-point warnings (bulk pricing, truck room) */
html body .mo.bulk .box { width:min(760px,96vw) !important; max-width:96vw !important; }
html body .mo.bulk h3 { font-size:17px !important; letter-spacing:.16em !important; padding:20px 26px !important; }
html body .mo.bulk h3::before { content:'!'; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; margin-right:12px; border-radius:50%; background:var(--bk-acc,#F0A64A); color:#1A1408; font:900 17px/1 Inter,system-ui,sans-serif; letter-spacing:0; vertical-align:middle; }
.bigwarn { list-style:none; margin:6px 0 4px; padding:0; display:flex; flex-direction:column; gap:16px; text-align:left; }
.bigwarn li { position:relative; padding-left:34px; font:600 21px/1.35 Inter,system-ui,sans-serif; color:var(--bk-txt,#fff); letter-spacing:0; text-transform:none; }
.bigwarn li::before { content:''; position:absolute; left:6px; top:.45em; width:12px; height:12px; border-radius:3px; background:var(--bk-acc,#F0A64A); transform:rotate(45deg); }
.bigwarn b { font-weight:800; color:var(--bk-acc,#F0A64A); } .bigwarn b.no { color:#FF6B5E; letter-spacing:.04em; }
html body .mo.bulk .mft button, html body .mo.bulk #mo-f button { font-size:14px !important; padding:12px 24px !important; }
html body .mo .ask .in { max-width:620px !important; } html body .mo .ask .ptxt { margin:6px 0 18px; }
html body .mo .ask h4 { font-size:16px !important; }
.trk-note .bigwarn { gap:8px; } .trk-note .bigwarn li { font-size:16px; } .trk-note { padding:12px 16px !important; }
@media (max-width:640px){ .bigwarn li { font-size:18px; } }

/* v22.4: the pending window header: "Goes live <date>" with a big date, then a second line */
#pp-mo .pp-h .pp-gl{display:flex;flex-direction:column;gap:3px;min-width:0}
#pp-mo .pp-h .pp-gl1{font:700 15px/1.2 Inter,system-ui,sans-serif;letter-spacing:.02em;color:#1A1408}
#pp-mo .pp-h .pp-gl1 strong{font:900 24px/1.1 'Poppins',Inter,sans-serif;letter-spacing:0;margin-left:4px;white-space:nowrap}
#pp-mo .pp-h .pp-gl2{font:600 13.5px/1.35 Inter,system-ui,sans-serif;color:#3A2E12}

/* v22.5: "Goes live <date>" and its second line sit together in one pill with a dark green border */
#pp-mo .pp-h .pp-gl{display:inline-flex !important;flex:0 1 auto !important;align-self:center;padding:8px 18px 9px;border:2.5px solid #14532D;border-radius:999px;background:rgba(255,253,240,.55);box-shadow:0 1px 0 rgba(255,255,255,.4) inset}
#pp-mo .pp-h .pp-gl ~ .pp-dl{margin-left:auto}
#pp-mo .pp-h .pp-gl1 strong{color:#14532D}
#pp-mo .pp-h [data-ppx]{margin-left:auto} #pp-mo .pp-h .pp-dl ~ [data-ppx]{margin-left:0}

/* v22.6: the go-live box is a rectangle with rounded corners, set a little away from the title; the download button stacks its text */
#pp-mo .pp-h .pp-gl{border-radius:8px !important;margin-left:14px}
#pp-mo .pp-h .pp-dl{padding:8px 16px !important;text-align:left}
#pp-mo .pp-h .pp-dlt{display:flex;flex-direction:column;gap:1px;line-height:1.15}
#pp-mo .pp-h .pp-dlt span{font-size:11px;letter-spacing:.06em}
#pp-mo .pp-h .pp-dlt b{font-size:15px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}

/* v22.7: on every Cost Sheet the "A pending price set is waiting" note sits in the middle of its row, in deep red, so it stands out */
html body .pendwait { justify-content:center; }
html body .pendwait .t, html body .pendwait1 .t { flex:1; text-align:center; color:#8B1A1A !important; font-size:22px !important; font-weight:900 !important; letter-spacing:.01em; margin:0 24px; }
html body .pendwait .t small, html body .pendwait1 .t small { color:#8B1A1A !important; opacity:.85; font-size:13px !important; font-weight:700 !important; margin-top:4px; }
html body .pmode:has(.pendwait) { background:linear-gradient(180deg,#FCEBEA,#F5D3D0) !important; border-color:#B4413C !important; border-width:1.5px !important; }
html body .pendwait1 { flex:1; display:flex; justify-content:center; }
html body .pendwait1 .t { display:block; }

/* v22.8: Pending mode on the Cost Sheet is dark (deep night indigo) so it can never be mistaken for Live. The tables keep their cream cells. */
html body.pend .mo.sv .box { background:radial-gradient(ellipse 120% 70% at 50% 0%,#2C2558 0%,transparent 65%),linear-gradient(180deg,#1B1838 0%,#131128 100%) !important; border-color:#6D5FC7 !important; color:#ECE8FF; }
html body.pend .mo.sv h3, html body.pend .mo.sv .mft, html body.pend .mo.sv #mo-f { background:linear-gradient(180deg,#2A2452,#211C45) !important; color:#F2EEFF !important; border-color:#4C4396 !important; }
html body.pend .mo.sv h3 .pendtag { color:#FFD46B !important; letter-spacing:.14em; }
html body.pend .mo.sv .bd, html body.pend .mo.sv #mo-b { color:#ECE8FF; }
html body.pend .mo.sv .cgrp, html body.pend .mo.sv .cgrp span, html body.pend .mo.sv h2, html body.pend .mo.sv .cbrow, html body.pend .mo.sv .grp { color:#F4F1FF !important; border-color:#8C80E0 !important; }
html body.pend .mo.sv .cgrp { border-bottom-color:#8C80E0 !important; }
html body.pend .mo.sv .rndnote, html body.pend .mo.sv .rndnote em { color:#CFC8F5 !important; } html body.pend .mo.sv .rndnote.on { color:#fff !important; }
html body.pend .mo.sv .pmode { background:rgba(255,255,255,.06) !important; border-color:#6D5FC7 !important; color:#ECE8FF; }
html body.pend .mo.sv .pmode .pnote, html body.pend .mo.sv .pmode .pnote b { color:#E6E1FF !important; }
html body.pend .mo.sv .ctabs, html body.pend .mo.sv .ctabs { border-color:#4C4396 !important; }
html body.pend .mo.sv .ctabs .ctool, html body.pend .mo.sv .ctabs .ctact, html body.pend .mo.sv .addrow, html body.pend .mo.sv button.ghost:not(.blk) { color:#ECE8FF !important; border-color:#8C80E0 !important; background:transparent !important; }
html body.pend .mo.sv .ctabs button.on { background:#FFD46B !important; color:#1B1838 !important; border-color:#FFD46B !important; }
html body.pend .mo.sv .howwrap .howbtn { background:#2E2860; color:#F2EEFF; border-color:#8C80E0; } html body.pend .mo.sv .howwrap .howbtn em { color:#CFC8F5; }
html body.pend .mo.sv .mgn-hint, html body.pend .mo.sv .bd p.mgn-hint { color:#CFC8F5 !important; }
html body.pend .mo.sv .mft button:not(.primary):not(.danger):not(.pub):not(.green):not(.blk), html body.pend .mo.sv #mo-f button:not(.primary):not(.danger):not(.pub):not(.green):not(.blk) { color:#ECE8FF !important; border-color:#8C80E0 !important; background:transparent !important; }
/* v22.9: on the dark pending screen the Live / Pending toggle gets a thin gold border so the dark blue Pending side stays visible */
html body.pend .mo.sv .pmode .seg { border:1.5px solid #E9C86A !important; border-radius:7px; box-shadow:0 0 0 1px rgba(233,200,106,.18); }
html body.pend .mo.sv .pmode .seg button.on { box-shadow:inset 0 0 0 1px rgba(233,200,106,.55); }

/* v23.0: the Live / Pending control on every Cost Sheet is a real switch: one sliding knob marks the chosen side, the other side reads unselected */
html body .pmode .seg { position:relative; display:inline-grid !important; grid-template-columns:1fr 1fr; align-items:center; padding:3px; gap:0; background:#E7DFC9 !important; border:1.5px solid #1E2A44 !important; border-radius:8px !important; overflow:hidden; box-shadow:inset 0 1px 3px rgba(0,0,0,.18); }
html body .pmode .seg::before { content:''; position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px); border-radius:6px; background:linear-gradient(180deg,#34477A,#1E2A44); box-shadow:0 2px 6px rgba(0,0,0,.35); transition:transform .2s cubic-bezier(.3,.8,.3,1), background .2s; z-index:0; }
html body .pmode .seg:has(button[data-pm="1"].on)::before { transform:translateX(100%); }
html body .pmode .seg.go1::before { transform:translateX(100%) !important; } html body .pmode .seg.go0::before { transform:none !important; }
html body .pmode .seg button { position:relative; z-index:1; min-width:96px; background:transparent !important; box-shadow:none !important; color:#7A6A48 !important; opacity:.7; transition:color .2s, opacity .2s; }
html body .pmode .seg button.on { color:#F5EED9 !important; opacity:1; }
html body .pmode .seg.go1 button[data-pm="1"], html body .pmode .seg.go0 button[data-pm="0"] { color:#F5EED9 !important; opacity:1; }
html body .pmode .seg.go1 button[data-pm="0"], html body .pmode .seg.go0 button[data-pm="1"] { color:#7A6A48 !important; opacity:.7; }
html body .pmode .seg button:disabled { opacity:.35; cursor:default; }
/* dark pending screen: gold-edged track, bright indigo knob */
html body.pend .mo.sv .pmode .seg { background:rgba(255,255,255,.07) !important; border:1.5px solid #E9C86A !important; }
html body.pend .mo.sv .pmode .seg::before { background:linear-gradient(180deg,#7B6CE0,#4F42B0); box-shadow:0 0 0 1px rgba(233,200,106,.6), 0 2px 8px rgba(0,0,0,.5); }
html body.pend .mo.sv .pmode .seg button { color:#A9A2D6 !important; }
html body.pend .mo.sv .pmode .seg button.on, html body.pend .mo.sv .pmode .seg.go0 button[data-pm="0"] { color:#fff !important; }
html body.pend .mo.sv .pmode .seg.go0 button[data-pm="1"] { color:#A9A2D6 !important; }

/* v23.1: the gaps between price columns stay see-through on sub-rows too (Evens Only, lengths, long lengths), so the dark pending stripes run unbroken */
html body .ctbl tr.prow td.gap, html body .ctbl tbody tr td.gap { background:transparent !important; border:0 !important; box-shadow:none !important; }

/* v23.2: the Show and SKU columns only pin when the table is actually scrolled sideways. At rest they are ordinary cells, so the iPad
   has nothing to redraw late while scrolling up and down (the SKU boxes no longer fill in after the rest of the row). */
html body .ctw:not(.stk) .ctbl th:nth-child(1), html body .ctw:not(.stk) .ctbl td:nth-child(1),
html body .ctw:not(.stk) .ctbl th:nth-child(2), html body .ctw:not(.stk) .ctbl td:nth-child(2),
html body .mgw:not(.stk) .mgt th:first-child, html body .mgw:not(.stk) .mgt td:first-child { position:relative !important; left:auto !important; }

/* v23.3: dead space under the last Cost Sheet table while the iPad keyboard is up (class set in core/shell.js) */
html.kbup .costwrap, html.kbup #cs-mo .cs-b { padding-bottom:65vh !important; }

/* v23.4: Month, Day, Year effective picker (shell.js epHTML) */
.effpick select.ep-dy, select.ep-dy { min-width:64px; }
#cs-mo .cs-eff select { margin-left:6px; font:500 13px 'Inter',sans-serif; padding:6px 8px; border:1.5px solid #BEB39B; border-radius:6px; background:#fff; color:#1A2620; }

/* v23.5: Review & Save dates. Space between the two boxes; stacked labels; checkbox on the left of the catalog row; catalog date greyed while "same day" is ticked */
.mo.sv .effpick.eppg, .mo.sv .effpick.epcat { vertical-align:top; margin:0 14px 12px 0 !important; min-width:0 !important; }
.mo.sv .effpick .epl { line-height:1.5; margin-right:6px !important; }
.mo.sv .effpick label.epsame { display:inline-flex; align-items:center; gap:12px; cursor:pointer; margin-right:6px !important; line-height:1.35; }
.mo.sv .effpick label.epsame input { width:20px; height:20px; margin:0; accent-color:#1E6B3A; cursor:pointer; flex:0 0 auto; }
.mo.sv .effpick label.epsame span { display:flex; flex-direction:column; gap:3px; }
.mo.sv .effpick label.epsame small { font-size:9.5px; letter-spacing:.14em; font-weight:600; opacity:.8; }
.mo.sv .effpick select:disabled { opacity:.42; cursor:not-allowed; filter:grayscale(1); }
.mo.sv .effpick select { min-width:0 !important; }

/* v23.6: Review & Save on Live: a centred "Live pricing" label (the catalog date row shows only for a pending set) */
.mo.sv .livepill, .livepill { display:flex; justify-content:center; margin:0 0 14px; }
.mo.sv .livepill span, .livepill span { display:inline-flex; align-items:center; gap:9px; padding:8px 18px; border-radius:7px; background:#1E5A34; border:1.5px solid #174A2A; color:#F4EFDF; font:800 11px 'JetBrains Mono',ui-monospace,monospace; letter-spacing:.18em; text-transform:uppercase; }
.mo.sv .livepill span::before, .livepill span::before { content:''; width:8px; height:8px; border-radius:50%; background:#7CDB8F; box-shadow:0 0 0 3px rgba(124,219,143,.25); }

/* v23.7: the asterisk note at the right end of each Review & Save date box */
.mo.sv .effpick .epnote { max-width:190px; margin-left:6px; font:italic 500 12px/1.4 Inter,system-ui,sans-serif; letter-spacing:0; text-transform:none; color:#6B5528; }

/* v24.0: the same label above the price grid on the Cost Sheet while on Live */
.livepill.cslive { margin:4px 0 14px; }

/* v24.2: read-only Live on the Cost Sheet */
.costwrap.rl-lock input:disabled, .costwrap.rl-lock select:disabled, .costwrap.rl-lock textarea:disabled { cursor:not-allowed; opacity:.78; background-color:rgba(255,255,255,.35) !important; }
.costwrap.rl-lock button:disabled { opacity:.4; cursor:not-allowed; }
.rlbar { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin:-4px auto 16px; max-width:900px; padding:10px 16px; border:1px solid #BFD3C3; background:#EEF6EF; border-radius:8px; color:#1F3A27; font:500 13px/1.45 Inter,system-ui,sans-serif; text-align:center; }
.rlbar span { flex:1 1 320px; }
.rlbar .rlb { font:700 12px Inter,sans-serif; padding:8px 14px; border-radius:6px; border:1.5px solid #1E5A34; background:#fff; color:#1E5A34; cursor:pointer; white-space:nowrap; }
.rlbar .rlb.go { background:#1E5A34; color:#F4EFDF; }
.costwrap.rl-fix .rlbar { background:#FFF4DC; border-color:#E2BE6A; color:#5A3E08; }
.costwrap.rl-fix .rlbar .rlb { border-color:#8A6414; color:#8A6414; }
.livepill.fixing span { background:#B5781A; border-color:#8A5A10; }
/* v24.2 Jambs: read-only Live, tariff in the Cost + tariff header, the date in Review & Save */
#cs-mo #cs-b.rl-lock input:disabled, #cs-mo #cs-b.rl-lock select:disabled { cursor:not-allowed; opacity:.78; }
#cs-mo #cs-b.rl-lock button:disabled { opacity:.4; cursor:not-allowed; }
#cs-mo .cs-tbl th.thtar { min-width:92px; line-height:1.35; }
#cs-mo .cs-tbl th.thtar .cs-pc { display:flex; align-items:center; justify-content:center; gap:3px; margin:6px auto 0; }
#cs-mo .cs-tbl th.thtar input { width:46px; text-align:center; font:800 14px 'JetBrains Mono',monospace; padding:3px 2px; border-radius:4px; border:1px solid #9C8753; background:#FFFDF6; color:#B3261E; }
#cs-mo .cs-rvdate { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0 0 16px; padding:12px 16px; border:1px solid #D9CDB0; border-radius:8px; background:#FBF6E8; }
#cs-mo .cs-rvdate .livepill { flex:1 0 100%; margin:0 0 4px; }
#cs-mo .cs-rvdate .epl { font:800 10.5px 'JetBrains Mono',monospace; letter-spacing:.14em; text-transform:uppercase; line-height:1.5; color:#5A461C; }
#cs-mo .cs-rvdate select { font:500 13px Inter,sans-serif; padding:6px 8px; border:1.5px solid #BEB39B; border-radius:6px; background:#fff; }
#cs-mo .cs-rvdate .epnote { max-width:300px; font:italic 500 12px/1.4 Inter,sans-serif; color:#6B5528; }
#cs-mo .cs-rvdate .cs-today { font:700 15px Inter,sans-serif; }
#cs-mo .rlbar.fix { background:#FFF4DC; border-color:#E2BE6A; color:#5A3E08; }

/* v24.3 (Allan): the "Live is view-only" bar is black with a gold border; its buttons are gold */
.rlbar, #cs-mo .rlbar { background:linear-gradient(180deg,#1C1A15,#0D0C09) !important; border:1.5px solid #C9A84C !important; color:#E9E2CF !important; box-shadow:0 0 0 1px rgba(201,168,76,.18), 0 6px 18px rgba(0,0,0,.22); }
.rlbar b, #cs-mo .rlbar b { color:#E8C96A; }
.rlbar .rlb, #cs-mo .rlbar .rlb { background:transparent !important; color:#E8C96A !important; border:1.5px solid #C9A84C !important; letter-spacing:.02em; transition:background .15s, color .15s, transform .1s; }
.rlbar .rlb:hover, #cs-mo .rlbar .rlb:hover { background:rgba(232,201,106,.12) !important; }
.rlbar .rlb.go, #cs-mo .rlbar .rlb.go { background:linear-gradient(180deg,#F0D27A,#C9A84C) !important; color:#1A1408 !important; border-color:#E8C96A !important; box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 2px 6px rgba(0,0,0,.35); }
.rlbar .rlb:active { transform:translateY(1px); }
/* while fixing today's prices: same black bar, amber edge */
.costwrap.rl-fix .rlbar, #cs-mo .rlbar.fix { background:linear-gradient(180deg,#1C1A15,#0D0C09) !important; border-color:#E39A2D !important; color:#F2E6CC !important; }
.costwrap.rl-fix .rlbar .rlb, #cs-mo .rlbar.fix .rlb { color:#F2B04A !important; border-color:#E39A2D !important; }

/* v24.3 (Allan): Live on the Live / Pending switch is deep green; Pending keeps its purple */
html body .pmode .seg::before { background:linear-gradient(180deg,#1F6B3D,#0E3B21) !important; }
html body .pmode .seg:has(button[data-pm="1"].on)::before, html body .pmode .seg.go1::before { background:linear-gradient(180deg,#7B6CE0,#4F42B0) !important; }
html body .pmode .seg.go0::before { background:linear-gradient(180deg,#1F6B3D,#0E3B21) !important; }
html body .pmode .seg { border-color:#0E3B21 !important; }
html body.pend .mo.sv .pmode .seg { border-color:#E9C86A !important; }
#cs-mo .cs-seg button[data-v="live"].on { background:linear-gradient(180deg,#1F6B3D,#0E3B21); color:#F4EFDF; }
#cs-mo .cs-seg button[data-v="pend"].on { background:linear-gradient(180deg,#7B6CE0,#4F42B0); color:#fff; }
.mo.sv .livepill.fixing span, .livepill.fixing span { background:linear-gradient(180deg,#C98A22,#9A6512) !important; border-color:#7A4E0C !important; } /* v24.3: amber label while fixing (was losing to the green rule) */

/* v25.0 (Allan): the Jambs Cost Sheet matches the others. Pending is the dark night-indigo screen; the tables keep their cream cells. */
#cs-mo.pend .cs-box { background:radial-gradient(ellipse 120% 70% at 50% 0%,#2C2558 0%,transparent 65%),linear-gradient(180deg,#1B1838 0%,#131128 100%) !important; color:#ECE8FF; box-shadow:0 0 0 1.5px #6D5FC7,0 28px 80px rgba(0,0,0,.55); }
#cs-mo.pend .cs-h, #cs-mo.pend .cs-f { background:linear-gradient(180deg,#2A2452,#211C45) !important; border-color:#4C4396 !important; color:#F2EEFF; }
#cs-mo.pend .cs-t, #cs-mo.pend .cs-t i { color:#F2EEFF; } #cs-mo.pend .cs-t i { color:#FFD46B; }
#cs-mo.pend .cs-x { color:#CFC8F5; }
#cs-mo.pend .cs-note, #cs-mo.pend .cs-set, #cs-mo.pend .cs-wiz small { color:#CFC8F5; } #cs-mo.pend .cs-note b { color:#fff; }
#cs-mo.pend .pmode { background:rgba(255,255,255,.06) !important; border-color:#6D5FC7 !important; color:#ECE8FF; }
#cs-mo.pend .pmode .pnote, #cs-mo.pend .pmode .pnote b { color:#E6E1FF !important; }
#cs-mo.pend .pmode .seg { background:rgba(255,255,255,.07) !important; border:1.5px solid #E9C86A !important; }
#cs-mo.pend .pmode .seg::before { background:linear-gradient(180deg,#7B6CE0,#4F42B0) !important; box-shadow:0 0 0 1px rgba(233,200,106,.6),0 2px 8px rgba(0,0,0,.5); }
#cs-mo.pend .pmode .seg button { color:#A9A2D6 !important; } #cs-mo.pend .pmode .seg button.on { color:#fff !important; }
#cs-mo.pend .cs-wiz { background:rgba(255,212,107,.10); border:1px solid #6D5FC7; color:#F2EEFF; }
#cs-mo.pend .cs-tabs>button { background:transparent; color:#ECE8FF; border-color:#8C80E0; }
#cs-mo.pend .cs-tabs>button.on { background:#FFD46B; color:#1B1838; border-color:#FFD46B; }
#cs-mo.pend .cs-f .cs-btn:not(.gold):not(.red) { background:transparent; color:#ECE8FF; border-color:#8C80E0; }
#cs-mo.pend .cs-lt, #cs-mo.pend h4, #cs-mo.pend .cs-lhead, #cs-mo.pend .cs-line { color:#F4F1FF; }
#cs-mo.pend .cs-btn.sm { background:transparent; color:#ECE8FF; border-color:#8C80E0; }
#cs-mo.pend .cs-rvdate { background:rgba(255,255,255,.06); border-color:#6D5FC7; } #cs-mo.pend .cs-rvdate .epl, #cs-mo.pend .cs-rvdate .epnote { color:#E6E1FF; }
/* Jambs uses the same Live / Pending switch, pending band and "waiting" note as the other Cost Sheets */
#cs-mo .pmode { margin-bottom:14px; } #cs-mo .pmode .cs-rnd { margin-left:auto; }
#cs-mo .pendband { margin-bottom:14px; }
#cs-mo.pend .cs-grp, #cs-mo.pend .cs-grp span { color:#F4F1FF !important; border-color:#8C80E0 !important; }
#cs-mo.pend .cs-tw, #cs-mo.pend .cs-tbl { color:#1A2620; } #cs-mo.pend .cs-tbl td.sku { color:#1A2620; }

/* v25.3 (Allan): on Live, a flashing red arrow points from "A pending price set is waiting" back at the Pending toggle */
.pmode .pendwait::before { content:''; flex:0 0 auto; width:46px; height:28px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 28'%3E%3Cpath d='M1 14 L16 1 V9 H45 V19 H16 V27 Z' fill='%23C62828'/%3E%3C/svg%3E") no-repeat center/contain; animation:pwArrow 1s ease-in-out infinite; }
@keyframes pwArrow { 0%,100% { transform:translateX(0); opacity:1; } 50% { transform:translateX(-7px); opacity:.35; } }
@media (prefers-reduced-motion:reduce){ .pmode .pendwait::before { animation:none; } }

/* v25.3 (Allan): tariff boxes on every sheet: a zero shows faded gold, any real number shows deep red */
input.tarbox { color:#B3261E !important; -webkit-text-fill-color:#B3261E !important; }
input.tarbox.tz { color:rgba(184,146,46,.6) !important; -webkit-text-fill-color:rgba(184,146,46,.6) !important; }

/* v25.9: a sheet shown inside the catalog's Edit set window: no page bar scrolling behind the Cost Sheet */
html.embedded body { overflow:hidden; }

/* v29.4: the reversed pill (page ahead of the catalog): same gold, a green dot */
#aheadpill{text-transform:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:5px;border:1px solid #B08935;background:linear-gradient(180deg,#F6E39C,#D9B95A);color:#1A1408;font:600 12px 'Inter',sans-serif;letter-spacing:.01em;white-space:nowrap;vertical-align:middle;margin-left:8px}
#aheadpill .pp-st{display:flex;flex-direction:column;gap:1px;text-align:left}#aheadpill .pp-st strong{font:800 13px 'Inter',sans-serif;letter-spacing:.02em}#aheadpill .pp-st em{font:500 11px 'Inter',sans-serif;font-style:normal;opacity:.9}#aheadpill .pp-st em b{font-weight:800}
#aheadpill i{width:8px;height:8px;border-radius:50%;background:#1E6B3A;box-shadow:0 0 0 2px rgba(30,107,58,.25)}
#aheadpill u{text-decoration:none;font-weight:700;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;border-left:1px solid rgba(26,20,8,.3);padding-left:8px;margin-left:2px;opacity:.85;display:inline-flex;align-items:center;gap:4px;text-align:left}
#aheadpill u svg{width:9px;height:9px}#aheadpill:hover{filter:brightness(1.06)}
