/* ===== finance.css — 财务管理模块专用样式 ===== */
/* 风格：Dark Theme + Glassmorphism，复用 common.css 设计变量 */

/* ══════════════════════════════════════
   模块容器
   ══════════════════════════════════════ */
.finance-content {
    width: 100%;
    padding: 0 8px;
}

/* ══════════════════════════════════════
   页面标题行（第1行：标题 + 新建按钮）
   ══════════════════════════════════════ */
.fin-page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    margin-bottom: 6px;
}
.fin-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fin-page-title-icon {
    font-size: 22px;
    line-height: 1;
}
.fin-page-title-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin: 0;
}
.fin-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════
   Tab 导航栏（第2行：下划线风格）
   ══════════════════════════════════════ */
.fin-tab-bar {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    flex-shrink: 0;
    margin-bottom: 16px;
}
.fin-tab-list {
    display: flex;
    gap: 2px;
    padding: 0;
}
.fin-tab-list::-webkit-scrollbar { display: none; }

.fin-tab {
    padding: 8px 22px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    font-family: inherit;
}
.fin-tab:hover {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
}
.fin-tab.active {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px) saturate(1.3);
    -webkit-backdrop-filter: blur(8px) saturate(1.3);
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════
   子菜单行（Tab 下方内联，无独立卡片）
   ══════════════════════════════════════ */
.fin-submenu-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 4px 12px;
    margin-bottom: 16px;
    min-height: 0;
    align-items: center;
}

.fin-submenu-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}
.fin-submenu-btn:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.1);
}
.fin-submenu-btn.active {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    font-weight: 600;
}

/* 内联子tab按钮（集成到筛选栏区域内） */
.fin-inline-tab {
    padding: 5px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}
.fin-inline-tab:hover {
    color: var(--text-primary);
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.06);
}
.fin-inline-tab.active {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.12);
    font-weight: 600;
}

/* ══════════════════════════════════════
   新建按钮（简洁紫色按钮）
   ══════════════════════════════════════ */
.hero-create-wrap { position: relative; }
.hero-create-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.hero-create-main:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
    color: #e0d5ff;
}
.hero-create-main:active {
    transform: scale(0.97);
}
.hero-create-arrow {
    transition: transform 0.2s;
    opacity: 0.6;
}
.hero-create-main:hover .hero-create-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* 下拉菜单 */
.hero-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 100;
    min-width: 200px;
    padding: 6px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(148, 163, 184, 0.08);
    animation: heroDropFadeIn 0.15s ease forwards;
}
@keyframes heroDropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-drop-group {
    padding: 6px 10px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.hero-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s;
    font-family: inherit;
    text-align: left;
}
.hero-drop-item b {
    font-size: 15px;
    width: 22px;
    text-align: center;
}
.hero-drop-item:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #e0d5ff;
}

/* ══════════════════════════════════════
   KPI 卡片可点击增强
   ══════════════════════════════════════ */
.ov-kpi-clickable {
    cursor: pointer; position: relative;
}
.ov-kpi-clickable:hover {
    border-color: rgba(139,92,246,0.4) !important;
    box-shadow: 0 0 20px rgba(139,92,246,0.12);
    transform: translateY(-3px);
}
.ov-kpi-jump-hint {
    display: inline-block; font-size: 14px; color: #8b5cf6;
    opacity: 0; transition: opacity 0.2s; margin-left: 4px;
}
.ov-kpi-clickable:hover .ov-kpi-jump-hint { opacity: 1; }
.ov-kpi-sub-info {
    font-size: 11.5px; color: #f59e0b; margin-top: 2px; font-weight: 600;
}

/* ══════════════════════════════════════
   快捷操作按钮增强
   ══════════════════════════════════════ */
.ov-quick-primary {
    border-color: rgba(139,92,246,0.25) !important;
    background: rgba(139,92,246,0.08) !important;
    color: #c4b5fd !important; font-weight: 700 !important;
}
.ov-quick-primary:hover {
    border-color: rgba(139,92,246,0.45) !important;
    background: rgba(139,92,246,0.15) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(139,92,246,0.2) !important;
}

/* ══════════════════════════════════════
   内容面板区域
   ══════════════════════════════════════ */
.finance-panel {
    display: none;
    animation: financeFadeIn 0.3s ease forwards;
}

.finance-panel.active {
    display: block;
}

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

/* ══════════════════════════════════════
   空白功能占位页
   ══════════════════════════════════════ */
.finance-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 60px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
}

.finance-placeholder-icon {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.finance-placeholder-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.finance-placeholder-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 420px;
}

.finance-placeholder-desc .hint-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 14px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #a78bfa;
}

/* ══════════════════════════════════════
   响应式适配（PC宽屏为主）
   ══════════════════════════════════════ */
@media (max-width: 900px) {
    .fin-page-title-text { font-size: 16px; }
    .fin-tab { padding: 7px 14px; font-size: 12px; }
    .fin-submenu-row { gap: 4px; }
    .fin-submenu-btn { padding: 4px 10px; font-size: 12px; }
    .hero-create-main { padding: 6px 12px; font-size: 12px; }

    /* 单据列表响应式 */
    .fin-toolbar { flex-wrap: wrap; }
    .fin-filters { gap: 8px; }
}

/* ══════════════════════════════════════
   单据列表 — 工具栏
   ══════════════════════════════════════ */
.fin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.fin-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fin-toolbar-right { display: flex; align-items: center; gap: 8px; }

.fin-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}
.fin-btn-new:hover {
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}

.fin-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.fin-btn-export:hover { color: var(--text-primary); border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.06); }

/* ══════════════════════════════════════
   单据列表 — 筛选栏
   ══════════════════════════════════════ */
