/* 车队工作台的样式。颜色、间距都在最上面定义，改外观先改这里。 */

:root {
  --wb-bg: #f6f8fb;
  --wb-surface: #ffffff;
  --wb-border: #e6eaf0;
  --wb-border-strong: #d5dbe5;
  --wb-text: #1d2433;
  --wb-text-soft: #5b6578;
  --wb-text-faint: #8d96a7;

  --wb-primary: #3d7eea;
  --wb-primary-strong: #2a67cf;
  --wb-primary-tint: #eaf2fe;

  --wb-ok: #1f9d6b;
  --wb-ok-tint: #e6f6ef;
  --wb-warn: #c27a08;
  --wb-warn-tint: #fdf3df;
  --wb-danger: #d64545;
  --wb-danger-tint: #fdecec;
  --wb-idle: #6b7486;
  --wb-idle-tint: #eef1f5;

  --wb-radius: 12px;
  --wb-radius-sm: 8px;
  --wb-shadow: 0 1px 2px rgba(22, 34, 58, 0.04), 0 4px 16px rgba(22, 34, 58, 0.04);
  --wb-sidebar-width: 216px;

  --wb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;

  /* 让 Bootstrap 的部件跟着用同一套颜色 */
  --bs-body-bg: var(--wb-bg);
  --bs-body-color: var(--wb-text);
  --bs-body-font-family: var(--wb-font);
  --bs-body-font-size: 0.9375rem;
  --bs-border-color: var(--wb-border);
  --bs-primary: var(--wb-primary);
  --bs-primary-rgb: 61, 126, 234;
  --bs-link-color: var(--wb-primary-strong);
  --bs-link-color-rgb: 42, 103, 207;
  --bs-link-hover-color-rgb: 31, 82, 170;
}

body {
  font-family: var(--wb-font);
  background: var(--wb-bg);
  color: var(--wb-text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 整体布局 ---------- */

.wb-shell { display: flex; min-height: 100vh; }

.wb-sidebar {
  width: var(--wb-sidebar-width);
  flex: none;
  background: var(--wb-surface);
  border-right: 1px solid var(--wb-border);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--wb-text);
}
.wb-brand:hover { text-decoration: none; }
.wb-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #5b9bf5, #3d7eea);
  color: #fff;
  display: grid;
  place-items: center;
}

.wb-nav-title {
  padding: 14px 10px 6px;
  font-size: 0.75rem;
  color: var(--wb-text-faint);
  letter-spacing: 0.04em;
}

.wb-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--wb-radius-sm);
  color: var(--wb-text-soft);
  font-size: 0.9375rem;
}
.wb-nav-link svg { flex: none; opacity: 0.75; }
.wb-nav-link:hover { background: var(--wb-bg); color: var(--wb-text); text-decoration: none; }
.wb-nav-link.active { background: var(--wb-primary-tint); color: var(--wb-primary-strong); font-weight: 600; }
.wb-nav-link.active svg { opacity: 1; }

.wb-user {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid var(--wb-border);
  font-size: 0.875rem;
}
.wb-user-name { font-weight: 600; margin-bottom: 8px; }
.wb-user-actions { display: flex; gap: 8px; }

.wb-main { flex: 1; min-width: 0; padding: 28px 32px 48px; }

.wb-page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.wb-page-title { font-size: 1.375rem; font-weight: 600; margin: 0; }
.wb-page-sub { color: var(--wb-text-faint); font-size: 0.875rem; }

.wb-nav-haul { display: none; }
@media (max-width: 860px) {
  .wb-shell { display: block; }
  .wb-sidebar {
    width: auto; height: auto; position: static; padding: 12px;
    border-right: 0; border-bottom: 1px solid var(--wb-border);
  }
  .wb-brand { padding-bottom: 8px; }
  .wb-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .wb-nav-title { display: none; }
  /* 窗口窄的时候“长途车”“短途车”两个小标题不显示，就在每一项前面写上 */
  .wb-nav-haul { display: inline; }
  .wb-user { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
  .wb-user-name { margin: 0; }
  .wb-main { padding: 18px 14px 40px; }
}

/* ---------- 卡片 ---------- */

.wb-card {
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow);
}
.wb-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--wb-border);
  font-weight: 600;
}
.wb-card-body { padding: 16px 18px; }

