/* 仓库列表：桌面优先扫读，移动端转卡片，避免横向滚动 */
.warehouse-management-card { padding: 0; overflow: hidden; }
.warehouse-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 14px; }
.warehouse-page-head h3 { margin: 0; font-size: 19px; color: #1f2937; }
.warehouse-page-head .page-desc { margin: 5px 0 0; max-width: 780px; }
.warehouse-summary-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.warehouse-summary-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 10px; border: 1px solid #e4e7ed; border-radius: 9px; background: #f8fafc; color: #667085; font-size: 12px; }
.warehouse-summary-chip b { color: #1f2937; font-size: 14px; font-variant-numeric: tabular-nums; }
.warehouse-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.warehouse-head-actions .btn { min-height: 38px; padding: 0 13px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.warehouse-head-actions .btn.success { border-color: #67c23a; background: #67c23a; color: #fff; }
.warehouse-head-actions .btn.warning { border-color: #e6a23c; background: #e6a23c; color: #fff; }
.warehouse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: #fcfdff; }
.warehouse-search { display: flex; align-items: center; gap: 9px; flex: 1; max-width: 520px; color: #667085; font-size: 13px; }
.warehouse-search > span { flex: 0 0 auto; white-space: nowrap; }
.warehouse-search input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid #dcdfe6; border-radius: 8px; background: #fff; color: #303133; font: inherit; }
.warehouse-search input:focus { outline: none; border-color: #409eff; box-shadow: 0 0 0 3px rgba(64,158,255,.12); }
.warehouse-result-count { color: #98a2b3; font-size: 12px; white-space: nowrap; }
.warehouse-table-wrap { overflow-x: auto; }
.warehouse-table { min-width: 1500px; table-layout: fixed; }
.warehouse-table th { padding: 11px 10px; border: 0; border-bottom: 1px solid #e4e7ed; background: #f8fafc; color: #667085; font-size: 12px; font-weight: 700; white-space: nowrap; }
.warehouse-table td { padding: 12px 10px; border: 0; border-bottom: 1px solid #eef1f5; vertical-align: middle; font-size: 13px; }
.warehouse-table tbody tr:last-child td { border-bottom: 0; }
.warehouse-table tbody tr:hover td { background: #fbfdff; }
.warehouse-table th:nth-child(1) { width: 180px; }
.warehouse-table th:nth-child(2) { width: 110px; }
.warehouse-table th:nth-child(3) { width: 115px; }
.warehouse-table th:nth-child(4) { width: 135px; }
.warehouse-table th:nth-child(5) { width: 95px; text-align: right; }
.warehouse-table th:nth-child(6) { width: 130px; }
.warehouse-table th:nth-child(7) { width: 190px; }
.warehouse-table th:nth-child(8) { width: 90px; text-align: center; }
.warehouse-table th:nth-child(9) { width: 125px; text-align: center; }
.warehouse-table th:nth-child(10) { width: 270px; text-align: right; }
.warehouse-name-main { color: #1f2937; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.warehouse-name-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 5px; color: #98a2b3; font-size: 11px; }
.warehouse-prefix { padding: 2px 7px; border-radius: 5px; background: #ecf5ff; color: #337ecc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 600; }
.warehouse-number { text-align: right; color: #344054; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.warehouse-owner, .warehouse-contact, .warehouse-address { color: #475467; overflow-wrap: anywhere; }
.warehouse-inline-select, .warehouse-sla-input { box-sizing: border-box; width: 100%; min-height: 33px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 7px; background: #fff; color: #344054; font: inherit; font-size: 12px; }
.warehouse-sla-input { text-align: center; }
.warehouse-inline-select:focus, .warehouse-sla-input:focus { outline: none; border-color: #409eff; box-shadow: 0 0 0 3px rgba(64,158,255,.1); }
.warehouse-switch { display: inline-flex; align-items: center; justify-content: center; width: 100%; cursor: pointer; }
.warehouse-switch input { position: absolute; opacity: 0; pointer-events: none; }
.warehouse-switch span { position: relative; width: 38px; height: 21px; border-radius: 999px; background: #cbd5e1; transition: background .16s ease; }
.warehouse-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.2); transition: transform .16s ease; }
.warehouse-switch input:checked + span { background: #f56c6c; }
.warehouse-switch input:checked + span::after { transform: translateX(17px); }
.warehouse-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.warehouse-actions .btn, .warehouse-table .btn.distribution { min-height: 31px; padding: 0 9px; border-radius: 7px; background: #fff; color: #475467; font-size: 12px; font-weight: 600; }
.warehouse-actions .btn.primary, .warehouse-table .btn.distribution { border-color: #bfdbfe; background: #eff6ff; color: #2563eb; }
.warehouse-actions .btn.danger { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.warehouse-actions .btn:hover, .warehouse-table .btn.distribution:hover { border-color: #93c5fd; color: #2563eb; }
.warehouse-empty { padding: 34px 16px; text-align: center; color: #98a2b3; font-size: 13px; }
.warehouse-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 22px; border-top: 1px solid #edf0f4; color: #667085; font-size: 12px; }
.warehouse-footnote { padding: 12px 22px 15px; color: #98a2b3; font-size: 12px; line-height: 1.65; }
.warehouse-modal-mask { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15,23,42,.48); }
.warehouse-modal { box-sizing: border-box; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.3); }
.warehouse-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.warehouse-modal-head h3 { margin: 0; color: #1f2937; font-size: 18px; }
.warehouse-modal-close { border: 0; background: transparent; color: #98a2b3; font-size: 26px; line-height: 1; cursor: pointer; }
.warehouse-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.warehouse-form-grid label { display: block; min-width: 0; }
.warehouse-form-grid label > span { display: block; margin-bottom: 6px; color: #475467; font-size: 12px; font-weight: 600; }
.warehouse-form-grid input, .warehouse-form-grid select, .warehouse-form-grid textarea { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 8px; background: #fff; color: #344054; font: inherit; font-size: 13px; }
.warehouse-form-grid input:focus, .warehouse-form-grid select:focus, .warehouse-form-grid textarea:focus { outline: none; border-color: #409eff; box-shadow: 0 0 0 3px rgba(64,158,255,.1); }
.warehouse-form-wide { grid-column: 1 / -1; }
.warehouse-form-check { display: flex !important; align-items: center; gap: 8px; min-height: 38px; padding-top: 20px; }
.warehouse-form-check input { width: auto; min-height: auto; accent-color: #2563eb; }
.warehouse-form-check span { margin: 0 !important; }
.warehouse-modal-tip { margin-top: 14px; padding: 9px 11px; border-radius: 8px; background: #f8fafc; color: #667085; font-size: 12px; line-height: 1.6; }
.warehouse-modal-btns { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
@media (max-width: 900px) {
  .warehouse-page-head { flex-direction: column; }
  .warehouse-head-actions { justify-content: flex-start; width: 100%; }
}
@media (max-width: 760px) {
  .warehouse-page-head { padding: 17px 15px 13px; }
  .warehouse-head-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .warehouse-head-actions .btn { width: 100%; }
  .warehouse-toolbar { align-items: flex-start; flex-direction: column; padding: 11px 15px; }
  .warehouse-search { width: 100%; max-width: none; }
  .warehouse-table-wrap { overflow: visible; background: #f5f7fa; }
  .warehouse-table { display: block; min-width: 0; background: transparent; }
  .warehouse-table thead { display: none; }
  .warehouse-table tbody { display: grid; gap: 10px; padding: 12px; }
  .warehouse-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; border: 1px solid #e4e7ed; border-radius: 12px; background: #fff; }
  .warehouse-table td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
  .warehouse-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #98a2b3; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
  .warehouse-table td:first-child, .warehouse-table td:nth-child(7), .warehouse-table td:nth-child(10) { grid-column: 1 / -1; }
  .warehouse-table td:first-child::before, .warehouse-table td:nth-child(10)::before { display: none; }
  .warehouse-table tbody tr:hover td { background: transparent; }
  .warehouse-number { text-align: left; }
  .warehouse-actions { justify-content: flex-start; }
  .warehouse-actions .btn { flex: 1; min-width: 86px; }
  .warehouse-empty { grid-column: 1 / -1; }
  .warehouse-pagination { justify-content: center; padding: 12px 15px; }
  .warehouse-footnote { padding: 0 15px 14px; }
  .warehouse-form-grid { grid-template-columns: 1fr; }
  .warehouse-form-wide { grid-column: auto; }
}
.warehouse-batch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.warehouse-batch-grid label, .warehouse-batch-text { display: block; }
.warehouse-batch-grid label > span, .warehouse-batch-text > span { display: block; margin-bottom: 6px; color: #475467; font-size: 12px; font-weight: 600; }
.warehouse-batch-grid input, .warehouse-batch-grid select, .warehouse-batch-text textarea { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 8px; background: #fff; color: #344054; font: inherit; font-size: 13px; }
.warehouse-batch-text { margin-top: 14px; }
.warehouse-batch-text textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.55; }
.warehouse-batch-help { margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: #f8fafc; color: #667085; font-size: 12px; line-height: 1.65; }
.warehouse-batch-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: #475467; font-size: 12px; }
.warehouse-error-list { max-height: 150px; overflow: auto; margin-top: 10px; padding: 9px 11px; border: 1px solid #fecaca; border-radius: 8px; background: #fff7f7; color: #b42318; font-size: 12px; line-height: 1.7; }
.warehouse-batch-result { margin-top: 12px; color: #166534; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .warehouse-batch-grid { grid-template-columns: 1fr; }
  .warehouse-batch-summary { align-items: flex-start; flex-direction: column; }
}
.warehouse-batch-text input { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 8px; background: #fff; color: #344054; font: inherit; font-size: 13px; }
.warehouse-zero-modal { width: min(560px, 100%); }
.warehouse-danger-box { padding: 14px; border: 1px solid #fecaca; border-radius: 10px; background: #fff7f7; color: #991b1b; line-height: 1.7; }
.warehouse-danger-box p { margin: 6px 0 0; font-size: 13px; }
.warehouse-modal-btns .btn.danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.warehouse-modal-btns .btn.danger:disabled { cursor: not-allowed; opacity: .45; }
.warehouse-modal-btns .btn.success { border-color: #16a34a; background: #16a34a; color: #fff; }