/* 农业投入品仓储运营中心 */
.woh-page {
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 88px;
}
.woh-hero {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.woh-hero-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  overflow: visible;
  gap: 10px;
  padding-bottom: 0;
}
.woh-hero-row--12 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .woh-hero-row--12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .woh-hero-row--12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.wh-stats-scope-note {
  margin: -4px 0 12px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #6a7d72;
  background: #f4faf6;
  border: 1px solid #dceee3;
  border-radius: 8px;
}
.wh-stats-scope-note--compact {
  margin: 0 0 10px;
}
.woh-hero-row .woh-kpi-click {
  min-width: 0;
  max-width: none;
}
.woh-kpi-click {
  cursor: pointer;
  border: 1px solid #d4e8d8;
  background: linear-gradient(165deg, #fff 0%, #f4faf6 100%);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 12px rgba(26, 77, 46, 0.06);
  position: relative;
  overflow: hidden;
  text-align: left;
  font: inherit;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.woh-kpi-click:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 77, 46, 0.12);
  border-color: var(--green, #1a4d2e);
}
.woh-kpi-click.primary::before { background: #1565c0; }
.woh-kpi-click.warn::before { background: #e67e22; }
.woh-kpi-click.danger::before { background: #c0392b; }
.woh-kpi-click::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green, #1a4d2e);
  border-radius: 4px 0 0 4px;
}
.woh-quick-row-auto {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.woh-quick-single-row .woh-quick-row {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.wh-inv-data-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--green, #1a4d2e);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wh-inv-data-link-block {
  display: block;
  width: 100%;
}
.wh-inv-data-link:hover { color: #2d7a4e; }

.wh-inv-stock-table th,
.wh-inv-stock-table td {
  vertical-align: top;
}
.wh-inv-stock-table td.wh-kind-col,
.wh-inv-stock-table td.wh-prod-name,
.wh-inv-stock-table th.wh-kind-col,
.wh-inv-stock-table th.wh-prod-col {
  vertical-align: middle;
}
.wh-inv-stock-table {
  table-layout: fixed;
  width: 100%;
}
.wh-inv-stock-table .wh-col-select { width: 2.4rem; }
.wh-inv-stock-table .wh-col-kind { width: 4.5rem; }
.wh-inv-stock-table .wh-col-prod { width: 14%; min-width: 8rem; }
.wh-inv-stock-table .wh-col-wh { width: 16%; min-width: 7rem; }
.wh-inv-stock-table .wh-col-spec { width: 7%; min-width: 4.5rem; }
.wh-inv-stock-table .wh-col-subkind { width: 7%; min-width: 4.5rem; }
.wh-inv-stock-table .wh-col-inbound { width: 11%; min-width: 6.5rem; }
.wh-inv-stock-table .wh-col-avail { width: 13%; min-width: 7rem; }
.wh-inv-stock-table .wh-col-value { width: 8%; min-width: 5rem; }
.wh-inv-stock-table td.wh-prod-name,
.wh-inv-stock-table th.wh-prod-col {
  text-align: left;
  word-break: break-word;
}
.wh-inv-stock-table td.wh-inv-col-spec,
.wh-inv-stock-table td.wh-inv-col-subkind {
  color: #888;
  font-size: 12px;
}
.wh-inv-stock-table td.wh-inv-col-value {
  font-size: 12px;
  color: #1a4d2e;
  font-weight: 600;
}
.wh-kind-group-header td {
  background: #f4faf6;
  border-top: 1px solid #dce9df;
  padding: 8px 10px !important;
  font-weight: 600;
  color: #1a4d2e;
}
.wh-kind-group-header .wh-kind-group-title {
  margin-right: 10px;
}
.wh-kind-group-header .wh-kind-fold-badge {
  font-size: 11px;
  font-weight: 500;
  color: #66806f;
}
.wh-txn-xfer-row {
  opacity: 0.72;
  background: #fafafa;
}
.wh-inv-inbound-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.35;
}
.wh-inv-unit-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 10px;
  color: #888;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}
.wh-inv-unit-toggle:hover {
  color: var(--green, #1a4d2e);
  text-decoration: underline;
}
.wh-inv-inbound-count {
  font-size: 10px;
  color: #888;
}

.woh-block-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #f6faf7 85%, rgba(246, 250, 247, 0));
  padding: 4px 0 10px;
}
.woh-block-tab {
  min-height: 44px;
  border: 1px solid #cfe6d6;
  border-radius: 12px;
  background: #fff;
  color: var(--green, #1a4d2e);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.woh-block-tab:hover {
  border-color: var(--green, #1a4d2e);
  background: #f4faf6;
}
.woh-block-tab.active {
  background: linear-gradient(135deg, #14532d, #1f6b45);
  color: #fff;
  border-color: #14532d;
}
.woh-block-panel {
  margin-bottom: 16px;
}
.woh-block-subtitle {
  margin: 16px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green, #1a4d2e);
}
.woh-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.woh-inline-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.woh-inline-kpis .woh-kpi-click {
  min-width: 0;
  max-width: none;
}
@media (max-width: 640px) {
  .woh-block-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wh-hub-txn-fold {
  margin-top: 14px;
  border: 1px solid #e0ece4;
  border-radius: 10px;
  background: #fafdfb;
  padding: 0 12px 12px;
}
.wh-hub-txn-fold > summary.wh-hub-txn-fold-summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green, #1a4d2e);
  padding: 12px 4px;
  list-style: disclosure-closed;
}
.wh-hub-txn-fold[open] > summary.wh-hub-txn-fold-summary {
  list-style: disclosure-open;
}
.wh-hub-txn-fold-count {
  font-weight: 500;
  font-size: 12px;
  color: #777;
  margin-left: 6px;
}
.wh-hub-txn-fold-body {
  margin-top: 4px;
}
.wh-hub-cust-fold {
  margin-top: 16px;
}

.wh-recon-kpi,
.wh-recv-kpi-card {
  width: 100%;
  text-align: left;
  font: inherit;
}
.wh-recon-kpi.success::before,
.wh-recv-kpi-card.success::before { background: #2e7d32; }
.wh-recon-kpi.info::before,
.wh-recv-kpi-card.info::before { background: #1565c0; }
.wh-recon-kpi.pest::before { background: #6a1b9a; }
.wh-recon-kpi.success .wh-recon-kpi-val,
.wh-recon-kpi.success > div:last-child { color: #2e7d32; }
.wh-recon-kpi.danger > div:last-child { color: #c62828; }
.wh-recon-kpi.info > div:last-child { color: #1565c0; }
.wh-recon-kpi.warn > div:last-child { color: #e65100; }
.wh-recon-kpi.pest > div:last-child { color: #6a1b9a; }

.wh-kind-metric-click {
  cursor: pointer;
  border: 1px solid #dceee2;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  width: 100%;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.wh-kind-metric-click:hover {
  border-color: var(--green, #1a4d2e);
  box-shadow: 0 2px 10px rgba(26, 77, 46, 0.08);
}
.wh-kind-metric-click.highlight {
  border-left: 3px solid var(--gold, #c9a227);
}

.wh-recon-scope-row:hover td {
  background: #f4faf6;
}

.wh-inv-manage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}

.woh-kpi {
  background: linear-gradient(165deg, #fff 0%, #f4faf6 100%);
  border: 1px solid #d4e8d8;
  border-radius: 14px;
  min-height: 92px;
  padding: 12px 12px 10px;
  box-shadow: 0 2px 12px rgba(26, 77, 46, 0.06);
  position: relative;
  overflow: hidden;
}
.woh-kpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green, #1a4d2e);
  border-radius: 4px 0 0 4px;
}
.woh-kpi.warn::before {
  background: #e67e22;
}
.woh-kpi.danger::before {
  background: #c0392b;
}
.woh-kpi .ico {
  font-size: 16px;
  margin-bottom: 3px;
  font-weight: 800;
  color: #1a4d2e;
}
.woh-kpi .val {
  font-size: 19px;
  font-weight: 900;
  color: var(--green, #1a4d2e);
  line-height: 1.2;
  word-break: keep-all;
}
.woh-kpi.danger .val {
  color: #c0392b;
}
.woh-kpi .lab {
  font-size: 11px;
  color: #6a7a72;
  margin-top: 4px;
  line-height: 1.25;
}
.woh-kpi .sub {
  font-size: 10px;
  color: #999;
  margin-top: 4px;
  line-height: 1.25;
}
.woh-grid2 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .woh-grid2 {
    grid-template-columns: 1fr;
  }
  .woh-side {
    order: -1;
  }
}
.woh-card {
  background: #fff;
  border: 1px solid var(--border, #d4e8d8);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.woh-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--green, #1a4d2e);
  display: flex;
  align-items: center;
  gap: 8px;
}
.woh-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.woh-quick-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.woh-quick-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.woh-quick-spacer {
  min-height: 1px;
}
.woh-act-uniform-wrap {
  min-width: 0;
}
.woh-act-uniform {
  width: 100%;
  min-height: 58px;
  height: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
}
.woh-act-uniform .woh-act-txt {
  flex: 1;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}
.woh-act.primary .woh-act-txt,
.woh-act.secondary .woh-act-txt,
.woh-act.primary .lb,
.woh-act.secondary .lb {
  color: #fff !important;
  font-weight: 600;
  margin-bottom: 0;
  display: inline;
}
.woh-act-uniform .lb {
  flex: 1;
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 0;
  display: inline;
}
.woh-act-uniform .ic {
  flex-shrink: 0;
  font-size: 17px;
}
.woh-act-uniform.woh-act-menu-btn {
  padding-right: 10px;
}
.woh-act-uniform.woh-act-danger {
  color: #c62828;
  border-color: #ffcdd2;
  background: #fff5f5;
}
@media (max-width: 1100px) {
  .woh-quick-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .woh-quick-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.woh-actions-rows {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .woh-actions-rows {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .woh-actions-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.woh-act-group {
  position: relative;
}
.woh-act-menu-btn .woh-caret {
  font-size: 10px;
  opacity: 0.65;
  margin-left: 2px;
}
.woh-act-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #fff;
  border: 1px solid #dceee1;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 77, 46, 0.12);
  padding: 6px;
  min-width: 168px;
}
.woh-act-group.open .woh-act-menu {
  display: block;
}
.woh-act-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2e4036;
  cursor: pointer;
}
.woh-act-menu button:hover {
  background: #eef6f0;
  color: var(--green, #1a4d2e);
}
.woh-act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dceee1;
  background: #fafcfa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #2e4036;
  text-align: left;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  min-height: 56px;
}
.woh-act:hover {
  border-color: var(--green, #1a4d2e);
  box-shadow: 0 4px 14px rgba(26, 77, 46, 0.1);
  transform: translateY(-1px);
}
.woh-act .ic {
  font-size: 18px;
}
.woh-act.primary {
  background: linear-gradient(180deg, #1a4d2e, #143d28);
  color: #fff;
  border-color: #0f2e1c;
}
.woh-act.primary:hover {
  filter: brightness(1.06);
}
.woh-act.secondary {
  background: linear-gradient(180deg, #c9962a, #a67c00);
  color: #fff;
  border-color: #8a6610;
}
.woh-stock-cards {
  display: none;
  gap: 10px;
  flex-direction: column;
}
@media (max-width: 768px) {
  .woh-stock-cards {
    display: flex;
  }
  .woh-stock-table-wrap {
    display: none;
  }
}
.woh-stock-card {
  border: 1px solid #e0ebe3;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff, #f9fcf9);
}
.woh-stock-card.low {
  border-color: #f0d090;
  background: linear-gradient(180deg, #fffdf8, #fff);
}
.woh-stock-card.danger {
  border-color: #f5c6c6;
  background: linear-gradient(180deg, #fff8f8, #fff);
}
.woh-stock-card .t {
  font-weight: 800;
  font-size: 14px;
  color: #1a2e22;
}
.woh-stock-card .meta {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.45;
}
.woh-pbar {
  height: 8px;
  border-radius: 6px;
  background: #e8ece9;
  margin-top: 10px;
  overflow: hidden;
}
.woh-pbar > i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: #2d7a4e;
}
.woh-pbar.warn > i {
  background: #f39c12;
}
.woh-pbar.bad > i {
  background: #c0392b;
}
.woh-alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.woh-alert {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ffe0b2;
  background: linear-gradient(90deg, #fff8e7, #fff);
  font-size: 13px;
  line-height: 1.45;
}
.woh-alert.bad {
  border-color: #ffcdd2;
  background: linear-gradient(90deg, #ffebee, #fff);
}
.woh-alert.warn {
  border-color: #ffe0b2;
  background: linear-gradient(90deg, #fff3e0, #fff);
}
.woh-txn-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 520px;
  border: 1px solid #e8ece9;
  border-radius: 12px;
}
.woh-txn-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf5ee;
  box-shadow: 0 1px 0 #d4e8d8;
}
.woh-txn-wrap tbody tr:hover {
  background: #f7faf8;
}
.woh-dir-in {
  color: #2d7a4e;
  font-weight: 700;
}
.woh-dir-out {
  color: #c0392b;
  font-weight: 700;
}
.woh-analytics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.woh-analytics-col {
  min-width: 0;
}
.woh-analytics-rank-body {
  margin-top: 8px;
}
.woh-analytics-pie {
  width: 100%;
  height: 200px;
  min-height: 180px;
}
.woh-util-inline {
  margin-top: 6px;
  font-size: 13px;
}
.woh-analytics-trend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8efe8;
}
.woh-trend-chart-box {
  width: 100%;
  height: 260px;
  min-height: 220px;
}
.woh-bar-chart {
  height: 188px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 2px 52px;
  box-sizing: border-box;
}
.woh-bar {
  flex: 1;
  min-width: 22px;
  max-width: 20%;
  background: linear-gradient(180deg, #62b37a, #1a4d2e);
  border-radius: 6px 6px 2px 2px;
  position: relative;
}
.woh-bar span.woh-bar-cap {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 76px);
  font-size: 10px;
  color: #555;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}
.woh-fab {
  display: none;
  position: fixed;
  right: 14px;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 768px) {
  .woh-fab {
    display: flex;
  }
}
.woh-fab .btn {
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.woh-whsel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.woh-whsel select.fi {
  min-width: 200px;
}
.woh-muted {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
.woh-pick-card {
  border: 1px solid #e0ebe3;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 12px;
}
.woh-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: #edf3ee;
  color: #2d6e47;
}

.wh-inv-manage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 10px;
}
.wh-inv-manage-bar p {
  margin: 0;
}
.wh-inv-select-cell,
.wh-pm-check {
  width: 38px;
  min-width: 38px;
  text-align: center;
}
.wh-inv-select,
.wh-inv-select-cell input,
.wh-pm-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green, #1a4d2e);
  cursor: pointer;
}
.wh-pm-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.55fr) minmax(300px, 0.75fr);
  gap: 16px;
  min-height: 560px;
}
.wh-pm-list,
.wh-pm-editor {
  min-width: 0;
}
.wh-pm-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 10px;
}
.wh-pm-table-wrap {
  max-height: 590px;
  overflow: auto;
  border: 1px solid #dce8df;
  border-radius: 8px;
}
.wh-pm-table {
  margin: 0;
}
.wh-pm-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf5ef;
}
.wh-pm-table tbody tr:hover {
  background: #f7faf8;
}
.wh-pm-sub {
  margin-top: 3px;
  color: #7b8780;
  font-size: 11px;
  line-height: 1.4;
}
.wh-pm-empty {
  padding: 28px 12px !important;
  text-align: center;
  color: #7b8780;
}
.wh-pm-editor {
  padding-left: 16px;
  border-left: 1px solid #dce8df;
}
.wh-pm-selected {
  margin-bottom: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #edf5ef;
  color: #204c31;
  font-size: 13px;
}
.wh-pm-field-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 5px;
  color: #33483a;
  font-size: 12px;
  font-weight: 700;
}
.wh-pm-field-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--green, #1a4d2e);
}
.wh-pm-note {
  margin: 12px 0;
  padding: 9px 10px;
  border-left: 3px solid #c9962a;
  background: #fffbef;
  color: #6d5a24;
  font-size: 11px;
  line-height: 1.55;
}
.wh-pm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wh-pm-delete-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #efc1c1;
  border-radius: 8px;
  background: #fff8f8;
}
.wh-pm-delete-box p {
  margin: 5px 0 9px;
  color: #785858;
  font-size: 12px;
  line-height: 1.5;
}
.wh-pm-delete-box .btn {
  width: 100%;
  margin-top: 8px;
}
.wh-pm-owner-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.wh-pm-owner-chip,
.wh-pm-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid #dce8df;
  background: #f7fbf8;
  color: #1a4d2e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.wh-pm-owner-chip { padding: 5px 10px; }
.wh-pm-owner-badge { padding: 2px 8px; }
.wh-pm-owner-company_direct { background: #e8f5e9; border-color: #c7e4cc; color: #1b5e20; }
.wh-pm-owner-company_consignment { background: #e3f2fd; border-color: #bbdefb; color: #1565c0; }
.wh-pm-owner-cooperative_purchased { background: #fff8e1; border-color: #ffe0a3; color: #8a5a00; }
.is-hidden {
  display: none !important;
}
@media (max-width: 980px) {
  .wh-pm-layout {
    grid-template-columns: 1fr;
  }
  .wh-pm-editor {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid #dce8df;
  }
}
@media (max-width: 720px) {
  .wh-inv-manage-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .wh-pm-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .wh-pm-toolbar .fi {
    grid-column: 1 / -1;
  }
  .wh-pm-layout {
    min-height: 0;
  }
  .wh-pm-table-wrap {
    max-height: 46vh;
  }
  .wh-pm-table th:nth-child(n+4),
  .wh-pm-table td:nth-child(n+4) {
    display: none;
  }
  .wh-pm-table {
    table-layout: fixed;
  }
  .wh-pm-table th:nth-child(2),
  .wh-pm-table td:nth-child(2) {
    width: 62%;
  }
}

/* ── 库存大类标签 / 客户提货表格 ── */
.wh-kind-col {
  width: 56px;
  white-space: nowrap;
}
.wh-kind-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid transparent;
}
.wh-kind-fertilizer { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.wh-kind-pesticide { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.wh-kind-service { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }
.wh-kind-seed { background: #f3e5f5; color: #6a1b9a; border-color: #e1bee7; }
.wh-kind-film { background: #eceff1; color: #455a64; border-color: #cfd8dc; }
.wh-kind-other { background: #f5f5f5; color: #616161; border-color: #e0e0e0; }

.wh-cust-table-wrap {
  overflow: auto;
  border: 1px solid #e8efe8;
  border-radius: 12px;
  background: #fff;
}
.wh-cust-table {
  margin: 0;
  font-size: 13px;
}
.wh-cust-table thead th {
  background: #f6faf7;
  font-size: 12px;
  white-space: nowrap;
}
.wh-cust-table tbody tr:hover {
  background: #fafdfa;
}
.wh-cust-rank {
  text-align: center;
  color: #888;
  font-weight: 600;
}
.wh-cust-rank-top {
  color: #c9962a;
  font-weight: 800;
}
.wh-cust-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--green, #1a4d2e);
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wh-cust-link:hover { color: #2d7a4e; }
.wh-cust-amt {
  text-align: right;
  font-weight: 700;
  color: #1a4d2e;
  white-space: nowrap;
}
.wh-cust-phone { font-size: 12px; color: #666; }
.wh-cust-num { text-align: center; color: #444; }
.wh-cust-empty {
  padding: 24px 16px;
  text-align: center;
  color: #888;
  font-size: 13px;
  border: 1px dashed #dde8dd;
  border-radius: 12px;
  background: #fafcfa;
}
.wh-cust-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.wh-cust-detail-title { flex: 1; min-width: 200px; }

.wh-cust-cards { display: none; gap: 10px; margin: 0 0 12px; }
.wh-cust-card {
  border: 1px solid #e8efe8;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 77, 46, 0.06);
}
.wh-cust-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.wh-cust-card-rank {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  min-width: 28px;
}
.wh-cust-card-name { font-size: 15px; line-height: 1.35; }
.wh-cust-card-meta { font-size: 12px; color: #666; margin-bottom: 8px; }
.wh-cust-card-amts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: #444;
}
.wh-cust-unpaid-block {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff8f8;
  border: 1px solid #ffcdd2;
  border-radius: 12px;
}
.wh-cust-slip-chips { display: flex; flex-direction: column; gap: 8px; }
.wh-cust-slip-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #f0e0e0;
  border-radius: 10px;
}
.wh-cust-slip-chip-main { font-size: 13px; flex: 1; min-width: 180px; }
.wh-cust-slip-chip-acts { display: flex; flex-wrap: wrap; gap: 6px; }
tr.wh-slip-highlight { background: #fff8e1 !important; outline: 2px solid #ffb300; }

.woh-section-fold {
  margin: 0 0 14px;
  border: 1px solid #dceee1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 77, 46, 0.06);
}
.woh-section-fold-sum {
  cursor: pointer;
  padding: 12px 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
.woh-section-fold-sum::-webkit-details-marker { display: none; }
.woh-section-fold-sum::before {
  content: '▸';
  color: var(--green, #1a4d2e);
  margin-right: 6px;
  transition: transform 0.15s ease;
}
.woh-section-fold[open] > .woh-section-fold-sum::before { transform: rotate(90deg); }
.woh-section-fold-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green, #1a4d2e);
  flex: 1;
}
.woh-section-fold-badge {
  font-size: 11px;
  font-weight: 600;
  color: #50675a;
  background: #f4f8f5;
  border: 1px solid #dce9df;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.woh-section-fold-body { padding: 0 14px 14px; }

.wh-kind-fold {
  margin: 0;
  border: none;
  border-top: 1px solid #eef3ef;
  background: #fafcfa;
}
.wh-kind-fold-sum {
  cursor: pointer;
  padding: 10px 12px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  color: #1a4d2e;
}
.wh-kind-fold-sum::-webkit-details-marker { display: none; }
.wh-kind-fold-sum::before {
  content: '▸';
  margin-right: 6px;
  transition: transform 0.15s ease;
}
.wh-kind-fold[open] > .wh-kind-fold-sum::before { transform: rotate(90deg); }
.wh-kind-fold-badge {
  font-size: 11px;
  font-weight: 500;
  color: #66806f;
}
.wh-kind-inner-table { margin: 0; border-top: 1px solid #eef3ef; }
.wh-kind-fold-row > td { background: transparent !important; }

.wh-cust-fold {
  margin: 0 0 12px;
  border: 1px solid #e8efe8;
  border-radius: 12px;
  background: #fafcfa;
  overflow: hidden;
}
.wh-cust-fold-sum {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green, #1a4d2e);
  list-style: none;
  user-select: none;
}
.wh-cust-fold-sum::-webkit-details-marker { display: none; }
.wh-cust-fold-sum::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}
.wh-cust-fold[open] .wh-cust-fold-sum::before { transform: rotate(90deg); }
.wh-cust-fold-body { padding: 0 12px 12px; }
.wh-cust-fold-body > p:first-child { margin-top: 0; }
.wh-cust-kind-subtotal td {
  background: #f7faf8;
  border-top: 1px dashed #c8e6c9;
  font-size: 12px;
  color: #2e7d32;
}

@media (max-width: 768px) {
  .wh-cust-table-desktop { display: none !important; }
  .wh-cust-cards { display: grid; grid-template-columns: 1fr; }
  .wh-cust-list-toolbar .fr { min-width: 100% !important; }
  .wh-cust-detail-head .btn { flex: 0 0 auto; }
  .wh-cust-slip-chip { flex-direction: column; align-items: stretch; }
  .wh-cust-slip-chip-acts .btn { flex: 1; }
}

.woh-bar.woh-bar-cust {
  position: relative;
  min-width: 28%;
}
.woh-bar.woh-bar-cust .woh-bar-val {
  display: block;
  font-size: 10px;
  color: #1a4d2e;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.woh-bar.woh-bar-cust:hover {
  filter: brightness(0.96);
}
.woh-top-cust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e0ebe3;
  background: linear-gradient(180deg, #fff, #f9fcf9);
}
.woh-top-cust-group {
  display: grid;
  grid-template-columns: minmax(108px, auto) repeat(5, minmax(118px, 1fr));
  gap: 8px;
  align-items: center;
}
.woh-top-cust-strip .lab {
  font-size: 12px;
  font-weight: 700;
  color: #1a4d2e;
  white-space: nowrap;
}
.woh-top-cust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d5e5d8;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #333;
  min-width: 0;
  justify-content: flex-start;
}
.woh-top-cust-pill:hover {
  border-color: #2d7a4e;
  background: #f3faf5;
}
.woh-top-cust-pill .rk {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1a4d2e;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}
.woh-top-cust-pill .amt {
  color: #1a4d2e;
  font-weight: 700;
  margin-left: auto;
}

.wh-txn-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e0ece4;
  border-radius: 10px;
  background: #fafdfb;
}
.wh-txn-pager-info {
  font-size: 12px;
  color: #53665b;
}
.wh-txn-pager-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wh-txn-page-size {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #53665b;
}
.wh-txn-page-size .fi {
  width: 72px;
  min-height: 32px;
  padding: 4px 8px;
}

.wb-txn-filters {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
}
.wb-txn-filters .fr {
  min-width: 0;
}
.wb-txn-filters .fi {
  min-height: 34px;
}
.wb-txn-filters .wb-filter-end {
  align-self: end;
}
.wb-txn-filters .wh-txn-quick-bar {
  grid-column: 1 / -1;
}
.wh-txn-quick-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}
.wh-txn-qbtn {
  min-width: 0;
}

.wh-analysis-overview {
  margin-bottom: 14px;
}
.wh-analysis-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.wh-analysis-mini {
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #fff;
}
.wh-analysis-mini.woh-kpi-click {
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wh-analysis-mini.woh-kpi-click:hover {
  border-color: var(--green, #1a4d2e);
  box-shadow: 0 2px 8px rgba(26, 77, 46, 0.08);
}
.woh-value-pie-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.woh-value-pie-item em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #68766d;
  margin-bottom: 4px;
  text-align: center;
}
.woh-analytics-pie-split .woh-analytics-pie {
  min-height: 140px;
}
.wh-inv-pref-options {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.wh-inv-pref-opt {
  display: block;
  padding: 12px 14px;
  border: 1px solid #cfe6d6;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}
.wh-inv-pref-opt.is-active,
.wh-inv-pref-opt:has(input:checked) {
  border-color: var(--green, #1a4d2e);
  background: #f6fbf7;
}
.wh-inv-pref-opt input {
  margin-right: 8px;
}
.wh-analysis-mini span {
  display: block;
  font-size: 12px;
  color: #68766d;
}
.wh-analysis-mini b {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  color: #1a4d2e;
}
.wh-analysis-mini em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  color: #7b8a80;
}

.wh-pay-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.wh-pay-paid { background: #e8f5e9; color: #2e7d32; }
.wh-pay-partial { background: #fff3e0; color: #e65100; }
.wh-pay-unpaid { background: #ffebee; color: #c62828; }
.wh-pay-none { background: #f0f0f0; color: #666; }
.wh-pay-written { background: #eceff1; color: #546e7a; }
.wh-pay-credit { background: #e3f2fd; color: #1565c0; }

/* 客户提货明细工具栏 */
.wh-cust-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.wh-cust-toolbar-compact {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #f8fbf9;
  border: 1px solid #e5eee8;
  border-radius: 10px;
}
.wh-cust-toolbar-compact .btn-sm {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}
.wh-cust-toolbar-divider {
  width: 1px;
  height: 22px;
  background: #d8e5dc;
  margin: 0 2px;
  flex: 0 0 auto;
}
.wh-cust-toolbar-hint {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.wh-cust-detail-head {
  margin-bottom: 6px;
}
.wh-cust-detail-title {
  flex: 1 1 100%;
  min-width: 0;
}
.wh-cust-toolbar-primary .btn-p {
  min-width: 96px;
}
.wh-stock-neg-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}
.wh-ownership-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.wh-own-coop { background: #e8f5e9; color: #2e7d32; }
.wh-own-ext { background: #fff3e0; color: #e65100; }
.wh-own-consign { background: #e3f2fd; color: #1565c0; }
.wh-own-direct { background: #fff8e1; color: #f57f17; }
.wh-own-trial { background: #f3e5f5; color: #6a1b9a; }
.wh-own-gift { background: #eceff1; color: #546e7a; }
.wh-own-transfer { background: #e0f2f1; color: #00695c; }
.wh-own-unknown { background: #ffebee; color: #c62828; }
.wh-settlement-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #f1f8f4;
  color: #1a4d2e;
  border: 1px solid #c8e6c9;
}
.woh-wh-info { padding-top: 4px; border-top: 1px dashed #e0e0e0; margin-top: 10px; }

.wh-kind-stats-wrap { font-size: 13px; }
.wh-kind-total-bar {
  display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 12px;
  background: #f4faf6; border-radius: 8px; margin-bottom: 12px; font-size: 12px;
}
.wh-kind-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.wh-kind-panel { border: 1px solid #e0ece4; border-radius: 10px; padding: 12px 14px; background: #fff; }
.wh-kind-panel.fertilizer { border-top: 3px solid #2e7d32; }
.wh-kind-panel.pesticide { border-top: 3px solid #1565c0; }
.wh-kind-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; color: var(--green); }
.wh-kind-ico { font-size: 18px; }
.wh-kind-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.wh-kind-metric { background: #fafdfb; border-radius: 6px; padding: 8px 10px; }
.wh-kind-metric.highlight .wh-kind-metric-v { color: var(--gold); font-weight: 700; }
.wh-kind-metric-l { font-size: 11px; color: #777; margin-bottom: 4px; }
.wh-kind-metric-v { font-size: 14px; font-weight: 600; color: #333; }
.wh-kind-cust-details summary { list-style: disclosure-closed; }
.wh-kind-cust-details[open] summary { list-style: disclosure-open; }

/* 七段纵向卡片栈 */
.woh-layout-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 8px 10px;
  background: #f4faf6;
  border: 1px solid #d4e8d8;
  border-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.woh-layout-nav-link {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cfe8d4;
  color: var(--green, #1a4d2e);
  text-decoration: none;
  font-weight: 600;
}
.woh-layout-nav-link:hover {
  background: var(--green, #1a4d2e);
  color: #fff;
  border-color: var(--green, #1a4d2e);
}
.woh-layout-nav-link--primary {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3f8ff 100%);
  border-color: #1565c0;
  color: #0d47a1;
  font-weight: 700;
}
.woh-layout-nav-link--primary:hover {
  background: #1565c0;
  border-color: #1565c0;
  color: #fff;
}
.woh-stock-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.woh-stock-kpi-strip--8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .woh-stock-kpi-strip,
  .woh-stock-kpi-strip--8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.wh-hub-product-table,
.wh-hub-drawer-table,
.wh-hub-align-table,
.wh-recon-scope-table,
.wh-prod-dim-table,
.wh-cust-table,
.wh-inv-stock-table,
.wh-txn-ledger,
.wh-ob-table,
.wh-pm-table {
  table-layout: fixed;
  width: 100%;
}
.wh-hub-product-table th,
.wh-hub-product-table td,
.wh-hub-drawer-table th,
.wh-hub-drawer-table td,
.wh-hub-align-table th,
.wh-hub-align-table td,
.wh-inv-stock-table th,
.wh-inv-stock-table td,
.wh-txn-ledger th,
.wh-txn-ledger td,
.wh-ob-table th,
.wh-ob-table td {
  vertical-align: middle;
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wh-hub-drawer-table th.wb-text-right,
.wh-hub-drawer-table td.wb-text-right,
.wh-hub-align-table th.wb-text-right,
.wh-hub-align-table td.wb-text-right,
.wh-cust-table th.wb-text-right,
.wh-cust-table td.wh-cust-amt,
.wh-inv-stock-table .wb-text-right,
.wh-txn-ledger .wb-text-right,
.wh-ob-table .wb-text-right {
  text-align: right;
}
.wh-hub-drawer-table th.wb-text-center,
.wh-hub-drawer-table td.wb-text-center,
.wh-hub-align-table th.wb-text-center,
.wh-hub-align-table td.wb-text-center,
.wh-cust-table th.wb-text-center,
.wh-cust-table td.wh-cust-num,
.wh-inv-stock-table .wb-text-center,
.wh-txn-ledger .wb-text-center,
.wh-ob-table .wb-text-center {
  text-align: center;
}
.wh-inv-stock-table th,
.wh-inv-stock-table td,
.wh-txn-ledger th,
.wh-txn-ledger td {
  white-space: normal;
  word-break: break-word;
}
.wh-inv-stock-table .wh-kind-col,
.wh-inv-stock-table .wh-inv-select-cell { width: 74px; text-align: center; }
.wh-inv-stock-table .wh-prod-name,
.wh-inv-stock-table .wh-prod-col { width: 22%; }
.wh-inv-stock-table .wh-inv-col-spec { width: 14%; }
.wh-inv-stock-table .wh-inv-col-subkind { width: 90px; text-align: center; }
.wh-inv-stock-table .wh-col-inbound,
.wh-inv-stock-table .wh-col-avail,
.wh-inv-stock-table .wh-col-value { width: 13%; text-align: center; }
.wh-inv-stock-table th.wh-col-inbound,
.wh-inv-stock-table th.wh-col-avail,
.wh-inv-stock-table th.wh-col-value,
.wh-inv-stock-table td.wh-col-inbound,
.wh-inv-stock-table td.wh-col-avail,
.wh-inv-stock-table td.wh-col-value { text-align: center; }
.wh-inv-stock-table .wb-wh-breakdown { width: 15%; }
.wh-txn-ledger .wb-text-right,
.wh-inv-stock-table .wh-inv-col-value,
.wh-inv-stock-table .wh-inv-col-avail,
.wh-inv-stock-table .wh-inv-col-inbound {
  font-variant-numeric: tabular-nums;
}
.wh-table-scroll table.data-table,
.wh-warehouse-table-wrap table.data-table {
  border-collapse: collapse;
}
.wh-table-scroll table.data-table th,
.wh-table-scroll table.data-table td,
.wh-warehouse-table-wrap table.data-table th,
.wh-warehouse-table-wrap table.data-table td {
  box-sizing: border-box;
}
.wh-hub-drawer-table .wb-hub-ton-note,
.wh-hub-drawer-table .wb-hub-xfer-note {
  text-align: inherit;
  font-size: 11px;
  color: #7b8a80;
}
.wh-hub-product-table .wh-col-kind { width: 8%; }
.wh-hub-product-table .wh-col-prod { width: 24%; }
.wh-hub-product-table .wh-col-spec { width: 12%; }
.wh-hub-product-table .wh-col-price { width: 12%; }
.wh-hub-product-table .wh-col-qty { width: 14%; }
.wh-hub-product-table .wh-col-amt { width: 14%; }
.wh-hub-product-table .wh-col-cnt { width: 6%; text-align: center; }
.wh-hub-product-table .wh-col-act { width: 10%; text-align: center; }
.woh-stock-kpi-strip .woh-kpi-click {
  min-width: 0;
}
.woh-stock-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #555;
  line-height: 1.55;
}
.woh-stock-table-main {
  border: 1px solid #bbdefb;
  border-radius: 10px;
  background: #fafcff;
}
.woh-layout-card {
  margin-bottom: 16px;
  scroll-margin-top: 72px;
}
.woh-layout-card--stock {
  border-left: 4px solid #1565c0;
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 52%);
  box-shadow: 0 4px 18px rgba(21, 101, 192, 0.08);
}
.woh-layout-card--inbound {
  border-left: 4px solid #2e7d32;
  background: linear-gradient(135deg, #f6fbf7 0%, #ffffff 52%);
}
.woh-layout-card--inbound .woh-layout-card-head {
  border-bottom-color: #c8e6c9;
}
.woh-layout-card--inbound .woh-layout-card-title {
  color: #1b5e20;
}
.woh-layout-card--outbound {
  border-left: 4px solid #ef6c00;
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 52%);
}
.woh-layout-card--outbound .woh-layout-card-head {
  border-bottom-color: #ffe0b2;
}
.woh-layout-card--outbound .woh-layout-card-title {
  color: #e65100;
}
.woh-layout-card--stock .woh-layout-card-head {
  border-bottom-color: #bbdefb;
}
.woh-layout-card--stock .woh-layout-card-title {
  color: #0d47a1;
}
.woh-layout-card-head {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8f0ea;
}
.woh-layout-card-title {
  margin: 0;
  color: var(--green, #1a4d2e);
  font-size: 16px;
}
.woh-layout-card-sub {
  margin: 4px 0 0;
  font-size: 12px;
}
.woh-layout-card-body .woh-hero-row {
  margin-bottom: 12px;
}
.wh-kind-stats-embed {
  margin-top: 12px;
}
.wh-hub-stock-value-group {
  margin-bottom: 12px;
}
.wh-kind-subtotal-row td {
  background: #f4faf6;
  border-top: 2px solid #d8ebe0;
}
.wh-stock-value-grand-total {
  text-align: right;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 14px;
  background: #eef8f1;
  border-radius: 8px;
}
.wh-stock-value-grand-total b {
  font-size: 16px;
  color: #1a5c38;
}
.wh-hub-kind-block {
  margin: 0 0 10px;
  border: 1px solid #e0ece4;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fafdfb;
}
.wh-hub-kind-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--green);
  list-style: disclosure-closed;
}
.wh-hub-kind-block[open] .wh-hub-kind-summary {
  list-style: disclosure-open;
  margin-bottom: 8px;
}
.wh-hub-kind-kpi {
  display: inline;
  border: none;
  background: none;
  padding: 0 2px;
  font: inherit;
  font-weight: 700;
  color: var(--gold, #c9a227);
  cursor: pointer;
  text-decoration: underline dotted;
}
.woh-quick-card h3 {
  margin: 0 0 10px;
  color: var(--green, #1a4d2e);
}
.wh-integrity-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.wh-integrity-banner.wh-integrity-ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}
.wh-integrity-banner.wh-integrity-warn {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #5d4037;
}

/* 客户提货区紧凑布局 */
.wh-cust-pickup-compact { margin: 0; }
.wh-cust-pickup-actions,
.wh-cust-pickup-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
}
.wh-cust-pickup-hint {
  font-size: 11px;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: #fff8e1;
  border-radius: 8px;
  border: 1px solid #ffe082;
}
.wh-cust-list-toolbar-compact {
  margin: 0 0 8px;
}
.wh-cust-list-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.wh-cust-filter-item { margin: 0; min-width: 120px; }
.wh-cust-check-label {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.wh-cust-summary-bar { font-size: 12px; margin: 0 0 8px; }
.wh-cust-group-row td {
  background: #f0f6f2;
  border-top: 2px solid #c8e6c9;
  border-bottom: 1px solid #e0ece4;
  padding: 8px 10px !important;
}
.wh-cust-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}
.wh-cust-group-meta { font-size: 12px; color: #555; font-weight: 400; }
.wh-cust-row-actions {
  white-space: nowrap;
}
.wh-recv-kpi-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.wb-sum-filters-compact { margin: 0 0 10px; }
.wb-sum-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.wb-sum-filters-compact .fr { margin: 0; min-width: 130px; }
.woh-cust-pickup-page { max-width: 1200px; margin: 0 auto; }
.woh-cust-pickup-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}
.woh-cust-pickup-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--green, #1a4d2e);
}
.woh-cust-pickup-recv { margin-bottom: 8px; }

/* 管理 Tab */
.wh-manage-intro {
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #f8fbf9;
  border: 1px solid #e0ebe4;
}
.wh-manage-intro-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #53665b;
}
.wh-manage-ro-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #8a6d3b;
  background: #fffbf0;
  border: 1px solid #f0e6c8;
  border-radius: 8px;
}
.wh-manage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
  align-items: stretch;
}
.wh-manage-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  align-items: flex-start;
  gap: 4px 10px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid #cfe6d6;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wh-manage-card:hover:not(.wh-manage-card--disabled) {
  border-color: var(--green, #1a4d2e);
  box-shadow: 0 2px 8px rgba(26, 77, 46, 0.08);
}
.wh-manage-card--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wh-manage-card-ico {
  grid-row: 1 / span 2;
  font-size: 20px;
  line-height: 1;
}
.wh-manage-card-lab {
  font-size: 14px;
  font-weight: 700;
  color: var(--green, #1a4d2e);
}
.wh-manage-card-desc {
  font-size: 11px;
  line-height: 1.45;
  color: #778;
}

@media (max-width: 760px) {
  .woh-top-cust-group {
    grid-template-columns: 1fr;
  }
  .wh-txn-pager {
    align-items: flex-start;
    flex-direction: column;
  }
  .wh-manage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.wh-manage-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}
.wh-manage-menu-btn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0ece4;
  border-radius: 10px;
  background: #fafdfb;
  cursor: pointer;
  text-align: left;
}
.wh-manage-menu-btn:hover {
  border-color: var(--green, #1a4d2e);
  background: #f4faf6;
}
.wh-manage-menu-btn span:first-child {
  font-size: 20px;
  line-height: 1.2;
}
.wh-manage-menu-btn strong {
  display: block;
  font-size: 14px;
  color: var(--green, #1a4d2e);
}
.wh-manage-menu-btn p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #778;
}
.wh-manage-wh-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #555;
}
.wh-manage-rules p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
}
.wh-manage-rule-box {
  padding: 12px 14px;
  background: #f4faf6;
  border: 1px solid #cfe6d6;
  border-radius: 10px;
  margin-bottom: 10px;
}
.wh-manage-rule-fmt {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green, #1a4d2e);
}
.wh-manage-rule-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: #53665b;
}
.wh-ob-rules {
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.75;
  background: #f8fbf9;
}
.wh-ob-section-title {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green, #1a4d2e);
}
.wh-ob-table .wh-ob-type {
  min-width: 120px;
  font-weight: 600;
}
.wh-ob-hint {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin-top: 4px;
  line-height: 1.45;
}
.wh-ob-readonly {
  background: #f5f5f5 !important;
}
.wh-matrix-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.wh-matrix-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #dcece1;
  border-radius: 999px;
  background: #f7fbf8;
  color: #315b3f;
  font-size: 12px;
  font-weight: 700;
}
.wh-matrix-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}
.wh-matrix-table th,
.wh-matrix-table td {
  padding: 9px 10px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.wh-matrix-table .wh-matrix-scope { width: 18%; }
.wh-matrix-table .wh-matrix-kind { width: 14%; }
.wh-matrix-table .wh-matrix-owner { width: 18%; }
.wh-matrix-table .wh-matrix-ton { width: 14%; }
.wh-matrix-table .wh-matrix-amt { width: 18%; }
.wh-matrix-table .wh-matrix-count { width: 9%; }
.wh-matrix-table .wb-text-right,
.wh-matrix-table .wb-text-center {
  font-variant-numeric: tabular-nums;
}
.wh-matrix-group-row td {
  background: #f2f8f4;
  color: var(--green, #1a4d2e);
  font-weight: 800;
  border-top: 1px solid #cfe5d6;
}
.dr-footer--sticky {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8eee9;
}