.wb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1100px) { .wb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wb-stat { padding: 16px 18px; display: block; color: inherit; position: relative; overflow: hidden; }
.wb-stat:hover { text-decoration: none; border-color: var(--wb-border-strong); }
.wb-stat::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--wb-stat-color, var(--wb-border-strong));
}
.wb-stat-label { color: var(--wb-text-soft); font-size: 0.875rem; }
.wb-stat-value { font-size: 1.875rem; font-weight: 600; line-height: 1.2; margin-top: 4px; color: var(--wb-stat-color, var(--wb-text)); }
.wb-stat-note { color: var(--wb-text-faint); font-size: 0.8125rem; margin-top: 2px; }
.wb-stat.is-danger { --wb-stat-color: var(--wb-danger); }
.wb-stat.is-warn { --wb-stat-color: var(--wb-warn); }
.wb-stat.is-primary { --wb-stat-color: var(--wb-primary); }
.wb-stat.is-quiet .wb-stat-value { color: var(--wb-text); }

/* ---------- 提示条 ---------- */

.wb-notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--wb-radius-sm);
  margin-bottom: 16px; font-size: 0.9375rem; border: 1px solid transparent;
}
.wb-notice.is-danger { background: var(--wb-danger-tint); color: #8f2a2a; border-color: #f6caca; }
.wb-notice.is-warn { background: var(--wb-warn-tint); color: #7a4d05; border-color: #f3dfb1; }
.wb-notice.is-ok { background: var(--wb-ok-tint); color: #14684a; border-color: #bfe6d5; }

/* ---------- 分组标签页 ---------- */

.wb-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 12px 0; border-bottom: 1px solid var(--wb-border); }
.wb-tab {
  border: 0; background: none; padding: 8px 12px 10px; font-size: 0.9375rem;
  color: var(--wb-text-soft); border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 6px;
}
.wb-tab:hover { color: var(--wb-text); }
.wb-tab.active { color: var(--wb-primary-strong); border-bottom-color: var(--wb-primary); font-weight: 600; }
.wb-count {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px;
  font-size: 0.75rem; line-height: 20px; text-align: center; font-weight: 600;
  background: var(--wb-idle-tint); color: var(--wb-idle);
}
.wb-count.is-danger { background: var(--wb-danger-tint); color: var(--wb-danger); }
.wb-count.is-warn { background: var(--wb-warn-tint); color: var(--wb-warn); }

/* ---------- 表格 ---------- */

.wb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
.wb-table th {
  text-align: left; font-weight: 500; font-size: 0.8125rem; color: var(--wb-text-faint);
  padding: 10px 18px; background: #fafbfd; border-bottom: 1px solid var(--wb-border); white-space: nowrap;
}
.wb-table td { padding: 11px 18px; border-bottom: 1px solid var(--wb-border); vertical-align: middle; }
.wb-table tbody tr:last-child td { border-bottom: 0; }
.wb-table tbody tr:hover td { background: #fafcff; }
.wb-table .is-strong { font-weight: 600; }
.wb-table .is-soft { color: var(--wb-text-soft); }
.wb-table .is-end { text-align: right; }
.wb-scroll { overflow-x: auto; }

.wb-empty { padding: 36px 18px; text-align: center; color: var(--wb-text-faint); }

/* ---------- 状态标签：颜色之外还有文字和圆点 ---------- */

.wb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.wb-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wb-tag.is-expired, .wb-tag.is-missing { background: var(--wb-danger-tint); color: var(--wb-danger); }
.wb-tag.is-expiring { background: var(--wb-warn-tint); color: var(--wb-warn); }
.wb-tag.is-valid { background: var(--wb-ok-tint); color: var(--wb-ok); }
.wb-tag.is-processing, .wb-tag.is-archived { background: var(--wb-idle-tint); color: var(--wb-idle); }

/* ---------- 按钮 ---------- */

.wb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--wb-radius-sm); font-size: 0.875rem; font-weight: 500;
  border: 1px solid var(--wb-border-strong); background: var(--wb-surface); color: var(--wb-text);
  cursor: pointer;
}
.wb-btn:hover { background: var(--wb-bg); text-decoration: none; color: var(--wb-text); }
.wb-btn.is-primary { background: var(--wb-primary); border-color: var(--wb-primary); color: #fff; }
.wb-btn.is-primary:hover { background: var(--wb-primary-strong); border-color: var(--wb-primary-strong); color: #fff; }
.wb-btn.is-small { padding: 4px 10px; font-size: 0.8125rem; }
.wb-btn.is-block { width: 100%; padding: 10px 14px; font-size: 0.9375rem; }

/* ---------- 表单 ---------- */

.wb-field { margin-bottom: 16px; }
.wb-label { display: block; font-size: 0.875rem; color: var(--wb-text-soft); margin-bottom: 6px; }
.wb-input {
  width: 100%; padding: 9px 12px; border-radius: var(--wb-radius-sm);
  border: 1px solid var(--wb-border-strong); background: var(--wb-surface); color: var(--wb-text);
  font-size: 0.9375rem; font-family: inherit;
}
.wb-input:focus { outline: 0; border-color: var(--wb-primary); box-shadow: 0 0 0 3px rgba(61, 126, 234, 0.15); }
.wb-input.is-invalid { border-color: var(--wb-danger); }
.wb-help { font-size: 0.8125rem; color: var(--wb-text-faint); margin-top: 6px; }
.wb-help ul { padding-left: 18px; margin: 0; }
.wb-error { font-size: 0.8125rem; color: var(--wb-danger); margin-top: 6px; }

/* ---------- 登录页 ---------- */

.wb-auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #e8f1ff 0%, var(--wb-bg) 60%);
}
.wb-auth-card { width: 100%; max-width: 380px; padding: 32px 30px; }
.wb-auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; }
.wb-auth-brand .wb-brand-mark { width: 44px; height: 44px; border-radius: 13px; }
.wb-auth-title { font-size: 1.25rem; font-weight: 600; margin: 0; }

/* ---------- 证照总览 ---------- */

.wb-segment { display: inline-flex; padding: 3px; background: var(--wb-idle-tint); border-radius: 10px; gap: 2px; }
.wb-segment a { padding: 6px 16px; border-radius: 8px; color: var(--wb-text-soft); font-size: 0.875rem; }
.wb-segment a:hover { text-decoration: none; color: var(--wb-text); }
.wb-segment a.active { background: var(--wb-surface); color: var(--wb-text); font-weight: 600; box-shadow: 0 1px 2px rgba(22, 34, 58, 0.08); }

.wb-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wb-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.wb-matrix-wrap { max-height: calc(100vh - 210px); overflow: auto; border-radius: var(--wb-radius); }
.wb-matrix { border-collapse: separate; border-spacing: 0; font-size: 0.875rem; width: 100%; }
.wb-matrix th, .wb-matrix td { padding: 8px 12px; border-bottom: 1px solid var(--wb-border); white-space: nowrap; text-align: center; }
.wb-matrix thead th {
  position: sticky; top: 0; z-index: 2; background: #fafbfd;
  font-weight: 500; font-size: 0.8125rem; color: var(--wb-text-soft);
}
.wb-matrix th:first-child, .wb-matrix td:first-child {
  position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 600;
  background: var(--wb-surface); border-right: 1px solid var(--wb-border);
}
.wb-matrix thead th:first-child { z-index: 3; background: #fafbfd; }

.wb-cell { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 10px; border-radius: 8px; min-width: 96px; line-height: 1.3; }
.wb-cell small { font-size: 0.6875rem; opacity: 0.85; }
.wb-cell.is-valid { color: var(--wb-text-soft); }
.wb-cell.is-expiring { background: var(--wb-warn-tint); color: var(--wb-warn); font-weight: 600; }
.wb-cell.is-expired, .wb-cell.is-missing { background: var(--wb-danger-tint); color: var(--wb-danger); font-weight: 600; }
.wb-cell.is-processing { background: var(--wb-idle-tint); color: var(--wb-idle); }
.wb-cell.is-none { color: var(--wb-border-strong); }

/* ---------- 出入境手续 ---------- */

.wb-narrow { max-width: 560px; }
.wb-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.wb-actions form { margin: 0; }
select.wb-input { appearance: auto; }
textarea.wb-input { resize: vertical; }

.wb-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; margin-bottom: 16px; }
.wb-picker .wb-field { margin: 0; }
@media (max-width: 860px) { .wb-picker { grid-template-columns: 1fr; } }

a.wb-cell.is-link:hover { text-decoration: none; filter: brightness(0.97); outline: 1px solid var(--wb-border-strong); }
.wb-cell.is-ready { color: var(--wb-ok); background: var(--wb-ok-tint); font-weight: 600; }
a.wb-tag:hover { text-decoration: none; filter: brightness(0.97); }

.wb-steps { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px; margin: 0; }
@media (min-width: 1500px) { .wb-steps { grid-template-columns: repeat(4, max-content); } }
.wb-table .is-nowrap, .wb-btn { white-space: nowrap; }
.wb-table .wb-help { margin-top: 2px; font-weight: 400; }
.wb-table .wb-help.is-wrap { white-space: normal; max-width: 220px; }
.wb-board th, .wb-board td { padding-left: 12px; padding-right: 12px; }
.wb-board th:first-child, .wb-board td:first-child { padding-left: 18px; }
.wb-step {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  border: 1px dashed var(--wb-border-strong); background: var(--wb-surface); color: var(--wb-text-soft);
}
.wb-step::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.wb-step:hover { border-color: var(--wb-primary); color: var(--wb-primary-strong); }
.wb-step.is-done { border: 1px solid transparent; background: var(--wb-ok-tint); color: var(--wb-ok); }
.wb-step.is-done::before { background: currentColor; }
.wb-step:disabled { cursor: default; opacity: 0.8; }

.wb-row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.wb-row-actions form { display: flex; gap: 6px; margin: 0; }
.wb-table tr.wb-row-danger td:first-child { box-shadow: inset 3px 0 0 var(--wb-danger); }
.wb-table tr.wb-row-warn td:first-child { box-shadow: inset 3px 0 0 var(--wb-warn); }
.wb-table tr.wb-row-ok td:first-child { box-shadow: inset 3px 0 0 var(--wb-ok); }

.wb-rejected { border-top: 1px solid var(--wb-border); }
.wb-rejected ul { margin: 0; padding-left: 18px; font-size: 0.875rem; }

.wb-coords { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em; }
.wb-manual {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 16px; align-items: end;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--wb-border);
}
.wb-manual .wb-field { margin: 0; }
@media (max-width: 860px) { .wb-manual { grid-template-columns: 1fr; } }