.fin-filters {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.fin-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}
.fin-filter-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.fin-filter-group select,
.fin-filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 140px;
}
.fin-filter-group select:focus,
.fin-filter-group input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.fin-filter-group option { background: #1e293b; color: var(--text-primary); }
.fin-filter-group input::placeholder { color: #475569; }

.fin-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
    padding-bottom: 1px;
}
.fin-btn-query,
.fin-btn-reset {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.fin-btn-query {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.fin-btn-query:hover { box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4); transform: translateY(-1px); }
.fin-btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.fin-btn-reset:hover { color: var(--text-primary); border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.06); }

/* ══════════════════════════════════════
   单据列表 — 数据表格
   ══════════════════════════════════════ */
.fin-table-container {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.3);
}
.fin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}
.fin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 11.5px;
    color: #a78bfa;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    white-space: nowrap;
}
.fin-table tbody tr {
    border-bottom: 1px solid rgba(51, 65, 85, 0.35);
    transition: all 0.18s ease;
}
.fin-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.04);
    box-shadow: inset 3px 0 0 #8b5cf6;
}
.fin-table tbody tr:last-child { border-bottom: none; }
.fin-table td {
    padding: 12px 14px;
    vertical-align: middle;
    color: var(--text-primary);
    white-space: nowrap;
    font-size: 13px;
}
/* 金额列右对齐 */
.fin-table td:nth-child(5),
.fin-amount { text-align: right; font-variant-numeric: tabular-nums; }
/* 金额颜色：正数绿色，负数红色 */
.fin-amount.positive { color: #34d399; }
.fin-amount.negative { color: #f87171; }

/* ══════════════════════════════════════
   状态标签 — 预定义语义配色
   ══════════════════════════════════════ */
.fin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
/* 已批准 / 已完成 */
.fin-status-approved {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
/* 已提交 / 待审核 */
.fin-status-submitted {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
/* 已审核 / 待批准 */
.fin-status-reviewed {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}
/* 草稿 */
.fin-status-draft {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.15);
}
/* 已驳回 / 已取消 */
.fin-status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.fin-status-cancelled {
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

/* ══════════════════════════════════════
   操作按钮组 — 按风险等级区分视觉权重
   ══════════════════════════════════════ */
.fin-actions {
    display: flex;
    align-items: center;
    gap: 4px; flex-wrap: wrap;
}
.fin-action-link {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
/* L1 低风险：查看 */
.fin-action-view { color: #64748b; font-size: 11.5px; }
.fin-action-view:hover { background: rgba(100,116,139,0.08); color: #94a3b8; }

/* L2 中风险：编辑/删除/提交/取消 */
.fin-action-edit { color: #fbbf24; font-size: 12px; padding: 4px 11px; font-weight: 600; }
.fin-action-edit:hover { background: rgba(251,191,36,0.1); }

.fin-action-delete { color: #f87171; font-size: 12px; padding: 4px 11px; font-weight: 600; }
.fin-action-delete:hover { background: rgba(248,113,113,0.1); }

.fin-action-submit { color: #a78bfa; font-size: 12px; padding: 4px 11px; font-weight: 600; }
.fin-action-submit:hover { background: rgba(167,139,250,0.1); }

.fin-action-cancel { color: #9ca3af; font-size: 11.5px; }
.fin-action-cancel:hover { background: rgba(156,163,175,0.08); }

/* L3 高风险：审核/批准/驳回 */
.fin-action-review {
    color: #60a5fa; font-size: 12.5px; padding: 5px 14px;
    font-weight: 700; border: 1px solid rgba(96,165,250,0.2);
    border-radius: 7px; letter-spacing: 0.2px;
}
.fin-action-review:hover {
    background: rgba(96,165,250,0.12);
    border-color: rgba(96,165,250,0.35);
}

.fin-action-approve {
    color: #34d399; font-size: 12.5px; padding: 5px 14px;
    font-weight: 700; border: 1px solid rgba(52,211,153,0.2);
    border-radius: 7px; letter-spacing: 0.2px;
}
.fin-action-approve:hover {
    background: rgba(52,211,153,0.12);
    border-color: rgba(52,211,153,0.35);
}

.fin-action-reject {
    color: #fb923c; font-size: 12.5px; padding: 5px 14px;
    font-weight: 700; border: 1px solid rgba(251,146,60,0.2);
    border-radius: 7px; letter-spacing: 0.2px;
}
.fin-action-reject:hover {
    background: rgba(251,146,60,0.12);
    border-color: rgba(251,146,60,0.35);
}

/* 已批准的打印 */
.fin-action-print { color: #67e8f9; font-size: 12px; padding: 4px 11px; font-weight: 600; }
.fin-action-print:hover { background: rgba(103,232,249,0.1); }

/* ══════════════════════════════════════
   列表行审批迷你进度条（4节点）
   ══════════════════════════════════════ */
.mini-stepper {
    display: inline-flex; align-items: center; gap: 0;
    vertical-align: middle; margin-right: 8px;
}
.ms-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #334155; border: 1.5px solid #1e293b;
    transition: all 0.25s ease;
}
.ms-line {
    width: 16px; height: 2px; background: #334155;
    transition: background 0.25s;
}
/* 草稿：第1个点亮 */
.ms-step-draft .ms-dot:nth-child(1) { background: #94a3b8; border-color: #94a3b8; }
/* 待审核：第1-2个 */
.ms-step-submitted .ms-dot:nth-child(1) { background: #10b981; border-color: #10b981; }
.ms-step-submitted .ms-dot:nth-child(3) { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.35); }
.ms-step-submitted .ms-line { background: linear-gradient(90deg, #10b981, #f59e0b); }
/* 待批准：前3个 */
.ms-step-reviewed .ms-dot:nth-child(1),
.ms-step-reviewed .ms-dot:nth-child(3) { background: #10b981; border-color: #10b981; }
.ms-step-reviewed .ms-dot:nth-child(5) { background: #3b82f6; border-color: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.35); }
.ms-step-reviewed .ms-line { background: linear-gradient(90deg, #10b981, #3b82f6); }
/* 已批准：全部绿 */
.ms-step-approved .ms-dot { background: #10b981; border-color: #10b981; }
.ms-step-approved .ms-line { background: linear-gradient(90deg, #10b981, #34d399); }
/* 已驳回 */
.ms-step-rejected .ms-dot:nth-child(1) { background: #ef4444; border-color: #ef4444; }
.ms-step-rejected .ms-dot:nth-child(3) { background: #ef4444; border-color: #ef4444; }
.ms-step-rejected .ms-line { background: #ef4444; }

/* ══════════════════════════════════════
   空状态重新设计（插画风格 + 大CTA）
   ══════════════════════════════════════ */
.fin-empty-state {
    text-align: center;
    padding: 64px 40px;
    color: var(--text-secondary);
}
.fin-empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.45; display: block; line-height: 1; }
.fin-empty-state-text { font-size: 16px; margin-bottom: 8px; color: var(--text-primary); font-weight: 600; }
.fin-empty-state-hint { font-size: 13px; opacity: 0.65; margin-bottom: 20px; display: block; }
/* 大号 CTA 按钮 */
.fin-empty-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; margin-top: 8px;
    border: none; border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff; font-size: 14.5px; font-weight: 700;
    cursor: pointer; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit; box-shadow: 0 4px 18px rgba(139,92,246,0.3);
}
.fin-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(139,92,246,0.45);
}

/* 分页信息 */
.fin-pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* ══════════════════════════════════════
   新建/编辑单据弹窗表单
   ══════════════════════════════════════ */
.fin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 16px;
}
.fin-form-row.full-width > * { grid-column: 1 / -1; }

.fin-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.fin-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
}
.fin-form-label .required { color: #ef4444; margin-left: 2px; }

.fin-form-input,
.fin-form-select,
.fin-form-textarea {
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.fin-form-input:focus,
.fin-form-select:focus,
.fin-form-textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.fin-form-input::placeholder { color: #475569; }
.fin-form-option { background: #1e293b; color: var(--text-primary); }
.fin-form-textarea { resize: vertical; min-height: 56px; line-height: 1.5; }

/* 只读字段 */
.fin-form-input.readonly,
.fin-form-select.readonly {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.8;
}

/* 表单错误提示 */
.fin-form-error {
    font-size: 12px;
    color: #f87171;
    margin-top: 3px;
    display: none;
}
.fin-form-error.show { display: block; }

/* 弹窗底部操作区 */
.fin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    margin-top: 8px;
}
.fin-btn-save {
    padding: 10px 30px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}
.fin-btn-save:hover { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4); transform: translateY(-1px); }
.fin-btn-save:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.fin-btn-cancel {
    padding: 10px 24px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.fin-btn-cancel:hover { color: var(--text-primary); border-color: rgba(148, 163, 184, 0.25); background: rgba(148, 163, 184, 0.06); }

/* ══════════════════════════════════════
   详情查看面板
   ══════════════════════════════════════ */
.fin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-bottom: 20px;
}
.fin-detail-item { }
.fin-detail-key {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
    font-weight: 600;
}
.fin-detail-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}
.fin-detail-value.large { font-size: 22px; }
.fin-detail-value.amount-positive { color: #34d399; }
.fin-detail-value.amount-negative { color: #f87171; }

.fin-detail-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 16px 0;
}

/* ══════════════════════════════════════
   往来单位自动补全下拉
   ══════════════════════════════════════ */
.partner-autocomplete-wrapper { position: relative; }
.partner-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
    background: rgba(30,41,59,0.98);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139,92,246,0.15);
    backdrop-filter: blur(12px);
}
.partner-dropdown.show { display: block; }
.partner-dropdown-item {
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.partner-dropdown-item:last-child { border-bottom: none; }
.partner-dropdown-item:hover,
.partner-dropdown-item.active { background: rgba(139, 92, 246, 0.18); }

/* ════════════════════════════════════
   Phase 8: 往来单位管理面板
   ════════════════════════════════════ */
#finance-panel-partner-manage .pm-header {
    margin-bottom: 16px;
}
#finance-panel-partner-manage .fin-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ════════════════════════════════════
   Phase 3: 审批流程步骤条（详情页）
   ════════════════════════════════════ */
#page-finance .approval-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 8px;
}
#page-finance .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}
#page-finance .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
    border: 2px solid #334155;
    transition: all 0.3s ease;
}
#page-finance .step-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}
/* 步骤状态 */
#page-finance .step-item.done .step-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: #10b981;
}
#page-finance .step-item.done .step-label { color: #10b981; }
#page-finance .step-item.active .step-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
    animation: stepPulse 2s ease infinite;
}
#page-finance .step-item.active .step-label { color: #a78bfa; font-weight: 700; }
#page-finance .step-item.pending .step-icon {
    background: transparent;
    color: #475569;
    border-color: #334155;
}
#page-finance .step-item.pending .step-label { color: #475569; }

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(139, 92, 246, 0.35); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.55); }
}

/* 连接线 */
#page-finance .step-connector {
    height: 2px;
    flex: 1;
    min-width: 30px;
    max-width: 60px;
    background: #334155;
    margin: 0 6px;
    margin-bottom: 22px;
    transition: background 0.3s ease;
}
#page-finance .step-connector.done { background: linear-gradient(90deg, #10b981, #8b5cf6); }

/* ════════════════════════════════════
   Phase 3: 操作日志时间线
   ════════════════════════════════════ */
#page-finance .log-timeline {
    padding: 10px 0 4px 0;
    position: relative;
}
#page-finance .log-entry {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}
#page-finance .log-entry + .log-entry {
    border-top: 1px solid rgba(51, 65, 85, 0.25);
    margin-top: 2px;
    padding-top: 14px;
}
#page-finance .log-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #64748b;
    border: 2px solid rgba(100, 116, 139, 0.3);
    flex-shrink: 0;
    margin-top: 5px;
    z-index: 1;
}
#page-finance .log-entry:first-child .log-dot {
    background: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}
#page-finance .log-body {
    flex: 1;
    min-width: 0;
}
#page-finance .log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
#page-finance .log-action {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    padding: 2px 10px;
    border-radius: 5px;
    background: rgba(100, 116, 139, 0.15);
}
#page-finance .log-transition {
    font-size: 12px;
    color: var(--text-secondary);
}
#page-finance .log-from {
    color: #94a3b8;
    text-decoration: line-through;
}
#page-finance .log-to {
    color: #34d399;
    font-weight: 600;
}
#page-finance .log-time {
    font-size: 11px;
    color: #475569;
    margin-left: auto;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}
