663 lines
10 KiB
CSS
663 lines
10 KiB
CSS
.finance-dashboard-page {
|
|
padding: 0 4px 32px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
/* ================= 头部 Header & 筛选栏 ================= */
|
|
.dashboard-header {
|
|
background: #ffffff;
|
|
border-radius: 16px;
|
|
padding: 24px 28px;
|
|
box-shadow:
|
|
0 1px 3px rgba(15, 23, 42, 0.04),
|
|
0 4px 12px rgba(15, 23, 42, 0.02);
|
|
border: 1px solid rgba(226, 232, 240, 0.8);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header-main {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.title-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.eyebrow-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.8px;
|
|
color: #4f46e5;
|
|
background: #eef2ff;
|
|
padding: 3px 10px;
|
|
border-radius: 20px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.page-title {
|
|
margin: 0;
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
color: #0f172a;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.page-subtitle {
|
|
margin: 0;
|
|
font-size: 13.5px;
|
|
color: #64748b;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.header-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.meta-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12.5px;
|
|
color: #64748b;
|
|
background: #f8fafc;
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.filter-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
padding-top: 16px;
|
|
border-top: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.preset-buttons {
|
|
display: inline-flex;
|
|
background: #f1f5f9;
|
|
padding: 3px;
|
|
border-radius: 10px;
|
|
gap: 2px;
|
|
}
|
|
|
|
.preset-btn {
|
|
border: none;
|
|
background: transparent;
|
|
padding: 6px 14px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: #64748b;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.preset-btn:hover {
|
|
color: #1e293b;
|
|
}
|
|
|
|
.preset-btn.active {
|
|
background: #ffffff;
|
|
color: #4f46e5;
|
|
font-weight: 600;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.date-picker-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.date-input {
|
|
width: 140px;
|
|
}
|
|
|
|
.date-separator {
|
|
color: #94a3b8;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* ================= 核心 Hero KPI 卡片 ================= */
|
|
.hero-kpi-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.hero-card {
|
|
background: #ffffff;
|
|
border-radius: 16px;
|
|
padding: 20px 22px;
|
|
border: 1px solid rgba(226, 232, 240, 0.8);
|
|
box-shadow:
|
|
0 1px 3px rgba(15, 23, 42, 0.04),
|
|
0 4px 12px rgba(15, 23, 42, 0.02);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition:
|
|
transform 0.2s ease,
|
|
box-shadow 0.2s ease;
|
|
}
|
|
|
|
.hero-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
|
}
|
|
|
|
.hero-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
}
|
|
|
|
.hero-card--flow::before {
|
|
background: linear-gradient(90deg, #3b82f6, #60a5fa);
|
|
}
|
|
|
|
.hero-card--profit::before {
|
|
background: linear-gradient(90deg, #10b981, #34d399);
|
|
}
|
|
|
|
.hero-card--net::before {
|
|
background: linear-gradient(90deg, #06b6d4, #22d3ee);
|
|
}
|
|
|
|
.hero-card--outflow::before {
|
|
background: linear-gradient(90deg, #8b5cf6, #a78bfa);
|
|
}
|
|
|
|
.hero-card--risk::before {
|
|
background: linear-gradient(90deg, #f59e0b, #fbbf24);
|
|
}
|
|
|
|
.hero-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.hero-icon-box {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.hero-card--flow .hero-icon-box {
|
|
background: #eff6ff;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.hero-card--profit .hero-icon-box {
|
|
background: #ecfdf5;
|
|
color: #10b981;
|
|
}
|
|
|
|
.hero-card--net .hero-icon-box {
|
|
background: #ecfeff;
|
|
color: #06b6d4;
|
|
}
|
|
|
|
.hero-card--outflow .hero-icon-box {
|
|
background: #f5f3ff;
|
|
color: #8b5cf6;
|
|
}
|
|
|
|
.hero-card--risk .hero-icon-box {
|
|
background: #fffbeb;
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.hero-label {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
}
|
|
|
|
.hero-value {
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
color: #0f172a;
|
|
margin: 12px 0 10px;
|
|
letter-spacing: -0.5px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.diff-value.danger {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.diff-value.success {
|
|
color: #10b981;
|
|
}
|
|
|
|
.hero-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.hero-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.hero-pill.success {
|
|
background: #f0fdf4;
|
|
color: #15803d;
|
|
}
|
|
|
|
.hero-pill.emerald {
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
}
|
|
|
|
.hero-pill.teal {
|
|
background: #f0fdfa;
|
|
color: #0f766e;
|
|
}
|
|
|
|
.hero-pill.purple {
|
|
background: #f5f3ff;
|
|
color: #6d28d9;
|
|
}
|
|
|
|
.hero-pill.warning {
|
|
background: #fffbeb;
|
|
color: #b45309;
|
|
}
|
|
|
|
.hero-pill.danger {
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.hero-pill.neutral {
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
}
|
|
|
|
.hero-note {
|
|
color: #94a3b8;
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
/* ================= 模块化 Section 卡片 ================= */
|
|
.dashboard-sections {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.section-container {
|
|
background: #ffffff;
|
|
border-radius: 16px;
|
|
padding: 24px;
|
|
border: 1px solid rgba(226, 232, 240, 0.8);
|
|
box-shadow:
|
|
0 1px 3px rgba(15, 23, 42, 0.04),
|
|
0 4px 12px rgba(15, 23, 42, 0.02);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.section-title-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.section-badge {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.section-badge.primary {
|
|
background: #eff6ff;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.section-badge.teal {
|
|
background: #f0fdfa;
|
|
color: #0d9488;
|
|
}
|
|
|
|
.section-badge.blue {
|
|
background: #eff6ff;
|
|
color: #2563eb;
|
|
}
|
|
|
|
.section-badge.purple {
|
|
background: #f5f3ff;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.section-badge.indigo {
|
|
background: #eef2ff;
|
|
color: #4f46e5;
|
|
}
|
|
|
|
.section-title {
|
|
margin: 0;
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.section-desc {
|
|
margin: 3px 0 0;
|
|
font-size: 12.5px;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* 子指标网格 */
|
|
.sub-metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.sub-metric-grid.cols-2 {
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
}
|
|
|
|
.sub-metric-grid.cols-3 {
|
|
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
|
}
|
|
|
|
.sub-card {
|
|
background: #f8fafc;
|
|
border-radius: 12px;
|
|
padding: 16px 18px;
|
|
border: 1px solid #f1f5f9;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.sub-card:hover {
|
|
background: #f1f5f9;
|
|
border-color: #e2e8f0;
|
|
}
|
|
|
|
.sub-card.highlight-pending {
|
|
background: #fffbeb;
|
|
border-color: #fef3c7;
|
|
}
|
|
|
|
.sub-card-label {
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
color: #64748b;
|
|
}
|
|
|
|
.sub-card-value {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.sub-card-sub {
|
|
font-size: 11.5px;
|
|
color: #64748b;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.dot-sep {
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
.danger-text {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.warning-text {
|
|
color: #d97706;
|
|
}
|
|
|
|
.success-text {
|
|
color: #10b981;
|
|
}
|
|
|
|
.emerald-text {
|
|
color: #059669;
|
|
}
|
|
|
|
.orange-text {
|
|
color: #ea580c;
|
|
}
|
|
|
|
.primary-text {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
/* 出款区域两栏布局 */
|
|
.disbursement-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.disbursement-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.disbursement-subgroup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.subgroup-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: #334155;
|
|
}
|
|
|
|
.status-indicator {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.success-dot {
|
|
background: #10b981;
|
|
}
|
|
|
|
.warning-dot {
|
|
background: #f59e0b;
|
|
}
|
|
|
|
/* 专项分部卡片 */
|
|
.segments-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.segments-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ================= 每日明细表格美化 ================= */
|
|
.table-container {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.table-section-header {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.record-badge {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #4f46e5;
|
|
background: #eef2ff;
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.table-wrapper {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.custom-finance-table :deep(.el-table__header-wrapper th) {
|
|
background-color: #f8fafc !important;
|
|
color: #475569;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.custom-finance-table :deep(.el-table__body-wrapper td) {
|
|
padding: 14px 0;
|
|
font-size: 13px;
|
|
color: #334155;
|
|
}
|
|
|
|
.date-cell {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.amount-cell {
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.profit-cell {
|
|
color: #059669;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.flow-cell {
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.refund-cell {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.outflow-cell {
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.expense-cell {
|
|
color: #d97706;
|
|
}
|
|
|
|
.count-pill {
|
|
display: inline-block;
|
|
min-width: 24px;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.count-pill.primary-pill {
|
|
background: #eef2ff;
|
|
color: #4f46e5;
|
|
}
|
|
|
|
.refund-cancel-tag-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.mini-tag {
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mini-tag.refund-tag {
|
|
background: #fef2f2;
|
|
color: #dc2626;
|
|
border: 1px solid #fee2e2;
|
|
}
|
|
|
|
.mini-tag.cancel-tag {
|
|
background: #fffbeb;
|
|
color: #b45309;
|
|
border: 1px solid #fef3c7;
|
|
}
|
|
|
|
.mini-tag.muted-tag {
|
|
background: #f8fafc;
|
|
color: #94a3b8;
|
|
}
|