| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738 |
- :root {
- --primary: #10b981;
- --primary-dark: #059669;
- --primary-bg: #ecfdf5;
- --success: #059669;
- --success-bg: #ecfdf5;
- --warning: #d97706;
- --warning-bg: #fffbeb;
- --danger: #dc2626;
- --danger-bg: #fef2f2;
- --info: #64748b;
- --info-bg: #f8fafc;
- --text: #1e293b;
- --text-muted: #64748b;
- --border: #d9e8e2;
- --bg-page: #fefefe;
- --surface: #ffffff;
- --table-head: #f8fafc;
- --row-alt: #fafafa;
- --row-hover: #f1f5f9;
- --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
- --radius: 10px;
- --radius-md: 8px;
- --control-h: 36px;
- /* Element Plus 全局主题色(fresh-mint-green 对齐) */
- --el-color-primary: var(--primary);
- --el-color-primary-dark-2: var(--primary-dark);
- --el-color-primary-light-3: #34d399;
- --el-color-primary-light-5: #66d9b3;
- --el-color-primary-light-7: #99e9cb;
- --el-color-primary-light-8: #c5f3e2;
- --el-color-primary-light-9: var(--primary-bg);
- --el-color-success: var(--success);
- --el-color-success-dark-2: #0b5e58;
- --el-color-success-light-3: #34b6ad;
- --el-color-success-light-5: #7dd3c7;
- --el-color-success-light-7: #a7f3d0;
- --el-color-success-light-8: #d1fae5;
- --el-color-success-light-9: var(--success-bg);
- --el-color-warning: var(--warning);
- --el-color-warning-dark-2: #b45309;
- --el-color-warning-light-3: #f59e0b;
- --el-color-warning-light-5: #fbbf24;
- --el-color-warning-light-7: #fde68a;
- --el-color-warning-light-8: #fef3c7;
- --el-color-warning-light-9: var(--warning-bg);
- --el-color-danger: var(--danger);
- --el-color-danger-dark-2: #b91c1c;
- --el-color-danger-light-3: #ef4444;
- --el-color-danger-light-5: #f87171;
- --el-color-danger-light-7: #fca5a5;
- --el-color-danger-light-8: #fecaca;
- --el-color-danger-light-9: var(--danger-bg);
- --el-color-info: var(--info);
- --el-color-info-dark-2: #115e59;
- --el-color-info-light-3: #14b8a6;
- --el-color-info-light-5: #2dd4bf;
- --el-color-info-light-7: #5eead4;
- --el-color-info-light-8: #99f6e4;
- --el-color-info-light-9: var(--info-bg);
- --el-text-color-primary: var(--text);
- --el-text-color-regular: var(--text-muted);
- --el-border-color: var(--border);
- --el-border-color-light: #edf0f3;
- --el-fill-color-light: #f8fafc;
- --el-bg-color: var(--surface);
- }
- * {
- box-sizing: border-box;
- }
- button,
- [role="button"],
- .el-button,
- a,
- .menu-link,
- .tab-chip,
- .tab-close,
- .icon-btn,
- .bx-btn,
- .bx-op-btn,
- summary,
- .nav-details > summary {
- cursor: default;
- }
- body {
- margin: 0;
- min-height: 100vh;
- font-family: Inter, -apple-system, sans-serif;
- font-size: 14px;
- line-height: 1.5;
- color: var(--text);
- background: var(--bg-page);
- }
- #app {
- min-height: 100vh;
- }
- .bx-layout {
- display: flex;
- height: 100vh;
- min-height: 0;
- overflow: hidden;
- }
- .sidebar {
- width: 220px;
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- min-height: 0;
- background: var(--surface);
- border-right: 1px solid var(--border);
- padding: 24px 16px;
- transition: width 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
- overflow: hidden;
- }
- /* 侧栏菜单区单独纵向滚动(logo 固定) */
- .sidebar > .el-scrollbar {
- flex: 1;
- min-height: 0;
- }
- .sidebar.collapsed {
- width: 0;
- padding-left: 0;
- padding-right: 0;
- border-right-color: transparent;
- }
- .logo {
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- font-size: 16px;
- font-weight: 700;
- color: var(--text-muted);
- padding: 0 12px 20px;
- margin-bottom: 8px;
- border-bottom: 1px solid var(--border);
- }
- .logo-mark {
- flex-shrink: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- max-height: 40px;
- }
- .logo-img {
- display: block;
- height: 36px;
- width: auto;
- max-width: min(100%, 180px);
- object-fit: contain;
- }
- .logo-title {
- color: var(--primary);
- font-weight: 700;
- letter-spacing: 0.02em;
- font-size: 18px;
- line-height: 1.2;
- text-align: center;
- }
- .nav-tree {
- padding-bottom: 8px;
- }
- .nav-details {
- border: none;
- margin: 0 0 4px;
- padding: 0;
- }
- .nav-details > summary {
- list-style: none;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 8px 12px;
- margin: 0;
- border-radius: var(--radius);
- font-size: 12px;
- font-weight: 700;
- color: var(--text-muted);
- letter-spacing: 0.02em;
- user-select: none;
- }
- .nav-details > summary::-webkit-details-marker {
- display: none;
- }
- .nav-details > summary::after {
- content: "";
- width: 6px;
- height: 6px;
- border-right: 2px solid var(--text-muted);
- border-bottom: 2px solid var(--text-muted);
- transform: rotate(-45deg);
- transition: transform 0.2s ease, border-color 0.15s ease;
- }
- .nav-details[open] > summary::after {
- transform: rotate(45deg);
- margin-top: -2px;
- }
- .nav-details > summary:hover {
- background: var(--row-alt);
- color: var(--text);
- }
- .nav-details > summary:hover::after {
- border-right-color: var(--text);
- border-bottom-color: var(--text);
- }
- .nav-summary-main {
- display: flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- flex: 1;
- }
- .nav-summary-text {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .nav-summary-ico {
- flex-shrink: 0;
- font-size: 16px;
- color: var(--text-muted);
- }
- .nav-details > summary:hover .nav-summary-ico {
- color: var(--text);
- }
- .nav-sub {
- padding: 2px 0 6px 4px;
- margin-left: 4px;
- border-left: 2px solid var(--border);
- }
- .nav-sub .nav-sub {
- margin-left: 10px;
- padding-left: 8px;
- border-left-style: dashed;
- border-left-width: 1px;
- }
- .nav-sub .nav-details > summary {
- font-size: 12px;
- font-weight: 600;
- padding: 6px 10px;
- }
- .menu-link {
- display: flex;
- align-items: center;
- gap: 8px;
- margin: 2px 0;
- padding: 8px 12px 8px 14px;
- border-radius: var(--radius);
- color: var(--text-muted);
- text-decoration: none;
- font-size: 13px;
- font-weight: 500;
- }
- .menu-link-ico {
- flex-shrink: 0;
- font-size: 16px;
- color: var(--text-muted);
- }
- .menu-link-text {
- min-width: 0;
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .menu-link:hover {
- background: var(--row-alt);
- color: var(--text);
- }
- .menu-link:hover .menu-link-ico {
- color: var(--text);
- }
- .menu-link.active {
- background: var(--primary-bg);
- color: var(--primary-dark);
- font-weight: 600;
- }
- .menu-link.active .menu-link-ico {
- color: var(--primary-dark);
- }
- /* 根级单菜单(无二级,如首页) */
- .menu-link.menu-link--l1-root {
- margin: 0 0 4px;
- padding: 8px 12px;
- font-size: 12px;
- font-weight: 700;
- letter-spacing: 0.02em;
- }
- .main {
- flex: 1;
- min-width: 0;
- min-height: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .main > .header {
- flex-shrink: 0;
- height: 56px;
- padding: 0 24px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: var(--primary-dark);
- border-bottom: 1px solid #047857;
- }
- .main > .header .crumb {
- color: rgba(255, 255, 255, 0.82);
- }
- .main > .header .crumb b {
- color: #fff;
- }
- .main > .header .icon-btn {
- color: rgba(255, 255, 255, 0.88);
- }
- .main > .header .icon-btn:hover {
- color: #fff;
- background: rgba(255, 255, 255, 0.14);
- }
- .main > .header .user-trigger {
- color: #fff;
- background: transparent;
- }
- .main > .header .user-trigger:hover {
- background: transparent;
- }
- .main > .header .user-avatar {
- box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
- }
- .header-left {
- display: flex;
- align-items: center;
- gap: 3px;
- min-width: 0;
- }
- .header-actions {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- flex-shrink: 0;
- }
- .icon-btn {
- appearance: none;
- border: none;
- color: var(--text-muted);
- width: 32px;
- height: 32px;
- border-radius: 8px;
- padding: 0;
- margin: 0;
- box-shadow: none;
- background: transparent;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- }
- .icon-btn:hover {
- color: var(--text);
- background: var(--row-alt);
- }
- .icon-btn .el-icon {
- width: auto;
- height: auto;
- padding: 0;
- margin: 0;
- line-height: 1;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- flex: 0 0 auto;
- }
- .icon-btn .el-icon svg {
- width: 20px;
- height: 20px;
- padding: 0;
- margin: 0;
- display: block;
- }
- .crumb {
- font-size: 13px;
- color: var(--text-muted);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .crumb b {
- color: var(--text);
- font-weight: 600;
- }
- .header-right {
- position: relative;
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .user-trigger {
- appearance: none;
- border: none;
- color: var(--text);
- font-size: 13px;
- font-weight: 600;
- padding: 4px 8px 4px 4px;
- border-radius: 999px;
- background: transparent;
- box-shadow: none;
- margin: 0;
- min-height: auto;
- display: inline-flex;
- align-items: center;
- gap: 8px;
- cursor: pointer;
- }
- .user-trigger:hover {
- background: var(--row-alt);
- }
- .user-avatar {
- width: 24px;
- height: 24px;
- border-radius: 50%;
- color: #fff;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- font-size: 12px;
- font-weight: 700;
- }
- .user-name {
- font-size: 13px;
- font-weight: 600;
- line-height: 1;
- }
- .content {
- flex: 1;
- min-height: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- padding: 24px;
- background: var(--bg-page);
- }
- /* 右侧业务内容区单独纵向滚动(页签条固定在上) */
- .content-scroll {
- flex: 1;
- min-height: 0;
- overflow-x: hidden;
- overflow-y: auto;
- }
- .tabs-strip {
- display: flex;
- flex-wrap: wrap;
- align-items: flex-end;
- gap: 4px;
- margin: 0 0 16px;
- padding: 0 2px 10px;
- border-bottom: 1px solid var(--border);
- }
- .tab-chip {
- border: 1px solid var(--border);
- background: var(--surface);
- color: var(--text-muted);
- font-size: 13px;
- font-weight: 600;
- padding: 8px 14px;
- border-radius: 8px 8px 0 0;
- margin-bottom: -11px;
- display: inline-flex;
- align-items: center;
- gap: 6px;
- max-width: 220px;
- cursor: pointer;
- }
- .tab-chip:hover {
- color: var(--text);
- background: var(--row-alt);
- }
- .tab-chip.active {
- color: var(--primary-dark);
- border-bottom-color: var(--surface);
- box-shadow: 0 -2px 0 var(--primary) inset;
- }
- .tab-chip .tab-close:hover {
- opacity: 1;
- background: rgba(100, 116, 139, 0.14);
- }
- .tab-label {
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .tab-close {
- width: 16px;
- height: 16px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: inherit;
- opacity: 0.7;
- cursor: pointer;
- padding: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- }
- .tab-close .el-icon {
- width: 12px;
- height: 12px;
- }
- .tab-context-menu {
- position: fixed;
- z-index: 1000;
- width: max-content;
- border: 1px solid var(--border);
- border-radius: 10px;
- background: var(--surface);
- box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
- padding: 6px;
- }
- .menu-item {
- width: auto;
- display: block;
- border: 0;
- background: transparent;
- text-align: left;
- color: var(--text);
- padding: 8px 10px;
- border-radius: 8px;
- font-size: 13px;
- cursor: pointer;
- white-space: nowrap;
- }
- .menu-item:hover {
- background: var(--row-alt);
- }
- .page-head {
- margin-bottom: 16px;
- }
- .page-head h1 {
- margin: 0 0 4px;
- font-size: 20px;
- font-weight: 700;
- }
- .desc {
- margin: 0;
- color: var(--text-muted);
- font-size: 13px;
- }
- /* 各页顶部统计卡:单行不换行,窄屏卡片等分变窄(原 grid auto-fit 会换行) */
- .stats {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: stretch;
- width: 100%;
- min-width: 0;
- gap: clamp(6px, 1.2vw, 12px);
- margin-bottom: 16px;
- }
- .stats > .stat {
- flex: 1 1 0;
- min-width: 0;
- max-width: 100%;
- box-sizing: border-box;
- padding: clamp(8px, 1.8vw, 12px) clamp(6px, 1.2vw, 14px);
- overflow: hidden;
- }
- .stats > .stat .k {
- margin: 0 0 6px;
- font-size: clamp(11px, 2.4vw, 14px);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .stats > .stat .v {
- margin: 0;
- font-size: clamp(13px, 3.8vw, 22px);
- font-weight: 700;
- color: var(--primary-dark);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .stat {
- background: #fff;
- border: 1px solid var(--border);
- border-radius: var(--radius);
- padding: 12px 14px;
- box-shadow: var(--shadow);
- }
- .stat .k {
- margin: 0 0 8px;
- font-size: 14px;
- font-weight: 600;
- }
- .stat .v {
- margin: 0;
- font-size: 22px;
- font-weight: 700;
- color: var(--primary-dark);
- }
- .visual-check {
- margin-bottom: 16px;
- padding: 12px 14px;
- border: 1px solid var(--border);
- border-radius: var(--radius-md);
- background: var(--surface);
- }
- .visual-check-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 8px;
- margin-bottom: 10px;
- }
- .visual-check-head h3 {
- margin: 0;
- font-size: 14px;
- font-weight: 600;
- color: var(--text);
- }
- .visual-check-group {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px;
- margin-bottom: 8px;
- }
- .visual-check-alerts .el-alert {
- max-width: 220px;
- }
- .visual-check-label {
- min-width: 42px;
- font-size: 12px;
- font-weight: 600;
- color: var(--text-muted);
- }
- .visual-check-switch-text {
- font-size: 12px;
- color: var(--text-muted);
- }
- .panel {
- background: #fff;
- border: 1px solid var(--border);
- border-radius: var(--radius);
- box-shadow: var(--shadow);
- overflow: hidden;
- margin-bottom: 16px;
- }
- .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) {
- background: var(--primary-bg) !important;
- border-top: 2px solid var(--primary);
- font-weight: 600;
- }
- .simple-panel {
- padding: 16px;
- }
- .panel-top {
- padding: 10px 16px;
- border-bottom: 1px solid var(--border);
- font-size: 14px;
- font-weight: 600;
- }
- .table-scroll {
- overflow-x: auto;
- overflow-y: hidden;
- }
- .table-scroll .bx-table {
- min-width: 920px;
- }
- .filter-block {
- padding: 12px 16px 10px;
- border-bottom: 1px solid var(--border);
- }
- .filter-actions {
- padding-top: 10px;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- gap: 10px;
- }
- .btn-link.el-button {
- height: 36px;
- padding: 0 8px;
- color: var(--primary-dark);
- }
- .btn-link.el-button:hover {
- background: var(--primary-bg);
- border-radius: 8px;
- }
- .filter-actions-end {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- /* 无「展开更多条件」时仍把重置/查询固定在行尾 */
- margin-left: auto;
- }
- /* 检索栏右侧按钮(重置/查询)按标准固定样式 */
- .filter-actions-end .filter-reset.el-button,
- .filter-actions-end .filter-search.el-button {
- height: 36px;
- padding: 0 14px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 600;
- margin: 0;
- }
- .filter-actions-end .filter-reset.el-button {
- border: 1px solid var(--border);
- background: var(--surface);
- color: var(--text);
- }
- .filter-actions-end .filter-reset.el-button:hover {
- background: var(--row-alt);
- }
- /* 查询:主色描边(无背景)+ 带搜索 icon */
- .filter-actions-end .filter-search.el-button {
- border: 1px solid var(--primary);
- background: transparent;
- color: var(--primary-dark);
- }
- .filter-actions-end .filter-search.el-button:hover {
- border-color: var(--primary-dark);
- }
- .filter-grid {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: 10px 14px;
- margin-bottom: 10px;
- }
- @media (max-width: 1100px) {
- .filter-grid {
- grid-template-columns: repeat(2, 1fr);
- }
- }
- @media (max-width: 560px) {
- .filter-grid {
- grid-template-columns: 1fr;
- }
- }
- .filter-field label {
- display: block;
- font-size: 11px;
- font-weight: 500;
- color: var(--text-muted);
- margin-bottom: 4px;
- }
- .filter-field :is(.bx-input, .bx-select, .bx-date-picker) {
- width: 100%;
- min-width: 0;
- }
- .list-toolbar {
- background: var(--table-head);
- border-bottom: 1px solid var(--border);
- padding: 0;
- }
- .list-toolbar-row {
- padding: 8px 16px;
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- }
- .list-toolbar-selected {
- font-size: 12px;
- font-weight: 600;
- color: var(--text-muted);
- min-height: 36px;
- display: inline-flex;
- align-items: center;
- border-right: 1px solid var(--border);
- padding-right: 12px;
- margin-right: 4px;
- }
- .list-toolbar-selected .sel-num {
- color: var(--primary-dark);
- font-weight: 700;
- margin: 0 2px;
- }
- .list-toolbar-actions {
- display: inline-flex;
- flex-wrap: wrap;
- gap: 8px;
- align-items: center;
- }
- .list-toolbar-actions .bx-btn.el-button:not(.el-button--primary) {
- background: var(--surface);
- border-color: var(--border);
- color: var(--text);
- }
- .list-toolbar-actions .bx-btn.el-button:not(.el-button--primary):hover {
- background: var(--row-alt);
- }
- .list-pager {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between;
- gap: 10px 12px;
- padding: 8px 16px;
- border-top: 1px solid var(--border);
- background: var(--surface);
- color: var(--text-muted);
- font-size: 13px;
- }
- .list-range {
- white-space: nowrap;
- }
- .list-pager-right {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 8px;
- }
- .pager-size-label,
- .pager-size-suffix {
- font-size: 13px;
- color: var(--text-muted);
- margin: 0;
- white-space: nowrap;
- }
- .list-pager .el-pagination {
- --el-pagination-button-height: 32px;
- --el-pagination-button-width: 36px;
- --el-pagination-font-size: 13px;
- color: var(--text-muted);
- display: inline-flex;
- align-items: center;
- gap: 3px;
- }
- .list-pager .el-pagination button,
- .list-pager .el-pagination .el-pager li {
- min-width: 36px;
- height: 32px;
- line-height: 32px;
- border-radius: 8px;
- }
- .list-pager .el-pagination .btn-prev,
- .list-pager .el-pagination .btn-next,
- .list-pager .el-pagination .el-pager li {
- border: 1px solid var(--border);
- background: var(--surface);
- margin: 0;
- }
- .list-pager .el-pagination .el-pager {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- margin: 0;
- }
- .list-pager .el-pagination .btn-prev,
- .list-pager .el-pagination .btn-next {
- padding: 0 10px;
- min-width: 68px;
- }
- .list-pager .el-pagination .el-pager li.is-active {
- background: var(--primary);
- border-color: var(--primary);
- color: #fff;
- }
- .list-pager .el-pagination .el-pager li.is-active:hover {
- background: var(--primary-dark);
- border-color: var(--primary-dark);
- }
- .list-pager .el-pagination .el-pagination__sizes .el-select__wrapper {
- min-height: 32px;
- border-radius: 8px;
- min-width: 72px;
- }
- .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) {
- background: var(--primary-bg) !important;
- border-top: 2px solid var(--primary);
- font-weight: 600;
- padding-top: 14px;
- padding-bottom: 14px;
- }
- .panel :is(.el-table__footer-wrapper td, .el-table__fixed-footer-wrapper td) .cell {
- white-space: nowrap;
- text-align: center;
- }
- /* 合计行吸底固定(跟随列表滚动容器) */
- .panel .el-table__footer-wrapper,
- .panel .el-table__fixed-footer-wrapper {
- position: sticky;
- bottom: 0;
- z-index: 4;
- }
- .ic {
- width: 16px;
- height: 16px;
- }
- .ic-sm {
- width: 14px;
- height: 14px;
- }
- .bx-input.el-input,
- .bx-select.el-select,
- .bx-date-picker.el-date-editor {
- width: 100%;
- }
- .bx-input .el-input__wrapper,
- .bx-select .el-select__wrapper,
- .bx-date-picker .el-input__wrapper {
- min-height: var(--control-h);
- border-radius: var(--radius-md);
- box-shadow: none;
- border: 1px solid var(--border);
- background: var(--surface);
- }
- .bx-input .el-input__wrapper.is-focus,
- .bx-select .el-select__wrapper.is-focus,
- .bx-date-picker .el-input__wrapper.is-focus {
- border-color: var(--primary);
- box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
- }
- .bx-input .el-input__inner {
- height: var(--control-h);
- font-size: 14px;
- }
- .bx-select .el-select__placeholder,
- .bx-select .el-input__inner {
- font-size: 14px;
- }
- .bx-table.el-table {
- --el-table-border-color: var(--border);
- --el-table-header-bg-color: var(--table-head);
- --el-table-row-hover-bg-color: var(--row-hover);
- --el-table-text-color: var(--text);
- --el-table-header-text-color: var(--text-muted);
- --el-table-bg-color: var(--surface);
- --el-table-tr-bg-color: var(--surface);
- }
- .bx-table .el-table__header-wrapper th {
- font-size: 12px;
- font-weight: 600;
- color: var(--text-muted);
- }
- .bx-table .el-table__cell {
- padding: 10px 12px;
- }
- .bx-table.el-table--border {
- border: none;
- }
- .bx-table .el-table__inner-wrapper::before {
- background-color: var(--border);
- }
- .bx-table .el-table__cell {
- border-bottom: 1px solid var(--border);
- }
- .bx-table .el-table__header-wrapper th {
- background: var(--table-head) !important;
- }
- .bx-table .el-table__row td {
- background: var(--surface) !important;
- }
- /* 列表:除金额列(col-money)外单元格居中;金额列右对齐 */
- .bx-table .el-table__cell .cell,
- .view-detail-table .el-table__cell .cell,
- .dlg-view .el-table .el-table__cell .cell,
- .bx-dialog .el-dialog__body .el-table .el-table__cell .cell,
- .form-section .el-table .el-table__cell .cell {
- text-align: center;
- }
- .bx-table .col-money .cell,
- .view-detail-table .col-money .cell,
- .dlg-view .el-table .col-money .cell,
- .bx-dialog .el-dialog__body .el-table .col-money .cell,
- .form-section .el-table .col-money .cell {
- text-align: right;
- font-variant-numeric: tabular-nums;
- }
- /* 合计行:金额列强制右对齐(覆盖表尾默认居中) */
- .bx-table .el-table__footer-wrapper td.col-money .cell,
- .bx-table .el-table__fixed-footer-wrapper td.col-money .cell,
- .view-detail-table .el-table__footer-wrapper td.col-money .cell,
- .view-detail-table .el-table__fixed-footer-wrapper td.col-money .cell,
- .dlg-view .el-table .el-table__footer-wrapper td.col-money .cell,
- .bx-dialog .el-dialog__body .el-table .el-table__footer-wrapper td.col-money .cell,
- .form-section .el-table .el-table__footer-wrapper td.col-money .cell {
- text-align: right !important;
- font-variant-numeric: tabular-nums;
- }
- .bx-table .col-actions .cell {
- white-space: nowrap;
- display: inline-flex;
- flex-wrap: nowrap;
- align-items: center;
- gap: 6px;
- justify-content: flex-start;
- }
- /* 列表「当前节点」为空:无标签,占位与次要色 */
- .node-current-empty {
- color: var(--text-muted);
- }
- /* 列表合计:第 4 列常为「本页合计(n单)」加粗(备用金申请页除外,见下条) */
- .table-scroll.table-page-summary:not(.advance-apply-summary-merge)
- .el-table__footer-wrapper
- td:nth-child(4)
- .cell {
- font-weight: 600;
- color: var(--text);
- }
- /* 备用金申请:合计行首格 colspan=4 合并多选+序号+单号+申请人 */
- .table-scroll.table-page-summary.advance-apply-summary-merge
- .el-table__footer-wrapper
- td:first-child
- .cell {
- font-weight: 600;
- color: var(--text);
- text-align: center;
- }
- .bx-table .col-actions .cell > * {
- vertical-align: middle;
- }
- .bx-table .el-table__body tr:hover > td {
- background: var(--row-hover) !important;
- }
- /* 列表偶数行浅底(整行同色;不按列斑马) */
- .bx-table .el-table__body tr.el-table__row:nth-child(even) > td.el-table__cell {
- background: var(--row-alt) !important;
- }
- .bx-table .el-table__body tr:hover td {
- background: var(--row-hover) !important;
- }
- .bx-tag {
- display: inline-flex;
- align-items: center;
- padding: 3px 10px;
- border-radius: 999px;
- font-size: 12px;
- font-weight: 600;
- background: #fff;
- border: 1px solid transparent;
- white-space: nowrap;
- }
- .bx-tag--pending { color: #475569; border-color: #cbd5e1; }
- .bx-tag--processing { color: #00a874; border-color: #66d9b3; }
- .bx-tag--done { color: #0f766e; border-color: #5eead4; }
- /* 审批中等:浅底表格上需可见描边,勿用近白/透明边 */
- .bx-tag--warning {
- color: #b45309;
- background: #fffbeb;
- border-color: #f59e0b;
- }
- /* 历史误用 tone=warn 时与 warning 对齐 */
- .bx-tag--warn {
- color: #b45309;
- background: #fffbeb;
- border-color: #f59e0b;
- }
- .bx-tag--error { color: #dc2626; border-color: #fca5a5; }
- .bx-tag--info { color: #0f766e; border-color: #5eead4; }
- .bx-btn.el-button {
- height: var(--control-h);
- border-radius: var(--radius-md);
- font-size: 14px;
- font-weight: 600;
- gap: 2px;
- }
- .bx-btn.el-button--primary {
- background: var(--primary);
- border-color: var(--primary);
- }
- .bx-btn.el-button--primary:hover {
- background: var(--primary-dark);
- border-color: var(--primary-dark);
- }
- /* 列表工具栏首按钮:主色描边(无背景) */
- .bx-btn.el-button--primary.is-plain {
- background: transparent;
- border-color: var(--primary);
- color: var(--primary-dark);
- }
- .bx-btn.el-button--primary.is-plain:hover {
- background: transparent;
- border-color: var(--primary-dark);
- color: var(--primary-dark);
- }
- .bx-op-btn.el-button {
- height: 28px;
- padding: 0 8px;
- font-size: 12px;
- font-weight: 600;
- gap: 2px;
- border-radius: 8px;
- border: 1px solid var(--border);
- background: var(--surface);
- color: var(--text);
- }
- .bx-op-btn.el-button.primary {
- border-color: var(--primary);
- background: transparent;
- color: var(--primary-dark);
- }
- .bx-op-btn.el-button.primary:hover {
- border-color: var(--primary-dark);
- background: transparent;
- color: var(--primary-dark);
- }
- .bx-op-btn.el-button:not(.primary):hover {
- background: var(--row-alt);
- }
- .el-table .el-button + .el-button {
- margin-left: 8px;
- }
- /* 按钮内所有 icon(含 loading)颜色跟随文字 currentColor */
- .el-button .el-icon {
- color: currentColor;
- }
- .el-button .el-icon svg {
- fill: currentColor;
- stroke: currentColor;
- }
- .el-button.is-loading .el-icon {
- color: currentColor;
- }
- .bx-dialog .el-dialog {
- border: 1px solid var(--border);
- border-radius: var(--radius);
- box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
- overflow: hidden;
- display: flex;
- flex-direction: column;
- max-height: calc(100vh - 64px);
- }
- .bx-dialog .el-dialog__header {
- padding: 16px 22px;
- border-bottom: 1px solid var(--border);
- flex-shrink: 0;
- }
- .bx-dialog .el-dialog__title {
- font-size: 18px;
- font-weight: 700;
- color: var(--text);
- letter-spacing: -0.02em;
- }
- .bx-dialog .el-dialog__body {
- padding: 20px 22px;
- overflow-y: auto;
- flex: 1;
- max-height: calc(100vh - 200px);
- }
- .bx-dialog .el-dialog__footer {
- padding: 12px 22px;
- border-top: 1px solid var(--border);
- background: var(--table-head);
- display: flex;
- justify-content: flex-end;
- gap: 8px;
- flex-shrink: 0;
- }
- .bx-dialog .el-dialog__headerbtn {
- width: 32px;
- height: 32px;
- border-radius: 8px;
- top: 12px;
- right: 14px;
- }
- .bx-dialog .el-dialog__headerbtn:hover {
- background: var(--row-alt);
- }
- .bx-dialog .el-dialog__close {
- color: var(--text-muted);
- }
- .bx-dialog .el-dialog__headerbtn:hover .el-dialog__close {
- color: var(--text);
- }
- .dlg-view {
- padding: 0;
- }
- .dlg-view-hero {
- padding: 20px 22px;
- background: linear-gradient(135deg, var(--primary-bg) 0%, var(--surface) 55%);
- border-bottom: 1px solid var(--border);
- }
- .dlg-view-hero-top {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- flex-wrap: wrap;
- }
- .dlg-view-title {
- margin: 0;
- font-size: 18px;
- font-weight: 700;
- letter-spacing: -0.02em;
- }
- .dlg-view-tags {
- display: inline-flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px;
- }
- .dlg-view-meta {
- margin: 10px 0 0;
- font-size: 13px;
- color: var(--text-muted);
- line-height: 1.5;
- }
- .dlg-view-section {
- padding: 20px 22px;
- border-bottom: 1px solid var(--border);
- }
- .dlg-view-section:last-child {
- border-bottom: none;
- }
- .dlg-kv {
- display: grid;
- grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr);
- gap: 14px 28px;
- font-size: 13px;
- align-items: start;
- }
- .dlg-kv .v .clamp-wrap {
- width: 100%;
- }
- .dialog-view-xl .el-dialog,
- .bx-dialog.dialog-view-xl .el-dialog {
- width: min(920px, calc(100vw - 32px)) !important;
- }
- .money-em {
- color: var(--primary-dark);
- font-weight: 700;
- }
- .section-gap-tight {
- margin-top: 10px;
- }
- .inline-row {
- display: flex;
- gap: 8px;
- margin-bottom: 10px;
- align-items: center;
- }
- .inline-grow {
- flex: 1;
- min-width: 0;
- }
- .field-no-margin {
- margin: 0;
- }
- .form-section-last {
- border-bottom: none !important;
- margin-bottom: 0 !important;
- padding-bottom: 0 !important;
- }
- .section-title-tight {
- margin-bottom: 8px;
- }
- .tag-list {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- .desc-tight {
- margin-bottom: 12px;
- }
- .fill-100 {
- width: 100%;
- }
- .tree-panel {
- max-height: 400px;
- overflow: auto;
- border: 1px solid var(--el-border-color-light);
- border-radius: 6px;
- padding: 8px;
- }
- .center-pad-lg {
- text-align: center;
- padding: 32px 0;
- }
- .muted {
- color: var(--text-muted);
- }
- .align-right {
- display: flex;
- justify-content: flex-end;
- margin-top: 8px;
- }
- .img-preview-wrap {
- text-align: center;
- }
- .img-preview {
- max-width: 100%;
- max-height: 60vh;
- }
- .dlg-kv .k {
- color: var(--text-muted);
- font-size: 12px;
- font-weight: 600;
- line-height: 1.5;
- word-break: break-word;
- }
- .dlg-kv .v {
- color: var(--text);
- font-weight: 500;
- min-width: 0;
- line-height: 1.5;
- word-break: break-word;
- }
- /* kv-full:仅适合紧跟「行首 col1 的 .k」;若前面已是 k,v,k 占满三列,下一值请用普通 .v。 */
- .dlg-kv .v.kv-full {
- grid-column: 2 / -1;
- }
- .dlg-kv.dlg-kv--triple {
- grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr);
- }
- @media (max-width: 1280px) {
- .dlg-kv {
- grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr);
- gap: 10px 16px;
- }
- .dlg-kv.dlg-kv--triple {
- grid-template-columns: 90px minmax(0, 1fr) 90px minmax(0, 1fr);
- }
- }
- @media (max-width: 900px) {
- .dlg-kv {
- grid-template-columns: 90px minmax(0, 1fr);
- }
- .dlg-kv.dlg-kv--triple {
- grid-template-columns: 90px minmax(0, 1fr);
- }
- .dlg-kv .v.kv-full {
- grid-column: auto;
- }
- }
- .dlg-note {
- margin: 0 0 16px;
- font-size: 13px;
- color: var(--text-muted);
- }
- .flow-scroll {
- max-height: 320px;
- overflow-y: auto;
- padding-right: 4px;
- }
- @media (max-width: 900px) {
- .flow-scroll {
- max-height: 260px;
- }
- }
- .sr-only {
- position: absolute;
- width: 1px;
- height: 1px;
- padding: 0;
- margin: -1px;
- overflow: hidden;
- clip: rect(0, 0, 0, 0);
- white-space: nowrap;
- border: 0;
- }
- .wf-info-bar {
- padding: 12px 16px;
- display: flex;
- gap: 24px;
- align-items: center;
- background: var(--primary-bg);
- border-bottom: 1px solid var(--border);
- }
- .field {
- margin-bottom: 12px;
- }
- .field label {
- display: block;
- font-size: 13px;
- font-weight: 500;
- margin-bottom: 6px;
- color: var(--text);
- }
- .form-section {
- margin-bottom: 20px;
- padding-bottom: 16px;
- border-bottom: 1px dashed var(--border);
- }
- .form-section:last-of-type {
- border-bottom: none;
- margin-bottom: 0;
- padding-bottom: 0;
- }
- .form-section h4 {
- margin: 0 0 12px;
- font-size: 13px;
- font-weight: 700;
- color: var(--text-muted);
- letter-spacing: 0.04em;
- }
- .form-grid-2 {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 12px 16px;
- }
- @media (max-width: 560px) {
- .form-grid-2 {
- grid-template-columns: 1fr;
- }
- }
- /* Element Plus 组件语义色视觉对齐(fresh-mint-green) */
- .el-tag {
- border-radius: 999px;
- padding: 3px 10px;
- font-size: 12px;
- font-weight: 600;
- line-height: 1.3;
- background: #fff;
- }
- .el-tag.el-tag--success {
- color: #0f766e;
- border-color: #5eead4;
- background: #fff;
- }
- .el-tag.el-tag--warning {
- color: #d97706;
- border-color: #f6c453;
- background: #fff;
- }
- .el-tag.el-tag--danger {
- color: #dc2626;
- border-color: #fca5a5;
- background: #fff;
- }
- .el-tag.el-tag--info {
- color: #0f766e;
- border-color: #5eead4;
- background: #fff;
- }
- .el-alert {
- border-radius: var(--radius-md);
- border: 1px solid transparent;
- }
- .el-alert--success {
- background: var(--success-bg);
- border-color: #a7f3d0;
- color: #0f766e;
- }
- .el-alert--warning {
- background: var(--warning-bg);
- border-color: #fde68a;
- color: #b45309;
- }
- .el-alert--error {
- background: var(--danger-bg);
- border-color: #fecaca;
- color: #b91c1c;
- }
- .el-alert--info {
- background: var(--info-bg);
- border-color: #99f6e4;
- color: #115e59;
- }
- .el-message {
- border-radius: var(--radius-md);
- border: 1px solid transparent;
- box-shadow: var(--shadow);
- }
- .el-message--success {
- background: var(--success-bg);
- border-color: #a7f3d0;
- }
- .el-message--warning {
- background: var(--warning-bg);
- border-color: #fde68a;
- }
- .el-message--error {
- background: var(--danger-bg);
- border-color: #fecaca;
- }
- .el-message--info {
- background: var(--info-bg);
- border-color: #99f6e4;
- }
- .el-switch {
- --el-switch-on-color: var(--primary);
- --el-switch-off-color: #d1d5db;
- }
- /* 工作流配置信息栏 */
- .wf-info-bar {
- padding: 12px 16px;
- display: flex;
- gap: 24px;
- align-items: center;
- background: var(--primary-bg);
- border-bottom: 1px solid var(--border);
- }
|