#page-finance .log-meta {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
}


/* ════════════════════════════════════
   Phase 3: 驳回弹窗样式
   ════════════════════════════════════ */
#reject-dialog textarea:focus {
    border-color: #fb923c !important;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15) !important;
}

/* ════════════════════════════════════
   Phase 4: 应收应付模块样式
   ════════════════════════════════════ */

.arap-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.arap-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.arap-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
}
.arap-ar::after { background: linear-gradient(90deg, #10b981, #34d399); }
.arap-ap::after { background: linear-gradient(90deg, #ef4444, #f87171); }
.arap-pr::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.arap-pp::after { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.arap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.arap-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.arap-ar .arap-card-icon { background: rgba(52, 211, 153, 0.12); }
.arap-ap .arap-card-icon { background: rgba(248, 113, 113, 0.12); }
.arap-pr .arap-card-icon { background: rgba(251, 191, 36, 0.12); }
.arap-pp .arap-card-icon { background: rgba(96, 165, 250, 0.12); }

.arap-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.arap-card-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}
.arap-card-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.arap-ar .arap-card-value { color: #34d399; }
.arap-ap .arap-card-value { color: #f87171; }
.arap-pr .arap-card-value { color: #fbbf24; }
.arap-pp .arap-card-value { color: #60a5fa; }

/* 台账余额条 */
.arap-balance-strip {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.arap-mini-card {
    font-size: 13px;
    color: var(--text-primary);
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    white-space: nowrap;
}
.arap-mini-card b { color: #a78bfa; font-weight: 700; }

/* ════════════════════════════════════
   Phase 4: 资产卡片面板样式
   ════════════════════════════════════ */

#asset-voucher-modal .fin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* ════════════════════════════════════
   Phase 5: 财务统计报表 + 可视化图表
   ════════════════════════════════════ */

/* ── KPI 指标卡片网格 ── */
.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
/* Phase 7 总览看板KPI — 必须限定在 #finance-panel-overview 内，禁止污染运营报告 */
#finance-panel-overview .ov-kpi-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
#finance-panel-overview .ov-kpi-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
}
.ov-kpi-income::after { background: linear-gradient(90deg, #10b981, #34d399); }
.ov-kpi-expense::after { background: linear-gradient(90deg, #ef4444, #f87171); }
.ov-kpi-profit::after { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ov-kpi-pending::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ov-kpi-ap::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ov-kpi-cash::after { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ov-kpi-asset::after { background: linear-gradient(90deg, #6366f1, #818cf8); }
#finance-panel-overview .ov-kpi-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    border-color: rgba(148, 163, 184, 0.15);
}
#finance-panel-overview .ov-kpi-icon { font-size: 22px; line-height: 1; }
#finance-panel-overview .ov-kpi-body { flex: 1; }
#finance-panel-overview .ov-kpi-label { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
#finance-panel-overview .ov-kpi-value { font-size: 20px; font-weight: 700; color: #e2e8f0; }
#finance-panel-overview .ov-kpi-income .ov-kpi-value { color: #34d399; }
#finance-panel-overview .ov-kpi-expense .ov-kpi-value { color: #f87171; }
#finance-panel-overview .ov-kpi-profit .ov-kpi-value { color: #a78bfa; }
#finance-panel-overview .ov-kpi-pending .ov-kpi-value { color: #fbbf24; }
#finance-panel-overview .ov-kpi-ap .ov-kpi-value { color: #fb923c; }
#finance-panel-overview .ov-kpi-cash .ov-kpi-value { color: #a78bfa; }
#finance-panel-overview .ov-kpi-asset .ov-kpi-value { color: #c084fc; }

/* ── 时间维度切换栏 ── */
.stats-period-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(139,92,246,0.05);
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
#page-finance .period-btn {
    padding: 5px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}
#page-finance .period-btn:hover { border-color: #8b5cf6; color: #a78bfa; }
#page-finance .period-btn.active {
    background: linear-gradient(135deg,#8b5cf6,#6366f1);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* ── 余额条带 ── */
.stats-balance-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.bs-mini-card {
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(139,92,246,0.07);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 8px;
    white-space: nowrap;
}
.bs-mini-card b { color: #a78bfa; }

/* ── 双栏布局（左表右图）── */
.stats-two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    margin-top: 14px;
}
.stats-table-half, .stats-chart-half {
    min-width: 0;
    overflow: hidden;
}
.fin-table-sm { font-size: 13px; }
.fin-table-sm th, .fin-table-sm td { padding: 8px 10px; }

/* ── 全局汇总条 ── */
.stats-global-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 10px;
}
#page-finance .gsum-item {
    font-size: 13px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
}
#page-finance .gsum-item b { color: #a78bfa; }

/* ── 费用摘要芯片 ── */
#page-finance .es-summary-chip {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 20px;
    color: #cbd5e1;
}
#page-finance .es-summary-chip b { color: #a78bfa; }

/* ── 利润表样式 ── */
#page-finance .stats-profit-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
    margin-top: 14px;
}
#page-finance .profit-statement-box {
    background: rgba(30,41,59,0.5);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 12px;
    overflow: hidden;
}
#page-finance .profit-table { width: 100%; border-collapse: collapse; }
#page-finance .profit-table td {
    padding: 10px 16px;
    font-size: 13px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148,163,184,0.08);
}
#page-finance .pt-section td { background: rgba(139,92,246,0.08); font-weight: 600; font-size: 14px; color: #e2e8f0; }
#page-finance .pt-sub td { padding-left: 32px; font-size: 12px; }
#page-finance .pt-total td { background: rgba(167,139,250,0.12); font-size: 14px; }
#page-finance .pt-net td { background: rgba(139,92,246,0.18); }

/* ── 资产负债表双列 ── */
#page-finance .balance-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 14px;
}
.bs-column { display: flex; flex-direction: column; gap: 14px; }
.bs-panel {
    background: rgba(30,41,59,0.5);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 12px;
    overflow: hidden;
}
.bs-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    color: #a78bfa;
    background: rgba(139,92,246,0.08);
    border-bottom: 1px solid rgba(139,92,246,0.12);
}
.bs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 16px;
    font-size: 13px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(148,163,184,0.05);
}
.bs-row:last-child { border-bottom: none; }
.bs-indent { padding-left: 28px; font-size: 12px; }
.bs-highlight {
    background: rgba(139,92,246,0.06) !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
}
.bs-total {
    background: rgba(139,92,246,0.12) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #a78bfa !important;
    border-top: 1px solid rgba(139,92,246,0.2) !important;
}
.bs-verify-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* ── 图表容器通用（仅限财务模块）── */
#page-finance canvas { max-width: 100%; }

/* ── 响应式适配 ── */
@media (max-width: 1100px) {
    .stats-two-col { grid-template-columns: 1fr; }
    .stats-profit-layout { grid-template-columns: 1fr; }
    .balance-sheet-grid { grid-template-columns: 1fr; }
    .stats-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .arap-summary-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .arap-summary-cards { grid-template-columns: 1fr; }
    .stats-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   Phase 6: UI美化增强 — 专业财务系统风格
   ══════════════════════════════════════ */

/* ── 表格斑马纹 + 行悬停增强 ── */
.fin-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.2);
}
.fin-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.04) !important;
    box-shadow: inset 3px 0 0 #8b5cf6;
}
.fin-table tbody tr.selected-row {
    background: rgba(139, 92, 246, 0.12) !important;
    border-left: 3px solid #8b5cf6;
}

/* ── 数字千分位格式化 ── */
.fin-amount, .kpi-value, .arap-card-value,
.bs-row span:last-child, .pt-total td:last-child, .pt-net td:last-child {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

/* ── Loading 骨架屏 ── */
.fin-skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px;
}
.fin-skeleton::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.08), transparent);
    animation: finSkeletonShimmer 1.5s ease infinite;
}
@keyframes finSkeletonShimmer {
    to { left: 100%; }
}

