Files
X-Financial/web/src/assets/styles/views/travel-request-detail-view-part2.css
caoxiaozhu e384318046 feat: 引入 ECharts 统一图表并完善员工画像标签分页
后端优化员工行为画像服务和辅助函数,完善系统设置模型和
配置持久化,前端引入 ECharts 替换所有图表组件实现统一
渲染,新增员工画像标签分页器和数字员工工作记录组件,优
化工作台响应式布局和登录页过渡动画,完善预算中心和数字
员工页面样式细节。
2026-05-28 16:24:59 +08:00

962 lines
17 KiB
CSS

.validation-pill.pending {
background: #fff7ed;
border-color: #fed7aa;
color: #c2410c;
}
.validation-pill.warning {
background: #fef2f2;
border-color: #fecaca;
color: #b91c1c;
}
.validation-summary {
margin: 0;
color: #475569;
font-size: 13px;
line-height: 1.6;
}
.validation-sections {
display: grid;
gap: 18px;
margin-top: 16px;
}
.validation-section {
display: grid;
gap: 10px;
padding-top: 14px;
border-top: 1px solid #e5e7eb;
}
.validation-section:first-child {
padding-top: 0;
border-top: none;
}
.validation-section-title {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
color: #0f172a;
font-size: 13px;
font-weight: 800;
line-height: 1.4;
}
.validation-section-title::before {
content: '';
width: 6px;
height: 6px;
border-radius: 4px;
background: var(--success);
box-shadow: 0 0 0 3px rgba(var(--success-rgb), 0.12);
}
.validation-section--risk .validation-section-title {
color: #b91c1c;
}
.validation-section--risk .validation-section-title::before {
background: #ef4444;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.validation-list {
display: grid;
gap: 6px;
margin: 0;
padding: 0 0 0 18px;
color: var(--success-hover);
font-size: 13px;
line-height: 1.55;
}
.validation-list li::marker {
color: var(--success);
}
.validation-section--risk .risk-advice-list {
display: grid;
gap: 10px;
margin-top: 0;
}
.validation-section--risk .risk-advice-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.validation-section--risk .risk-advice-card-head span {
min-height: 20px;
display: inline-flex;
align-items: center;
padding: 0 8px;
border-radius: 4px;
background: #fef2f2;
color: #b91c1c;
font-size: 10px;
font-weight: 800;
white-space: nowrap;
}
.validation-section--risk .risk-advice-card.medium .risk-advice-card-head span {
background: #fff7ed;
color: #c2410c;
}
.validation-section--risk .risk-advice-card.low .risk-advice-card-head span {
background: #eff6ff;
color: #2563eb;
}
.validation-section--risk .risk-advice-card-head strong {
min-width: 0;
color: #0f172a;
font-size: 12px;
line-height: 1.4;
text-align: right;
}
.validation-section--risk .risk-advice-point {
margin: 0;
color: #334155;
font-size: 13px;
line-height: 1.5;
}
.validation-section--risk .risk-advice-meta {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 8px;
}
.validation-section--risk .risk-advice-meta > div {
min-width: 0;
display: grid;
gap: 4px;
padding: 8px 9px;
border-radius: 4px;
background: #f8fafc;
}
.validation-section--risk .risk-advice-meta span {
color: #64748b;
font-size: 10px;
font-weight: 800;
}
.risk-advice-card.medium {
border-color: #fed7aa;
background: #fffaf2;
}
.risk-advice-card.low {
border-color: #bfdbfe;
background: #f8fbff;
}
.risk-advice-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.risk-advice-card-head span {
min-height: 24px;
display: inline-flex;
align-items: center;
padding: 0 9px;
border-radius: 4px;
background: #fee2e2;
color: #b91c1c;
font-size: 11px;
font-weight: 850;
white-space: nowrap;
}
.risk-advice-card.medium .risk-advice-card-head span {
background: #ffedd5;
color: #c2410c;
}
.risk-advice-card.low .risk-advice-card-head span {
background: #dbeafe;
color: #2563eb;
}
.risk-advice-card-head strong {
min-width: 0;
color: #0f172a;
font-size: 13px;
line-height: 1.45;
text-align: right;
}
.risk-advice-point {
margin: 0;
color: #7f1d1d;
font-size: 14px;
font-weight: 800;
line-height: 1.5;
}
.risk-advice-card.medium .risk-advice-point {
color: #9a3412;
}
.risk-advice-meta {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 12px;
}
.risk-advice-meta > div {
min-width: 0;
display: grid;
gap: 6px;
padding: 10px;
border-radius: 4px;
background: rgba(255, 255, 255, .72);
}
.risk-advice-meta span {
color: #64748b;
font-size: 11px;
font-weight: 850;
}
.risk-advice-meta ul {
display: grid;
gap: 4px;
margin: 0;
padding-left: 16px;
color: #334155;
font-size: 12px;
line-height: 1.55;
}
.risk-advice-meta p {
margin: 0;
color: #334155;
font-size: 12px;
line-height: 1.55;
}
.detail-overlay {
position: fixed;
inset: 0;
z-index: 9999;
display: grid;
place-items: center;
background: rgba(15, 23, 42, .45);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.detail-modal {
position: relative;
width: calc(100vw - 80px);
max-width: 1440px;
height: calc(100vh - 64px);
max-height: 960px;
display: grid;
grid-template-rows: auto minmax(0, 1fr);
border-radius: 4px;
background: #f8fafc;
box-shadow:
0 0 0 1px rgba(15, 23, 42, .08),
0 20px 60px rgba(15, 23, 42, .18),
0 4px 16px rgba(15, 23, 42, .06);
overflow: hidden;
}
.ai-entry-modal {
max-width: 1320px;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 24px 28px;
background: #fff;
border-bottom: 1px solid #e8eef6;
}
.header-left {
display: flex;
align-items: center;
gap: 16px;
}
.req-badge {
padding: 6px 14px;
border-radius: 4px;
background: #eff6ff;
border: 1px solid rgba(29, 78, 216, .16);
color: #1d4ed8;
font-size: 13px;
font-weight: 850;
letter-spacing: .02em;
}
.header-title-group h2 {
color: #0f172a;
font-size: 20px;
font-weight: 900;
letter-spacing: -.01em;
}
.header-title-group p {
margin-top: 3px;
color: #64748b;
font-size: 13px;
}
.header-right {
display: flex;
align-items: center;
gap: 10px;
}
.close-btn {
width: 36px;
height: 36px;
display: grid;
place-items: center;
border: 1px solid #e2e8f0;
border-radius: 4px;
background: #fff;
color: #64748b;
font-size: 18px;
transition: all 160ms ease;
}
.close-btn:hover {
border-color: #cbd5e1;
background: #f1f5f9;
color: #0f172a;
}
.modal-body {
min-height: 0;
padding: 20px 28px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #cbd5e1 transparent;
}
.ai-entry-grid {
min-height: 100%;
display: grid;
grid-template-columns: minmax(0, 1.2fr) 360px;
gap: 20px;
}
.ai-chat-card,
.ai-preview-card {
min-height: 0;
border-radius: 4px;
background: #fff;
border: 1px solid #edf2f7;
box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.ai-chat-card {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
overflow: hidden;
}
.ai-chat-scroll {
min-height: 0;
display: grid;
align-content: start;
gap: 12px;
padding: 18px;
overflow: auto;
background: #fff;
}
.ai-chat-bubble {
display: grid;
grid-template-columns: 34px minmax(0, 1fr);
gap: 10px;
}
.ai-chat-bubble.user {
grid-template-columns: minmax(0, 1fr) 34px;
}
.ai-chat-bubble.user .ai-chat-avatar {
order: 2;
background: #dbeafe;
color: #2563eb;
}
.ai-chat-bubble.user .ai-chat-content {
order: 1;
justify-self: end;
background: #eff6ff;
}
.ai-chat-avatar {
width: 34px;
height: 34px;
display: grid;
place-items: center;
border-radius: 999px;
background: var(--theme-primary-soft);
color: var(--theme-primary-active);
font-size: 18px;
}
.ai-chat-content {
max-width: min(100%, 640px);
padding: 12px 14px;
border-radius: 4px;
background: #f8fafc;
border: 1px solid #edf2f7;
}
.ai-chat-content header {
margin-bottom: 6px;
}
.ai-chat-content strong {
color: #0f172a;
font-size: 13px;
font-weight: 850;
}
.ai-chat-content p {
color: #334155;
font-size: 13px;
line-height: 1.6;
}
.ai-composer {
display: grid;
gap: 12px;
padding: 14px 16px 16px;
border-top: 1px solid #edf2f7;
background: #fff;
}
.ai-file-input {
display: none;
}
.ai-composer-surface {
min-height: 78px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
gap: 12px;
padding: 8px 8px 8px 14px;
border: 1px solid #cbd8e5;
border-radius: 4px;
background: #fff;
box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.ai-composer-surface:focus-within {
border-color: rgba(var(--theme-primary-rgb), .58);
background: #fff;
box-shadow: 0 0 0 3px var(--theme-focus-ring), 0 10px 24px rgba(15, 23, 42, .06);
}
.ai-composer textarea {
width: 100%;
min-height: 60px;
height: 60px;
resize: none;
border: 0;
border-radius: 0;
padding: 8px 0;
background: transparent;
color: #0f172a;
font-size: 14px;
line-height: 1.6;
}
.ai-composer textarea:focus {
outline: none;
}
.ai-composer-actions {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
padding-bottom: 2px;
}
.ai-upload-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.ai-upload-chip {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 32px;
padding: 0 12px;
border-radius: 4px;
background: #eef6ff;
border: 1px solid #d7e8fb;
color: #334155;
font-size: 12px;
font-weight: 700;
}
.ai-upload-chip i {
color: #2563eb;
}
.ai-upload-btn,
.ai-send-btn {
width: 48px;
height: 48px;
display: grid;
place-items: center;
padding: 0;
border-radius: 4px;
font-size: 20px;
transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}
.ai-upload-btn {
border: 0;
background: #f1f5f9;
color: #475569;
box-shadow: none;
}
.ai-upload-btn:hover {
background: #e2e8f0;
color: #0f172a;
}
.ai-send-btn {
border: 0;
background: var(--theme-primary);
color: #fff;
box-shadow: 0 8px 18px var(--theme-primary-shadow);
}
.ai-send-btn:hover {
background: var(--theme-primary-active);
box-shadow: 0 10px 22px rgba(var(--theme-primary-rgb), .24);
}
.ai-upload-btn:active,
.ai-send-btn:active {
transform: scale(.96);
}
.ai-preview-card {
padding: 18px;
display: grid;
align-content: start;
gap: 16px;
}
.ai-preview-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.ai-preview-head h3 {
margin: 0;
color: #0f172a;
font-size: 16px;
font-weight: 850;
}
.ai-preview-head p {
margin-top: 4px;
color: #64748b;
font-size: 12px;
line-height: 1.5;
}
.ai-preview-fields {
display: grid;
gap: 10px;
}
.preview-field {
padding: 12px 14px;
border-radius: 4px;
background: #f8fafc;
border: 1px solid #edf2f7;
}
.preview-field.full {
min-height: 90px;
}
.preview-field span {
display: block;
color: #64748b;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: .04em;
}
.preview-field strong {
display: block;
margin-top: 5px;
color: #0f172a;
font-size: 14px;
font-weight: 850;
line-height: 1.5;
}
.preview-field p {
margin-top: 4px;
color: #475569;
font-size: 12px;
line-height: 1.55;
}
.ai-preview-empty {
min-height: 280px;
display: grid;
place-items: center;
gap: 10px;
padding: 24px;
border: 1px dashed #cbd5e1;
border-radius: 4px;
color: #94a3b8;
text-align: center;
}
.ai-preview-empty i {
font-size: 32px;
color: var(--theme-primary);
}
.ai-preview-actions {
display: flex;
gap: 10px;
margin-top: 4px;
}
.ai-preview-secondary,
.ai-preview-primary {
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 20px;
border-radius: 4px;
font-size: 13px;
font-weight: 800;
transition: all 180ms ease;
flex: 1;
}
.ai-preview-secondary {
border: 1px solid #fed7aa;
background: #fff7ed;
color: #c2410c;
}
.ai-preview-primary {
border: 1px solid var(--theme-primary);
background: var(--theme-primary);
color: #fff;
box-shadow: 0 8px 20px var(--theme-primary-shadow);
}
.ai-preview-secondary:hover {
background: #ffedd5;
}
.ai-preview-primary:hover {
background: var(--theme-primary-active);
}
.ai-preview-secondary:disabled,
.ai-preview-primary:disabled,
.approve-action:disabled,
.return-action:disabled,
.ai-send-btn:disabled {
opacity: .45;
cursor: not-allowed;
box-shadow: none;
}
.detail-modal-enter-active { transition: opacity 260ms ease; }
.detail-modal-enter-active .detail-modal { transition: transform 320ms cubic-bezier(.2, .8, .2, 1), opacity 280ms ease; }
.detail-modal-leave-active { transition: opacity 200ms ease; }
.detail-modal-leave-active .detail-modal { transition: transform 220ms ease, opacity 200ms ease; }
.detail-modal-enter-from { opacity: 0; }
.detail-modal-enter-from .detail-modal { transform: translateY(16px); opacity: 0; }
.detail-modal-leave-to { opacity: 0; }
.detail-modal-leave-to .detail-modal { transform: translateY(8px); opacity: 0; }
@media (max-width: 1320px) {
.hero-banner-main {
grid-template-columns: 1fr;
gap: 16px;
min-height: 0;
}
.hero-fact-grid {
grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(0, 1fr));
overflow: visible;
}
.hero-fact {
min-width: 0;
padding-inline: 16px;
}
.hero-fact strong {
white-space: nowrap;
word-break: normal;
}
.detail-expense-table {
overflow-x: auto;
}
.detail-expense-table table {
min-width: 1080px;
}
.ai-entry-grid {
grid-template-columns: 1fr;
}
.detail-modal {
width: calc(100vw - 40px);
height: calc(100vh - 40px);
}
}
@media (max-width: 760px) {
.detail-hero { gap: 10px; padding: 16px; }
.progress-card { padding: 16px; }
.applicant-card {
grid-template-columns: 60px minmax(0, 1fr);
gap: 12px;
}
.portrait {
width: 60px;
height: 60px;
}
.applicant-copy {
gap: 8px;
}
.applicant-card h2 {
font-size: 16px;
}
.applicant-profile-meta {
display: grid;
gap: 10px;
}
.applicant-profile-meta__role {
display: grid;
gap: 6px;
}
.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item {
margin-left: 0;
}
.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item::before {
content: none;
}
.hero-fact-grid {
grid-template-columns: 1fr 1fr;
gap: 0;
overflow: hidden;
border-top: 1px solid #edf2f7;
}
.hero-fact {
min-width: 0;
min-height: 78px;
padding: 14px 12px 12px;
border-left: 0;
border-bottom: 1px solid #edf2f7;
}
.hero-fact:nth-child(2n) {
border-left: 1px solid #edf2f7;
}
.hero-fact:last-child:nth-child(odd) {
grid-column: 1 / -1;
}
.hero-fact:nth-last-child(-n + 2) {
border-bottom: 0;
}
.hero-fact strong {
white-space: normal;
}
.application-detail-facts {
grid-template-columns: 1fr;
}
.application-detail-fact {
border-left: 0;
}
.application-detail-fact:nth-child(2) {
border-top: 1px solid #edf2f7;
}
.detail-card {
padding: 14px 16px;
}
.detail-card-head {
flex-direction: column;
align-items: stretch;
}
.detail-card-actions {
width: 100%;
justify-content: flex-start;
}
.smart-entry-btn { align-self: flex-start; }
.detail-expense-table table {
min-width: 1080px;
}
.detail-actions {
flex-direction: column;
}
.approval-action-group {
width: 100%;
}
.validation-head {
flex-direction: column;
}
.detail-modal {
width: 100vw;
height: 100vh;
max-width: 100vw;
max-height: 100vh;
border-radius: 0;
}
.modal-header { padding: 16px 18px; flex-wrap: wrap; }
.modal-body { padding: 16px 18px; }
.ai-composer-actions { flex-direction: column; align-items: stretch; }
.ai-preview-actions { flex-direction: column; }
.attachment-preview-mask {
padding: 14px;
}
.attachment-preview-card {
width: min(calc(100vw - 28px), 920px);
max-height: calc(100vh - 28px);
padding: 18px;
border-radius: 4px;
}
.attachment-preview-head {
flex-wrap: wrap;
}
.attachment-preview-toolbar {
order: 2;
width: 100%;
justify-content: flex-start;
}
.attachment-preview-body {
grid-template-columns: minmax(0, 1fr);
}
.attachment-insight-pane {
max-height: 320px;
}
.risk-advice-meta {
grid-template-columns: minmax(0, 1fr);
}
.attachment-preview-image,
.attachment-preview-frame {
min-height: 360px;
}
}
.validation-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.validation-head h3 {
margin-bottom: 4px;
color: #0f172a;
font-size: 15px;
font-weight: 800;
}
.validation-head p {
margin: 0;
color: #64748b;
font-size: 12px;
line-height: 1.55;
}
.validation-pill {
min-height: 24px;
display: inline-flex;
align-items: center;
padding: 0 10px;
border-radius: 4px;
border: 1px solid transparent;
font-size: 11px;
font-weight: 800;
}
.validation-pill.ready {
background: var(--success-soft);
border-color: var(--success-line);
color: var(--success-active);
}