/* ==========================================================================
   通用中后台 · 基于 Arco Design 的静态后台模板
   布局骨架 + 主题扩展。组件样式全部来自 Arco，此文件只负责
   「布局 / 品牌色 / 明暗适配 / 业务小卡片」，不覆盖 Arco 组件默认外观。
   ========================================================================== */

/* ---------- 1. 语义变量：明暗两套 ---------- */
:root {
  --app-brand: #165dff;
  --app-brand-weak: rgba(22, 93, 255, 0.1);
  --app-brand-line: rgba(22, 93, 255, 0.24);
  --app-header-h: 60px;
  --app-tabs-h: 44px;
  --app-sider-w: 220px;
  --app-sider-mini-w: 48px;
  --app-footer-h: 48px;
  --app-pad: 16px;
}

body {
  --app-page-bg: #f4f5f7;
  --app-surface: #ffffff;
  --app-surface-2: #f7f8fa;
  --app-line: #e5e6eb;
  --app-line-soft: #f2f3f5;
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.03);
}

body[arco-theme='dark'] {
  --app-page-bg: #141416;
  --app-surface: #232324;
  --app-surface-2: #2a2a2b;
  --app-line: #333335;
  --app-line-soft: #2a2a2b;
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --app-brand-weak: rgba(22, 93, 255, 0.18);
}

/* ---------- 2. 基础重置 ---------- */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--app-page-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text-1);
  overflow: hidden;
}

#app {
  height: 100%;
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-fill-4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-4);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- 3. 整体骨架 ---------- */
.app-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* 侧边栏 */
.app-sider {
  width: var(--app-sider-w);
  flex: 0 0 var(--app-sider-w);
  height: 100%;
  background: var(--app-surface);
  border-right: 1px solid var(--app-line);
  display: flex;
  flex-direction: column;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    flex-basis 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 20;
}

.app-layout.is-collapsed .app-sider {
  width: var(--app-sider-mini-w);
  flex-basis: var(--app-sider-mini-w);
}

/* 左头部区（2026-09-15 拍板）：不放图标 / 蓝色方块 —— 只剩「系统名称 + Admin Console」两行文字。
   折叠态（48px）本区留空，仅保留一条可点击回工作台的空白条。 */
.app-logo {
  height: var(--app-header-h);
  flex: 0 0 var(--app-header-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--app-line);
  white-space: nowrap;
  cursor: pointer;
}

.app-logo-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.15;
  overflow: hidden;
}

/* 系统名称来自配置项、长度不可控 → 单行省略，避免撑破 220px 侧栏 */
.app-logo-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--color-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-logo-sub {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--color-text-4);
  text-transform: uppercase;
}

.app-layout.is-collapsed .app-logo-text {
  display: none;
}

.app-menu-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 16px;
}

.app-menu-wrap .arco-menu {
  border-radius: 0;
}

.app-sider-foot {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-top: 1px solid var(--app-line);
  font-size: 11px;
  color: var(--color-text-4);
  white-space: nowrap;
  overflow: hidden;
}

/* 主区 */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* 顶栏 */
.app-header {
  height: var(--app-header-h);
  flex: 0 0 var(--app-header-h);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 12px;
  z-index: 15;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-2);
  cursor: pointer;
  transition: all 0.16s;
  font-size: 16px;
  border: none;
  background: transparent;
  padding: 0;
}

.icon-btn:hover {
  background: var(--color-fill-2);
  color: var(--app-brand);
}

.app-header-divider {
  width: 1px;
  height: 20px;
  background: var(--app-line);
  margin: 0 6px;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.16s;
}

.app-user:hover {
  background: var(--color-fill-2);
}

.app-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-brand);
  color: #fff;
  flex: 0 0 30px;
}

.app-user-avatar svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.app-user-name {
  font-size: 13px;
  color: var(--color-text-1);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 页签栏 */
.app-tabs {
  height: var(--app-tabs-h);
  flex: 0 0 var(--app-tabs-h);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
}

.app-tabs::-webkit-scrollbar {
  height: 0;
}

.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px 0 10px;
  border-radius: 13px;
  font-size: 12px;
  color: var(--color-text-2);
  background: var(--app-surface-2);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  flex: 0 0 auto;
  transition: all 0.16s;
}

.app-tab:hover {
  color: var(--app-brand);
}

.app-tab.is-active {
  background: var(--app-brand-weak);
  color: var(--app-brand);
  border-color: var(--app-brand-line);
}

.app-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.app-tab-close {
  font-size: 12px;
  opacity: 0.55;
  border-radius: 50%;
  display: inline-flex;
}

.app-tab-close:hover {
  opacity: 1;
  color: #f53f3f;
}

/* 内容区 */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--app-pad);
  background: var(--app-page-bg);
}

.app-page {
  animation: appFadeUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes appFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-footer {
  padding: 16px 0 8px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-4);
  line-height: 1.8;
}

/* ---------- 4. 通用业务面板 ---------- */
.panel {
  background: var(--app-surface);
  border-radius: 8px;
  border: 1px solid var(--app-line-soft);
  box-shadow: var(--app-card-shadow);
  overflow: hidden;
}

.panel + .panel {
  margin-top: var(--app-pad);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--app-line-soft);
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-1);
}

.panel-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  padding: 18px;
}

.panel-body.is-flush {
  padding: 0;
}

