/* 仓库管理系统 · E 版视觉规范（对齐 city-pricing-proto-e） */

/* ── 侧栏分组标题 & 红色未处理角标 ── */
.menu-section-cap {
  padding: 10px 16px 4px;
  font-size: 12px;
  color: #bfbfbf;
  letter-spacing: 2px;
  user-select: none;
}
.menu-section-cap:first-child { padding-top: 2px; }
.app-sidebar.is-collapsed .menu-section-cap { display: none; }

.e-menu-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.e-menu-badge--warn { background: #fa8c16; }
.app-sidebar.is-collapsed .e-menu-badge {
  position: absolute;
  margin: -14px 0 0 14px;
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
}

/* ── 列表页一句话说明 ── */
.e-intro {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px 2px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.e-intro h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  white-space: nowrap;
}
.e-intro p {
  margin: 0;
  font-size: 13px;
  color: #8c8c8c;
  line-height: 1.6;
}

/* ── 工具栏与筛选 chips（统一 34px 高度节奏） ── */
.wh-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 10px;
  flex-shrink: 0;
}
.wh-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.wh-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}
.wh-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wh-toolbar-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #1890ff;
  background: #1890ff;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.wh-btn-primary:hover { background: #40a9ff; border-color: #40a9ff; }
.wh-search-box {
  position: relative;
  width: 268px;
  max-width: 100%;
  flex-shrink: 0;
}
.wh-search-box input {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 13px;
  color: #262626;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, background .15s;
}
.wh-search-box input:focus {
  border-color: #1890ff;
  background: #fff;
}
.wh-search-box input::placeholder { color: #9ca3af; }
.wh-search-box .wh-search-ico {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.wh-btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #434343;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.wh-btn-filter:hover { border-color: #91caff; color: #1890ff; }
.wh-btn-filter.is-active {
  border-color: #91caff;
  background: #e6f4ff;
  color: #1890ff;
  font-weight: 500;
}
.wh-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #1890ff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.wh-tool-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.wh-tool-ico:hover {
  background: #f5f7fa;
  color: #1890ff;
  border-color: #e5e7eb;
}

.filter-chip {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  background: #f5f6f8;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { color: #1890ff; background: #f0f7ff; }
.filter-chip-active {
  background: #e6f4ff;
  color: #1890ff;
  border-color: #91caff;
  font-weight: 500;
}
.filter-chip-count { font-variant-numeric: tabular-nums; font-weight: 600; color: #6b7280; }
.filter-chip-active .filter-chip-count { color: #1890ff; }

/* ── 列表边框容器 & 子栏 & 表格（对齐 city-pricing-proto-e） ── */
.wh-list-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 16px 0;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.e-chipbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: #fffbe6;
  font-size: 12.5px;
  color: #874d00;
  flex-shrink: 0;
}
.e-chipbar.is-plain {
  background: #fafbfc;
  color: #8c8c8c;
}
.e-chipbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.e-reason-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.e-reason-pill:hover { border-color: #91caff; color: #1890ff; }
.e-reason-pill.is-active {
  background: #e6f4ff;
  border-color: #69b1ff;
  color: #1890ff;
  font-weight: 500;
}

.wh-table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.wh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #262626;
}
.wh-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 46px;
  padding: 0 12px;
  background: #f8fafc;
  border-bottom: 1px solid #edf0f5;
  border-right: 1px solid #f1f5f9;
  font-weight: 600;
  color: #374151;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.wh-table thead th:last-child { border-right: 0; }
.wh-table thead th.is-left { text-align: left; }
.wh-table tbody tr {
  cursor: pointer;
  transition: background .12s;
}
.wh-table tbody tr:hover { background: #f8fbff; }
.wh-table tbody td {
  padding: 12px;
  min-height: 58px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  text-align: center;
  vertical-align: middle;
  line-height: 1.55;
  white-space: nowrap;
}
.wh-table tbody td:last-child { border-right: 0; }
.wh-table tbody td.is-left { text-align: left; }
.wh-table tbody td.is-wrap { white-space: normal; min-width: 170px; max-width: 280px; }
.wh-table tbody tr:last-child td { border-bottom: 0; }

.e-sub {
  display: block;
  font-size: 12px;
  color: #8c8c8c;
  line-height: 1.45;
  margin-top: 2px;
}
.cell-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1890ff;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cell-link:hover { color: #40a9ff; text-decoration: underline; }
.cell-link--danger { color: #cf1322; }
.cell-link--danger:hover { color: #ff4d4f; }
.cell-link--green { color: #389e0d; }
.cell-link--green:hover { color: #52c41a; }
.cell-action-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ── 软色状态标签（与 city-pricing-proto-e .v22-tag 完全一致） ── */
.v22-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
  white-space: nowrap;
}
.v22-tag.blue { background: #eff6ff; color: #1677ff; }
.v22-tag.green { background: #f0fdf4; color: #16a34a; }
.v22-tag.orange { background: #fff7ed; color: #d97706; }
.v22-tag.red { background: #fef2f2; color: #dc2626; }
.v22-tag.gray { background: #f1f5f9; color: #64748b; }

/* ── 列设置弹层（.e-colpop） ── */
.e-colbtn { position: relative; display: inline-flex; }
.e-colpop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  width: 220px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
}
.e-colpop .t {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.e-colpop label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}

/* ── 分页底栏 ── */
.wh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #595959;
  flex-shrink: 0;
  background: #fff;
}
.wh-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
}
.wh-pagination .page-btn:disabled { opacity: .45; cursor: not-allowed; }
.wh-pagination .page-btn.is-active {
  border-color: #1890ff;
  color: #1890ff;
  font-weight: 500;
}
.wh-pagination select,
.wh-pagination input[type="number"] {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  outline: none;
}
.wh-pagination input[type="number"] { width: 52px; text-align: center; }

/* ── E 版工作台（1:1 对齐 city-pricing-proto-e/工作台） ── */
.e-home {
  height: 100%;
  overflow: auto;
  padding: 16px 20px 44px;
  background: #f4f5f7;
}
.e-home h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #262626;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.e-home h2 small {
  font-size: 12px;
  font-weight: 400;
  color: #8c8c8c;
}
.e-hello {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.e-hello b { font-size: 18px; color: #1f2937; font-weight: 650; }
.e-hello span { font-size: 13px; color: #8c8c8c; }

.e-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  overflow: hidden;
}
.e-flow a {
  position: relative;
  display: block;
  padding: 14px 18px 14px 22px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #f0f0f0;
  transition: background .15s;
}
.e-flow a:last-child { border-right: 0; }
.e-flow a:hover { background: #f8fbff; }
.e-flow a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  transform: rotate(45deg);
  z-index: 1;
}
.e-flow a:hover::after { background: #f8fbff; }
.e-flow .k { font-size: 13px; color: #595959; }
.e-flow .v {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.3;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
  margin: 2px 0;
}
.e-flow .v.warn { color: #d46b08; }
.e-flow .v.bad { color: #cf1322; }
.e-flow .s { font-size: 12px; color: #8c8c8c; line-height: 1.5; min-height: 18px; }

.e-todo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.e-todo a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.e-todo a:hover {
  border-color: #91caff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, .07);
}
.e-todo .n {
  font-size: 24px;
  font-weight: 650;
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
}
.e-todo a.hot .n { color: #cf1322; }
.e-todo .k { font-size: 13.5px; font-weight: 500; color: #262626; }
.e-todo .s { font-size: 12px; color: #8c8c8c; line-height: 1.5; margin-top: 2px; }

.e-cols2 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
}
.e-panel {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.e-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.e-panel th {
  text-align: left;
  font-weight: 500;
  color: #8c8c8c;
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.e-panel td {
  padding: 10px 8px;
  border-bottom: 1px solid #f5f5f5;
  color: #434343;
  vertical-align: top;
  line-height: 1.55;
}
.e-panel tr:last-child td { border-bottom: 0; }
.e-panel td.num, .e-panel th.num { text-align: right; font-variant-numeric: tabular-nums; }
.e-panel .empty { color: #bfbfbf; text-align: center; padding: 20px 0; font-size: 13px; }

.e-tl { list-style: none; margin: 0; padding: 0; }
.e-tl li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
  line-height: 1.55;
}
.e-tl li:last-child { border-bottom: 0; }
.e-tl .who { color: #8c8c8c; font-size: 12px; margin-top: 2px; }

.e-rule {
  font-size: 13px;
  color: #595959;
  line-height: 1.9;
  margin: 0;
  padding-left: 18px;
}
.d-sub { font-size: 12px; color: #8c8c8c; margin-top: 2px; }
.d-mini {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-weight: 500;
}

/* ── 宽滑出详情抽屉（完全对齐 city-pricing-proto-e 线索详情抽屉） ── */
#page-drawer.v24-detail-drawer .drawer-panel-wide {
  width: min(1320px, calc(100vw - 56px));
  max-width: 100vw;
  transition: width .2s ease;
}
#page-drawer.v24-detail-drawer.is-max .drawer-panel-wide {
  width: 100vw;
}
.wh-drawer-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px 24px;
  background: #fff;
}
.wh-summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #4b5563;
}
.wh-summary-strip b { color: #1f2937; font-weight: 600; }
.wh-summary-strip .wh-summary-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.wh-summary-strip .wh-summary-title {
  font-size: 15px;
  font-weight: 650;
  color: #111827;
}
.wh-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 12px;
  padding-left: 10px;
  border-left: 3px solid #1890ff;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.wh-section-head:first-child { margin-top: 4px; }

.wh-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-bottom: 14px;
}
.wh-info-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.wh-info-row.is-full { grid-column: 1 / -1; }
.wh-info-label {
  text-align: right;
  font-size: 13px;
  color: #6b7280;
}
.wh-info-val {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  background: #fafbfc;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.5;
}
.wh-info-val--edit {
  background: #fff;
  border-color: #d9d9d9;
  padding: 0;
}
.wh-info-val--edit input,
.wh-info-val--edit select,
.wh-info-val--edit textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  color: #1f2937;
}
.wh-seg-group {
  display: inline-flex;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.wh-seg-btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.wh-seg-btn:last-child { border-right: 0; }
.wh-seg-btn:hover { color: #1890ff; }
.wh-seg-btn.is-active {
  background: #1890ff;
  color: #fff;
  font-weight: 500;
}
.wh-drawer-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

/* ── 详情内时间线 ── */
.wh-log-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0 10px;
}
.wh-log-item {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 2px solid #e5e7eb;
  font-size: 13px;
}
.wh-log-item:last-child { border-left-color: transparent; padding-bottom: 4px; }
.wh-log-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1890ff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #91caff;
}
.wh-log-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-weight: 500;
}
.wh-log-time { font-size: 12px; color: #8c8c8c; font-weight: 400; }
.wh-log-desc { margin-top: 3px; color: #595959; line-height: 1.55; }

/* ── 师傅详情小指标条 ── */
.wh-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.wh-mini-kpi {
  padding: 12px 16px;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #fafbfc;
}
.wh-mini-kpi span { font-size: 12px; color: #8c8c8c; display: block; }
.wh-mini-kpi strong { font-size: 22px; font-weight: 650; color: #1f2937; font-variant-numeric: tabular-nums; }

/* ── PRD 页面 ── */
.wh-prd-page {
  height: 100%;
  overflow: auto;
  padding: 16px 20px 44px;
  background: #f4f5f7;
}
.wh-prd-hero {
  background: #fff;
  border: 1px solid #eef0f3;
  border-top: 3px solid #1890ff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wh-prd-hero h1 { margin: 0 0 6px; font-size: 18px; font-weight: 650; color: #1f2937; }
.wh-prd-hero p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.6; }
.wh-prd-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.wh-prd-toc a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  background: #f5f7fa;
  color: #4b5563;
  font-size: 12.5px;
  text-decoration: none;
}
.wh-prd-toc a:hover { background: #e6f4ff; color: #1890ff; }
.wh-prd-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.wh-prd-card h2 {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid #1890ff;
  font-size: 15px;
  font-weight: 650;
  color: #1f2937;
}
.wh-prd-card h3 {
  margin: 14px 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}
.wh-prd-card p, .wh-prd-card li {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.75;
}
.wh-prd-card ul { margin: 4px 0 10px; padding-left: 20px; }

/* ── 悬浮问号帮助按钮 ── */
.wh-help-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #1890ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(24, 144, 255, .36);
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.wh-help-fab:hover { background: #40a9ff; transform: translateY(-2px); }

/* ── 弹窗表单（新增 / 审核 / 驳回 / 切换系统 / 帮助说明） ── */
.wh-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wh-modal {
  width: min(680px, 96vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wh-modal--wide { width: min(820px, 96vw); }
.wh-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.wh-modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1f2937; }
.wh-modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wh-modal-close:hover { background: #f3f4f6; color: #111827; }
.wh-modal-body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1 1 auto;
}
.wh-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.wh-form-row {
  margin-bottom: 14px;
}
.wh-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.wh-form-row label .req { color: #ff4d4f; margin-right: 3px; }
.wh-form-row input,
.wh-form-row select,
.wh-form-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1f2937;
  background: #fff;
  outline: none;
  font-family: inherit;
}
.wh-form-row input:focus,
.wh-form-row select:focus,
.wh-form-row textarea:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, .12);
}
.wh-form-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.wh-sys-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wh-sys-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.wh-sys-card:hover {
  border-color: #91caff;
  background: #f8fbff;
}
.wh-sys-card.is-current {
  border-color: #1890ff;
  background: #eef4ff;
}
.wh-sys-ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e6f4ff;
  color: #1890ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── 暗色模式轻量适配 ── */
html.is-dark body,
html.is-dark .e-home,
html.is-dark .wh-prd-page { background: #14171c !important; color: #e5e7eb; }
html.is-dark .app-sidebar,
html.is-dark .page-list-shell,
html.is-dark .e-flow,
html.is-dark .e-todo a,
html.is-dark .e-panel,
html.is-dark .wh-prd-card,
html.is-dark .wh-prd-hero,
html.is-dark .wh-list-frame,
html.is-dark .wh-pagination,
html.is-dark #top-header-bar,
html.is-dark #top-page-tab-bar { background: #1d2129 !important; border-color: #2e3440 !important; color: #e5e7eb !important; }
html.is-dark .wh-table thead th,
html.is-dark .e-chipbar.is-plain { background: #252b36 !important; color: #cbd5e1 !important; border-color: #2e3440 !important; }
html.is-dark .wh-table tbody td { border-color: #2a303c !important; color: #d1d5db; }
html.is-dark .wh-table tbody tr:hover { background: #252c38 !important; }
html.is-dark .e-intro h1,
html.is-dark .e-hello b,
html.is-dark .e-flow .v,
html.is-dark .e-todo .n,
html.is-dark .e-todo .k,
html.is-dark .e-home h2 { color: #f3f4f6 !important; }

/* ── Toast ── */
#toast.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 12000;
  padding: 9px 18px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#toast.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1200px) {
  .e-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-todo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-cols2 { grid-template-columns: 1fr; }
  .wh-info-grid { grid-template-columns: 1fr; }
}

/* 五端采购仓储 Demo · 局部微调（修复按钮内 span 继承 .e-hello 灰字及 KPI 数字防换行） */
.e-hello .wh-btn-primary,
.e-hello .wh-btn-primary span {
  color: #fff !important;
  font-size: 13px !important;
}
.e-todo a .n {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 22px;
  min-width: 56px;
}