/* ---------- 首页：人和系统一起做事 ---------- */

.wb-stats.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .wb-stats.is-three { grid-template-columns: 1fr; } }

.wb-duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 20px; align-items: start; }
@media (max-width: 1100px) { .wb-duo { grid-template-columns: 1fr; } }

.wb-asks, .wb-feed { list-style: none; margin: 0; padding: 0; }
.wb-ask {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; border-bottom: 1px solid var(--wb-border);
}
.wb-ask:last-child { border-bottom: 0; }
.wb-ask.is-urgent { box-shadow: inset 3px 0 0 var(--wb-danger); }
.wb-ask-text { flex: 1; min-width: 200px; }
.wb-ask-text .is-strong { font-weight: 600; }
.wb-ask-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.wb-ask-form .wb-input { width: 150px; padding: 5px 10px; font-size: 0.875rem; }
.wb-asks, .wb-feed { max-height: 420px; overflow-y: auto; }

.wb-feed li { display: flex; gap: 10px; align-items: baseline; padding: 9px 18px; border-bottom: 1px solid var(--wb-border); font-size: 0.875rem; }
.wb-feed li:last-child { border-bottom: 0; }
.wb-feed-who { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; background: var(--wb-idle-tint); color: var(--wb-idle); }
.wb-feed-who.is-system { background: var(--wb-primary-tint); color: var(--wb-primary-strong); }
.wb-feed-text { flex: 1; min-width: 0; }
.wb-feed-time { flex: none; color: var(--wb-text-faint); font-size: 0.8125rem; }

