/* Release in four steps (web/release-steps.js; Bharat 21 Nov 2026). The Focus rules + Apple Numbers tables: a titled
   table, a quiet shaded header, hairline grid, numbers right-aligned with tabular figures, blanks blank, red only for
   "needed", a totals footer row. Desk tokens only (app.css). */
.rs-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 12px 0 10px; font-size: 13px; }
.rs-steps li { padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.rs-steps li.now { background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.rs-steps li.past button, .rs-steps li.past span { color: var(--acc-text); }
.rs-steps b { font-weight: 600; }
.rs-step { display: flex; flex-direction: column; gap: 4px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.rs-chips span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rs-chips .red { background: var(--red-soft); color: var(--red); font-weight: 600; }
.rs-chips .green { background: var(--green-soft); color: var(--green); }
.rs-ttl { font-size: 14px; font-weight: 600; margin: 12px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.rs-ttl span { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.rs-sub { color: var(--muted); font-size: 12px; }
.rs-needw { color: var(--red); font-weight: 600; }
.rs-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }

/* the tables */
.rs-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--card); }
.rs-step > .rs-t { border: 1px solid var(--line); }
.rs-t th, .rs-t td { padding: 0 8px; height: 34px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: left; white-space: nowrap; vertical-align: middle; }
.rs-t th:last-child, .rs-t td:last-child { border-right: 0; }
.rs-t th { height: 28px; background: var(--fill); color: var(--muted); font-weight: 500; font-size: 12px; }
.rs-t .grp th { height: 22px; font-size: 11px; text-align: center; text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; }
.rs-t .r { text-align: right; }
.rs-t td.rs-na { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--fill) 6px 7px); }
.rs-t td.rs-need { background: var(--red-soft); }
.rs-t td.rs-ed .v3-val { padding: 0; font-size: 13px; }
/* an empty cell is a tap target too (Esha, 21 Nov 2026: remarks couldn't be typed - the empty button was 0 px tall) */
.rs-t td.rs-ed .v3-val { display: block; width: 100%; min-width: 48px; min-height: 22px; }
.rs-t td.r .v3-val { text-align: right; }
.rs-t td .v3-val b { font-weight: 500; }
.rs-t td.rs-ed:hover { background: var(--acc-soft); }
.rs-t .v3-in { height: 28px; padding: 0 6px; font-size: 13px; width: 100%; min-width: 90px; }
.rs-t td.green { color: var(--green); } .rs-t td.amber { color: var(--amber); } .rs-t td.red { color: var(--red); font-weight: 600; }
.rs-kv td.lab { background: var(--fill); color: var(--muted); width: 150px; font-size: 12.5px; }
.rs-kv { border: 1px solid var(--line); margin-bottom: 4px; }
.rs-grid tbody tr:hover td { background: color-mix(in srgb, var(--acc-soft) 40%, transparent); }
.rs-tot td { background: var(--fill); font-weight: 600; border-bottom: 0; }
.rs-add td { color: var(--acc-text); }
.rs-add input { width: min(560px, 70%); height: 28px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit;
  font-size: 13px; background: var(--card); margin-right: 8px; }
.rs-x { color: var(--muted); font-size: 15px; padding: 0 4px; }
.rs-stops { margin: 8px 0 0; padding: 8px 12px 8px 28px; background: var(--red-soft); color: var(--red); border-radius: 8px; font-size: 13px; }

/* customer */
.rs-box { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px 14px; margin-bottom: 6px; }
.rs-box .rs-ttl { margin-top: 0; }
.rs-cand { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rs-search { display: flex; gap: 8px; margin-top: 8px; }
.rs-search input { flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: var(--card); }

/* the flow (step 3) */
.rs-flow { display: flex; align-items: stretch; overflow-x: auto; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); margin-bottom: 6px; }
.rs-nd { display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel, var(--card)); color: var(--ink); text-decoration: none; }
.rs-nd.on { border-color: var(--acc); cursor: pointer; }
.rs-nd b { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.rs-ar { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 6px; color: var(--muted); min-width: 44px; gap: 2px; }
.rs-plus { border: 1px dashed var(--acc); color: var(--acc-text); background: none; border-radius: 999px; width: 22px; height: 22px;
  line-height: 18px; padding: 0; cursor: pointer; }
.rs-ar select { font: inherit; font-size: 12px; }
.rs-pline { margin-top: 6px; }
.rs-sec { border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--card); padding: 8px 12px; margin: 6px 0;
  border-radius: 0 8px 8px 0; scroll-margin-top: 16px; }