.bar-title {
  position: relative;
  padding-left: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-1);
}

.bar-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--app-brand);
}

/* 面板内 HTML 图例
   不使用 echarts 内置图例：容器宽度变化（如收起侧栏）时它的图例不会可靠重排，
   会停留在按旧宽度计算的位置，因此统一改用 HTML 图例。 */
.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--color-text-3);
  flex-wrap: wrap;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.chart-legend-item > i,
.chart-legend-row > i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
}

.chart-legend-list {
  margin-top: 14px;
  border-top: 1px dashed var(--app-line);
  padding-top: 10px;
}

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
}

.chart-legend-name {
  color: var(--color-text-2);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-legend-value {
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.chart-legend-pct {
  width: 48px;
  text-align: right;
  color: var(--color-text-4);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--color-text-3);
}

.dim {
  color: var(--color-text-4);
  font-size: 12px;
}

/* 正文色小字：与 .dim **同字号（12px）但不置灰**。
   用于表格里的「说明 / 配置项说明」列 —— 2026-09-23 用户要求这两列文字改黑、字号不变。
   ⇒ 只替换列内的 class，**别改 .dim 本身**（全站几十处仍靠它保持浅灰）。 */
.note {
  color: var(--color-text-1);
  font-size: 12px;
}

.mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

/* 欢迎横幅 */
.welcome {
  position: relative;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: var(--app-pad);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #165dff 0%, #2f6bff 42%, #0fc6c2 100%);
}

.welcome::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.welcome::before {
  content: '';
  position: absolute;
  right: 90px;
  bottom: -110px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-inner {
  position: relative;
  z-index: 1;
}

.welcome-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}

.welcome-desc {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 14px;
}

.welcome .arco-tag {
  margin-right: 8px;
}

/* 横幅上的快捷入口胶囊 */
.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(2px);
  transition: background 0.16s;
  cursor: default;
}

.welcome-chip:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 监控页指标格 */
.metric-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.metric-ring {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  line-height: 0;
}

.metric-info {
  flex: 1;
  min-width: 0;
}

.metric-info .stat-label {
  margin-bottom: 2px;
  white-space: nowrap;
}

/* 指标卡 */
.stat-card {
  background: var(--app-surface);
  border-radius: 8px;
  border: 1px solid var(--app-line-soft);
  box-shadow: var(--app-card-shadow);
  padding: 18px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body[arco-theme='dark'] .stat-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-3);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-3);
  margin-left: 4px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex: 0 0 40px;
}

.stat-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--app-line);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-3);
}

.trend-up,
.trend-down {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

/* A股/国内习惯：涨红跌绿 */
.trend-up {
  color: #f53f3f;
}

.trend-down {
  color: #00b42a;
}

/* 迷你进度条 */
.mini-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--color-fill-3);
  overflow: hidden;
  margin-top: 10px;
}

.mini-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s;
}

/* 待办列表 */
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--app-line-soft);
}

.todo-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.todo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex: 0 0 8px;
}

.todo-main {
  flex: 1;
  min-width: 0;
}

.todo-text {
  font-size: 13px;
  color: var(--color-text-1);
  margin-bottom: 3px;
}

.todo-text.is-done {
  text-decoration: line-through;
  color: var(--color-text-4);
}

/* 时间线日志 */
.log-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.log-row {
  display: flex;
  gap: 10px;
  padding: 9px 0 9px 4px;
  border-bottom: 1px dashed var(--app-line-soft);
  font-size: 12.5px;
  align-items: baseline;
}

.log-time {
  color: var(--color-text-4);
  flex: 0 0 62px;
  font-variant-numeric: tabular-nums;
}

.log-tag {
  flex: 0 0 52px;
}

.log-text {
  color: var(--color-text-2);
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

/* 商品卡 */
.goods-card {
  background: var(--app-surface);
  border: 1px solid var(--app-line-soft);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.goods-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body[arco-theme='dark'] .goods-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.goods-thumb {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
}

.goods-badge {
  position: absolute;
  left: 10px;
  top: 10px;
}

.goods-body {
  padding: 12px 14px 14px;
}

.goods-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-1);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-4);
  margin-bottom: 10px;
}

.goods-price {
  color: #f53f3f;
  font-size: 16px;
  font-weight: 600;
}

.goods-price small {
  font-size: 12px;
  font-weight: 400;
}

/* 个人中心 */
.profile-hero {
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(140deg, rgba(22, 93, 255, 0.1), rgba(15, 198, 194, 0.08));
  border: 1px solid var(--app-line-soft);
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 4px;
  color: var(--color-text-1);
}

.profile-role {
  font-size: 12px;
  color: var(--color-text-3);
  margin-bottom: 12px;
}

.profile-stats {
  display: flex;
  border-top: 1px solid var(--app-line);
  margin-top: 16px;
  padding-top: 14px;
}

.profile-stat {
  flex: 1;
  text-align: center;
}

.profile-stat b {
  display: block;
  font-size: 17px;
  color: var(--color-text-1);
}

.profile-stat span {
  font-size: 12px;
  color: var(--color-text-4);
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-2);
  margin-bottom: 8px;
}

/* 通知浮层 */
.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-line-soft);
  font-size: 13px;
}

.pop-list {
  max-height: 320px;
  overflow-y: auto;
}

.pop-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--app-line-soft);
}

.pop-item:last-child {
  border-bottom: none;
}