.fin-skeleton-text { height: 16px; margin-bottom: 10px; border-radius: 4px; }
.fin-skeleton-text.short { width: 60%; }
.fin-skeleton-title { height: 22px; width: 40%; margin-bottom: 16px; border-radius: 6px; }
.fin-skeleton-row { height: 48px; margin-bottom: 8px; border-radius: 6px; }

/* ── 全局Loading遮罩 ── */
.fin-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}
.fin-loading-overlay.show { display: flex; }
.fin-spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: finSpin 0.8s linear infinite;
}
@keyframes finSpin {
    to { transform: rotate(360deg); }
}
.fin-loading-text {
    font-size: 14px;
    color: #a78bfa;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ── 操作反馈 Toast 增强 ── */
.fin-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    pointer-events: none;
}
.fin-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    color: var(--text-primary);
    pointer-events: auto;
    animation: finToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}
.fin-toast.fade-out {
    opacity: 0;
    transform: translateX(40px);
}
@keyframes finToastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
.fin-toast-icon { font-size: 18px; flex-shrink: 0; }
.fin-toast-body { flex: 1; }
.fin-toast-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.fin-toast-msg { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.fin-toast-success { border-left: 3px solid #10b981; }
.fin-toast-error { border-left: 3px solid #ef4444; }
.fin-toast-warning { border-left: 3px solid #f59e0b; }
.fin-toast-info { border-left: 3px solid #60a5fa; }

/* ── KPI 卡片数值动画（仅限财务模块内，防止污染运营报告）── */
#page-finance .kpi-value {
    transition: color 0.4s ease;
}
#page-finance .kpi-card {
    position: relative;
    overflow: hidden;
}
#page-finance .kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
#page-finance .kpi-card:hover::before { opacity: 1; }

/* ── 按钮禁用状态视觉增强（仅限财务模块内）── */
.fin-btn-save:disabled,
#page-finance button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}
#page-finance button:disabled::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: btnDisabledShimmer 2s ease infinite;
}
@keyframes btnDisabledShimmer {
    to { left: 200%; }
}

/* ── 空数据状态增强 ── */
.fin-empty-enhanced {
    text-align: center;
    padding: 56px 40px;
    color: #64748b;
}
.fin-empty-enhanced-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: 0.4;
    filter: grayscale(0.5);
}
.fin-empty-enhanced-title {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}
.fin-empty-enhanced-hint {
    font-size: 13px;
    opacity: 0.65;
    line-height: 1.6;
}
.fin-empty-action {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.08);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.fin-empty-action:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.55);
    color: #c4b5fd;
    transform: translateY(-1px);
}

