/* =====================================================================
   รอบ 39: ตรวจนับสต็อกเป็นรอบ (/stock-counts) — StockCounts.razor + StockCountPrint.razor
   - รายการรอบนับ (.sc-table) | หน้าจอนับ (.sc-count: แถบสแกน, แถวสินค้า .sc-row, แถบล่าง .sc-foot) | แป้นตัวเลข (.sc-pad)
   - พิมพ์: html[data-print="sc"] → พิมพ์เฉพาะ .sc-print บนกระดาษ A4 (ผูกด้วย :has() จึงไม่กระทบการพิมพ์หน้าอื่น)
   ===================================================================== */

@media screen {
  /* ---------- ป้ายสถานะ / ตัวเลข ---------- */
  .sc-st {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--chip); color: var(--muted);
  }
  .sc-st::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
  .sc-st.sc-open { background: var(--warn-soft); color: #8A5A00; }
  .sc-st.sc-posted { background: var(--ok-soft); color: var(--ok); }
  .sc-st.sc-cancelled { background: var(--chip); color: var(--muted); }
  .sc-blind-tag {
    display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    border: 1px dashed var(--line); color: var(--muted); font-size: .72rem; font-weight: 600; white-space: nowrap; vertical-align: middle;
  }
  .sc-pos { color: var(--ok); }
  .sc-neg { color: var(--danger); }
  .sc-n { margin-left: 4px; font-weight: 700; opacity: .75; }
  .sc-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
  .sc-chips .chip { display: inline-flex; align-items: center; }
  .sc-chip-var:not(.on) { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }

  .sc-prog { display: block; width: 100%; max-width: 220px; height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; }
  .sc-prog i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .25s; }

  /* ---------- หน้ารายการ ---------- */
  .sc-new-btn { gap: 6px; }
  .sc-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .sc-bar-note { margin-left: auto; }
  .sc-table .sc-c-no strong { font-size: .95rem; }
  .sc-table .sc-ltitle { font-weight: 600; color: var(--ink); }
  .sc-table .sc-c-prog { min-width: 170px; }
  .sc-table .sc-c-prog small { display: block; margin-top: 3px; }
  .sc-table tr.sc-cancelled td { color: var(--muted); }
  .sc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; }
  .sc-empty p { max-width: 560px; margin: 0 0 6px; }
  .fit-stat.bad strong { color: var(--danger); }

  /* ---------- หน้าจอนับ: หัว ---------- */
  .sc-chead { align-items: flex-start; }
  .sc-ctitle { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
  .sc-ctitle-text { min-width: 0; }
  .sc-ctitle h1 { font-size: 1.45rem; overflow-wrap: anywhere; }
  .sc-back { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--chip); border: 0; color: var(--ink); display: grid; place-items: center; cursor: pointer; margin-top: 2px; }
  .sc-cmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: .85rem; }
  .sc-cmeta .sc-blind-tag { margin-left: 0; }
  .sc-tool { gap: 6px; }
  .sc-closed-note {
    display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 10px 14px; border-radius: 12px;
    background: var(--chip); color: var(--muted); font-size: .92rem;
  }
  .sc-closed-note.ok { background: var(--ok-soft); color: var(--ok); }

  /* แถบสแกน/ค้นหา */
  .sc-scanbar { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
  .sc-scan { flex: 1 1 auto; width: auto; min-width: 0; min-height: 50px; border-width: 2px; }
  .sc-scan input { font-size: 17px; }
  .sc-mode {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 12px;
    border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  }
  .sc-mode-dot { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; }
  .sc-mode-dot::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 999px; background: var(--surface); transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
  .sc-mode.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong, var(--brand)); }
  .sc-mode.on .sc-mode-dot { background: var(--brand); }
  .sc-mode.on .sc-mode-dot::after { left: 17px; }
  .sc-scan-help { margin: -6px 2px 0; }
  .sc-mode-short, .sc-short { display: none; }

  .sc-flash {
    display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px;
    background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .92rem; animation: sc-pop .18s ease-out;
  }
  .sc-flash > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .sc-flash.bad { background: var(--danger-soft); color: var(--danger); }
  .sc-flash-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgba(127,127,127,.14); color: inherit; cursor: pointer; }
  @keyframes sc-pop { from { transform: translateY(-4px); opacity: .4; } to { transform: none; opacity: 1; } }

  .sc-cbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
  .sc-group { grid-template-columns: repeat(3, auto); flex: none; }
  .sc-group button { padding: 6px 14px; white-space: nowrap; }

  /* ---------- รายการสินค้า ---------- */
  .sc-cbody { gap: 10px; }
  .sc-list {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 0; min-width: 0;
  }
  .sc-row {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) 390px; gap: 8px 14px; align-items: center;
    padding: 10px 16px; border-top: 1px solid var(--line); position: relative;
  }
  .sc-row:first-child, .sc-group-head + .sc-row, .sc-row-head + .sc-row { border-top: 0; }
  .is-mgr .sc-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr) minmax(0, .6fr) minmax(0, .6fr) 390px; }
  .is-mgr.is-closed .sc-row, .is-closed .sc-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .6fr) minmax(0, .6fr); }
  .is-closed:not(.is-mgr) .sc-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .sc-row.done { background: color-mix(in srgb, var(--ok) 5%, transparent); }
  .sc-row.short::before, .sc-row.over::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--danger); }
  .sc-row.over::before { background: var(--ok); }
  .sc-row-head {
    position: sticky; top: 0; z-index: 2; background: var(--surface); padding-top: 8px; padding-bottom: 8px;
    font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; box-shadow: inset 0 -1px 0 var(--line);
  }
  .sc-group-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 16px;
    background: var(--chip); color: var(--ink); font-weight: 700; font-size: .85rem;
  }
  .sc-group-head small { color: var(--muted); font-weight: 600; }

  .sc-prod {
    display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 0; border: 0; background: none;
    font: inherit; color: inherit; text-align: left; cursor: pointer;
  }
  .sc-prod:disabled { cursor: default; }
  .sc-check {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px;
    border: 2px solid var(--line); color: #fff;
  }
  .done .sc-check { background: var(--ok); border-color: var(--ok); }
  .sc-prod-text { display: flex; flex-direction: column; min-width: 0; }
  .sc-prod-text strong { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
  .sc-prod-text small { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .78rem; }
  .sc-prod:not(:disabled):hover strong { color: var(--brand); }
  .sc-zone { padding: 0 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong, var(--brand)); font-weight: 700; }

  .sc-counted, .sc-sys, .sc-var { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .sc-counted strong { font-size: 1rem; }
  .sc-pretty { color: var(--ink); font-weight: 600; font-size: .8rem; }
  .sc-by { font-size: .74rem; }
  .sc-note { font-size: .76rem; color: #8A5A00; overflow-wrap: anywhere; }
  .sc-todo { font-size: .85rem; }
  .sc-sys .num, .sc-var strong { font-weight: 600; }
  .sc-var small { font-size: .78rem; font-weight: 600; }
  .sc-lbl { display: none; font-size: .72rem; color: var(--muted); }

  .sc-entry { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
  .sc-entry select.sc-unit {
    width: 116px; min-height: 38px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem;
  }
  .sc-unit1 { min-width: 60px; padding: 0 4px; color: var(--muted); font-size: .88rem; text-align: right; white-space: nowrap; }
  .sc-qin {
    width: 82px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; text-align: right;
  }
  .sc-qin:focus, .sc-entry select.sc-unit:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
  .sc-entry .btn.small { min-height: 38px; padding: 6px 12px; white-space: nowrap; }
  .sc-entry .sc-clear { flex: none; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); }
  .sc-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }

  /* แถบล่าง: ความคืบหน้า + ส่วนต่าง + ปุ่มผู้จัดการ */
  .sc-foot {
    flex: none; display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; padding: 12px 16px;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .sc-foot-prog { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; white-space: nowrap; }
  .sc-foot-prog .sc-prog { max-width: 260px; height: 10px; }
  .sc-foot-var { display: flex; flex-direction: column; line-height: 1.25; }
  .sc-foot-var strong { font-size: 1.15rem; }
  .sc-foot-acts { display: flex; gap: 8px; margin-left: auto; }
  .sc-cancel-btn { color: var(--danger); }

  /* ---------- แป้นตัวเลข ---------- */
  .sc-pad { display: flex; flex-direction: column; gap: 12px; }
  .sc-pad-prod { display: flex; flex-direction: column; gap: 2px; }
  .sc-pad-prod strong { font-size: 1.1rem; line-height: 1.3; }
  .sc-pad-now { font-size: .88rem; font-weight: 600; color: var(--ok); }
  .sc-pad-outside { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); color: #8A5A00; font-size: .78rem; font-weight: 600; }
  .sc-pad-units { display: flex; flex-wrap: wrap; gap: 8px; }
  .sc-pad-units button {
    display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 7px 14px; border-radius: 12px;
    border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; line-height: 1.25;
  }
  .sc-pad-units button small { font-size: .72rem; color: var(--muted); }
  .sc-pad-units button.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong, var(--brand)); }
  .sc-pad-display { display: flex; align-items: center; gap: 10px; padding: 4px 14px; border: 2px solid var(--brand); border-radius: 14px; background: var(--surface); }
  .sc-pad .sc-pad-display input, .mdl-body .sc-pad-display input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink);
    font: inherit; font-size: 2.1rem; font-weight: 700; text-align: right; padding: 4px 0;
  }
  .sc-pad-unit { flex: none; font-weight: 700; color: var(--muted); }
  .sc-pad-eq { min-height: 1.2em; margin-top: -6px; text-align: right; }
  .sc-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sc-key {
    min-height: 54px; border: 0; border-radius: 12px; background: var(--chip); color: var(--ink);
    font: inherit; font-size: 1.45rem; font-weight: 600; cursor: pointer; display: grid; place-items: center;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .sc-key:active { background: var(--brand-soft); }
  .sc-key.del { color: var(--muted); }
  .sc-pad-note input { font-size: 15px; }
  .sc-pad-acts .btn { min-width: 96px; }

  /* ---------- เปิดรอบใหม่ / ยืนยัน ---------- */
  .sc-new, .sc-post { display: flex; flex-direction: column; gap: 14px; }
  .sc-scope-seg { margin-top: 2px; }
  .sc-scope-seg button { padding: 9px 4px; }
  .sc-scope-hint { margin: -6px 0 0; }
  .sc-blind-opt {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    cursor: pointer; background: var(--surface);
  }
  .sc-blind-opt input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
  .sc-blind-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .sc-blind-opt small { font-size: .82rem; line-height: 1.45; }
  .sc-blind-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
  .sc-zero-opt:has(input:checked) { border-color: #B7791F; background: var(--warn-soft); }
  .sc-warn { background: var(--warn-soft); color: #7a5300; }
  .sc-post-sum { margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--chip); }
  .sc-post-sum > div { display: flex; justify-content: space-between; gap: 12px; }
  .sc-post-sum dt { color: var(--muted); }
  .sc-post-sum dd { margin: 0; font-weight: 600; text-align: right; }
  .sc-post-sum .total { padding-top: 6px; margin-top: 2px; border-top: 1px solid var(--line); }
  .sc-post-sum .total dd { font-size: 1.12rem; font-weight: 800; }
  .sc-result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .sc-result .sc-post-sum { align-self: stretch; text-align: left; }
  .sc-result-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
  .sc-result > strong { font-size: 1.15rem; }

  /* ตัวอย่างพิมพ์ */
  .sc-print-acts .check { margin-right: auto; }
  .sc-gap { display: none; }
}

/* ---------- จอคอม: รายการเลื่อนในกรอบ แถบล่างอยู่กับที่ ---------- */
@media screen and (min-width: 1025px) {
  .sc-count .fit-body > .sc-list { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .sc-scanbar { max-width: 980px; }
}

/* จอกลาง: ตัดความกว้างช่องกรอก */
@media screen and (min-width: 761px) and (max-width: 1280px) {
  .sc-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) 340px; gap: 8px 10px; }
  .is-mgr .sc-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, .55fr) minmax(0, .55fr) 340px; gap: 8px 10px; }
  .sc-entry select.sc-unit { width: 96px; }
  .sc-qin { width: 70px; }
  .sc-entry .btn.small { padding: 6px 9px; }
}

