/* ==============================
   finance.css — 财务系统专用样式（V6 重构版）
   ============================== */

/* ---------- 根容器 ---------- */
.finance-root {
  padding: 0;
  display: flex;
  min-height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* ---------- 一级侧栏（靠左竖排） ---------- */
.finance-tabs {
  display: flex;
  flex-direction: column;
  width: 152px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  padding: 10px 0;
  flex-shrink: 0;
}
.finance-tabs .tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #6b7280;
  border-left: 3px solid transparent;
  transition: all 0.12s;
  user-select: none;
}
.finance-tabs .tab:hover {
  color: #374151;
  background: rgba(0,0,0,0.02);
}
.finance-tabs .tab.active {
  color: #2563eb;
  font-weight: 600;
  background: #fff;
  border-left-color: #2563eb;
}

/* ---------- 内容区 ---------- */
#financeContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  min-width: 0;
}

/* ---------- 二级横排 Tab ---------- */
.fin-secondary-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 0 16px;
}
.fin-secondary-tabs .tab-item {
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  transition: all 0.15s;
  user-select: none;
}
.fin-secondary-tabs .tab-item:hover { color: #374151; }
.fin-secondary-tabs .tab-item.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* ---------- 三级竖排侧栏 ---------- */
.fin-tertiary-layout {
  display: flex;
  flex: 1;
}
.fin-tertiary-sidebar {
  width: 140px;
  background: #fafafa;
  border-right: 1px solid #e5e7eb;
  padding: 8px 0;
  flex-shrink: 0;
}
.fin-tertiary-sidebar .t3-item {
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.1s;
}
.fin-tertiary-sidebar .t3-item:hover { color: #374151; background: rgba(0,0,0,0.02); }
.fin-tertiary-sidebar .t3-item.active { color: #2563eb; font-weight: 600; background: #fff; }

/* ---------- 内容体 ---------- */
.fin-body {
  flex: 1;
  padding: 20px;
  min-height: 300px;
}

/* ========== 概览卡片 ========== */
.fin-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.mini-card {
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--mc-clr, #059669);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow 0.15s;
}
.mini-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.mc-label { font-size: 11px; color: #6b7280; margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-value { font-size: 14px; font-weight: 600; color: #111827; }
.mc-sub { font-size: 10px; color: #9ca3af; margin-top: 1px; }

.kpi-bar {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.kpi-item {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #f3f4f6;
}
.kpi-label { font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.kpi-value { font-size: 16px; font-weight: 700; }
.kpi-value.green { color: #059669; }
.kpi-value.red { color: #dc2626; }
.kpi-value.amber { color: #d97706; }

.fin-section { margin-bottom: 16px; }
.fin-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid #059669;
}


/* 待办 */
.todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.todo-item span { flex: 1; }
.todo-red { background: #fef2f2; }
.todo-amber { background: #fffbeb; }
.todo-link { color: #3b82f6; font-size: 12px; text-decoration: none; font-weight: 500; }
.todo-link:hover { text-decoration: underline; }

/* ========== 表格 ========== */
.finance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}
.finance-table thead { position: sticky; top: 0; z-index: 2; }
.finance-table th {
  background: var(--bg-page);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.finance-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.finance-table tr:last-child td { border-bottom: none; }
.finance-table tr:hover td { background: var(--bg-page); }
.finance-table .actions { text-align: right; white-space: nowrap; }
.finance-table .actions .btn { margin-left: 4px; }

/* ========== 状态徽章 ========== */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-supervisor_approved { background: #dbeafe; color: #1e40af; }
.status-finance_approved { background: #d1fae5; color: #065f46; }
.status-reimbursed { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-active { background: #d1fae5; color: #065f46; }
.status-converted { background: #dbeafe; color: #1e40af; }
.status-refunded { background: #fef3c7; color: #92400e; }
.status-done { background: #d1fae5; color: #065f46; }
.status-draft { background: #f3f4f6; color: #6b7280; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }
.btn-level1 { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-level1:hover { background: #1d4ed8; border-color: #1d4ed8; box-shadow: 0 2px 6px rgba(37,99,235,0.3); }
.btn-level2 { background: #ca8a04; color: #fff; border-color: #ca8a04; }
.btn-level2:hover { background: #a16207; border-color: #a16207; box-shadow: 0 2px 6px rgba(202,138,4,0.3); }
.btn-level3 { background: #059669; color: #fff; border-color: #059669; }
.btn-level3:hover { background: #047857; border-color: #047857; box-shadow: 0 2px 6px rgba(5,150,105,0.3); }
/* .btn-secondary/.btn-danger/.btn-sm/.btn-success/.btn-outline 统一走 style.css 权威版(用 CSS 变量)，此处不再重复定义 */
.btn-link { background: none; color: var(--primary); text-decoration: none; padding: 2px 6px; border: none; }
.btn-link:hover { color: #1d4ed8; text-decoration: underline; }
.btn-link-danger { background: none; color: var(--danger); text-decoration: none; padding: 2px 6px; border: none; }
.btn-link-danger:hover { color: #b91c1c; text-decoration: underline; }

/* ========== 子Tab ========== */
.sub-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
}
.sub-tab {
  padding: 7px 18px;
  cursor: pointer;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  user-select: none;
}
.sub-tab:hover { color: #334155; }
.sub-tab.active {
  background: #fff;
  color: #059669;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ========== 按钮组/过滤器组 ========== */
.btn-group {
  display: inline-flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.btn-group .btn {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border);
}
.btn-group .btn:last-child { border-right: none; }
.btn-group .btn.active { background: var(--success); color: #fff; }

/* ========== 工具栏 ========== */
.finance-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.finance-toolbar input,
.finance-toolbar select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s;
}
.finance-toolbar input:focus,
.finance-toolbar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ========== 弹窗（Modal） ========== */
.fin-modal-overlay {
  position: fixed; z-index: 10000;
  inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: finModalFadeIn 0.15s ease-out;
}
@keyframes finModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fin-modal-box {
  background: #fff; border-radius: 16px;
  padding: 28px; max-width: 600px; width: 92%;
  max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: finModalSlideUp 0.2s ease-out;
}
@keyframes finModalSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fin-modal-box { padding: 0; }
.fin-modal-header {
  position: sticky; top: 0; z-index: 1;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 18px 28px; border-radius: 16px 16px 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.fin-modal-header h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }
.fin-modal-close {
  font-size: 24px; cursor: pointer; color: var(--text-muted); line-height: 1;
  padding: 0 4px; user-select: none; transition: color 0.15s;
}
.fin-modal-close:hover { color: var(--text-secondary); }
.fin-modal-body { padding: 20px 28px 28px; max-height: calc(85vh - 64px); overflow-y: auto; }
.fin-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
}
.fin-modal-box .form-group { margin-bottom: 16px; }
.fin-modal-box .form-group label {
  display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500;
}
.fin-modal-box .form-group input,
.fin-modal-box .form-group select,
.fin-modal-box .form-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 13px;
  box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s;
}
.fin-modal-box .form-group input:focus,
.fin-modal-box .form-group select:focus,
.fin-modal-box .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.fin-modal-box .form-group textarea { height: 70px; resize: vertical; }

/* ===== 表单控件全局统一（块J UI统一）=====
   覆盖财务页 toolbar/筛选/表单等所有输入控件，消除逐处内联边框差异。
   注意：不覆盖内联 style（内联优先），但统一非内联控件的默认外观，保证整体视觉一致 */
.fin-body input[type='text'],
.fin-body input[type='number'],
.fin-body input[type='date'],
.fin-body input[type='password'],
.fin-body input[type='tel'],
.fin-body select,
.fin-body textarea {
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  padding: 7px 10px;
  box-sizing: border-box;
  background: #fff;
  color: var(--text);
}
.fin-body input:focus,
.fin-body select:focus,
.fin-body textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.fin-body .finance-toolbar select,
.fin-body .finance-toolbar input { min-height: 32px; }

.fin-modal-box .btn-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- 统计横幅 ---------- */
.stat-bar {
  display: flex; gap: 28px; padding: 14px 20px;
  background: #fff; border-radius: 12px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #f3f4f6;
}
.stat-bar .stat-item { font-size: 13px; color: #6b7280; }
.stat-bar .stat-item strong { font-size: 17px; color: #111827; display: block; margin-bottom: 2px; }

@media (max-width: 768px) {
  .stat-bar { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .stat-bar .stat-item { flex: 1 0 40%; }
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 14px; line-height: 1.8;
}

/* ========== 加载状态 ========== */
.loading {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 14px;
}

/* ========== 关账状态条 ========== */
.closure-bar {
  padding: 10px 18px; border-radius: 10px; margin-bottom: 16px;
  font-size: 13px; display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.closure-bar.closed { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.closure-bar.opened { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ========== 分页 ========== */

/* ========== 设置 - 仿后台布局 ========== */
.settings-layout {
  display: flex;
  gap: 0;
  min-height: 400px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
}
.settings-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 8px 0;
}
.settings-sidebar .s-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.settings-sidebar .s-item:hover { background: #f1f5f9; color: #111827; }
.settings-sidebar .s-item.active {
  background: #fff;
  color: #059669;
  font-weight: 600;
  border-left-color: #059669;
}
.settings-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 600px;
}
.settings-content h4 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

/* 设置面板卡片 */
.settings-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.settings-card .sc-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}
.settings-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin: 2px;
}
.settings-tag .remove {
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
}
.settings-tag .remove:hover { color: #dc2626; }

/* 标签输入 */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag-input-wrap input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  flex: 1;
  min-width: 120px;
}
.tag-input-wrap button { flex-shrink: 0; }

/* ========== 凭证缩略图 ========== */
/* 审批配置标签 */
.apr-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 16px;
  cursor: pointer;
  border: 1.5px solid;
  background: #fff;
  color: #374151;
  font-size: 11.5px;
  transition: all .12s;
  user-select: none;
}
.apr-tag.apr-tag-selected {
  color: #fff !important;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.apr-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.apr-tag-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 16px;
  cursor: pointer;
  border: 1.5px solid;
  font-size: 11.5px;
  transition: all .12s;
  user-select: none;
  margin-bottom: 6px;
}

.voucher-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.15s;
}
.voucher-thumb:hover { transform: scale(1.05); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .fin-cards { grid-template-columns: repeat(2, 1fr); }
  .kpi-bar { grid-template-columns: repeat(2, 1fr); }
  .finance-tabs { padding: 8px 8px 0; overflow-x: auto; }
  .finance-tabs .tab { padding: 6px 10px; font-size: 13px; }
  .finance-table th, .finance-table td { padding: 8px 10px; font-size: 12px; }
  #financeContent { padding: 12px; }
  .modal-box { padding: 20px; }
  .modal-box .btn-row { flex-direction: column; }
  .modal-box .btn-row .btn { width: 100%; justify-content: center; }
  .settings-layout { flex-direction: column; }
  .settings-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e5e7eb; display: flex; overflow-x: auto; padding: 4px; }
  .settings-sidebar .s-item { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .settings-sidebar .s-item.active { border-bottom-color: #059669; }
}
@media (max-width: 480px) {
  .fin-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   System Settings v2 — 系统设置重构（fsv2）
   结构：左侧导航 + 审批流程配置(三链合并) + 基础配置 + 关账
   ============================================================ */

/* 主布局：左侧导航 + 右侧内容 */
.settings-layout.fsv2 { display: flex; gap: 0; min-height: 500px; background: #fff; border-radius: 12px; overflow: hidden; }
.fsv2-sidebar { width: 190px; background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 10px 0; flex-shrink: 0; }
.fsv2-group { padding: 10px 16px 4px; font-size: 11px; color: #94a3b8; letter-spacing: .5px; font-weight: 600; }
.fsv2-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: #475569; cursor: pointer; transition: all .12s; border-left: 3px solid transparent; user-select: none; }
.fsv2-item:hover { background: #fff; color: #1f2937; }
.fsv2-item.active { background: #fff; color: #2563eb; font-weight: 600; border-left-color: #2563eb; }
.fsv2-item .fsv2-ico { font-size: 15px; }

/* 右侧内容 */
.settings-content { flex: 1; padding: 22px 24px; min-width: 0; }
.fsv2-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.fsv2-title { font-size: 18px; font-weight: 700; color: #111827; }
.fsv2-sub { font-size: 12px; color: #6b7280; width: 100%; margin-top: 2px; }
.fsv2-lock { margin-left: auto; font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }

/* 审批流程卡片 */
.fsv2-flow { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; background: #fff; transition: box-shadow .15s; }
.fsv2-flow:hover { box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.fsv2-flow-head { display: flex; align-items: center; gap: 12px; }
.fsv2-flow-head .flow-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.fsv2-flow-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.fsv2-flow-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }
.fsv2-toggle { font-size: 16px; color: #94a3b8; flex-shrink: 0; }

/* 步骤时间线 */
.fsv2-steps { display: flex; align-items: flex-start; margin: 16px 0 8px; }
.fsv2-steps .step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; }
.fsv2-steps .step-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; position: relative; z-index: 2; }
.fsv2-steps .step-line { position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: #e2e8f0; }
.fsv2-steps .step:last-child .step-line { display: none; }
.fsv2-steps .step-label { margin-top: 8px; font-size: 12px; color: #334155; font-weight: 600; }
.fsv2-steps .step-tag { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* 单级配置块 */
.fsv2-level { background: #fafbfc; border-radius: 10px; padding: 14px 16px; margin-top: 12px; }
.fsv2-level-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fsv2-level-name { font-weight: 700; font-size: 13px; color: #1f2937; }
.fsv2-level-cnt { font-size: 11px; font-weight: 500; margin-left: auto; }
.fsv2-level-body { padding-left: 2px; }

/* 标签 + 输入 */
.fsv2 .fc-label { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 7px; }

/* 人员复选行 */
.person-rows { display: flex; flex-direction: column; gap: 5px; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; transition: all .12s; background: #fff; }
.p-row:hover { border-color: #94a3b8; }
.p-row.sel { background: #eff6ff; border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb inset; }
.p-avatar { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.p-name { font-size: 13px; color: #1f2937; flex: 1; }
.p-check { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 10px; color: transparent; flex-shrink: 0; transition: all .12s; }
.p-row.sel .p-check { border-color: #2563eb; background: #2563eb; color: #fff; }

/* 范围单选 */
.scope-radio { display: flex; gap: 8px; margin-bottom: 8px; }
.radio-pill { padding: 5px 14px; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 12px; color: #475569; cursor: pointer; transition: all .12s; user-select: none; }
.radio-pill.sel { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 600; }

/* 按钮 */
.fsv2 .btn-ghost { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }

/* 响应式 */
@media (max-width: 860px) {
  .settings-layout.fsv2 { flex-direction: column; }
  .fsv2-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e2e8f0; display: flex; overflow-x: auto; padding: 4px 8px; }
  .fsv2-group { display: none; }
  .fsv2-item { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .fsv2-item.active { border-bottom-color: #2563eb; }
}

/* ============================================================
   fsv2-split — 审批流程配置·左右分栏（8/1 优化：不用下拉，一屏看一条链）
   ============================================================ */
.fsv2-split { display: flex; gap: 0; align-items: stretch; }
.fsv2-split-list { width: 200px; flex-shrink: 0; border-right: 1px solid #e2e8f0; padding-right: 14px; display: flex; flex-direction: column; gap: 8px; }
.fsv2-list-item { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: all .12s; background: #fff; }
.fsv2-list-item:hover { border-color: #94a3b8; }
.fsv2-list-item.active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 1px #2563eb inset; }
.fsv2-li-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; flex-shrink: 0; }
.fsv2-li-body { flex: 1; min-width: 0; }
.fsv2-li-title { font-size: 13px; font-weight: 700; color: #1f2937; }
.fsv2-li-desc { font-size: 11px; color: #6b7280; margin-top: 2px; }
.fsv2-li-arrow { color: #cbd5e1; font-size: 16px; flex-shrink: 0; }
.fsv2-list-item.active .fsv2-li-arrow { color: #2563eb; }

.fsv2-split-main { flex: 1; min-width: 0; padding-left: 16px; }
.fsv2-flow-single { margin-bottom: 0; }

/* 单链步骤条固定在上方，三级配置紧凑排布 */
.fsv2-flow-single .fsv2-steps { margin: 14px 0 6px; }
.fsv2-flow-single .fsv2-level { margin-top: 10px; }

/* 响应式：窄屏转上下 */
@media (max-width: 900px) {
  .fsv2-split { flex-direction: column; }
  .fsv2-split-list { width: 100%; border-right: none; border-bottom: 1px solid #e2e8f0; padding-right: 0; padding-bottom: 12px; flex-direction: row; overflow-x: auto; }
  .fsv2-list-item { flex: 0 0 auto; min-width: 150px; }
  .fsv2-split-main { padding-left: 0; padding-top: 14px; }
}

/* ============================================================
   fsv2-horiz-tabs — 基础配置·横向TAB（8/1：收入名称/报销分类横排）
   ============================================================ */
.fsv2-horiz-tabs { display: flex; gap: 8px; border-bottom: 2px solid #e2e8f0; padding-bottom: 0; }
.fsv2-horiz-tab { padding: 10px 20px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .12s; user-select: none; border-radius: 8px 8px 0 0; }
.fsv2-horiz-tab:hover { color: #1f2937; background: #f8fafc; }
.fsv2-horiz-tab.active { color: #2563eb; border-bottom-color: #2563eb; background: #eff6ff; }

/* ============================================================
   fsv2-top — 系统设置·顶部横向4TAB（8/1：收入名称/报销分类/审批流程配置/关账管理）
   ============================================================ */
.fsv2-top .settings-content { padding: 20px 0 0 !important; }
.fsv2-top-tabs { display: flex; gap: 6px; border-bottom: 2px solid #e2e8f0; padding-bottom: 0; flex-wrap: wrap; }
.fsv2-top-tab { padding: 11px 22px; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .12s; user-select: none; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 6px; }
.fsv2-top-tab:hover { color: #1f2937; background: #f8fafc; }
.fsv2-top-tab.active { color: #2563eb; border-bottom-color: #2563eb; background: #eff6ff; }

/* ============================================================
   System Settings — 财务统一视觉覆盖（8/1）
   让系统设置与总览/商品管理/工资管理完全同风格
   ============================================================ */
/* 板块标题统一为财务 fin-section-title 风格（左绿竖条） */
#settingsContent .fsv2-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 0 0 6px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
#settingsContent .fsv2-title { font-size: 14px; font-weight: 600; color: #374151; padding-left: 8px; border-left: 3px solid #059669; line-height: 1.2; }
#settingsContent .fsv2-sub { font-size: 12px; color: #6b7280; width: 100%; margin-top: 4px; }
#settingsContent .fsv2-lock { font-size: 11px; color: #9ca3af; }

/* 审批流程：单链卡片 → 财务 mini-card 浅阴影风格 */
#settingsContent .fsv2-flow { border: 1px solid #f3f4f6; border-radius: 10px; padding: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 0; }
#settingsContent .fsv2-flow-head { gap: 12px; }
#settingsContent .fsv2-flow-title { font-size: 14px; font-weight: 700; color: #111827; }
#settingsContent .fsv2-flow-desc { font-size: 12px; color: #9ca3af; }

/* 三级配置块 → 财务 settings-card 灰底 */
#settingsContent .fsv2-level { background: #f9fafb; border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
#settingsContent .fsv2-level-name { font-size: 12px; font-weight: 600; color: #374151; }
#settingsContent .fsv2-level-cnt { font-size: 11px; }

/* 审核人复选行：财务绿选中态 */
#settingsContent .p-row { border: 1px solid #e5e7eb; border-radius: 8px; }
#settingsContent .p-row.sel { background: #f0fdf4; border-color: #059669; box-shadow: 0 0 0 1px #059669 inset; }
#settingsContent .p-row.sel .p-check { border-color: #059669; background: #059669; }

/* 范围单选：财务绿选中态 */
#settingsContent .radio-pill { border: 1px solid #e5e7eb; }
#settingsContent .radio-pill.sel { background: #059669; border-color: #059669; }

/* 关账/基础配置卡片：财务 settings-card 同款 */
#settingsContent .settings-card { background: #f9fafb; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
#settingsContent .settings-card .sc-title { font-size: 13px; font-weight: 600; color: #374151; }

/* ============================================================
   总览样式紧凑化（8/1：金额完整元 + 去重 + 删校区排行 + 紧凑卡片）
   ============================================================ */
/* KPI 大字号完整元 */
.overview-kpi-fix .kpi-value { font-size:20px; font-weight:700; letter-spacing:.5px; }
/* mini 卡片紧凑：小 padding + 小字号 + 左色条 */
.mini-card { padding:8px 10px; border-left:3px solid var(--mc-clr,#059669); border-radius:10px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.04); border:1px solid #f3f4f6; }
.mc-label { font-size:11px; color:#6b7280; }
.mc-value { font-size:15px; font-weight:700; color:#111827; }
.mc-sub { font-size:10px; color:#9ca3af; }
