/* 样张.css 第 9 节：只给 A03（html.s-a03）和 H13（.s-scroll）用。照样张原样搬过来。 */
/* 9. 窄屏时的表格（GPT R15 第 5 节）
   A03：次要的列收窄，把地方让给公司名；名字可以换两行，不省略、不缩字。 */
@media (max-width:1439px){
  .s-a03 table col:nth-child(2){ width:64px !important; } .s-a03 table col:nth-child(3){ width:124px !important; }
  .s-a03 table col:nth-child(4){ width:120px !important; } .s-a03 table col:nth-child(5){ width:64px !important; }
  .s-a03 table col:nth-child(6){ width:104px !important; } .s-a03 table col:nth-child(7){ width:128px !important; }
  .s-a03 table col:nth-child(8){ width:84px !important; } .s-a03 table col:nth-child(9){ width:84px !important; } /* 操作列「查看」不压 */
}
.s-a03 td.nm{ white-space:normal; overflow:visible; text-overflow:clip; line-height:20px; min-width:0; }
/* H13：1440 及以上表格正好铺满卡片、不滚。窗口不到 1440 时：商品（160）和仓库（76）两列钉住，一行是「一个商品在一个仓」，钉住的那块里两样都在；
   表格宽 = 卡片宽 + 168px（可用 70 + 中转 48 + 占用 50），能滚的距离永远正好是这三整列；scroll-snap 只停在 0、70、118、168 四处，
   scroll-padding-left = 236（钉住的两列），停下来时钉住那块右边紧挨着的都是一整列，键盘 ← → 也照这四处停。
   分界画在仓库列右边：1px 实线 + 往里 10px 的淡阴影（画在格子里，格子外面的阴影会被相邻格子盖住）。滚动那一块能用 Tab 进去；整页不横着滚。 */
.s-scroll>table td,.s-scroll>table th{ background-clip:padding-box; }
@media (max-width:1439px){
  .s-scroll{ overflow-x:auto; outline-offset:-2px; scroll-snap-type:x mandatory; scroll-padding-left:236px;
    background:linear-gradient(to left,#fff 30%,rgba(255,255,255,0)) right/40px 100% no-repeat local,
               radial-gradient(farthest-side at 100% 50%,rgba(20,26,38,.16),transparent) right/14px 100% no-repeat scroll; }
  .s-scroll:focus-visible{ outline:2px solid #0b8f66; }
  .s-scroll>table{ width:calc(100% + 168px) !important; min-width:0; }
  .s-scroll tbody td:nth-child(-n+2),.s-scroll thead tr:first-child th:nth-child(-n+2){ position:sticky; z-index:1; background-color:#fff; }
  .s-scroll tbody td:first-child,.s-scroll thead tr:first-child th:first-child{ left:0; }
  .s-scroll tbody td:nth-child(2),.s-scroll thead tr:first-child th:nth-child(2){ left:160px; box-shadow:inset -1px 0 0 var(--line-in);
    background-image:linear-gradient(to left,rgba(20,26,38,.07),rgba(20,26,38,0) 10px); }
  .s-scroll thead tr:first-child th:nth-child(-n+2),.s-scroll tr.sum td:nth-child(-n+2){ background-color:#fafbfc; } /* 表头、合计那两格和同一行别的格子同一个浅灰底 */
  .s-scroll tr.sum>td{ scroll-snap-align:start; } /* 用合计行每一格的左边做停点：可用 0、中转 70、占用 118、冻结 168，再往右的都并到 168 */
}
.s-scroll td.s-sum1{ white-space:normal; } .s-scroll tr.sum td.s-sum1 small{ display:block; margin:2px 0 0; line-height:18px; } .s-nw{ white-space:nowrap; } /* 数和单位不拆开换行 */
.s-hint{ display:none; }
@media (max-width:1439px){ .s-hint{ display:flex; align-items:center; gap:8px; padding:8px 20px; font-size:13px; color:var(--ink-3); border-bottom:1px solid var(--line-2); } } /* 提示在表格上面（筛选条和表头之间），第一屏就看得到 */