.pop-item-title {
  font-size: 13px;
  color: var(--color-text-1);
  margin-bottom: 3px;
  line-height: 1.4;
}

/* 状态点 */
.status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-2);
}

.status-cell > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
}

/* 实时采集徽标 */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #00b42a;
  background: rgba(0, 180, 42, 0.12);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00b42a;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 180, 42, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 5px rgba(0, 180, 42, 0);
  }
}

/* 空状态占位 */
.app-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  gap: 14px;
  text-align: center;
}

.app-placeholder-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--app-brand);
  background: var(--app-brand-weak);
}

/* ---------- 5. Arco 局部微调 ---------- */
.app-menu-wrap .arco-menu-inner {
  padding: 4px 8px;
  overflow-y: auto;
}

.app-menu-wrap .arco-menu-item,
.app-menu-wrap .arco-menu-inline-header {
  border-radius: 6px !important;
  margin-bottom: 2px;
  /* 2026-09-16 拍板：栏目高度 38 → 48px（一级 + 二级同步，用户要求整体加高 10px）。
     ⚠️ line-height 与 height 必须同改，否则文字垂直居中会偏。 */
  line-height: 48px;
  height: 48px;
}

.app-menu-wrap .arco-menu-item.arco-menu-selected {
  background: var(--app-brand-weak);
  color: var(--app-brand);
  font-weight: 500;
}

.app-menu-wrap .arco-menu-item.arco-menu-selected::after {
  display: none;
}

.app-menu-wrap .arco-menu-icon {
  margin-right: 10px;
}

.arco-table-td .arco-btn-text {
  padding: 0 6px;
  height: 24px;
  font-size: 13px;
}

.arco-card {
  border-radius: 8px;
}

.arco-layout-sider {
  background: var(--app-surface);
}

/* 表格内主信息单元 */
.cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-user-name {
  font-size: 13px;
  color: var(--color-text-1);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-user-mail {
  font-size: 12px;
  color: var(--color-text-4);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式：窄屏自动收起侧栏 */
@media (max-width: 860px) {
  .app-sider {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.12);
  }
  .app-user-name {
    display: none;
  }
}

/* ==========================================================================
   登录页 / 启动页 / 业务页补充样式
   ========================================================================== */

/* ---------- 启动校验登录态 ---------- */
.boot-splash {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-text-3);
}
.boot-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #165dff, #0fc6c2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.boot-text {
  font-size: 13px;
}

/* ---------- 登录页 ---------- */
.login-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2ff 0%, #f7f9fc 45%, #e6fbfa 100%);
}
body[arco-theme='dark'] .login-page {
  background: linear-gradient(135deg, #10131a 0%, #171a21 50%, #101820 100%);
}
.login-card {
  width: 400px;
  padding: 34px 32px 30px;
  border-radius: 14px;
  background: var(--color-bg-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border-1);
}
/* 登录框顶部（2026-09-15 拍板）：只有一行文字，无 logo 方块、无副标题 */
.login-title {
  margin-bottom: 26px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-1);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--red-6));
  font-size: 13px;
}

/* ---------- 顶栏角色小字 ---------- */
.app-user-role {
  font-size: 12px;
  color: var(--color-text-3);
  margin-left: 2px;
}

/* ---------- 业务页通用工具条 ---------- */
.search-bar {
  margin-bottom: 12px;
}
/* 检索区输入框：浅色模式白底 + 灰色边框 */
.search-bar .arco-input-wrapper,
.search-bar .arco-input-group,
.search-bar .arco-select-view,
.search-bar .arco-range-picker,
.search-bar .arco-picker,
.search-bar .arco-input-inner-wrapper,
.search-bar .arco-range-picker-input {
  background: #fff !important;
  border-color: var(--app-line) !important;
}
/* Arco Select / RangePicker 内部两个 input 也要白底 */
.search-bar .arco-range-picker .arco-input-wrapper,
.search-bar .arco-range-picker .arco-input-inner-wrapper {
  background: #fff !important;
}
.search-bar .arco-form-item {
  margin-bottom: 0;
}
/* 暗黑模式：深灰背景 + 深灰边框（仍用 !important 覆盖 Arco 主题变量） */
body[arco-theme='dark'] .search-bar .arco-input-wrapper,
body[arco-theme='dark'] .search-bar .arco-input-group,
body[arco-theme='dark'] .search-bar .arco-select-view,
body[arco-theme='dark'] .search-bar .arco-range-picker,
body[arco-theme='dark'] .search-bar .arco-picker,
body[arco-theme='dark'] .search-bar .arco-input-inner-wrapper,
body[arco-theme='dark'] .search-bar .arco-range-picker-input {
  background: var(--app-surface-2) !important;
  border-color: var(--app-line) !important;
}
.search-bar-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.search-bar-actions > .arco-btn {
  min-width: 96px;
}
/* 功能区：创建按钮贴行内最左，其余功能按钮组贴行内最右（全局规范 §2.10） */
.tool-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
/* 创建按钮之外的其余功能按钮组：整体推到行尾 */
.tool-bar .tool-actions {
  margin-left: auto;
}
.tool-bar > .a-button,
.tool-bar .arco-btn {
  min-width: 96px;
}
/* 合计条：表格上方一行文字汇总（当前筛选口径） */
.sum-bar {
  margin-bottom: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text-2);
  background: var(--color-fill-1);
  border-radius: 4px;
}
.sum-bar b {
  color: var(--color-text-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pager-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.ellipsis {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.warn-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: rgb(var(--orange-6));
  background: rgba(255, 125, 0, 0.1);
}

/* ---------- 弹窗内小行 / 日志 ---------- */
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--color-border-1);
  font-size: 13px;
  color: var(--color-text-1);
}
.mini-row:last-child {
  border-bottom: none;
}
.log-item {
  border: 1px solid var(--color-border-1);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.log-url {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--color-text-1);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-body {
  margin-top: 6px;
  font-size: 12px;
}
.log-pre {
  margin: 4px 0 0;
  padding: 8px 10px;
  background: var(--color-fill-2);
  border-radius: 6px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--color-text-2);
}

