global.css
16.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
@import './tokens.css';
* { box-sizing: border-box; }
html, body, #root {
margin: 0;
padding: 0;
height: 100%;
background: var(--bg);
color: var(--text);
font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
font-size: 13px;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; font-size: 13px; }
/* ======= TOP BAR ======= */
.topbar { display: flex; align-items: stretch; height: 44px; background: var(--topbar); color: var(--topbar-text); position: relative; z-index: 30; }
.topbar .logo { width: 54px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.topbar .logo svg { width: 30px; height: 30px; color: #0e1216; }
.topbar .nav-btn { display: flex; align-items: center; gap: 6px; padding: 0 18px; color: #fff; cursor: pointer; font-size: 14px; border: none; background: transparent; height: 100%; }
.topbar .nav-btn.active { background: var(--primary); }
.topbar .nav-btn:hover { background: #33363d; }
.topbar .nav-btn.active:hover { background: var(--primary-strong); }
.topbar .tabs { display: flex; align-items: stretch; flex: 1; }
.topbar .tab { display: flex; align-items: center; gap: 8px; padding: 0 18px; cursor: pointer; color: #cfd2d8; font-size: 14px; height: 100%; }
.topbar .tab .ic { opacity: .85; }
.topbar .tab.active { color: var(--link); }
.topbar .tab .close { margin-left: 6px; width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #9aa0a8; }
.topbar .tab .close:hover { background: #3a3d44; color: #fff; }
.topbar .right { display: flex; align-items: center; gap: 18px; padding-right: 14px; }
.topbar .right .ic { width: 18px; height: 18px; opacity: .9; cursor: pointer; }
.topbar .user { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.topbar .more { font-size: 18px; letter-spacing: 2px; cursor: pointer; padding: 0 4px; }
/* ======= APP LAYOUT ======= */
.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.stage { flex: 1; position: relative; overflow: hidden; background: var(--bg); }
/* ======= MAIN / DASHBOARD ======= */
.main-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 10px; padding: 10px; min-height: 100%; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; }
.kpi-head { padding: 14px 18px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.kpi-head .title { font-size: 15px; color: #222; font-weight: 500; margin-right: 6px; }
.kpi-head .stat { color: var(--text-soft); }
.kpi-head .stat b { color: var(--danger); font-weight: 500; margin-left: 6px; font-size: 14px; }
.kpi-head .stat.blue b { color: var(--link); }
.kpi-head .sep { color: #cdd0d6; }
.kpi-head .ai-btn { margin-left: auto; background: var(--primary); color: #fff; border: none; padding: 7px 14px; border-radius: 2px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.kpi-head .ai-btn:hover { background: var(--primary-strong); }
.kpi-body { display: grid; grid-template-columns: 200px 90px 1fr 1fr 90px 90px 130px; border-top: 1px solid var(--border); }
.kpi-body > div { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 12px; font-size: 13px; min-height: 38px; display: flex; align-items: center; }
.kpi-body > div:nth-last-child(-n+7) { border-bottom: none; }
.kpi-body > div:last-child { border-right: none; }
.kpi-body .h { background: var(--header-bg); font-weight: 500; color: #222; padding: 9px 12px; }
.kpi-body .row-alt { background: var(--row-alt); }
.kpi-body .link { color: var(--link); cursor: pointer; }
.kpi-body .link:hover { text-decoration: underline; }
.kpi-body .num-red { color: var(--danger); font-weight: 600; justify-content: center; }
.kpi-body .num { justify-content: center; }
.kpi-body .center { justify-content: center; }
.nav-tree { padding: 6px 0; }
.nav-tree .group { padding: 8px 14px; color: #444; font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-tree .group .arrow { display: inline-block; width: 0; height: 0; border-left: 4px solid #888; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transform: rotate(90deg); margin-right: 2px; }
.nav-tree .group .ico { color: #e0b96a; }
.nav-tree .item { padding: 6px 14px 6px 36px; display: flex; align-items: center; gap: 8px; color: #3a3a3a; cursor: pointer; font-size: 13px; }
.nav-tree .item:hover { background: #eef3fb; }
.nav-tree .item.active { background: #d8eaff; color: #1166cc; }
.nav-tree .item .ico { color: #e0b96a; }
.three-col { display: grid; grid-template-columns: 280px 1fr; height: 100%; }
.three-col .left-nav { background: var(--panel); border: 1px solid var(--border); overflow: auto; }
.three-col .center { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.common-ops { padding: 14px 18px; }
.common-ops .h { font-size: 14px; color: #222; margin-bottom: 14px; font-weight: 500; }
.common-ops a { display: block; color: var(--link); padding: 8px 0; font-size: 13px; cursor: pointer; }
.common-ops a:hover { text-decoration: underline; }
.subproc { writing-mode: vertical-rl; text-orientation: upright; color: #222; font-weight: 500; justify-content: center; min-width: 24px; }
footer.foot { background: #f3f4f6; border-top: 1px solid var(--border); padding: 10px 14px; text-align: center; color: #666; font-size: 12px; }
footer.foot .pipe { margin: 0 8px; color: #bbb; }
footer.foot .police { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
footer.foot .police svg { width: 14px; height: 14px; }
/* ======= NAV OVERLAY ======= */
.nav-overlay { position: absolute; inset: 0; background: #2b3137; display: flex; z-index: 20; color: #cfd3da; }
.nav-overlay .side { width: 200px; background: #2b3137; padding: 8px 0; border-right: 1px solid #1e2226; overflow: auto; }
.nav-overlay .side .si { display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 14px; color: #d3d6db; cursor: pointer; }
.nav-overlay .side .si:hover { background: #34393f; }
.nav-overlay .side .si.active { color: var(--link); background: #34393f; }
.nav-overlay .side .si svg { width: 16px; height: 16px; opacity: .85; }
.nav-overlay .grid { flex: 1; padding: 30px 40px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 30px 40px; align-content: start; overflow: auto; }
.nav-overlay .col h3 { font-size: 15px; color: #e8eaee; font-weight: 500; margin: 0 0 18px; border-bottom: 1px solid #4a4f57; padding-bottom: 10px; }
.nav-overlay .col a { display: flex; align-items: center; gap: 6px; padding: 7px 0; color: #cfd3da; font-size: 14px; cursor: pointer; }
.nav-overlay .col a:hover { color: #fff; }
.nav-overlay .col a .star { color: #f3b526; }
/* ======= USER LIST ======= */
.userlist-screen, .userdetail-screen { display: flex; flex-direction: column; height: 100%; }
.toolbar { background: var(--toolbar-bg); color: #fff; display: flex; align-items: center; gap: 6px; padding: 0 8px; height: 38px; flex-shrink: 0; }
.toolbar .tb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: #e6e7ea; cursor: pointer; font-size: 13px; border-radius: 2px; user-select: none; }
.toolbar .tb-btn:hover { background: #3a3d44; }
.toolbar .tb-btn.disabled { color: #6c6e74; cursor: not-allowed; }
.toolbar .tb-btn.disabled:hover { background: transparent; }
.toolbar .tb-btn .ic { opacity: .9; }
.toolbar .spacer { flex: 1; }
.toolbar .gear { padding: 6px 8px; cursor: pointer; color: #cfd2d8; }
.filterbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.filterbar select, .filterbar input { height: 30px; border: 1px solid #d5d8de; border-radius: 2px; padding: 0 28px 0 10px; background: #fff; min-width: 140px; appearance: none;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 3l3 4 3-4z' fill='%23888'/></svg>");
background-repeat: no-repeat; background-position: right 8px center; }
.filterbar input { background-image: none; padding-right: 10px; }
.filterbar .down { width: 34px; height: 30px; background: #dfe5ee; border: 1px solid #d5d8de; display: flex; align-items: center; justify-content: center; border-radius: 2px; cursor: pointer; color: #3776c8; }
.filterbar .btn { height: 30px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--primary); background: var(--primary); color: #fff; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.filterbar .btn.ghost { background: #fff; color: #444; border-color: #cfd3da; }
.filterbar .btn:hover { filter: brightness(1.05); }
.table-shell { background: #fff; flex: 1; overflow: auto; border: 1px solid var(--border); border-top: none; }
.grid-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.grid-table th, .grid-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; white-space: nowrap; }
.grid-table thead th { background: var(--header-bg); font-weight: 500; color: #333; position: sticky; top: 0; z-index: 1; }
.grid-table tbody tr:nth-child(even) { background: var(--row-alt); }
.grid-table tbody tr:hover { background: #eaf3fe; cursor: pointer; }
.grid-table tbody tr.selected { background: #86d5fb !important; }
.grid-table .radio-cell { width: 32px; text-align: center; }
.radio-dot { width: 14px; height: 14px; border: 1px solid #b8bcc3; border-radius: 50%; display: inline-block; vertical-align: middle; background: #fff; }
.radio-dot.checked { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.grid-table input.cb { margin: 0; }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--border); justify-content: flex-end; font-size: 13px; color: #555; flex-shrink: 0; }
.pager .pgbtn { width: 28px; height: 28px; border: 1px solid #d5d8de; background: #fff; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #666; user-select: none; }
.pager .pgbtn.disabled { color: #ccc; cursor: not-allowed; }
.pager .pgcur { width: 28px; height: 28px; border: 1px solid var(--primary); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; }
.pager select { height: 28px; border: 1px solid #d5d8de; border-radius: 2px; padding: 0 8px; background: #fff; min-width: auto; appearance: auto; background-image: none; }
/* ======= USER DETAIL ======= */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.form-cell { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.form-cell .lbl { min-width: 88px; color: #333; font-size: 13px; text-align: right; }
.form-cell .lbl.req::before { content: "*"; color: var(--label); margin-right: 3px; }
.form-cell .lbl.req { color: var(--label); }
.form-cell input[type=text], .form-cell .field, .form-cell select.field {
flex: 1; height: 28px; border: 1px solid #d5d8de; border-radius: 2px; padding: 0 24px 0 10px; background: var(--field-bg);
appearance: none; min-width: 0; outline: none;
}
.form-cell input[type=text]:disabled, .form-cell .field.readonly { background: var(--field-bg-readonly); color: #444; }
.form-cell .field.readonly { display: flex; align-items: center; }
.form-cell select.field { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 3l3 4 3-4z' fill='%23888'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; }
.form-cell .cb { width: 14px; height: 14px; border: 1px solid #b8bcc3; background: #fff; display: inline-block; cursor: pointer; }
.form-cell .cb.checked { background: var(--primary); border-color: var(--primary); }
.tabs-row { display: flex; background: #fff; border-bottom: 1px solid var(--border); padding: 0 6px; flex-shrink: 0; }
.tabs-row .tb { padding: 11px 18px; font-size: 14px; color: #444; cursor: pointer; border-bottom: 2px solid transparent; margin-right: 4px; }
.tabs-row .tb.active { color: var(--tab-active); border-bottom-color: var(--tab-active); }
.perm-list { background: #fff; flex: 1; overflow: auto; }
.perm-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: #333; cursor: pointer; }
.perm-row:hover:not(.head) { background: #eaf3fe; }
.perm-row.head { background: var(--header-bg); font-weight: 500; color: #222; cursor: default; }
.perm-row .cb { width: 14px; height: 14px; border: 1px solid #b8bcc3; background: #fff; display: inline-block; flex-shrink: 0; }
.perm-row .cb.checked { background: var(--primary); border-color: var(--primary); }
/* ======= LOGIN ======= */
.login-wrap { position: absolute; inset: 0; background: #eaedf2; display: flex; flex-direction: column; }
.login-head { display: flex; align-items: center; gap: 12px; padding: 18px 36px; background: #eaedf2; }
.login-head .lg { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.login-head .name { font-size: 24px; font-weight: 700; color: #e0a020; letter-spacing: 2px; }
.login-head .sub { color: #444; font-size: 14px; margin-left: 6px; }
.login-hero { flex: 1; position: relative;
background: radial-gradient(ellipse at center, #1a4ea0 0%, #0a1d44 60%, #050d20 100%);
overflow: hidden; }
.login-hero::before {
content: ""; position: absolute; inset: 0;
background-image:
linear-gradient(rgba(80, 160, 255, .18) 1px, transparent 1px),
linear-gradient(90deg, rgba(80, 160, 255, .18) 1px, transparent 1px);
background-size: 80px 80px;
transform: perspective(800px) rotateX(55deg) translateY(20%);
transform-origin: center;
opacity: .55;
}
.login-hero::after {
content: ""; position: absolute; inset: 0;
background:
radial-gradient(ellipse 800px 300px at 50% 50%, rgba(140, 200, 255, .35), transparent 60%),
radial-gradient(circle 200px at 30% 40%, rgba(255, 255, 255, .15), transparent 70%),
radial-gradient(circle 160px at 70% 60%, rgba(255, 255, 255, .12), transparent 70%);
}
.login-text { position: absolute; left: 8%; top: 35%; color: #fff; z-index: 2; }
.login-text .en { font-size: 30px; font-weight: 300; letter-spacing: 1px; color: #cfe1ff; margin-bottom: 6px; }
.login-text .zh { font-size: 54px; font-weight: 700; color: #fff; letter-spacing: 4px; margin-bottom: 4px; }
.login-text .erp { font-size: 90px; font-weight: 800; color: #fff; letter-spacing: 8px; line-height: .9; }
.login-card { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); background: #fff; width: 380px; padding: 36px 32px; border-radius: 2px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); z-index: 3; }
.login-card h3 { margin: 0 0 22px; font-size: 18px; color: #333; font-weight: 500; }
.login-card .lf { display: flex; align-items: center; border: 1px solid #e1e4e8; border-radius: 2px; height: 42px; margin-bottom: 14px; background: #fff; position: relative; }
.login-card .lf .ic { width: 42px; display: flex; align-items: center; justify-content: center; color: #888; }
.login-card .lf .div { width: 1px; height: 20px; background: #e1e4e8; }
.login-card .lf input { flex: 1; border: none; outline: none; height: 100%; padding: 0 12px; background: transparent; }
.login-card .lf select { flex: 1; border: none; outline: none; height: 100%; padding: 0 12px; background: transparent; appearance: none; cursor: pointer; }
.login-card .lf.dropdown::after { content: ""; position: absolute; right: 14px; top: 50%; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #888; transform: translateY(-50%); pointer-events: none; }
.login-card .submit { width: 100%; height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 2px; font-size: 15px; letter-spacing: 8px; cursor: pointer; margin-top: 6px; }
.login-card .submit:hover:not(:disabled) { background: var(--primary-strong); }
.login-card .submit:disabled { background: #99b7e0; cursor: not-allowed; }
.login-card .err { color: var(--danger); font-size: 12px; margin: -8px 0 12px; min-height: 16px; }
.login-foot { background: #eaedf2; text-align: center; padding: 14px 8px; color: #666; font-size: 12px; border-top: 1px solid #d8dce2; }
.ic { display: inline-flex; align-items: center; justify-content: center; }
.star { color: #f3b526; }