/* ── 表单字段校验状态增强 ── */
.fin-form-input.validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
    animation: fieldShake 0.4s ease;
}
.fin-form-input.validation-warning {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}
.fin-form-input.validation-success {
    border-color: #10b981 !important;
}
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* 校验提示气泡 */
.fin-validation-tooltip {
    position: absolute;
    top: 100%; left: 0; margin-top: 4px;
    padding: 6px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 11px;
    color: #f87171;
    white-space: nowrap;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: tooltipFadeIn 0.2s ease;
}
.fin-validation-tooltip::before {
    content: '';
    position: absolute;
    top: -5px; left: 20px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #334155;
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── 工具栏分隔线 ── */
.fin-toolbar::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.06);
    margin-top: 12px;
}

/* ── 分页按钮增强 ── */
#page-finance #bc-pagination button,
#page-finance #arap-pagination button,
#page-finance #card-pagination button,
#page-finance #ast-pagination button,
#page-finance #ledger-pagination button,
#page-finance [id$="-pagination"] button {
    min-width: 36px;
    transition: all 0.18s ease;
}
#page-finance [id$="-pagination"] button:not([disabled]):hover {
    border-color: #8b5cf6;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.08);
}

/* ── 打印样式优化 ── */
@media print {
    body * { visibility: hidden; }
    .fin-print-area, .fin-print-area * { visibility: visible; }
    .fin-print-area {
        position: absolute;
        left: 0; top: 0; width: 100%;
        padding: 20px;
        background: #fff !important;
        color: #000 !important;
    }
    .fin-print-area .fin-toolbar,
    .fin-print-area .fin-filters,
    .fin-print-area .fin-pagination-info,
    [ id$="-pagination"] { display: none !important; }
    .fin-print-area table { min-width: auto !important; }
}

/* ── 高亮闪烁动画（用于数据更新提示）── */
@keyframes finFlashUpdate {
    0% { background: rgba(139, 92, 246, 0.2); }
    100% { background: transparent; }
}
.fin-flash-update {
    animation: finFlashUpdate 1s ease-out;
}