/* ---------- 权限抽屉 ---------- */
.perm-group {
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border-1);
}
.perm-pages {
  padding-left: 18px;
}
.perm-page {
  padding: 6px 0;
}
.perm-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-left: 22px;
  margin-top: 4px;
}


/* ---------- 页签样式（右切换区 .filter-tabs）---------- */
/* 页签样式（与检索区拉开层次） */
.filter-tabs {
  margin: 4px 0 10px;
}

/* ---------- 表格单元格：多行堆叠 ---------- */
.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.5;
}
.cell-stack-right {
  align-items: flex-end;
  text-align: right;
}
.cell-stack-center {
  align-items: center;
  text-align: center;
}
.cell-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  word-break: break-all;
}

/* ---------- 单元格：编号等宽 / 空值占位 ---------- */
.cell-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--color-text-2);
}
.cell-empty {
  color: var(--color-text-3);
}

/* ---------- 状态小标（表格单元格内）---------- */
.cell-bill {
  flex: none;
}
.cell-bill.is-ok {
  color: rgb(var(--green-6));
}
.cell-bill.is-err {
  color: rgb(var(--red-6));
}
.cell-bill.is-pending {
  color: var(--color-text-3);
}

/* ---------- 计划任务（page-job）---------- */
/* ==========================================================================
   计划任务（page-job）
   ========================================================================== */
.job-name {
  font-weight: 500;
}
.job-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-on {
  color: rgb(var(--green-6));
}
.job-off {
  color: var(--color-text-3);
}

/* ---------- 危险数值（负数等）：红字 ---------- */
/* 危险数值（负数 / 负余额）：红字。
   ⚠️ 曾经的坑：页面 JS 早已引用 `cell-danger`，但 CSS 里**从未定义过这个类** ⇒
   负数标红一直是**静默失效**的（类名加上了、没有任何样式可见）。这里补上定义。
   ⚠️ 必须连 `.sum-bar b.cell-danger` 一起写：`.sum-bar b` 的特异性是 (0,0,1,1)，
      而裸 `.cell-danger` 是 (0,0,1,0) ⇒ 会被它盖掉，合计条里的负数仍然不红。 */
.cell-danger,
.sum-bar b.cell-danger {
  color: rgb(var(--danger-6));
}

/* ---------- 表格辅助小字：单行省略（常与 .cell-wrap 叠加）---------- */
.cell-sub {
  font-size: 12px;
  color: var(--color-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 表格辅助小字：强制换行（最多 2 行）----------
   ⚠️ 必须与 .cell-sub 叠加使用（class="cell-sub cell-wrap"），否则会丢掉小字的字号与浅色。 */
.cell-wrap {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ==========================================================================
   开发管理 · 报销配置（车队审批链）—— rb- 前缀
   左车队列表 + 右审批链；节点/审批人用原生 table 手写，方便「审批人 + 类型标签」这种
   带自定义内容的单元格，不必绕 a-table 的插槽。
   颜色全部走 Arco 变量，深色主题自动跟随。
   ========================================================================== */
.rb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.rb-title { font-size: 18px; font-weight: 600; }

.rb-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .rb-layout { grid-template-columns: 1fr; }
}

/* ---------- 左：车队列表 ---------- */
.rb-aside {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border-2);
  border-radius: 8px;
  overflow: hidden;
}
.rb-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border-2);
}
.rb-fleet-list { padding: 4px 8px 10px; max-height: calc(100vh - 320px); overflow: auto; }
.rb-fleet-item {
  position: relative;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.rb-fleet-item + .rb-fleet-item { margin-top: 2px; }
.rb-fleet-item:hover { background: var(--color-fill-1); }
.rb-fleet-item.active { background: rgb(var(--primary-1)); border-color: rgb(var(--primary-2)); }
.rb-fleet-item.active::before {
  content: '';
  position: absolute;
  left: -1px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgb(var(--primary-6));
}
.rb-fleet-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rb-fleet-name { font-size: 13px; font-weight: 600; }
.rb-fleet-meta { margin-top: 2px; font-size: 12px; color: var(--color-text-3); }
.rb-fleet-meta.warn { color: rgb(var(--orange-6)); }
.rb-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.rb-dot.ok { background: rgb(var(--green-6)); }
.rb-dot.no { background: var(--color-text-3); }

/* ---------- 右：主区 ---------- */
.rb-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rb-panel {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border-2);
  border-radius: 8px;
}
.rb-placeholder { padding: 44px 16px; text-align: center; }
.rb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}
.rb-tb-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.rb-tb-name { font-size: 15px; font-weight: 600; }
.rb-tb-right { display: flex; gap: 8px; flex: 0 0 auto; }

