feat(web): 采用 UI UX Pro Max Soft UI Evolution 设计系统

从 Pinterest 风格切换到 Soft UI Evolution 设计系统,使用 UI UX Pro Max
推理引擎生成适合跨行业 ERP 业务用户的专业设计方案。

设计变更:
- 主色从 Pinterest Red (#e60023) 切换到 Trust Blue (#2563EB)
- 字体从系统默认切换到 Noto Sans SC(中文优先)
- 圆角从 16-20px 调整到 10-12px(专业但不夸张)
- 中性色从暖橄榄调切换到 Slate 石板蓝调
- 成功色 #103c25 → #059669,警告色 #b56e1a → #d97706
- 暗色模式从暖黑 (#1a1a18) 切换到深海军蓝 (#0f172a)

涉及文件:DESIGN.md + index.css + App.tsx + 24 个组件文件
This commit is contained in:
iven
2026-04-20 23:27:24 +08:00
parent 85e732cf12
commit 89fc482d99
27 changed files with 598 additions and 588 deletions

View File

@@ -2,65 +2,66 @@
/* ====================================================================
* ERP Platform — Design System Tokens & Global Styles
* Inspired by Pinterest: warm discovery, red accent, generous radius
* Soft UI Evolution: Professional, warm, accessible for all industries
* Generated by UI UX Pro Max
* ==================================================================== */
/* --- Design Tokens (CSS Custom Properties) --- */
:root {
/* Primary Palette — Pinterest Red */
--erp-primary: #e60023;
--erp-primary-hover: #ad081b;
--erp-primary-active: #9e0a0a;
--erp-primary-light: #fef0f0;
--erp-primary-light-hover: #fddbdb;
--erp-primary-bg-subtle: #fef0f0;
/* Primary Palette — Trust Blue */
--erp-primary: #2563eb;
--erp-primary-hover: #1d4ed8;
--erp-primary-active: #1e40af;
--erp-primary-light: #eff6ff;
--erp-primary-light-hover: #dbeafe;
--erp-primary-bg-subtle: #eff6ff;
/* Semantic Colors — Pinterest warm tones */
--erp-success: #103c25;
/* Semantic Colors — Professional slate tones */
--erp-success: #059669;
--erp-success-bg: #ecfdf5;
--erp-warning: #b56e1a;
--erp-warning-bg: #fff7ed;
--erp-error: #9e0a0a;
--erp-warning: #d97706;
--erp-warning-bg: #fffbeb;
--erp-error: #dc2626;
--erp-error-bg: #fef2f2;
--erp-info: #435ee5;
--erp-info-bg: #eef1fd;
--erp-info: #0284c7;
--erp-info-bg: #f0f9ff;
/* Neutral Palette — Warm neutrals with olive/sand undertones */
--erp-bg-page: #f6f6f3;
/* Neutral Palette — Slate neutrals with blue undertones */
--erp-bg-page: #f8fafc;
--erp-bg-container: #ffffff;
--erp-bg-elevated: #ffffff;
--erp-bg-spotlight: #fafaf8;
--erp-bg-spotlight: #f1f5f9;
--erp-bg-sidebar: #ffffff;
--erp-bg-sidebar-hover: #f6f6f3;
--erp-bg-sidebar-active: #fef0f0;
--erp-bg-sidebar-hover: #f1f5f9;
--erp-bg-sidebar-active: #eff6ff;
/* Text Colors — Warm near-black */
--erp-text-primary: #211922;
--erp-text-secondary: #62625b;
--erp-text-tertiary: #91918c;
/* Text Colors — Deep navy */
--erp-text-primary: #0f172a;
--erp-text-secondary: #475569;
--erp-text-tertiary: #94a3b8;
--erp-text-inverse: #ffffff;
--erp-text-sidebar: #62625b;
--erp-text-sidebar-active: #e60023;
--erp-text-sidebar: #475569;
--erp-text-sidebar-active: #2563eb;
/* Border Colors — Whisper borders */
--erp-border: #e5e5e0;
--erp-border-light: #e0e0d9;
--erp-border-dark: #c8c8c1;
/* Border Colors — Slate borders */
--erp-border: #e2e8f0;
--erp-border-light: #f1f5f9;
--erp-border-dark: #cbd5e1;
/* Shadows — Multi-layer, ultra-subtle */
--erp-shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
--erp-shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
--erp-shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
--erp-shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
--erp-shadow-xl: 0 12px 36px rgba(0,0,0,0.1), 0 6px 18px rgba(0,0,0,0.06);
/* Shadows — Soft UI Evolution: subtle, layered depth */
--erp-shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
--erp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
--erp-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
--erp-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
--erp-shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
/* Radius — Notion subtle roundness */
--erp-radius-sm: 8px;
--erp-radius-md: 16px;
--erp-radius-lg: 20px;
--erp-radius-xl: 28px;
/* Radius — Soft UI: friendly but professional */
--erp-radius-sm: 6px;
--erp-radius-md: 10px;
--erp-radius-lg: 12px;
--erp-radius-xl: 16px;
/* Spacing — 8px base unit */
/* Spacing — 4px base unit */
--erp-space-xs: 4px;
--erp-space-sm: 8px;
--erp-space-md: 16px;
@@ -68,11 +69,10 @@
--erp-space-xl: 32px;
--erp-space-2xl: 48px;
/* Typography — Inter as primary */
--erp-font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', 'PingFang SC',
'Microsoft YaHei', 'Hiragino Sans GB', Helvetica, Arial, sans-serif;
--erp-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', Menlo, Monaco, Consolas,
'Liberation Mono', 'Courier New', monospace;
/* Typography — Noto Sans SC for Chinese-first ERP */
--erp-font-family: 'Noto Sans SC', -apple-system, system-ui, 'Segoe UI', Roboto,
'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
--erp-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
--erp-font-size-xs: 12px;
--erp-font-size-sm: 13px;
--erp-font-size-base: 14px;
@@ -86,10 +86,10 @@
--erp-transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
--erp-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
/* Trend Colors — Warm */
--erp-trend-up: #103c25;
--erp-trend-down: #9e0a0a;
--erp-trend-neutral: #62625b;
/* Trend Colors */
--erp-trend-up: #059669;
--erp-trend-down: #dc2626;
--erp-trend-neutral: #475569;
/* Line Height */
--erp-line-height-tight: 1.25;
@@ -102,48 +102,48 @@
--erp-header-height: 56px;
}
/* --- Dark Mode Tokens — Warm dark, Notion-inspired --- */
/* --- Dark Mode Tokens --- */
[data-theme='dark'] {
--erp-primary-light: rgba(230, 0, 35, 0.15);
--erp-primary-light-hover: rgba(230, 0, 35, 0.22);
--erp-primary-bg-subtle: rgba(230, 0, 35, 0.1);
--erp-primary-light: rgba(37, 99, 235, 0.15);
--erp-primary-light-hover: rgba(37, 99, 235, 0.22);
--erp-primary-bg-subtle: rgba(37, 99, 235, 0.1);
--erp-bg-page: #1a1a18;
--erp-bg-container: #2a2a28;
--erp-bg-elevated: #33332e;
--erp-bg-spotlight: #33332e;
--erp-bg-sidebar: #211922;
--erp-bg-sidebar-hover: #33332e;
--erp-bg-page: #0f172a;
--erp-bg-container: #1e293b;
--erp-bg-elevated: #334155;
--erp-bg-spotlight: #1e293b;
--erp-bg-sidebar: #0f172a;
--erp-bg-sidebar-hover: #1e293b;
--erp-text-primary: rgba(255, 255, 255, 0.95);
--erp-text-secondary: #91918c;
--erp-text-tertiary: #62625b;
--erp-text-sidebar: #91918c;
--erp-text-sidebar-active: #f05a5a;
--erp-text-secondary: #94a3b8;
--erp-text-tertiary: #64748b;
--erp-text-sidebar: #94a3b8;
--erp-text-sidebar-active: #60a5fa;
--erp-border: rgba(255, 255, 255, 0.08);
--erp-border-light: rgba(255, 255, 255, 0.05);
--erp-border: #334155;
--erp-border-light: rgba(255, 255, 255, 0.06);
--erp-border-dark: rgba(255, 255, 255, 0.12);
--erp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
--erp-shadow-sm: rgba(0, 0, 0, 0.2) 0px 4px 18px, rgba(0, 0, 0, 0.15) 0px 2px 8px;
--erp-shadow-md: rgba(0, 0, 0, 0.15) 0px 1px 3px, rgba(0, 0, 0, 0.2) 0px 5px 12px, rgba(0, 0, 0, 0.2) 0px 10px 24px;
--erp-shadow-lg: rgba(0, 0, 0, 0.2) 0px 2px 6px, rgba(0, 0, 0, 0.25) 0px 8px 20px, rgba(0, 0, 0, 0.3) 0px 16px 40px;
--erp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
--erp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
--erp-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
--erp-trend-up: #3db377;
--erp-trend-down: #9e0a0a;
--erp-trend-neutral: #91918c;
--erp-trend-up: #34d399;
--erp-trend-down: #f87171;
--erp-trend-neutral: #94a3b8;
--erp-success-bg: rgba(16, 60, 37, 0.15);
--erp-warning-bg: rgba(181, 110, 26, 0.15);
--erp-error-bg: rgba(158, 10, 10, 0.15);
--erp-info-bg: rgba(67, 94, 229, 0.15);
--erp-success-bg: rgba(5, 150, 105, 0.15);
--erp-warning-bg: rgba(217, 119, 6, 0.15);
--erp-error-bg: rgba(220, 38, 38, 0.15);
--erp-info-bg: rgba(2, 132, 199, 0.15);
}
[data-theme='dark'] .erp-stat-card-trend-up { color: #2a9d99; }
[data-theme='dark'] .erp-stat-card-trend-down { color: #e5534b; }
[data-theme='dark'] .erp-stat-card-trend-neutral { color: #91918c; }
[data-theme='dark'] .erp-stat-card-trend-label { color: #91918c; }
[data-theme='dark'] .erp-stat-card-trend-up { color: #34d399; }
[data-theme='dark'] .erp-stat-card-trend-down { color: #f87171; }
[data-theme='dark'] .erp-stat-card-trend-neutral { color: #94a3b8; }
[data-theme='dark'] .erp-stat-card-trend-label { color: #94a3b8; }
/* --- Global Reset & Base --- */
body {
@@ -182,7 +182,7 @@ body {
/* --- Selection --- */
::selection {
background-color: rgba(230, 0, 35, 0.15);
background-color: rgba(37, 99, 235, 0.15);
color: var(--erp-text-primary);
}
@@ -190,11 +190,11 @@ body {
* Component Overrides — Ant Design Enhancement
* ==================================================================== */
/* --- Card — Whisper border, soft shadow --- */
/* --- Card — Soft shadow, clean border --- */
.ant-card {
border-radius: var(--erp-radius-lg) !important;
border: 1px solid var(--erp-border) !important;
box-shadow: none !important;
box-shadow: var(--erp-shadow-xs) !important;
transition: box-shadow var(--erp-transition-base) !important;
}
@@ -262,7 +262,7 @@ body {
}
.ant-table-tbody > tr:hover > td {
background: var(--erp-primary-bg-subtle) !important;
background: var(--erp-bg-spotlight) !important;
}
.ant-table-tbody > tr > td {
@@ -270,9 +270,9 @@ body {
border-bottom: 1px solid var(--erp-border-light) !important;
}
/* --- Button — Subtle 4px radius, no heavy shadow --- */
/* --- Button --- */
.ant-btn-primary {
border-radius: 16px !important;
border-radius: var(--erp-radius-md) !important;
font-weight: 500 !important;
box-shadow: none !important;
transition: all var(--erp-transition-fast) !important;
@@ -283,16 +283,16 @@ body {
}
.ant-btn-default {
border-radius: 16px !important;
border-radius: var(--erp-radius-md) !important;
font-weight: 500 !important;
}
/* --- Input — 4px radius, whisper border --- */
/* --- Input --- */
.ant-input,
.ant-input-affix-wrapper,
.ant-select-selector,
.ant-picker {
border-radius: 16px !important;
border-radius: var(--erp-radius-md) !important;
transition: all var(--erp-transition-fast) !important;
}
@@ -307,7 +307,7 @@ body {
.ant-select-focused .ant-select-selector,
.ant-picker-focused {
border-color: var(--erp-primary) !important;
box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.12) !important;
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}
/* --- Modal --- */
@@ -436,12 +436,12 @@ body {
border-radius: var(--erp-radius-lg) var(--erp-radius-lg) 0 0;
}
.erp-gradient-card.indigo::before { background: linear-gradient(90deg, #e60023, #f05a5a); }
.erp-gradient-card.emerald::before { background: linear-gradient(90deg, #103c25, #3db377); }
.erp-gradient-card.amber::before { background: linear-gradient(90deg, #b56e1a, #fbbf24); }
.erp-gradient-card.rose::before { background: linear-gradient(90deg, #9e0a0a, #f05a5a); }
.erp-gradient-card.sky::before { background: linear-gradient(90deg, #435ee5, #8fa4f0); }
.erp-gradient-card.violet::before { background: linear-gradient(90deg, #6845ab, #a78bfa); }
.erp-gradient-card.indigo::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.erp-gradient-card.emerald::before { background: linear-gradient(90deg, #059669, #34d399); }
.erp-gradient-card.amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.erp-gradient-card.rose::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.erp-gradient-card.sky::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.erp-gradient-card.violet::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
/* --- Fade-in Animation --- */
@keyframes erp-fade-in {
@@ -475,7 +475,7 @@ body {
*:focus-visible {
outline: 2px solid var(--erp-primary);
outline-offset: 2px;
border-radius: 16px;
border-radius: var(--erp-radius-sm);
}
.erp-sidebar-item:focus-visible {
@@ -491,7 +491,7 @@ body {
background: var(--erp-primary);
color: #fff;
padding: 8px 24px;
border-radius: 0 0 16px 16px;
border-radius: 0 0 var(--erp-radius-md) var(--erp-radius-md);
z-index: 10000;
font-size: 14px;
font-weight: 600;
@@ -540,22 +540,22 @@ body {
.erp-sidebar-menu .ant-menu-item {
margin: 1px 8px !important;
border-radius: 16px !important;
border-radius: var(--erp-radius-md) !important;
height: 36px !important;
line-height: 36px !important;
}
.erp-sidebar-menu .ant-menu-item-selected {
background: #fef0f0 !important;
color: #e60023 !important;
background: #eff6ff !important;
color: #2563eb !important;
}
.erp-sidebar-menu .ant-menu-item-selected .anticon {
color: #e60023 !important;
color: #2563eb !important;
}
.erp-sidebar-menu .ant-menu-item:not(.ant-menu-item-selected):hover {
background: #f6f6f3 !important;
background: #f1f5f9 !important;
}
/* Sidebar group label */
@@ -565,17 +565,17 @@ body {
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: #91918c;
color: #94a3b8;
}
/* ====================================================================
* MainLayout — CSS classes replacing inline styles
* ==================================================================== */
/* Sider — White sidebar, Notion style */
/* Sider — White sidebar, Soft UI style */
.erp-sider-dark {
background: #ffffff !important;
border-right: 1px solid #e0e0d9 !important;
border-right: 1px solid #e2e8f0 !important;
position: fixed !important;
left: 0;
top: 0;
@@ -585,22 +585,22 @@ body {
}
[data-theme='dark'] .erp-sider-dark {
background: #211922 !important;
border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
background: #0f172a !important;
border-right: 1px solid #334155 !important;
}
/* Logo — Warm neutral, Notion style */
/* Logo */
.erp-sidebar-logo {
height: 56px;
display: flex;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid #e0e0d9;
border-bottom: 1px solid #e2e8f0;
cursor: pointer;
}
[data-theme='dark'] .erp-sidebar-logo {
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
border-bottom: 1px solid #334155;
}
.ant-layout-sider-collapsed .erp-sidebar-logo {
@@ -611,8 +611,8 @@ body {
.erp-sidebar-logo-icon {
width: 28px;
height: 28px;
border-radius: 16px;
background: #e60023;
border-radius: var(--erp-radius-sm);
background: #2563eb;
display: flex;
align-items: center;
justify-content: center;
@@ -624,7 +624,7 @@ body {
.erp-sidebar-logo-text {
margin-left: 10px;
color: #211922;
color: #0f172a;
font-size: 15px;
font-weight: 700;
letter-spacing: -0.3px;
@@ -635,16 +635,16 @@ body {
color: rgba(255, 255, 255, 0.95);
}
/* Sidebar menu item — White sidebar, warm text */
/* Sidebar menu item */
.erp-sidebar-item {
display: flex;
align-items: center;
height: 36px;
margin: 1px 8px;
padding: 0 12px;
border-radius: 16px;
border-radius: var(--erp-radius-md);
cursor: pointer;
color: #62625b;
color: #475569;
font-size: 14px;
font-weight: 400;
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
@@ -657,28 +657,28 @@ body {
}
.erp-sidebar-item:hover:not(.erp-sidebar-item-active) {
background: #f6f6f3;
color: #211922;
background: #f1f5f9;
color: #0f172a;
}
[data-theme='dark'] .erp-sidebar-item {
color: #91918c;
color: #94a3b8;
}
[data-theme='dark'] .erp-sidebar-item:hover:not(.erp-sidebar-item-active) {
background: #33332e;
background: #1e293b;
color: rgba(255, 255, 255, 0.95);
}
.erp-sidebar-item-active {
background: #fef0f0;
color: #e60023;
background: #eff6ff;
color: #2563eb;
font-weight: 500;
}
[data-theme='dark'] .erp-sidebar-item-active {
background: rgba(230, 0, 35, 0.15);
color: #f05a5a;
background: rgba(37, 99, 235, 0.15);
color: #60a5fa;
}
.erp-sidebar-item-icon {
@@ -691,16 +691,16 @@ body {
margin-left: 12px;
}
/* Sidebar sub-menu (plugin group) — Warm gray group headers */
/* Sidebar sub-menu (plugin group) */
.erp-sidebar-submenu-title {
display: flex;
align-items: center;
height: 32px;
margin: 6px 8px 2px 8px;
padding: 0 12px;
border-radius: 16px;
border-radius: var(--erp-radius-md);
cursor: pointer;
color: #91918c;
color: #94a3b8;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
@@ -710,25 +710,25 @@ body {
}
.erp-sidebar-submenu-title:hover {
background: #f6f6f3;
color: #62625b;
background: #f1f5f9;
color: #475569;
}
[data-theme='dark'] .erp-sidebar-submenu-title {
color: #62625b;
color: #64748b;
}
[data-theme='dark'] .erp-sidebar-submenu-title:hover {
background: #33332e;
color: #91918c;
background: #1e293b;
color: #94a3b8;
}
.erp-sidebar-submenu-title-active {
color: #e60023;
color: #2563eb;
}
[data-theme='dark'] .erp-sidebar-submenu-title-active {
color: #f05a5a;
color: #60a5fa;
}
.erp-sidebar-submenu-arrow {
@@ -753,10 +753,10 @@ body {
transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.erp-main-layout-light { background: #f6f6f3; }
.erp-main-layout-dark { background: #1a1a18; }
.erp-main-layout-light { background: #f8fafc; }
.erp-main-layout-dark { background: #0f172a; }
/* Header — Clean white, whisper border bottom */
/* Header */
.erp-header {
height: 56px !important;
padding: 0 24px !important;
@@ -771,43 +771,43 @@ body {
.erp-header-light {
background: #ffffff !important;
border-bottom: 1px solid #e0e0d9;
border-bottom: 1px solid #e2e8f0;
box-shadow: none;
}
.erp-header-dark {
background: #2a2a28 !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
background: #1e293b !important;
border-bottom: 1px solid #334155;
box-shadow: none;
}
.erp-header-btn {
width: 32px;
height: 32px;
border-radius: 16px;
border-radius: var(--erp-radius-md);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.15s ease;
color: #62625b;
color: #475569;
will-change: background;
}
.erp-header-light .erp-header-btn { color: #62625b; }
.erp-header-dark .erp-header-btn { color: #91918c; }
.erp-header-btn:hover { background: #f6f6f3; }
.erp-header-dark .erp-header-btn:hover { background: #33332e; }
.erp-header-light .erp-header-btn { color: #475569; }
.erp-header-dark .erp-header-btn { color: #94a3b8; }
.erp-header-btn:hover { background: #f1f5f9; }
.erp-header-dark .erp-header-btn:hover { background: #334155; }
.erp-header-title { font-size: 15px; font-weight: 600; }
.erp-text-light { color: #211922; }
.erp-text-light { color: #0f172a; }
.erp-text-dark { color: rgba(255, 255, 255, 0.95); }
.erp-text-light-secondary { color: #62625b; }
.erp-text-dark-secondary { color: #91918c; }
.erp-text-light-secondary { color: #475569; }
.erp-text-dark-secondary { color: #94a3b8; }
.erp-header-divider { width: 1px; height: 24px; margin: 0 8px; }
.erp-header-divider-light { background: rgba(0, 0, 0, 0.06); }
.erp-header-divider-dark { background: rgba(255, 255, 255, 0.05); }
.erp-header-divider-dark { background: rgba(255, 255, 255, 0.06); }
/* User avatar */
.erp-header-user {
@@ -816,15 +816,15 @@ body {
gap: 10px;
cursor: pointer;
padding: 4px 8px;
border-radius: 8px;
border-radius: var(--erp-radius-sm);
transition: all 0.15s ease;
}
.erp-header-user:hover { background: #f6f6f3; }
.erp-header-dark .erp-header-user:hover { background: #33332e; }
.erp-header-user:hover { background: #f1f5f9; }
.erp-header-dark .erp-header-user:hover { background: #334155; }
.erp-user-avatar {
background: #0075de !important;
background: #2563eb !important;
font-size: 13px !important;
}
@@ -832,11 +832,11 @@ body {
/* Footer */
.erp-footer { text-align: center; padding: 12px 24px !important; background: transparent !important; font-size: 12px; }
.erp-footer-light { color: #91918c; }
.erp-footer-dark { color: #62625b; }
.erp-footer-light { color: #94a3b8; }
.erp-footer-dark { color: #64748b; }
/* ====================================================================
* Dashboard — Stat Cards & Quick Actions (replacing inline styles)
* Dashboard — Stat Cards & Quick Actions
* ==================================================================== */
/* Stat Card */
@@ -864,7 +864,7 @@ body {
left: 0;
right: 0;
height: 3px;
background: var(--card-gradient, linear-gradient(135deg, #e60023, #f05a5a));
background: var(--card-gradient, linear-gradient(135deg, #2563eb, #60a5fa));
}
.erp-stat-card-body {
@@ -895,7 +895,7 @@ body {
width: 48px;
height: 48px;
border-radius: var(--erp-radius-lg);
background: var(--card-icon-bg, rgba(230, 0, 35, 0.08));
background: var(--card-icon-bg, rgba(37, 99, 235, 0.08));
display: flex;
align-items: center;
justify-content: center;
@@ -903,7 +903,7 @@ body {
flex-shrink: 0;
}
/* Section Header (shared by dashboard sections) */
/* Section Header */
.erp-section-header {
display: flex;
align-items: center;
@@ -913,7 +913,7 @@ body {
.erp-section-icon {
font-size: 16px;
color: #e60023;
color: #2563eb;
}
.erp-section-title {
@@ -928,7 +928,7 @@ body {
align-items: center;
gap: 12px;
padding: 14px 16px;
border-radius: 12px;
border-radius: var(--erp-radius-lg);
cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease;
background: var(--erp-bg-spotlight);
@@ -936,17 +936,17 @@ body {
}
.erp-quick-action:hover {
background: #fef0f0;
border-color: var(--action-color, #e60023);
background: #eff6ff;
border-color: var(--action-color, #2563eb);
}
[data-theme='dark'] .erp-quick-action {
background: #1a1a18;
background: #0f172a;
}
[data-theme='dark'] .erp-quick-action:hover {
background: #33332e;
border-color: var(--action-color, #e60023);
background: #1e293b;
border-color: var(--action-color, #2563eb);
}
.erp-quick-action-icon {
@@ -956,8 +956,8 @@ body {
display: flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--action-color, #e60023) 8%, transparent);
color: var(--action-color, #e60023);
background: color-mix(in srgb, var(--action-color, #2563eb) 8%, transparent);
color: var(--action-color, #2563eb);
font-size: 16px;
flex-shrink: 0;
}
@@ -1008,12 +1008,12 @@ body {
font-weight: 500;
}
.erp-stat-card-trend-up { color: #0b5030; }
.erp-stat-card-trend-down { color: #9e0a0a; }
.erp-stat-card-trend-neutral { color: #62625b; }
.erp-stat-card-trend-up { color: #059669; }
.erp-stat-card-trend-down { color: #dc2626; }
.erp-stat-card-trend-neutral { color: #475569; }
.erp-stat-card-trend-label {
color: #62625b;
color: #475569;
font-weight: 400;
}
@@ -1046,8 +1046,8 @@ body {
display: flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--action-color, #e60023) 8%, transparent);
color: var(--action-color, #e60023);
background: color-mix(in srgb, var(--action-color, #2563eb) 8%, transparent);
color: var(--action-color, #2563eb);
font-size: 18px;
flex-shrink: 0;
transition: transform 0.15s ease;
@@ -1075,7 +1075,7 @@ body {
padding: 12px 16px;
border-radius: var(--erp-radius-md);
background: var(--erp-bg-spotlight);
border-left: 3px solid var(--task-color, #e60023);
border-left: 3px solid var(--task-color, #2563eb);
cursor: pointer;
transition: all 0.15s ease;
}
@@ -1088,12 +1088,12 @@ body {
.erp-task-item-icon {
width: 32px;
height: 32px;
border-radius: 8px;
border-radius: var(--erp-radius-sm);
display: flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--task-color, #e60023) 8%, transparent);
color: var(--task-color, #e60023);
background: color-mix(in srgb, var(--task-color, #2563eb) 8%, transparent);
color: var(--task-color, #2563eb);
font-size: 14px;
flex-shrink: 0;
}
@@ -1115,25 +1115,25 @@ body {
gap: 12px;
margin-top: 2px;
font-size: var(--erp-font-size-xs);
color: #91918c;
color: #94a3b8;
}
.erp-task-priority {
display: inline-flex;
align-items: center;
padding: 1px 8px;
border-radius: 12px;
border-radius: var(--erp-radius-sm);
font-size: 11px;
font-weight: 600;
}
.erp-task-priority-high { background: #fef2f2; color: #9e0a0a; }
.erp-task-priority-medium { background: #fff7ed; color: #b56e1a; }
.erp-task-priority-low { background: #ecfdf5; color: #103c25; }
.erp-task-priority-high { background: #fef2f2; color: #dc2626; }
.erp-task-priority-medium { background: #fffbeb; color: #d97706; }
.erp-task-priority-low { background: #ecfdf5; color: #059669; }
[data-theme='dark'] .erp-task-priority-high { background: rgba(158, 10, 10, 0.15); color: #f05a5a; }
[data-theme='dark'] .erp-task-priority-medium { background: rgba(181, 110, 26, 0.15); color: #d4852a; }
[data-theme='dark'] .erp-task-priority-low { background: rgba(16, 60, 37, 0.15); color: #3db377; }
[data-theme='dark'] .erp-task-priority-high { background: rgba(220, 38, 38, 0.15); color: #f87171; }
[data-theme='dark'] .erp-task-priority-medium { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
[data-theme='dark'] .erp-task-priority-low { background: rgba(5, 150, 105, 0.15); color: #34d399; }
/* Activity Timeline */
.erp-activity-list {
@@ -1189,12 +1189,12 @@ body {
.erp-activity-time {
font-size: 11px;
color: #91918c;
color: #94a3b8;
margin-top: 2px;
}
[data-theme='dark'] .erp-activity-time {
color: #62625b;
color: #64748b;
}
/* Empty State */