- 登录页接入 4 套主题系统(渐变色/面板背景/文字色),添加 ThemeSwitcher - 工作台按角色(医生/护士/管理员/运营)显示专属统计卡片和快捷入口 - 移除系统信息填充卡片,硬编码颜色替换为 CSS 变量
1453 lines
35 KiB
CSS
1453 lines
35 KiB
CSS
@import "tailwindcss";
|
|
|
|
/* ====================================================================
|
|
* ERP Platform — Design System Tokens & Global Styles
|
|
* Soft UI Evolution: Professional, warm, accessible for all industries
|
|
* Generated by UI UX Pro Max
|
|
* ==================================================================== */
|
|
|
|
/* --- Design Tokens (CSS Custom Properties) --- */
|
|
:root {
|
|
/* 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 — Professional slate tones */
|
|
--erp-success: #059669;
|
|
--erp-success-bg: #ecfdf5;
|
|
--erp-warning: #d97706;
|
|
--erp-warning-bg: #fffbeb;
|
|
--erp-error: #dc2626;
|
|
--erp-error-bg: #fef2f2;
|
|
--erp-info: #0284c7;
|
|
--erp-info-bg: #f0f9ff;
|
|
|
|
/* Neutral Palette — Slate neutrals with blue undertones */
|
|
--erp-bg-page: #f8fafc;
|
|
--erp-bg-container: #ffffff;
|
|
--erp-bg-elevated: #ffffff;
|
|
--erp-bg-spotlight: #f1f5f9;
|
|
--erp-bg-sidebar: #ffffff;
|
|
--erp-bg-sidebar-hover: #f1f5f9;
|
|
--erp-bg-sidebar-active: #eff6ff;
|
|
|
|
/* Text Colors — Deep navy */
|
|
--erp-text-primary: #0f172a;
|
|
--erp-text-secondary: #475569;
|
|
--erp-text-tertiary: #94a3b8;
|
|
--erp-text-inverse: #ffffff;
|
|
--erp-text-sidebar: #475569;
|
|
--erp-text-sidebar-active: #2563eb;
|
|
|
|
/* Border Colors — Slate borders */
|
|
--erp-border: #e2e8f0;
|
|
--erp-border-light: #f1f5f9;
|
|
--erp-border-dark: #cbd5e1;
|
|
|
|
/* 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 — Soft UI: friendly but professional */
|
|
--erp-radius-sm: 6px;
|
|
--erp-radius-md: 10px;
|
|
--erp-radius-lg: 12px;
|
|
--erp-radius-xl: 16px;
|
|
|
|
/* Spacing — 4px base unit */
|
|
--erp-space-xs: 4px;
|
|
--erp-space-sm: 8px;
|
|
--erp-space-md: 16px;
|
|
--erp-space-lg: 24px;
|
|
--erp-space-xl: 32px;
|
|
--erp-space-2xl: 48px;
|
|
|
|
/* 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;
|
|
--erp-font-size-lg: 16px;
|
|
--erp-font-size-xl: 18px;
|
|
--erp-font-size-2xl: 20px;
|
|
--erp-font-size-3xl: 24px;
|
|
|
|
/* Transitions */
|
|
--erp-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--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 */
|
|
--erp-trend-up: #059669;
|
|
--erp-trend-down: #dc2626;
|
|
--erp-trend-neutral: #475569;
|
|
|
|
/* Line Height */
|
|
--erp-line-height-tight: 1.25;
|
|
--erp-line-height-normal: 1.5;
|
|
--erp-line-height-relaxed: 1.625;
|
|
|
|
/* Heading font — override per theme */
|
|
--erp-font-heading: 'Noto Sans SC', -apple-system, system-ui, sans-serif;
|
|
|
|
/* Layout */
|
|
--erp-sidebar-width: 240px;
|
|
--erp-sidebar-collapsed-width: 72px;
|
|
--erp-header-height: 56px;
|
|
}
|
|
|
|
/* ─── Theme: 温润东方 (warm) ─── */
|
|
[data-theme='warm'] {
|
|
--erp-primary: #C4623A;
|
|
--erp-primary-hover: #B55A33;
|
|
--erp-primary-active: #8B3E1F;
|
|
--erp-primary-light: #F0DDD4;
|
|
--erp-primary-light-hover: #E8CEBF;
|
|
--erp-primary-bg-subtle: #FAF5F0;
|
|
|
|
--erp-success: #5B7A5E;
|
|
--erp-success-bg: #E8F0E8;
|
|
--erp-warning: #C4873A;
|
|
--erp-warning-bg: #FFF3E0;
|
|
--erp-error: #B54A4A;
|
|
--erp-error-bg: #FDEAEA;
|
|
--erp-info: #8B7A5E;
|
|
--erp-info-bg: #F5F0E8;
|
|
|
|
--erp-bg-page: #F5F0EB;
|
|
--erp-bg-container: #FFFFFF;
|
|
--erp-bg-elevated: #FFFFFF;
|
|
--erp-bg-spotlight: #EDE8E2;
|
|
--erp-bg-sidebar: #FFFFFF;
|
|
--erp-bg-sidebar-hover: #F5F0EB;
|
|
--erp-bg-sidebar-active: #F0DDD4;
|
|
|
|
--erp-text-primary: #2D2A26;
|
|
--erp-text-secondary: #7A756E;
|
|
--erp-text-tertiary: #A8A29E;
|
|
--erp-text-inverse: #FFFFFF;
|
|
--erp-text-sidebar: #7A756E;
|
|
--erp-text-sidebar-active: #C4623A;
|
|
|
|
--erp-border: #E8E2DC;
|
|
--erp-border-light: #F0EBE5;
|
|
--erp-border-dark: #D5CFC8;
|
|
|
|
--erp-shadow-xs: 0 1px 2px rgba(45,42,38,0.04);
|
|
--erp-shadow-sm: 0 1px 3px rgba(45,42,38,0.06), 0 1px 2px rgba(45,42,38,0.03);
|
|
--erp-shadow-md: 0 4px 6px rgba(45,42,38,0.07), 0 2px 4px rgba(45,42,38,0.04);
|
|
--erp-shadow-lg: 0 8px 30px rgba(45,42,38,0.10);
|
|
--erp-shadow-xl: 0 12px 40px rgba(45,42,38,0.14);
|
|
|
|
--erp-radius-sm: 8px;
|
|
--erp-radius-md: 12px;
|
|
--erp-radius-lg: 14px;
|
|
--erp-radius-xl: 18px;
|
|
|
|
--erp-trend-up: #5B7A5E;
|
|
--erp-trend-down: #B54A4A;
|
|
--erp-trend-neutral: #7A756E;
|
|
|
|
--erp-font-heading: 'Noto Serif SC', Georgia, serif;
|
|
}
|
|
|
|
/* ─── Theme: 深邃夜色 (dark) ─── */
|
|
[data-theme='dark'] {
|
|
--erp-primary: #60A5FA;
|
|
--erp-primary-hover: #93C5FD;
|
|
--erp-primary-active: #3B82F6;
|
|
--erp-primary-light: rgba(96,165,250,0.15);
|
|
--erp-primary-light-hover: rgba(96,165,250,0.22);
|
|
--erp-primary-bg-subtle: rgba(96,165,250,0.10);
|
|
|
|
--erp-success: #34D399;
|
|
--erp-success-bg: rgba(5,150,105,0.15);
|
|
--erp-warning: #FBBF24;
|
|
--erp-warning-bg: rgba(217,119,6,0.15);
|
|
--erp-error: #F87171;
|
|
--erp-error-bg: rgba(220,38,38,0.15);
|
|
--erp-info: #38BDF8;
|
|
--erp-info-bg: rgba(2,132,199,0.15);
|
|
|
|
--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-bg-sidebar-active: rgba(96,165,250,0.15);
|
|
|
|
--erp-text-primary: rgba(255,255,255,0.95);
|
|
--erp-text-secondary: #94A3B8;
|
|
--erp-text-tertiary: #64748B;
|
|
--erp-text-inverse: #0F172A;
|
|
--erp-text-sidebar: #94A3B8;
|
|
--erp-text-sidebar-active: #60A5FA;
|
|
|
|
--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: 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-shadow-xl: 0 12px 40px rgba(0,0,0,0.5);
|
|
|
|
--erp-trend-up: #34D399;
|
|
--erp-trend-down: #F87171;
|
|
--erp-trend-neutral: #94A3B8;
|
|
|
|
--erp-font-heading: 'Noto Sans SC', -apple-system, system-ui, sans-serif;
|
|
}
|
|
|
|
/* ─── Theme: 翡翠清雅 (emerald) ─── */
|
|
[data-theme='emerald'] {
|
|
--erp-primary: #5B7A5E;
|
|
--erp-primary-hover: #4D6B50;
|
|
--erp-primary-active: #3E5C41;
|
|
--erp-primary-light: #E0EBE1;
|
|
--erp-primary-light-hover: #D1E0D3;
|
|
--erp-primary-bg-subtle: #F0F5F0;
|
|
|
|
--erp-success: #3D7A42;
|
|
--erp-success-bg: #E0F0E2;
|
|
--erp-warning: #B8863A;
|
|
--erp-warning-bg: #FFF3E0;
|
|
--erp-error: #A54A4A;
|
|
--erp-error-bg: #FDEAEA;
|
|
--erp-info: #4A7A8B;
|
|
--erp-info-bg: #E0F0F5;
|
|
|
|
--erp-bg-page: #F4F7F4;
|
|
--erp-bg-container: #FFFFFF;
|
|
--erp-bg-elevated: #FFFFFF;
|
|
--erp-bg-spotlight: #EDF2ED;
|
|
--erp-bg-sidebar: #FFFFFF;
|
|
--erp-bg-sidebar-hover: #F4F7F4;
|
|
--erp-bg-sidebar-active: #E0EBE1;
|
|
|
|
--erp-text-primary: #1A2E1A;
|
|
--erp-text-secondary: #5A6E5A;
|
|
--erp-text-tertiary: #8FA08F;
|
|
--erp-text-inverse: #FFFFFF;
|
|
--erp-text-sidebar: #5A6E5A;
|
|
--erp-text-sidebar-active: #5B7A5E;
|
|
|
|
--erp-border: #D5DED5;
|
|
--erp-border-light: #E5ECE5;
|
|
--erp-border-dark: #B8C5B8;
|
|
|
|
--erp-shadow-xs: 0 1px 2px rgba(30,60,30,0.04);
|
|
--erp-shadow-sm: 0 1px 3px rgba(30,60,30,0.06), 0 1px 2px rgba(30,60,30,0.03);
|
|
--erp-shadow-md: 0 4px 6px rgba(30,60,30,0.07), 0 2px 4px rgba(30,60,30,0.04);
|
|
--erp-shadow-lg: 0 8px 30px rgba(30,60,30,0.10);
|
|
--erp-shadow-xl: 0 12px 40px rgba(30,60,30,0.14);
|
|
|
|
--erp-radius-sm: 8px;
|
|
--erp-radius-md: 10px;
|
|
--erp-radius-lg: 14px;
|
|
--erp-radius-xl: 18px;
|
|
|
|
--erp-trend-up: #3D7A42;
|
|
--erp-trend-down: #A54A4A;
|
|
--erp-trend-neutral: #5A6E5A;
|
|
|
|
--erp-font-heading: 'Noto Sans SC', -apple-system, system-ui, sans-serif;
|
|
}
|
|
|
|
/* --- Login Page Tokens --- */
|
|
:root {
|
|
--login-gradient-start: #312E81;
|
|
--login-gradient-mid: #2563eb;
|
|
--login-gradient-end: #60a5fa;
|
|
--login-form-bg: #ffffff;
|
|
--login-form-text: #0f172a;
|
|
--login-form-text-secondary: #475569;
|
|
--login-input-icon-color: #94a3b8;
|
|
}
|
|
|
|
[data-theme='warm'] {
|
|
--login-gradient-start: #6B3418;
|
|
--login-gradient-mid: #C4623A;
|
|
--login-gradient-end: #D4956A;
|
|
--login-form-bg: #FAF5F0;
|
|
--login-form-text: #2D2A26;
|
|
--login-form-text-secondary: #7A756E;
|
|
--login-input-icon-color: #A8A29E;
|
|
}
|
|
|
|
[data-theme='dark'] {
|
|
--login-gradient-start: #0F172A;
|
|
--login-gradient-mid: #1E293B;
|
|
--login-gradient-end: #334155;
|
|
--login-form-bg: #1E293B;
|
|
--login-form-text: rgba(255,255,255,0.95);
|
|
--login-form-text-secondary: #94A3B8;
|
|
--login-input-icon-color: #64748B;
|
|
}
|
|
|
|
[data-theme='emerald'] {
|
|
--login-gradient-start: #2D4A2F;
|
|
--login-gradient-mid: #5B7A5E;
|
|
--login-gradient-end: #8FB092;
|
|
--login-form-bg: #F4F7F4;
|
|
--login-form-text: #1A2E1A;
|
|
--login-form-text-secondary: #5A6E5A;
|
|
--login-input-icon-color: #8FA08F;
|
|
}
|
|
|
|
/* --- Login Page Styles --- */
|
|
.login-root {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.login-brand-panel {
|
|
flex: 1;
|
|
background: linear-gradient(135deg, var(--login-gradient-start) 0%, var(--login-gradient-mid) 50%, var(--login-gradient-end) 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 60px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.login-brand-panel .deco-circle {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.login-brand-panel .brand-icon {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 32px;
|
|
backdrop-filter: blur(8px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.login-brand-panel .brand-icon .anticon {
|
|
font-size: 32px;
|
|
color: #fff;
|
|
}
|
|
|
|
.login-brand-panel .brand-title {
|
|
color: #fff;
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
margin: 0 0 16px;
|
|
letter-spacing: -1px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.login-brand-panel .brand-desc {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
}
|
|
|
|
.login-brand-panel .brand-sub-desc {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.login-brand-panel .feature-item-value {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.login-brand-panel .feature-item-label {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
font-size: 12px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.login-form-panel {
|
|
width: 480px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 60px;
|
|
background: var(--login-form-bg);
|
|
position: relative;
|
|
transition: background var(--erp-transition-slow);
|
|
}
|
|
|
|
.login-form-panel .form-title {
|
|
margin-bottom: 4px;
|
|
font-weight: 700;
|
|
font-size: 24px;
|
|
color: var(--login-form-text);
|
|
}
|
|
|
|
.login-form-panel .form-subtitle {
|
|
font-size: 14px;
|
|
color: var(--login-form-text-secondary);
|
|
}
|
|
|
|
.login-form-panel .form-footer {
|
|
margin-top: 32px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--login-form-text-secondary);
|
|
}
|
|
|
|
.login-theme-switcher {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.login-theme-switcher .erp-header-btn {
|
|
background: var(--login-form-bg);
|
|
border: 1px solid var(--erp-border);
|
|
color: var(--login-form-text-secondary);
|
|
}
|
|
|
|
/* --- Global Reset & Base --- */
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--erp-font-family);
|
|
font-size: var(--erp-font-size-base);
|
|
color: var(--erp-text-primary);
|
|
background-color: var(--erp-bg-page);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Force Ant Design Layout backgrounds to follow theme */
|
|
.ant-layout {
|
|
background: var(--erp-bg-page) !important;
|
|
}
|
|
.ant-layout-content {
|
|
background: transparent !important;
|
|
}
|
|
.ant-layout-sider {
|
|
background: var(--erp-bg-sidebar) !important;
|
|
}
|
|
.ant-layout-header {
|
|
background: var(--erp-bg-container) !important;
|
|
}
|
|
.ant-layout-footer {
|
|
background: transparent !important;
|
|
}
|
|
|
|
/* --- Smooth Scrolling --- */
|
|
* {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
/* --- Custom Scrollbar --- */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: var(--erp-text-tertiary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--erp-text-secondary);
|
|
}
|
|
|
|
/* --- Selection --- */
|
|
::selection {
|
|
background-color: var(--erp-primary-bg-subtle);
|
|
color: var(--erp-text-primary);
|
|
}
|
|
|
|
/* ====================================================================
|
|
* Component Overrides — Ant Design Enhancement
|
|
* ==================================================================== */
|
|
|
|
/* --- Card — Soft shadow, clean border --- */
|
|
.ant-card {
|
|
border-radius: var(--erp-radius-lg) !important;
|
|
border: 1px solid var(--erp-border) !important;
|
|
box-shadow: var(--erp-shadow-xs) !important;
|
|
transition: box-shadow var(--erp-transition-base) !important;
|
|
}
|
|
|
|
.ant-card:hover {
|
|
box-shadow: var(--erp-shadow-sm) !important;
|
|
}
|
|
|
|
.ant-card .ant-card-head {
|
|
border-bottom: 1px solid var(--erp-border-light) !important;
|
|
padding: 12px 20px !important;
|
|
min-height: auto !important;
|
|
}
|
|
|
|
.ant-card .ant-card-head-title {
|
|
padding: 8px 0 !important;
|
|
font-weight: 600 !important;
|
|
font-size: var(--erp-font-size-base) !important;
|
|
}
|
|
|
|
.ant-card .ant-card-body {
|
|
padding: 20px !important;
|
|
}
|
|
|
|
/* --- Statistic Cards --- */
|
|
.stat-card {
|
|
border-radius: var(--erp-radius-lg) !important;
|
|
border: 1px solid var(--erp-border) !important;
|
|
overflow: hidden;
|
|
position: relative;
|
|
transition: box-shadow var(--erp-transition-base) !important;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
box-shadow: var(--erp-shadow-sm) !important;
|
|
}
|
|
|
|
.stat-card .ant-statistic-title {
|
|
font-size: var(--erp-font-size-sm) !important;
|
|
color: var(--erp-text-secondary) !important;
|
|
margin-bottom: 4px !important;
|
|
}
|
|
|
|
.stat-card .ant-statistic-content {
|
|
font-size: 28px !important;
|
|
font-weight: 700 !important;
|
|
}
|
|
|
|
/* --- Table --- */
|
|
.ant-table {
|
|
border-radius: var(--erp-radius-lg) !important;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ant-table-thead > tr > th {
|
|
background: var(--erp-bg-spotlight) !important;
|
|
font-weight: 600 !important;
|
|
font-size: var(--erp-font-size-sm) !important;
|
|
color: var(--erp-text-secondary) !important;
|
|
border-bottom: 1px solid var(--erp-border) !important;
|
|
padding: 12px 16px !important;
|
|
}
|
|
|
|
.ant-table-tbody > tr {
|
|
transition: background-color var(--erp-transition-fast) !important;
|
|
}
|
|
|
|
.ant-table-tbody > tr:hover > td {
|
|
background: var(--erp-bg-spotlight) !important;
|
|
}
|
|
|
|
.ant-table-tbody > tr > td {
|
|
padding: 12px 16px !important;
|
|
border-bottom: 1px solid var(--erp-border-light) !important;
|
|
}
|
|
|
|
/* --- Button --- */
|
|
.ant-btn-primary {
|
|
border-radius: var(--erp-radius-md) !important;
|
|
font-weight: 500 !important;
|
|
box-shadow: none !important;
|
|
transition: all var(--erp-transition-fast) !important;
|
|
}
|
|
|
|
.ant-btn-primary:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.ant-btn-default {
|
|
border-radius: var(--erp-radius-md) !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
/* --- Input --- */
|
|
.ant-input,
|
|
.ant-input-affix-wrapper,
|
|
.ant-select-selector,
|
|
.ant-picker {
|
|
border-radius: var(--erp-radius-md) !important;
|
|
transition: all var(--erp-transition-fast) !important;
|
|
}
|
|
|
|
.ant-input-affix-wrapper:hover,
|
|
.ant-select-selector:hover,
|
|
.ant-picker:hover {
|
|
border-color: var(--erp-primary) !important;
|
|
}
|
|
|
|
.ant-input-affix-wrapper:focus,
|
|
.ant-input-affix-wrapper-focused,
|
|
.ant-select-focused .ant-select-selector,
|
|
.ant-picker-focused {
|
|
border-color: var(--erp-primary) !important;
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
|
|
}
|
|
|
|
/* --- Modal --- */
|
|
.ant-modal .ant-modal-content {
|
|
border-radius: var(--erp-radius-xl) !important;
|
|
box-shadow: var(--erp-shadow-xl) !important;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ant-modal .ant-modal-header {
|
|
padding: 20px 24px 16px !important;
|
|
border-bottom: 1px solid var(--erp-border-light) !important;
|
|
}
|
|
|
|
.ant-modal .ant-modal-body {
|
|
padding: 20px 24px !important;
|
|
}
|
|
|
|
.ant-modal .ant-modal-footer {
|
|
padding: 12px 24px 20px !important;
|
|
border-top: 1px solid var(--erp-border-light) !important;
|
|
}
|
|
|
|
/* --- Tabs --- */
|
|
.ant-tabs .ant-tabs-tab {
|
|
padding: 8px 16px !important;
|
|
font-weight: 500 !important;
|
|
transition: all var(--erp-transition-fast) !important;
|
|
border-radius: var(--erp-radius-md) !important;
|
|
}
|
|
|
|
.ant-tabs .ant-tabs-tab:hover {
|
|
color: var(--erp-primary) !important;
|
|
}
|
|
|
|
.ant-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* --- Tag --- */
|
|
.ant-tag {
|
|
border-radius: var(--erp-radius-sm) !important;
|
|
font-size: var(--erp-font-size-xs) !important;
|
|
padding: 2px 8px !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
/* --- Badge --- */
|
|
.ant-badge-count {
|
|
box-shadow: 0 0 0 2px var(--erp-bg-container) !important;
|
|
}
|
|
|
|
/* --- Dropdown/Menu --- */
|
|
.ant-dropdown .ant-dropdown-menu {
|
|
border-radius: var(--erp-radius-lg) !important;
|
|
box-shadow: var(--erp-shadow-lg) !important;
|
|
padding: var(--erp-space-xs) !important;
|
|
border: 1px solid var(--erp-border-light) !important;
|
|
}
|
|
|
|
.ant-dropdown .ant-dropdown-menu-item {
|
|
border-radius: var(--erp-radius-sm) !important;
|
|
padding: 8px 12px !important;
|
|
}
|
|
|
|
/* --- Form --- */
|
|
.ant-form-item-label > label {
|
|
font-weight: 500 !important;
|
|
color: var(--erp-text-primary) !important;
|
|
}
|
|
|
|
/* --- Popover --- */
|
|
.ant-popover .ant-popover-inner {
|
|
border-radius: var(--erp-radius-lg) !important;
|
|
box-shadow: var(--erp-shadow-lg) !important;
|
|
}
|
|
|
|
/* ====================================================================
|
|
* Utility Classes
|
|
* ==================================================================== */
|
|
|
|
.erp-page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid var(--erp-border-light);
|
|
}
|
|
|
|
.erp-page-header h4 {
|
|
margin: 0;
|
|
font-size: var(--erp-font-size-2xl);
|
|
font-weight: 700;
|
|
color: var(--erp-text-primary);
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.erp-page-subtitle {
|
|
font-size: var(--erp-font-size-sm);
|
|
color: var(--erp-text-tertiary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.erp-content-card {
|
|
background: var(--erp-bg-container);
|
|
border-radius: var(--erp-radius-lg);
|
|
padding: 24px;
|
|
box-shadow: var(--erp-shadow-xs);
|
|
border: 1px solid var(--erp-border-light);
|
|
}
|
|
|
|
.erp-gradient-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: none !important;
|
|
}
|
|
|
|
.erp-gradient-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
border-radius: var(--erp-radius-lg) var(--erp-radius-lg) 0 0;
|
|
}
|
|
|
|
.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 {
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.erp-fade-in {
|
|
animation: erp-fade-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
}
|
|
|
|
.erp-fade-in-delay-1 { animation-delay: 0.05s; opacity: 0; }
|
|
.erp-fade-in-delay-2 { animation-delay: 0.1s; opacity: 0; }
|
|
.erp-fade-in-delay-3 { animation-delay: 0.15s; opacity: 0; }
|
|
.erp-fade-in-delay-4 { animation-delay: 0.2s; opacity: 0; }
|
|
|
|
/* --- Accessibility: Reduced Motion --- */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.erp-fade-in { animation: none; opacity: 1; }
|
|
.erp-fade-in-delay-1,
|
|
.erp-fade-in-delay-2,
|
|
.erp-fade-in-delay-3,
|
|
.erp-fade-in-delay-4 { opacity: 1; }
|
|
.erp-sidebar-item { transition: none; }
|
|
.erp-header-btn { transition: none; }
|
|
.ant-card { transition: none !important; }
|
|
.stat-card { transition: none !important; }
|
|
}
|
|
|
|
/* --- Focus States (keyboard navigation) --- */
|
|
*:focus-visible {
|
|
outline: 2px solid var(--erp-primary);
|
|
outline-offset: 2px;
|
|
border-radius: var(--erp-radius-sm);
|
|
}
|
|
|
|
.erp-sidebar-item:focus-visible {
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
/* --- Skip to main content link --- */
|
|
.erp-skip-link {
|
|
position: absolute;
|
|
top: -100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--erp-primary);
|
|
color: #fff;
|
|
padding: 8px 24px;
|
|
border-radius: 0 0 var(--erp-radius-md) var(--erp-radius-md);
|
|
z-index: 10000;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: top 0.2s ease;
|
|
}
|
|
|
|
.erp-skip-link:focus {
|
|
top: 0;
|
|
}
|
|
|
|
/* --- Loading Skeleton --- */
|
|
.erp-skeleton {
|
|
background: linear-gradient(90deg, var(--erp-bg-spotlight) 25%, var(--erp-border-light) 50%, var(--erp-bg-spotlight) 75%);
|
|
background-size: 200% 100%;
|
|
animation: erp-skeleton-shimmer 1.5s infinite;
|
|
border-radius: var(--erp-radius-sm);
|
|
}
|
|
|
|
@keyframes erp-skeleton-shimmer {
|
|
0% { background-position: 200% 0; }
|
|
100% { background-position: -200% 0; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.erp-skeleton { animation: none; }
|
|
}
|
|
|
|
/* --- Glass Effect --- */
|
|
.erp-glass {
|
|
backdrop-filter: blur(12px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(12px) saturate(180%);
|
|
background-color: rgba(255, 255, 255, 0.78);
|
|
}
|
|
|
|
/* --- Text Ellipsis --- */
|
|
.erp-text-ellipsis {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ====================================================================
|
|
* Layout Utilities
|
|
* ==================================================================== */
|
|
|
|
.erp-sidebar-menu .ant-menu-item {
|
|
margin: 1px 8px !important;
|
|
border-radius: var(--erp-radius-md) !important;
|
|
height: 36px !important;
|
|
line-height: 36px !important;
|
|
}
|
|
|
|
.erp-sidebar-menu .ant-menu-item-selected {
|
|
background: var(--erp-bg-sidebar-active) !important;
|
|
color: var(--erp-text-sidebar-active) !important;
|
|
}
|
|
|
|
.erp-sidebar-menu .ant-menu-item-selected .anticon {
|
|
color: var(--erp-text-sidebar-active) !important;
|
|
}
|
|
|
|
.erp-sidebar-menu .ant-menu-item:not(.ant-menu-item-selected):hover {
|
|
background: var(--erp-bg-sidebar-hover) !important;
|
|
}
|
|
|
|
/* Sidebar group label */
|
|
.erp-sidebar-group {
|
|
padding: 16px 20px 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
color: var(--erp-text-tertiary);
|
|
}
|
|
|
|
/* ====================================================================
|
|
* MainLayout — CSS classes replacing inline styles
|
|
* ==================================================================== */
|
|
|
|
/* Sider */
|
|
.erp-sider-dark {
|
|
background: var(--erp-bg-sidebar) !important;
|
|
border-right: 1px solid var(--erp-border) !important;
|
|
position: fixed !important;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
overflow: auto;
|
|
}
|
|
|
|
/* Logo */
|
|
.erp-sidebar-logo {
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
border-bottom: 1px solid var(--erp-border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ant-layout-sider-collapsed .erp-sidebar-logo {
|
|
justify-content: center;
|
|
padding: 0;
|
|
}
|
|
|
|
.erp-sidebar-logo-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--erp-radius-sm);
|
|
background: var(--erp-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
color: #fff;
|
|
}
|
|
|
|
.erp-sidebar-logo-text {
|
|
margin-left: 10px;
|
|
color: var(--erp-text-primary);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.3px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Sidebar menu item */
|
|
.erp-sidebar-item {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 36px;
|
|
margin: 1px 8px;
|
|
padding: 0 12px;
|
|
border-radius: var(--erp-radius-md);
|
|
cursor: pointer;
|
|
color: var(--erp-text-sidebar);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
will-change: background, color;
|
|
}
|
|
|
|
.ant-layout-sider-collapsed .erp-sidebar-item {
|
|
padding: 0;
|
|
justify-content: center;
|
|
}
|
|
|
|
.erp-sidebar-item:hover:not(.erp-sidebar-item-active) {
|
|
background: var(--erp-bg-sidebar-hover);
|
|
color: var(--erp-text-primary);
|
|
}
|
|
|
|
.erp-sidebar-item-active {
|
|
background: var(--erp-bg-sidebar-active);
|
|
color: var(--erp-text-sidebar-active);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.erp-sidebar-item-icon {
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.erp-sidebar-item-label {
|
|
margin-left: 12px;
|
|
}
|
|
|
|
/* 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: var(--erp-radius-md);
|
|
cursor: pointer;
|
|
color: var(--erp-text-tertiary);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
transition: all 0.15s;
|
|
user-select: none;
|
|
}
|
|
|
|
.erp-sidebar-submenu-title:hover {
|
|
background: var(--erp-bg-sidebar-hover);
|
|
color: var(--erp-text-secondary);
|
|
}
|
|
|
|
.erp-sidebar-submenu-title-active {
|
|
color: var(--erp-text-sidebar-active);
|
|
}
|
|
|
|
.erp-sidebar-submenu-arrow {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: 8px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.erp-sidebar-submenu-label {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.erp-sidebar-item-indented {
|
|
padding-left: 36px;
|
|
}
|
|
|
|
/* Main layout */
|
|
.erp-main-layout {
|
|
background: var(--erp-bg-page) !important;
|
|
transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* Header */
|
|
.erp-header {
|
|
height: 56px !important;
|
|
padding: 0 24px !important;
|
|
display: flex !important;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 99;
|
|
line-height: 56px !important;
|
|
background: var(--erp-bg-container) !important;
|
|
border-bottom: 1px solid var(--erp-border) !important;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.erp-header-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--erp-radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
color: var(--erp-text-secondary);
|
|
will-change: background;
|
|
}
|
|
|
|
.erp-header-btn:hover { background: var(--erp-bg-spotlight); }
|
|
|
|
.erp-header-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--erp-text-primary);
|
|
font-family: var(--erp-font-heading);
|
|
}
|
|
|
|
.erp-header-divider { width: 1px; height: 24px; margin: 0 8px; background: var(--erp-border-light); }
|
|
|
|
/* User avatar */
|
|
.erp-header-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
border-radius: var(--erp-radius-sm);
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.erp-header-user:hover { background: var(--erp-bg-spotlight); }
|
|
|
|
.erp-user-avatar {
|
|
background: var(--erp-primary) !important;
|
|
font-size: 13px !important;
|
|
}
|
|
|
|
.erp-user-name { font-size: 13px; font-weight: 500; color: var(--erp-text-secondary); }
|
|
|
|
/* Footer */
|
|
.erp-footer { text-align: center; padding: 12px 24px !important; background: transparent !important; font-size: 12px; color: var(--erp-text-tertiary); }
|
|
|
|
/* ====================================================================
|
|
* Dashboard — Stat Cards & Quick Actions
|
|
* ==================================================================== */
|
|
|
|
/* Stat Card */
|
|
.erp-stat-card {
|
|
background: var(--erp-bg-container);
|
|
border-radius: var(--erp-radius-lg);
|
|
padding: 20px 24px;
|
|
border: 1px solid var(--erp-border-light);
|
|
box-shadow: var(--erp-shadow-xs);
|
|
position: relative;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
will-change: transform;
|
|
}
|
|
|
|
.erp-stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--erp-shadow-md);
|
|
}
|
|
|
|
.erp-stat-card-bar {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
background: var(--card-gradient, linear-gradient(135deg, var(--erp-primary), var(--erp-primary-hover)));
|
|
}
|
|
|
|
.erp-stat-card-body {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.erp-stat-card-info { flex: 1; }
|
|
|
|
.erp-stat-card-title {
|
|
font-size: var(--erp-font-size-sm);
|
|
color: var(--erp-text-secondary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.erp-stat-card-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--erp-text-primary);
|
|
letter-spacing: -0.5px;
|
|
min-height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.erp-stat-card-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--erp-radius-lg);
|
|
background: var(--card-icon-bg, var(--erp-primary-bg-subtle));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Section Header */
|
|
.erp-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.erp-section-icon {
|
|
font-size: 16px;
|
|
color: var(--erp-primary);
|
|
}
|
|
|
|
.erp-section-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--erp-text-primary);
|
|
}
|
|
|
|
/* Quick Action */
|
|
.erp-quick-action {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
border-radius: var(--erp-radius-lg);
|
|
cursor: pointer;
|
|
transition: background 0.15s ease, border-color 0.15s ease;
|
|
background: var(--erp-bg-spotlight);
|
|
border: 1px solid var(--erp-border-light);
|
|
}
|
|
|
|
.erp-quick-action:hover {
|
|
background: var(--erp-primary-bg-subtle);
|
|
border-color: var(--action-color, var(--erp-primary));
|
|
}
|
|
|
|
.erp-quick-action-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--erp-radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: color-mix(in srgb, var(--action-color, var(--erp-primary)) 8%, transparent);
|
|
color: var(--action-color, var(--erp-primary));
|
|
font-size: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.erp-quick-action-label {
|
|
font-size: var(--erp-font-size-base);
|
|
font-weight: 500;
|
|
color: var(--erp-text-secondary);
|
|
}
|
|
|
|
/* System Info */
|
|
.erp-system-info-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.erp-system-info-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--erp-border-light);
|
|
}
|
|
|
|
.erp-system-info-label {
|
|
font-size: var(--erp-font-size-sm);
|
|
color: var(--erp-text-secondary);
|
|
}
|
|
|
|
.erp-system-info-value {
|
|
font-size: var(--erp-font-size-sm);
|
|
font-weight: 500;
|
|
color: var(--erp-text-secondary);
|
|
}
|
|
|
|
/* ====================================================================
|
|
* Dashboard — Trend Indicators & Enhanced Components
|
|
* ==================================================================== */
|
|
|
|
/* Stat Card Trend */
|
|
.erp-stat-card-trend {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.erp-stat-card-trend-up { color: var(--erp-trend-up); }
|
|
.erp-stat-card-trend-down { color: var(--erp-trend-down); }
|
|
.erp-stat-card-trend-neutral { color: var(--erp-trend-neutral); }
|
|
|
|
.erp-stat-card-trend-label {
|
|
color: var(--erp-text-secondary);
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* Stat Card Sparkline */
|
|
.erp-stat-card-sparkline {
|
|
margin-top: 12px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
}
|
|
|
|
.erp-stat-card-sparkline-bar {
|
|
flex: 1;
|
|
border-radius: 2px 2px 0 0;
|
|
min-height: 3px;
|
|
opacity: 0.4;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
.erp-stat-card:hover .erp-stat-card-sparkline-bar {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Quick Action — enhanced */
|
|
.erp-quick-action-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--erp-radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: color-mix(in srgb, var(--action-color, var(--erp-primary)) 8%, transparent);
|
|
color: var(--action-color, var(--erp-primary));
|
|
font-size: 18px;
|
|
flex-shrink: 0;
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.erp-quick-action:hover .erp-quick-action-icon {
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
/* ====================================================================
|
|
* Dashboard — Pending Tasks & Activity Sections
|
|
* ==================================================================== */
|
|
|
|
/* Pending Task Item */
|
|
.erp-task-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.erp-task-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-radius: var(--erp-radius-md);
|
|
background: var(--erp-bg-spotlight);
|
|
border-left: 3px solid var(--task-color, var(--erp-primary));
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.erp-task-item:hover {
|
|
background: var(--erp-primary-bg-subtle);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.erp-task-item-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--erp-radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: color-mix(in srgb, var(--task-color, #2563eb) 8%, transparent);
|
|
color: var(--task-color, var(--erp-primary));
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.erp-task-item-content { flex: 1; min-width: 0; }
|
|
|
|
.erp-task-item-title {
|
|
font-size: var(--erp-font-size-base);
|
|
font-weight: 500;
|
|
color: var(--erp-text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.erp-task-item-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 2px;
|
|
font-size: var(--erp-font-size-xs);
|
|
color: var(--erp-text-tertiary);
|
|
}
|
|
|
|
.erp-task-priority {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 1px 8px;
|
|
border-radius: var(--erp-radius-sm);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.erp-task-priority-high { background: var(--erp-error-bg); color: var(--erp-error); }
|
|
.erp-task-priority-medium { background: var(--erp-warning-bg); color: var(--erp-warning); }
|
|
.erp-task-priority-low { background: var(--erp-success-bg); color: var(--erp-success); }
|
|
|
|
/* Activity Timeline */
|
|
.erp-activity-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.erp-activity-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 10px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.erp-activity-item:not(:last-child)::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 15px;
|
|
top: 38px;
|
|
bottom: -2px;
|
|
width: 2px;
|
|
background: var(--erp-border-light);
|
|
}
|
|
|
|
.erp-activity-dot {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--erp-bg-spotlight);
|
|
border: 2px solid var(--erp-border-light);
|
|
font-size: 12px;
|
|
color: var(--erp-text-tertiary);
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.erp-activity-content { flex: 1; min-width: 0; }
|
|
|
|
.erp-activity-text {
|
|
font-size: var(--erp-font-size-sm);
|
|
color: var(--erp-text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.erp-activity-text strong {
|
|
color: var(--erp-text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.erp-activity-time {
|
|
font-size: 11px;
|
|
color: var(--erp-text-tertiary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* Empty State */
|
|
.erp-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 40px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.erp-empty-state-icon {
|
|
font-size: 40px;
|
|
color: var(--erp-text-tertiary);
|
|
margin-bottom: 12px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.erp-empty-state-text {
|
|
font-size: var(--erp-font-size-sm);
|
|
color: var(--erp-text-tertiary);
|
|
}
|
|
|
|
/* CountUp animation */
|
|
@keyframes erp-count-up {
|
|
from { opacity: 0; transform: translateY(4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.erp-count-up {
|
|
animation: erp-count-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
}
|