/* 节点卡 */
.rb-node { overflow: hidden; }
.rb-node-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--color-fill-1);
  border-bottom: 1px solid var(--color-border-2);
}
.rb-idx {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(var(--primary-6));
  color: #fff;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.rb-node-name { font-size: 14px; font-weight: 600; }
.rb-edit {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 12px;
  color: var(--color-text-3);
  cursor: pointer;
}
.rb-edit:hover { background: var(--color-fill-2); color: rgb(var(--primary-6)); }
.rb-bind {
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: rgb(var(--primary-6));
  background: rgb(var(--primary-1));
}
/* 任务7-2：节点未绑定审批状态（会收不到待审费用，必须显眼） */
.rb-bind-none {
  color: rgb(var(--danger-6));
  background: rgb(var(--danger-1));
}
.rb-node-ops { margin-left: auto; display: flex; gap: 6px; }

.rb-table { width: 100%; border-collapse: collapse; }
.rb-table th {
  padding: 7px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-3);
  background: var(--color-fill-1);
  border-bottom: 1px solid var(--color-border-2);
}
.rb-table td {
  padding: 9px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border-2);
}
.rb-table tr:last-child td { border-bottom: none; }
.rb-table th.r, .rb-table td.r { text-align: right; white-space: nowrap; }
.rb-ops a { margin-left: 10px; }
.rb-ops a:first-child { margin-left: 0; }

.rb-who { display: flex; align-items: center; gap: 8px; }
.rb-ava {
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--arcoblue-5)), rgb(var(--cyan-5)));
  color: #fff;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.rb-ava.fin { background: linear-gradient(135deg, rgb(var(--orange-5)), rgb(var(--red-5))); }
.rb-who-t { line-height: 1.25; }
.rb-who-t b { display: block; font-size: 13px; font-weight: 500; }
.rb-who-t span { font-size: 11px; color: var(--color-text-3); }

.rb-type-tag {
  display: inline-flex; align-items: center;
  height: 22px;
  padding: 0 8px;
  margin: 0 4px 4px 0;
  border-radius: 4px;
  font-size: 12px;
  background: var(--color-fill-2);
  color: var(--color-text-2);
}
.rb-type-tag.all { background: rgb(var(--green-1)); color: rgb(var(--green-6)); }

.rb-node-empty { padding: 16px 14px; font-size: 13px; color: var(--color-text-3); }
.rb-node-foot { padding: 2px 14px 10px; }

.rb-empty { padding: 40px 16px; text-align: center; }
.rb-empty-title { margin-bottom: 6px; font-size: 15px; font-weight: 600; }

.rb-exit {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--color-text-3);
  border: 1px dashed var(--color-border-2);
  border-radius: 8px;
}

/* ---------- 弹窗内表单 ---------- */
.rb-field + .rb-field { margin-top: 16px; }
.rb-lab { margin-bottom: 6px; font-size: 13px; color: var(--color-text-2); }
.rb-lab .req { margin-right: 2px; color: rgb(var(--red-6)); }
.rb-checks-wrap {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border-2);
  border-radius: 6px;
  background: var(--color-fill-1);
}
.rb-checks-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--color-text-3);
}
.rb-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.rb-checks .arco-checkbox { margin-right: 0; font-size: 13px; }

/* ==========================================================================
   报销管理（报销明细 / 报销单）—— 详情弹框内的信息区
   只描述「数据结构」，不承载任何说明性文案（全局规范 §3.6）。
   ========================================================================== */

/* 键值网格：3 列；`.kv-span2/3` 给长字段（流水号、备注）跨列 */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
}
.kv-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv-lab { font-size: 12px; color: var(--color-text-3); }
.kv-val { font-size: 13px; color: var(--color-text-1); word-break: break-all; }
.kv-span2 { grid-column: span 2; }
.kv-span3 { grid-column: span 3; }
/* 任务2：审批/查看三块改成「每行 4 项」 */
.kv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kv-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kv-sec {
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--app-line-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-2);
}

/* 审批链：横排节点卡（不用 a-steps —— 要展示每个节点的审批人与状态色，定制更直接） */
.chain { display: flex; gap: 8px; flex-wrap: wrap; }
.chain-node {
  flex: 1 1 170px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--app-line);
  border-top: 2px solid var(--app-line);
  border-radius: 6px;
  background: var(--app-surface-2);
}
.chain-node.is-done { border-top-color: rgb(var(--green-6)); }
.chain-node.is-current { border-top-color: var(--app-brand); background: var(--app-brand-weak); }
.chain-node.is-rejected { border-top-color: rgb(var(--red-6)); }
.chain-node.is-pending { opacity: 0.72; }
.chain-top { display: flex; align-items: center; gap: 6px; }
.chain-idx {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--app-line);
  color: var(--color-text-2);
  font-size: 11px; line-height: 16px; text-align: center;
}
.chain-name { font-size: 13px; font-weight: 600; color: var(--color-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain-aps { margin-top: 4px; font-size: 12px; color: var(--color-text-3); word-break: break-all; }
.chain-st { margin-left: auto; font-size: 11px; color: var(--color-text-3); }

/* 时间线（审批流水 / 历史记录） */
.log-list { display: flex; flex-direction: column; }
.log-item { display: flex; gap: 10px; }
.log-rail { flex: none; width: 10px; display: flex; flex-direction: column; align-items: center; }
.log-dot {
  flex: none;
  width: 8px; height: 8px; margin-top: 5px;
  border-radius: 50%;
  background: var(--app-line);
}
.log-dot.is-ok { background: rgb(var(--green-6)); }
.log-dot.is-no { background: rgb(var(--red-6)); }
.log-line { flex: 1; width: 1px; background: var(--app-line-soft); }
.log-body { flex: 1; padding-bottom: 12px; min-width: 0; }
.log-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--color-text-1); }
.log-time { margin-left: auto; font-size: 12px; color: var(--color-text-3); white-space: nowrap; }
.log-note { margin-top: 2px; font-size: 12px; color: var(--color-text-2); word-break: break-all; }