.wb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 400; color: var(--wb-text-faint); }
.wb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wb-ok); animation: wb-pulse 2s infinite; }
@keyframes wb-pulse { 50% { opacity: 0.3; } }
.wb-steps.is-single { grid-template-columns: repeat(2, max-content); }
.wb-board .wb-ask-form { margin-top: 6px; }
.wb-board .wb-tag { margin: 1px 0; }

/* ---------- 走车进度 ---------- */

.wb-pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 16px;
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius); box-shadow: var(--wb-shadow); overflow: hidden; }
.wb-pipeline-step { padding: 12px 16px; border-right: 1px solid var(--wb-border); position: relative; }
.wb-pipeline-step:last-child { border-right: 0; }
.wb-pipeline-n { font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--wb-border-strong); }
.wb-pipeline-step.has-trucks .wb-pipeline-n { color: var(--wb-primary-strong); }
.wb-pipeline-label { font-size: 0.8125rem; color: var(--wb-text-soft); }
@media (max-width: 860px) { .wb-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wb-track { list-style: none; display: flex; margin: 0 0 4px; padding: 0; gap: 3px; }
.wb-track li {
  padding: 3px 7px; font-size: 0.75rem; white-space: nowrap;
  background: var(--wb-idle-tint); color: var(--wb-text-faint);
}
.wb-track li:first-child { border-radius: 999px 0 0 999px; padding-left: 12px; }
.wb-track li:last-child { border-radius: 0 999px 999px 0; padding-right: 12px; }
.wb-track li.is-done { background: var(--wb-ok-tint); color: var(--wb-ok); }
.wb-track li.is-now { background: var(--wb-primary); color: #fff; font-weight: 600; }

.wb-steps.is-row { display: flex; flex-wrap: wrap; margin-top: 4px; }
.wb-row-actions.is-stack { flex-direction: column; align-items: flex-end; }
.wb-row-actions.is-stack form:empty { display: none; }
.wb-table tr.wb-row-todo td:first-child { box-shadow: inset 3px 0 0 var(--wb-primary); }

/* ---------- 监管库天数 ---------- */

.wb-pipeline.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-pipeline-step.is-danger .wb-pipeline-n { color: var(--wb-danger); }
.wb-days { font-size: 1.375rem; font-weight: 600; }
.wb-days.is-warn { color: var(--wb-warn); }
.wb-days.is-danger { color: var(--wb-danger); }
.wb-input.is-date { width: 150px; padding: 4px 8px; font-size: 0.875rem; }
.wb-ask-form.is-end { justify-content: flex-end; }
.wb-board .wb-ask-form { margin-top: 0; }
.wb-actions.is-tight { margin-top: 6px; }

/* ---------- 72 小时计时、换搭配、消息入口 ---------- */

.wb-pipeline.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wb-pipeline-step.is-warn .wb-pipeline-n { color: var(--wb-warn); }
@media (max-width: 860px) { .wb-pipeline.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wb-days.is-ok { color: var(--wb-text); }

.wb-more { margin-top: 4px; font-size: 0.8125rem; }
.wb-more summary { cursor: pointer; color: var(--wb-text-faint); list-style: none; }
.wb-more summary::-webkit-details-marker { display: none; }
.wb-more summary::after { content: " ▾"; }
.wb-more[open] summary::after { content: " ▴"; }
.wb-more summary:hover { color: var(--wb-primary-strong); }
.wb-more[open] { padding: 8px 10px; margin-top: 6px; border-radius: var(--wb-radius-sm); background: var(--wb-bg); }
.wb-more .wb-ask-form { margin-top: 6px; }
.wb-more.is-end { text-align: right; }
.wb-more.is-end .wb-ask-form { justify-content: flex-end; }
.wb-input.is-date { width: 190px; }

.wb-pair { display: grid; gap: 6px; margin: 6px 0 0; min-width: 170px; }
.wb-pair .wb-input { padding: 5px 8px; font-size: 0.875rem; }
.wb-out { margin: 0; }

.wb-inline { display: inline; margin: 0; }
.wb-link {
  border: 0; background: none; padding: 0; margin-top: 4px; font-size: 0.8125rem;
  color: var(--wb-text-faint); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.wb-link:hover { color: var(--wb-primary-strong); }
.wb-help.mt-0 { margin-top: 0; }
.wb-notice.is-info { background: var(--wb-primary-tint); color: var(--wb-primary-strong); border-color: #cfe0fb; }

.wb-shots { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.wb-shots .wb-btn { margin: 0; cursor: pointer; }
.wb-shots .is-strong { color: var(--wb-primary-strong); font-weight: 600; }

/* 下拉框上面的搜索框 */
.wb-search { padding: 5px 10px; font-size: 0.875rem; margin-bottom: 4px; }
.wb-ask-form .wb-search { width: 110px; margin-bottom: 0; }
.wb-picker .wb-search { margin-bottom: 6px; }
.wb-board .wb-steps.is-single .wb-step, .wb-board .wb-steps .wb-step { padding: 3px 8px; }

/* 页面上方的公司标签 */
.wb-company-tabs a { font-size: 0.9375rem; padding: 7px 20px; }

/* 未读的红点：像微信一样，在模块的右上角 */
.wb-nav-link { position: relative; }
.wb-badge {
  position: absolute; top: 2px; right: 8px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e5484d; color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 18px;
  text-align: center; box-shadow: 0 0 0 2px var(--wb-surface);
}
.wb-segment a { position: relative; }
.wb-segment .wb-badge { top: -6px; right: -4px; }

/* 运输中：路上出的事 */
.wb-incidents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 260px; }
.wb-incident { padding: 6px 8px; border-radius: 6px; background: var(--wb-idle-tint); }
.wb-incident.is-open { background: var(--wb-danger-tint); }
.wb-incident.is-resolved { background: var(--wb-ok-tint); }
.wb-incident.is-cancelled { opacity: 0.6; }
.wb-incident-actions { display: flex; gap: 10px; align-items: center; margin: 4px 0 0; flex-wrap: wrap; }
.wb-incident-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; max-width: 520px; }
.wb-incident-form .wb-input { padding: 5px 10px; font-size: 0.875rem; width: auto; min-width: 0; }
.wb-incident-form .wb-input.is-num { width: 90px; }
.wb-incident-form .wb-input.is-narrow { width: 72px; }
.wb-incident-form .wb-input.is-date { width: 190px; }
.wb-incident-form .wb-input[name="reason"], .wb-incident-form .wb-input[name="note"] { flex: 1 1 180px; }
.wb-incident-pair { display: inline-flex; gap: 4px; }
.wb-pipeline-n.is-text { font-size: 1rem; line-height: 1.4; padding-top: 4px; color: var(--wb-text); }
.wb-more.is-add { margin-top: 0; }
.wb-more.is-add summary { color: var(--wb-primary-strong); font-weight: 500; }
.wb-more.is-add[open] summary { margin-bottom: 6px; }

/* 扫描件一次传一批 */
.wb-batch-summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--wb-border); }
.wb-batch td { vertical-align: top; }
.wb-batch-row.is-ok td:first-child { box-shadow: inset 3px 0 0 var(--wb-ok); }
.wb-batch-row.is-check { background: var(--wb-warn-tint); }
.wb-batch-row.is-check td:first-child { box-shadow: inset 3px 0 0 var(--wb-warn); }
.wb-batch-row.is-reject { background: var(--wb-danger-tint); }
.wb-batch-row.is-reject td:first-child { box-shadow: inset 3px 0 0 var(--wb-danger); }
.wb-batch .wb-input { padding: 5px 10px; font-size: 0.875rem; }
.wb-batch .wb-input.is-plate { width: 120px; }
.wb-batch .wb-input.is-date { width: 160px; }
.wb-batch .wb-input.is-num { width: 80px; }
.wb-batch-name { word-break: break-all; font-size: 0.875rem; }
.wb-revoke { margin: -8px 0 16px; }

/* 从首页的“去看”“去改时间”点过来，落到的那一行亮一下，不用再找 */
.wb-table tr:target td { background: #fff7d6; }
.wb-table tr[id^="trip-"] { scroll-margin-top: 90px; }
/* 点过的按钮先变灰，等页面回话，免得同一下点两次 */
.wb-btn.is-busy, .wb-step.is-busy, .wb-link.is-busy { opacity: .55; pointer-events: none; }
/* 看板断了自动更新的提示 */
.wb-live.is-stopped { color: var(--wb-danger); font-weight: 600; }

/* 点完按钮的回话：页面滚到哪里都看得见 */
.wb-messages { position: sticky; top: 0; z-index: 20; }
.wb-messages:empty { display: none; }
.wb-messages .wb-notice { box-shadow: 0 6px 18px rgba(22, 34, 58, 0.12); }
.wb-live.is-stale { color: var(--wb-warn); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* 输入框下面的备选（目的地的城市） */
.wb-suggest { position: absolute; z-index: 30; left: 0; right: 0; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12); }
.wb-suggest-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid #f2f4f7; background: none; text-align: left; font-size: 0.95rem; }
.wb-suggest-item:hover, .wb-suggest-item:focus { background: #f2f6ff; }
.wb-suggest-item span { color: #667085; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input[data-suggest] { padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; }

/* 报价：分车时每台车的抬头（车名在左，这台车的价在右） */
.wb-truck-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.wb-truck-num { padding-left: 6px; padding-right: 6px; text-align: center; }
