styles.css 44 KB

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