feat: 增强风险规则生成引擎与预算中心页面
后端拆分风险规则生成为解释器、语义分析、本体对齐等子模块, 优化模板执行和流程图生成,完善员工种子数据和导入逻辑,增强 报销单权限策略和草稿持久化,前端新增预算中心视图和趋势图 组件,重构审计页面和风险规则测试对话框交互,完善文档中心 和报销创建页面细节,补充单元测试覆盖。
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
.risk-sim-context-panel span,
|
||||
.risk-sim-result-head span,
|
||||
.risk-sim-evidence span,
|
||||
.risk-sim-recognition-debug > span,
|
||||
.risk-sim-recognized-fields > span,
|
||||
.risk-sim-file-strip > span {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
@@ -115,6 +117,12 @@
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.risk-sim-meta .tone-critical {
|
||||
border-color: #fca5a5;
|
||||
background: #fff1f2;
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
.risk-sim-main {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
@@ -263,6 +271,78 @@
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.risk-sim-recognition-debug {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin-top: 11px;
|
||||
}
|
||||
|
||||
.risk-sim-recognition-debug article {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 10px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.risk-sim-recognition-debug article header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.risk-sim-recognition-debug article header strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #0f172a;
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.risk-sim-recognition-debug article header em {
|
||||
flex: 0 0 auto;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.risk-sim-debug-field-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.risk-sim-debug-field-list b {
|
||||
max-width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 26px;
|
||||
padding: 0 8px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #dbeafe;
|
||||
border-radius: 999px;
|
||||
background: #eff6ff;
|
||||
color: #1d4ed8;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.risk-sim-debug-ocr-text {
|
||||
max-height: 112px;
|
||||
overflow: auto;
|
||||
padding: 8px 9px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.risk-sim-result-card {
|
||||
margin-top: 12px;
|
||||
overflow: hidden;
|
||||
@@ -364,6 +444,53 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.risk-sim-recognized-fields {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
padding: 0 12px 12px;
|
||||
}
|
||||
|
||||
.risk-sim-recognized-fields ul {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.risk-sim-recognized-fields li {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(140px, 0.75fr) auto minmax(130px, 1fr);
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 8px 9px;
|
||||
border: 1px solid #edf2f7;
|
||||
border-radius: 10px;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.risk-sim-recognized-fields strong,
|
||||
.risk-sim-recognized-fields b {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #0f172a;
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.risk-sim-recognized-fields em {
|
||||
padding: 3px 7px;
|
||||
border-radius: 999px;
|
||||
background: #ecfdf5;
|
||||
color: #047857;
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
font-weight: 850;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.risk-sim-evidence {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
@@ -730,6 +857,10 @@
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.risk-sim-recognized-fields li {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.risk-sim-foot {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -935,6 +935,7 @@
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.risk-rule-create-form input:not([type='checkbox']),
|
||||
.risk-rule-create-form select,
|
||||
.risk-rule-create-form textarea {
|
||||
width: 100%;
|
||||
@@ -945,6 +946,7 @@
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.risk-rule-create-form input:not([type='checkbox']),
|
||||
.risk-rule-create-form select {
|
||||
min-height: 42px;
|
||||
padding: 0 12px;
|
||||
@@ -957,6 +959,7 @@
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.risk-rule-create-form input:not([type='checkbox']):focus,
|
||||
.risk-rule-create-form select:focus,
|
||||
.risk-rule-create-form textarea:focus {
|
||||
outline: 0;
|
||||
@@ -964,6 +967,7 @@
|
||||
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
|
||||
}
|
||||
|
||||
.risk-rule-create-form input:not([type='checkbox'])::placeholder,
|
||||
.risk-rule-create-form textarea::placeholder {
|
||||
color: #94a3b8;
|
||||
}
|
||||
@@ -1045,6 +1049,118 @@
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.risk-level-switch {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action b {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 20px;
|
||||
padding: 0 7px;
|
||||
border-radius: 999px;
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action.low {
|
||||
border-color: rgba(37, 99, 235, 0.22);
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action.low b {
|
||||
background: #eff6ff;
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action.medium {
|
||||
border-color: rgba(249, 115, 22, 0.26);
|
||||
color: #c2410c;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action.medium b {
|
||||
background: #fff7ed;
|
||||
color: #c2410c;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action.high {
|
||||
border-color: rgba(220, 38, 38, 0.22);
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.minor-action.risk-level-action.high b {
|
||||
background: #fef2f2;
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.risk-level-menu {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: calc(100% + 8px);
|
||||
z-index: 35;
|
||||
width: 146px;
|
||||
padding: 6px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
|
||||
}
|
||||
|
||||
.risk-level-option {
|
||||
width: 100%;
|
||||
min-height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 9px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: #334155;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.risk-level-option:hover,
|
||||
.risk-level-option.active {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.risk-level-option:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
.risk-level-option i {
|
||||
margin-left: auto;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.risk-level-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #94a3b8;
|
||||
}
|
||||
|
||||
.risk-level-option.low .risk-level-dot {
|
||||
background: #2563eb;
|
||||
}
|
||||
|
||||
.risk-level-option.medium .risk-level-dot {
|
||||
background: #f97316;
|
||||
}
|
||||
|
||||
.risk-level-option.high .risk-level-dot {
|
||||
background: #dc2626;
|
||||
}
|
||||
|
||||
.minor-action.danger-action {
|
||||
border-color: rgba(220, 38, 38, 0.2);
|
||||
color: #dc2626;
|
||||
@@ -1174,6 +1290,8 @@
|
||||
.search-filter,
|
||||
.picker-trigger,
|
||||
.picker-filter,
|
||||
.risk-level-switch,
|
||||
.risk-level-switch .minor-action,
|
||||
.toolbar-actions > * {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1303,6 +1421,62 @@
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.json-risk-score-ring {
|
||||
--score-ring: #f97316;
|
||||
--score-ring-bg: #fff7ed;
|
||||
flex: 0 0 auto;
|
||||
width: 82px;
|
||||
height: 82px;
|
||||
border-radius: 999px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
gap: 1px;
|
||||
border: 2px solid var(--score-ring);
|
||||
background: var(--score-ring-bg);
|
||||
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
.json-risk-score-ring strong {
|
||||
color: #0f172a;
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.json-risk-score-ring span,
|
||||
.json-risk-score-ring em {
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.json-risk-score-ring em {
|
||||
color: var(--score-ring);
|
||||
}
|
||||
|
||||
.json-risk-score-ring.low {
|
||||
--score-ring: #2563eb;
|
||||
--score-ring-bg: #eff6ff;
|
||||
}
|
||||
|
||||
.json-risk-score-ring.medium {
|
||||
--score-ring: #f97316;
|
||||
--score-ring-bg: #fff7ed;
|
||||
}
|
||||
|
||||
.json-risk-score-ring.high {
|
||||
--score-ring: #dc2626;
|
||||
--score-ring-bg: #fef2f2;
|
||||
}
|
||||
|
||||
.json-risk-score-ring.critical {
|
||||
--score-ring: #991b1b;
|
||||
--score-ring-bg: #fff1f2;
|
||||
}
|
||||
|
||||
.json-risk-editor-title {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
@@ -1423,6 +1597,55 @@
|
||||
padding: 0 2px 2px 0;
|
||||
}
|
||||
|
||||
.json-risk-generation-failure {
|
||||
min-height: 360px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
gap: 14px;
|
||||
padding: 44px 24px;
|
||||
border: 1px solid #fecaca;
|
||||
border-radius: 12px;
|
||||
background: #fffafa;
|
||||
text-align: center;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.json-risk-generation-failure i {
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 18px;
|
||||
background: #fef2f2;
|
||||
color: #dc2626;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.json-risk-generation-failure h3 {
|
||||
margin: 0;
|
||||
color: #991b1b;
|
||||
font-size: 18px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.json-risk-generation-failure p {
|
||||
max-width: 520px;
|
||||
margin: 8px auto 0;
|
||||
color: #475569;
|
||||
font-size: 13px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.json-risk-generation-failure small {
|
||||
display: block;
|
||||
max-width: 640px;
|
||||
margin-top: 12px;
|
||||
color: #b91c1c;
|
||||
line-height: 1.6;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.json-risk-main-stage {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
@@ -1521,14 +1744,19 @@
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.json-risk-meta-badge.critical {
|
||||
background: #fff1f2;
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
.json-risk-meta-badge.medium {
|
||||
background: #fff7ed;
|
||||
color: #ea580c;
|
||||
}
|
||||
|
||||
.json-risk-meta-badge.low {
|
||||
background: #ecfdf5;
|
||||
color: #059669;
|
||||
background: #eff6ff;
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
.json-risk-meta-badge.test-passed {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
499
web/src/assets/styles/views/budget-center-view.css
Normal file
499
web/src/assets/styles/views/budget-center-view.css
Normal file
@@ -0,0 +1,499 @@
|
||||
.budget-center-page {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
.budget-local-head {
|
||||
min-height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.budget-local-head h2 {
|
||||
margin: 0;
|
||||
color: #111827;
|
||||
font-size: 24px;
|
||||
line-height: 1.2;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-summary-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
border: 1px solid #e5eaf1;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.budget-summary-card {
|
||||
min-height: 118px;
|
||||
padding: 22px 28px;
|
||||
display: grid;
|
||||
grid-template-columns: 64px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
border-right: 1px solid #edf1f6;
|
||||
}
|
||||
|
||||
.budget-summary-card:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.summary-icon {
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
border-radius: 50%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.summary-icon.green {
|
||||
background: #e8f7ef;
|
||||
color: #07965f;
|
||||
}
|
||||
|
||||
.summary-icon.blue {
|
||||
background: #edf4ff;
|
||||
color: #2f7fd7;
|
||||
}
|
||||
|
||||
.summary-icon.orange {
|
||||
background: #fff4e5;
|
||||
color: #df9300;
|
||||
}
|
||||
|
||||
.budget-summary-card span:not(.summary-icon) {
|
||||
display: block;
|
||||
color: #1f2937;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.budget-summary-card strong {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
color: #111827;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.budget-summary-card em {
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
color: #8a94a6;
|
||||
font-size: 13px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.budget-filter-bar {
|
||||
min-height: 62px;
|
||||
border: 1px solid #e5eaf1;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
padding: 12px 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
.budget-filter-bar label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: #1f2937;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.budget-filter-bar select,
|
||||
.budget-table-foot select {
|
||||
height: 34px;
|
||||
min-width: 150px;
|
||||
border: 1px solid #dbe2ec;
|
||||
border-radius: 5px;
|
||||
background: #fff;
|
||||
color: #1f2937;
|
||||
padding: 0 34px 0 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.budget-primary-btn {
|
||||
margin-left: auto;
|
||||
height: 36px;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
background: #0aa66f;
|
||||
color: #fff;
|
||||
padding: 0 18px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-work-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 240px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.budget-department-panel,
|
||||
.budget-table-panel,
|
||||
.budget-chart-panel,
|
||||
.budget-alert-panel {
|
||||
border: 1px solid #e5eaf1;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.budget-department-panel header,
|
||||
.budget-table-panel > header,
|
||||
.budget-card-head {
|
||||
min-height: 48px;
|
||||
padding: 13px 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #edf1f6;
|
||||
}
|
||||
|
||||
.budget-department-panel strong,
|
||||
.budget-table-panel > header strong,
|
||||
.budget-card-head strong {
|
||||
color: #111827;
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.department-search {
|
||||
position: relative;
|
||||
margin: 12px 14px 8px;
|
||||
}
|
||||
|
||||
.department-search i {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #9aa5b5;
|
||||
}
|
||||
|
||||
.department-search input {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 5px;
|
||||
padding: 0 12px 0 34px;
|
||||
background: #fff;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
.department-list {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 8px 12px 16px;
|
||||
}
|
||||
|
||||
.department-list button {
|
||||
height: 38px;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
background: transparent;
|
||||
color: #4b5563;
|
||||
padding: 0 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.department-list button.active {
|
||||
background: #e9f7f1;
|
||||
color: #07965f;
|
||||
}
|
||||
|
||||
.budget-table-wrap {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.budget-table-panel table {
|
||||
width: 100%;
|
||||
min-width: 1040px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.budget-table-panel th,
|
||||
.budget-table-panel td {
|
||||
padding: 13px 18px;
|
||||
border-bottom: 1px solid #edf1f6;
|
||||
border-right: 1px solid #edf1f6;
|
||||
color: #273142;
|
||||
font-size: 14px;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.budget-table-panel th:last-child,
|
||||
.budget-table-panel td:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.budget-table-panel th {
|
||||
background: #fafbfd;
|
||||
color: #1f2937;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-rate {
|
||||
width: 96px;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.budget-rate span {
|
||||
color: #273142;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.budget-rate div {
|
||||
height: 6px;
|
||||
border-radius: 999px;
|
||||
background: #e9edf3;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.budget-rate em {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.budget-rate em.ok {
|
||||
background: #13a66b;
|
||||
}
|
||||
|
||||
.budget-rate em.warn {
|
||||
background: #f2a51a;
|
||||
}
|
||||
|
||||
.budget-rate em.danger {
|
||||
background: #ef4444;
|
||||
}
|
||||
|
||||
.budget-warning-red {
|
||||
color: #e24b4b !important;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-warning-yellow {
|
||||
color: #e3a008 !important;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-row-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.budget-row-actions button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #1c7ed6;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-table-foot {
|
||||
min-height: 52px;
|
||||
padding: 10px 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.budget-table-foot button {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: 1px solid #dbe2ec;
|
||||
border-radius: 5px;
|
||||
background: #fff;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.budget-table-foot button.active {
|
||||
border-color: #10a873;
|
||||
color: #10a873;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-table-foot span {
|
||||
color: #4b5563;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.budget-bottom-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.budget-card-head button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #1c7ed6;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-chart-legend {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 22px;
|
||||
color: #4b5563;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.budget-chart-legend span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.legend-line {
|
||||
width: 18px;
|
||||
height: 0;
|
||||
border-top: 2px dashed #2f7fd7;
|
||||
}
|
||||
|
||||
.legend-line.used {
|
||||
border-top-style: solid;
|
||||
border-top-color: #13a66b;
|
||||
}
|
||||
|
||||
.budget-chart-panel {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.budget-chart-panel .budget-trend-chart {
|
||||
margin: 12px 18px 0;
|
||||
}
|
||||
|
||||
.budget-alert-list {
|
||||
display: grid;
|
||||
padding: 12px 20px 18px;
|
||||
}
|
||||
|
||||
.budget-alert-row {
|
||||
min-height: 46px;
|
||||
display: grid;
|
||||
grid-template-columns: 12px 120px minmax(0, 1fr) 92px;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #edf1f6;
|
||||
}
|
||||
|
||||
.budget-alert-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.budget-alert-row i {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.budget-alert-row i.danger {
|
||||
background: #ef4444;
|
||||
}
|
||||
|
||||
.budget-alert-row i.warn {
|
||||
background: #f59e0b;
|
||||
}
|
||||
|
||||
.budget-alert-row i.ok {
|
||||
background: #13a66b;
|
||||
}
|
||||
|
||||
.budget-alert-row strong {
|
||||
color: #273142;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-alert-row span {
|
||||
min-width: 0;
|
||||
color: #4b5563;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.budget-alert-row time {
|
||||
color: #6b7280;
|
||||
font-size: 13px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.budget-summary-grid,
|
||||
.budget-bottom-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.budget-work-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.budget-department-panel {
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.department-list {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.budget-summary-grid,
|
||||
.budget-bottom-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.budget-filter-bar {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.budget-filter-bar label,
|
||||
.budget-filter-bar select,
|
||||
.budget-primary-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.department-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.budget-alert-row {
|
||||
grid-template-columns: 12px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.budget-alert-row span,
|
||||
.budget-alert-row time {
|
||||
grid-column: 2;
|
||||
}
|
||||
}
|
||||
@@ -647,6 +647,10 @@
|
||||
box-shadow: 0 10px 22px rgba(226, 232, 240, 0.48);
|
||||
}
|
||||
|
||||
.message-bubble-application-preview {
|
||||
max-width: min(100%, 980px);
|
||||
}
|
||||
|
||||
.message-bubble-review-risk-low {
|
||||
border-color: rgba(37, 99, 235, 0.72);
|
||||
background: linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.96));
|
||||
@@ -759,6 +763,170 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.application-preview-table {
|
||||
margin-top: 12px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d7e4f2;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
color: #334155;
|
||||
font-size: var(--wb-fs-bubble);
|
||||
}
|
||||
|
||||
.application-preview-footer {
|
||||
margin-top: 12px;
|
||||
color: #334155;
|
||||
font-size: var(--wb-fs-bubble);
|
||||
line-height: 1.58;
|
||||
}
|
||||
|
||||
.application-preview-row {
|
||||
display: grid;
|
||||
grid-template-columns: 108px minmax(0, 1fr);
|
||||
min-height: 38px;
|
||||
border-top: 1px solid #e6edf5;
|
||||
}
|
||||
|
||||
.application-preview-row.editable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.application-preview-row.editable:hover {
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
.application-preview-row.editable:hover .application-preview-label,
|
||||
.application-preview-row.editable:hover .application-preview-value {
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
.application-preview-row.editable.missing:hover .application-preview-value {
|
||||
background: #fff4e6;
|
||||
}
|
||||
|
||||
.application-preview-row.editable:focus-visible {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
outline: 2px solid rgba(37, 99, 235, 0.45);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.application-preview-row:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.application-preview-row.head {
|
||||
min-height: 34px;
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
font-size: var(--wb-fs-caption);
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.application-preview-row > span {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.application-preview-label {
|
||||
border-right: 1px solid #e6edf5;
|
||||
background: #fbfdff;
|
||||
color: #64748b;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.application-preview-value {
|
||||
position: relative;
|
||||
gap: 8px;
|
||||
color: #0f172a;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.application-preview-row.missing .application-preview-value {
|
||||
background: #fff7ed;
|
||||
color: #b45309;
|
||||
}
|
||||
|
||||
.application-preview-row.highlight .application-preview-label {
|
||||
background: #f0fdf4;
|
||||
color: #047857;
|
||||
}
|
||||
|
||||
.application-preview-row.highlight .application-preview-value {
|
||||
background: #f7fee7;
|
||||
color: #166534;
|
||||
font-weight: 780;
|
||||
}
|
||||
|
||||
.application-preview-row.highlight.missing .application-preview-value {
|
||||
background: #fff7ed;
|
||||
color: #b45309;
|
||||
}
|
||||
|
||||
.application-preview-text {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.application-preview-edit-btn {
|
||||
flex: 0 0 auto;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
background: #eff6ff;
|
||||
color: #2563eb;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease;
|
||||
}
|
||||
|
||||
.application-preview-edit-btn i {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.application-preview-row:hover .application-preview-edit-btn,
|
||||
.application-preview-edit-btn:focus-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.application-preview-edit-btn:hover:not(:disabled),
|
||||
.application-preview-edit-btn:focus-visible {
|
||||
border-color: #bfdbfe;
|
||||
background: #dbeafe;
|
||||
}
|
||||
|
||||
.application-preview-edit-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.42;
|
||||
}
|
||||
|
||||
.application-preview-input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 30px;
|
||||
border: 1px solid #93c5fd;
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
color: #0f172a;
|
||||
font: inherit;
|
||||
font-weight: 650;
|
||||
line-height: 1.2;
|
||||
padding: 0 9px;
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
|
||||
}
|
||||
|
||||
.application-preview-select {
|
||||
cursor: pointer;
|
||||
appearance: auto;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(ul),
|
||||
.message-answer-markdown :deep(ol) {
|
||||
margin: 0;
|
||||
|
||||
@@ -725,12 +725,18 @@
|
||||
}
|
||||
|
||||
.hero-fact-grid {
|
||||
grid-template-columns: repeat(5, minmax(132px, 1fr));
|
||||
overflow-x: auto;
|
||||
grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(0, 1fr));
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.hero-fact {
|
||||
min-width: 132px;
|
||||
min-width: 0;
|
||||
padding-inline: 16px;
|
||||
}
|
||||
|
||||
.hero-fact strong {
|
||||
white-space: nowrap;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
.detail-expense-table {
|
||||
@@ -822,6 +828,18 @@
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
|
||||
.hero-fact-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(0, 1fr));
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
@@ -216,13 +216,20 @@
|
||||
}
|
||||
|
||||
.hero-fact strong {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
color: #0f172a;
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hero-fact:first-child strong {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.hero-fact strong.amount {
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
@@ -489,6 +496,20 @@
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.detail-card-title-with-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.detail-card-title-with-icon i {
|
||||
margin-top: 1px;
|
||||
color: #334155;
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.detail-card-head p {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
@@ -571,6 +592,70 @@
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.application-detail-facts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
margin-top: 4px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.application-detail-fact {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(96px, 28%) minmax(0, 1fr);
|
||||
min-height: 48px;
|
||||
border-top: 1px solid #edf2f7;
|
||||
border-left: 1px solid #edf2f7;
|
||||
}
|
||||
|
||||
.application-detail-fact:nth-child(-n + 2) {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.application-detail-fact:nth-child(2n + 1) {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.application-detail-fact span,
|
||||
.application-detail-fact strong {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
padding: 11px 14px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.application-detail-fact span {
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.application-detail-fact strong {
|
||||
border-left: 1px solid #edf2f7;
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
font-weight: 750;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.application-detail-fact.highlight span {
|
||||
background: #eefcf6;
|
||||
color: #047857;
|
||||
}
|
||||
|
||||
.application-detail-fact.highlight strong {
|
||||
background: #f6fef9;
|
||||
}
|
||||
|
||||
.application-detail-fact.emphasis strong {
|
||||
color: #047857;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.detail-note-editor {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
@@ -640,6 +725,54 @@
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
|
||||
.application-leader-opinion {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.application-leader-opinion-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
color: #475569;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.application-leader-opinion-head span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #0f172a;
|
||||
font-weight: 850;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.application-leader-opinion-head span i {
|
||||
margin-top: 1px;
|
||||
color: #334155;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.application-leader-opinion-head strong {
|
||||
color: #047857;
|
||||
font-weight: 800;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.inline-leader-opinion {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.application-leader-opinion-display {
|
||||
min-height: 64px;
|
||||
}
|
||||
|
||||
.detail-expense-table {
|
||||
min-width: 0;
|
||||
overflow-x: auto;
|
||||
|
||||
Reference in New Issue
Block a user