styles.css 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  1. :root {
  2. --ink: #1b2430;
  3. --muted: #5c6b7a;
  4. --line: #e2d9cc;
  5. --paper: #f6f1e8;
  6. --card: #fffdf8;
  7. --teal: #0e6e68;
  8. --teal-ink: #084843;
  9. --amber: #9a5b12;
  10. --red: #8f2d2d;
  11. --green: #1d6b45;
  12. --shadow: 0 10px 30px rgba(40, 32, 20, 0.06);
  13. font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  14. }
  15. * { box-sizing: border-box; }
  16. body { margin: 0; color: var(--ink); background: var(--paper); }
  17. button, input, select, textarea { font: inherit; color: inherit; }
  18. button { cursor: pointer; }
  19. h1, h2, h3, p { margin: 0; }
  20. .login {
  21. min-height: 100vh;
  22. display: grid;
  23. grid-template-columns: 320px 1fr;
  24. }
  25. .login-side {
  26. background: var(--teal-ink);
  27. color: #f3efe6;
  28. padding: 48px 36px;
  29. }
  30. .login-side h1 { font-size: 28px; font-weight: 650; letter-spacing: 0.04em; }
  31. .login-side p { margin-top: 16px; line-height: 1.7; color: #d5ebe8; }
  32. .login-main { padding: 40px 48px 64px; }
  33. .login-main h2 { font-size: 20px; font-weight: 640; }
  34. /* 身份选择:组织机构图,按层次排布,同层节点在同一水平线 */
  35. .org-chart { margin-top: 20px; overflow-x: auto; padding-bottom: 10px; }
  36. .org-chart ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 22px 0 0; position: relative; }
  37. .org-chart > ul { padding-top: 0; }
  38. .org-chart li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 22px 4px 0; }
  39. /* 子节点上方的连接线:左右两段横线拼成本节点的横向挂线 */
  40. .org-chart li::before, .org-chart li::after {
  41. content: "";
  42. position: absolute;
  43. top: 0;
  44. right: 50%;
  45. width: 50%;
  46. height: 22px;
  47. border-top: 1px dashed #c8bca8;
  48. }
  49. .org-chart li::after { right: auto; left: 50%; border-left: 1px dashed #c8bca8; }
  50. /* 独子不需要横挂线,直接从父节点垂直落下 */
  51. .org-chart li:only-child { padding-top: 0; }
  52. .org-chart li:only-child::before, .org-chart li:only-child::after { display: none; }
  53. /* 行首行尾只保留朝向内侧的横线和落到本节点的竖线 */
  54. .org-chart li:first-child::before, .org-chart li:last-child::after { border: 0 none; }
  55. .org-chart li:last-child::before { border-right: 1px dashed #c8bca8; }
  56. .org-chart li:first-child::after, .org-chart li:last-child::before { border-radius: 4px 0 0 0; }
  57. /* 父卡片底部到横挂线之间的竖线 */
  58. .org-chart ul ul::before {
  59. content: "";
  60. position: absolute;
  61. top: 0;
  62. left: 50%;
  63. width: 0;
  64. height: 22px;
  65. border-left: 1px dashed #c8bca8;
  66. }
  67. /* 顶层(总运营)不挂线 */
  68. .org-chart > ul > li { padding-top: 0; }
  69. .org-chart > ul > li::before, .org-chart > ul > li::after { display: none; }
  70. .persona {
  71. text-align: left;
  72. background: var(--card);
  73. border: 1px solid var(--line);
  74. border-radius: 12px;
  75. padding: 14px 16px;
  76. box-shadow: var(--shadow);
  77. }
  78. /* 横向挂载组:团队子账号排在主账号右侧,短横虚线相连(宽度与 app.js 常量一致) */
  79. .org-side { display: flex; align-items: center; }
  80. .org-side-link { flex: none; width: 28px; border-top: 1px dashed #c8bca8; }
  81. /* 组织图内卡片紧凑档:收窄到 170px,配合整体缩放保证一屏看全 */
  82. .org-chart .persona { display: block; width: 170px; flex: none; padding: 10px 12px; }
  83. .org-chart .persona strong { font-size: 14px; }
  84. .org-chart .persona span { font-size: 12px; }
  85. .org-chart .persona .note, .org-chart .persona .brief { word-break: break-all; }
  86. .persona strong { display: block; font-size: 16px; }
  87. .persona span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  88. .persona .brief { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: #46586a; }
  89. .persona:hover { border-color: var(--teal); }
  90. /* 左右两栏各自占满视口、各自滚动:侧栏自身不滚动,滚动只发生在菜单区,底部账号信息固定 */
  91. .shell { height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
  92. .nav {
  93. background: #172028;
  94. color: #e7e1d6;
  95. padding: 22px 14px;
  96. display: flex;
  97. flex-direction: column;
  98. gap: 4px;
  99. height: 100vh;
  100. overflow: hidden;
  101. }
  102. /* 侧栏定高后直接子项一律不参与 flex 收缩:.nav-sub 为折叠动画带 overflow:hidden,
  103. 自动最小尺寸为 0,被压缩时会裁掉组内末尾的菜单项(如「全部订阅」) */
  104. .nav > * { flex: none; }
  105. /* 菜单区独占剩余高度并独立滚动;菜单高于视口时给出可发现的细滚动条,避免被当成菜单缺失 */
  106. .nav-menu {
  107. flex: 1 1 auto;
  108. min-height: 0;
  109. overflow-y: auto;
  110. overscroll-behavior: contain;
  111. display: flex;
  112. flex-direction: column;
  113. gap: 4px;
  114. scrollbar-width: thin;
  115. scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  116. /* 关掉滚动锚定:重绘后脚本还原的 scrollTop 才不会被浏览器再挪一次 */
  117. overflow-anchor: none;
  118. }
  119. .nav-menu > * { flex: none; }
  120. .nav-menu::-webkit-scrollbar { width: 8px; }
  121. .nav-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 4px; }
  122. .brand { padding: 0 8px 16px; font-weight: 650; letter-spacing: 0.06em; }
  123. .nav button {
  124. background: transparent;
  125. border: 0;
  126. color: inherit;
  127. text-align: left;
  128. border-radius: 8px;
  129. padding: 9px 10px;
  130. width: 100%;
  131. font-size: 14px;
  132. cursor: pointer;
  133. }
  134. .nav button.active, .nav button:hover { background: rgba(255, 255, 255, 0.08); }
  135. .nav .nav-group {
  136. font-size: 12px;
  137. letter-spacing: 0.08em;
  138. text-transform: uppercase;
  139. color: #8ea0a0;
  140. padding: 14px 10px 6px;
  141. cursor: pointer;
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. user-select: none;
  146. }
  147. .nav .nav-group:hover { background: transparent; color: #c2d3d1; }
  148. .nav .nav-group .caret { font-size: 11px; transition: transform 0.18s ease; }
  149. .nav .nav-group.open .caret { transform: rotate(0deg); }
  150. .nav .nav-sub { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; }
  151. .nav .nav-sub.closed { display: none; }
  152. .nav .nav-sub .nav-leaf { font-size: 13.5px; color: #d1c8ba; padding: 7px 10px; }
  153. .nav .nav-sub .nav-leaf.active {
  154. background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  155. color: #fff;
  156. }
  157. /* 身份面板与菜单列底色区分:独立卡片底 + 描边,避免和菜单混成一块 */
  158. .nav .who {
  159. margin-top: auto;
  160. padding: 12px;
  161. font-size: 13px;
  162. color: #cdd9d7;
  163. line-height: 1.5;
  164. background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  165. border: 1px solid rgba(255,255,255,0.12);
  166. border-radius: 12px;
  167. }
  168. .nav .who button { margin-top: 8px; border: 1px solid rgba(255,255,255,0.22); background: rgba(23,32,40,0.55); width: 100%; }
  169. .nav .who button:hover { background: rgba(23,32,40,0.8); }
  170. .main { padding: 22px 28px 48px; min-width: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
  171. .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
  172. .top h1 { font-size: 22px; font-weight: 650; }
  173. .top p { color: var(--muted); margin-top: 4px; font-size: 13px; }
  174. .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  175. .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
  176. /* 工单页顶部告警卡:同排最多两张,不拉伸整行;卡内第二行 span 是说明文案 */
  177. .cards.narrow { grid-template-columns: repeat(auto-fit, minmax(210px, 320px)); }
  178. .card .hint { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; opacity: .82; }
  179. .card, .panel {
  180. background: var(--card);
  181. border: 1px solid var(--line);
  182. border-radius: 14px;
  183. box-shadow: var(--shadow);
  184. }
  185. .card { padding: 14px 16px; }
  186. .card b { display: block; font-size: 22px; margin-top: 4px; word-break: break-word; }
  187. .card span { color: var(--muted); font-size: 13px; }
  188. /* 未完成工单卡:数字用告警红,整卡可点开明细列表 */
  189. .card.alarm { cursor: pointer; }
  190. .card.alarm b { color: var(--red); }
  191. .card.alarm:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(143, 45, 45, 0.14); }
  192. /* 概览 KPI 卡:数值下方放历史曲线,曲线一律贴卡片底边对齐 */
  193. .cards.kpi { grid-auto-rows: 1fr; }
  194. .cards.kpi .card { display: flex; flex-direction: column; }
  195. .cards.kpi .num-row { margin-bottom: 10px; }
  196. .cards.kpi .num-row b { flex: none; font-size: 27px; }
  197. .cards.kpi .spark { display: block; flex: none; width: 100%; height: 34px; margin: auto 0 0; overflow: visible; }
  198. .spark-line { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  199. .spark-area { fill: var(--teal); opacity: 0.09; stroke: none; }
  200. .card.alarm .spark-line { stroke: var(--red); }
  201. .card.alarm .spark-area { fill: var(--red); }
  202. /* 数值行:未完成工单卡在总数右侧显示待处理 / 处理中拆分数 */
  203. .num-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  204. /* 选择器带上 .cards.kpi 前缀,避免被上面的 .card span 规则把字号改回 13px */
  205. .cards.kpi .num-split { font-size: 12px; line-height: 1.15; text-align: right; }
  206. .cards.kpi .num-split i { font-style: normal; opacity: 0.72; margin-right: 4px; }
  207. .panel { padding: 16px 18px; margin-bottom: 14px; overflow-x: auto; min-width: 0; }
  208. .panel h2 { font-size: 16px; margin-bottom: 10px; }
  209. .panel > .note { margin-top: 8px; }
  210. table { width: 100%; border-collapse: collapse; font-size: 14px; }
  211. th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
  212. td.wrap { white-space: normal; min-width: 240px; }
  213. /* 定时任务页:任务编码与执行编号是系统标识符,等宽显示便于逐位比对与检索 */
  214. code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
  215. /* 分成管理列表:分成方列放宽,分成方式与分成比例/金额列收紧(多个取值逐行列出),避免表格横向溢出后点不到操作列 */
  216. td .party-name { max-width: 200px; white-space: normal; line-height: 1.4; }
  217. td .tight { max-width: 104px; white-space: normal; line-height: 1.4; }
  218. /* 合同管理列表:列多且值长(编号、外部单号、期间、出口),字号与行内边距收紧 + 长文本列换行,避免面板出现横向滚动 */
  219. table.dense { font-size: 13px; }
  220. table.dense th, table.dense td { padding: 7px 7px; }
  221. /* 表头允许换行:窗口变窄时表头折行,整表最小宽度随之下降,不致于撑出横向滚动 */
  222. table.dense th { white-space: normal; }
  223. table.dense .note { font-size: 12px; line-height: 1.5; }
  224. /* 行内操作按钮收紧且不换行,否则两个按钮竖排会把整行撑到三层高 */
  225. table.dense .row { flex-wrap: nowrap; gap: 6px; }
  226. table.dense .btn { padding: 4px 8px; font-size: 12px; }
  227. /* 定时任务清单:10 列监控指标(编码、名称、调度、上次执行、耗时、结果、计数、下轮、状态、操作)。
  228. 任务名称与调度说明折行、时间戳拆两行,把横向空间让给计数列与操作列,避免面板出现横向滚动。
  229. min-width 不能省:只有 max-width 时自动布局会把折行列压到单字宽(任务名称曾塌成 27px)。 */
  230. table.job-list td.c-name { min-width: 92px; max-width: 126px; white-space: normal; line-height: 1.4; }
  231. table.job-list td.c-sched { min-width: 100px; max-width: 132px; white-space: normal; line-height: 1.4; }
  232. /* 客户管理列表:列多且值长(编号、掩码识别号、区域全路径、团队名),
  233. 长文本列折行、行尾操作列不折行——按钮一旦竖排会把整行撑到三层高。 */
  234. table.ent-list { font-size: 13px; }
  235. table.ent-list th, table.ent-list td { padding: 7px 8px; }
  236. table.ent-list th { white-space: normal; }
  237. table.ent-list .note { font-size: 12px; line-height: 1.45; }
  238. /* 折行列限定宽度,把横向空间让给操作列;折行只发生在编号下方、区域路径与团队清单上 */
  239. table.ent-list td.c-ent, table.ent-list td.c-subject,
  240. table.ent-list td.c-region, table.ent-list td.c-teams { white-space: normal; }
  241. table.ent-list td.c-ent { width: 108px; }
  242. /* 掩码识别号是一个不断行的整串(18 位),这列的最小宽就是它撑出来的宽度 */
  243. table.ent-list td.c-subject { width: 122px; }
  244. table.ent-list td.c-region { width: 128px; }
  245. table.ent-list td.c-teams { width: 110px; }
  246. /* 短列显式收窄,避免自动布局把剩余宽度按比例摊到它们身上、反过来挤压长文本列 */
  247. table.ent-list th:first-child, table.ent-list td:first-child { width: 36px; }
  248. table.ent-list td.c-op, table.ent-list td.c-partner { width: 62px; }
  249. table.ent-list td.c-status { width: 66px; }
  250. /* 操作列按三枚按钮的最小宽度取宽,不参与压缩;按钮字号与内边距同步收紧 */
  251. table.ent-list th.c-ops, table.ent-list td.c-ops { width: 1%; }
  252. table.ent-list td.c-ops .row { flex-wrap: nowrap; gap: 6px; }
  253. table.ent-list td.c-ops .btn { padding: 4px 8px; font-size: 12px; }
  254. th { color: var(--muted); font-weight: 550; font-size: 12px; }
  255. tr.clickable { cursor: pointer; }
  256. tr.clickable:hover { background: #f3efe6; }
  257. .pill {
  258. display: inline-block;
  259. border-radius: 999px;
  260. padding: 2px 8px;
  261. font-size: 12px;
  262. background: #efe7da;
  263. white-space: nowrap;
  264. }
  265. .pill.ok { background: #e5f4ea; color: var(--green); }
  266. .pill.wait { background: #fff1d6; color: var(--amber); }
  267. .pill.bad { background: #fde8e4; color: var(--red); }
  268. .pill.run { background: #e5f3f2; color: var(--teal-ink); }
  269. /* 线路出口已选标签:下拉选一个即落一枚,可逐枚移除;与配置面板的可选项清单共用 */
  270. .exit-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; min-height: 26px; }
  271. .exit-chips:empty::after { content: "尚未选择线路出口"; color: var(--muted); font-size: 12px; }
  272. .exit-chip {
  273. display: inline-flex; align-items: center; gap: 6px;
  274. border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 12px;
  275. background: #e5f3f2; color: var(--teal-ink); border: 1px solid #bfe0dd;
  276. }
  277. .exit-chip button {
  278. border: 0; background: transparent; color: var(--teal-ink);
  279. font-size: 13px; line-height: 1; padding: 0 2px; cursor: pointer;
  280. }
  281. .exit-chip button:hover { color: var(--red); }
  282. .exit-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
  283. .exit-opts .exit-chip { background: #efe7da; color: var(--ink); border-color: var(--line); }
  284. .btn, .btn.ghost {
  285. border-radius: 8px;
  286. padding: 7px 12px;
  287. border: 1px solid var(--teal);
  288. background: var(--teal);
  289. color: white;
  290. white-space: nowrap;
  291. }
  292. .btn.ghost { background: transparent; color: var(--teal-ink); }
  293. .btn.warn { background: var(--red); border-color: var(--red); }
  294. .btn:disabled { opacity: 0.45; cursor: not-allowed; }
  295. label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
  296. input, select, textarea {
  297. width: 100%;
  298. max-width: 420px;
  299. border: 1px solid var(--line);
  300. background: white;
  301. border-radius: 8px;
  302. padding: 8px 10px;
  303. }
  304. input[type="checkbox"], input[type="radio"] { width: auto; max-width: none; margin: 0; }
  305. td select, .row select { width: auto; min-width: 96px; max-width: 200px; }
  306. .row input { width: auto; }
  307. textarea { min-height: 88px; max-width: 560px; }
  308. .form-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
  309. /* 多列表单 */
  310. .form-grid {
  311. display: grid;
  312. grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  313. gap: 0 18px;
  314. }
  315. .form-grid label { margin-top: 8px; }
  316. /* 必填项标记:字段名后的红色星号 */
  317. .req { color: #c0392b; margin-left: 2px; font-weight: 700; }
  318. /* 校验未通过:已填内容整体保留、弹窗不重置,只红显有问题的编辑项并在字段下写原因 */
  319. .f-bad > label { color: var(--red); }
  320. .f-bad input, .f-bad select { border-color: var(--red); box-shadow: 0 0 0 2px rgba(143, 45, 45, 0.12); }
  321. .f-err { display: block; margin-top: 3px; font-size: 12px; color: var(--red); }
  322. .form-grid .form-actions { grid-column: 1 / -1; }
  323. /* 套餐档弹窗的成本项:名称下拉取自「成本管理」的全局成本项定义,档位上不录金额,可加多条、逐条删除 */
  324. .form-grid .pkg-costs { grid-column: 1 / -1; margin-top: 10px; }
  325. .pkg-costs-head {
  326. display: flex; align-items: center; justify-content: space-between;
  327. gap: 10px; flex-wrap: wrap;
  328. }
  329. .pkg-costs-head .btn { padding: 5px 12px; font-size: 13px; }
  330. .pkg-cost-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
  331. .pkg-cost-row select { flex: 1 1 auto; min-width: 0; }
  332. .pkg-cost-row input { flex: 0 0 auto; width: 120px; max-width: 120px; }
  333. .pkg-cost-row .pkg-cost-qty { width: 62px; max-width: 62px; }
  334. .pkg-cost-row .pkg-cost-times { flex: 0 0 auto; }
  335. .pkg-cost-row .pkg-cost-qty-unit, .pkg-cost-row .pkg-cost-money-unit { flex: 0 0 auto; white-space: nowrap; }
  336. .pkg-cost-row .pkg-cost-amt-note { flex: 0 1 auto; white-space: nowrap; }
  337. /* 成本管理 ② 组合金额录入:一个「省份 × 运营商」组合下逐条成本项填具体金额 */
  338. td input.cost-amt { width: 130px; max-width: 130px; }
  339. /* 开关(二态表单):checkbox 隐藏,用 .track 画滑块 */
  340. label.switch {
  341. display: inline-flex;
  342. align-items: center;
  343. gap: 8px;
  344. cursor: pointer;
  345. margin: 8px 0 4px;
  346. min-height: 38px;
  347. font-size: 13px;
  348. color: var(--muted);
  349. }
  350. label.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
  351. label.switch .track {
  352. flex: none;
  353. width: 40px;
  354. height: 22px;
  355. border-radius: 999px;
  356. background: #cfc8ba;
  357. position: relative;
  358. transition: background 180ms ease;
  359. }
  360. label.switch .track::after {
  361. content: "";
  362. position: absolute;
  363. top: 3px;
  364. left: 3px;
  365. width: 16px;
  366. height: 16px;
  367. border-radius: 50%;
  368. background: #fff;
  369. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  370. transition: transform 180ms ease;
  371. }
  372. label.switch input:checked + .track { background: var(--teal-ink); }
  373. label.switch input:checked + .track::after { transform: translateX(18px); }
  374. label.switch input:disabled + .track { opacity: 0.45; cursor: not-allowed; }
  375. /* 对象存储键列表 / 材料列表 */
  376. ul.files {
  377. margin: 8px 0 0;
  378. padding: 0;
  379. list-style: none;
  380. }
  381. ul.files li {
  382. padding: 6px 10px;
  383. background: #f7f2e8;
  384. border: 1px solid var(--line);
  385. border-radius: 8px;
  386. margin-bottom: 6px;
  387. font-size: 13px;
  388. word-break: break-all;
  389. }
  390. /* 建档弹窗的材料上传:左侧「登记材料」与右侧「合同文档」并排,两类都可选上传 */
  391. .doc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  392. @media (max-width: 760px) { .doc-row { grid-template-columns: 1fr; } }
  393. /* 文件控件 + 已选清单(文档名在左,移除在右) */
  394. .doc-pick { margin-top: 8px; min-width: 0; }
  395. .doc-pick input[type="file"] { width: 100%; margin-top: 4px; }
  396. .doc-pick .files { margin-top: 6px; }
  397. ul.files.doc-list li {
  398. padding: 4px 9px;
  399. margin-bottom: 4px;
  400. display: flex;
  401. align-items: center;
  402. justify-content: space-between;
  403. gap: 8px;
  404. }
  405. ul.files.doc-list .doc-name { min-width: 0; overflow-wrap: anywhere; }
  406. ul.files.doc-list .btn { padding: 2px 8px; font-size: 11px; }
  407. /* 复选列表(成员范围、客户直选) */
  408. .checklist {
  409. display: grid;
  410. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  411. gap: 2px 18px;
  412. margin-top: 6px;
  413. }
  414. label.ck {
  415. display: flex;
  416. align-items: center;
  417. gap: 7px;
  418. font-size: 14px;
  419. font-weight: normal;
  420. color: var(--ink);
  421. margin: 4px 0;
  422. line-height: 1.5;
  423. }
  424. label.ck .note { font-weight: normal; }
  425. /* 区域树 */
  426. ul.tree {
  427. list-style: none;
  428. margin: 0;
  429. padding: 0;
  430. }
  431. ul.tree ul.tree { padding-left: 24px; }
  432. .tree-node {
  433. display: flex;
  434. align-items: center;
  435. gap: 8px;
  436. padding: 2px 0;
  437. }
  438. .tree-select {
  439. background: transparent;
  440. border: 1px solid transparent;
  441. border-radius: 8px;
  442. padding: 5px 10px;
  443. color: var(--ink);
  444. }
  445. .tree-select:hover { background: #f3efe6; }
  446. .tree-node.on .tree-select {
  447. background: var(--teal);
  448. border-color: var(--teal);
  449. color: #fff;
  450. }
  451. .lv {
  452. font-size: 12px;
  453. color: var(--teal-ink);
  454. background: #e5f3f2;
  455. border-radius: 6px;
  456. padding: 1px 7px;
  457. white-space: nowrap;
  458. }
  459. .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }
  460. /* 范围配置里的勾选树 */
  461. ul.tree.check label.ck { margin: 5px 0; }
  462. ul.tree.check ul.tree { margin: 2px 0; }
  463. .note { color: var(--muted); font-size: 13px; line-height: 1.6; }
  464. .alert {
  465. background: #fff4ec;
  466. border: 1px solid #f0d2bc;
  467. color: #7a3e12;
  468. border-radius: 12px;
  469. padding: 10px 12px;
  470. margin-bottom: 12px;
  471. font-size: 14px;
  472. line-height: 1.6;
  473. }
  474. .toast {
  475. position: fixed;
  476. right: 20px;
  477. bottom: 20px;
  478. background: var(--ink);
  479. color: white;
  480. padding: 12px 14px;
  481. border-radius: 10px;
  482. max-width: 320px;
  483. box-shadow: var(--shadow);
  484. font-size: 14px;
  485. line-height: 1.5;
  486. }
  487. .split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; align-items: start; }
  488. .log { margin: 0; padding-left: 18px; color: var(--muted); }
  489. .log li { margin: 4px 0; line-height: 1.6; }
  490. @media (max-width: 900px) {
  491. .login, .shell, .split { grid-template-columns: 1fr; }
  492. .login-side { padding: 28px 22px; }
  493. /* 窄屏单列:回到整页滚动,不锁两栏各自的高度与滚动条 */
  494. .shell { height: auto; }
  495. .nav, .nav-menu, .main { height: auto; overflow: visible; overscroll-behavior: auto; }
  496. }
  497. /* ================= 交互与视觉增强 ================= */
  498. /* 全局过渡基类,给常见可交互元素 */
  499. button, .card, .panel, tr.clickable, .tree-select, label.ck {
  500. transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease;
  501. }
  502. input, select, textarea { transition: border-color 180ms ease, box-shadow 180ms ease; }
  503. /* 侧栏:折叠子菜单过渡(用 max-height 替代 display:none) */
  504. .nav .nav-sub { overflow: hidden; transition: max-height 220ms ease, opacity 220ms ease; max-height: 600px; opacity: 1; }
  505. .nav .nav-sub.closed { max-height: 0; opacity: 0; }
  506. /* 侧栏叶子按钮活跃态:左侧竖条 + 更强对比 */
  507. .nav .nav-sub .nav-leaf.active {
  508. position: relative;
  509. background: rgba(14, 110, 104, 0.22);
  510. color: #fff;
  511. padding-left: 14px;
  512. }
  513. .nav .nav-sub .nav-leaf.active::before {
  514. content: "";
  515. position: absolute; left: -12px; top: 4px; bottom: 4px; width: 3px;
  516. background: #19d0c0; border-radius: 2px;
  517. }
  518. .nav .nav-sub .nav-leaf:hover { color: #fff; background: rgba(255,255,255,0.06); }
  519. /* 顶层叶子按钮(如"概览""审计日志")活跃态 */
  520. .nav > button.nav-leaf.active {
  521. background: rgba(14, 110, 104, 0.22);
  522. color: #fff;
  523. }
  524. /* 折叠 caret 旋转 */
  525. .nav .nav-group .caret { transform: rotate(-90deg); }
  526. .nav .nav-group.open .caret { transform: rotate(0deg); }
  527. /* 按钮:focus-visible + 按下态 */
  528. .btn:focus-visible, button:focus-visible,
  529. .persona:focus-visible, .tree-select:focus-visible {
  530. outline: 2px solid var(--teal);
  531. outline-offset: 2px;
  532. }
  533. .btn:active { transform: translateY(1px); }
  534. /* 表格:thead 底线 + hover 高亮 + 斑马纹 */
  535. table { border-radius: 10px; overflow: hidden; }
  536. thead th {
  537. background: #faf4e8;
  538. border-bottom: 2px solid var(--line);
  539. padding: 10px 10px;
  540. position: sticky; top: 0; z-index: 1;
  541. }
  542. tbody tr:nth-child(even) td { background: #fbf7ee; }
  543. tbody tr.clickable:hover td, tbody tr:hover td {
  544. background: #f0e8d6 !important;
  545. }
  546. /* 套餐目录:用途分类分组小标题行 */
  547. tbody tr.grp td {
  548. background: #f2ece0 !important;
  549. border-bottom: 1px solid var(--line);
  550. padding: 7px 10px;
  551. font-weight: 640;
  552. color: var(--teal-ink);
  553. white-space: nowrap;
  554. }
  555. tbody tr.grp td span {
  556. margin-left: 10px;
  557. font-weight: 400;
  558. font-size: 12px;
  559. color: var(--muted);
  560. }
  561. /* 表单 focus glow */
  562. input:focus, select:focus, textarea:focus {
  563. border-color: var(--teal);
  564. box-shadow: 0 0 0 3px rgba(14, 110, 104, 0.14);
  565. outline: none;
  566. }
  567. /* panel / card 入场动画 */
  568. @keyframes fadeInUp {
  569. from { opacity: 0; transform: translateY(6px); }
  570. to { opacity: 1; transform: none; }
  571. }
  572. .panel, .card, .alert, .persona { animation: fadeInUp 300ms ease both; }
  573. .panel:nth-child(2) { animation-delay: 40ms; }
  574. .panel:nth-child(3) { animation-delay: 80ms; }
  575. .panel:nth-child(4) { animation-delay: 120ms; }
  576. /* toast 滑入 */
  577. .toast {
  578. animation: slideInRight 280ms ease both;
  579. }
  580. @keyframes slideInRight {
  581. from { opacity: 0; transform: translateX(24px); }
  582. to { opacity: 1; transform: none; }
  583. }
  584. /* 登录 persona 悬停抬升 */
  585. .persona { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
  586. .persona:hover {
  587. transform: translateY(-2px);
  588. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  589. border-color: var(--teal);
  590. }
  591. /* webkit 滚动条 */
  592. ::-webkit-scrollbar { width: 10px; height: 10px; }
  593. ::-webkit-scrollbar-track { background: transparent; }
  594. ::-webkit-scrollbar-thumb { background: #d7ccba; border-radius: 5px; }
  595. ::-webkit-scrollbar-thumb:hover { background: #b9ac95; }
  596. .panel::-webkit-scrollbar-thumb { background: #d7ccba; }
  597. /* pill hover 微动(可交互的情况下) */
  598. .pill { cursor: default; }
  599. /* 区域树选中节点加 glow */
  600. .tree-node.on .tree-select {
  601. box-shadow: 0 0 0 2px rgba(14,110,104,0.2);
  602. }
  603. /* 区域树操作菜单 */
  604. .tree-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; }
  605. .tree-head h2 { margin: 0; }
  606. .tree-node { position: relative; }
  607. .node-menu-btn {
  608. background: transparent; border: 1px solid transparent; border-radius: 6px;
  609. color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1;
  610. padding: 3px 7px; margin-left: 2px;
  611. }
  612. .node-menu-btn:hover { background: #efe7da; color: var(--ink); }
  613. .tree-node.on .node-menu-btn { color: #fff; }
  614. .tree-node.on .node-menu-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
  615. .node-menu {
  616. position: absolute; top: 100%; left: 0; z-index: 30;
  617. background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  618. box-shadow: 0 12px 32px rgba(40, 32, 20, 0.16);
  619. padding: 4px; min-width: 176px;
  620. display: flex; flex-direction: column; gap: 2px;
  621. }
  622. .node-menu button {
  623. text-align: left; background: transparent; border: 0; border-radius: 7px;
  624. padding: 7px 10px; font-size: 13.5px;
  625. }
  626. .node-menu button:hover { background: #f3efe6; }
  627. .node-menu button.danger { color: var(--red); }
  628. .node-menu button.danger:hover { background: #fde8e4; }
  629. /* 区域树面板:不裁剪溢出内容,保证节点下拉菜单完整显示 */
  630. .panel.uncut { overflow: visible; }
  631. /* 区域管理页:主区纵向铺满视口,左右两栏拉伸到底,区域树底部与窗口底部对齐 */
  632. .main.stretch { display: flex; flex-direction: column; padding-bottom: 22px; }
  633. .main.stretch .top { flex: none; }
  634. .main.stretch .region-split { flex: 1 1 auto; align-items: stretch; }
  635. .main.stretch .region-split > .panel.uncut { display: flex; flex-direction: column; }
  636. .main.stretch .region-split > .panel.uncut > ul.tree { flex: 1 1 auto; }
  637. .icon-btn {
  638. background: transparent; border: 1px solid var(--line); border-radius: 7px;
  639. color: var(--muted); font-size: 14px; line-height: 1;
  640. padding: 5px 8px; margin-left: 6px;
  641. }
  642. .icon-btn:hover { background: #efe7da; color: var(--ink); }
  643. .icon-btn.danger:hover { background: #fde8e4; color: var(--red); }
  644. /* 套餐目录操作列:编辑与删除用图标按钮,同一行水平排列不折行;引用提示另起一行 */
  645. .pkg-ops { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
  646. .pkg-ops .icon-btn { margin-left: 0; }
  647. /* 区域详情卡片标题旁的"被引用"小标签:随标题行内显示,不占独立高度 */
  648. .ref-tag {
  649. display: inline-block; vertical-align: 2px; margin-left: 8px;
  650. font-size: 12px; font-weight: 500; color: var(--red);
  651. background: #fde8e4; border-radius: 6px; padding: 2px 7px; cursor: help;
  652. }
  653. /* 弹窗 */
  654. .modal-overlay {
  655. position: fixed; inset: 0; z-index: 50;
  656. background: rgba(23, 32, 40, 0.45);
  657. display: flex; align-items: center; justify-content: center;
  658. padding: 20px;
  659. animation: fadeIn 160ms ease both;
  660. }
  661. @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  662. /* 弹窗已开着时的重绘(如切换套餐档位、条目增删、校验反馈):不再重播入场动画,消除闪动 */
  663. .modal-overlay.no-anim { animation: none; }
  664. .modal-overlay.no-anim .panel, .modal-overlay.no-anim .card, .modal-overlay.no-anim .alert { animation: none; }
  665. /* 同一次重绘里底层整页也会重建,隔着半透明遮罩可见其卡片上浮动画重播——一并禁用 */
  666. #app.no-page-anim .panel, #app.no-page-anim .card, #app.no-page-anim .alert,
  667. #app.no-page-anim .persona, #app.no-page-anim .ov-card { animation: none; }
  668. .modal {
  669. background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  670. padding: 20px 22px; width: 100%; max-width: 480px;
  671. max-height: calc(100vh - 40px); overflow-y: auto;
  672. box-shadow: 0 20px 60px rgba(20, 16, 10, 0.28);
  673. }
  674. .modal h3 { font-size: 17px; margin-bottom: 10px; }
  675. .modal label { margin-top: 2px; }
  676. /* 弹窗内的编辑项跟随弹窗宽度,不再受全局 420/560 上限约束(多行文本框同样撑满所在列) */
  677. .modal input, .modal select, .modal textarea { max-width: 100%; }
  678. /* 字段较多的新增/编辑表单(客户档案、订阅)用宽弹窗 */
  679. .modal.wide { max-width: 760px; }
  680. /* 新增客户字段最多(含客户主账号),再加宽一档 */
  681. .modal.wider { max-width: 980px; }
  682. /* 加宽后表单最小列宽同步提高,保证每行最多三列(窄屏仍自动降为两列/单列) */
  683. .modal.wider .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  684. /* 报文兜底与超期工单明细:列数多,用最宽一档,让整表在常见宽屏上不必横向滚动 */
  685. .modal.widest { max-width: min(1320px, 100%); }
  686. /* 兜底表的处理列改上下排布,下拉显式限宽(否则固有宽度随最长选项,整表被撑到 1300+) */
  687. .fb-act { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
  688. .fb-act select { width: 230px; max-width: 100%; }
  689. /* 该档弹窗内的说明列允许压得更窄,把宽度让给处理列 */
  690. .modal.widest td.wrap { min-width: 180px; }
  691. .modal .form-grid { gap: 0 16px; }
  692. /* 客户名称联想下拉:输入部分关键字后在输入框下方弹出已有客户列表 */
  693. .ac-box { position: relative; }
  694. .ac-list {
  695. position: absolute; z-index: 30; top: calc(100% + 2px); left: 0; right: 0;
  696. max-height: 220px; overflow-y: auto;
  697. background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  698. box-shadow: 0 12px 28px rgba(20, 16, 10, 0.18);
  699. }
  700. .ac-item {
  701. display: block; width: 100%; text-align: left; padding: 7px 12px;
  702. background: none; border: 0; border-bottom: 1px solid rgba(226, 217, 204, 0.5);
  703. font: inherit; color: var(--ink); cursor: pointer;
  704. }
  705. .ac-item:last-child { border-bottom: 0; }
  706. .ac-item:hover { background: #f3eee4; }
  707. .ac-item small { display: block; opacity: 0.65; font-size: 12px; }
  708. /* 标题右侧问号提示:悬停或聚焦时弹出说明文字 */
  709. .q-tip {
  710. position: relative;
  711. display: inline-flex;
  712. align-items: center;
  713. justify-content: center;
  714. width: 18px;
  715. height: 18px;
  716. margin-left: 8px;
  717. border-radius: 50%;
  718. border: 1px solid var(--line);
  719. background: #f3eee4;
  720. color: var(--muted);
  721. font-size: 12px;
  722. font-weight: 600;
  723. cursor: help;
  724. vertical-align: 2px;
  725. }
  726. .q-tip .q-tip-pop {
  727. display: none;
  728. position: absolute;
  729. top: 24px;
  730. left: -10px;
  731. width: 320px;
  732. padding: 10px 12px;
  733. background: #2f2a22;
  734. color: #fff;
  735. font-size: 12px;
  736. font-weight: 400;
  737. line-height: 1.6;
  738. text-align: left;
  739. border-radius: 8px;
  740. z-index: 30;
  741. box-shadow: 0 8px 24px rgba(20, 16, 10, 0.25);
  742. }
  743. .q-tip:hover .q-tip-pop, .q-tip:focus .q-tip-pop, .q-tip.open .q-tip-pop { display: block; }
  744. /* 表头里的问号:单元格是 nowrap,弹层要单独允许换行;靠右的列让弹层向左展开,
  745. 否则会被 .panel 的横向滚动裁掉(overflow-x:auto 同时会裁掉纵向溢出) */
  746. th .q-tip-pop { white-space: normal; }
  747. .q-tip.pop-right .q-tip-pop { left: auto; right: -6px; }
  748. /* 初始密码:输入框与「自动生成」按钮同行,等宽字体便于分辨易混字符 */
  749. .pwd-row { display: flex; align-items: center; gap: 8px; }
  750. .pwd-row input {
  751. flex: 1; min-width: 0; max-width: none;
  752. font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px;
  753. }
  754. .pwd-row input.flash { animation: pwdFlash 520ms ease both; }
  755. @keyframes pwdFlash { from { background: #dff3ef; border-color: var(--teal); } to { background: white; border-color: var(--line); } }
  756. /* 新增档案时一并开通登录账号:可选区块,左侧色条把「登录名—初始密码—手机号」归为一组,
  757. 浅底与卡片底色区分,表明这几项不是档案必填内容(都留空即只建档案) */
  758. .acct-new {
  759. margin-top: 8px;
  760. padding: 8px 12px 6px;
  761. border: 1px solid var(--line);
  762. border-left: 3px solid var(--teal);
  763. border-radius: 10px;
  764. background: #fbf7ef;
  765. }
  766. .acct-new .note { margin-top: 4px; }
  767. /* 登录名与手机号并排显示 */
  768. .acct-grid {
  769. display: grid;
  770. grid-template-columns: 1fr 1fr;
  771. gap: 0 12px;
  772. }
  773. @media (max-width: 580px) { .acct-grid { grid-template-columns: 1fr; } }
  774. /* 弹窗内可折叠说明,默认收起 */
  775. details.note-details { margin-top: 4px; }
  776. details.note-details summary {
  777. cursor: pointer; font-size: 12px; color: var(--muted);
  778. list-style: none; display: inline-flex; align-items: center; gap: 4px;
  779. }
  780. details.note-details summary::before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); background: #f3eee4; font-size: 10px; font-weight: 600; flex: none; }
  781. details.note-details[open] summary::before { content: '\2212'; }
  782. details.note-details .note { margin-top: 4px; }
  783. /* 成员负责范围:下拉多选树。收起时是一行选择框,展开后浮层内是区域—客户勾选树,区域可整块勾选 */
  784. .scope-pick { position: relative; margin-top: 6px; }
  785. .scope-pick-btn {
  786. width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  787. padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  788. background: var(--card); font-size: 14px; text-align: left;
  789. transition: border-color 160ms ease;
  790. }
  791. .scope-pick-btn:hover, .scope-pick.open .scope-pick-btn { border-color: var(--teal); }
  792. .scope-pick-text {
  793. flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  794. color: var(--muted);
  795. }
  796. .scope-pick-caret { color: var(--muted); font-size: 12px; transition: transform 160ms ease; }
  797. .scope-pick.open .scope-pick-caret { transform: rotate(180deg); }
  798. .scope-pick-pop {
  799. display: none; position: absolute; z-index: 6; left: 0; right: 0; margin-top: 6px;
  800. padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  801. box-shadow: 0 14px 34px rgba(40, 32, 20, 0.16);
  802. }
  803. .scope-pick.open .scope-pick-pop { display: block; animation: fadeIn 140ms ease both; }
  804. .scope-pick-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  805. .scope-pick-bar .note { margin-left: auto; }
  806. .scope-pick-scroll { max-height: 250px; overflow: auto; }
  807. ul.tree .sp-region { font-weight: 600; }
  808. ul.tree .sp-region, ul.tree .sp-ent { margin: 3px 0; }
  809. /* 导出激活码弹窗:区域范围勾选树在弹窗内直接展开(勾选父节点即整块勾选其下级) */
  810. .ex-tree {
  811. max-height: 262px; overflow: auto; margin: 0 0 12px;
  812. padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbf7ef;
  813. }
  814. .ex-tree ul.tree { margin: 2px 0; }
  815. .ex-tree label.ck { font-weight: normal; }
  816. /* 工单流程:状态筛选 tabs */
  817. .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  818. .tab {
  819. display: inline-flex; align-items: center; gap: 6px;
  820. border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  821. padding: 6px 14px; font-size: 13px; color: var(--muted);
  822. transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  823. }
  824. .tab b { font-size: 12px; color: inherit; opacity: 0.75; }
  825. .tab:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-1px); }
  826. .tab.active { background: var(--teal-ink); border-color: var(--teal-ink); color: #f3efe6; }
  827. .tab.active b { opacity: 0.9; }
  828. /* 运维团队:tab 与「开通运维团队」按钮同行,tab 在左按钮在右 */
  829. .team-tabs { justify-content: space-between; margin-bottom: 14px; }
  830. .panel-sub { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
  831. /* 某类型尚未开通团队时的空白 tab 页:虚线空态 + 居中开通入口 */
  832. .team-empty {
  833. display: flex; flex-direction: column; align-items: center; gap: 4px;
  834. padding: 46px 18px; border: 1px dashed #d3c6b3; background: transparent;
  835. }
  836. .team-empty-title { font-size: 15px; color: var(--ink); }
  837. .team-empty .note { max-width: 540px; margin-bottom: 10px; }
  838. /* 工单流程:状态流转指示 */
  839. .flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
  840. .fstep {
  841. display: inline-flex; align-items: center;
  842. border: 1px solid var(--line); border-radius: 999px;
  843. padding: 3px 12px; font-size: 12px; color: var(--muted); background: var(--card);
  844. }
  845. .fstep.done { border-color: #bcd9c8; color: var(--green); background: #e5f4ea; }
  846. .fstep.now { border-color: var(--teal); color: var(--teal-ink); background: #e5f3f2; font-weight: 600; }
  847. .fstep.bad { border-color: #eac4bc; color: var(--red); background: #fde8e4; }
  848. .farrow { color: var(--muted); font-size: 12px; }
  849. .fstep.clickable {
  850. cursor: pointer; border-style: dashed; border-color: var(--teal); color: var(--teal-ink);
  851. transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  852. }
  853. .fstep.clickable:hover {
  854. transform: translateY(-1px);
  855. background: #eef7f5;
  856. box-shadow: 0 0 0 2px rgba(14, 110, 104, 0.15);
  857. }
  858. /* ===== 区域管理:概况卡片 + 钻取列表 ===== */
  859. /* 右栏允许收缩到 fr 份额以内,宽表格在 panel 内部横向滚动,避免挤压左侧区域树 */
  860. .region-over { min-height: 0; min-width: 0; }
  861. .ov-grid {
  862. display: grid;
  863. grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  864. gap: 14px;
  865. align-content: start;
  866. }
  867. button.ov-card {
  868. text-align: left;
  869. width: 100%;
  870. display: flex;
  871. flex-direction: column;
  872. gap: 6px;
  873. cursor: pointer;
  874. border: 1px solid var(--line);
  875. }
  876. button.ov-card:hover {
  877. border-color: var(--teal);
  878. transform: translateY(-2px);
  879. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  880. }
  881. .ov-card .ov-title { color: var(--muted); font-size: 13.5px; }
  882. .ov-card b { font-size: 30px; margin: 2px 0; line-height: 1.1; word-break: break-word; }
  883. .ov-card .ov-sub { color: var(--muted); font-size: 12.5px; line-height: 1.55; min-height: 36px; }
  884. .ov-card .ov-go { color: var(--teal-ink); font-size: 12.5px; margin-top: 2px; }
  885. .ov-head .row { margin-bottom: 2px; }
  886. /* 危险色 ghost 按钮 */
  887. .btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
  888. .btn.danger:hover { background: #fde8e4; }
  889. /* 概况卡片与右侧钻取视图入场动画(保持既有动效) */
  890. .ov-card { animation: fadeInUp 300ms ease both; }
  891. /* 列表筛选条:区域/付款周期下拉框与名称文本框排在表头上方,底部对齐 */
  892. .filters {
  893. display: flex;
  894. flex-wrap: wrap;
  895. gap: 10px 16px;
  896. align-items: flex-end;
  897. margin: 6px 0 12px;
  898. }
  899. .filters .f-item label { margin: 0 0 4px; }
  900. .filters .f-item select,
  901. .filters .f-item input { width: auto; min-width: 200px; max-width: 320px; }
  902. /* 多选筛选下拉:工单类型 / 状态 / 回填来源三组各占一个控件的宽度,与其他下拉同行排布,
  903. 纵向省掉三整行标签。选项面板绝对定位浮在表格上方,展开态由 JS 状态维持,勾完一项仍保持展开 */
  904. .filters .f-item .msel { position: relative; }
  905. .filters .f-item .msel-btn {
  906. display: flex;
  907. align-items: center;
  908. gap: 8px;
  909. width: auto;
  910. min-width: 200px;
  911. max-width: 320px;
  912. border: 1px solid var(--line);
  913. background: white;
  914. border-radius: 8px;
  915. padding: 8px 10px;
  916. text-align: left;
  917. transition: border-color 180ms ease, box-shadow 180ms ease;
  918. }
  919. .filters .f-item .msel-btn:hover { border-color: var(--teal); }
  920. .filters .f-item .msel.open .msel-btn { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 110, 104, 0.12); }
  921. .filters .f-item .msel-text {
  922. flex: 1 1 auto;
  923. min-width: 0;
  924. overflow: hidden;
  925. white-space: nowrap;
  926. text-overflow: ellipsis;
  927. color: var(--muted);
  928. }
  929. .filters .f-item .msel-btn.has .msel-text { color: var(--ink); font-weight: 600; }
  930. .filters .f-item .msel-n {
  931. flex: none;
  932. min-width: 18px;
  933. padding: 0 5px;
  934. border-radius: 999px;
  935. background: var(--teal);
  936. color: #fff;
  937. font-size: 11.5px;
  938. line-height: 17px;
  939. text-align: center;
  940. }
  941. .filters .f-item .msel-caret { flex: none; color: var(--muted); transition: transform 150ms ease; }
  942. .filters .f-item .msel.open .msel-caret { transform: rotate(180deg); }
  943. .filters .f-item .msel-panel {
  944. position: absolute;
  945. z-index: 30;
  946. top: calc(100% + 4px);
  947. left: 0;
  948. min-width: 100%;
  949. max-height: 264px;
  950. overflow-y: auto;
  951. display: flex;
  952. flex-direction: column;
  953. gap: 2px;
  954. padding: 6px;
  955. background: var(--card);
  956. border: 1px solid var(--line);
  957. border-radius: 10px;
  958. box-shadow: var(--shadow);
  959. }
  960. .filters .f-item .msel-opt {
  961. display: flex;
  962. align-items: center;
  963. gap: 7px;
  964. white-space: nowrap;
  965. border: 0;
  966. background: transparent;
  967. border-radius: 7px;
  968. padding: 6px 9px;
  969. font-size: 13.5px;
  970. text-align: left;
  971. }
  972. .filters .f-item .msel-opt:hover { background: #f0e8d6; }
  973. .filters .f-item .msel-opt.on { color: var(--teal-ink); font-weight: 600; }
  974. .filters .f-item .msel-tick { flex: none; width: 12px; color: var(--teal); font-weight: 700; }