/* Industrial stock workbench; keep the approved typography and fixed left navigation. */
@media screen{
  #inventoryWorkspace.sw-stock-view .iv-layout{grid-template-columns:minmax(0,1fr) clamp(340px,36%,460px)}
  #inventoryWorkspace.sw-stock-view .iv-list-heading{flex-wrap:wrap;gap:8px}
  #inventoryWorkspace.sw-stock-view .iv-table{min-width:620px}
  #inventoryWorkspace.sw-stock-view .iv-table td:first-child{width:29%;min-width:175px}
  #inventoryWorkspace.sw-stock-view .iv-table td{padding-top:6px;padding-bottom:6px;line-height:1.2}
  #inventoryWorkspace.sw-stock-view .iv-row-title{line-height:1.2}
  #inventoryWorkspace.sw-stock-view .iv-table td small{line-height:1.2}
  #inventoryWorkspace.sw-stock-view .iv-table th{font-size:12px}
  #inventoryWorkspace.sw-stock-view .iv-table td:last-child{min-width:105px}
  .sw-batch-count{margin-top:0;color:#456181!important}
  .sw-latest{font-size:12px;color:#153453;white-space:nowrap}
  .sw-latest small{max-width:145px;white-space:normal;overflow-wrap:anywhere}
  #inventoryWorkspace.sw-stock-view .iv-sidebar{padding:16px 20px;font-size:13px}
  #inventoryWorkspace.sw-stock-view .iv-sidebar h3{font-size:20px}
  #inventoryWorkspace.sw-stock-view .iv-sidebar p{font-size:13px;line-height:1.65}
  #inventoryWorkspace.sw-stock-view .iv-sidebar h4{font-size:13px}
  #inventoryWorkspace.sw-stock-view .iv-lot-detail{background:#fff;border:1px solid #d5e3f5;border-radius:7px;padding:12px;margin-bottom:10px}
  #inventoryWorkspace.sw-stock-view .iv-lot-detail strong{font-size:14px}
  #inventoryWorkspace.sw-stock-view .iv-lot-detail small{font-size:12px;line-height:1.7}
  .sw-lot-grid{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin:6px 0}
  #inventoryWorkspace.sw-stock-view .sw-lot-grid p{margin:0;font-size:12px}
  #inventoryWorkspace.sw-stock-view .op-history{max-height:none;overflow:visible}
  #inventoryWorkspace.sw-stock-view .op-history ul{font-size:12px}
  #inventoryWorkspace.sw-stock-view .op-line>span{font-size:12px}
  #swCatalogDialog{width:850px;max-width:calc(100vw - 24px);background:#fff;color:#153453;font-family:"Microsoft YaHei","PingFang SC",sans-serif}
  #swCatalogDialog .modal{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}
  #swCatalogDialog .modal-head{padding:16px 20px}
  #swCatalogDialog h2{font-size:20px}
  .sw-catalog-search{padding:12px 20px;border-bottom:1px solid #d5e3f5;background:#f5f8fd}
  .sw-catalog-search label{font-size:13px;display:block;margin-bottom:6px;color:#456181}
  #swCatalogSearch{width:100%;border:1px solid #cbdcef;border-radius:6px;padding:9px 11px;font:inherit;box-sizing:border-box}
  #swCatalogCount{font-size:12px;margin:7px 0 0;color:#6983a4}
  .sw-catalog-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);min-height:0;overflow:hidden;height:340px}
  #swCatalogList{overflow:auto;padding:12px 16px;min-width:0}
  #swCatalogDetail{overflow:auto;padding:16px 20px;border-left:1px solid #d5e3f5;background:#f5f8fd;min-width:0;overflow-wrap:anywhere}
  #swCatalogDetail h3{font-size:18px;margin:0 0 12px}
  #swCatalogDetail p{font-size:13px;line-height:1.7;margin:7px 0}
  .sw-catalog-item{display:block;text-align:left;width:100%;border:1px solid #cbdcef;border-radius:6px;padding:11px 12px;background:#fff;color:#153453;margin-bottom:8px;font:inherit;overflow-wrap:anywhere}
  .sw-catalog-item.selected{border-color:#2867c9;background:#edf4ff;box-shadow:inset 3px 0 #2867c9}
  .sw-catalog-item strong{font-size:15px;display:block}
  .sw-catalog-item span,.sw-catalog-item small{display:block;font-size:12px;color:#6983a4;margin-top:5px}
  .sw-copy-note{margin-top:16px;background:#e8f1ff;border-left:3px solid #2867c9;padding:10px 12px;font-size:13px}
  #swCatalogDialog .modal-foot{padding:12px 20px;flex-wrap:wrap;gap:10px}
  #swCatalogDialog .modal-foot p{margin:0;flex:1;min-width:220px;font-size:12px;line-height:1.7;color:#456181}
  #swCatalogDialog button:focus-visible,#swCatalogSearch:focus-visible{outline:2px solid #2867c9;outline-offset:2px}
  #swCatalogApply:disabled{opacity:.5;cursor:not-allowed}
  #ivPurchaseItems .iv-item-head{flex-wrap:wrap;gap:8px}
  #ivPurchaseItems .sw-existing{margin-left:auto;padding:6px 9px;font-size:12px}
  #ivPurchaseItems .sw-existing+.iv-danger-text{margin-left:0}
  @media(max-width:1150px){#inventoryWorkspace.sw-stock-view .iv-layout{grid-template-columns:minmax(0,1fr) 320px}#inventoryWorkspace.sw-stock-view .iv-sidebar{padding:12px 14px}#inventoryWorkspace.sw-stock-view .iv-table{min-width:500px}#inventoryWorkspace.sw-stock-view .iv-table td:first-child{min-width:140px}#inventoryWorkspace.sw-stock-view .iv-table th:last-child,#inventoryWorkspace.sw-stock-view .iv-table td:last-child{display:none}}
  @media(max-width:760px){#inventoryWorkspace.sw-stock-view .iv-layout{display:flex;flex-direction:column}#inventoryWorkspace.sw-stock-view .iv-table{min-width:620px}}
  body.ws-mobile #inventoryWorkspace.sw-stock-view .iv-layout{display:flex;flex-direction:column}
  @media(max-width:560px){.sw-catalog-layout{grid-template-columns:minmax(0,1fr);height:360px;overflow:auto}#swCatalogList{overflow:visible}#swCatalogDetail{overflow:visible;border-left:0;border-top:1px solid #d5e3f5}#swCatalogDialog .modal-foot p{flex-basis:100%}}
}