.rs-sec.pe { border-left-color: var(--rv3-pe, #0b6b80); } .rs-sec.slit { border-left-color: var(--rv3-slit, #2f7d3b); }
.rs-sec.sheet { border-left-color: var(--rv3-sheet, #4943b5); }
.rs-sh { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.rs-sh b { font-size: 13.5px; font-weight: 600; }
.rs-sec .v3-pic { display: block; margin: 6px 0 12px; }   /* the drawings on step 3 (Esha, 22 Nov 2026) */
.rs-sec .jf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rs-sec .jf-cell { padding: 3px 4px 4px; }
.rs-sec .jf-sec { margin: 8px 0 2px; }

/* the foot */
.rs-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-top: 8px;
  background: var(--ground); border-top: 1px solid var(--line); z-index: 2; }
.rs-why { flex: 1; color: var(--muted); font-size: 13px; }
.rs-why.need { color: var(--red); }
@media (max-width: 640px) {
  .rs-sec .jf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-foot .v3-go { white-space: normal; line-height: 1.25; height: auto; min-height: 44px; font-size: 13.5px; }
  .rs-kv td.lab { width: 110px; }
}
.rs-t .v3-val { font-size: 13px; padding: 0; }
.rs-t .v3-val b { font-weight: 500; }
.rs-back { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: var(--amber-soft); color: #6b4a10; font-size: 13px; }
.rs-asks { margin: 8px 0 0; padding: 8px 12px 8px 28px; background: var(--amber-soft); color: #6b4a10; border-radius: 8px; font-size: 13px; }
.rs-asks li { margin: 2px 0; }
.rs-asks .btn { margin-left: 6px; }
.rs-pc { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rs-caret { display: inline-block; width: 5px; height: 5px; border-right: 1.3px solid var(--muted); border-bottom: 1.3px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); }
.rs-srch { display: block; min-width: 170px; }      /* quality / GSM search box in a cell (Esha, 21 Nov 2026) */
.rs-srch .v3-in { width: 100%; }
.rs-t td.rs-pick { position: relative; padding-right: 20px; }
.rs-t td.rs-pick::after { content: ""; position: absolute; right: 8px; top: 50%; width: 5px; height: 5px;
  border-right: 1.3px solid var(--muted); border-bottom: 1.3px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.rs-t td.rs-pick:has(select)::after { display: none; }
.rs-t td.rs-in { padding: 0 4px; }
.rs-t td.rs-in input, .rs-t td.rs-in select { width: 100%; min-width: 64px; height: 28px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 6px; font: inherit; font-size: 13px; background: var(--card); }
.rs-err { color: var(--red); font-size: 12.5px; margin-left: 8px; }
.rs-words { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.rs-words input { flex: 1 1 360px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit;
  font-size: 13px; background: var(--card); }
/* one-press Release (Esha, 21 Nov 2026): open counts on the tabs, "How it's made" under the grid */
.rs-cnt { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--red-soft, rgba(224,103,95,.15)); color: var(--red, #e0675f); font-size: 11px; font-weight: 600; text-align: center; }
.rs-how { margin: 16px 0 4px; }
.rs-howl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rs-howl:last-child { border-bottom: 0; }
.rs-howa { margin-left: auto; font-size: 12px; }
.rs-howl .need { color: var(--red, #e0675f); }

/* Step 1 by type and packing (Esha, 21 Nov 2026): one table per type + packing, remarks behind one button */
.rs-grp { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 14px; overflow: hidden; }
.rs-grp .rs-scroll { border: 0; border-radius: 0; }
.rs-grph { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rs-grph b { font-weight: 600; font-size: 14px; }
.rs-gchip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.rs-gsum { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-rk { width: 30px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; }
.rs-rk:hover { border-color: var(--acc, #3fb39c); color: var(--acc-text, #3fb39c); }
.rs-rk.has { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); font-size: 12px; }
.rs-rmrow > td { background: var(--card-2, rgba(255,255,255,.03)); padding: 12px 14px !important; border-top: 1px dashed var(--line) !important; }
.rs-rmgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; position: sticky; left: 14px; max-width: min(1100px, calc(100vw - 140px)); }
.rs-rml { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.rs-rmc { width: 100%; }
.rs-rmc td { border: 1px solid var(--line) !important; border-radius: 8px; min-height: 30px; background: var(--card, transparent); }
.rs-addt { margin-bottom: 6px; }

/* the design's calm row (Esha, 21 Nov 2026): the product code under the line, quietly */
.rs-coderow td { padding-top: 0 !important; padding-bottom: 8px !important; border-top: 0 !important; font-size: 11.5px; }
.rs-grid tr:has(+ .rs-coderow) td { border-bottom: 0; }

/* an error stays until closed (Esha, 21 Nov 2026) */
.v3-errbar { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--red-soft); color: var(--red); font-size: 13.5px; }
.v3-errbar span { flex: 1; }
.v3-errbar button { font-size: 18px; line-height: 1; color: inherit; }

/* readable in the dark theme (Esha, 21 Nov 2026): the Packing note on the sheeting job, the amber asks */
.v3-pack { background: rgba(124,113,224,.10) !important; border: 1px solid rgba(124,113,224,.28); color: inherit; }
.v3-pack .v3-sub, .v3-pack b { color: inherit; }
.rs-asks { color: var(--amber) !important; background: var(--amber-soft) !important; }
.rs-asks b { color: inherit; }

/* Codes and processes (Esha, 22 Nov 2026): legend, codes folded, the open step marked, ▾ / ✎ on what can be changed */
.rs-legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.rs-legend b { font-weight: 600; }
.rs-codes { margin: 0 0 12px; font-size: 13px; }
.rs-codes summary { cursor: pointer; padding: 6px 0; }
.rs-nd.sel { border-color: var(--acc, #1f7a6a) !important; box-shadow: 0 0 0 1px var(--acc, #1f7a6a) inset; }
.jf-v.pick, .jf-v.type { border: 1px solid var(--line); border-radius: 8px; padding: 4px 26px 4px 8px; position: relative; text-align: left; min-height: 30px; background: var(--card, transparent); }
.jf-v.pick::after { content: "▾"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; }
.jf-v.type::after { content: "✎"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; }
.jf-v.ro { color: var(--muted); }
.jf-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.jf-facts b { color: var(--ink, inherit); font-weight: 500; }
.jf-more { margin-top: 8px; font-size: 12.5px; }

/* compact Sheeting card (Esha, 22 Nov 2026) */
.rs-shc { font-size: 13px; }
.rs-shfacts { color: var(--ink-2); }
.rs-shfacts b { color: var(--ink); font-weight: 600; }
.rs-shflow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 10px; color: var(--ink-2); }
.rs-chip { background: var(--fill); border: 1px solid var(--line); border-radius: 7px; padding: 1px 8px; }
.rs-chip.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--ink); }
.rs-arw { color: var(--muted); }
.rs-shbody { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.rs-shpic { border: 1px solid var(--line); border-radius: 10px; background: var(--fill); padding: 6px 6px 4px; text-align: center; }
.rs-shpic svg { width: 100%; height: auto; display: block; }
.rs-shpic .t { font-size: 10px; fill: var(--ink-2); }
.rs-shpic .d { stroke: var(--ink-2); stroke-width: .7; }
.rs-shpic .sh { fill: var(--rv3-sheet-soft, #eeecfb); stroke: var(--rv3-sheet, #4943b5); stroke-width: 1.4; }
.rs-shpic .cut { stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 4 3; }
.rs-shpic .g { stroke: var(--rv3-sheet, #4943b5); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.rs-shcap { font-size: 11px; color: var(--muted); margin-top: 2px; }
.rs-shrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; }
.rs-shrow.three { grid-template-columns: 1fr 1fr 2fr; }
.rs-calc { display: block; font-size: 12px; color: var(--muted); padding: 0 4px; }
.rs-shmulti { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--amber); background: var(--amber-soft); border-radius: 9px; }
.rs-shmulti .rs-sub { color: var(--amber); margin-bottom: 2px; }
.rs-shpack { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.rs-shpack b { color: var(--ink-2); font-weight: 500; }
.rs-shmore { margin-top: 8px; font-size: 12.5px; display: block; }
.rs-shdet { display: flex; gap: 18px; margin: 6px 0; color: var(--muted); font-size: 12.5px; }
.rs-shdet b { color: var(--ink); font-weight: 500; }
@media (max-width: 720px) { .rs-shbody { grid-template-columns: 1fr; } .rs-shpic { max-width: 200px; } .rs-shrow, .rs-shrow.three { grid-template-columns: 1fr 1fr; } }

/* compact PE coating and Slitting cards (Esha, 22 Nov 2026) */
.rs-shrow2 { margin-top: 6px; }
.rs-widepic { margin: 0 0 10px; max-width: 640px; }
.rs-pepic { padding: 6px; }
.rs-shbody:has(.rs-pepic) { grid-template-columns: 210px minmax(0, 1fr); }
.rs-pepic .rv3-pecross__sum, .rs-pepic figcaption { display: none; }   /* said once, in the facts line */
.rs-pepic figure { margin: 0; }
.rs-pepic svg { width: 100%; height: auto; display: block; }
.rs-widepic .rv3-pecross__sum, .rs-widepic figcaption { display: none; }
.rs-widepic figure { margin: 0 0 6px; }

/* Add a line with every column (Esha, 22 Nov 2026) */
.rs-addt select, .rs-addt input { min-width: 0; }
.rs-addt .w-type { width: 84px; } .rs-addt .w-q { width: 190px; } .rs-addt .w-n { width: 72px; } .rs-addt .w-s { width: 38px; margin-left: 4px; }
.rs-addt .w-rm { width: 150px; }
.rs-addt select { min-width: 110px; }
.rs-addt input[type=date] { width: 132px; }
.rs-addt .rs-chk { white-space: nowrap; font-size: 12.5px; }
.rs-addt .rs-chk input[type=checkbox] { vertical-align: -2px; }
.rs-addnote { margin: 4px 0 10px; }
.rs-t.rs-addt td.rs-in input.w-q { width: 190px; } .rs-t.rs-addt td.rs-in select.w-type { width: 90px; }
.rs-t.rs-addt td.rs-in input.w-n { width: 76px; } .rs-t.rs-addt td.rs-in input.w-rm { width: 160px; }
.rs-t.rs-addt td.rs-in select { min-width: 120px; } .rs-t.rs-addt td.rs-in input[type=date] { width: 136px; }
.rs-t.rs-addt td.rs-chk input[type=checkbox] { width: 15px; height: 15px; min-width: 0; padding: 0; margin: 0 4px 0 0; }
.rs-t.rs-addt td.rs-chk input.w-s { width: 42px; height: 26px; margin-left: 4px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font: inherit; }
.rs-t.rs-addt td.rs-chk label { display: inline-flex; align-items: center; color: var(--ink); }

/* a line's PE questions wait on its PE coating step (Esha, 22 Nov 2026) */
.rs-askpe { display: flex; gap: 12px; align-items: center; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-size: 13px; font-weight: 600; }

/* the table's packing as a list (Esha, 22 Nov 2026) */
select.rs-gpick { border: 1px solid var(--line); border-radius: 999px; padding: 2px 26px 2px 10px; font: inherit; font-size: 12px; background-color: var(--card); color: var(--ink); cursor: pointer; }

/* the order timer (Esha, 22 Nov 2026: 15-second goal) */
.v3-timing { margin: 2px 0 8px; font-size: 13px; padding: 6px 10px; border-radius: 8px; display: inline-block; }
.v3-timing.ok { background: var(--acc-soft, #E3F1EC); color: var(--acc-text, #0F5A4E); }
.v3-timing.slow { background: var(--amber-soft); color: var(--amber); }

/* Add a line: behind + Add a line, the extras behind + (Esha, 22 Nov 2026) */
.rs-addbtn { margin: 10px 0 6px; }
.rs-ttl .rs-addx { margin-left: 12px; font-size: 12.5px; }
.rs-addmore { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 8px 4px; }
.rs-am { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.rs-am > span:first-child { color: var(--muted); font-size: 11.5px; }
.rs-am input[type=checkbox] { width: 15px; height: 15px; vertical-align: -2px; }
.rs-am .w-s { width: 42px; height: 26px; margin-left: 4px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font: inherit; }
.rs-am .w-rm, .rs-am .w-n { height: 28px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; }
.rs-am .w-rm { width: 220px; } .rs-am .w-n { width: 90px; }

/* PE coating card, compact (Esha, 22 Nov 2026): the PE layer and the trim bar side by side, six fields in one row */
.rs-pepair { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: center; }
.rs-pepair > :only-child { grid-column: 1 / -1; max-width: 360px; }
.rs-pepair svg { max-width: 100%; height: auto; }
.rs-widepic:has(.rs-pepair) { max-width: none; }
.rs-shrow.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .rs-pepair { grid-template-columns: 1fr; } .rs-shrow.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* which quality for a new code (Esha, 22 Nov 2026) */
.rs-qask { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--amber); background: var(--amber-soft); border-radius: 10px; font-size: 13px; }
.rs-qbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Copy WhatsApp text says what happened (Esha, 22 Nov 2026) */
.v3-wacopy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.v3-okword { color: var(--acc-text, #0F5A4E); font-weight: 600; }

/* change a refused reel on the stopped allocation step (Esha, 22 Nov 2026) */
.v3-swap { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.v3-swap .v3-sub { margin: 8px 0; }