/* ---------- มือถือ: แถวเป็นการ์ด ช่องกรอกเต็มแถว ---------- */
@media screen and (max-width: 760px) {
  .sc-head .fit-tools .sc-new-btn span { white-space: nowrap; }
  .sc-bar-note { display: none; }
  .sc-table .sc-c-prog .sc-prog { max-width: none; }

  .sc-ctitle h1 { font-size: 1.2rem; }
  .sc-chead .context { display: block; font-size: .78rem; }
  .sc-ctools { justify-content: flex-start; }
  .sc-ctools .btn { flex: 1 1 0; }
  .sc-scanbar { position: sticky; top: 0; z-index: 6; margin: 0 -16px; padding: 8px 16px; background: var(--bg); }
  .sc-mode { padding: 0 10px; font-size: .82rem; white-space: nowrap; }
  .sc-mode-long { display: none; }
  .sc-mode-short { display: inline; }
  .sc-mode-dot { width: 30px; }
  .sc-mode.on .sc-mode-dot::after { left: 13px; }
  /* รอบ 98: คอลัมน์ + wrap ทำให้แถวชิปกว้างเท่าเนื้อหา (ชิปท้ายถูกตัด เลื่อนไม่ได้) → nowrap */
  .sc-cbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .sc-cbar .sc-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .sc-group { grid-template-columns: repeat(3, 1fr); }

  .sc-list { border-radius: 14px; }
  .sc-row-head { display: none; }
  .sc-row, .is-mgr .sc-row, .is-closed .sc-row, .is-closed:not(.is-mgr) .sc-row {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prod counted" "sys var" "entry entry";
    gap: 8px 10px; padding: 12px 14px;
  }
  .sc-count:not(.is-mgr) .sc-row { grid-template-areas: "prod counted" "entry entry"; }
  .sc-prod { grid-area: prod; }
  .sc-counted { grid-area: counted; align-items: flex-end; text-align: right; max-width: 46vw; }
  .sc-sys { grid-area: sys; padding-left: 32px; }
  .sc-var { grid-area: var; align-items: flex-end; text-align: right; }
  .sc-entry { grid-area: entry; justify-content: stretch; }
  .sc-lbl { display: block; }
  .sc-entry select.sc-unit { flex: 1 1 96px; width: auto; min-width: 0; min-height: 42px; }
  .sc-unit1 { flex: 1 1 auto; text-align: left; padding-left: 32px; }
  .sc-qin { flex: 1 1 70px; width: auto; min-width: 0; min-height: 42px; font-size: 17px; }
  .sc-entry .btn.small { min-height: 42px; flex: none; padding: 6px 12px; }
  .sc-clear { flex: none; }
  .sc-group-head { padding: 7px 14px; }

  .sc-foot {
    position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 7; gap: 8px 12px; padding: 10px 12px; border-radius: 14px;
  }
  .sc-foot-prog { flex: 1 1 100%; }
  .sc-foot-prog .sc-prog { flex: 1 1 auto; max-width: none; }
  .sc-foot.mgr .sc-foot-var { flex: 1 1 0; min-width: 0; }
  .sc-foot-var .small { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sc-foot-var strong { font-size: 1.02rem; white-space: nowrap; }
  .sc-foot-acts { margin-left: 0; flex: none; gap: 6px; }
  .sc-foot-acts .btn { padding: 8px 11px; font-size: .88rem; }
  .sc-long { display: none; }
  .sc-short { display: inline; }

  .sc-keys { gap: 6px; }
  .sc-key { min-height: 52px; }
  .sc-pad-acts { flex-wrap: nowrap; }
  .sc-pad-acts .btn { flex: 1 1 0; min-width: 0; }
  .sc-print-acts .check { flex: 1 1 100%; }
}

html[data-theme="dark"] .sc-st.sc-open, html[data-theme="dark"] .sc-pad-outside { color: #F0C060; }
html[data-theme="dark"] .sc-note { color: #F0C060; }
html[data-theme="dark"] .sc-warn { color: #F0C060; }
html[data-theme="dark"] .sc-check { color: #111; }

/* ---------- ใบตรวจนับ A4 (บนจอในป๊อปอัป + ตอนพิมพ์ กระดาษขาวเสมอ) ---------- */
.scp-meta { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; padding: 10px 14px; border: 1px solid #BBB; border-radius: 8px; }
.scp-meta > div { display: flex; flex-direction: column; min-width: 0; }
.scp-meta > div.wide { grid-column: 1 / -1; }
.scp-meta dt { font-size: .78em; color: #555; font-weight: 700; }
.scp-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.scp-meta .scp-fill dd { min-height: 1.5em; border-bottom: 1px dotted #333; }
.scp-lines .scp-units { font-size: .88em; color: #333; }
.scp-lines .scp-box-h, .scp-lines .scp-box { width: 110px; }
.scp-lines .scp-note-h, .scp-lines .scp-note { width: 120px; }
.scp-lines td.scp-box { border: 1px solid #999; height: 26px; }
.scp-lines td.scp-note { border-bottom: 1px dotted #999; }
.scp-hint { margin: 0; color: #555; font-size: .88em; }
.scp-sign { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

@media screen and (max-width: 760px) {
  .scp-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scp-lines .scp-sku { display: none; }
  .scp-lines .scp-box-h, .scp-lines .scp-box { width: 70px; }
  .scp-lines .scp-note-h, .scp-lines .scp-note { width: 60px; }
  .scp-sign { gap: 10px; }
}

@page sc-a4 { size: A4; margin: 12mm; }
@media print {
  html[data-print="sc"]:has(.sc-print), html[data-print="sc"]:has(.sc-print) body {
    margin: 0 !important; padding: 0 !important; height: auto !important; overflow: visible !important;
    background: #fff !important; color: #111 !important; page: sc-a4;
  }
  html[data-print="sc"]:has(.sc-print) body *:not(:has(.sc-print)):not(.sc-print):not(.sc-print *) { display: none !important; }
  html[data-print="sc"]:has(.sc-print) body *:has(.sc-print) {
    display: block !important; position: static !important; inset: auto !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    width: auto !important; max-width: none !important; min-width: 0 !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; background: none !important; box-shadow: none !important; transform: none !important;
    animation: none !important; zoom: 1 !important;
  }
  html[data-print="sc"] .sc-print, html[data-print="sc"] .sc-print * { visibility: visible !important; }
  html[data-print="sc"] .sc-print { display: block !important; position: static !important; }
  html[data-print="sc"] .scp-paper {
    max-width: none !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    font-size: 10pt; gap: 4mm;
  }
  html[data-print="sc"] .scp-lines { font-size: 9pt; }
  html[data-print="sc"] .scp-lines thead { display: table-header-group; }
}