/* ── 统计面板卡片阴影层次 ── */
.stats-kpi-grid .kpi-card {
    position: relative;
    overflow: hidden;
}
.stats-kpi-grid .kpi-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
}
.stats-kpi-grid .kpi-card:nth-child(1)::after { background: linear-gradient(90deg, #10b981, #34d399); }
.stats-kpi-grid .kpi-card:nth-child(2)::after { background: linear-gradient(90deg, #ef4444, #f87171); }
.stats-kpi-grid .kpi-card:nth-child(3)::after { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.stats-kpi-grid .kpi-card:nth-child(4)::after { background: linear-gradient(90deg, #fb923c, #f59e0b); }
.stats-kpi-grid .kpi-card:nth-child(5)::after { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.stats-kpi-grid .kpi-card:nth-child(6)::after { background: linear-gradient(90deg, #c084fc, #a855f7); }

/* ── 图表容器内边距统一 ── */
.stats-chart-half > div[style*="height"] {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
}

/* ── 资产负债表平衡/不平衡状态强化 ── */
.bs-verify-bar.balanced-ok {
    border-color: rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.06) !important;
}
.bs-verify-bar.balanced-error {
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

/* ══════════════════════════════════════════════════════════════
   Phase 7: 财务总览看板（Overview Dashboard）
   磨砂玻璃暗系商务风格 · 4行全屏分层排版
   ══════════════════════════════════════════════════════════════ */

/* ── 全屏容器覆盖 ── */
#finance-panel-overview .finance-content,
#finance-panel-overview {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── 通用行容器：flex 全宽铺满 ── */
.ov-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

/* ═══ 第1行：6张KPI指标卡片 ═══ */
.ov-row-kpi {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

/* ── 总览日期筛选栏 ── */
.ov-date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}
.ov-date-input {
    width: 120px;
    padding: 6px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
    cursor: pointer;
}
.ov-date-input:focus { border-color: rgba(139,92,246,0.4); }

.ov-kpi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease;
    overflow: hidden;
}

.ov-kpi-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35), inset 0 1px 0 var(--glass-highlight);
}
.ov-kpi-icon-wrap {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 20px;
}
.ov-kpi-income .ov-kpi-icon-wrap { background: rgba(16,185,129,0.12); }
.ov-kpi-expense .ov-kpi-icon-wrap { background: rgba(239,68,68,0.12); }
.ov-kpi-profit .ov-kpi-icon-wrap { background: rgba(139,92,246,0.12); }
.ov-kpi-pending .ov-kpi-icon-wrap { background: rgba(245,158,11,0.12); }
.ov-kpi-ap .ov-kpi-icon-wrap { background: rgba(245,158,11,0.12); }
.ov-kpi-cash .ov-kpi-icon-wrap { background: rgba(139,92,246,0.12); }
.ov-kpi-asset .ov-kpi-icon-wrap { background: rgba(99,102,241,0.12); }

.ov-kpi-body { flex: 1; min-width: 0; }
.ov-kpi-label {
    font-size: 11px; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.7px;
    font-weight: 600; margin-bottom: 4px;
}
.ov-kpi-value {
    font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
    line-height: 1.2; font-variant-numeric: tabular-nums;
}
.ov-kpi-income .ov-kpi-value { color: #34d399; }
.ov-kpi-expense .ov-kpi-value { color: #f87171; }
.ov-kpi-profit .ov-kpi-value { color: #a78bfa; }
.ov-kpi-pending .ov-kpi-value { color: #fbbf24; }
.ov-kpi-ap .ov-kpi-value { color: #fbbf24; }
.ov-kpi-cash .ov-kpi-value { color: #a78bfa; }
.ov-kpi-asset .ov-kpi-value { color: #c084fc; }

.ov-kpi-trend {
    display: flex; align-items: center; gap: 4px;
    margin-top: 4px; font-size: 11px; font-weight: 600;
}
.ov-kpi-trend .ov-trend-arrow { font-size: 12px; }
.ov-kpi-trend .ov-trend-pct { font-variant-numeric: tabular-nums; }
.ov-trend-up { color: #34d399; }
.ov-trend-down { color: #f87171; }
.ov-trend-flat { color: #64748b; }

/* ═══ 第2行：趋势图 + 费用占比环形图 (左60% 右40%) ═══ */
.ov-row-charts-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }

/* ═══ 第3行：TOP排行 + 利润趋势 (各50%) ═══ */
.ov-row-charts-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══ 第4行：快捷入口(30%) + 最近单据(70%) ═══ */
.ov-row-bottom { display: grid; grid-template-columns: 28fr 72fr; gap: 16px; }

/* ── 通用卡片容器（磨砂玻璃）── */
.ov-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ov-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; flex-shrink: 0;
}
.ov-card-title {
    margin: 0; font-size: 14px; font-weight: 700;
    color: var(--text-primary); letter-spacing: 0.3px;
}

/* ── 图表区域 ── */
.ov-chart-area {
    position: relative; flex: 1;
    min-height: 240px; width: 100%;
}
.ov-chart-left .ov-chart-area { min-height: 280px; }
.ov-donut-area { min-height: 260px; display: flex; align-items: center; justify-content: center; }
.ov-chart-half .ov-chart-area { min-height: 260px; }

/* ── 时间维度切换按钮组 ── */
.ov-period-group {
    display: flex; gap: 4px;
    padding: 3px;
    background: rgba(139,92,246,0.06);
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 10px;
}
.ov-period-btn {
    padding: 4px 14px;
    border: none; border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
    font-family: inherit;
}
.ov-period-btn:hover { color: #a78bfa; background: rgba(139,92,246,0.08); }
.ov-period-btn.active {
    background: linear-gradient(135deg,#8b5cf6,#6366f1);
    color: #fff; box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}

/* ── 往来单位双栏排行 ── */
.ov-dual-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 100%;
}
.ov-bar-col { display: flex; flex-direction: column; gap: 6px; }
.ov-bar-subtitle {
    font-size: 12px; font-weight: 700; padding: 4px 10px;
    border-radius: 6px; letter-spacing: 0.3px;
}
.ov-color-ar { background: rgba(16,185,129,0.1); color: #34d399; }
.ov-color-ap { background: rgba(239,68,68,0.1); color: #f87171; }
.ov-bar-col .ov-chart-area { min-height: 200px; }

/* ── 快捷功能入口网格 (2列3行) ── */
.ov-quick-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.ov-quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit;
}
.ov-quick-btn:hover {
    border-color: rgba(139,92,246,0.25);
    background: rgba(139,92,246,0.08);
    color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.ov-quick-btn:active { transform: translateY(0); }
.ov-quick-icon { font-size: 18px; flex-shrink: 0; }

/* ── 最近单据列表 ── */
.ov-recent-list-wrap { display: flex; flex-direction: column; overflow: hidden; }
.ov-more-link {
    padding: 4px 12px; border: none; border-radius: 6px;
    background: rgba(139,92,246,0.08);
    color: #a78bfa; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.ov-more-link:hover { background: rgba(139,92,246,0.18); color: #c4b5fd; }

.ov-table-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    max-height: 320px;
}
.ov-recent-table { margin: 0; min-width: auto; }
.ov-recent-table th { font-size: 11px; padding: 9px 10px; }
.ov-recent-table td { font-size: 12px; padding: 9px 10px; }

/* ═══ 响应式适配 ═══ */
@media (max-width: 1400px) {
    .ov-row-kpi { grid-template-columns: repeat(3, 1fr); }
    .ov-row-charts-top { grid-template-columns: 1fr 1fr; }
    .ov-row-bottom { grid-template-columns: 1fr 1.8fr; }
}
@media (max-width: 1100px) {
    .ov-row-kpi { grid-template-columns: repeat(2, 1fr); }
    .ov-row-charts-top { grid-template-columns: 1fr; }
    .ov-row-charts-mid { grid-template-columns: 1fr; }
    .ov-row-bottom { grid-template-columns: 1fr; }
    .ov-dual-bar { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .ov-row-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ov-kpi-card { padding: 14px 12px; }
    .ov-kpi-value { font-size: 17px; }
    .ov-quick-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   单据详情模态框 — Phase 8 全量重构
   磨砂玻璃暗系商务风格 · 6模块分层排版 · 强制对齐铁律
   ══════════════════════════════════════════════════════════════ */

/* ── 模态框容器强制规范 ── */
#fin-detail-modal .um-modal-lg {
    width: 800px;
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 16px;
}
#fin-detail-modal .um-modal {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── 模态框头部（模块1：标题+编号+状态）── */
#fin-detail-modal .um-modal-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fdm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.fdm-title-side {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fdm-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.12));
    color: #60a5fa;
    font-size: 17px;
    flex-shrink: 0;
}
.fdm-doc-no {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
/* 状态标签 — 复用 fin-status-badge 但增强 */
#fin-detail-modal .fin-status-badge {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ── 模态框主体内容区 ── */
#fin-detail-modal .um-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ── 模块2：审批流程节点区 ── */
#fin-detail-modal .approval-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 22px 24px;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
#fin-detail-modal .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}
/* 节点图标 — 统一尺寸，杜绝大小不一 */
#fin-detail-modal .step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    background: rgba(100, 116, 139, 0.18);
    color: #64748b;
    border: 2px solid #334155;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
/* 已完成节点 */
#fin-detail-modal .step-item.done .step-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
/* 当前活跃节点 */
#fin-detail-modal .step-item.active .step-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
    animation: fdmStepPulse 2s ease infinite;
}
@keyframes fdmStepPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(139, 92, 246, 0.35); }
    50% { box-shadow: 0 0 22px rgba(139, 92, 246, 0.55); }
}
/* 未到达节点 */
#fin-detail-modal .step-item.pending .step-icon {
    background: transparent;
    color: #475569;
    border-color: #334155;
}
/* 节点文字标签 — 统一字号行高 */
#fin-detail-modal .step-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.3;
}
#fin-detail-modal .step-item.done .step-label { color: #10b981; }
#fin-detail-modal .step-item.active .step-label { color: #a78bfa; font-weight: 700; }
#fin-detail-modal .step-item.pending .step-label { color: #475569; }

/* 连接线 — 和图标垂直居中对齐 */
#fin-detail-modal .step-connector {
    height: 2px;
    flex: 1;
    min-width: 24px;
    max-width: 80px;
    background: #334155;
    margin: 0 4px;
    margin-top: 17px; /* = 36px/2 + 1px(line/2) ≈ 图标垂直中心 */
    transition: background 0.3s ease;
    border-radius: 1px;
}
#fin-detail-modal .step-connector.done {
    background: linear-gradient(90deg, #10b981, #8b5cf6);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
}

/* ── 模块3 & 4：核心信息 / 时间信息区 — 2列网格强制对齐 ── */
.fdm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 20px;
    width: 100%;
    margin-bottom: 24px;
}
.fdm-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.fdm-field.full-width {
    grid-column: 1 / -1;
}
.fdm-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.2px;
    text-transform: none;
}
.fdm-value {
    font-size: 16px;
    color: #f1f5f9;
    font-weight: 500;
    line-height: 24px;
    word-break: break-word;
}
/* 金额字段特殊样式 */
.fdm-value.amount-highlight {
    font-size: 18px;
    font-weight: 800;
    color: #34d399;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}
.fdm-value.amount-negative {
    color: #f87171;
}

/* 分隔线 */
.fdm-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.1);
    margin: 0 0 24px 0;
    border: none;
}

/* ── 模块5：操作日志区 ── */
.fdm-log-section {
    margin-top: 0;
}
.fdm-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fdm-log-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.2px;
}
.fdm-log-icon {
    font-size: 17px;
    flex-shrink: 0;
}
.fdm-log-count {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    white-space: nowrap;
}

/* 日志时间线容器 */
#fin-detail-modal .log-timeline {
    padding: 0;
    position: relative;
}
#fin-detail-modal .log-entry {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    position: relative;
}
#fin-detail-modal .log-entry + .log-entry {
    border-top: 1px solid rgba(51, 65, 85, 0.2);
    padding-top: 16px;
    margin-top: 0;
}
/* 日志圆点 — 固定尺寸 */
#fin-detail-modal .log-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #64748b;
    border: 2px solid rgba(100, 116, 139, 0.3);
    flex-shrink: 0;
    margin-top: 5px;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: center;
}
#fin-detail-modal .log-entry:first-child .log-dot {
    background: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}
/* 日志主体 — 中间列 */
#fin-detail-modal .log-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    grid-column: 2;
}
#fin-detail-modal .log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
#fin-detail-modal .log-action {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(100, 116, 139, 0.15);
    white-space: nowrap;
}
#fin-detail-modal .log-transition {
    font-size: 12px;
    color: var(--text-secondary);
}
#fin-detail-modal .log-from { color: #94a3b8; text-decoration: line-through; }
#fin-detail-modal .log-to { color: #34d399; font-weight: 600; }
/* 日志元信息 */
#fin-detail-modal .log-meta {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
    padding-left: 2px;
}
/* 日志时间 — 第三列固定宽度右对齐 */
#fin-detail-modal .log-time {
    font-size: 13px;
    color: #64748b;
    font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
    white-space: nowrap;
    text-align: right;
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    padding-top: 3px;
    min-width: 150px;
}