/* 详情弹框内的缩略图 */
.pic-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pic-row .arco-image { border-radius: 4px; overflow: hidden; }

/* 明细/单据详情里的内嵌小表：去掉外层留白，避免和弹框双边框 */
.embed-table .arco-table-container { border: 1px solid var(--app-line); border-radius: 6px; }

/* ==========================================================================
   报销明细 · 2026-10-26（任务1）改版样式
   · 查看弹窗：1200px 两栏（左 60% 五区块 / 右 40% 审批流程）
   · 审批弹窗：1400px 三栏（20% 该司机最近 50 笔 / 55% 同查看左栏 / 25% 节点+按钮）
   · 表格 7 列：多行单元格（费用信息 / 车牌号 / 发起人 / 审批节点 / 报销状态）
   ========================================================================== */

/* ---------------- 弹窗分栏 ---------------- */
.detail-2col { display: flex; gap: 18px; align-items: flex-start; }
.detail-2col .col-left { flex: 0 0 60%; max-width: 60%; min-width: 0; }
.detail-2col .col-right { flex: 1 1 40%; min-width: 0; }

.approve-3col { display: flex; gap: 12px; align-items: flex-start; }
.approve-3col .col-r { flex: 0 0 20%; max-width: 20%; min-width: 0; }
.approve-3col .col-m { flex: 0 0 calc(55% - 24px); max-width: calc(55% - 24px); min-width: 0; }
.approve-3col .col-a { flex: 1 1 25%; min-width: 0; }

/* ---------------- 左栏五区块 ---------------- */
.dsec { margin-bottom: 14px; }
.dsec:last-child { margin-bottom: 0; }
.dsec-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--app-line-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-2);
}
.dsec-act { margin-left: auto; font-weight: 400; }

/* 车牌胶囊（主车 / 挂车） */
.car-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 0 6px 4px 0;
  padding: 1px 8px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-surface-2);
  font-size: 12px;
}
.car-chip em { font-style: normal; font-size: 11px; color: var(--color-text-3); }

