/* 仓库端 · 商品管理 · 箱规管理。复用 in- 通用组件（client-inbound.css），本模块前缀 bx-，颜色一律引用设计变量。 */
.bx-ui .bx-tabs{margin:4px 0 12px}
.bx-ui .bx-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:10px;background:var(--bo-surface,#f6f8fb);color:var(--bo-muted,#64748b);font-size:12px;font-weight:600}
.bx-ui [aria-selected="true"] .bx-count,.bx-ui .bx-segment .active .bx-count{background:var(--bo-teal-50,#e6f6f8);color:var(--bo-teal-600,#1097aa)}
.bx-ui .bx-segment{display:inline-flex;margin:0 0 12px}
.bx-ui .bx-segment .in-btn{display:inline-flex;align-items:center;gap:6px;font-size:13px;min-height:30px;padding:4px 12px}
.bx-ui .bx-segment .in-btn.active{background:#fff;color:var(--bo-ink,#0f172a);box-shadow:0 1px 2px rgba(15,23,42,.12);font-weight:600}
.bx-ui .bx-filter{flex-wrap:wrap}
.bx-ui .bx-filter select{min-width:136px}
.bx-ui .bx-check{white-space:nowrap}
.bx-ui .bx-table>tbody>tr>td{vertical-align:middle}
.bx-ui .bx-table th{white-space:nowrap}
.bx-ui .bx-table td:first-child{white-space:nowrap}
.bx-ui .bx-table td small{display:block;color:var(--bo-muted,#64748b);font-size:12px;margin-top:2px}
.bx-ui .bx-table td .in-tag{margin-left:6px}
.bx-ui .bx-table td:first-child .in-tag,.bx-ui .bx-table td>.in-tag:first-child{margin-left:0}
.bx-ui .bx-table td strong+.in-tag,.bx-ui .bx-table td .in-link+.in-tag{margin-left:6px}
.bx-ui .bx-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bx-ui .bx-table tr.bx-off td{color:var(--bo-muted,#64748b)}
.bx-ui .bx-table tr.bx-off td strong{color:inherit}
.bx-ui .bx-table tr.bx-best td{background:var(--bo-teal-50,#e6f6f8)}
.bx-ui .bx-table tr.bx-bad td{background:var(--bo-red-50,#fdecef)}
.bx-ui .bx-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;white-space:nowrap}
.bx-ui .in-tag{display:inline-flex;align-items:center;white-space:nowrap}
.bx-ui .in-tag svg{width:12px;height:12px;margin-right:3px}
.bx-row-actions{display:flex;gap:2px;align-items:center;flex-wrap:nowrap;width:max-content}
.bx-row-action{width:30px;height:30px;padding:0;justify-content:center;flex:none}
.bx-row-action:disabled{opacity:.35;cursor:not-allowed}
.bx-pager{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:var(--bo-muted,#64748b);font-size:13px}
.bx-pages{display:inline-flex;align-items:center;gap:8px}
.bx-empty{padding:40px 16px}
/* 抽屉：普通 600px，宽版 960px（与货架、出库操作抽屉一致） */
.in-dialog.in-drawer.bx-drawer{width:min(600px,100vw)}
.in-dialog.in-drawer.bx-drawer.bx-drawer-wide{width:min(960px,100vw)}
.bx-drawer .in-dialog-body{background:#fff}
.bx-drawer>header h2{display:flex;align-items:center;gap:8px}
.bx-drawer>header h2 svg{width:18px;height:18px;color:var(--bo-teal-600,#1097aa)}
.bx-drawer .in-modal-form{display:flex;flex-direction:column;gap:14px}
.bx-drawer .in-modal-form>*{margin-top:0;margin-bottom:0}
.bx-req{color:var(--bo-red-600,#b4233b);margin-left:2px;font-weight:600}
.bx-hint{display:block;color:var(--bo-muted,#64748b);font-size:12px;line-height:1.5;margin-top:4px;font-weight:400}
.bx-upper{text-transform:uppercase}
.bx-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.bx-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}
.bx-grid-calc{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.4fr);gap:12px 14px}
.bx-dims,.bx-scope{border:1px solid var(--bo-border,#e2e8f0);border-radius:8px;padding:10px 12px 12px;margin:0}
.bx-dims{display:flex;align-items:flex-end;gap:8px}
.bx-dims legend,.bx-scope legend{display:flex;align-items:center;gap:6px;padding:0 4px;font-size:13px;color:var(--bo-ink,#0f172a);font-weight:600}
.bx-dims legend svg,.bx-scope legend svg{width:14px;height:14px;color:var(--bo-muted,#64748b)}
.bx-dims label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;font-size:12px;color:var(--bo-muted,#64748b)}
.bx-dims input{width:100%}
.bx-x{padding-bottom:9px;color:var(--bo-muted,#64748b)}
.bx-scope{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.bx-whs{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:8px 18px;padding-top:8px;border-top:1px dashed var(--bo-border,#e2e8f0)}
.bx-whs[hidden]{display:none}
.bx-summary{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;padding:10px 12px;border-radius:8px;background:var(--bo-surface,#f6f8fb);font-size:13px}
.bx-summary>span{display:inline-flex;align-items:center;gap:6px}
.bx-summary svg{width:14px;height:14px;color:var(--bo-muted,#64748b)}
.bx-preview[hidden]{display:none}
.bx-preview svg{width:14px;height:14px;flex:none;margin-top:2px}
.bx-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.bx-kv>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--bo-border,#e2e8f0);font-size:13px}
.bx-kv dt{color:var(--bo-muted,#64748b);flex:none}
.bx-kv dd{margin:0;text-align:right;min-width:0;overflow-wrap:anywhere}
.bx-sub{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;margin:6px 0 0}
.bx-sub svg{width:14px;height:14px;color:var(--bo-muted,#64748b)}
.bx-drawer-tabs{margin:0}
.bx-form-actions{display:flex;justify-content:flex-end}
.bx-result{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:8px;border:1px solid var(--bo-border,#e2e8f0)}
.bx-result svg{width:20px;height:20px;flex:none;margin-top:1px}
.bx-result strong{font-size:14px}
.bx-result p{margin:4px 0 0;font-size:12px;color:var(--bo-muted,#64748b)}
.bx-result.ok{background:#eaf8f1;border-color:#bfe6d1}.bx-result.ok svg{color:#20734c}
.bx-result.warn{background:#fff6e2;border-color:#f1d9a4}.bx-result.warn svg{color:#96600a}
.bx-result.bad{background:#fff4f6;border-color:#f3b9c4}.bx-result.bad svg{color:#b4233b}
.bx-steps{margin:0;padding-left:20px;color:var(--bo-muted,#64748b);font-size:13px;line-height:1.7}
.bx-import-src{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.bx-import-src .in-field{flex:1;min-width:220px}
.bx-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;width:100%}
.bx-err{display:block;color:var(--bo-red-600,#b4233b);font-size:12px;line-height:1.5}
.bx-guard{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 20px;background:#fff6e2;border-top:1px solid #f1d9a4;font-size:13px;color:#7a4d06}
.bx-guard svg{width:16px;height:16px;flex:none}
.bx-guard>span{flex:1;min-width:160px}
@media(max-width:800px){.bx-ui .in-filter>*{flex:1 1 100%}.bx-ui .bx-filter select{min-width:0}.bx-ui .in-page-head{flex-wrap:wrap}.bx-ui .in-page-head>.in-actions{flex-wrap:wrap;width:100%}.bx-grid2,.bx-grid3,.bx-grid-calc,.bx-kv{grid-template-columns:1fr}.bx-dims{flex-wrap:wrap}.bx-x{display:none}.bx-ui .bx-segment{display:flex;flex-wrap:wrap}}