/* ── 模块6：底部按钮区 ── */
#fin-detail-modal .fin-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
#fin-detail-modal .fin-btn-cancel {
    padding: 9px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* ── 详情模态框底部审批按钮样式 ── */
.fdm-btn {
    padding: 9px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.fdm-btn:active { transform: scale(0.97); }

.fdm-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}
.fdm-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.fdm-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.fdm-btn-success:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.fdm-btn-danger-outline {
    background: transparent;
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.35);
}
.fdm-btn-danger-outline:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.5);
}

.fdm-btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.fdm-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.35);
}

.fdm-btn-ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
}
.fdm-btn-ghost:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

/* ── 关闭按钮增强 ── */
#fin-detail-modal .um-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    border: none;
}
#fin-detail-modal .um-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ── 响应式适配 ── */
@media (max-width: 900px) {
    #fin-detail-modal .um-modal-lg {
        width: 95vw;
        max-height: 88vh;
    }
    #fin-detail-modal .um-modal-header,
    #fin-detail-modal .um-modal-body,
    #fin-detail-modal .fin-modal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    .fdm-info-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
        row-gap: 18px;
    }
    #fin-detail-modal .approval-stepper {
        padding: 18px 16px;
    }
    #fin-detail-modal .step-icon { width: 32px; height: 32px; font-size: 14px; }
    #fin-detail-modal .step-label { font-size: 11px; }
    #fin-detail-modal .log-entry {
        grid-template-columns: 28px 1fr auto;
        gap: 10px;
    }
    #fin-detail-modal .log-time { min-width: 120px; font-size: 12px; }
}
@media (max-width: 600px) {
    #fin-detail-modal .um-modal-lg { width: 100vw; border-radius: 12px; max-height: 92vh; }
    .fdm-info-grid { grid-template-columns: 1fr; column-gap: 0; }
    .fdm-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    #fin-detail-modal .approval-stepper { padding: 14px 10px; }
    #fin-detail-modal .step-icon { width: 28px; height: 28px; font-size: 13px; }
    #fin-detail-modal .log-entry { grid-template-columns: 26px 1fr; }
    #fin-detail-modal .log-time {
        grid-column: 2;
        justify-content: flex-start;
        text-align: left;
        margin-top: 4px;
        min-width: auto;
    }
}

/* ══════════════════════════════════════════════════════════════
   Phase 9: 统一组件 — 分页 / 空状态 / 弹窗基座 / 面板补全
   ══════════════════════════════════════════════════════════════ */

/* ── 统一分页容器（替代 7+ 处 inline style）── */
.fin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

/* ── 统一分页按钮 ── */
.fin-page-btn {
    padding: 4px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
    line-height: 1.4;
}
.fin-page-btn:hover:not([disabled]) {
    border-color: #8b5cf6;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.08);
}
.fin-page-btn.active {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.fin-page-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.fin-page-info-inline {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 8px;
    white-space: nowrap;
}

/* ── 统一空状态（替代各处简陋 emoji+文字 inline style）── */
.fin-empty-inline {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
}
.fin-empty-inline-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
    line-height: 1;
}
.fin-empty-inline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.fin-empty-inline-hint {
    font-size: 12px;
    opacity: 0.6;
}

