styles.css 48 KB

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