|
|
@@ -14,7 +14,7 @@
|
|
|
*/
|
|
|
|
|
|
/* ── 页首:返回、工单号+类型+状态、唯一主 CTA、元信息与细进度条 ────── */
|
|
|
-.ops-record-back { margin-bottom: 10px; padding-inline: 0; color: var(--primary); font-weight: 650; }
|
|
|
+.ops-record-back { margin-bottom: 10px; padding-inline: 0; color: var(--primary); font-weight: 500; }
|
|
|
.ops-record-back:hover { background: transparent; text-decoration: underline; }
|
|
|
|
|
|
.work-order-head {
|
|
|
@@ -29,16 +29,15 @@
|
|
|
}
|
|
|
.work-order-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
|
|
|
.work-order-head-id { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
|
|
|
-.work-order-head-no { font: 700 22px/1.2 var(--font-mono); letter-spacing: -.01em; }
|
|
|
+.work-order-head-no { color: var(--primary-soft-foreground); font: 600 var(--type-support)/1.4 var(--font-mono); letter-spacing: .04em; overflow-wrap: anywhere; }
|
|
|
.work-order-head-actions { display: flex; align-items: center; flex: none; gap: 8px; }
|
|
|
-.work-order-head-title { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
|
|
|
-.work-order-head-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--text-secondary); font-size: var(--type-support); }
|
|
|
-.work-order-head-meta span { display: inline-flex; align-items: baseline; gap: 5px; }
|
|
|
-.work-order-head-meta span b { color: var(--foreground); font-weight: 600; }
|
|
|
+.work-order-head-title { margin: 0; color: var(--foreground); font-size: clamp(21px, 1.8vw, 25px); font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
|
|
|
+.work-order-head-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
+.work-order-head-meta > span { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
|
|
|
+.work-order-head-meta b { color: var(--foreground); font-size: var(--type-support); font-weight: 500; overflow-wrap: anywhere; }
|
|
|
.work-order-head-meta i { color: var(--border); font-style: normal; }
|
|
|
-.work-order-head-due b { color: var(--warning); }
|
|
|
.work-order-head-due.overdue b { color: var(--destructive); }
|
|
|
-.work-order-head-hint { display: flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: var(--type-support); }
|
|
|
+.work-order-head-hint { display: flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: var(--type-meta); line-height: 1.5; }
|
|
|
.work-order-head-hint::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
|
|
|
|
|
|
/* 细进度条:从一整排卡片压成一行,只在页首出现一次 */
|
|
|
@@ -51,7 +50,7 @@
|
|
|
.work-order-step.cur {
|
|
|
position: relative; gap: 7px; margin: 1px 0; padding: 3px 10px 3px 4px;
|
|
|
border-radius: 999px; background: var(--primary-soft);
|
|
|
- color: var(--primary); font-weight: 700;
|
|
|
+ color: var(--primary); font-weight: 600;
|
|
|
}
|
|
|
.work-order-step.cur b {
|
|
|
border-color: var(--primary); background: var(--primary); color: var(--primary-foreground);
|
|
|
@@ -63,7 +62,7 @@
|
|
|
50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 6%, transparent); }
|
|
|
}
|
|
|
/* 作废收口:红点表示「到此为止」,⛔ 用 current 的脉冲(会读成还在进行) */
|
|
|
-.work-order-step.void { color: var(--destructive); font-weight: 700; }
|
|
|
+.work-order-step.void { color: var(--destructive); font-weight: 600; }
|
|
|
.work-order-step.void b { border-color: var(--destructive-border); background: var(--destructive-soft); color: var(--destructive); }
|
|
|
/* 连接线:已走过的阶段画成主色,进度到达哪里一眼可读 */
|
|
|
.work-order-steps i { width: 22px; height: 1px; margin: 0 7px; background: var(--border); }
|
|
|
@@ -97,19 +96,19 @@
|
|
|
.work-order-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--warning-border); border-radius: 10px; background: var(--warning-soft); }
|
|
|
.work-order-banner.danger { border-color: var(--destructive-border); background: var(--destructive-soft); }
|
|
|
.work-order-banner > div { display: grid; gap: 3px; min-width: 0; }
|
|
|
-.work-order-banner strong { display: flex; align-items: center; gap: 7px; color: var(--warning); font-size: var(--type-body); }
|
|
|
+.work-order-banner strong { display: flex; align-items: center; gap: 7px; color: var(--warning); font-size: var(--type-body); font-weight: 600; }
|
|
|
.work-order-banner.danger strong { color: var(--destructive); }
|
|
|
.work-order-banner p { margin: 0; color: var(--text-secondary); font-size: var(--type-support); overflow-wrap: anywhere; }
|
|
|
.work-order-banner small { color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
|
|
|
.work-order-gaps { padding: 15px 17px; border: 1px solid var(--warning-border); border-radius: 10px; background: var(--warning-soft); }
|
|
|
.work-order-gaps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
|
|
|
-.work-order-gaps-head strong { color: var(--warning); font-size: var(--type-body); }
|
|
|
+.work-order-gaps-head strong { color: var(--warning); font-size: var(--type-body); font-weight: 600; }
|
|
|
.work-order-gaps-head span { color: var(--text-secondary); font-size: var(--type-meta); }
|
|
|
.work-order-gaps ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
|
|
|
.work-order-gaps li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 7px; background: var(--card); }
|
|
|
.work-order-gaps li > div { display: grid; flex: 1; gap: 1px; min-width: 0; }
|
|
|
-.work-order-gaps li b { font-size: var(--type-support); }
|
|
|
+.work-order-gaps li b { font-size: var(--type-support); font-weight: 500; }
|
|
|
.work-order-gaps li p { margin: 0; color: var(--text-secondary); font-size: var(--type-meta); line-height: 1.5; }
|
|
|
.work-order-gaps li button { flex: none; }
|
|
|
.work-order-gaps .work-order-detail-footnote { margin-top: 10px; padding: 0; background: transparent; }
|
|
|
@@ -119,12 +118,12 @@
|
|
|
|
|
|
.work-order-void { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; border: 1px solid var(--destructive-border); border-radius: 9px; background: var(--destructive-soft); }
|
|
|
.work-order-void > svg { flex: none; margin-top: 1px; color: var(--destructive); }
|
|
|
-.work-order-void strong { color: var(--destructive); font-size: var(--type-support); }
|
|
|
+.work-order-void strong { color: var(--destructive); font-size: var(--type-body); font-weight: 600; }
|
|
|
.work-order-void p { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--text-secondary); font-size: var(--type-support); line-height: 1.5; }
|
|
|
|
|
|
.work-order-view-only { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-subtle); }
|
|
|
.work-order-view-only > svg { flex: none; margin-top: 1px; color: var(--icon); }
|
|
|
-.work-order-view-only strong { color: var(--foreground); font-size: var(--type-support); }
|
|
|
+.work-order-view-only strong { color: var(--foreground); font-size: var(--type-body); font-weight: 600; }
|
|
|
.work-order-view-only p { margin: 3px 0 0; color: var(--text-secondary); font-size: var(--type-support); line-height: 1.5; }
|
|
|
|
|
|
/* ── 两栏:正文 + 右侧处理记录(吸附、随窗口自适应) ─────────────── */
|
|
|
@@ -141,7 +140,7 @@
|
|
|
|
|
|
/* 工单内容=正文主角:主色竖线引文块,客户/合同等参考信息不占此位 */
|
|
|
.work-order-section-lead { border-color: var(--primary-border); }
|
|
|
-.work-order-ticket-lead { margin: 0 0 18px; padding: 14px 16px; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; background: var(--primary-soft); color: var(--foreground); font-size: var(--type-comfort); line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
|
+.work-order-ticket-lead { margin: 0 0 18px; padding: 14px 16px; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; background: var(--primary-soft); color: var(--foreground); font-size: var(--type-body); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
|
.work-order-ticket-lead:last-child { margin-bottom: 0; }
|
|
|
|
|
|
/* 字段摘要:按可用宽度自动折列;`.wide` 整行铺开长文本 */
|
|
|
@@ -152,6 +151,17 @@
|
|
|
.work-order-summary-grid strong { overflow-wrap: anywhere; color: var(--foreground); font-size: var(--type-body); font-weight: 650; line-height: 1.45; }
|
|
|
.work-order-summary-grid strong em { font-style: normal; }
|
|
|
.work-order-subhead { margin: 2px 0 0; font-size: var(--type-support); font-weight: 650; }
|
|
|
+.work-order-layout :is(.work-order-facts-head h2, .wo-guide > .work-order-section-title, .work-order-logs-panel h2, .work-order-refs h2) {
|
|
|
+ color: var(--foreground);
|
|
|
+ font-size: var(--type-section);
|
|
|
+ font-weight: 600;
|
|
|
+ line-height: 1.4;
|
|
|
+}
|
|
|
+.work-order-layout .work-order-subhead { font-size: var(--type-body); font-weight: 600; }
|
|
|
+.work-order-layout .work-order-summary-grid > div > span { color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
+.work-order-layout .work-order-summary-grid > div > strong { font-weight: 500; }
|
|
|
+.work-order-layout .wo-guide-members { font-size: var(--type-support); line-height: 1.55; }
|
|
|
+:is(.work-order-layout, .work-order-todo) .work-order-detail-footnote { font-size: var(--type-meta); }
|
|
|
|
|
|
/* ── 交付事实:段头摘要行 + 折叠 ─────────────────────────────── */
|
|
|
/* 折叠:关闭的 <details> 只留 summary。子元素自带 `display: grid`(.work-order-seg-body),
|
|
|
@@ -159,13 +169,13 @@
|
|
|
.work-order-seg:not([open]) > :not(summary) { display: none !important; }
|
|
|
.work-order-facts { display: grid; gap: 0; padding-bottom: 10px; }
|
|
|
.work-order-facts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
|
|
|
-.work-order-facts-head h2 { margin: 0; font-size: var(--type-section); }
|
|
|
+.work-order-facts-head h2 { margin: 0; }
|
|
|
.work-order-facts-head span { color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
.work-order-seg { border-top: 1px solid var(--border-subtle); }
|
|
|
.work-order-seg > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 13px 2px; list-style: none; cursor: pointer; }
|
|
|
.work-order-seg > summary::-webkit-details-marker { display: none; }
|
|
|
.work-order-seg > summary:hover .work-order-seg-title { color: var(--primary); }
|
|
|
-.work-order-seg-title { display: flex; align-items: center; gap: 8px; font-size: var(--type-body); font-weight: 650; }
|
|
|
+.work-order-seg-title { display: flex; align-items: center; gap: 8px; font-size: var(--type-body); font-weight: 600; }
|
|
|
.work-order-seg-summary { grid-column: 2; justify-self: end; color: var(--text-secondary); font-size: var(--type-support); text-align: right; overflow-wrap: anywhere; }
|
|
|
.work-order-seg-badge { grid-column: 3; justify-self: end; padding: 2px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--text-secondary); font-size: var(--type-meta); white-space: nowrap; }
|
|
|
.work-order-seg-badge.ok { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
|
|
|
@@ -173,7 +183,7 @@
|
|
|
.work-order-seg-chev { grid-column: 4; width: 16px; height: 16px; color: var(--icon); transition: transform .16s ease; }
|
|
|
.work-order-seg[open] > summary .work-order-seg-chev { transform: rotate(180deg); }
|
|
|
.work-order-seg-body { display: grid; gap: 12px; padding: 2px 0 16px; }
|
|
|
-.work-order-seg-body > p { margin: 0; color: var(--text-secondary); font-size: var(--type-support); }
|
|
|
+.work-order-seg-body > p { margin: 0; }
|
|
|
.work-order-seg-foot { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--muted-foreground); font-size: var(--type-meta); line-height: 1.6; }
|
|
|
.work-order-seg-foot > svg { flex: none; margin-top: 1px; }
|
|
|
.work-order-seg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
|
@@ -188,6 +198,7 @@
|
|
|
.work-order-table-wrap tbody tr:last-child td { border-bottom: 0; }
|
|
|
.work-order-table-wrap td strong { display: block; overflow-wrap: anywhere; color: var(--foreground); font-size: var(--type-support); font-weight: 650; }
|
|
|
.work-order-table-wrap td small { display: block; margin-top: 3px; color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
+.work-order-layout .work-order-table-wrap :is(th, td strong) { color: var(--text-secondary); font-weight: 500; }
|
|
|
|
|
|
/* 核对结果标签 */
|
|
|
.ops-state { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid; border-radius: 5px; font-size: var(--type-support); font-weight: 650; line-height: 1.2; white-space: nowrap; }
|
|
|
@@ -197,10 +208,10 @@
|
|
|
/* ── 右栏:处理记录面板(全部显示 + 面板内滚动 + 向上流动) ─────── */
|
|
|
.work-order-logs-panel { display: flex; flex-direction: column; height: calc(100dvh - 92px); max-height: calc(100dvh - 92px); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
|
|
|
.work-order-logs-panel > header { display: flex; align-items: baseline; justify-content: space-between; flex: none; gap: 10px; padding: 15px 17px 11px; border-bottom: 1px solid var(--border-subtle); }
|
|
|
-.work-order-logs-panel h2 { margin: 0; font-size: var(--type-section); }
|
|
|
+.work-order-logs-panel h2 { margin: 0; }
|
|
|
.work-order-logs-panel > header span { flex: none; color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
.work-order-logs-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 13px 17px 15px; }
|
|
|
-.work-order-logs-empty { margin: 0; color: var(--text-secondary); font-size: var(--type-support); }
|
|
|
+.work-order-logs-empty { margin: 0; color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
|
|
|
.work-order-tl { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
|
|
|
.work-order-tl li { position: relative; padding: 0 0 14px 30px; }
|
|
|
@@ -250,27 +261,28 @@
|
|
|
.work-order-tl-flow { display: none; }
|
|
|
.work-order-tl li:first-of-type .work-order-tl-dot::after { animation: none; opacity: .45; }
|
|
|
}
|
|
|
-.work-order-tl b { font-size: var(--type-support); }
|
|
|
+.work-order-tl b { color: var(--foreground); font-size: var(--type-support); font-weight: 600; overflow-wrap: anywhere; }
|
|
|
/* 标题行:左=动作名,右=发生时刻。时刻沿用灰小字(与署名同档),⛔ 与标题同字重。 */
|
|
|
.work-order-tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
|
|
|
.work-order-tl-time { flex: none; color: var(--muted-foreground); font: var(--type-meta)/1.5 var(--font-mono); white-space: nowrap; }
|
|
|
-.work-order-tl p { margin: 2px 0 0; color: var(--text-secondary); font-size: var(--type-support); overflow-wrap: anywhere; }
|
|
|
-.work-order-tl small { display: block; margin-top: 3px; color: var(--muted-foreground); font: var(--type-meta)/1.5 var(--font-mono); }
|
|
|
+.work-order-tl p { margin: 2px 0 0; color: var(--text-secondary); font-size: var(--type-support); line-height: 1.55; overflow-wrap: anywhere; }
|
|
|
+.work-order-tl small { display: block; margin-top: 3px; color: var(--muted-foreground); font-size: var(--type-meta); line-height: 1.5; overflow-wrap: anywhere; }
|
|
|
|
|
|
/* ── 正文底部的参考信息(主列内,宽度与上方卡片天然同宽) ───────── */
|
|
|
.work-order-refs { display: grid; gap: 13px; }
|
|
|
.work-order-refs > section { min-width: 0; }
|
|
|
-.work-order-refs h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: var(--type-body); }
|
|
|
+.work-order-refs h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
|
|
|
.work-order-refs h2 span { flex: none; color: var(--muted-foreground); font-size: var(--type-meta); font-weight: 500; }
|
|
|
-.work-order-reference-empty { margin: 0; color: var(--text-secondary); font-size: var(--type-support); }
|
|
|
+.work-order-reference-empty { margin: 0; color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
.work-order-trace { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 4px 14px; padding: 7px 0; border-bottom: 1px solid var(--border-subtle); }
|
|
|
.work-order-trace:first-of-type { padding-top: 0; }
|
|
|
.work-order-trace:last-child { padding-bottom: 0; border-bottom: 0; }
|
|
|
-.work-order-trace > span { color: var(--text-secondary); font-size: var(--type-meta); }
|
|
|
-.work-order-trace > strong { overflow-wrap: anywhere; font-size: var(--type-support); font-weight: 600; }
|
|
|
+.work-order-trace > span { color: var(--muted-foreground); font-size: var(--type-meta); }
|
|
|
+.work-order-trace > strong, .work-order-trace .work-order-member-row { overflow-wrap: anywhere; font-size: var(--type-support); font-weight: 500; }
|
|
|
.work-order-trace > small { grid-column: 2; overflow-wrap: anywhere; color: var(--muted-foreground); font-size: var(--type-meta); line-height: 1.5; }
|
|
|
+.work-order-trace .work-order-member-row small { font-size: var(--type-meta); font-weight: 400; }
|
|
|
/* 参考区的可点字段:外观仍是一行摘要,只把「能点开」显性化 */
|
|
|
-.work-order-trace-link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 650; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
|
|
|
+.work-order-trace-link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 500; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
|
|
|
.work-order-trace-link:hover { text-decoration: underline; }
|
|
|
.work-order-trace-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
|
|
|
.work-order-trace-missing { color: var(--danger, #b42318); }
|