/* 仓库列表：桌面优先扫读，移动端转卡片，避免横向滚动 */
.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: 720px; }
.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-action { min-height: 38px; padding: 0 15px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.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: 460px; 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: 920px; table-layout: fixed; }
.warehouse-table th { padding: 11px 12px; border: 0; border-bottom: 1px solid #e4e7ed; background: #f8fafc; color: #667085; font-size: 12px; font-weight: 700; white-space: nowrap; }
.warehouse-table td { padding: 13px 12px; 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: 21%; }
.warehouse-table th:nth-child(2) { width: 12%; text-align: left; }
.warehouse-table th:nth-child(3) { width: 8%; text-align: left; }
.warehouse-table th:nth-child(4), .warehouse-table th:nth-child(5) { width: 9%; text-align: right; }
.warehouse-table th:nth-child(6) { width: 12%; text-align: left; }
.warehouse-table th:nth-child(7) { width: 29%; 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-status-group { display: flex; flex-wrap: wrap; gap: 6px; }
.warehouse-number { text-align: right; color: #344054; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.warehouse-number-left { text-align: left; }
.warehouse-updated { color: #667085; font-size: 12px; white-space: nowrap; }
.warehouse-actions { display: flex; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
.warehouse-actions .btn { min-height: 31px; padding: 0 10px; border-radius: 7px; background: #fff; color: #475467; font-size: 12px; font-weight: 600; }
.warehouse-actions .btn.distribution { border-color: #bfdbfe; background: #eff6ff; color: #2563eb; white-space: nowrap; }
.warehouse-actions .btn:hover { border-color: #93c5fd; color: #2563eb; }
.warehouse-empty { padding: 34px 16px; text-align: center; color: #98a2b3; font-size: 13px; }
.warehouse-footnote { padding: 12px 22px 15px; color: #98a2b3; font-size: 12px; line-height: 1.65; }
@media (max-width: 760px) {
  .warehouse-page-head { flex-direction: column; padding: 17px 15px 13px; }
  .warehouse-head-action { 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(2), .warehouse-table td:nth-child(6), .warehouse-table td:nth-child(7) { grid-column: 1 / -1; }
  .warehouse-table td:first-child::before, .warehouse-table td:nth-child(7)::before { display: none; }
  .warehouse-table tbody tr:hover td { background: transparent; }
  .warehouse-number, .warehouse-number-left { text-align: left; }
  .warehouse-updated { white-space: normal; }
  .warehouse-actions { justify-content: flex-start; flex-wrap: wrap; }
  .warehouse-actions .btn { flex: 1; min-width: 82px; }
  .warehouse-empty { grid-column: 1 / -1; }
  .warehouse-footnote { padding: 0 15px 14px; }
}