html, body { height: 100%; margin: 0; overflow: hidden; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }

.top-page-tab {
  position: relative; display: flex; align-items: center; gap: 6px; height: 34px; box-sizing: border-box;
  padding: 0 10px 0 14px; border-radius: 16px 16px 0 0; cursor: pointer; min-width: max-content;
  font-size: 13px; line-height: 34px; flex-shrink: 0; color: #1a1a1a; background: transparent;
}
.top-page-tab:hover:not(.is-active) { background: #f5f6f8; }
.top-page-tab.is-active {
  background: #eef4ff; color: #1890FF; z-index: 10;
}
.top-page-tab-link {
  display: flex; align-items: center; gap: 6px; height: 34px; line-height: 34px;
  color: inherit; text-decoration: none; white-space: nowrap; min-width: 0;
}
.top-page-tab-icon { width: 14px; height: 14px; flex-shrink: 0; }
.top-page-tab-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0; margin: 0; border: none; border-radius: 4px;
  background: transparent; color: inherit; cursor: pointer; opacity: 0.45; flex-shrink: 0;
}
.top-page-tab-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.top-page-tab.is-active .top-page-tab-close:hover { background: rgba(24, 144, 255, 0.12); }
.top-page-tabs {
  display: flex; align-items: flex-end; gap: 2px; height: 34px; min-width: 0; flex: 1;
  overflow-x: auto; overflow-y: hidden;
}
.top-page-tabs::-webkit-scrollbar { height: 0; }
.tab-active-curve::before {
  content: ""; position: absolute; bottom: 0; left: -16px; width: 16px; height: 16px;
  background: radial-gradient(circle at 0% 0%, transparent 16px, #eef4ff 16px); pointer-events: none;
}
.tab-active-curve::after {
  content: ""; position: absolute; bottom: 0; right: -16px; width: 16px; height: 16px;
  background: radial-gradient(circle at 100% 0%, transparent 16px, #eef4ff 16px); pointer-events: none;
}

.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: #4b5563; transition: background .15s, color .15s;
}
.menu-item-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
/* 二级：图标与一级文字左对齐（16 + 16 + 8 = 40） */
.menu-item.menu-depth-1 { padding-left: 40px; }
/* 三级及以上：纯文字，与二级文字左对齐（40 + 16 + 8 = 64） */
.menu-item.menu-depth-2,
.menu-item.menu-depth-3,
.menu-item.menu-depth-4 { padding-left: 64px; }
.menu-spacer { width: 16px; height: 16px; flex-shrink: 0; }
.menu-item:hover { background: #f9fafb; }
.menu-item.parent-expanded { color: #1890ff; }
.menu-item.active { background: #eef4ff; color: #1890ff; font-weight: 500; }
.menu-item .menu-icon { color: #9ca3af; flex-shrink: 0; }
.menu-item.parent-expanded .menu-icon, .menu-item.active .menu-icon { color: #1890ff; }
.menu-children { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.menu-branch.is-collapsed > .menu-children { display: none; }
.menu-branch > .menu-item { cursor: pointer; user-select: none; }
.menu-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; padding: 6px; cursor: pointer;
  flex-shrink: 0; color: inherit; min-width: 28px; min-height: 28px;
  border-radius: 4px; transition: background .12s;
}
.menu-toggle-btn:hover { background: rgba(24, 144, 255, 0.08); }
.menu-toggle-btn svg { transition: transform .15s ease; }
.menu-branch.is-expanded > .menu-item .menu-toggle-btn svg { transform: rotate(180deg); }
a.menu-item-left { text-decoration: none; color: inherit; width: 100%; }

/* ── 侧栏折叠（参考 office-yongpeng / YONGPENG VEHICLE 右下角控件） ── */
.app-sidebar {
  width: 240px;
  transition: width .2s ease;
}
.app-sidebar.is-collapsed { width: 64px; }
.app-sidebar .sidebar-brand-text {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .15s ease, max-height .2s ease, margin .2s ease;
  max-height: 48px;
}
.app-sidebar.is-collapsed .sidebar-brand {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
.app-sidebar.is-collapsed .sidebar-brand .rounded-full { margin-bottom: 0; }
.app-sidebar.is-collapsed .sidebar-brand-text {
  opacity: 0;
  max-height: 0;
  margin: 0;
}
.sidebar-collapse-footer {
  height: 40px;
  border-top: 1px solid rgba(243, 244, 246, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  flex-shrink: 0;
}
.app-sidebar.is-collapsed .sidebar-collapse-footer {
  justify-content: center;
  padding: 0;
}
.sidebar-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  padding: 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.sidebar-collapse-btn:hover { color: #4b5563; background: #f9fafb; }
.app-sidebar.is-collapsed .sidebar-collapse-btn svg { transform: scaleX(-1); }
.app-sidebar.is-collapsed #sidebar-nav { padding-left: 8px; padding-right: 8px; }
.app-sidebar.is-collapsed .menu-item-left span { display: none; }
.app-sidebar.is-collapsed .menu-toggle-btn { display: none; }
.app-sidebar.is-collapsed .menu-children { display: none !important; }
.app-sidebar.is-collapsed .menu-item {
  justify-content: center;
  padding: 10px 8px;
}
.app-sidebar.is-collapsed .menu-item.menu-depth-1,
.app-sidebar.is-collapsed .menu-item.menu-depth-2,
.app-sidebar.is-collapsed .menu-item.menu-depth-3,
.app-sidebar.is-collapsed .menu-item.menu-depth-4 { display: none; }
.app-sidebar.is-collapsed .menu-branch > .menu-item,
.app-sidebar.is-collapsed #sidebar-nav > .menu-item { display: flex; }
.app-sidebar.is-collapsed .menu-item-left {
  justify-content: center;
  gap: 0;
  width: auto;
}
.app-sidebar.is-collapsed .menu-spacer { display: none; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: #6b7280; transition: color .15s; border: none; background: transparent; cursor: pointer; }
.icon-btn:hover { color: #374151; }

.chip {
  padding: 6px 12px; font-size: 12px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  border: none; outline: none; box-shadow: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.chip:focus, .chip:focus-visible, .chip:active { outline: none; box-shadow: none; border: none; }
.chip-inactive { background: #f7f7fa; color: #666; }
.chip-active { background: #eef4ff; color: #1890ff; font-weight: 500; }

.filter-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; font-size: 12px; border-radius: 6px; border: 1px solid transparent;
  background: #f7f7fa; color: #595959; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.filter-chip:hover { color: #1890ff; }
.filter-chip-active {
  background: #e6f4ff; color: #1890ff; font-weight: 500;
  border-color: #91caff;
}
.filter-chip-count { font-variant-numeric: tabular-nums; color: #8c8c8c; }
.filter-chip-count.is-active { color: rgba(24, 144, 255, 0.85); }

.toolbar-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 4px;
  background: transparent; color: #8c8c8c; cursor: pointer;
  transition: background .15s, color .15s;
}
.toolbar-icon-btn svg { stroke-width: 1.5; }
.toolbar-icon-btn:hover { background: #f5f5f5; color: #595959; }

/* ── 主控台仪表盘（network-yongpeng Dashboard） ── */
.dash-seg-btn {
  padding: 6px 12px; font-size: 12px; border-radius: 6px; border: none; background: transparent;
  color: #8c8c8c; cursor: pointer; transition: background .15s, color .15s;
}
.dash-seg-btn:hover { color: #1a1a1a; }
.dash-seg-btn.is-active { background: #fff; color: #1a1a1a; }
.dash-pill {
  display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 4px; border: 1px solid;
  white-space: nowrap;
}
.dash-tag-warn { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); background: #fff; }
.dash-tag-blue { color: #1890FF; border-color: rgba(24, 144, 255, 0.3); background: #fff; }
.dash-tag-gray { color: #999; border-color: rgba(153, 153, 153, 0.3); background: #fff; }
.dash-tag-red { color: #f43f5e; border-color: rgba(244, 63, 94, 0.3); background: #fff; }
.dash-status-green { color: #10b981; border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }
.dash-status-blue { color: #1890FF; border-color: rgba(24, 144, 255, 0.3); background: rgba(24, 144, 255, 0.05); }
.dash-status-red { color: #f43f5e; border-color: rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.05); }
.dash-status-pink { color: #e853b0; border-color: rgba(232, 83, 176, 0.3); background: rgba(232, 83, 176, 0.05); }
.dash-status-warn { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); }
.dash-pill.tag-orange { color: #ea580c; border-color: rgba(249, 115, 22, 0.28); background: rgba(249, 115, 22, 0.06); }
.dash-pill.tag-blue { color: #1677ff; border-color: rgba(22, 119, 255, 0.28); background: rgba(22, 119, 255, 0.06); }
.dash-pill.tag-purple { color: #7c3aed; border-color: rgba(124, 58, 237, 0.26); background: rgba(124, 58, 237, 0.06); }
.dash-rank-1 { background: #fff7e6; color: #fa8c16; }
.dash-rank-2 { background: #f5f5f5; color: #8c8c8c; }
.dash-rank-3 { background: #fff1f0; color: #ff4d4f; }
.dash-rank-n { background: transparent; color: #8c8c8c; }
.dash-staff-bar {
  background: linear-gradient(90deg, #1890ff 0%, rgba(24, 144, 255, 0.6) 100%);
  border-radius: 6px;
}

/* 财务中心 / 审核中心主控台：紧凑工作台版 */
.fa-dashboard {
  padding: 0 16px 24px;
  color: #0f172a;
}
.fa-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}
.fa-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.fa-panel-title {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 22px;
  font-weight: 650;
  letter-spacing: 0;
}
.fa-panel-subtitle {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 18px;
}
.finance-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}
.finance-kpi-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.finance-kpi-card {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  padding: 12px;
}
.finance-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent, #1890ff);
  display: none;
}
.finance-kpi-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.finance-kpi-card__title,
.audit-kpi-card__title {
  color: #64748b;
  font-size: 12px;
  line-height: 18px;
}
.finance-kpi-card__value {
  margin-top: 3px;
  color: #0f172a;
  font-size: 21px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: 0;
}
.finance-kpi-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--accent, #1890ff);
  background: var(--accent-soft, #e6f4ff);
  flex-shrink: 0;
}
.finance-kpi-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 2px;
  font-size: 12px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.finance-kpi-card__meta.is-positive { color: #059669; }
.finance-kpi-card__meta.is-negative { color: #e11d48; }
.finance-kpi-card__meta.is-warning { color: #ea580c; }
.finance-sparkline {
  display: block;
  width: 100%;
  height: 30px;
}
.finance-trend-card {
  min-height: 430px;
  padding: 14px;
}
.finance-trend-chart {
  height: 370px;
  min-width: 0;
}
.finance-trend-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.finance-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.finance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.finance-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.finance-legend__dot.is-income { background: #059669; }
.finance-legend__dot.is-expense { background: #f97316; }
.audit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.audit-kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  padding: 12px;
}
.audit-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--audit-tone, #fa8c16);
  display: none;
}
.audit-kpi-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.audit-kpi-card__value {
  margin-top: 2px;
  color: #0f172a;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.audit-kpi-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--audit-tone, #fa8c16);
  background: var(--audit-tone-soft, #fff7e6);
  flex-shrink: 0;
}
.audit-kpi-card__sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 18px;
}
.audit-main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}
.audit-dist-card,
.audit-queue-card {
  padding: 14px;
}
.audit-dist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-dist-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: linear-gradient(90deg, #fbfdff 0%, #fff 100%);
}
.audit-dist-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}
.audit-dist-main {
  min-width: 0;
}
.audit-dist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.audit-dist-name {
  color: #0f172a;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audit-dist-count {
  color: #64748b;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.audit-dist-track {
  height: 8px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}
.audit-dist-track span {
  display: block;
  width: var(--bar-pct, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, #1890ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
.audit-queue-more,
.audit-queue-action {
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.audit-queue-more {
  padding: 4px 0;
  font-size: 13px;
}
.audit-table-wrap {
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}
.audit-queue-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.audit-queue-table th {
  text-align: left;
  padding: 9px 10px;
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.audit-queue-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  line-height: 20px;
  white-space: nowrap;
}
.audit-queue-table tbody tr:last-child td {
  border-bottom: 0;
}
.audit-queue-row {
  cursor: pointer;
  transition: background .15s;
}
.audit-queue-row:hover {
  background: #f8fbff;
}
.audit-queue-title {
  color: #0f172a !important;
  font-weight: 500;
}
.audit-queue-wait {
  color: #64748b !important;
  font-variant-numeric: tabular-nums;
}
.audit-queue-action {
  padding: 0;
  font-size: 13px;
  line-height: 20px;
}

@media (max-width: 1180px) {
  .audit-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .fa-dashboard {
    padding: 0 12px 20px;
  }
  .finance-kpi-stack,
  .audit-kpi-grid {
    grid-template-columns: 1fr;
  }
  .finance-trend-card,
  .audit-dist-card,
  .audit-queue-card {
    padding: 12px;
  }
  .finance-trend-chart {
    height: 260px;
  }
  .fa-panel-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.brand-tab {
  display: inline-flex; align-items: center; padding: 10px 20px;
  font-size: 13px; line-height: 1; border-radius: 8px 8px 0 0;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
  background: #F2F3F5; color: #1a1a1a; border: 1px solid transparent;
  white-space: nowrap; flex-shrink: 0;
}
button.brand-tab {
  cursor: pointer; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.brand-tab:hover { background: #e8e9eb; color: #1a1a1a; }
.brand-tab-active {
  background: #fff; color: #1890FF; font-weight: 500;
  border-color: #f0f0f0; border-bottom-color: #fff;
  margin-bottom: -1px; position: relative; z-index: 10;
}

.btn-toolbar {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  font-size: 13px; border-radius: 6px; cursor: pointer; transition: all .15s; white-space: nowrap;
  border: 1px solid #d9d9d9; background: #fff; color: #333;
}
.btn-toolbar:hover { border-color: #1890ff; color: #1890ff; }
.btn-toolbar-primary { background: var(--office-blue, #1890FF); color: #fff; border-color: var(--office-blue, #1890FF); }
.btn-toolbar-primary:hover { background: #40a9ff; border-color: #40a9ff; color: #fff; }
.btn-toolbar-danger { color: #cf1322; border-color: #ffa39e; }
.btn-toolbar-danger:hover { background: #fff1f0; }

.page-toolbar { flex-wrap: wrap; align-items: center; row-gap: 8px; }
.page-toolbar-left {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 280px; flex-wrap: wrap;
}
.page-toolbar-icons { flex: 0 0 auto; margin-left: auto; }
.page-search-wrap {
  flex: 1 1 120px;
  width: auto;
  max-width: 220px;
  min-width: 120px;
}
.toolbar-date-range {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 0 10px; height: 32px; background: #f7f7fa; border-radius: 6px; font-size: 12px; color: #666;
}
.toolbar-date-range-label { white-space: nowrap; color: #666; }
.toolbar-date-input {
  width: 118px; height: 26px; padding: 0 8px; border: 1px solid #e8e8e8; border-radius: 4px;
  font-size: 12px; color: #333; background: #fff; outline: none;
}
.toolbar-date-input:focus { border-color: #91caff; }
.toolbar-date-sep { color: #999; }

.page-hint-bar {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 12px; padding: 10px 16px; flex-shrink: 0;
  background: #f0f5ff; border: 1px solid #d6e4ff; border-radius: 8px;
  font-size: 12px; color: #0958d9; line-height: 1.625;
}
.page-hint-body { min-width: 0; }
.page-hint-title { margin-bottom: 6px; font-weight: 500; color: #003a8c; font-size: 12px; }
.page-hint-text { margin: 0; }

.expense-grid-wrap {
  border-radius: 8px; background: #fff; overflow: hidden;
  border: 1px solid #e8e8e8;
}
.expense-grid-table {
  width: max-content;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
  table-layout: auto;
  border: 0;
  min-width: 100%;
}
/* 含右侧冻结操作列时须 separate，否则 sticky 不生效 */
.expense-grid-table.expense-grid-table--sticky-actions {
  border-collapse: separate;
  border-spacing: 0;
}
.expense-grid-table th, .expense-grid-table td {
  border: 0; border-bottom: 1px solid #f0f0f0;
  padding: 12px 14px; color: #262626; vertical-align: middle; line-height: 1.5; white-space: nowrap;
}
.expense-grid-table thead th {
  background: #fafafa; color: #595959; font-weight: 500;
  position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid #f0f0f0;
}
.expense-grid-table thead th .th-inner {
  display: inline-flex; align-items: center; gap: 4px;
}
.expense-grid-table thead th .th-sort-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; color: #bfbfbf; flex-shrink: 0;
}
.expense-grid-table thead th .th-sort-icon svg {
  display: block; width: 12px; height: 12px;
}
.expense-grid-table tbody tr { background: #fff; }
.expense-grid-table tbody tr.row-detail { cursor: pointer; }
.expense-grid-table tbody tr.row-list-action { cursor: default; }
.expense-grid-table tbody tr.row-list-action:hover { background: #fafafa !important; }
.expense-grid-table tbody tr.row-selected { background: #e6f4ff !important; }
.expense-grid-table tbody tr.row-detail:hover { background: #fafafa !important; }
.expense-grid-table tbody tr.row-summary { background: #fafafa; font-weight: 600; }
.expense-grid-table tbody tr.row-summary td { background: #fafafa; }
.expense-grid-table tbody tr:last-child td { border-bottom: none; }
.expense-grid-table .col-num { text-align: right; font-variant-numeric: tabular-nums; }
.expense-grid-table .cell-muted { color: #8c8c8c; }
.expense-grid-table .cell-income { color: #389e0d; }
.expense-grid-table .cell-expense { color: #cf1322; }
.expense-grid-table .cell-link { color: #1890ff; }

/* 操作列 · 横向滚动时右侧冻结 */
.expense-grid-table th.col-actions-sticky,
.expense-grid-table td.col-actions-sticky {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  border-right: none !important;
  border-left: 1px solid #f0f0f0;
  box-shadow: -6px 0 8px -6px rgba(0, 0, 0, 0.08);
}
.expense-grid-table thead th.col-actions-sticky {
  z-index: 4;
  background: #fafafa;
}
.expense-grid-table tbody tr.row-detail:hover td.col-actions-sticky {
  background: #fafafa !important;
}
.expense-grid-table tbody tr.row-selected td.col-actions-sticky {
  background: #e6f4ff !important;
}
.expense-grid-table tbody tr.row-summary td.col-actions-sticky {
  background: #fafafa;
}

/* 列表底部分页（Ant Design 风格） */
.list-panel {
  display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%;
}
.list-pagination {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 12px; padding: 12px 4px 4px; flex-shrink: 0;
  font-size: 13px; color: #595959; user-select: none;
}
.list-pagination-total { color: #8c8c8c; margin-right: auto; }
.list-pagination-nav {
  display: inline-flex; align-items: center; gap: 6px;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 6px;
  border: 1px solid #d9d9d9; border-radius: 4px; background: #fff;
  color: #595959; font-size: 13px; line-height: 1; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.page-btn svg { width: 14px; height: 14px; stroke-width: 1.5; }
.page-btn:hover:not(:disabled):not(.is-active) { border-color: #1890ff; color: #1890ff; }
.page-btn.is-active {
  border-color: #1890ff; color: #1890ff; font-weight: 500;
}
.page-btn:disabled { color: #bfbfbf; border-color: #e8e8e8; cursor: not-allowed; background: #fff; }
.list-pagination-size select,
.list-pagination-jump input {
  height: 32px; border: 1px solid #d9d9d9; border-radius: 4px;
  background: #fff; color: #595959; font-size: 13px; outline: none;
  transition: border-color .15s;
}
.list-pagination-size select {
  padding: 0 8px; min-width: 88px; cursor: pointer;
}
.list-pagination-size select:hover,
.list-pagination-jump input:hover { border-color: #1890ff; }
.list-pagination-size select:focus,
.list-pagination-jump input:focus {
  border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.12);
}
.list-pagination-jump {
  display: inline-flex; align-items: center; gap: 6px; color: #595959;
}
.list-pagination-jump input {
  width: 40px; padding: 0 4px; text-align: center;
}

.tag {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px;
  border: 1px solid; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tag-green { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
.tag-orange { border-color: #ffd591; background: #fff7e6; color: #d46b08; }
.tag-gray { border-color: #d9d9d9; background: #fafafa; color: #8c8c8c; }
.tag-blue { border-color: #91caff; background: #e6f4ff; color: #0958d9; }
.tag-cyan { border-color: #87e8de; background: #e6fffb; color: #08979c; }
.tag-purple { border-color: #d3adf7; background: #f9f0ff; color: #722ed1; }
.tag-red { border-color: #ffa39e; background: #fff1f0; color: #cf1322; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-card {
  padding: 16px 18px; border-radius: 8px; background: #fff;
  border: 1px solid #f0f0f0;
}
.metric-card-label { font-size: 12px; color: #666; margin-bottom: 8px; }
.metric-card-value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric-card-value.income { color: #389e0d; }
.metric-card-value.expense { color: #cf1322; }
.metric-card-value.primary { color: #1890ff; }
.metric-card-value.warning { color: #d46b08; }

.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-link {
  padding: 8px 14px; font-size: 13px; border-radius: 6px;
  background: #f7f7fa; color: #1890ff; text-decoration: none; border: 1px solid #e8e8e8;
}
.quick-link:hover { background: #eef4ff; border-color: #91caff; }

/* 全屏遮罩：盖住侧栏 + 顶栏，点击空白区关闭（对齐 YONGPENG 管理弹窗） */
#page-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
#page-drawer.open { pointer-events: auto; visibility: visible; }
#page-drawer .drawer-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; cursor: pointer; }
#page-drawer.open .drawer-mask { opacity: 1; }
#page-drawer .drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(960px, 96vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
#page-drawer .drawer-panel-wide { width: min(1200px, 96vw); }
#page-drawer .drawer-panel-maximized { width: 100vw !important; max-width: 100vw; }
#page-drawer.open .drawer-panel { transform: translateX(0); }

/* 配置新增 · 居中弹窗（对齐 1.0 收入明细审核表 · 新增收入） */
#page-drawer.is-center-modal.open {
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#page-drawer.is-center-modal .config-form-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .25s; cursor: pointer;
}
#page-drawer.is-center-modal.open .config-form-backdrop { opacity: 1; }
#page-drawer.is-center-modal .config-form-dialog {
  position: relative; z-index: 1; width: min(640px, 96vw); max-height: 90vh;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 48px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column;
  transform: scale(.96); opacity: 0; transition: transform .22s ease, opacity .22s ease;
}
#page-drawer.is-center-modal.open .config-form-dialog { transform: scale(1); opacity: 1; }
#page-drawer.is-wide-modal .config-form-dialog { width: min(920px, 96vw); }
.audit-config-level-table-wrap {
  border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden;
}
.audit-config-level-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.audit-config-level-table th,
.audit-config-level-table td {
  padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: middle;
}
.audit-config-level-table th {
  background: #fafafa; color: #666; font-weight: 500; font-size: 12px;
}
.audit-config-level-table tr:last-child td { border-bottom: none; }
.audit-config-level-table .col-order { width: 48px; text-align: center; color: #999; }
.audit-config-level-table .col-level { width: 140px; }
.audit-config-level-table .col-assign-type { width: 160px; }
.audit-config-level-table .col-note { width: 120px; }
.audit-config-level-name { font-weight: 500; color: #333; }
.audit-config-assign-type {
  width: 100%; height: 32px; padding: 0 8px; border: 1px solid #d9d9d9; border-radius: 6px;
  font-size: 13px; color: #333; background: #fff; outline: none;
}
.audit-config-assign-type:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24, 144, 255, .1); }
.audit-config-assignee-list { display: flex; flex-wrap: wrap; gap: 6px; }
.audit-config-assignee-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border: 1px solid #d9d9d9; border-radius: 4px; font-size: 12px; color: #666;
  cursor: pointer; transition: all .15s; user-select: none;
}
.audit-config-assignee-tag.is-on {
  border-color: #91caff; background: #e6f4ff; color: #0958d9;
}
.audit-config-assignee-tag input { display: none; }
.audit-config-assignee-placeholder { color: #bbb; }

/* 审核页面配置 · 抽屉 */
.audit-page-config-sections { display: flex; flex-direction: column; gap: 20px; }
.audit-page-config-section {
  padding: 16px 18px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  background: #fafbfc;
}
.audit-page-config-section.is-disabled { opacity: 0.55; pointer-events: none; }
.audit-page-config-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.audit-page-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.audit-page-config-row + .audit-page-config-row { border-top: 1px dashed #e8ecf2; }
.audit-page-config-label { font-size: 13px; color: #595959; min-width: 72px; }
.audit-page-config-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px 20px;
  align-items: start;
}
.audit-page-config-field { display: flex; flex-direction: column; gap: 8px; }
.audit-page-config-field--wide { grid-column: 1 / -1; }
.audit-page-config-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}
.audit-page-assign-type {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fff;
}
.audit-page-assign-type:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24, 144, 255, .1); outline: none; }
.audit-page-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.audit-page-switch.is-disabled { cursor: not-allowed; opacity: 0.5; }
.audit-page-switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #d9d9d9;
  transition: background .2s ease;
}
.audit-page-switch.is-on .audit-page-switch-track { background: #1890ff; }
.audit-page-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s ease;
}
.audit-page-switch.is-on .audit-page-switch-thumb { transform: translateX(18px); }
.audit-page-switch-text { font-size: 13px; color: #595959; min-width: 16px; }

.audit-page-config-grid--create { grid-template-columns: 1fr 1fr; }
.audit-page-config-grid--create .audit-page-create-level-wrap.is-hidden { display: none; }
.audit-page-detail-level-wrap.is-hidden { display: none; }
.audit-page-create-page,
.audit-page-create-level,
.audit-page-detail-level {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fff;
}
.audit-page-create-page:focus,
.audit-page-create-level:focus,
.audit-page-detail-level:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, .1);
  outline: none;
}
.audit-page-config-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e8ecf2;
}
.audit-page-config-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #8c8c8c;
}
.audit-page-config-meta-item strong {
  font-size: 14px;
  color: #262626;
  font-weight: 600;
}
.audit-page-level-table-wrap {
  overflow-x: auto;
  border: 1px solid #eef1f6;
  border-radius: 6px;
  background: #fff;
}
.audit-page-level-table { margin: 0; width: 100%; }

.config-form-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.config-form-title { font-size: 16px; font-weight: 600; color: #333; margin: 0; line-height: 1.4; }
.config-form-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 20px;
}
.config-form-tip {
  margin-bottom: 16px; padding: 8px 12px; border-radius: 6px; border: 1px solid #d6e4ff;
  background: #f0f5ff; font-size: 12px; color: #0958d9; line-height: 1.5;
}
.config-form-footer {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 12px 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0;
  background: #fafafa; border-radius: 0 0 12px 12px;
}
.btn-modal {
  min-width: 72px; height: 32px; padding: 0 16px; font-size: 13px;
  border-radius: 6px; cursor: pointer; transition: all .15s;
}
.btn-modal-cancel { border: 1px solid #d9d9d9; background: #fff; color: #333; }
.btn-modal-cancel:hover { border-color: #1890ff; color: #1890ff; }
.btn-modal-primary { border: none; background: var(--office-blue, #1890FF); color: #fff; }
.btn-modal-primary:hover { background: #40a9ff; }
#page-drawer.is-center-modal .drawer-section-title { margin-top: 4px; }
#page-drawer.is-center-modal .drawer-section-title:first-child { margin-top: 0; }

.drawer-summary-section {
  flex-shrink: 0; background: #fff; padding: 16px 20px; border-bottom: none;
}
.drawer-panel > .drawer-summary-section {
  border-bottom: none;
}
.drawer-panel > .drawer-payroll-hero {
  border-bottom: 1px solid var(--office-border, #edf0f5);
}
/* 摘要区在 drawer-body 内时，抵消 body 左右 padding，与下方 section 同宽 */
.drawer-body > .drawer-summary-section {
  margin-left: -20px;
  margin-right: -20px;
}
.drawer-summary-section .drawer-rule-hint { margin-top: 0; margin-bottom: 12px; }
.drawer-panel > .drawer-rule-hint {
  flex-shrink: 0;
  margin: 16px 20px 0;
}
.drawer-panel > .drawer-rule-hint + .drawer-nav-wrap {
  padding-top: 12px;
}
.drawer-summary-section .drawer-stats { margin-bottom: 0; }
.drawer-panel > .drawer-summary-section + .drawer-nav-wrap {
  padding-top: 0;
}
.drawer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.drawer-stats-4 { grid-template-columns: repeat(4, 1fr); }
.drawer-stat {
  padding: 14px 16px; border-radius: 8px; background: #fafafa; border: 1px solid #f0f0f0;
}
.drawer-stat--paytype .drawer-stat-label { color: #0958d9; font-weight: 500; }
.drawer-stat-label { font-size: 12px; color: #666; margin-bottom: 6px; }
.drawer-stat-value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.drawer-stat-value--text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.35;
}
.drawer-summary-section .drawer-stat-value .tag { vertical-align: baseline; }
.drawer-stat-value.income { color: #389e0d; }
.drawer-stat-value.expense { color: #cf1322; }
.drawer-stat-value.balance { color: #1890ff; }
.drawer-stat-value.amount { color: #d46b08; }
.drawer-stat-value.negative { color: #cf1322; }
.drawer-stat-value.paytype { font-size: 16px; font-weight: 600; }
.drawer-stat-value .tag { font-size: 13px; font-weight: 500; vertical-align: middle; }
.drawer-stat-value:has(.tag) { font-size: 14px; font-weight: 400; line-height: 1.5; }

.expense-grid-table td .tag { vertical-align: middle; }
.expense-grid-table th.col-expense-item,
.expense-grid-table td.col-expense-item {
  min-width: 140px;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.45;
}
.drawer-date-filter {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px;
  padding-top: 12px;
}
.drawer-date-label { font-size: 13px; color: #666; white-space: nowrap; }
.drawer-date-input {
  height: 32px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 6px;
  font-size: 13px; color: #333; background: #fff; min-width: 132px;
}
.drawer-date-input:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,.1); }
.drawer-date-input--month { min-width: 148px; }
.drawer-date-sep { font-size: 13px; color: #999; }
.btn-drawer-search {
  height: 32px; padding: 0 16px; font-size: 13px; background: #1890ff; color: #fff;
  border: none; border-radius: 6px; cursor: pointer; transition: background .15s;
}
.btn-drawer-search:hover { background: #40a9ff; }
.btn-drawer-link {
  height: 32px; padding: 0 8px; font-size: 13px; background: transparent; color: #1890ff;
  border: none; cursor: pointer;
}
.btn-drawer-link:hover { color: #40a9ff; }
.drawer-filter-hint {
  margin: 0 0 0 auto; font-size: 12px; color: #1890ff; line-height: 32px;
  white-space: nowrap; flex-shrink: 0;
}
.drawer-filter-error { margin: 8px 0 0; font-size: 12px; color: #ff4d4f; line-height: 1.4; }
.drawer-body:has(.drawer-nav-wrap) { padding-top: 14px; }
.drawer-nav-wrap {
  flex-shrink: 0;
  background: #fff;
  padding: 0 0 16px;
}
/* nav 在 drawer-body 外时，与 body 内容区（含 section-title）左对齐 */
.drawer-panel > .drawer-nav-wrap {
  padding: 16px 20px 0;
}
.drawer-nav,
.page-subtab-list {
  display: flex; align-items: stretch; gap: 6px; flex-shrink: 0;
  height: 35px; box-sizing: border-box;
  padding: 0; overflow-x: auto;
}
.drawer-nav-divider,
.page-subtab-divider {
  height: 1px; background: #f0f0f0;
}
.drawer-section-title .section-count { font-size: 12px; font-weight: 400; color: #999; }
.drawer-form-value.is-tag { background: transparent; border-color: transparent; padding-left: 0; }
.drawer-table-wrap { border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; background: #fff; }
.drawer-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; min-width: max-content; }
.drawer-table th, .drawer-table td {
  padding: 10px 8px; color: #333; vertical-align: middle; line-height: 1.4;
  border-bottom: 1px solid #f0f0f0; white-space: nowrap;
}
.drawer-table th { background: #fafafa; font-weight: 500; color: #666; position: sticky; top: 0; z-index: 1; }
.drawer-table tbody tr:last-child td { border-bottom: none; }
.drawer-table tbody tr:hover { background: #fafafa; }
.drawer-table .col-num { text-align: center; font-variant-numeric: tabular-nums; }
.drawer-table .cell-muted { color: #666; }
.drawer-table .cell-link { color: #1890ff; }
.drawer-table .cell-remark { min-width: 120px; text-align: left; white-space: normal; }
.drawer-empty { padding: 48px 16px; text-align: center; color: #999; font-size: 13px; }
.tag-alipay { border-color: #91d5ff; background: #e6f7ff; color: #1677ff; }
.tag-wechat { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; box-sizing: border-box;
  padding: 0 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
  background: #fafafa;
}
.drawer-header-title { font-size: 16px; font-weight: 600; color: #333; line-height: 1; }
.drawer-header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.drawer-header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; background: transparent;
  color: #8c8c8c; border-radius: 4px; cursor: pointer;
}
.drawer-header-btn:hover { background: #f0f0f0; color: #333; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.drawer-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: #333; margin: 0 0 12px;
}
.drawer-section-title::before {
  content: ""; width: 3px; height: 14px; background: #1890ff; border-radius: 2px;
}
.drawer-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px;
  border: none; background: transparent; margin-bottom: 20px; overflow: visible;
  grid-auto-rows: min-content; align-items: start;
}
.drawer-form--stack {
  grid-template-columns: 1fr;
  gap: 12px;
}
.drawer-form--stack .drawer-input-field--full {
  grid-column: auto;
}
.drawer-form-row {
  display: flex; align-items: flex-start; min-height: 44px;
  padding: 6px 16px 6px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px;
}
.drawer-form-row:last-child { border-bottom: none; }
.drawer-form-label {
  width: 96px; flex-shrink: 0; color: #666; line-height: 32px;
  text-align: right; padding-right: 8px;
}
.drawer-form-value {
  flex: 1; min-width: 0; color: #333; line-height: 22px;
  padding: 5px 12px; background: #fafafa; border: 1px solid #f0f0f0;
  border-radius: 6px; word-break: break-all;
}
.drawer-rule-hint {
  padding: 10px 12px; margin-bottom: 16px; background: #fff7e6;
  border: 1px solid #ffd591; border-radius: 6px; font-size: 12px; color: #d46b08; line-height: 1.5;
}
.drawer-footer {
  display: flex; justify-content: flex-end !important; align-items: center; gap: 12px;
  padding: 10px 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0; background: #fafafa;
}
.drawer-footer-actions {
  display: flex; align-items: center; gap: 12px;
}
.btn-drawer {
  min-width: 72px; height: 32px; padding: 0 16px; font-size: 13px;
  border-radius: 6px; cursor: pointer; transition: all .15s;
}
.btn-drawer-cancel { border: 1px solid #d9d9d9; background: #fff; color: #333; }
.btn-drawer-cancel:hover { border-color: #1890ff; color: #1890ff; }
.btn-drawer-primary { border: none; background: var(--office-blue, #1890FF); color: #fff; }
.btn-drawer-primary:hover { background: #40a9ff; }
.btn-drawer-danger { border: 1px solid #ffa39e; background: #fff; color: #cf1322; }
.btn-drawer-danger:hover { background: #fff1f0; }

/* 应收统计详情 · 对齐 1.0 订单/运单财务审核表、收入明细审核表 */
.drawer-summary-stats { display: flex; flex-direction: column; gap: 12px; }
.drawer-summary-stats .drawer-stats { margin-bottom: 0; }
.drawer-summary-table-wrap { margin-top: 0; overflow: visible; }
.drawer-summary-table-wrap .drawer-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 11px; }
.drawer-summary-table-wrap .drawer-table th,
.drawer-summary-table-wrap .drawer-table td { padding: 8px 4px; white-space: nowrap; line-height: 1.35; }
.drawer-form--fee-base { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.drawer-form--fee-base .drawer-input-label { width: 72px; font-size: 12px; }
.drawer-input-field { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 13px; min-height: 0; }
.drawer-input-field--full { grid-column: 1 / -1; }
.drawer-input-field--upload:not(.drawer-input-field--upload-compact) {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.drawer-input-field--upload-compact {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}
.drawer-input-field--upload.drawer-input-field--upload-compact .drawer-input-label {
  width: 128px;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.35;
  padding-right: 4px;
  padding-top: 8px;
  white-space: normal;
  word-break: keep-all;
}
.drawer-input-field--upload.drawer-input-field--upload-compact .drawer-input-control {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.drawer-input-field--upload:not(.drawer-input-field--upload-compact) .drawer-input-label {
  width: auto;
  text-align: left;
  line-height: 1.5;
  padding-right: 0;
}
.drawer-input-field--upload:not(.drawer-input-field--upload-compact) .drawer-input-control {
  display: block;
  min-width: 0;
  flex: none;
}
.drawer-input-label {
  width: 128px;
  flex-shrink: 0;
  line-height: 1.35;
  color: #666;
  text-align: right;
  padding-right: 4px;
  padding-top: 8px;
  white-space: normal;
  word-break: keep-all;
}
.drawer-required-mark {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 600;
}
.drawer-input-field:not(.drawer-input-field--full) .drawer-input-control {
  flex: 0 1 260px;
  max-width: 260px;
}
.drawer-input-control { flex: 1; min-width: 0; }
.drawer-input-field--full .drawer-input-control {
  flex: 1;
  max-width: none;
}
.drawer-input-field--full .drawer-input {
  max-width: none;
}
.drawer-input-row { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.drawer-input-row--suffix .drawer-input-wrap {
  position: relative; flex: 1; min-width: 0; max-width: 260px;
}
.drawer-input-row--suffix .drawer-input-wrap .drawer-input {
  width: 100%; max-width: none; padding-right: 34px;
}
.drawer-input-suffix-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 4px;
  background: transparent; color: #1890ff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-input-suffix-btn:hover:not(.is-disabled):not(:disabled) { background: #e6f7ff; }
.drawer-input-suffix-btn.is-disabled,
.drawer-input-suffix-btn:disabled { color: #bfbfbf; cursor: not-allowed; }
.drawer-audit-panel--receipt .drawer-audit-toggle-btn[data-audit-result="reject"].is-active {
  background: #f6ffed; color: #52c41a;
}
.drawer-audit-panel--receipt .drawer-audit-toggle-btn[data-audit-result="reject"]:hover {
  background: #f6ffed; color: #52c41a;
}
.drawer-audit-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: auto; height: auto; padding: 8px 10px; border: none; border-radius: 6px;
  background: transparent; color: #1890ff; font-size: 13px; line-height: 1.2;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.drawer-audit-action-btn i,
.drawer-audit-action-btn svg { flex-shrink: 0; color: #1890ff; stroke: #1890ff; }
.drawer-audit-action-btn:hover:not(.is-disabled):not(:disabled) { background: #e6f7ff; color: #1890ff; }
.drawer-audit-action-btn--warning,
.drawer-audit-action-btn--danger {
  background: transparent; color: #1890ff;
}
.drawer-audit-action-btn--warning:hover:not(.is-disabled):not(:disabled),
.drawer-audit-action-btn--danger:hover:not(.is-disabled):not(:disabled) {
  background: #e6f7ff; color: #1890ff;
}
.drawer-audit-action-btn.is-disabled,
.drawer-audit-action-btn:disabled {
  opacity: 0.45; cursor: not-allowed;
}
.drawer-input {
  flex: 1; min-width: 0; width: 100%; max-width: 260px; height: 32px; padding: 0 10px;
  border: 1px solid #ebebeb; border-radius: 6px; font-size: 13px; color: #333;
  background: #fff; box-sizing: border-box; outline: none; font-family: inherit;
}
.drawer-input[readonly] { cursor: default; background: #fff; }
.drawer-input.is-red { color: #cf1322; font-weight: 500; }
.drawer-input-unit { flex-shrink: 0; color: #666; line-height: 32px; min-width: 16px; }
.drawer-input-box {
  flex: 1; min-width: 0; min-height: 32px; padding: 4px 10px;
  border: 1px solid #ebebeb; border-radius: 6px; background: #fff;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.drawer-input-tag {
  flex: 1; min-width: 0; min-height: 32px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.drawer-input--editable { background: #fafafa; cursor: text; }
.drawer-input--editable:focus { border-color: #1890ff; background: #fff; box-shadow: 0 0 0 2px rgba(24,144,255,.1); }
.drawer-textarea {
  width: 100%; min-height: 72px; padding: 8px 10px; border: 1px solid #ebebeb;
  border-radius: 6px; font-size: 13px; color: #333; background: #fafafa;
  resize: vertical; font-family: inherit; box-sizing: border-box; outline: none;
}
.drawer-textarea:focus { border-color: #1890ff; background: #fff; }
.drawer-textarea[readonly] { background: #fff; cursor: default; resize: none; }
.drawer-textarea--editable { background: #fff; cursor: text; }
.drawer-textarea--compact {
  min-height: 32px;
  height: 32px;
  max-width: 260px;
  padding: 0 10px;
  line-height: 30px;
  resize: none;
  overflow-y: auto;
  background: #fff;
}
.drawer-input-field:has(.drawer-textarea--compact) { align-items: center; }

/* 详情页内 · 审核操作板块（替代底部审核按钮） */
.drawer-audit-panel {
  margin-top: 4px; margin-bottom: 8px;
  /* 与多级审核时间轴内容列对齐，按钮区不贴左边 */
  --drawer-audit-axis-width: 88px;
  --drawer-audit-axis-padding-right: 4px;
  --drawer-audit-node-size: 20px;
  --drawer-audit-node-offset: calc(var(--drawer-audit-axis-width) - var(--drawer-audit-axis-padding-right) - var(--drawer-audit-node-size));
}
.drawer-audit-compose {
  display: flex; flex-direction: column; gap: 12px;
}
/* 独立功能操作面板：chip 保持缩进；表单区与上方详情左对齐 */
.drawer-audit-panel > .drawer-audit-compose {
  margin-left: var(--drawer-audit-node-offset);
  width: calc(100% - var(--drawer-audit-node-offset));
  box-sizing: border-box;
}
.drawer-audit-panel > .drawer-audit-compose > .drawer-func-body,
.drawer-audit-panel > .drawer-audit-compose > .drawer-func-form {
  margin-left: calc(-1 * var(--drawer-audit-node-offset));
  width: calc(100% + var(--drawer-audit-node-offset));
  box-sizing: border-box;
}
.drawer-audit-toggle--chip {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.drawer-audit-toggle--chip .drawer-audit-toggle-btn {
  min-width: auto; height: auto; padding: 8px 16px; border-radius: 6px;
  border: none; background: #f7f7fa; color: #666;
  line-height: 1.4; font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background .15s, color .15s; box-sizing: border-box;
}
.drawer-audit-toggle--chip .drawer-audit-toggle-btn + .drawer-audit-toggle-btn { margin-left: 0; }
.drawer-audit-toggle--chip .drawer-audit-toggle-btn:hover {
  color: #1890ff; background: #f0f7ff;
}
.drawer-audit-toggle--chip .drawer-audit-toggle-btn.is-active {
  background: #eaf4fe; color: #1890ff; position: relative; z-index: 1;
}
.drawer-audit-toggle--chip .drawer-audit-toggle-btn[data-audit-result="reject"].is-active {
  background: #fff1f0; color: #cf1322;
}
.drawer-audit-toggle--chip .drawer-audit-toggle-btn[data-audit-result="reject"]:hover {
  color: #cf1322; background: #fff7f6;
}
.drawer-audit-remark-box {
  border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.drawer-audit-remark-box:focus-within {
  border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24, 144, 255, .08);
}
.drawer-audit-remark-input {
  width: 100%; min-height: 56px; padding: 10px 12px; border: 0; outline: none;
  resize: vertical; font-size: 13px; color: #333; line-height: 1.6;
  font-family: inherit; box-sizing: border-box; background: transparent;
}
.drawer-audit-remark-input::placeholder { color: #999; }
.drawer-func-body { margin-top: 8px; }
.drawer-func-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}
.drawer-func-form--import .drawer-form {
  margin-bottom: 0;
}
.drawer-func-form--import .drawer-upload-zone--field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  background: #fafafa;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}
.drawer-func-form--import .drawer-upload-zone--field:hover {
  border-color: #1890ff;
  background: #f0f7ff;
}
.drawer-func-form--import .drawer-upload-zone__field-text {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-func-form--import .drawer-upload-zone--field input[type="file"] {
  display: none;
}
.drawer-func-form--import .drawer-upload-preview {
  margin-top: 6px;
}
.drawer-func-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-func-subtitle {
  font-size: 13px; font-weight: 600; color: #333;
  margin: 0; padding-left: 8px;
  border-left: 3px solid #1890ff; line-height: 1.2;
}
.drawer-func-remark { margin-top: 0; }
.drawer-func-hint {
  margin: 0; padding: 10px 12px;
  font-size: 12px; color: #666; line-height: 1.6;
  background: #f7f9fc; border-radius: 6px;
}
.drawer-audit-toggle {
  display: inline-flex; align-items: stretch;
}
.drawer-audit-toggle-btn {
  min-width: 88px; height: 32px; padding: 0 16px; font-size: 13px;
  border: 1px solid #d9d9d9; background: #fff; color: #666; cursor: pointer;
  transition: all .15s; line-height: 30px; box-sizing: border-box;
}
.drawer-audit-toggle-btn:first-child { border-radius: 6px 0 0 6px; }
.drawer-audit-toggle-btn:last-child { border-radius: 0 6px 6px 0; }
.drawer-audit-toggle-btn + .drawer-audit-toggle-btn { margin-left: -1px; }
.drawer-audit-toggle-btn.is-active {
  border-color: #1890ff; color: #1890ff; background: #e6f7ff; position: relative; z-index: 1;
}
.drawer-audit-toggle-btn[data-audit-result="reject"].is-active {
  border-color: #ff4d4f; color: #cf1322; background: #fff1f0;
}
/* 多级审核 · 审核操作（与 drawer-input-field 标签/控件列对齐） */
.drawer-audit-operation {
  --drawer-audit-axis-width: 88px;
  --drawer-audit-axis-padding-right: 4px;
  --drawer-audit-node-size: 20px;
  --drawer-audit-node-offset: calc(var(--drawer-audit-axis-width) - var(--drawer-audit-axis-padding-right) - var(--drawer-audit-node-size));
  margin-top: 8px; margin-bottom: 16px;
}
.drawer-audit-operation .drawer-audit-timeline {
  padding: 4px 0 0;
}
.drawer-audit-operation .drawer-audit-panel {
  margin-top: 12px; margin-bottom: 0; padding: 0; border-top: none;
}
.drawer-audit-operation .drawer-audit-compose {
  margin-left: var(--drawer-audit-node-offset);
  width: calc(100% - var(--drawer-audit-node-offset));
  box-sizing: border-box;
}
.drawer-audit-timeline {
  display: flex; flex-direction: column; gap: 0;
}
.drawer-audit-timeline-item {
  display: flex; gap: 8px; align-items: flex-start;
}
.drawer-audit-timeline-item:last-child .drawer-audit-timeline-line { display: none; }
.drawer-audit-timeline-item:last-child .drawer-audit-timeline-content { padding-bottom: 0; }
.drawer-audit-timeline-axis {
  display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
  width: var(--drawer-audit-axis-width, 88px); padding-top: 6px; padding-right: 4px; box-sizing: border-box;
}
.drawer-audit-timeline-node {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; font-weight: 600; color: #999; background: #f5f5f5; border: 1px solid #e8e8e8;
}
.drawer-audit-timeline-item--current .drawer-audit-timeline-node {
  color: #fff; background: #1890ff; border-color: #1890ff;
}
.drawer-audit-timeline-item--done .drawer-audit-timeline-node {
  color: #666; background: #fafafa; border-color: #d9d9d9;
}
.drawer-audit-timeline-line {
  flex: 1; width: 1px; min-height: 16px; background: #e8e8e8;
  margin: 4px 9px 0 0; align-self: flex-end;
}
.drawer-audit-timeline-content {
  flex: 1; min-width: 0; padding-bottom: 14px; text-align: left;
}
.drawer-audit-timeline-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.drawer-audit-timeline-title {
  font-size: 14px; font-weight: 500; color: #333; line-height: 22px;
}
.drawer-audit-timeline-row {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap;
}
.drawer-audit-timeline-avatar {
  position: relative; width: 28px; height: 28px; border-radius: 6px;
  background: var(--avatar-bg, #1890ff); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.drawer-audit-timeline-avatar-text {
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
}
.drawer-audit-timeline-avatar-badge {
  position: absolute; right: -4px; top: -4px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.drawer-audit-timeline-avatar-badge i,
.drawer-audit-timeline-avatar-badge svg {
  width: 10px; height: 10px; stroke-width: 2.5px;
}
.drawer-audit-timeline-avatar--pending .drawer-audit-timeline-avatar-badge { background: #fff7e6; color: #fa8c16; }
.drawer-audit-timeline-avatar--approved .drawer-audit-timeline-avatar-badge { background: #f6ffed; color: #52c41a; }
.drawer-audit-timeline-avatar--rejected .drawer-audit-timeline-avatar-badge { background: #fff1f0; color: #ff4d4f; }
.drawer-audit-timeline-actor {
  font-size: 13px; color: #666; line-height: 22px; white-space: nowrap;
}
.drawer-audit-timeline-item--current .drawer-audit-timeline-title { color: #1890ff; }
.drawer-audit-timeline-time {
  font-size: 12px; color: #999; line-height: 22px; white-space: nowrap;
}
.drawer-audit-timeline-time::before {
  content: "·"; margin-right: 8px; color: #d9d9d9;
}
.drawer-select {
  width: 100%; height: 32px; padding: 0 10px; border: 1px solid #ebebeb;
  border-radius: 6px; font-size: 13px; color: #333; background: #fafafa;
  outline: none; font-family: inherit; box-sizing: border-box;
}
.drawer-select:focus { border-color: #1890ff; background: #fff; }
.drawer-select--detail { background: #fff; }
.drawer-select--detail:focus { background: #fff; }
.drawer-checkbox-group {
  display: flex; flex-wrap: wrap; gap: 12px 16px; min-height: 32px; align-items: center;
}
.drawer-checkbox-item {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #333; cursor: pointer;
}
.drawer-checkbox-item input { width: 14px; height: 14px; margin: 0; cursor: pointer; accent-color: #1890ff; }
.drawer-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box;
  border: 1px dashed #d9d9d9; border-radius: 8px; padding: 20px 16px; text-align: center;
  background: #fafafa; cursor: pointer; transition: border-color .15s, background .15s;
}
.drawer-upload-zone:hover { border-color: #1890ff; background: #f0f7ff; }
.drawer-upload-zone--compact {
  width: 72px;
  height: 72px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 6px;
}
.drawer-upload-zone--compact .drawer-upload-zone__icon {
  margin-bottom: 0;
}
.drawer-upload-zone--plus {
  background: #f5f5f5;
  border-style: solid;
  border-color: #e8e8e8;
}
.drawer-upload-zone--plus:hover {
  border-color: #1890ff;
  background: #f0f7ff;
}
.drawer-upload-zone__plus {
  font-size: 28px;
  line-height: 1;
  color: #bfbfbf;
  font-weight: 300;
  user-select: none;
}
.drawer-cashier-operation {
  margin-top: 8px;
  margin-bottom: 4px;
}
.drawer-upload-zone__icon {
  display: flex; align-items: center; justify-content: center;
  color: #999; margin-bottom: 8px; line-height: 1;
}
.drawer-upload-zone__icon svg,
.drawer-upload-zone__icon i {
  width: 20px; height: 20px; display: block;
}
.drawer-upload-zone__text { font-size: 13px; color: #666; line-height: 1.5; }
.drawer-upload-zone__hint { font-size: 12px; color: #999; margin-top: 4px; line-height: 1.4; }
.drawer-upload-zone input[type="file"] { display: none; }
.drawer-upload-preview { margin-top: 8px; font-size: 12px; color: #1890ff; }
.drawer-image-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-image-item {
  width: 72px; height: 72px; border-radius: 6px; border: 1px solid #f0f0f0;
  background: #f5f5f5; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #999; overflow: hidden;
}
.drawer-image-item img { width: 100%; height: 100%; object-fit: cover; }
.drawer-image-item--add { border-style: dashed; cursor: pointer; color: #1890ff; }
.btn-drawer-save { border: none; background: #52c41a; color: #fff; }
.btn-drawer-save:hover { background: #73d13d; }
.btn-drawer-secondary { border: 1px solid #d9d9d9; background: #fff; color: #333; }
.btn-drawer-secondary:hover { border-color: #1890ff; color: #1890ff; }
.drawer-fee-block { margin-bottom: 20px; }
.drawer-payment-detail-block { margin-bottom: 20px; }
.drawer-payment-detail-block .drawer-section-title { margin: 0 0 12px; }
.drawer-payment-detail-block .drawer-payment-detail-table { margin: 12px 0; }
.drawer-fee-detail { margin-top: 8px; }
.drawer-fee-detail-title { font-size: 12px; font-weight: 500; color: #666; margin-bottom: 8px; padding-left: 2px; }
.detail-amount-red { color: #cf1322; font-weight: 500; }
.drawer-table .cell-highlight { color: #cf1322; font-weight: 500; }
.drawer-table .row-summary-lite { background: #fafafa; font-weight: 500; }
.recv-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recv-image-card {
  border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; background: #fff;
}
.recv-image-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: #f5f5f5; }
.recv-image-card .recv-image-meta { padding: 8px 10px; font-size: 11px; color: #666; line-height: 1.45; }
.recv-image-card .recv-image-cat {
  position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
}
.recv-image-media { position: relative; }

.toast {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 10px 20px; border-radius: 6px;
  font-size: 13px; z-index: 200; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── 切换系统弹窗 ── */
.system-switch-modal {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: 24px; pointer-events: none; visibility: hidden;
}
.system-switch-modal.open { pointer-events: auto; visibility: visible; }
.system-switch-mask {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45);
  opacity: 0; transition: opacity .2s;
}
.system-switch-modal.open .system-switch-mask { opacity: 1; }
.system-switch-dialog {
  position: relative; width: min(720px, 100%); background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18); padding: 24px 24px 20px;
  transform: translateY(12px) scale(0.98); opacity: 0; transition: transform .22s ease, opacity .22s ease;
}
.system-switch-modal.open .system-switch-dialog { transform: translateY(0) scale(1); opacity: 1; }
.system-switch-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.system-switch-title { font-size: 18px; font-weight: 600; color: #1f2937; line-height: 1.3; }
.system-switch-subtitle { margin-top: 6px; font-size: 13px; color: #9ca3af; }
.system-switch-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; background: transparent; color: #9ca3af;
  border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.system-switch-close:hover { background: #f3f4f6; color: #4b5563; }
.system-switch-search-wrap {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 40px;
  border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; margin-bottom: 20px;
}
.system-switch-search-wrap:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12); }
.system-switch-search {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 14px; color: #374151;
}
.system-switch-search::placeholder { color: #9ca3af; }
.system-switch-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-height: 132px;
}
.system-switch-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 118px; padding: 18px 12px; border: 1px solid #e5e7eb; border-radius: 12px;
  background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
  text-align: center;
}
.system-switch-card:hover:not(.is-disabled) { border-color: #93c5fd; background: #f8fbff; }
.system-switch-card.is-selected {
  border-color: #1890ff; background: #f0f7ff; box-shadow: 0 0 0 1px rgba(24, 144, 255, 0.15);
}
.system-switch-card.is-disabled {
  cursor: not-allowed; opacity: 0.55; background: #fafafa;
}
.system-switch-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: #f3f4f6; color: #6b7280;
}
.system-switch-card.is-selected .system-switch-card-icon { background: #e6f4ff; color: #1890ff; }
.system-switch-card-name { font-size: 14px; font-weight: 600; color: #1f2937; }
.system-switch-card-desc { font-size: 12px; color: #9ca3af; line-height: 1.4; }
.system-switch-empty {
  grid-column: 1 / -1; padding: 36px 16px; text-align: center; color: #9ca3af; font-size: 13px;
}
.system-switch-standalone {
  position: relative;
  margin-bottom: 18px;
}
.system-switch-standalone-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #176bc0;
  background: #eaf4ff;
  border: 1px solid #cfe5ff;
}
.system-switch-card.is-readonly {
  cursor: default;
  width: 100%;
  box-sizing: border-box;
}
.system-switch-card.is-readonly:hover {
  border-color: var(--office-blue, #1890FF);
  background: #f0f7ff;
}
.system-switch-bridge {
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
}
.system-switch-bridge-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.system-switch-bridge-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.system-switch-bridge-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
}
.system-switch-bridge-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #9ca3af;
}
.system-switch-recent-note {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}
.system-switch-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.system-switch-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #f3f4f6;
}
.system-switch-recent {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #1890ff;
}
.system-switch-actions { display: flex; align-items: center; gap: 10px; }
.system-switch-btn {
  min-width: 88px; height: 36px; padding: 0 18px; border-radius: 8px; font-size: 14px;
  cursor: pointer; transition: all .15s;
}
.system-switch-btn-cancel {
  border: 1px solid #e5e7eb; background: #fff; color: #4b5563;
}
.system-switch-btn-cancel:hover { border-color: #d1d5db; color: #1f2937; }
.system-switch-btn-primary {
  border: none; background: #1890ff; color: #fff;
}
.system-switch-btn-primary:hover { background: #40a9ff; }
@media (max-width: 640px) {
  .system-switch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-switch-footer { flex-direction: column; align-items: stretch; }
  .system-switch-actions { justify-content: flex-end; }
}

/* 对齐销售系统资源列表/弹窗视觉：仅覆盖边框、线条、字体、图标与分页样式 */
:root {
  --office-blue: #1890FF;
  --office-blue-soft: #eef4ff;
  --office-border: #edf0f5;
  --office-border-strong: #dfe5ee;
  --office-head: #f8fafc;
  --office-panel: #ffffff;
  --office-muted: #8a93a3;
  --office-text: #303846;
  --office-title: #1f2733;
}

body {
  color: var(--office-text);
  background: #eef2f7;
}

.custom-scrollbar::-webkit-scrollbar { width: 7px; height: 7px; }
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #c4c9d2;
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #aeb5c1; }

/* 抽屉 Tab 导航：覆盖 custom-scrollbar，强制隐藏横向滚动条 */
.drawer-nav-wrap [role="tablist"],
.drawer-nav.custom-scrollbar,
.drawer-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.drawer-nav-wrap [role="tablist"]::-webkit-scrollbar,
.drawer-nav.custom-scrollbar::-webkit-scrollbar,
.drawer-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.page-hint-bar {
  background: #f3f8ff;
  border-color: #dcecff;
  color: #247bd7;
  border-radius: 8px;
}
.page-hint-title { color: #176bc0; }

.page-toolbar {
  padding: 14px 16px 12px;
  background: var(--office-panel);
  border-bottom: 1px solid var(--office-border);
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
}
.page-toolbar-left { gap: 10px; flex: 1 1 280px; min-width: 0; flex-wrap: wrap; }
.page-toolbar-icons { flex: 0 0 auto; margin-left: auto; }
.page-search-wrap {
  flex: 1 1 120px;
  width: auto;
  max-width: 220px;
  min-width: 120px;
}

#page-search {
  height: 34px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  border-color: transparent !important;
  background: #f6f8fb !important;
  border-radius: 8px !important;
  color: var(--office-text) !important;
  box-shadow: inset -1px 0 0 rgba(223, 229, 238, 0.9);
}
#page-search:hover,
#page-search:focus {
  border-color: #cfe5ff !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.08);
}

.page-toolbar [data-btn="更多筛选"] {
  height: 34px;
  border-color: transparent !important;
  background: #f6f8fb !important;
  border-radius: 8px !important;
  color: #3f4754 !important;
  font-weight: 600;
}
.page-toolbar [data-btn="更多筛选"]:hover {
  color: var(--office-blue) !important;
  background: #eef6ff !important;
}

.filter-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border-color: transparent;
  background: #f6f8fb;
  color: #424b59;
  font-weight: 600;
}
.filter-chip:hover {
  color: var(--office-blue);
  background: #eef6ff;
}
.filter-chip-active {
  background: var(--office-blue-soft);
  border-color: #d8eaff;
  color: var(--office-blue);
}
.filter-chip-count,
.filter-chip-count.is-active {
  margin-left: 2px;
  color: currentColor;
  opacity: 0.82;
}

.toolbar-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f6f8fb;
  color: #3f4754;
}
.toolbar-icon-btn:hover {
  background: #eef6ff;
  color: var(--office-blue);
}
.toolbar-icon-btn svg { stroke-width: 2; }

.btn-toolbar {
  height: 34px;
  border-color: var(--office-border-strong);
  border-radius: 8px;
  color: #384250;
  font-weight: 600;
}
.btn-toolbar:hover {
  border-color: #c5e1ff;
  color: var(--office-blue);
  background: #f7fbff;
}
.btn-toolbar-primary {
  background: var(--office-blue);
  border-color: var(--office-blue);
  color: #fff;
}
.btn-toolbar-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
  color: #fff;
}

#list-table-host { padding: 0 14px 14px !important; }
.list-panel {
  background: var(--office-panel);
  color: var(--office-text);
}
.expense-grid-wrap {
  border-color: var(--office-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.expense-grid-table {
  color: var(--office-text);
  font-size: 13px;
}
.expense-grid-table th,
.expense-grid-table td {
  height: 46px;
  padding: 11px 14px;
  border-bottom-color: var(--office-border);
  border-right: 1px solid var(--office-border);
  color: var(--office-text);
}
.expense-grid-table th:last-child:not(.col-actions-sticky),
.expense-grid-table td:last-child:not(.col-actions-sticky) { border-right: none; }
.expense-grid-table thead th {
  height: 48px;
  background: var(--office-head);
  color: var(--office-title);
  font-size: 13px;
  font-weight: 700;
  border-bottom-color: var(--office-border);
}
.expense-grid-table thead th .th-inner {
  justify-content: center;
  width: 100%;
}
.expense-grid-table thead th .th-sort-icon {
  color: #a8b0bc;
}
.expense-grid-table tbody tr { background: #fff; }
.expense-grid-table tbody tr.row-detail:hover { background: #f8fbff !important; }
.expense-grid-table tbody tr.row-list-action:hover { background: #fafafa !important; }
.expense-grid-table tbody tr.row-selected { background: var(--office-blue-soft) !important; }
.expense-grid-table tbody tr.row-selected td { color: #1e5f9f; }
.expense-grid-table .cell-muted { color: #687282; }
.expense-grid-table .cell-link { color: var(--office-blue); font-weight: 600; }
.expense-grid-table td.col-actions-sticky .cell-link { cursor: pointer; }
.expense-grid-table td.col-actions-sticky .cell-link.is-disabled {
  color: #c0c4cc;
  cursor: not-allowed;
  pointer-events: none;
}
.expense-grid-table td.col-actions-sticky .cell-action-sep {
  margin: 0 6px;
  color: #d9d9d9;
  font-weight: 400;
}
.expense-grid-table .col-num { color: #263241; font-variant-numeric: tabular-nums; }
.expense-grid-table .cell-income { color: #21a36a; }
.expense-grid-table .cell-expense { color: #d84a4a; }
.expense-grid-table .cell-unpaid-mark {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff1f0;
  color: #cf1322;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* 操作列 · 横向滚动时右侧冻结（office 主题） */
.expense-grid-table th.col-actions-sticky,
.expense-grid-table td.col-actions-sticky {
  background: #fff;
  border-left-color: var(--office-border);
  box-shadow: -6px 0 8px -6px rgba(15, 23, 42, 0.1);
}
.expense-grid-table thead th.col-actions-sticky {
  background: var(--office-head);
}
.expense-grid-table tbody tr.row-detail:hover td.col-actions-sticky {
  background: #f8fbff !important;
}
.expense-grid-table tbody tr.row-list-action:hover td.col-actions-sticky {
  background: #fafafa !important;
}
.expense-grid-table tbody tr.row-selected td.col-actions-sticky {
  background: var(--office-blue-soft) !important;
}
.expense-grid-table tbody tr.row-summary td.col-actions-sticky {
  background: #fafafa;
}

/* 列表勾选列 · 对齐税务中心 / 薪酬绩效 col-check */
.expense-grid-table th.col-check,
.expense-grid-table td.col-check {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  vertical-align: middle;
}

.expense-grid-table th.col-check input[type="checkbox"],
.expense-grid-table td.col-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--office-blue, #1890ff);
}

.expense-grid-table.expense-grid-table--sticky-actions th.col-check,
.expense-grid-table.expense-grid-table--sticky-actions td.col-check {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  box-shadow: 6px 0 8px -6px rgba(0, 0, 0, 0.08);
}

.expense-grid-table.expense-grid-table--sticky-actions thead th.col-check {
  z-index: 5;
  background: #fafafa;
}

.expense-grid-table.expense-grid-table--sticky-actions tbody tr.row-detail:hover td.col-check {
  background: #fafafa !important;
}

.expense-grid-table.expense-grid-table--sticky-actions tbody tr.row-selected td.col-check {
  background: #e6f4ff !important;
}

/* 批量操作栏 · 对齐税务中心 list-batch-bar */
.list-batch-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  margin: 0 0 8px;
  background: #e6f7ff;
  border: 1px solid #bae7ff;
  border-radius: 4px;
  font-size: 13px;
  color: var(--office-blue, #1890ff);
}

.list-batch-bar.hidden { display: none; }

.list-batch-count {
  flex-shrink: 0;
  color: var(--office-blue, #1890ff);
}

.list-batch-count strong { font-weight: 600; }

.list-batch-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.list-batch-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--office-blue, #1890ff);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.list-batch-action:hover { opacity: 0.85; }

.list-batch-action svg { width: 14px; height: 14px; stroke-width: 2; }

.list-batch-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--office-blue, #1890ff);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.list-batch-close:hover {
  background: rgba(24, 144, 255, 0.08);
  border-radius: 4px;
}

.list-batch-close svg { width: 16px; height: 16px; }

.tag {
  min-height: 24px;
  border-radius: 3px;
  padding: 1px 8px;
  font-weight: 600;
  line-height: 20px;
}
.tag-blue { border-color: #9bcfff; background: #edf7ff; color: #1976d2; }
.tag-purple { border-color: #b99cf3; background: #f4efff; color: #7c55d9; }
.tag-gray { border-color: #dde2ea; background: #f8fafc; color: #697386; }
.tag-green { border-color: #a8e7c5; background: #effcf5; color: #168f57; }
.tag-orange { border-color: #ffd596; background: #fff8ea; color: #c97613; }
.tag-red { border-color: #ffb7b2; background: #fff2f0; color: #d6453d; }

.list-pagination {
  justify-content: center;
  gap: 10px;
  padding: 14px 0 0;
  color: #3b4554;
}
.list-pagination-total {
  margin-right: 8px;
  color: #313a47;
  font-weight: 600;
}
.list-pagination-nav { gap: 6px; }
.page-btn {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  border-color: var(--office-border-strong);
  color: #697386;
  background: #fff;
}
.page-btn:hover:not(:disabled):not(.is-active) {
  border-color: #b6dcff;
  color: var(--office-blue);
  background: #f7fbff;
}
.page-btn.is-active {
  border-color: var(--office-blue);
  color: var(--office-blue);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.08);
}
.page-btn:disabled {
  color: #c3c9d2;
  border-color: #e5e9ef;
  background: #f9fafc;
}
.list-pagination-size select,
.list-pagination-jump input {
  height: 30px;
  border-radius: 8px;
  border-color: var(--office-border-strong);
  color: #3b4554;
}
.list-pagination-size select {
  min-width: 94px;
  padding: 0 10px;
}
.list-pagination-jump { gap: 7px; color: #3b4554; }
.list-pagination-jump input {
  width: 54px;
  padding: 0 8px;
}

#page-drawer .drawer-mask {
  background: rgba(17, 24, 39, 0.42);
}
#page-drawer .drawer-panel {
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: min(1060px, calc(100vw - 24px));
  border: 1px solid #dce3ee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.22);
}
#page-drawer .drawer-panel-wide { width: min(1180px, calc(100vw - 24px)); }
#page-drawer .drawer-panel-maximized {
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  border: none;
}
.drawer-header {
  height: 56px;
  padding: 0 24px;
  background: #f4f6f9;
  border-bottom-color: var(--office-border);
}
.drawer-header-title {
  color: #1d2633;
  font-size: 17px;
  font-weight: 700;
}
.drawer-header-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #667282;
}
.drawer-header-btn:hover {
  background: #e9edf3;
  color: #2d3746;
}
.drawer-body {
  padding: 16px 20px;
  color: var(--office-text);
}
.drawer-section-title {
  width: 100%;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--office-border);
  color: #263241;
  font-size: 15px;
  font-weight: 700;
}
.drawer-section-title::before {
  width: 4px;
  height: 16px;
  background: var(--office-blue);
  border-radius: 2px;
}
.drawer-form {
  gap: 18px 48px;
  margin-bottom: 26px;
}
.drawer-input-label,
.drawer-form-label {
  color: #2d3746;
  font-weight: 700;
}
.drawer-form-value,
.drawer-input,
.drawer-input-box,
.drawer-select,
.drawer-textarea {
  border-color: var(--office-border-strong);
  border-radius: 8px;
  color: #364150;
  background: #fff;
}
.drawer-input,
.drawer-select {
  height: 36px;
}
.drawer-input:focus,
.drawer-select:focus,
.drawer-textarea:focus,
.drawer-input--editable:focus {
  border-color: var(--office-blue);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.10);
}
.drawer-textarea:not(.drawer-textarea--compact) { min-height: 84px; }
.drawer-textarea--compact {
  min-height: 36px;
  height: 36px;
  line-height: 34px;
}
.drawer-upload-zone {
  border-color: #dfe5ee;
  border-radius: 8px;
  background: #fbfcfe;
}
.drawer-upload-zone:hover {
  border-color: #b9ddff;
  background: #f4f9ff;
}
.drawer-nav-wrap { padding-bottom: 16px; }
.drawer-nav,
.page-subtab-list { height: 35px; gap: 6px; }
.drawer-nav-divider,
.page-subtab-divider { background: #f0f0f0; }
.drawer-table-wrap {
  border-color: var(--office-border);
  border-radius: 8px;
}
.drawer-table th,
.drawer-table td {
  padding: 12px 10px;
  border-bottom-color: var(--office-border);
  border-right: 1px solid var(--office-border);
  color: var(--office-text);
}
.drawer-table th:last-child,
.drawer-table td:last-child { border-right: none; }
.drawer-table th {
  background: var(--office-head);
  color: var(--office-title);
  font-weight: 700;
}
.drawer-table tbody tr:hover { background: #f8fbff; }
.drawer-footer {
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  padding: 14px 28px;
  background: #f4f6f9;
  border-top-color: var(--office-border);
  gap: 12px;
}
.drawer-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-drawer,
.btn-modal {
  height: 36px;
  min-width: 78px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-drawer-cancel,
.btn-modal-cancel,
.btn-drawer-secondary {
  border-color: var(--office-border-strong);
  color: #374151;
}
.btn-drawer-cancel:hover,
.btn-modal-cancel:hover,
.btn-drawer-secondary:hover {
  border-color: #b8ddff;
  color: var(--office-blue);
  background: #fff;
}
.btn-drawer-primary,
.btn-modal-primary {
  background: var(--office-blue);
  color: #fff;
}
.btn-drawer-primary:hover,
.btn-modal-primary:hover {
  background: #40a9ff;
}
.drawer-audit-toggle-btn {
  height: 36px;
  min-width: 96px;
  border-color: var(--office-border-strong);
  color: #394454;
  font-weight: 600;
}
.drawer-audit-toggle-btn:first-child { border-radius: 8px 0 0 8px; }
.drawer-audit-toggle-btn:last-child { border-radius: 0 8px 8px 0; }
.drawer-audit-toggle-btn.is-active {
  border-color: var(--office-blue);
  background: var(--office-blue);
  color: #fff;
}
.drawer-audit-toggle-btn[data-audit-result="reject"].is-active {
  border-color: #d84a4a;
  background: #d84a4a;
  color: #fff;
}
.drawer-audit-compose .drawer-audit-toggle--chip .drawer-audit-toggle-btn {
  height: auto; min-width: auto; padding: 8px 16px; border-radius: 6px;
  border: none; background: #f7f7fa; color: #666; font-weight: 500;
}
.drawer-audit-compose .drawer-audit-toggle--chip .drawer-audit-toggle-btn:first-child,
.drawer-audit-compose .drawer-audit-toggle--chip .drawer-audit-toggle-btn:last-child {
  border-radius: 6px;
}
.drawer-audit-compose .drawer-audit-toggle--chip .drawer-audit-toggle-btn.is-active {
  background: #eaf4fe; color: #1890ff;
}
.drawer-audit-compose .drawer-audit-toggle--chip .drawer-audit-toggle-btn[data-audit-result="reject"].is-active {
  background: #fff1f0; color: #cf1322;
}

#page-drawer.is-center-modal.open { padding: 24px; }
#page-drawer.is-center-modal .config-form-backdrop {
  background: rgba(17, 24, 39, 0.42);
}
#page-drawer.is-center-modal .config-form-dialog {
  border-radius: 8px;
  border: 1px solid #dce3ee;
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.22);
}
.config-form-header {
  height: 56px;
  padding: 0 24px;
  background: #f4f6f9;
  border-bottom-color: var(--office-border);
}
.config-form-title {
  color: #1d2633;
  font-size: 17px;
  font-weight: 700;
}
.config-form-body { padding: 24px 28px; }
.config-form-footer {
  padding: 14px 28px;
  background: #f4f6f9;
  border-top-color: var(--office-border);
  border-radius: 0 0 8px 8px;
}
.audit-config-level-table-wrap {
  border-color: var(--office-border);
  border-radius: 8px;
}
.audit-config-level-table th,
.audit-config-level-table td {
  border-bottom-color: var(--office-border);
}
.audit-config-level-table th {
  background: var(--office-head);
  color: var(--office-title);
}

/* 审核中心 · 配置管理详情弹窗 */
#page-drawer.is-audit-config-modal .config-form-dialog {
  width: min(1120px, 96vw);
}
#page-drawer.is-audit-config-modal .config-form-body {
  padding: 22px 24px 24px;
  background: #f6f8fb;
}
.audit-config-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--office-text);
}
.audit-config-overview,
.audit-config-flow-panel,
.audit-config-panel {
  border: 1px solid var(--office-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.audit-config-overview {
  padding: 18px 20px;
}
.audit-config-overview-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.audit-config-overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #edf7ff;
  color: var(--office-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audit-config-overview-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.audit-config-kicker {
  margin-bottom: 3px;
  color: #7a8594;
  font-size: 12px;
  font-weight: 600;
}
.audit-config-overview h3,
.audit-config-flow-head h3,
.audit-config-panel-head h3 {
  margin: 0;
  color: #1d2633;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.audit-config-status {
  margin-left: auto;
  flex-shrink: 0;
}
.audit-config-overview-text {
  margin: 14px 0 0;
  color: #4b5565;
  font-size: 13px;
  line-height: 1.7;
}
.audit-config-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.audit-config-metric {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}
.audit-config-metric span {
  display: block;
  color: #7a8594;
  font-size: 12px;
  line-height: 1.4;
}
.audit-config-metric strong {
  display: block;
  margin-top: 5px;
  color: #253041;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.audit-config-metric.is-warn strong { color: #d46b08; }
.audit-config-flow-panel {
  padding: 18px 20px 20px;
}
.audit-config-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.audit-config-flow-head p,
.audit-config-panel-head p {
  margin: 4px 0 0;
  color: #7a8594;
  font-size: 12px;
  line-height: 1.55;
}
.audit-config-flow {
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.audit-config-flow-node {
  box-sizing: border-box;
  width: 128px;
  min-height: 90px;
  padding: 11px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
}
.audit-config-flow-node.is-start {
  border-color: #b7dcff;
  background: #f4f9ff;
}
.audit-config-flow-node.is-end {
  border-color: #b7e6c9;
  background: #f2fbf6;
}
.audit-config-flow-node span {
  display: block;
  color: #8a93a3;
  font-size: 12px;
  font-weight: 700;
}
.audit-config-flow-node strong {
  display: block;
  margin-top: 8px;
  color: #263241;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}
.audit-config-flow-node em {
  display: inline-flex;
  max-width: 100%;
  margin-top: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audit-config-flow-arrow {
  width: 20px;
  color: #a8b0bc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.audit-config-flow-arrow svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.1;
}
.audit-config-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.audit-config-panel {
  min-width: 0;
  padding: 18px 20px 20px;
}
.audit-config-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.audit-config-panel-chip {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 4px;
  background: #f2f5f9;
  color: #596579;
  font-size: 12px;
  font-weight: 700;
}
.audit-config-editor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audit-config-editor-card {
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  background: #fbfcfe;
  overflow: hidden;
}
.audit-config-editor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf4;
  background: #fff;
}
.audit-config-step {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #edf7ff;
  color: var(--office-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.audit-config-editor-title {
  min-width: 0;
  flex: 1;
}
.audit-config-editor-title strong {
  display: block;
  color: #263241;
  font-size: 14px;
  line-height: 1.35;
}
.audit-config-editor-title span {
  display: block;
  margin-top: 3px;
  color: #8a93a3;
  font-size: 12px;
  line-height: 1.35;
}
.audit-config-source-pill {
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.audit-config-source-pill.is-fixed,
.audit-config-flow-node em.is-fixed {
  border-color: #b7dcff;
  background: #edf7ff;
  color: #1976d2;
}
.audit-config-source-pill.is-org,
.audit-config-flow-node em.is-org {
  border-color: #b7e6c9;
  background: #f2fbf6;
  color: #168f57;
}
.audit-config-source-pill.is-leader,
.audit-config-flow-node em.is-leader {
  border-color: #dac7ff;
  background: #f6f1ff;
  color: #7351d4;
}
.audit-config-editor-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px 16px;
  padding: 14px;
}
.audit-config-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.audit-config-field-wide {
  grid-column: 2 / -1;
}
.audit-config-field > span {
  color: #596579;
  font-size: 12px;
  font-weight: 700;
}
#page-drawer.is-audit-config-modal .audit-config-assign-type {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--office-border-strong);
  border-radius: 8px;
  background: #fff;
  color: #303846;
  font-size: 13px;
  outline: none;
}
#page-drawer.is-audit-config-modal .audit-config-assign-type:focus {
  border-color: var(--office-blue);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.10);
}
#page-drawer.is-audit-config-modal .audit-config-assignee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#page-drawer.is-audit-config-modal .audit-config-assignee-tag {
  min-height: 30px;
  padding: 4px 10px;
  border-color: #dfe5ee;
  border-radius: 6px;
  background: #fff;
  color: #596579;
  font-weight: 600;
}
#page-drawer.is-audit-config-modal .audit-config-assignee-tag:hover {
  border-color: #b7dcff;
  color: var(--office-blue);
  background: #f7fbff;
}
#page-drawer.is-audit-config-modal .audit-config-assignee-tag.is-on {
  border-color: #9bcfff;
  background: #edf7ff;
  color: #1976d2;
}
.audit-config-auto-note,
.audit-config-logic-note {
  min-height: 36px;
  padding: 9px 11px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  color: #485568;
  font-size: 13px;
  line-height: 1.55;
}
.audit-config-logic-note {
  background: #f8fbff;
}
.audit-config-logic-panel {
  position: sticky;
  top: 0;
}
.audit-config-rule-block + .audit-config-rule-block {
  margin-top: 16px;
}
.audit-config-rule-block h4 {
  margin: 0 0 10px;
  color: #263241;
  font-size: 13px;
  font-weight: 800;
}
.audit-config-rule-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed #e3e8ef;
}
.audit-config-rule-row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.audit-config-rule-row strong {
  color: #3e4858;
  font-size: 12px;
  line-height: 1.55;
}
.audit-config-rule-row span {
  color: #657083;
  font-size: 12px;
  line-height: 1.65;
}
.audit-config-impact {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #dcecff;
  border-radius: 8px;
  background: #f4f9ff;
  color: #2873bd;
  font-size: 12px;
  line-height: 1.65;
}
.audit-config-impact svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .audit-config-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audit-config-main-grid {
    grid-template-columns: 1fr;
  }
  .audit-config-logic-panel {
    position: static;
  }
  .audit-config-editor-grid {
    grid-template-columns: 1fr;
  }
  .audit-config-field-wide {
    grid-column: 1 / -1;
  }
}

.system-switch-mask { background: rgba(17, 24, 39, 0.42); }
.system-switch-dialog {
  border-radius: 8px;
  border: 1px solid #dce3ee;
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.22);
}
.system-switch-card {
  border-color: var(--office-border);
  border-radius: 8px;
}
.system-switch-card:hover:not(.is-disabled) {
  border-color: #b8ddff;
  background: #f7fbff;
}
.system-switch-card.is-selected {
  border-color: var(--office-blue);
  background: var(--office-blue-soft);
}

/* 页面说明改为右下角浮动问号；列表/工具栏外部不画描边 */
.page-list-shell {
  border: none !important;
  box-shadow: none !important;
}
.page-list-shell .page-toolbar {
  border: none !important;
}
.page-list-shell.is-page-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  margin: 0;
  border-radius: 0 !important;
  max-width: none;
  width: 100vw;
  height: 100vh;
}
.page-list-shell .expense-grid-wrap {
  border: 1px solid var(--office-border) !important;
  border-radius: 8px;
  box-shadow: none;
}
.page-list-shell .expense-grid-table th:first-child,
.page-list-shell .expense-grid-table td:first-child {
  border-left: none;
}
.page-list-shell .expense-grid-table thead th {
  border-top: none;
}
.page-list-shell .expense-grid-table th,
.page-list-shell .expense-grid-table td,
.page-list-shell .expense-grid-table .col-num {
  text-align: center;
}

.page-help-fab {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--office-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(24, 144, 255, 0.32);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.page-help-fab:hover {
  transform: translateY(-1px);
  background: #40a9ff;
  box-shadow: 0 12px 30px rgba(24, 144, 255, 0.38);
}
.page-help-fab svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}
.page-help-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  visibility: hidden;
}
.page-help-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.page-help-mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.34);
  opacity: 0;
  transition: opacity .22s ease;
}
.page-help-drawer.open .page-help-mask { opacity: 1; }
.page-help-panel {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: min(420px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 16px));
  transition: transform .24s ease;
  overflow: hidden;
}
.page-help-drawer.open .page-help-panel {
  transform: translateX(0);
}
.page-help-header {
  height: 56px;
  padding: 0 20px;
  background: #f4f6f9;
  border-bottom: 1px solid var(--office-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.page-help-title {
  min-width: 0;
  color: #1d2633;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-help-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #667282;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.page-help-close:hover {
  background: #e9edf3;
  color: #2d3746;
}
.page-help-body {
  padding: 22px 22px 28px;
  overflow-y: auto;
}
.page-help-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--office-blue);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-help-text {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--office-border);
  border-radius: 8px;
  background: #f8fbff;
  color: #314154;
  font-size: 14px;
  line-height: 1.75;
}

/* 详情抽屉 · 处理/审核轨迹（对齐 drawer-nav / drawer-summary 左缘） */
#drawer-audit-trail:not(:empty) {
  margin-bottom: 16px;
  text-align: left;
}

#drawer-audit-trail .drawer-section-title {
  text-align: left;
}

.drawer-process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 0;
}

.drawer-process-timeline__item {
  position: relative;
  padding-bottom: 16px;
}

.drawer-process-timeline__item:last-child {
  padding-bottom: 0;
}

.drawer-process-timeline__item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: #e5e9f0;
}

.drawer-process-timeline__item:last-child::before {
  display: none;
}

.drawer-process-timeline__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.drawer-process-timeline__head > i {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-left: 3px;
  border-radius: 999px;
  background: #9aa6b5;
  box-shadow: 0 0 0 4px #f4f6f9;
}

.drawer-process-timeline__item.is-current .drawer-process-timeline__head > i {
  background: var(--office-blue, #1890FF);
  box-shadow: 0 0 0 4px #e8f3ff;
}

.drawer-process-timeline__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.drawer-process-timeline__meta span,
.drawer-process-timeline__meta em {
  color: var(--office-muted, #8a93a3);
  font-size: 12px;
  font-style: normal;
  line-height: 24px;
}

.drawer-process-timeline__detail {
  margin: 6px 0 0 28px;
}

.drawer-process-timeline__body {
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.drawer-process-timeline__item.is-current .drawer-process-timeline__body {
  border-color: #cfe6ff;
  background: #f8fbff;
}

.drawer-process-timeline__detail strong,
.drawer-process-timeline__body strong {
  display: block;
  margin-bottom: 5px;
  color: #1f2733;
  font-size: 14px;
  font-weight: 700;
}

.drawer-process-timeline__detail p,
.drawer-process-timeline__body p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
}

#drawer-audit-trail .drawer-process-timeline__body,
#drawer-audit-trail .drawer-process-timeline__detail,
#drawer-log-content .drawer-process-timeline__body,
#drawer-log-content .drawer-process-timeline__detail {
  padding: 0;
  margin-left: 28px;
  margin-top: 6px;
  border: none;
  border-radius: 0;
  background: transparent;
}

#drawer-audit-trail .drawer-process-timeline__item.is-current .drawer-process-timeline__body,
#drawer-audit-trail .drawer-process-timeline__item.is-current .drawer-process-timeline__detail,
#drawer-log-content .drawer-process-timeline__item.is-current .drawer-process-timeline__body,
#drawer-log-content .drawer-process-timeline__item.is-current .drawer-process-timeline__detail {
  border: none;
  background: transparent;
}

/* 月度账户对账 · 圆形对勾 / 叉号图标 */
.reconcile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
}
.reconcile-mark svg {
  width: 10px;
  height: 10px;
  display: block;
}
.reconcile-mark--ok {
  color: #10b981;
  background: #d1fae5;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}
.reconcile-mark--fail {
  color: #f43f5e;
  background: #ffe4e6;
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.3);
}

/* 更多筛选弹窗（财务 / 审核 / 外账 / 薪酬绩效共用） */
.tax-filter-mask {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(17, 24, 39, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tax-filter-modal {
  width: min(1120px, calc(100vw - 48px));
  max-height: min(820px, calc(100vh - 48px));
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tax-filter-head {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f6f9;
  border-bottom: 1px solid var(--office-border, #edf0f5);
}
.tax-filter-head h3 {
  margin: 0;
  color: #1d2633;
  font-size: 17px;
  font-weight: 700;
}
.tax-filter-head button {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #667282;
  cursor: pointer;
}
.tax-filter-head button:hover {
  background: #e9edf3;
  color: #2d3746;
}
.tax-filter-body {
  min-height: 420px;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  padding: 18px 20px;
  overflow: hidden;
}
.tax-filter-nav {
  background: #f7f8fb;
  border: 1px solid var(--office-border, #edf0f5);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tax-filter-nav button {
  border: 0;
  background: transparent;
  color: #303846;
  text-align: left;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.tax-filter-nav button.is-active {
  color: var(--office-blue, #1890FF);
  background: #fff;
}
.tax-filter-nav button.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--office-blue, #1890FF);
}
.tax-filter-content {
  border: 1px solid var(--office-border, #edf0f5);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  overflow-y: auto;
}
.tax-filter-section h4 {
  margin: 0 0 18px;
  color: #1f2733;
  font-size: 15px;
  font-weight: 700;
}
.tax-filter-date,
.tax-filter-range {
  display: flex;
  align-items: center;
  gap: 0;
}
.tax-filter-date button,
.tax-filter-date input,
.tax-filter-range input {
  height: 38px;
  border: 1px solid #dfe5ee;
  background: #fff;
  color: #303846;
  padding: 0 14px;
  min-width: 150px;
  font-size: 14px;
  outline: none;
}
.tax-filter-date button {
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tax-filter-date input:last-of-type {
  border-radius: 0 8px 8px 0;
}
.tax-filter-date span,
.tax-filter-range span {
  padding: 0 14px;
  color: #9ca3af;
}
.tax-filter-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px 28px;
}
.tax-filter-check-grid label,
.tax-filter-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}
.tax-filter-check-grid input,
.tax-filter-radio-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--office-blue, #1890FF);
}
.tax-filter-radio-row {
  display: flex;
  gap: 120px;
}
.tax-filter-foot {
  height: 64px;
  background: #f4f6f9;
  border-top: 1px solid var(--office-border, #edf0f5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  gap: 12px;
}
.tax-filter-reset,
.tax-filter-confirm {
  border: 0;
  border-radius: 8px;
  height: 36px;
  min-width: 78px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tax-filter-reset {
  border: 1px solid #dfe5ee;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tax-filter-reset:hover {
  border-color: #b8ddff;
  color: var(--office-blue, #1890FF);
}
.tax-filter-confirm {
  background: var(--office-blue, #1890FF);
  color: #fff;
}
.tax-filter-confirm:hover {
  background: #40a9ff;
}
.tax-filter-empty {
  color: #9ca3af;
  font-size: 14px;
}