/* ── 表格右对齐文字 ── */
.fin-td-right {
    text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   PartnerManager 面板 & 弹窗
   ══════════════════════════════════════════════════════════════ */

.pm-search-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.pm-btn-query {
    padding: 7px 18px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.pm-btn-query:hover { background: #2563eb; box-shadow: 0 3px 12px rgba(59,130,246,0.3); }

.pm-btn-create {
    padding: 7px 18px;
    border: none;
    border-radius: 8px;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.pm-btn-create:hover { background: #059669; box-shadow: 0 3px 12px rgba(16,185,129,0.3); }

.pm-btn-ghost {
    padding: 7px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.pm-btn-ghost:hover { color: var(--text-primary); background: var(--glass-bg-hover); }
.pm-btn-ghost.pm-btn-danger { color: #ef4444; border-color: rgba(239,68,68,0.3); }
.pm-btn-ghost.pm-btn-danger:hover { background: rgba(239,68,68,0.1); color: #f87171; }

.pm-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.3);
}

.pm-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.pm-type-customer { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.pm-type-supplier { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.pm-type-other { background: rgba(107,114,128,0.12); color: #9ca3af; border: 1px solid rgba(107,114,128,0.15); }

.pm-cell-name { font-weight: 600; color: var(--text-primary); }
.pm-cell-addr { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pm-actions-cell {
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* ── PartnerManager 弹窗 ── */
.pm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: financeFadeIn 0.2s ease;
}

.pm-modal-box {
    width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 1px rgba(139, 92, 246, 0.15);
    padding: 24px;
}

.pm-modal-header {
    font-size: 17px;
    color: var(--text-primary);
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pm-modal-close {
    cursor: pointer;
    font-size: 22px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
    line-height: 1;
}
.pm-modal-close:hover { background: rgba(239,68,68,0.12); color: #f87171; }

.pm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════════
   RejectDialog 驳回弹窗
   ══════════════════════════════════════════════════════════════ */

.reject-modal-box {
    width: 480px;
    padding: 28px;
}

.reject-modal-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reject-modal-icon {
    color: #fb923c;
    font-size: 22px;
}
.reject-modal-doc {
    color: #a78bfa;
}

.reject-modal-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}
.reject-modal-label .required { color: #ef4444; }

.reject-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}
.reject-textarea:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15);
}
.reject-textarea.validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.reject-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.reject-btn-confirm {
    padding: 9px 28px;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.reject-btn-confirm:hover { background: #dc2626; box-shadow: 0 4px 14px rgba(239,68,68,0.35); }

/* ══════════════════════════════════════════════════════════════
   ArapLedgerModal 台账明细弹窗
   ══════════════════════════════════════════════════════════════ */

.arap-ledger-box {
    width: 900px;
    max-width: 94vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 1px rgba(139, 92, 246, 0.15);
}

.arap-ledger-header {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.arap-ledger-name {
    color: #a78bfa;
}
.arap-ledger-close {
    margin-left: auto;
    padding: 4px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.15s;
}
.arap-ledger-close:hover { color: var(--text-primary); background: var(--glass-bg-hover); }

.arap-ledger-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-end;
}
.arap-ledger-filters .fin-filter-group { margin: 0; }

.arap-ledger-direction {
    color: #a78bfa;
    font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════
   AssetVoucherForm 资产单据弹窗
   ══════════════════════════════════════════════════════════════ */

.avf-modal-box {
    width: 560px;
    max-width: 94vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 1px rgba(139, 92, 246, 0.15);
}

.avf-modal-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.avf-modal-icon {
    color: #a78bfa;
    font-size: 20px;
}

.avf-section-box {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.avf-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 10px;
}

.avf-field-block {
    margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════════════
   AssetCardPanel 编辑弹窗
   ══════════════════════════════════════════════════════════════ */

.ace-modal-box {
    width: 560px;
    padding: 24px;
}

.ace-modal-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ace-modal-title-icon {
    color: #a78bfa;
    font-size: 20px;
}

/* ══════════════════════════════════════════════════════════════
   ReconPanel 对账面板
   ══════════════════════════════════════════════════════════════ */

.recon-container {
    padding: 20px;
}

.recon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.recon-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recon-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.recon-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.recon-select:focus { border-color: #8b5cf6; }
.recon-select option { background: #1e293b; color: var(--text-primary); }

.recon-btn-import {
    padding: 8px 16px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.recon-btn-import:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border-color: transparent;
}

.recon-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.recon-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.recon-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.3);
}
.recon-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.recon-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 11.5px;
    color: #a78bfa;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    white-space: nowrap;
}
.recon-table td {
    padding: 10px 14px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.recon-table tbody tr:hover { background: var(--glass-bg-hover); }
.recon-table tbody tr:last-child { border-bottom: none; }

.recon-amount-matched { color: #10b981; }
.recon-amount-unmatched { color: #ef4444; }
.recon-amount-diff { color: #f59e0b; }

.recon-btn-view, .recon-btn-delete {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.recon-btn-view:hover { color: var(--text-primary); background: var(--glass-bg-hover); }
.recon-btn-delete:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); }

.recon-detail-section {
    margin-top: 16px;
}
.recon-detail-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.recon-btn-rematch {
    margin-left: 12px;
    font-size: 12px;
    padding: 6px 14px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.08);
    color: #a78bfa;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.recon-btn-rematch:hover { background: rgba(139, 92, 246, 0.18); }

.recon-status-matched { color: #10b981; font-weight: 600; }
.recon-status-diff { color: #f59e0b; font-weight: 600; }
.recon-status-unmatched { color: #ef4444; font-weight: 600; }

/* ── 重构版对账面板（v2） ── */
.recon-page { padding: 0; }

/* 统计卡片行 */
.recon-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-bottom: 20px;
}
.recon-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: all 0.2s;
}
.recon-stat-card:hover { border-color: rgba(139,92,246,0.25); transform: translateY(-1px); }
.recon-stat-icon { font-size: 24px; line-height: 1; }
.recon-stat-info { display: flex; flex-direction: column; gap: 2px; }
.recon-stat-label { font-size: 12px; color: #94a3b8; }
.recon-stat-value { font-size: 20px; font-weight: 700; color: var(--text-primary); }

/* 平台标签 */
.recon-table th { font-size: 12px; text-transform: none; letter-spacing: 0; }
.recon-platform-tag {
    display: inline-block;
    padding: 2px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 500;
    background: rgba(139,92,246,0.12); color: #a78bfa;
}

/* 导入按钮 */
.btn-import {
    display: inline-flex; align-items: center;
    padding: 8px 18px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: all 0.2s;
}
.btn-import:hover { background: linear-gradient(135deg, #9b6dff, #8b4dff); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,92,246,0.3); }

/* 明细卡片 */
.recon-detail-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 16px 20px;
}
.recon-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; border-bottom: 1px solid var(--glass-border);
}

/* 状态标签 */
.recon-status-ok {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    background: rgba(16,185,129,0.12); color: #10b981;
    font-size: 12px; font-weight: 600;
}
.recon-status-warn {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    background: rgba(245,158,11,0.12); color: #f59e0b;
    font-size: 12px; font-weight: 600;
}
.recon-status-err {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    background: rgba(239,68,68,0.12); color: #ef4444;
    font-size: 12px; font-weight: 600;
}
.recon-badge-ok { font-weight: 600; color: #10b981; }
.recon-badge-warn { font-weight: 600; color: #f59e0b; }

.recon-order-no {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12px;
}

/* 对账面板响应式 */
@media (max-width: 768px) {
    .recon-stats-row { grid-template-columns: repeat(2, 1fr); }
    .recon-detail-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .recon-table { font-size: 11px; }
}

.recon-error {
    color: #ef4444;
    padding: 12px;
    text-align: center;
}

/* ── 审批设置 切换开关 ── */
.toggle-switch {
    position: relative; display: inline-block; width: 44px; height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #334155; border-radius: 24px;
    transition: all 0.2s;
}
.toggle-slider::before {
    content: ''; position: absolute;
    left: 3px; top: 3px; width: 18px; height: 18px;
    background: #94a3b8; border-radius: 50%;
    transition: all 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(139,92,246,0.3); }
.toggle-switch input:checked + .toggle-slider::before {
    background: #a78bfa;
    transform: translateX(20px);
}