/* ---------------- 图片网格（照片 / 支付单据） ---------------- */
.pay-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-card {
  width: 100px;
  padding: 5px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: var(--app-surface-2);
  font-size: 11px;
  color: var(--color-text-2);
  line-height: 1.5;
}
.pay-card.is-dup { border-color: rgb(var(--red-6)); box-shadow: 0 0 0 1px rgba(var(--red-6), 0.25); }
.pay-card .arco-image { border-radius: 4px; overflow: hidden; display: block; }
.pay-doc { width: 158px; }
.pay-doc .arco-image { margin-bottom: 4px; }
.pay-ai { word-break: break-all; }
.pay-no { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-st { margin-top: 2px; color: var(--color-text-3); }
.pay-st.st-1 { color: rgb(var(--green-6)); }
.pay-st.st-2 { color: rgb(var(--red-6)); }
.pay-st.st-3 { color: rgb(var(--orange-6)); }
.dup-tag {
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(var(--red-6), 0.12);
  color: rgb(var(--red-6));
  font-size: 10px;
}
.pay-pick { display: flex; align-items: center; gap: 3px; margin-top: 3px; cursor: pointer; }
.pay-actions { margin-top: 8px; }

/* 上传按钮：把原生 file 藏起来，用文字当触发器 */
.up-label {
  padding: 1px 8px;
  border: 1px dashed var(--app-brand);
  border-radius: 4px;
  color: var(--app-brand);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.up-label:hover { background: var(--app-brand-weak); }

/* ---------------- 审批节点链（任务4）----------------
   序号 + 审批人 + 审批状态。列表列（210px）/ 查看弹窗 / 审批弹窗三处渲染同一个组件，
   窄宽都靠 flex 自适应，不再各写一套。
   ★ 状态四色：已通过=绿 · 待审核=主色（唯一加粗强调）· 拒绝=红 · 未开始=灰 */
.nc { display: flex; flex-direction: column; gap: 2px; }
.nc-row { display: flex; align-items: center; gap: 6px; line-height: 1.65; color: var(--color-text-3); }
.nc-idx {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--app-line);
  color: var(--color-text-2);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.nc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nc-name { color: var(--color-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-node { font-size: 11px; color: var(--color-text-3); }
/* 按费用类型筛完没人认领（B 车队行政罚款 1,288 条）——黄色提醒，别和「未配置审批人」混为一谈
   ⚠️ Arco 的 `--orange-6` 是 RGB 三元组（"255, 125, 0"），必须写成 rgb(var(...))；
      直接 `color: var(--orange-6)` 会得到非法值 → 浏览器整条丢弃 → 静默退回灰色。 */
.nc-none { color: rgb(var(--orange-6, 255, 125, 0)); }
.nc-st { flex: none; display: inline-flex; align-items: center; gap: 3px; color: var(--color-text-3); white-space: nowrap; }
.nc-st.nc-na { opacity: 0.5; }
.nc-row.is-done .nc-idx { background: rgba(var(--green-6), 0.18); color: rgb(var(--green-6)); }
.nc-row.is-done .nc-st { color: rgb(var(--green-6)); }
.nc-row.is-current .nc-name { font-weight: 500; }
.nc-row.is-current .nc-idx { background: var(--app-brand); color: #fff; }
.nc-row.is-current .nc-st { color: var(--app-brand); font-weight: 500; }
.nc-row.is-rejected .nc-idx { background: rgba(var(--red-6), 0.16); color: rgb(var(--red-6)); }
.nc-row.is-rejected .nc-st { color: rgb(var(--red-6)); }
.nc-row.is-pending .nc-name { color: var(--color-text-3); }

/* ---------------- 审批节点链·横向（任务7：仅列表用）----------------
   一行到底：`人名 图标 → 人名 图标 → 人名 图标`。
   ★ 人名与图标**同一颜色**，四态四色：通过=绿 · 等待=主色蓝 · 拒绝=红 · 未到=灰。
     图标是 inline SVG 用 `stroke="currentColor"`，所以只要给 `.nc-hi` 设 color 就够了。
   ⚠️ Arco 的 `--green-6 / --red-6` 是 RGB 三元组（"0, 180, 42"），必须 `rgb(var(--x))`；
      直接 `color: var(--x)` 是非法值，整条规则会被丢弃、静默退灰。 */
.nc-h {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}
.nc-hi { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.nc-hi .nc-hn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }
.nc-hi svg { flex: none; display: block; }
.nc-harw { flex: none; color: var(--color-text-4); font-size: 12px; opacity: 0.75; }
.nc-hi.is-done { color: rgb(var(--green-6)); }
.nc-hi.is-current { color: var(--app-brand); font-weight: 500; }
.nc-hi.is-rejected { color: rgb(var(--red-6)); font-weight: 500; }
.nc-hi.is-pending { color: var(--color-text-3); }
/* 筛完没人认领 / 车间没配人 —— 与纵向同口径用黄色提醒（优先级高于四态色） */
.nc-hi.nc-none { color: rgb(var(--orange-6, 255, 125, 0)); }

/* ---------------- 审批历史（任务6：查看 / 审批 / 1000px 明细三处共用）----------------
   数据来自业务库操作记录表（司机发起 + 各节点通过/拒绝），按时间正序。
   · 圆点与状态文字配色只用三类：通过绿 / 拒绝红 / 提交·作废灰
   · ⚠️ Arco 的 --green-6 / --red-6 是 RGB 三元组，必须 rgb(var(--x))，直接写 var() 整条规则会被丢弃 */
.ah-list { max-height: 240px; overflow-y: auto; padding-right: 2px; }
.ah-row { display: flex; gap: 7px; padding: 5px 0; border-bottom: 1px dashed var(--app-line-soft); }
.ah-row:last-child { border-bottom: 0; }
.ah-dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--color-text-4);
}
.ah-row.is-pass .ah-dot { background: rgb(var(--green-6)); }
.ah-row.is-reject .ah-dot { background: rgb(var(--red-6)); }
.ah-body { flex: 1; min-width: 0; }
.ah-top { display: flex; align-items: baseline; gap: 6px; }
.ah-type { font-size: 12px; font-weight: 500; color: var(--color-text-1); }
.ah-st { font-size: 11px; color: var(--color-text-3); }
.ah-row.is-pass .ah-st { color: rgb(var(--green-6)); }
.ah-row.is-reject .ah-st { color: rgb(var(--red-6)); }
.ah-sub {
  display: flex;
  gap: 8px;
  margin-top: 1px;
  font-size: 11px;
  color: var(--color-text-3);
  line-height: 1.6;
}
.ah-who { flex: none; }
.ah-time { flex: none; }
.ah-reason {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.55;
  color: rgb(var(--red-6));
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* 审批弹窗右栏只有 25% 宽，历史区再压低一点，保证底部三个按钮不被顶出屏幕 */
.approve-3col .col-a .ah-list { max-height: 200px; }

/* ---------------- 审批弹窗：左栏「该司机最近 50 笔」 ---------------- */
.mini-list { max-height: 560px; overflow-y: auto; padding-right: 2px; }
.mini-item {
  padding: 6px 8px;
  margin-bottom: 6px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: var(--app-surface-2);
  cursor: pointer;
  font-size: 12px;
  color: var(--color-text-2);
  line-height: 1.5;
}
.mini-item:hover { border-color: var(--app-brand); }
.mini-item.is-active { border-color: var(--app-brand); background: var(--app-brand-weak); }
/* 任务2：该司机最近 50 笔里标注「当前审批的本条」 */
.mini-item.is-current {
  border-color: var(--app-brand);
  border-left-width: 3px;
  background: var(--app-brand-weak);
}
.mini-cur {
  flex: none;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--app-brand);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  font-style: normal;
  white-space: nowrap;
}
.mini-top { display: flex; align-items: baseline; gap: 6px; }
.mini-top b { font-size: 13px; color: var(--color-text-1); }
.mini-date { margin-left: auto; font-size: 11px; color: var(--color-text-3); }
.mini-sub { font-size: 11px; color: var(--color-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 审批弹窗：右栏三个动作（任务2：横排、无「关闭」） ---------------- */
.approve-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.approve-btns { display: flex; gap: 8px; }
.approve-btns .arco-btn { flex: 1 1 0; min-width: 0; padding: 0 4px; }
.approve-actions .arco-btn { justify-content: center; }
.approve-hint { font-size: 11px; color: var(--color-text-3); text-align: center; }

/* ---------------- 表格多行单元格 ---------------- */
.fee-amt { font-size: 13px; font-weight: 600; color: var(--color-text-1); }
.cell-sub { font-size: 11px; color: var(--color-text-3); line-height: 1.6; }
.cell-note {
  font-size: 11px;
  color: var(--color-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-line { display: flex; align-items: baseline; gap: 5px; font-size: 12px; line-height: 1.7; }
.car-main { font-weight: 600; }
/* 任务5：`.car-role`（主车/挂车小标签，10px 灰底）已随需求下线，样式一并删除 */

/* ---------------- 任务4：报销明细表 14px 统一字号 ----------------
   原文「表格区：字体统一大小14px」。表格单元格里是自行编排的多行结构
   （.fee-amt / .cell-sub / .cell-note / .cell-line / .nc-*），
   所以既要抬 .arco-table-td，也要抬这些子元素，否则它们各自的 11–13px 会顶掉。 */
.expense-table .arco-table-th,
.expense-table .arco-table-td { font-size: 14px; }
.expense-table .fee-amt,
.expense-table .cell-sub,
.expense-table .cell-note,
.expense-table .cell-line,
.expense-table .nc-row,
.expense-table .bill-st { font-size: 14px; }
.expense-table .fee-amt { font-weight: 500; }
.expense-table .cell-sub,
.expense-table .cell-note { line-height: 1.55; }
/* 任务5：车牌号列 14px。
   ⚠️ 车牌号 span 自带 `.mono`（12px，全局等宽字体）⇒ 光抬 `.cell-line` 不够，
      必须用 `.expense-table .car-main`（0,2,0）才能压过 `.mono`（0,1,0）。 */
.expense-table .car-main { font-size: 14px; }

/* ---------------- 报销状态（任务4：去底色，纯文字 + 状态色）---------------- */
.bill-st { font-weight: 500; white-space: nowrap; }
.bill-st.st-none { color: var(--color-text-3); }
.bill-st.st-waiting { color: rgb(var(--orange-6, 255, 125, 0)); }
.bill-st.st-todo { color: var(--app-brand); }
.bill-st.st-paid { color: rgb(var(--green-6)); }
.bill-st.st-void { color: rgb(var(--red-6)); }

/* ---------------- 费用明细·车牌号（任务5：去底色、去「主车/挂车」标签、14px）---------------- */
.car-plain { display: inline-flex; align-items: baseline; gap: 4px; margin-right: 10px; font-size: 14px; }
/* 内含 <b class="mono">（全局 12px）⇒ 必须用「类+标签」提升优先级才是 14px */
.car-plain b { font-size: 14px; font-weight: 600; }

/* ---------------- 查看弹窗·驳回提示条（任务5）---------------- */
.rej-tip {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--border-radius-small, 4px);
  background: rgba(var(--red-1, 255, 236, 232), 1);
  border: 1px solid rgba(var(--red-2, 251, 202, 196), 1);
}
.rej-tip-h { font-size: 13px; font-weight: 600; color: rgb(var(--red-6)); }
.rej-tip-node { font-weight: 500; }
.rej-tip-row { margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--color-text-2); word-break: break-all; }

/* ---------------- 报销单（任务6 · 8 列）----------------
   一列里塞多行的三个格子：司机信息 / 报销金额 / 费用明细。
   字号与行高比明细页略松一点，因为这里每格至少两行文字。 */
.bill-table .bill-drv { font-size: 13px; line-height: 1.5; color: var(--color-text-1); }
.bill-table .bill-tel { font-size: 12px; line-height: 1.5; color: var(--color-text-3); }
.bill-table .bill-money { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--color-text-1); font-variant-numeric: tabular-nums; }
.bill-table .bill-no { font-size: 11px; line-height: 1.5; color: var(--color-text-3); }
.bill-table .bill-rcpt { margin-top: 2px; }

/* 费用明细：一行一条「车牌号 类型 金额 日期 [查看]」 */
.bill-table .bit { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.95; }
.bill-table .bit-car { flex: 0 0 90px; font-size: 13px; font-weight: 600; color: var(--color-text-1); }
.bill-table .bit-type { flex: 1 1 auto; min-width: 0; color: var(--color-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-table .bit-amt { flex: 0 0 auto; font-weight: 500; color: var(--color-text-1); font-variant-numeric: tabular-nums; }
.bill-table .bit-date { flex: 0 0 auto; color: var(--color-text-3); }
.bill-table .bit-eye { flex: 0 0 auto; font-size: 14px; color: var(--app-brand); }
.bill-table .bit-more { margin-top: 1px; font-size: 12px; color: var(--app-brand); cursor: pointer; }
.bill-table .bit-more:hover { text-decoration: underline; }

/* 单条明细弹框 */
.item-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.item-tip { margin-top: 14px; font-size: 12px; color: var(--color-text-3); }
