:root {
  /* 简约皮肤：中性石墨 + 单一蓝色强调（参照 shadcn/ui 的 color tokens） */
  --navy: #111827;
  --navy-2: #1f2937;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --bg: #f7f8fa;
  --card: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
/* 页面高度变化时别让滚动条一会出现一会消失（内容会横向抖一下） */
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }
svg { display: block; }
.hidden { display: none !important; }

/* ---------- 登录 ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr); }
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 64px clamp(32px, 6vw, 92px);
  background: linear-gradient(145deg, #0a2340 0%, #0d2b4e 48%, #16456f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-brand::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.auth-brand::after { width: 380px; height: 380px; right: -80px; bottom: -180px; background: rgba(47, 111, 235, 0.12); }
.auth-mark {
  width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-size: 24px; font-weight: 800; margin-bottom: 34px;
  position: relative; z-index: 1; overflow: hidden; padding: 5px;
}
.auth-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.auth-kicker { font-size: 11px; letter-spacing: 0.24em; color: rgba(255,255,255,.55); margin-bottom: 12px; position: relative; z-index: 1; }
.auth-brand h1 { margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.16; letter-spacing: -0.5px; position: relative; z-index: 1; }
.auth-brand p { margin: 0; max-width: 440px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; position: relative; z-index: 1; }
.auth-points { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82); font-size: 13px; }
.auth-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fb0ff; box-shadow: 0 0 0 4px rgba(127,176,255,.12); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 80px); background: #fff; }
.auth-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.auth-panel-head h2 { margin: 0; font-size: 24px; color: var(--navy); }
.auth-panel-head span { color: var(--muted); font-size: 12px; }
.login-form { width: 100%; max-width: 380px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,235,.12); background: #fff; }
.login-error { color: var(--bad); background: #fef3f2; border: 1px solid #fecdca; border-radius: 9px; padding: 10px 12px; font-size: 12px; margin: 4px 0 14px; }
.login-foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 18px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 15px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { border-color: #c7d4e8; background: #fbfcff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #2560d6; border-color: #2560d6; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef2f8; color: var(--ink); }
.btn-block { width: 100%; }
.btn-small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: #eef4ff; border-color: #eef4ff; }
.btn-ghost-light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.26); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

/* ---------- 壳 ---------- */
.shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--bg); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 22px 14px 14px;
  background: linear-gradient(180deg, #0b2542 0%, #0d2b4e 62%, #0a2340 100%);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; text-align: left; color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; overflow: hidden; padding: 4px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; letter-spacing: .5px; }
.brand-text span { font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: .12em; margin-top: 2px; }
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.side-nav::-webkit-scrollbar { width: 4px; height: 4px; }
.side-nav::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}
.side-nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.38); padding: 0 10px 7px; }
.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 11px;
  border-radius: 9px; color: rgba(255,255,255,.72); font-size: 13px; text-align: left;
  transition: background .15s, color .15s;
}
.side-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-item.on { background: rgba(255,255,255,.11); color: #fff; font-weight: 600; }
.side-icon { width: 17px; height: 17px; flex: 0 0 auto; opacity: .9; }
.side-tree { display: flex; flex-direction: column; gap: 2px; }
.side-parent { position: relative; }
.side-parent-row { display: flex; align-items: center; gap: 2px; width: 100%; }
.side-parent-row .side-item { flex: 1; width: auto; min-width: 0; }
.side-caret-btn {
  width: 26px;
  height: 30px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 1;
}
.side-caret-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-caret { margin-left: auto; font-size: 13px; line-height: 1; color: rgba(255, 255, 255, .55); }
.side-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 1px 0 4px 19px;
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.side-subtree { display: flex; flex-direction: column; gap: 2px; }
.side-subparent {
  min-height: 33px;
  padding-left: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
}
.side-grandchildren {
  margin: 1px 0 4px 10px;
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.side-child {
  min-height: 31px;
  padding: 0 9px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  border-radius: 7px;
}
.side-child::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.side-child.on {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 600;
}.side-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; display: flex; align-items: center; gap: 6px; }
.side-user-main { flex: 1; display: flex; align-items: center; gap: 9px; text-align: left; color: #fff; min-width: 0; }
.side-user-main div:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-user-main strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-main span { font-size: 10px; color: rgba(255,255,255,.5); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #e8effc; color: var(--navy);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.avatar.small { width: 30px; height: 30px; font-size: 10px; background: rgba(255,255,255,.14); color: #fff; }
.avatar.xl { width: 64px; height: 64px; font-size: 18px; background: var(--blue-soft); color: var(--blue); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted); transition: background .15s, color .15s; flex: 0 0 auto;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: #eef2f8; color: var(--ink); }
.icon-btn:disabled { opacity: .32; cursor: default; }
.icon-btn.dark { color: rgba(255,255,255,.55); }
.icon-btn.dark:hover { background: rgba(255,255,255,.1); color: #fff; }

.workspace { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.workspace-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 26px 34px 8px;
}
.workspace-title h1 { margin: 0 0 3px; font-size: 23px; line-height: 1.25; color: var(--navy); letter-spacing: -.2px; }
.workspace-title p { margin: 0; color: var(--muted); font-size: 12.5px; }
.mobile-brand { display: none; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.mobile-brand-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; flex: none; }
.workspace-tools { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; white-space: nowrap;
}
.status-chip .dot, .dot { width: 6px; height: 6px; border-radius: 50%; background: #b8c2d0; flex: 0 0 auto; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(15,157,88,.12); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.dot.pending { background: #d4a72c; box-shadow: 0 0 0 3px rgba(212,167,44,.14); }
.status-chip.ok { color: #0c7a46; border-color: #c8ead8; background: #f1fbf5; }
.status-chip.bad { color: var(--bad); border-color: #fecdca; background: #fff5f4; }
.status-chip.pending { color: #8a6411; border-color: #f2e2b5; background: #fffbf0; }
.workspace-body { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 8px 34px 48px; }

/* ---------- 运维台：备份窗口 / 日志分级 ---------- */
.ops-backup-card { align-content: start; }
.ops-backup-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: #f7fafd; border: 1px solid var(--line);
}
.ops-backup-total { display: flex; flex-direction: column; gap: 2px; }
.ops-backup-total strong { font-size: 22px; color: var(--navy); }
.ops-backup-total span { font-size: 12px; color: var(--muted); }

.ops-modal {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 32px 24px; background: rgba(9, 26, 46, .45); backdrop-filter: blur(2px);
}
.ops-modal-card {
  width: min(880px, 100%); max-height: 82vh; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(9, 26, 46, .55);
}
.ops-modal-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: #f7fafd;
}
.ops-modal-bar strong { font-size: 15px; color: var(--navy); }
.ops-modal-sub { font-size: 12px; color: var(--muted); }
.ops-modal-tools { margin-left: auto; display: flex; gap: 8px; }
.ops-modal-body { padding: 14px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ops-modal-section { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }

.ops-log-body { display: flex; flex-direction: column; gap: 12px; }
/* 操作日志：谁在什么时候做了什么 */
.ops-audit-wrap { max-height: 380px; overflow: auto; border-top: 1px solid var(--line); }
.ops-audit-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12px; }
.ops-audit-table th {
  position: sticky; top: 0; z-index: 1; background: #f6f8fb; color: #4b5a6e;
  font-weight: 500; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ops-audit-table td { padding: 8px 12px; border-bottom: 1px solid #f0f4f9; vertical-align: top; }
.ops-audit-table tr:hover td { background: #f8fbff; }
.ops-audit-time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-audit-table td strong { color: var(--navy); font-weight: 600; }
.ops-audit-reason { display: block; margin-top: 2px; color: #b42318; font-size: 11px; }
.ops-audit-detail { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475467; }
/* 无关联整机清理 */
.ops-orphan-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.ops-orphan-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ops-orphan-count { font-size: 12px; color: var(--muted); }
.ops-orphan-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.ops-orphan-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12px; }
.ops-orphan-table th {
  position: sticky; top: 0; background: #f6f8fb; color: #4b5a6e; font-weight: 500;
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ops-orphan-table td { padding: 7px 10px; border-bottom: 1px solid #f0f4f9; color: #344054; }
.ops-orphan-table tr:hover td { background: #f8fbff; }
/* 主机明细清理预览 */
.order-cleanup-modal { width: min(1040px, calc(100vw - 40px)); }
.order-cleanup-body { display: flex; flex-direction: column; gap: 10px; }
.order-cleanup-summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.order-cleanup-summary b { font-size: 13px; font-weight: 600; }
.order-cleanup-summary .bad { color: #b42318; }
.order-cleanup-summary .warn { color: #a66b08; }
.order-cleanup-summary .info { color: #2f6feb; }
.order-cleanup-list { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.order-cleanup-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 12px; }
.order-cleanup-table th {
  position: sticky; top: 0; background: #f6f8fb; color: #4b5a6e; font-weight: 500;
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.order-cleanup-table td { padding: 7px 10px; border-bottom: 1px solid #f0f4f9; color: #344054; white-space: nowrap; }
.order-cleanup-table tr:hover td { background: #f8fbff; }
/* 整机清理后台任务进度 */
.unit-cleanup-progress {
  position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px)); z-index: 80;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px; border-radius: 12px; color: #fff;
  background: #102a46; box-shadow: 0 12px 30px rgba(8, 22, 40, .35);
}
.ucp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; }
.ucp-head strong { font-size: 13px; }
.ucp-track { height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .22); }
.ucp-track i { display: block; height: 100%; background: #6ea8ff; transition: width .25s ease; }
.ucp-meta { font-size: 11.5px; color: #c7d7ea; text-align: right; }
.unit-cleanup-progress.is-done .ucp-track i { background: #4ade80; }
.ops-log-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: #f7fafd; border: 1px solid var(--line);
}
.ops-log-summary.has-error { background: #fff6f6; border-color: #f3c9c9; }
.ops-log-summary-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ops-log-badge {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.ops-log-badge.error { background: #fdecec; color: #b42318; }
.ops-log-badge.warn { background: #fff5e6; color: #9a6700; }
.ops-log-badge.ok { background: #e9f7ef; color: #11734b; }
.ops-log-muted { font-size: 12px; color: var(--muted); }
.ops-log-file { display: flex; flex-direction: column; gap: 6px; }
.ops-log-file-head { display: flex; align-items: center; gap: 10px; }
.ops-log-file-head strong { font-size: 13px; color: var(--navy); }
.ops-log-file-head .btn { margin-left: auto; }
.ops-log-lines {
  max-height: 320px; overflow: auto; padding: 8px 10px; border-radius: 10px;
  background: #0f1c2e; border: 1px solid #1c2f48;
}
.ops-log-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px;
  line-height: 1.65; color: #c8d6e8; white-space: pre-wrap; word-break: break-all;
  padding: 1px 6px; border-radius: 4px;
}
.ops-log-line.is-error { color: #ffd7d7; background: rgba(220, 38, 38, .28); border-left: 2px solid #ef4444; }
.ops-log-line.is-warn { color: #ffe9bf; background: rgba(217, 119, 6, .2); border-left: 2px solid #d97706; }
.ops-log-empty { font-size: 12px; color: var(--muted); padding: 10px 4px; }

/* ---------- 安装报工 ---------- */
.install-work-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 12px;
  padding: 12px 16px 4px;
}
.install-work-fields .order-field { display: flex; flex-direction: column; gap: 4px; }
.install-work-fields .order-field > span { font-size: 11.5px; color: var(--muted); }
.install-work-project { grid-column: span 2; }
.install-work-note { grid-column: span 2; }
.install-work-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 14px;
}
.install-work-actions .muted { flex: 1; }
.install-work-actions.is-right { justify-content: flex-end; }
/* 两张表都占满宽度：报工表有 7 列，挤成两栏会横滚、按钮被压成竖排 */
.install-work-grid .order-card { margin: 0; }
.install-work-row-actions { display: flex; gap: 6px; }.install-work-tabs { display: flex; gap: 6px; }
.install-work-tabs .tab {
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; color: var(--muted); cursor: pointer;
}
.install-work-tabs .tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }.install-block-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.install-work-stats .list-table-wrap { margin: 0 16px 16px; }
.install-work-form .order-card-head { padding-bottom: 0; }
.install-work-page .order-card { margin: 0 0 16px; }

/* ---------- 报工台：我的报表 / 项目汇总 ---------- */
.work-dashboard { margin-top: 16px; }
.work-main-tabs { margin-bottom: 4px; }
.work-sub-tabs { margin: 0; }
.work-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 0; }
.work-summary-head h2 { margin: 0; font-size: 19px; color: var(--navy); }
.work-summary-head > div > span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.work-filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.work-filter-label { font-size: 11.5px; color: var(--muted); }
.work-filter-bar .list-filter-select { min-width: 180px; }
.work-stat-grid .install-stat small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.work-progress-card { padding: 14px 16px; margin: 12px 0 16px; }
.work-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-progress-head strong { font-size: 13.5px; color: var(--navy); }
.work-progress-head span { margin-left: 8px; font-size: 10.5px; color: var(--muted); }
.work-progress-head b { font-size: 12px; color: #1f6fb2; font-weight: 600; }
.work-progress-bar { height: 7px; border-radius: 999px; background: #eaf0f7; margin: 9px 0 8px; overflow: hidden; }
.work-progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f6feb, #4aa3df); }
.work-progress-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted); }
.work-overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); gap: 14px; align-items: start; }
.work-overview-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.work-block-card { padding: 16px; }
.work-block-card .order-card-head { margin-bottom: 10px; }
.work-block-card .list-table-wrap { margin: 0; }
.work-calendar-card { padding: 16px; }
.work-calendar-wrap { overflow: hidden; }
.work-calendar-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.work-calendar-head span { text-align: center; font-size: 10.5px; color: var(--muted); }
.work-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.work-calendar-cell {
  min-height: 66px; padding: 7px 8px; border: 1px solid #e6ecf4; border-radius: 10px;
  background: #fff; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.work-calendar-cell.is-blank { border-color: transparent; background: transparent; }
.work-calendar-day { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.work-calendar-day strong { font-size: 12px; color: #35485f; }
.work-calendar-day span { font-size: 10px; color: #2f6feb; }
.work-calendar-day span.pending { color: #8a5a12; }
.work-calendar-cell small { margin-top: auto; font-size: 10px; color: #6b7a8c; }
.work-calendar-cell.is-install { background: #eef6ff; border-color: #cfe4fb; }
.work-calendar-cell.is-other { background: #f4f0ff; border-color: #ddd3fb; }
.work-calendar-cell.is-rest { background: #fff8e8; border-color: #f3e2b8; }
.work-calendar-cell.is-leave { background: #fff1f1; border-color: #f4cccc; }
.work-calendar-cell.is-pending { background: #fffbef; border-color: #f1dca4; border-style: dashed; }
.work-calendar-cell.is-none { background: #fbfcfe; }
.work-calendar-cell.is-none.is-weekend { background: #f5f7fb; }
.work-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.work-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.work-calendar-legend i { width: 9px; height: 9px; border-radius: 3px; border: 1px solid #dbe4ef; }
.work-calendar-legend i.is-install { background: #eef6ff; border-color: #cfe4fb; }
.work-calendar-legend i.is-other { background: #f4f0ff; border-color: #ddd3fb; }
.work-calendar-legend i.is-rest { background: #fff8e8; border-color: #f3e2b8; }
.work-calendar-legend i.is-leave { background: #fff1f1; border-color: #f4cccc; }
.work-calendar-legend i.is-pending { background: #fffbef; border-color: #f1dca4; }
.work-attendance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.work-attendance-item { padding: 9px 10px; border: 1px solid #e6ecf4; border-radius: 10px; background: #fbfcfe; }
.work-attendance-item span { display: block; font-size: 10.5px; color: var(--muted); }
.work-attendance-item strong { display: block; margin-top: 2px; font-size: 15px; color: var(--navy); }
.work-attendance-item small { display: block; margin-top: 1px; font-size: 10px; color: #7a8898; }
.work-hint { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.work-hour-field { min-width: 0; }
.work-hour-control { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.work-hour-control .order-input { width: 76px; }
.work-hour-quick { display: inline-flex; gap: 4px; }
.work-hour-chip {
  padding: 4px 7px; border: 1px solid #dbe4ef; border-radius: 7px; background: #fff;
  color: #4b5c72; font-size: 10.5px; cursor: pointer;
}
.work-hour-chip:hover { border-color: #9db8dc; color: #1f6fb2; background: #f7fbff; }
.work-entries-wrap { overflow-x: auto; }
.work-entries-wrap table { min-width: 620px; }
.work-note-cell { max-width: 320px; white-space: normal; word-break: break-word; }
.work-review-note { display: inline-block; max-width: 180px; color: var(--bad); font-size: 11px; }
.work-total-row td { background: #f6f9fd; font-weight: 600; color: var(--navy); }
.work-project-list { display: flex; flex-direction: column; gap: 14px; }
.work-project-card { margin: 0; padding: 0; overflow: hidden; }
.work-project-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: #f8fafd; border-bottom: 1px solid #e8eef6;
}
.work-project-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.work-project-title strong { font-size: 14px; color: var(--navy); }
.work-project-title span { font-size: 11px; color: var(--muted); }
.work-project-kpis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.work-project-kpis span { padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid #e1e9f2; font-size: 10.5px; color: #4b5c72; }
.work-project-kpis span.warn { color: #8a5a12; background: #fff8e8; border-color: #f3e2b8; }
.work-project-card .work-entries-wrap { margin: 0; }
.work-project-card .install-empty { padding: 14px 16px 18px; }
.work-person-list { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.work-person { border: 1px solid #e6ecf4; border-radius: 11px; background: #fff; overflow: hidden; }
.work-person summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px;
  cursor: pointer; background: #fbfcfe; font-size: 11.5px; color: #4b5c72;
}
.work-person summary strong { font-size: 12.5px; color: var(--navy); }
.work-person summary span.warn { color: #8a5a12; }
.work-person[open] summary { border-bottom: 1px solid #e8eef6; }
.work-person .work-entries-wrap { margin: 0; }
.work-person .work-entries-wrap table { min-width: 560px; }
.work-team-overview { display: flex; flex-direction: column; gap: 14px; }
.work-section-title { margin: 4px 2px -4px; font-size: 12px; }
.install-work-report-card .install-work-report-summary { margin: 0 0 12px; }
.install-work-report-card .work-entries-wrap { margin: 0; }
.work-content-chip.is-install { background: #eef6ff; color: #1f5fce; }
.work-content-chip.is-rest { background: #fff8e8; color: #8a5a12; }
.work-content-chip.is-leave { background: #fff1f1; color: #b42318; }
.work-content-chip.is-other { background: #f4f0ff; color: #5b4b9a; }
@media (max-width: 1000px) {
  .work-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .work-overview-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .work-summary-head { flex-direction: column; }
  .work-filter-bar { justify-content: flex-start; }
  .work-overview-side { display: flex; }
  .work-attendance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-calendar-cell { min-height: 54px; padding: 5px 6px; }
  .work-calendar-cell small { display: none; }
  .work-project-head { flex-direction: column; }
  .work-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-work-page .list-toolbar-left { flex-wrap: wrap; align-items: center; }
  .install-work-page .list-toolbar-left > span { flex-basis: 100%; }
  .install-work-page .list-toolbar-left .btn { white-space: nowrap; }
}

/* ---------- 安装节点审核 ---------- */
.install-nodes-card { margin-top: 16px; }
.install-node-head-actions { display: flex; align-items: center; gap: 8px; }
.install-node-head-actions span { font-size: 12px; color: var(--muted); }
.install-nodes-empty { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.install-nodes-empty p { margin: 0; font-size: 13px; color: var(--muted); }
.install-node-flow { padding: 12px 16px 4px; }
.install-node-flow-head { display: flex; align-items: baseline; gap: 10px; padding: 0 0 8px; }
.install-node-flow-head strong { font-size: 13.5px; color: var(--navy); }
.install-node-flow-hint { font-size: 11.5px; color: var(--muted); flex: 1; }
.install-node-flow-head > span:last-child { font-size: 12px; color: var(--muted); }
.install-node-row {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff;
}
.install-node-row.is-approved { background: #f6fcf8; border-color: #cfe9d9; }
.install-node-row.is-rejected { background: #fff7f7; border-color: #f3d1d1; }
.install-node-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.install-node-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.install-node-name { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.install-node-tag { font-size: 11px; color: #6b7f99; background: #eef4fb; border-radius: 999px; padding: 1px 8px; }
.install-node-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.install-node-note { color: #b42318; }
.install-node-files { display: flex; gap: 10px; flex-wrap: wrap; }
.install-node-file { font-size: 11.5px; color: #2f5c99; text-decoration: none; }
.install-node-file:hover { text-decoration: underline; }
.install-node-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.install-node-outsource-note { margin: 4px 16px 16px; font-size: 12px; color: #8a6d3b; background: #fff8e8; border: 1px solid #f0e0bc; border-radius: 10px; padding: 8px 10px; }
.install-node-hint { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.install-node-create { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.install-node-create .order-input { max-width: 320px; }
.install-node-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }

/* 验收档案（打印用） */
.install-acceptance-sheet { display: none; }
.acceptance-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
.acceptance-head h1 { font-size: 20px; letter-spacing: 4px; margin: 0; }
.acceptance-meta, .acceptance-nodes { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 11px; }
.acceptance-meta th, .acceptance-meta td, .acceptance-nodes th, .acceptance-nodes td { border: 1px solid #000; padding: 4px 6px; text-align: left; }
.acceptance-meta th, .acceptance-nodes th { background: #f2f2f2; font-weight: 600; white-space: nowrap; }
.acceptance-foot { display: flex; justify-content: space-between; font-size: 12px; margin-top: 18px; }
@media print {
  .install-node-row, .install-node-actions, .install-node-hint { display: none !important; }
  body.printing-acceptance .install-acceptance-sheet { display: block !important; }
  body.printing-acceptance .page, body.printing-acceptance .workspace-head,
  body.printing-acceptance .notice-print-modal { display: none !important; }
}

/* ---------- 验收与核算 ---------- */
.install-checks-card { margin-top: 16px; }
.install-material-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px 16px;
}
.install-material-form .order-input { max-width: 180px; }.install-check-block { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.install-check-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.install-check-head strong { font-size: 13.5px; color: var(--navy); }
.install-check-head span:not(.chip) { font-size: 11.5px; color: var(--muted); flex: 1; }
.install-check-foot { display: flex; gap: 8px; align-items: flex-start; padding-top: 10px; }
.install-check-note { flex: 1; min-height: 44px; resize: vertical; }
.install-check-block .list-table-wrap { margin-bottom: 0; }

/* ---------- 安装项目详情：统一版式 ---------- */
/* 之前 form.order-form 自带 max-width:1100px 居中，比上面的工具栏窄一截，看着"宽度不统一" */
.install-detail-page .order-form { max-width: none; margin: 0; }
.install-detail-page .order-card { margin: 0 0 14px; padding: 18px 20px; }
.install-detail-page .order-card:last-child { margin-bottom: 0; }
.install-detail-page .order-card-head {
  align-items: center; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.install-detail-page .order-card-head h2 { font-size: 15.5px; }
.install-detail-page .order-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.install-detail-page .order-field > span { font-size: 11.5px; color: #6b7f99; }

/* 分组小标题横跨整行 */
.install-form-group {
  grid-column: 1 / -1; margin: 10px 0 0; padding-bottom: 8px;
  font-size: 12px; font-weight: 600; color: var(--navy); letter-spacing: .02em;
  border-bottom: 1px dashed var(--line);
}
.install-form-group:first-child { margin-top: 0; }

/* 节点审核：左信息右按钮，按钮列定宽，不再被挤 */
.install-nodes-card .order-card-head { flex-wrap: wrap; }
.install-node-flow { padding: 4px 0 0; }
.install-node-flow + .install-node-flow { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.install-node-flow-head { align-items: center; padding-bottom: 10px; }
.install-node-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 12px 14px; margin-bottom: 8px;
}
.install-node-actions { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.install-node-actions .btn { white-space: nowrap; }
.install-node-main { gap: 6px; }
.install-node-files { gap: 12px; }

/* 验收与核算：主材表单 4 列；反馈区上下排 */
.install-subcard { display: flex; flex-direction: column; }
.install-materials-card .order-card-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.install-material-form {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px;
  padding: 14px; margin-top: 14px; border: 1px dashed var(--line); border-radius: 12px; background: #fbfcfe;
}
.install-qty-field { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; }
.install-material-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.install-check-block { padding: 16px 0 0; border-top: 1px dashed var(--line); margin-top: 16px; }
.install-check-head { align-items: center; padding-bottom: 10px; }
.install-check-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; }
.install-check-foot .install-check-note { flex: 1 1 100%; min-height: 52px; }
.install-check-foot .btn { white-space: nowrap; }
.install-check-foot .btn:first-of-type { margin-left: auto; }
.install-check-block .list-table-wrap { margin-bottom: 0; }

@media (max-width: 1180px) {
  .install-detail-page .order-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-material-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .install-detail-page .order-form-grid { grid-template-columns: minmax(0, 1fr); }
  .install-material-form { grid-template-columns: minmax(0, 1fr); }
  .install-node-row { grid-template-columns: minmax(0, 1fr); }
  .install-node-actions { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- 运维台：KPI 卡片等高 ---------- */
.ops-kpi { justify-content: space-between; min-height: 92px; }
.ops-grid > .ops-card { display: flex; flex-direction: column; }
.ops-backup-card .ops-backup-summary { margin-top: auto; }

/* ---------- 列表列宽拖动 ---------- */
.list-table th { position: relative; }
.col-resizer {
  position: absolute; top: 0; right: -4px; z-index: 6; width: 9px; height: 100%;
  cursor: col-resize; user-select: none; -webkit-user-select: none;
}
.col-resizer::after {
  content: ''; position: absolute; left: 4px; top: 22%; height: 56%; width: 1px;
  background: transparent; transition: background .12s ease;
}
.list-table thead th:hover > .col-resizer::after { background: #b6c6d9; }
.list-table thead th > .col-resizer:hover::after { background: var(--blue, #2f6feb); }
body.col-resizing { cursor: col-resize; user-select: none; }
.list-table[data-col-resizable="1"] { min-width: 0; }

/* ---------- 移动底栏 ---------- */
.tabbar { display: none; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; min-height: 50px; }
.tab-icon { width: 21px; height: 21px; }
.tab-item.on { color: var(--blue); font-weight: 700; }
.tab-item.on .tab-icon { background: var(--blue-soft); border-radius: 9px; padding: 3px; }

/* ---------- 页面通用 ---------- */
.page { max-width: 1120px; margin: 0 auto; }
/* Excel 式列表页：铺满可用宽度，不设 max-width，四周留白收窄 */
.page.list-page { max-width: none; margin: 0; }
/* 列表页铺满：.workspace-body 自带 max-width:1680px 并居中，
   大屏（>1680）内容区被卡住、左右留大片空白，不同分辨率的电脑看起来就不一样。
   列表页这里取消上限，留白也收到最小，让表格尽量铺满屏幕。 */
body.list-view .workspace-body { max-width: none; margin: 0; padding: 4px 12px 20px; }
@media (min-width: 1700px) {
  /* 超宽屏再放宽一点点边距，别贴到屏幕边 */
  body.list-view .workspace-body { padding-left: 16px; padding-right: 16px; }
}
.list-page .list-toolbar { margin-top: 0; }
.page-wide { max-width: 1600px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-head h3 { margin: 0; font-size: 15px; color: var(--navy); }
.section-head > span { color: var(--muted); font-size: 11px; }
.surface { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 15px; margin-bottom: 18px; border-radius: 12px;
  background: #fffaeb; border: 1px solid #f2dfb0; color: #7a5410; font-size: 12.5px;
}

/* ---------- 工作台 ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: stretch; justify-content: space-between; gap: 26px;
  padding: 30px 32px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #0b2542 0%, #123c66 55%, #1a5a91 100%);
  box-shadow: 0 18px 40px rgba(13, 43, 78, 0.16);
}
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -190px; border: 1px solid rgba(255,255,255,.14); }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { font-size: 10.5px; letter-spacing: .14em; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.hero h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.4px; }
.hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-side { position: relative; z-index: 1; width: 210px; flex: 0 0 auto; align-self: flex-end; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.hero-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.86); margin-bottom: 12px; }
.hero-version { color: rgba(255,255,255,.5); font-size: 10.5px; white-space: nowrap; }
.hero-plant {
  display: flex; align-items: center; gap: 10px; padding: 10px 0 12px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.plant-icon {
  width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.1);
  display: grid; place-items: center; color: #d8e8ff; flex: 0 0 auto;
}
.plant-icon svg { width: 20px; height: 20px; }
.plant-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.plant-copy span { font-size: 9.5px; color: rgba(255,255,255,.48); letter-spacing: .16em; }
.plant-copy strong { font-size: 14px; font-weight: 600; color: #fff; margin-top: 2px; }.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.quick:hover { border-color: #bfd2ef; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,39,68,.06); }
.quick-icon { width: 40px; height: 40px; border-radius: 12px; background: #f1f5fb; color: var(--navy); display: grid; place-items: center; flex: 0 0 auto; }
.quick-icon svg { width: 20px; height: 20px; }
.quick-icon.live { background: var(--blue-soft); color: var(--blue); }
.quick div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.quick strong { font-size: 13px; color: var(--ink); }
.quick span { font-size: 11px; color: var(--muted); margin-top: 2px; }
.quick-arrow { width: 15px; height: 15px; color: #b3bfce; flex: 0 0 auto; }

.module-list { overflow: hidden; }
.module-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; align-items: center; gap: 13px;
  width: 100%; padding: 14px 17px; text-align: left; border-bottom: 1px solid #eef1f6;
  transition: background .15s;
}
.module-row:last-child { border-bottom: 0; }
.module-row:hover { background: #fbfcff; }
.module-icon { width: 40px; height: 40px; border-radius: 12px; background: #f1f5fb; color: #50627a; display: grid; place-items: center; }
.module-icon svg { width: 19px; height: 19px; }
.module-icon.live { background: var(--blue-soft); color: var(--blue); }
.module-copy { display: flex; flex-direction: column; min-width: 0; }
.module-copy strong { font-size: 13px; color: var(--ink); }
.module-copy span { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-arrow { width: 15px; height: 15px; color: #b8c3d2; }
.chip { display: inline-flex; align-items: center; min-height: 21px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; white-space: nowrap; }
.chip.ok { background: #eaf8f0; color: #0c7a46; }
.chip.muted { background: #f2f4f7; color: #7a8494; }
.foot-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #9aa5b4; font-size: 10.5px; padding: 18px 4px 0; }
.foot-dot { width: 5px; height: 5px; border-radius: 50%; background: #b8c3d2; }
.foot-sep { color: #c8d0db; }

/* ---------- 空状态 ---------- */
.empty-state { max-width: 540px; margin: 46px auto 0; text-align: center; }
.empty-icon { width: 66px; height: 66px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.empty-icon svg { width: 28px; height: 28px; }
.empty-state h2 { margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.next-box { margin: 22px auto 0; padding: 16px 18px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; max-width: 420px; }
.next-title { font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-bottom: 8px; }
.next-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.next-list li { font-size: 12.5px; color: #4b5a6e; display: flex; align-items: center; gap: 8px; }
.next-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #9db7db; flex: 0 0 auto; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

/* ---------- 我的 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.info-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.info-item span { font-size: 10.5px; color: var(--muted); }
.info-item strong { font-size: 13px; color: var(--ink); font-weight: 600; }.phone-edit { display: flex; flex-direction: column; gap: 6px; }
.phone-edit .phone-edit-input {
  width: 210px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 8px 10px; font-size: 13px;
}
.phone-edit .phone-edit-input:focus {
  border-color: var(--blue); background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 235, .12);
}.catalog-copy-hint {
  margin: 10px 18px 0; padding: 8px 12px; border-radius: 9px;
  background: #f2f7ff; border: 1px solid #d7e5fb; color: #2b5d9e; font-size: 12px; line-height: 1.5;
}
.phone-edit-actions { display: flex; gap: 6px; }
.phone-edit-error { margin: 0; color: #b42318; font-size: 11.5px; line-height: 1.4; }
.phone-edit-hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

/* ---------- 个人中心 ---------- */
.profile-page { max-width: 980px; margin: 0 auto; }
.profile-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 28px; border-radius: 20px;
  background: linear-gradient(135deg, #0d2b4e 0%, #16456f 58%, #1d5c94 100%);
  color: #fff; box-shadow: 0 16px 36px rgba(13, 43, 78, .18);
}
.profile-hero-avatar {
  width: 62px; height: 62px; font-size: 24px;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}
.profile-hero-body { min-width: 0; }
.profile-hero h1 { margin: 0; font-size: 24px; letter-spacing: .3px; color: #fff; }
.profile-hero-sub { margin: 6px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.profile-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.profile-role-chip {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px;
  border-radius: 999px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  font-size: 11px; white-space: nowrap;
}
.profile-section { margin-top: 18px; }
.profile-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.profile-section-head h2 { margin: 0; font-size: 14.5px; color: var(--navy); }
.profile-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-action {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .15s, background .15s, transform .15s;
}
.profile-action:hover { border-color: #b9cbe6; background: #f8fbff; transform: translateY(-1px); }
.profile-action-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.profile-action-icon svg { width: 20px; height: 20px; }
.profile-action-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.profile-action-body strong { font-size: 13.5px; font-weight: 600; }
.profile-action-body span { font-size: 11.5px; color: var(--muted); }
.profile-action-arrow { color: #b9c6d8; font-size: 20px; line-height: 1; }
.profile-action.danger .profile-action-icon { background: #fef3f2; color: #b42318; }
.profile-action.danger .profile-action-body strong { color: #b42318; }
.profile-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.profile-list-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #f1f5fa; }
.profile-list-row:last-child { border-bottom: 0; }
.profile-list-label { width: 92px; flex: none; color: var(--muted); font-size: 12px; }
.profile-list-value { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font-size: 13px; }
.profile-list-value > strong { font-weight: 600; color: var(--ink); }
.profile-list-value .phone-edit { width: 100%; max-width: 520px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-list-value .phone-edit-input { width: 220px; }
.profile-list-value .phone-edit-error,
.profile-list-value .phone-edit-hint { flex-basis: 100%; }
.profile-list-row-edit { align-items: flex-start; }
.profile-list-row-edit .profile-list-label { padding-top: 9px; }
@media (max-width: 760px) {
  .profile-page { padding: 0 2px; }
  .profile-hero { flex-direction: column; align-items: flex-start; padding: 20px; gap: 12px; }
  .profile-hero h1 { font-size: 21px; }
  .profile-actions-grid { grid-template-columns: 1fr; }
  .profile-list-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .profile-list-label { width: auto; }
  .profile-list-value { width: 100%; }
}
.profile-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 运维 ---------- */
.metric { padding: 15px 16px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.metric-label { font-size: 10.5px; color: var(--muted); }
.metric strong { font-size: 18px; color: var(--navy); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-sub { font-size: 10px; color: #96a1b1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-update-progress { margin: 10px 0; padding: 10px 12px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; }
.ops-update-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; color: #334155; }
.ops-update-progress-bar { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.ops-update-progress-fill { height: 100%; border-radius: 999px; background: #3b82f6; transition: width .25s ease; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.ops-page .ops-update-progress { margin: 10px 0; padding: 10px 12px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; }
.ops-update-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; color: #334155; }
.ops-update-progress-bar { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.ops-update-progress-fill { height: 100%; border-radius: 999px; background: #3b82f6; transition: width .25s ease; }
.ops-actions { margin: 0 0 12px; }
.ops-warnings {
  display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; padding: 11px 14px;
  border: 1px solid #f0cf9a; border-radius: 12px; background: #fff9ed; color: #7a5a22; font-size: 11.5px;
}
.ops-warnings strong { font-size: 12px; color: #6b4a12; }
.ops-warnings span::before { content: "· "; }
.ops-ok { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #3c7a60; font-size: 11.5px; }
.ops-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 1180px) { .ops-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ops-kpi { padding: 14px 15px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ops-kpi span { color: var(--muted); font-size: 11px; }
.ops-kpi strong { color: var(--ink); font-size: 21px; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-kpi .ops-kpi-date { font-size: 17px; }
.ops-kpi small { color: #8a98aa; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-state.ok { color: #2f8f6b; }
.ops-state.danger { color: #c0504d; }
.ops-state.warn { color: #c18a2e; }
.ops-state.muted { color: #8a98aa; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ops-card { padding: 15px 16px; min-width: 0; }
.ops-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ops-card-head h2 { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }
.ops-card-head > span { color: var(--muted); font-size: 10.5px; }
.ops-disk-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ops-disk-track { height: 8px; background: #edf1f6; border-radius: 999px; overflow: hidden; }
.ops-disk-fill { height: 100%; background: linear-gradient(90deg, #4a7fd4, #6d9ce0); border-radius: 999px; }
.ops-disk-label { color: var(--muted); font-size: 10.5px; }
.ops-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ops-mini { border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; background: #fbfcfe; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-mini span { color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-mini strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.ops-mini small { color: #8a98aa; font-size: 9.5px; }
.ops-note { margin-top: 11px; color: var(--muted); font-size: 10px; }
.ops-note code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; }.ops-backup-list { display: flex; flex-direction: column; gap: 5px; }
.ops-backup-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.ops-backup-row strong { font-size: 10.5px; color: #44556a; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-backup-row span:not(.chip) { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.ops-backup-row b { font-size: 10px; color: #5b6b80; font-weight: 500; white-space: nowrap; }
.ops-backup-actions { display: flex; align-items: center; gap: 5px; }
.ops-backup-actions .btn { min-height: 24px; padding: 0 7px; font-size: 9.5px; }
.ops-empty { padding: 9px 2px; color: var(--muted); font-size: 11.5px; }
.ops-logs-card { margin-bottom: 12px; }
.ops-log-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ops-lines { min-height: 28px; font-size: 11px; padding: 0 8px; }.ops-log-downloads .btn { min-height: 26px; font-size: 10px; padding: 0 8px; }
.ops-release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ops-release-grid > div { border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; display: flex; flex-direction: column; gap: 3px; }
.ops-release-grid span { color: var(--muted); font-size: 9.5px; }
.ops-release-grid strong { color: var(--ink); font-size: 11px; font-weight: 500; }
.ops-update-note { margin-top: 10px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.ops-update-note strong { color: #536276; }
.ops-path-list { display: flex; flex-direction: column; }
.ops-path-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid #f0f3f7; align-items: baseline; }
.ops-path-row:last-child { border-bottom: 0; }
.ops-path-row span { color: var(--muted); font-size: 10px; }
.ops-path-row code { color: #50627a; font-family: "Cascadia Mono", Consolas, monospace; font-size: 9.5px; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .ops-grid { grid-template-columns: minmax(0, 1fr); }
  .ops-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .ops-kpi-grid { grid-template-columns: minmax(0, 1fr); } .ops-backup-row { grid-template-columns: auto minmax(0, 1fr); } .ops-backup-row b { justify-self: end; } }

.backup-box { margin-top: 14px; padding: 14px 16px; }
.backup-title { font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.backup-pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: "Cascadia Mono", Consolas, monospace; font-size: 11px; color: #50627a; line-height: 1.65; }
.log-tabs { display: inline-flex; gap: 2px; background: #eef2f7; border-radius: 8px; padding: 2px; }
.tab { padding: 5px 10px; border-radius: 6px; font-size: 11px; color: var(--muted); }
.tab.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15,39,68,.08); }.log-empty { padding: 24px 18px; color: var(--muted); font-size: 12px; text-align: center; }
.path-list { overflow: hidden; }
.path-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid #eef1f6; }
.path-row:last-child { border-bottom: 0; }
.path-row span { font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.path-row code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 10.5px; color: #4b5a6e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }/* ---------- 订单 ---------- */
.chip.info { background: #edf3ff; color: #1f5fce; }
.chip.warn { background: #fff7e6; color: #8a5a12; }
.btn.danger { color: var(--bad); }

.order-filter {
  min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 12px; outline: none;
}
.order-form { max-width: 1100px; margin: 0 auto; }
.order-card { padding: 20px; margin-bottom: 14px; }
.order-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.order-card-head h2 { margin: 0; font-size: 15px; color: var(--navy); }
.order-card-head span { font-size: 11px; color: var(--muted); }
.order-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.order-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.order-field > span { font-size: 11px; color: var(--muted); }
.order-field-wide { grid-column: 1 / -1; }
.order-input {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: #fbfcfe; color: var(--ink); font: inherit; font-size: 13px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.order-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,235,.1); background: #fff; }
.order-table-wrap { overflow-x: auto; }
.order-items { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; font-size: 12px; }
.order-items th, .order-items td { border: 1px solid var(--line); padding: 4px; height: 36px; text-align: center; vertical-align: middle; }
.order-items th { background: #f6f8fb; color: #4b5a6e; font-weight: 500; }
.order-items .order-input { border: 0; background: transparent; padding: 5px 3px; font-size: 12px; box-shadow: none; text-align: center; }
.order-items .order-input:focus { background: #eef4ff; }
.order-items th:nth-child(1) { width: 36px; }
.order-items th:nth-child(2) { width: 20%; }
.order-items th:nth-child(3) { width: 66px; }
.order-items th:nth-child(4) { width: 15%; }
.order-items th:nth-child(5) { width: 17%; }
.order-items th:nth-child(6) { width: 25%; }
.order-items th:nth-child(7) { width: 34px; }
.order-seq { color: #8b97a8; font-variant-numeric: tabular-nums; }
.order-op { padding: 0 !important; }@media (max-width: 700px) {
  .aux-item-head { flex-direction: column; gap: 3px; }
  .aux-item-code { max-width: 100%; text-align: left; white-space: normal; }
  .aux-item-open { margin-left: 0; }
}@media (max-width: 960px) { .aux-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .aux-detail-grid { grid-template-columns: 1fr; } .aux-change-box { flex-direction: column; gap: 4px; } }

.order-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap; padding: 4px 0 8px; }
.order-actions .btn.danger { margin-left: auto; }
.order-actions .btn.danger { margin-left: 0; }
.load-more { display: flex; justify-content: center; margin-top: 14px; }
.load-more .btn { min-width: 180px; }

@media (max-width: 960px) {
  .order-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-card { padding: 16px; }
}

@media (max-width: 640px) {
  .order-form-grid { grid-template-columns: 1fr; }
  .order-filter { width: 100%; }
  .order-actions { justify-content: stretch; }
  .order-actions .btn { flex: 1; }
  .order-card { padding: 14px; }
}



.unit-check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.unit-check input { accent-color: var(--blue); }
.unit-order-link {
  display: flex; align-items: center; gap: 6px; margin: -4px 0 14px;
  padding: 8px 11px; border-radius: 9px; background: #f6f8fc; color: var(--muted); font-size: 11.5px;
}
.unit-order-link .btn { min-height: 28px; padding: 0 9px; font-size: 11px; }
.unit-order-links { flex-wrap: wrap; }
.unit-order-links .btn { margin-right: 2px; }
.linked-unit-list { display: flex; flex-direction: column; gap: 7px; }
.linked-unit-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fbfcfe;
}
.linked-unit-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.linked-unit-main strong { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.linked-unit-main span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked-unit-row .btn { min-height: 28px; padding: 0 9px; font-size: 11px; }
@media (max-width: 760px) {
  .linked-unit-row { grid-template-columns: minmax(0, 1fr) auto; }
  .linked-unit-row .btn { grid-column: 1 / -1; justify-self: start; }
}

.process-items { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; font-size: 12px; }
.process-items th, .process-items td { border: 1px solid var(--line); padding: 3px 5px; height: 36px; text-align: center; vertical-align: middle; }
.process-items th { background: #f6f8fb; color: #4b5a6e; font-weight: 500; }
.process-items .order-input { border: 0; background: transparent; padding: 4px 3px; font-size: 12px; box-shadow: none; text-align: center; }
.process-items .order-input:focus { background: #eef4ff; }
.process-items th:nth-child(1) { width: 40px; }
.process-items th:nth-child(2) { width: 26%; }
.process-items th:nth-child(3) { width: 92px; }
.process-items th:nth-child(4) { width: 120px; }
.process-items th:nth-child(5) { width: 100px; }
.process-items th:nth-child(6) { width: auto; }
.process-items th:nth-child(7) { width: 126px; }
.process-name { text-align: left !important; padding-left: 8px !important; color: #33445b; }
.process-name .order-input { text-align: left; padding-left: 6px; font-size: 12px; }
.process-ops { display: flex; align-items: center; justify-content: center; gap: 3px; }
.process-ops .process-move, .process-ops .process-remove { min-height: 26px; min-width: 28px; padding: 0 6px; font-size: 11px; }
.process-ops .process-move:disabled { opacity: .3; }

.process-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.process-head-actions .btn { min-height: 28px; padding: 0 9px; font-size: 11px; }
.process-remove { min-height: 26px; padding: 0 7px; font-size: 11px; }
.process-empty-row td { height: 42px; color: var(--muted); font-size: 12px; text-align: center; background: #fbfcfe; }

.order-actions .btn:disabled { opacity: .55; }



.staff-hint {
  margin-bottom: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: #f7f9fc; color: var(--muted); font-size: 11.5px; line-height: 1.7;
}.staff-row.off { opacity: .62; }.staff-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.staff-actions { display: flex; gap: 6px; align-items: center; }
.staff-actions .btn { min-height: 30px; padding: 0 10px; font-size: 11px; }
.staff-form { max-width: 900px; }
.staff-product-box {
  margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff;
}
.staff-product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.staff-product-head strong { display: block; color: var(--navy); font-size: 13px; margin-bottom: 3px; }
.staff-product-head span { color: var(--muted); font-size: 11px; }
.staff-product-actions { display: flex; gap: 6px; flex: none; }
.staff-product-note { margin-bottom: 10px; color: #98a4b5; font-size: 10.5px; line-height: 1.6; }
.staff-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; }
.staff-product-option {
  display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 9px;
  border: 1px solid #e3e9f1; border-radius: 8px; background: #fbfcfe; font-size: 12px; cursor: pointer;
}
.staff-product-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); flex: none; }
.staff-product-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33445b; }
.staff-product-option em { margin-left: auto; color: #98a4b5; font-size: 10px; font-style: normal; white-space: nowrap; }
.staff-product-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 11.5px; background: #f7f9fc; border-radius: 8px; }
@media (max-width: 760px) {
  .staff-product-head { flex-direction: column; }
}
@media (max-width: 760px) {
  .staff-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 9px; }
  .staff-actions { flex-wrap: wrap; }
  .staff-actions .btn { flex: 1 1 auto; }
}



.qc-record-list { display: flex; flex-direction: column; gap: 8px; }
.qc-record-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center;
  gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe;
}
.qc-record-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qc-record-main strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.qc-record-main span { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-record-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; color: var(--muted); font-size: 11px; }
.qc-record-actions { display: flex; gap: 6px; align-items: center; }
.qc-record-actions .btn { min-height: 29px; padding: 0 9px; font-size: 11px; }
.qc-record-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 2px; color: var(--muted); font-size: 12px; }
.qc-card .order-card-head { margin-bottom: 10px; }
@media (max-width: 760px) {
  .qc-record-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .qc-record-actions { justify-content: flex-start; }
}



.notice-attachments { margin-top: 12px; }
.notice-attachments .order-card-head { margin-bottom: 10px; }
.attachment-file-input { display: none; }
.attachment-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 10px; }
.attachment-hint { color: var(--muted); font-size: 11px; }
.attachment-list { display: flex; flex-direction: column; gap: 7px; }
.attachment-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
}
.attachment-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.attachment-main strong { font-size: 12.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-main span { color: var(--muted); font-size: 11px; }
.attachment-actions { display: flex; gap: 5px; flex-shrink: 0; }
.attachment-actions .btn { min-height: 28px; padding: 0 9px; font-size: 11px; }
.attachment-empty { padding: 4px 2px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .attachment-row { align-items: flex-start; flex-direction: column; }
  .attachment-actions { align-self: flex-end; }
}



.platform-files-card { margin-top: 12px; }
.platform-files-card .order-card-head { margin-bottom: 10px; }@media (max-width: 760px) {

}.stats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.stats-head-copy h1 { margin: 0 0 4px; font-size: 23px; color: var(--ink); letter-spacing: -.02em; }
.stats-head-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.stats-head-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.stats-card-wide { grid-column: 1 / -1; }
.stats-rank-list { display: flex; flex-direction: column; gap: 9px; }
.stats-rank-row { display: flex; flex-direction: column; gap: 4px; }
.stats-rank-top { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; color: var(--muted); }
.stats-rank-top span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-rank-top b { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.stats-rank-top small { font-size: 10px; color: #8b98a9; }
.stats-rank-track { height: 7px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.stats-rank-fill { height: 100%; border-radius: 99px; }
.stats-delivery-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stats-subhead { margin-bottom: 9px; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .stats-delivery-grid { grid-template-columns: 1fr; } }

.stats-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stats-kpi { padding: 14px 15px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stats-kpi span { color: var(--muted); font-size: 11.5px; }
.stats-kpi strong { color: var(--ink); font-size: 24px; line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.stats-kpi small { color: #8a98aa; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.stats-grid-lower { margin-bottom: 0; }
.stats-card { padding: 16px 17px; min-width: 0; }
.stats-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.stats-card-head h2 { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }
.stats-card-head span { color: var(--muted); font-size: 10.5px; }
.stats-bars { display: flex; flex-direction: column; gap: 10px; }
.stats-bar-row { display: flex; flex-direction: column; gap: 5px; }
.stats-bar-top { display: flex; align-items: center; justify-content: space-between; color: #4f5f73; font-size: 11.5px; }
.stats-bar-top b { color: var(--ink); font-weight: 600; }
.stats-bar-track { height: 6px; border-radius: 999px; background: #edf1f6; overflow: hidden; }
.stats-bar-fill { height: 100%; border-radius: 999px; min-width: 2px; }
.stats-donut-wrap { display: flex; align-items: center; gap: 22px; }
.stats-donut { width: 148px; height: 148px; border-radius: 50%; flex-shrink: 0; padding: 18px; }
.stats-donut-hole { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stats-donut-hole strong { font-size: 24px; color: var(--ink); line-height: 1; }
.stats-donut-hole span { color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.stats-legend { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.stats-legend-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: #536276; font-size: 11.5px; }
.stats-legend-item b { color: var(--ink); font-weight: 600; }
.stats-dot { width: 7px; height: 7px; border-radius: 50%; }
.stats-month-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end; height: 168px; padding-top: 8px; }
.stats-month { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.stats-month-track { width: 100%; flex: 1; display: flex; align-items: flex-end; min-height: 0; }
.stats-month-bar { width: 100%; border-radius: 4px 4px 2px 2px; min-height: 2px; opacity: .86; }
.stats-month-value { font-size: 9.5px; color: #68788c; height: 13px; }
.stats-month-label { font-size: 9px; color: #9aa7b8; white-space: nowrap; }
.stats-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stats-mini { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; background: #fbfcfe; }
.stats-mini span { color: var(--muted); font-size: 10.5px; }
.stats-mini strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.stats-empty { color: var(--muted); font-size: 12px; padding: 12px 2px; }
@media (max-width: 1100px) { .stats-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .stats-head { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-donut-wrap { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) { .stats-kpi-grid { grid-template-columns: minmax(0, 1fr); } }



body.preview-open { overflow: hidden; }
.preview-backdrop {
  position: fixed; inset: 0; z-index: 2000; background: rgba(10, 20, 34, .56);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  backdrop-filter: blur(2px);
}
.preview-panel {
  width: min(1120px, 96vw); height: min(88vh, 900px); background: #fff;
  border-radius: 14px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.28);
  display: flex; flex-direction: column;
}
.preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.preview-head strong { color: var(--ink); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.preview-tools .btn { min-height: 28px; padding: 0 9px; font-size: 11px; }
.preview-frame { width: 100%; height: 100%; border: 0; flex: 1; background: #f4f6fa; }
.preview-image { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; display: block; }
.preview-download { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.preview-download p { margin: 0 0 14px; }
@media (max-width: 760px) {
  .preview-backdrop { padding: 8px; }
  .preview-panel { width: 100%; height: 92vh; border-radius: 10px; }
}.production-page .list-toolbar { margin-bottom: 10px; }
.production-list-table { min-width: 920px; }
.production-list-table th:nth-child(1) { width: 150px; }
.production-list-table th:nth-child(2) { width: 180px; }
.production-list-table th:nth-child(3) { width: 20%; }
.production-list-table th:nth-child(4) { width: 18%; }
.production-list-table th:nth-child(5) { width: 72px; }
.production-list-table th:nth-child(6) { width: 112px; }
.production-list-table th:nth-child(7) { width: 90px; }
.production-list-table th:nth-child(8) { width: 96px; }
.link-button {
  padding: 0; border: 0; background: none; color: var(--blue);
  font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.link-button:hover { text-decoration: underline; }
.production-row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.production-detail-page { max-width: none; }
.production-detail-head { align-items: center; }
.production-detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.production-view-toggle { display: inline-flex; align-items: center; gap: 4px; }
.production-detail-wrap {
  overflow: auto; max-height: calc(100vh - 220px);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.production-detail-table {
  border-collapse: separate; border-spacing: 0; min-width: 2050px;
  width: max-content; font-size: 11px; line-height: 1.35; color: #24364b;
}
.production-detail-table.production-detail-aux { min-width: 1550px; }
.production-detail-table th, .production-detail-table td {
  border-right: 1px solid #dfe7f0; border-bottom: 1px solid #e6edf5;
  padding: 7px 8px; white-space: nowrap; text-align: center; vertical-align: middle;
}
.production-detail-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #eef4fb; color: #173a60; font-weight: 600;
}
.production-detail-table thead tr:nth-child(2) th { top: 30px; }
.production-detail-table thead th:first-child,
.production-detail-table tbody td:first-child { position: sticky; left: 0; z-index: 1; background: #f8fbfe; }
.production-detail-table thead th:first-child { z-index: 4; background: #eef4fb; }
.production-detail-table tbody tr:hover td { background: #f5faff; }
.production-detail-table tbody tr:hover td:first-child { background: #edf6ff; }
.production-seq { color: #6b7d91; font-variant-numeric: tabular-nums; }
.production-process-cell { min-width: 62px; }
.production-process.done { color: #16834b; font-size: 15px; font-weight: 700; }
.production-process.doing { color: #b26a00; font-size: 10px; }
.production-process.skipped { color: #9aa8b7; }
.production-empty { padding: 28px !important; color: #7b8a9e; }
.production-detail-table th:nth-child(1) { width: 42px; }
.feedback-form { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.feedback-textarea { width: 100%; min-height: 120px; resize: vertical; line-height: 1.55; }
.feedback-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 20px 16px; border: 1.5px dashed #b9cbe6; border-radius: 12px; background: #f8fbff;
  text-align: center; cursor: pointer; outline: none;
  transition: border-color .15s, background .15s;
}
.feedback-dropzone:focus, .feedback-dropzone.is-drag { border-color: var(--blue); background: #eef6ff; }
.feedback-dropzone-icon { font-size: 26px; line-height: 1; }
.feedback-dropzone strong { font-size: 13.5px; color: var(--navy); }
.feedback-dropzone span { font-size: 11.5px; color: var(--muted); }
.feedback-dropzone-actions { margin-top: 5px; }
.feedback-selected-list { display: flex; flex-direction: column; gap: 7px; }
.feedback-selected-title { font-size: 11.5px; color: var(--muted); }
.feedback-selected-file {
  display: flex; align-items: center; gap: 9px; min-height: 38px;
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdff;
}
.feedback-selected-file img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex: none; }
.feedback-file-icon { width: 36px; text-align: center; font-size: 20px; flex: none; }
.feedback-selected-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.feedback-selected-size { flex: none; color: var(--muted); font-size: 11px; }
.feedback-submit-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback-submit-hint { color: var(--muted); font-size: 11.5px; }
.feedback-history-list, .ops-feedback-list { display: flex; flex-direction: column; gap: 9px; padding: 0 14px 14px; }
.feedback-history-item, .ops-feedback-item {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff;
}
.feedback-history-head, .ops-feedback-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; }
.feedback-history-item p, .ops-feedback-item p { margin: 8px 0 7px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.feedback-ops-note { margin-top: 8px; padding: 8px 10px; border-left: 3px solid #6aa2df; background: #f1f7ff; color: #34536f; font-size: 12px; }
.feedback-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.feedback-file-link {
  display: inline-flex; align-items: center; gap: 3px; max-width: 100%;
  padding: 4px 8px; border: 1px solid #dbe7f4; border-radius: 7px;
  background: #f7fbff; color: var(--blue); font-size: 11.5px; text-decoration: none;
}
.feedback-file-link span { color: var(--muted); font-size: 10px; }
.feedback-file-link:hover { border-color: #a9c4e8; background: #edf6ff; }
.ops-feedback-card { margin-top: 16px; }
.ops-feedback-item .ops-feedback-head { gap: 10px; }
.ops-feedback-item .ops-feedback-head strong { color: var(--ink); font-size: 12px; }
.ops-feedback-item .ops-feedback-head select { margin-left: auto; min-height: 30px; height: 30px; padding: 0 8px; font-size: 11px; }
@media (max-width: 700px) {
  .feedback-form, .feedback-history-list, .ops-feedback-list { padding-left: 10px; padding-right: 10px; }
  .ops-feedback-item .ops-feedback-head select { margin-left: 0; }
}
.order-aux-items { min-width: 1180px; }
.order-aux-items th:nth-child(1) { width: 40px; }
.order-aux-items th:nth-child(2) { width: 19%; }
.order-aux-items th:nth-child(3) { width: 70px; }
.order-aux-items th:nth-child(4) { width: 14%; }
.order-aux-items th:nth-child(5) { width: 136px; }
.order-aux-items th:nth-child(6) { width: 13%; }
.order-aux-items th:nth-child(7) { width: 15%; }
.order-aux-items th:nth-child(8) { width: 78px; }
.order-aux-items th:nth-child(9) { width: auto; }
.order-aux-items th:nth-child(8) { width: 116px; }
.order-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 2px 4px; }
.order-row-actions .btn { min-height: 26px; height: 26px; padding: 0 7px; font-size: 10.5px; white-space: nowrap; }
.order-row-actions .row-remove { width: 24px; padding: 0; }



.notice-print-sheet { display: none; }

/* 生产变更单详情：屏幕上直接显示成和通知单打印纸一样的文档 */
.change-sheet-actions { justify-content: flex-end; margin-bottom: 12px; }
/* 详情页和通知单一样 1060 居中，别再用整页宽把表格拉变形 */
.change-order-view { max-width: 1060px; margin: 0 auto; }
.change-dept-wrap { display: block; width: 100%; }
.change-dept-wrap .notice-input { width: 100%; }
.change-push-card { margin-top: 14px; }
.change-push-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 2px 8px; color: #5f7288; font-size: 12px; }
.change-push-list { display: flex; flex-direction: column; gap: 6px; }
.change-push-item {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  padding: 7px 9px; border: 1px solid #e6edf6; border-radius: 8px; background: #f9fbfe;
  font-size: 12px; color: #33475d;
}
.change-push-item strong { font-weight: 500; overflow-wrap: anywhere; }
.change-push-item span { color: #7a8b9d; }
.change-push-item em { color: #c0392b; font-style: normal; }
.change-push-warnings { margin: 8px 0 0; padding-left: 18px; color: #a3651a; font-size: 11.5px; line-height: 1.6; }
.change-order-paper .notice-meta td,
.change-order-paper .notice-items td { color: #111; }
.change-order-paper .notice-items td { text-align: center; }
.change-order-paper .notice-meta td.change-text {
  text-align: left;
  white-space: pre-wrap;
  line-height: 1.65;
  padding: 8px 10px;
}
.change-order-paper .change-explain { margin-top: 2px; }
.notice-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  font-size: 12px;
  color: #33445b;
}
.change-order-paper .notice-check-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 4px;
}
.change-order-paper .notice-check-group .notice-check {
  width: auto;
  gap: 5px;
  padding: 0 1px;
  white-space: nowrap;
}
.change-edit-paper textarea[data-change-field="changeReason"] {
  min-height: 68px;
  padding: 7px 8px;
  line-height: 1.6;
  resize: vertical;
  border: 1px solid #dce3ec;
  border-radius: 6px;
}


.order-main-items { min-width: 1120px; }
.order-main-items th:nth-child(1) { width: 38px; }
.order-main-items th:nth-child(2) { width: 70px; }
.order-main-items th:nth-child(3) { width: 18%; }
.order-main-items th:nth-child(4) { width: 12%; }
.order-main-items th:nth-child(5) { width: 15%; }
.order-main-items th:nth-child(6) { width: 64px; }
.order-main-items th:nth-child(7) { width: 13%; }
.order-main-items th:nth-child(8) { width: 14%; }
.order-main-items th:nth-child(9) { width: 17%; }
.order-main-items th:nth-child(10) { width: 116px; }
.order-site-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 9px 12px;
  border: 1px solid #dbe5f1;
  border-radius: 9px;
  background: #f7faff;
  font-size: 12px;
}
.order-site-summary strong { color: #173a60; }
.order-site-summary span { color: #2468a8; font-weight: 600; }
.order-site-summary small { color: #7a8898; }
.install-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.install-stat { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.install-stat span { display: block; color: var(--muted); font-size: 11.5px; }
.install-stat strong { display: block; margin-top: 3px; font-size: 18px; color: var(--navy); }
.install-flow { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.install-flow-step { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #f1f5fa; color: #8291a3; font-size: 12px; }
.install-flow-step span { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #dde6f0; font-size: 10px; }
.install-flow-step.on { background: #eaf3fc; color: #1f6fb2; }
.install-flow-step.on span { background: #1f6fb2; color: #fff; }
.install-cost-form { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.install-report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin-top: 12px; }
.install-board { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.install-board-col { background: #eef3f9; border-radius: 12px; padding: 8px; min-height: 260px; }
.install-board-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 5px 8px; font-size: 12.5px; color: #40536a; }
.install-board-head span { background: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.install-board-card { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: #fff; border: 1px solid #e1e9f2; border-radius: 9px; padding: 9px; margin-bottom: 7px; cursor: pointer; }
.install-board-card strong { font-size: 12.5px; color: #173a60; }
.install-board-card span { font-size: 11.5px; color: #53677d; }
.install-board-card small { font-size: 10.5px; color: #8796a8; }
.install-board-empty { color: #98a7b8; font-size: 11px; text-align: center; padding: 20px 0; }
.install-log-list { padding: 4px 14px 12px; }
.install-log { padding: 9px 0; border-bottom: 1px solid #edf2f7; }
.install-log:last-child { border-bottom: 0; }
.install-log strong { font-size: 13px; }
.install-log span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.install-log p { margin: 4px 0 0; font-size: 12.5px; color: #40536a; }
.install-notice-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.install-files { padding: 4px 14px; }
.install-file-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.install-file-row a { color: #1f6fb2; font-weight: 600; text-decoration: none; }
.install-file-row span { color: var(--muted); font-size: 11.5px; }
.install-file-row .row-remove { margin-left: auto; }
.install-file-upload { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; }
.install-file-input { max-width: 280px; font-size: 12px; }
@media (max-width: 760px) {
  .install-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-report-grid { grid-template-columns: minmax(0, 1fr); }
}
.link-btn { border: 0; background: transparent; color: #1f6fb2; font: inherit; font-weight: 600; padding: 0; cursor: pointer; text-align: left; }
.inline-actions { display: flex; align-items: center; gap: 6px; }
.catalog-tabs { display: inline-flex; gap: 2px; background: #eef2f7; border-radius: 9px; padding: 2px; }
.catalog-tabs .tab { padding: 7px 13px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.catalog-tabs .tab.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(15,39,68,.08); }.catalog-row {
  display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center;
  gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.catalog-row.selected { border-color: #9db8dc; background: #f6f9ff; }.catalog-batchbar {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 9px 12px; border: 1px solid #c7d8ee; border-radius: 10px; background: #f3f8ff;
}
.catalog-batchbar strong { font-size: 12px; color: var(--navy); margin-right: 3px; }
.catalog-batchbar .btn { min-height: 28px; padding: 0 10px; font-size: 11px; }
.catalog-batch-note {
  padding: 9px 12px; margin-bottom: 14px; border-radius: 9px; background: #f5f8fc;
  color: var(--muted); font-size: 11.5px; line-height: 1.6; word-break: break-all;
}
.catalog-batch-inline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.catalog-batch-inline .order-input { flex: 1; min-width: 160px; }
.catalog-batch-inline .unit-check { white-space: nowrap; margin: 0; }.catalog-meta > span:not(.chip) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.catalog-actions .btn { min-height: 28px; padding: 0 9px; font-size: 11px; }
.catalog-form { max-width: 1380px; width: 100%; margin: 0 auto; }
.catalog-form .order-card { padding: 24px 26px; }
.catalog-form .order-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.catalog-form .catalog-basic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-form .order-input { padding: 10px 12px; font-size: 13px; }
.catalog-form .order-field > span { font-size: 11.5px; }
.catalog-form .order-actions { padding: 10px 2px 6px; }
/* 表单页自己滚动，长表单不会把按钮挤没 */
.catalog-page.catalog-form-page { overflow-y: auto; }
.catalog-form-page .order-actions {
  position: sticky; bottom: 0; z-index: 4;
  margin: 0 -12px; padding: 10px 16px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
@media (max-width: 1200px) {
  .catalog-form .order-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .catalog-form .order-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-form { max-width: none; }
  .catalog-form .order-form-grid { grid-template-columns: 1fr; }
  .catalog-form .order-card { padding: 16px 14px; }
  .catalog-form-page { padding: 0 6px 8px; }
  .catalog-form-page .order-actions {
    margin: 0 -6px;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 760px) {
  .catalog-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .catalog-meta { grid-column: 2; }
  .catalog-actions { grid-column: 2; }
  .catalog-actions { justify-content: flex-end; }
}



.catalog-input-wrap { display: flex; align-items: center; gap: 4px; min-width: 0; }
.catalog-input-wrap .order-input,
.catalog-input-wrap .notice-input { flex: 1; min-width: 0; }
.catalog-pick-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 29px; height: 29px; padding: 0; border: 1px solid var(--line); border-radius: 7px;
  background: #f7f9fc; color: #3c5f8e; cursor: pointer;
}
.catalog-pick-btn:hover { background: #eaf2ff; border-color: #a9c4e8; color: var(--blue); }
.catalog-pick-btn svg { width: 15px; height: 15px; }
.catalog-picker-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 28, 48, .42); padding: 18px;
}
.catalog-picker {
  width: min(680px, 100%); max-height: min(760px, 86vh); display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(7, 20, 38, .28); overflow: hidden;
}
.attachment-dialog { max-width: 520px; }
.attachment-dialog-body { display: flex; flex-direction: column; gap: 12px; }
.attachment-dialog-file { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-height: 34px; }
.catalog-picker-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px 18px 10px; border-bottom: 1px solid #eef1f5;
}
.catalog-picker-head h2 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.catalog-picker-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.catalog-picker-close { font-size: 22px; line-height: 1; width: 30px; height: 30px; flex: none; }
.catalog-picker-search-wrap {
  display: flex; align-items: center; gap: 8px; margin: 12px 18px 6px; padding: 0 10px;
  border: 1px solid #cfd9e6; border-radius: 9px; background: #fff;
}
.catalog-picker-search-wrap svg { width: 16px; height: 16px; color: #7d8ea3; flex: none; }
.catalog-picker-search {
  flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--ink);
}
.catalog-picker-count { padding: 0 18px 8px; color: var(--muted); font-size: 11px; }
.catalog-picker-list { overflow-y: auto; padding: 0 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.catalog-picker-row {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 11px; border: 1px solid #e4eaf2; border-radius: 9px; background: #fff; cursor: pointer;
}
.catalog-picker-row:hover { background: #f5f9ff; border-color: #b7cfe9; }
.catalog-picker-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.catalog-picker-main strong { font-size: 13px; color: var(--ink); }
.catalog-picker-main span { font-size: 12px; color: #42648d; font-weight: 600; }.global-search-results { overflow-y: auto; padding: 0 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.global-search-group {
  padding: 10px 4px 3px; color: var(--navy); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; border-bottom: 1px solid #eef2f7; margin-top: 3px;
}
.global-search .catalog-picker-search-wrap { margin-bottom: 8px; }

.catalog-picker-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .catalog-picker-overlay { padding: 10px; align-items: flex-end; }
  .catalog-picker { max-height: 88vh; border-radius: 14px 14px 0 0; }
  .catalog-input-wrap .order-input { font-size: 12px; }
}


/* ---------- 生产通知单 ---------- */
.notice-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0 16px; flex-wrap: wrap;
}
.notice-search-wrap {
  display: flex; align-items: center; gap: 7px; flex: 1; max-width: 440px;
  padding: 4px 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.notice-search-icon { width: 16px; height: 16px; color: #98a4b5; flex: 0 0 auto; }
.notice-search {
  flex: 1; min-width: 100px; padding: 7px 2px; border: 0; outline: none;
  background: transparent; font-size: 13px; color: var(--ink);
}
.notice-search::placeholder { color: #a6b0bf; }
.notice-list { display: flex; flex-direction: column; gap: 8px; }
.notice-row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 16px;
  align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}.notice-row-wrap .notice-row { flex: 1; min-width: 0; }
.notice-row-wrap.selected .notice-row { border-color: #9db8dc; background: #f6f9ff; }
.notice-check { display: flex; align-items: center; justify-content: center; width: 24px; flex: none; }
.notice-check input { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }

/* Excel 式列表：标题行 + 筛选行 + 数据行 */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
.list-toolbar-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.list-toolbar-left strong { font-size: 14px; color: var(--navy); }
.list-toolbar-left span { color: var(--muted); font-size: 11px; }
.list-toolbar-right { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.list-toolbar-right .btn-small,
.list-toolbar-right .order-filter { height: 32px; min-height: 32px; }
/* 工具栏里的筛选控件别撑满整行：给固定宽度，输入框和下拉才排得整齐 */
.list-toolbar-right .list-filter-input { width: 240px; min-width: 160px; height: 32px; }
.list-toolbar-right .list-filter-select { width: auto; min-width: 128px; height: 32px; }
.list-toolbar-right input[type="month"].list-filter-input { width: 150px; }
.list-toolbar-left .list-filter-input { width: 220px; height: 32px; }
.list-toolbar-right .notice-search-wrap { height: 32px; min-height: 32px; padding: 0 7px; }
.list-toolbar-right .notice-search { height: 30px; padding: 0; }
.list-table-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: auto; max-height: calc(100vh - 250px); width: 100%;
}
.list-table { width: 100%; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.order-table { min-width: 1040px; }
.notice-table { min-width: 1000px; }.list-table th {
  position: sticky; top: 0; z-index: 2; background: #f6f8fb; color: #4b5a6e;
  font-weight: 500; padding: 8px 9px; border-bottom: 1px solid var(--line);
  text-align: left; white-space: nowrap;
}
.list-head-row th { height: 38px; }
.list-filter-row th {
  top: 38px; z-index: 3; background: #fbfcfe; padding: 5px 6px;
  border-bottom: 1px solid #e8eef5;
}
.list-filter-input, .list-filter-select {
  width: 100%; min-width: 72px; height: 27px; border: 1px solid #dce3ec; border-radius: 6px;
  background: #fff; padding: 0 6px; font-size: 11px; color: #33445b; outline: none;
}
.list-filter-input:focus, .list-filter-select:focus { border-color: #9db9e6; box-shadow: 0 0 0 2px rgba(47,111,235,.08); }
.list-filter-input::placeholder { color: #a6b0bf; }
.list-table td { padding: 8px 9px; border-bottom: 1px solid #eef2f7; vertical-align: middle; color: #40546c; }
.list-table .card-value { display: contents; }
.list-table tbody tr:last-child td { border-bottom: 0; }
.list-data-row { cursor: pointer; }
.list-data-row:hover td { background: #f5f9ff; }
.list-strong { color: var(--navy); font-weight: 600; white-space: nowrap; }
.list-wrap { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-muted { color: #98a4b5; white-space: nowrap; }
.list-ops { text-align: right; white-space: nowrap; }
/* “查看”按钮常显：右侧操作列固定在表格右边，横向滚动也不会被挤出去。 */
.list-ops-sticky {
  position: sticky; right: 0; z-index: 2; background: #fff;
  box-shadow: -8px 0 12px -10px rgba(15, 40, 80, .35);
}
.list-head-row .list-ops-sticky, .list-filter-row .list-ops-sticky { background: #f6f8fb; z-index: 4; }
.list-data-row:hover td.list-ops-sticky { background: #f5f9ff; }
/* 财务签字：何美杨电子签名 + 日期 */
.finance-sign { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.finance-sign-img { height: 30px; width: auto; max-width: 110px; object-fit: contain; }
.finance-sign-img.print { height: 34px; max-width: 130px; }
.finance-sign-img.small { height: 24px; max-width: 84px; }
.finance-sign-text { font-family: "华文行楷", "STXingkai", "楷体", "KaiTi", cursive; font-size: 17px; color: #1b2a41; }
.finance-sign-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.finance-sign-cell .notice-input { flex: 1 1 110px; min-width: 110px; }
.print-finance-cell { display: table-cell; white-space: nowrap; }
.print-finance-cell .finance-sign { gap: 6px; }
.print-sign-date { font-size: 12px; color: #33445b; }
.salesman-input-wrap { display: inline-flex; width: 100%; }
/* 通知单后台关联信息（销售负责人不上单，只在这里查） */
.notice-backend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.notice-backend-item {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 11px;
  background: #f7f9fc; border: 1px solid #e6edf6; border-radius: 9px;
}
.notice-backend-item span { font-size: 11px; color: #7b8798; }
.notice-backend-item strong { font-size: 13px; color: var(--navy); font-weight: 600; }
.list-check-col { width: 36px; text-align: center !important; padding: 5px !important; }
.list-checkbox { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.list-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.list-empty-cell { padding: 36px 12px !important; text-align: center; color: var(--muted); }
.list-error-text { color: var(--bad); margin-right: 10px; }
.order-table th:nth-child(1) { width: 105px; }
.order-table th:nth-child(2) { width: 170px; }
.order-table th:nth-child(3) { width: 140px; }
.order-table th:nth-child(4) { width: 75px; }
.order-table th:nth-child(5), .order-table th:nth-child(6) { width: 92px; }
.order-table th:nth-child(7), .order-table th:nth-child(8) { width: 76px; }
.order-table th:nth-child(9) { width: 78px; }
.order-table th:nth-child(10) { width: 90px; }
.order-table th:nth-child(11) { width: 58px; }
/* 订单列表-主机/辅机/压力容器：列宽按 data-col 走，辅机和压力容器少一列「产品编号」 */
.order-main-table { min-width: 1500px; }
.order-main-table.is-compact { min-width: 1400px; }
.order-main-table th[data-col="orderNo"] { width: 100px; }
.order-main-table th[data-col="productName"] { width: 150px; }
.order-main-table th[data-col="model"] { width: 130px; }
.order-main-table th[data-col="unitCode"] { width: 110px; }
.order-main-table th[data-col="customer"] { width: 150px; }
.order-main-table th[data-col="buyer"] { width: 140px; }
.order-main-table th[data-col="salesperson"] { width: 82px; }
.order-main-table th[data-col="signMonth"],
.order-main-table th[data-col="deliveryMonth"] { width: 96px; }
.order-main-table th[data-col="proposal"] { width: 150px; }
.order-main-table th[data-col="drawingVersion"] { width: 76px; }
.order-main-table th[data-col="note"] { width: 150px; }
.order-main-table th.list-ops-sticky { width: 64px; }
.list-table.qc-search-table { min-width: 1180px; }
.list-table.qc-search-table th:nth-child(1) { width: 118px; }
.list-table.qc-search-table th:nth-child(2) { width: 16%; }
.list-table.qc-search-table th:nth-child(3) { width: 20%; }
.list-table.qc-search-table th:nth-child(4) { width: 15%; }
.list-table.qc-search-table th:nth-child(5) { width: 64px; }
.list-table.qc-search-table th:nth-child(6) { width: 76px; }
.list-table.qc-search-table th:nth-child(7) { width: 94px; }
.list-table.qc-search-table th:nth-child(8) { width: 92px; }
.list-table.qc-search-table th:nth-child(9) { width: 128px; }
.qc-stage-search { flex: 0 1 300px; }
.qc-stage-match { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 2px 0; }
.qc-stage-match + .qc-stage-match { border-top: 1px dashed #e7eef6; margin-top: 3px; padding-top: 5px; }
.qc-stage-match-title { color: #3f5873; font-size: 11.5px; line-height: 1.4; text-align: left; }
.qc-stage-match .chip { flex: none; }
.list-table.production-list-table { min-width: 1040px; }
.list-table.production-list-table th:nth-child(1) { width: 110px; }
.list-table.production-list-table th:nth-child(2) { width: 180px; }
.list-table.production-list-table th:nth-child(3) { width: 21%; }
.list-table.production-list-table th:nth-child(4) { width: 16%; }
.list-table.production-list-table th:nth-child(5) { width: 72px; }
.list-table.production-list-table th:nth-child(6) { width: 102px; }
.list-table.production-list-table th:nth-child(7) { width: 112px; }
.list-table.production-list-table .list-filter-row th:nth-child(7) select { width: 100%; min-width: 0; }
.list-table.production-list-table th:nth-child(8) { width: 132px; }
.notice-table th:nth-child(1) { width: 36px; }
.notice-table th:nth-child(2) { width: 110px; }
.notice-table th:nth-child(3) { width: 172px; }
.notice-table th:nth-child(4) { width: 95px; }
.notice-table th:nth-child(5) { width: 180px; }
.notice-table th:nth-child(6), .notice-table th:nth-child(7) { width: 75px; }
.notice-table th:nth-child(8) { width: 76px; }
.notice-table th:nth-child(9) { width: 80px; }
.notice-table th:nth-child(10) { width: 60px; }.aux-summary { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 12px; }
.aux-summary-item {
  display: flex; align-items: baseline; gap: 7px; min-width: 105px; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.aux-summary-item strong { font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.aux-summary-item span { font-size: 11px; color: var(--muted); }
.aux-summary-item.warn strong { color: #a66b08; }
.aux-summary-item.info strong { color: #2f6feb; }
.aux-summary-item.ok strong { color: #1f7a4d; }.staff-sub { margin-top: 3px; color: var(--muted); font-size: 11px; }.staff-subtitle { margin: 0; color: var(--muted); font-size: 12px; }/* 列宽必须每列都给死：table-layout:fixed 下只要有一列是 auto 且固定列之和超过 min-width，
   那列会被压成 0（岗位列就这么消失过）。改列时记得同步 min-width。 */
/* 列宽必须每列都给死：table-layout:fixed 下只要有一列是 auto 且固定列之和超过 min-width，
   那列会被压成 0（岗位列就这么消失过）。改列时记得同步 min-width，
   1440 屏可用宽度大约 1120，min-width 超过它「操作」粘性列就会盖住「状态」。 */
.staff-table { min-width: 1100px; table-layout: fixed; }
.staff-table th:nth-child(1) { width: 36px; }
.staff-table th:nth-child(2) { width: 170px; }
.staff-table th:nth-child(3) { width: 108px; }
.staff-table th:nth-child(4) { width: 96px; }
.staff-table th:nth-child(5) { width: 150px; }
.staff-table th:nth-child(6) { width: 90px; }
.staff-table th:nth-child(7) { width: 178px; }
.staff-table th:nth-child(8) { width: 88px; }
.staff-table th:nth-child(9) { width: 180px; }
.staff-table .staff-actions { display: flex; flex-wrap: wrap; gap: 3px; }
.staff-table .chip { margin: 2px 4px 2px 0; }
.staff-off { opacity: 0.62; }
.staff-missing { color: #b07a18; font-size: 12px; }
.staff-summary { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.staff-summary .aux-summary-item {
  min-width: 0; width: 100%; cursor: pointer; font: inherit; text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.staff-summary .aux-summary-item:hover { border-color: #b9cbe6; background: #f8fbff; }
.staff-summary .aux-summary-item.on {
  border-color: var(--blue); background: var(--blue-soft);
  box-shadow: 0 0 0 1px rgba(47, 111, 235, .18);
}
@media (max-width: 1180px) {
  .staff-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .staff-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 人员导入弹窗 */
.staff-import-modal { width: min(720px, calc(100vw - 32px)); }
.staff-import-counts {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 8px; color: var(--muted); font-size: 12px;
}
.staff-import-counts b { font-size: 13px; font-weight: 600; }
.staff-import-counts .ok { color: #1f7a4d; }
.staff-import-counts .info { color: #2f6feb; }
.staff-import-counts .bad { color: #c0392b; }
.staff-import-list {
  margin-top: 8px; max-height: 230px; overflow: auto; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe;
  font-size: 12px; line-height: 1.75;
}
.staff-import-list.bad { border-color: #f0c9c4; background: #fff7f6; color: #a33a2c; }@media (max-width: 1300px) {
  .staff-table { min-width: 1060px; }
  .staff-table th:nth-child(2) { width: 160px; }
  .staff-table th:nth-child(7) { width: 166px; }
  .staff-table th:nth-child(9) { width: 172px; }
}@media (max-width: 1100px) {
}
@media (max-width: 720px) {
}
@media (max-width: 760px) {
  .list-toolbar-left { width: 100%; }
  .list-toolbar-right { width: 100%; }
  .list-table-wrap { max-height: none; }
}

.notice-row:hover { border-color: #bfd2ef; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,39,68,.05); }
.notice-row-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.notice-row-main strong { font-size: 14px; color: var(--navy); letter-spacing: .3px; }
.notice-row-main span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-row-meta { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }.notice-row-arrow { width: 15px; height: 15px; color: #b8c3d2; }
.chip.danger { background: #fef3f2; color: var(--bad); }
.notice-loading { padding: 42px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }

.notice-form { max-width: 1060px; margin: 0 auto; }
.notice-paper {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px 18px; box-shadow: 0 8px 28px rgba(15,39,68,.05); overflow-x: auto;
}
.notice-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.notice-head h1 { margin: 0; text-align: center; font-size: 24px; letter-spacing: 5px; color: #111; }
.notice-table-no, .notice-version { font-size: 11px; color: #55657a; }
.notice-version { text-align: right; }
.notice-subline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; font-size: 12px; color: #526277; }
.notice-subline .notice-input { width: 170px; border-bottom: 1px solid #cbd5e3; }
.notice-subline .notice-input[type="date"] { width: 148px; }

.notice-meta { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; min-width: 760px; }
.notice-meta th, .notice-meta td { border: 1px solid #9eacbc; padding: 0 7px; height: 36px; vertical-align: middle; }
.notice-meta th { width: 90px; text-align: center; font-weight: 500; color: #33445b; background: #f6f8fb; white-space: nowrap; }
.notice-meta td { padding: 3px 6px; }
/* 合同编号 / 收到日期 / 交货备注 这列的标签，4 个字够用，窄一点把宽度让给输入框 */
.notice-meta th:nth-child(3) { width: 74px; }
/* 「运输/卸车/就位」这种长标签，字号小一点，别被裁 */
.notice-meta th:first-child { font-size: 11.5px; }
.notice-input {
  width: 100%; border: 0; outline: none; background: transparent; padding: 4px 2px;
  font: inherit; color: #111; border-radius: 3px;
}
.notice-input:focus { background: #eef4ff; }
.notice-area {
  display: block; width: 100%; min-height: 30px; height: auto;
  padding: 5px 6px; line-height: 1.45; resize: vertical; overflow-y: auto;
  field-sizing: normal; text-align: left;
}
.notice-items .notice-area { text-align: center; }
.notice-input[readonly] { background: #f2f4f7; color: #7b8a9e; cursor: not-allowed; }
.notice-meta .notice-input[type="date"] { width: 100%; min-width: 0; font-size: 12px; color-scheme: light; }
/* 填写日期旁边「交货 + N 天」的小输入：日期控件格式不动，只多一个小辅助框 */
.notice-days {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  color: #7b8a9e; font-size: 11px; white-space: nowrap;
  margin-left: 2px; padding-left: 7px; border-left: 1px solid #dfe6ef;
}
.notice-days input {
  width: 46px; height: 26px; border: 1px solid #d7e0ea; border-radius: 6px;
  background: #fff; padding: 0 4px; font-size: 12px; color: #26374d; text-align: right;
}
.notice-days input:focus { outline: none; border-color: #7aa7e8; box-shadow: 0 0 0 2px rgba(47, 111, 235, .12); }
@media (max-width: 760px) {
  .notice-days input { width: 54px; height: 30px; }
}
.notice-options { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; min-height: 28px; }
.notice-radio, .notice-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.notice-radio input, .notice-check input { accent-color: var(--blue); margin: 0; }
.notice-options .notice-check {
  display: inline-flex; width: auto; flex: 0 0 auto; justify-content: flex-start;
  gap: 6px; padding: 0 2px; line-height: 1;
}
.notice-options .notice-check input { width: 15px; height: 15px; flex: none; }

.notice-section-title { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: #111; }
.notice-items { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; min-width: 760px; }
.notice-items th, .notice-items td { border: 1px solid #9eacbc; padding: 2px 4px; height: 33px; text-align: center; vertical-align: middle; }
.notice-items th { background: #f6f8fb; font-weight: 500; color: #33445b; }
.notice-items .notice-input { text-align: center; padding: 3px 2px; }
.notice-main th:nth-child(1) { width: 36px; }
.notice-main th:nth-child(2) { width: 76px; }
.notice-main th:nth-child(3) { width: 19%; }
.notice-main th:nth-child(4) { width: 18%; }
.notice-main th:nth-child(5) { width: 62px; }
.notice-main th:nth-child(6) { width: 20%; }
.notice-main th:nth-child(7) { width: 90px; }
.notice-main th:nth-child(8) { width: 94px; }
.notice-aux { min-width: 900px; }
.notice-aux th:nth-child(1) { width: 36px; }
.notice-aux th:nth-child(2) { width: 24%; }
.notice-aux th:nth-child(3) { width: 62px; }
.notice-aux th:nth-child(4) { width: 18%; }
.notice-aux th:nth-child(5) { width: 18%; }
.notice-aux th:nth-child(6) { width: auto; }
.notice-aux th:nth-child(7) { width: 94px; }
.notice-seq { color: #8b97a8; font-variant-numeric: tabular-nums; }
.notice-op { padding: 0 !important; }
.row-remove {
  width: 24px; height: 24px; border-radius: 6px; color: #b42318; font-size: 16px; line-height: 1;
  display: inline-grid; place-items: center;
}
.row-remove:hover { background: #fef3f2; }
.notice-op-btns { display: flex; align-items: center; justify-content: center; gap: 1px; }
.row-move {
  width: 20px; height: 22px; border-radius: 5px; color: #5b6b80; font-size: 13px; line-height: 1;
  display: inline-grid; place-items: center; background: transparent;
}
.row-move:hover:not(:disabled) { background: #eef4ff; color: var(--blue); }
.row-move:disabled { opacity: .3; cursor: default; }
.row-insert { color: var(--blue); }
.row-add {
  margin: 8px 0 2px; padding: 6px 10px; border: 1px dashed #b9c7db; border-radius: 8px;
  background: #fbfcff; color: var(--blue); font-size: 11.5px; cursor: pointer;
}
.row-add:hover { background: #f2f7ff; border-color: #9db9e6; }
.notice-review { margin-top: 15px; border: 1px solid #9eacbc; padding: 10px 12px 12px; overflow-x: auto; }
.notice-review-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 8px; }
.review-method { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; margin-bottom: 8px; font-size: 12px; color: #33445b; }
.review-option { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.review-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.notice-review-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.notice-review-table th, .notice-review-table td { border: 1px solid #9eacbc; padding: 3px 5px; height: 34px; vertical-align: middle; }
.notice-review-table th { background: #f6f8fb; color: #33445b; font-weight: 500; text-align: center; }
.notice-review-table th:nth-child(1) { width: 12%; }
.notice-review-table th:nth-child(2) { width: 28%; }
.notice-review-table th:nth-child(3) { width: 13%; }
.notice-review-table th:nth-child(4) { width: 32%; }
.notice-review-table th:nth-child(5) { width: 15%; }
.review-dept { text-align: center; font-weight: 500; color: #33445b; white-space: nowrap; }
.review-content { text-align: left; padding-left: 9px !important; }
.review-result { display: flex; align-items: center; justify-content: center; gap: 12px; }
.review-check { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.review-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
.review-input {
  width: 100%; border: 0; outline: none; background: transparent; padding: 4px 3px;
  font: inherit; font-size: 12px; color: #111; border-radius: 3px;
}
.review-input:focus { background: #eef4ff; }
.review-hint { margin: 7px 0 0; color: #98a4b5; font-size: 10.5px; }
.notice-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap;
  max-width: 1060px; margin: 14px auto 0; padding: 10px 0;
}
.notice-actions .btn.danger { color: var(--bad); }
.notice-error {
  max-width: 1060px; margin: 12px auto 0; padding: 10px 13px; border-radius: 9px;
  color: var(--bad); background: #fef3f2; border: 1px solid #fecdca; font-size: 12px;
}
.notice-draft-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 1060px; margin: 8px auto; padding: 8px 11px; border-radius: 9px;
  background: #ecfdf3; border: 1px solid #abefc6; color: #067647; font-size: 12px;
}
.notice-autosave-hint { max-width: 1060px; margin: 2px auto 8px; color: #7a8b9d; font-size: 11.5px; }
.notice-version-bar {
  max-width: 1060px; margin: 0 auto 12px; padding: 8px 11px; display: flex;  align-items: center; gap: 7px; flex-wrap: wrap; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.notice-version-label { color: var(--muted); font-size: 11px; margin-right: 2px; }
.notice-version-btn {
  min-height: 28px; padding: 0 10px; border: 1px solid #dce4ef; border-radius: 7px;
  background: #f8fafc; color: #425a77; font-size: 11.5px; cursor: pointer;
}
.notice-version-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.notice-version-btn span { margin-left: 4px; font-size: 9.5px; opacity: .8; }
.notice-version-chip { margin-left: 6px; vertical-align: 1px; }
.notice-change-view, .notice-change-editor {
  margin-top: 15px; padding: 12px 14px; border: 1px solid #e7b96b;
  border-radius: 9px; background: #fffaf0;
}
.notice-change-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.notice-change-head h2 { margin: 0; color: #7a4a0d; font-size: 14px; }
.notice-change-content { margin: 0 0 10px; color: #3d2b13; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.notice-change-pdf { display: inline-flex; text-decoration: none; }
.notice-change-content-label { display: flex; flex-direction: column; gap: 5px; color: #7a4a0d; font-size: 12px; }
.notice-change-text {
  width: 100%; min-height: 96px; resize: vertical; padding: 9px 10px;
  border: 1px solid #d8c3a0; border-radius: 8px; background: #fff;
  color: var(--ink); font: inherit; font-size: 13px; line-height: 1.6;
}
.notice-change-text:focus { outline: none; border-color: #c99743; box-shadow: 0 0 0 2px rgba(201,151,67,.12); }
.notice-change-pdf-row {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e4cfaa;
}
.notice-change-pdf-row > div:first-child { min-width: 190px; flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: #7a6a50; }
.notice-change-pdf-row strong { color: #5b3d12; font-size: 12px; }
.notice-change-pdf-row .attachment-file-input { display: none; }
.notice-readonly .notice-hidden-control { display: none !important; }
.notice-readonly .notice-input,
.notice-readonly .review-input,
.notice-readonly .notice-items select {
  color: #26364a; background: transparent;
}
.notice-readonly .notice-items td,
.notice-readonly .notice-review-table td { background: #fff; }

@media (max-width: 960px) {
  .notice-paper { padding: 16px; }
  .notice-head h1 { font-size: 21px; letter-spacing: 4px; }
  .notice-list-head { align-items: stretch; }
  .notice-search-wrap { max-width: none; }
}

@media (max-width: 640px) {
  .notice-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 8px; padding: 12px 13px; }
  .notice-row-meta { grid-column: 1 / -1; justify-content: flex-start; gap: 7px; }
  .notice-row-arrow { grid-column: 2; grid-row: 1; align-self: start; }
  .notice-list-head { flex-direction: column; align-items: stretch; }
  .notice-list-head > .btn { width: 100%; }
  .notice-paper { padding: 12px; border-radius: 12px; }
  .notice-head { grid-template-columns: 1fr; gap: 3px; text-align: center; }
  .notice-version { text-align: center; }
  .notice-head h1 { font-size: 20px; letter-spacing: 3px; }
  .notice-subline { gap: 5px; }
  .notice-subline .notice-input { width: 132px; }
  .notice-subline .notice-input[type="date"] { width: 128px; }
  .notice-actions { justify-content: stretch; }
  .notice-actions .btn { flex: 1 1 calc(50% - 5px); }
  .notice-version-bar {
    flex-wrap: nowrap; overflow-x: auto; padding: 8px 9px; margin-bottom: 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .notice-version-bar::-webkit-scrollbar { display: none; }
  .notice-version-btn { flex: 0 0 auto; }
  .notice-change-view, .notice-change-editor { padding: 11px 12px; margin-top: 12px; }
  .notice-change-pdf-row > div:first-child { min-width: 100%; }
  .notice-change-pdf-row .btn { flex: 1 1 auto; justify-content: center; }
  .notice-change-text { min-height: 86px; font-size: 13px; }
}

/* 打印稿排版：屏幕上的“打印预览”和真正打印共用这一套，改样式两边一起变 */
.notice-print-sheet { color: #000; font-family: "SimSun", "Songti SC", serif; font-size: 9.5pt; line-height: 1.3; }
.print-company { text-align: center; font-size: 10.5pt; letter-spacing: .5px; margin-bottom: 5mm; }
.print-meta-line { display: flex; justify-content: space-between; font-size: 9pt; border-bottom: 1px solid #000; padding-bottom: 2mm; }
.print-title { text-align: center; font-size: 20pt; font-weight: 600; letter-spacing: 8px; margin: 4mm 0 3mm; }
.print-subline { display: flex; justify-content: space-between; font-size: 10pt; margin-bottom: 2mm; }
.print-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.print-table th, .print-table td { border: 1px solid #000; padding: 2px 3px; font-weight: 400; vertical-align: middle; word-break: break-word; overflow-wrap: anywhere; }
.print-table th { text-align: center; background: #fff !important; }
.print-label { text-align: center; white-space: nowrap; }
.print-section-row td { font-size: 10pt; font-weight: 600; text-align: left; padding: 3px 4px; }
.print-head-row th { text-align: center; }
.print-center { text-align: center; }.print-change-content { text-align: left; white-space: pre-wrap; line-height: 1.5; }
.print-footer { display: flex; justify-content: space-between; font-size: 10pt; margin-top: 4mm; }
.print-table tr { page-break-inside: avoid; }
.print-table { font-size: 9pt; }
/* 只作用于通知单打印稿，别影响变更单详情里同名的单元格 */
.notice-print-sheet .print-finance-cell { text-align: center; }
.notice-print-sheet .print-sign-date { margin-left: 6px; font-size: 9pt; }

@media print {
  /* 打印的是页面里那张 .notice-print-sheet；预览弹窗只在屏幕上用 */
  .notice-print-sheet { display: block !important; }
  .notice-print-modal { display: none !important; }
  .notice-attachments, .notice-paper, .notice-actions, .notice-error { display: none !important; }

  @page { size: A4 portrait; margin: 8mm; }
  html, body { background: #fff !important; overflow: visible !important; }
  /* 打印时把页面容器的浅灰底和留白去掉，纸张上只留单据本身 */
  #app, .shell, .workspace, .workspace-body, .page { background: #fff !important; padding: 0 !important; }
  .sidebar, .workspace-head, .tabbar, .notice-actions, .toast, .mobile-brand,
  .row-add, .row-remove, .row-move, .notice-op-btns, .notice-error, .notice-subnav { display: none !important; }
  .shell { display: block; }
  .workspace { min-height: 0; display: block; }
  .workspace-body { padding: 0; max-width: none; }
  .page { max-width: none; }
  .notice-form { max-width: none; }
  .notice-paper { border: 0; box-shadow: none; padding: 0; overflow: visible; border-radius: 0; }
  .notice-head h1 { font-size: 22px; letter-spacing: 5px; }
  .notice-meta, .notice-items { min-width: 0; font-size: 10.5px; }
  .notice-meta th, .notice-meta td, .notice-items th, .notice-items td { border-color: #000; }
  .notice-meta th, .notice-items th { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .notice-input { color: #000; font-size: 10.5px; background: transparent !important; }
  .notice-radio, .notice-check { font-size: 10px; }
  .notice-actions { display: none; }
  .notice-main th:nth-child(8), .notice-main td:nth-child(8),
  .notice-aux th:nth-child(7), .notice-aux td:nth-child(7) { display: none; }
  .notice-items thead { display: table-header-group; }
  tr { page-break-inside: avoid; }
  /* 变更单详情页没有自己的 print sheet，打印时至少把单据本身放出来，别整页空白 */
  .change-order-view { max-width: none !important; }
  .change-order-page .change-order-paper { display: block !important; }
}

/* ---------- 业务流程 / 辅机评估 / 现场安装 ---------- */
.flow-step { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 18px; }
.flow-step + .flow-step { padding-left: 18px; border-left: 1px solid #eef2f7; }
.flow-step strong { font-size: 12px; color: #40546c; font-weight: 600; white-space: nowrap; }
.flow-step span { font-size: 10.5px; color: #98a4b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-step.on strong { color: var(--blue); }
.flow-step.on span { color: #6d9ae8; }.flow-warning {
  margin: -8px 0 14px; padding: 9px 12px; border-radius: 9px; font-size: 11.5px; line-height: 1.6;
  color: #7a4c05; background: #fff8e8; border: 1px solid #f1ddb0;
}.aux-supply.in-house .aux-site-select { background: #f2f7ff; color: #2f6feb; font-weight: 600; }@media (max-width: 760px) {
  .flow-strip { flex-direction: column; gap: 8px; }
  .flow-step { padding: 0; }
  .flow-step + .flow-step { padding-left: 0; border-left: 0; }
  .flow-arrow { display: none; }
  .install-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-hero { padding: 18px; }
  .install-hero-icon { display: none; }
}

/* ---------- 质检内嵌 ---------- */
.qc-workspace { height: 100dvh; min-height: 0; overflow: hidden; }
.qc-view { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.qc-top {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 13px 22px 10px; border-bottom: 1px solid var(--line); background: #fff;
}
.qc-top-main {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 40px;
}
.qc-heading {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-width: 0; line-height: 1.3;
}
.qc-heading strong { font-size: 20px; letter-spacing: 1px; color: var(--navy); }
.qc-sub {
  font-size: 12px; color: var(--muted); max-width: 480px; margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}
.qc-top-main > .icon-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.qc-tools {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 2px;
}
.qc-tabs {
  display: flex; justify-content: center; gap: 3px; padding: 4px;
  background: #f1f4f9; border-radius: 11px; max-width: 100%; overflow-x: auto;
}
.qc-tab { padding: 8px 18px; border-radius: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.qc-tab.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 4px rgba(15,39,68,.08); }
.qc-frame { flex: 1; min-height: 0; background: #f4f6fa; overflow: hidden; }
.qc-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.qc-view:fullscreen { background: #fff; }
.qc-view:fullscreen .qc-frame { flex: 1; height: auto; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 12px);
  z-index: 100; max-width: calc(100vw - 32px); padding: 10px 15px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 12px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: #8a5a12; }
.toast.bad { background: #8d1d16; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 222px minmax(0, 1fr); }
  .workspace-head { padding: 22px 24px 8px; }
  .workspace-body { padding: 8px 24px 40px; }
  .qc-top { padding: 12px 16px 9px; gap: 8px; }
  .qc-sub { max-width: 360px; }
}

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 26px 22px 24px; min-height: auto; }
  .auth-brand::before, .auth-brand::after { display: none; }
  .auth-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; margin-bottom: 14px; }
  .auth-kicker { display: none; }
  .auth-brand h1 { font-size: 25px; margin-bottom: 10px; }
  .auth-brand p { font-size: 12px; line-height: 1.65; }
  .auth-points { display: none; }
  .auth-panel { padding: 22px 22px 36px; justify-content: flex-start; }
  .auth-panel-head { margin-bottom: 18px; }
  .login-form { max-width: none; }

  .shell { display: block; }
  .sidebar { display: none; }
  .workspace { min-height: 100dvh; padding-bottom: 76px; }
  .workspace.qc-workspace { padding-bottom: 0; }
  .workspace-head { padding: 16px 16px 8px; align-items: center; }
  .workspace-title h1 { font-size: 20px; }
  .workspace-title p { font-size: 11.5px; }
  .mobile-brand { display: flex; }
  .workspace-body { padding: 6px 14px 24px; }
  .workspace-tools { gap: 6px; }
  .status-chip { display: none; }
  .avatar { width: 33px; height: 33px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 22px rgba(15,39,68,.06);
  }
  .hero { padding: 24px 22px; flex-direction: column; gap: 18px; }
  .hero h2 { font-size: 25px; }
  .hero-side { width: 100%; align-self: stretch; }
  .quick-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 18px; }
  .qc-workspace { height: 100dvh; }
  .qc-top { padding: 10px 12px 8px; gap: 7px; }
  .qc-top-main { min-height: 34px; }
  .qc-heading strong { font-size: 18px; letter-spacing: .5px; }
  .qc-sub { max-width: 170px; font-size: 11.5px; }
  .qc-top-main > .icon-btn { width: 32px; height: 32px; }
  .qc-tools .icon-btn { width: 32px; height: 32px; }
  .qc-tabs { width: 100%; justify-content: center; overflow-x: auto; scrollbar-width: none; }
  .qc-tabs::-webkit-scrollbar { display: none; }
  .qc-tab { flex: 0 0 auto; padding: 7px 14px; font-size: 12.5px; }
  .qc-frame { min-height: 0; }
}

/* ---------- 手机端列表、按钮和卡片 ---------- */
@media (max-width: 760px) {
  .workspace-body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

  .list-toolbar-right { gap: 8px; }
  .list-toolbar-right > .notice-search-wrap {
    flex: 1 0 100%; max-width: none; height: 44px; padding: 0 8px;
  }
  .list-toolbar-right > .order-filter {
    flex: 1 0 100%; width: 100%; height: 44px; min-height: 44px;
  }
  .list-toolbar-right > .order-filter:not(:only-of-type) {
    flex-basis: calc(50% - 4px); width: auto;
  }
  .notice-search-wrap .btn { height: 34px; min-height: 34px; padding: 0 12px; }

  .staff-head .notice-search-wrap,
  .staff-head .order-filter,
  .staff-head > .btn {
    height: 44px; min-height: 44px;
  }
  .staff-head {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  }
  .staff-head .notice-search-wrap,
  .staff-head > .btn {
    grid-column: 1 / -1;
  }
  .staff-head .order-filter { width: 100%; }
  .staff-head > .btn {
    width: 100%; justify-content: center;
  }
  .list-toolbar-right > .staff-template-link {
    flex: 0 0 auto; height: 32px; min-height: 32px; margin-left: auto;
    padding: 0 8px; font-size: 11px;
  }

  .aux-summary {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  }
  .aux-summary-item {
    min-width: 0; justify-content: center; padding: 10px 8px;
  }

  .mobile-card-wrap {
    background: transparent; border: 0; border-radius: 0; overflow: visible; max-height: none;
  }
  .mobile-card-table { display: block; width: 100%; min-width: 0; }
  /* 分解台/生产任务这张表自己的 min-width 写在后面，会盖掉上面这条，
     手机上就会横向溢出、卡片被裁掉——这里用更高优先级压回来 */
  .mobile-card-table.task-order-table { min-width: 0; }
  .mobile-card-table thead { display: block; }
  .mobile-card-table thead .list-head-row { display: none; }
  .mobile-card-table thead .list-filter-row {
    display: flex; gap: 8px; overflow-x: auto; padding: 9px 22px 9px 9px;
    margin-bottom: 10px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
  }
  .mobile-card-table thead .list-filter-row::-webkit-scrollbar { display: none; }
  .mobile-card-table thead .list-filter-row th {
    display: block; flex: 0 0 158px; height: auto; padding: 0; border: 0;
  }
  .mobile-card-table thead .list-filter-row th:empty { display: none; }
  .mobile-card-table thead .list-filter-row th .order-filter,
  .mobile-card-table thead .list-filter-row th input,
  .mobile-card-table thead .list-filter-row th select { width: 100%; }
  .mobile-card-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .mobile-card-table tbody tr.list-data-row {
    position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px; padding: 13px 14px 12px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px;
  }
  .mobile-card-table tbody tr:not(.list-data-row) { display: block; }
  .mobile-card-table tbody tr:not(.list-data-row) td { display: block; width: 100%; }
  .mobile-card-table tbody td:not(.card-title):not(.list-ops):not(.list-check-col) {
    display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: baseline;
    gap: 4px; min-width: 0; padding: 0; border: 0;
    color: #263b53; font-size: 13.5px; line-height: 1.5;
    text-align: left; text-indent: 0; white-space: normal;
  }
  .mobile-card-table tbody td::before {
    content: attr(data-label); color: #7b8a9e; font-size: 10.5px; font-weight: 500;
    line-height: 1.65; white-space: nowrap;
  }
  .mobile-card-table tbody td > .card-value {
    display: block; min-width: 0; overflow-wrap: anywhere;
  }
  .mobile-card-table tbody td.card-title {
    grid-column: 1 / -1; display: block; padding: 0 0 8px;
    border-bottom: 1px dashed #e7edf6; color: var(--navy);
    font-size: 15.5px; font-weight: 700; line-height: 1.35; text-indent: 0;
  }
  .mobile-card-table tbody td.card-title::before { display: none; }
  .mobile-card-table tbody td.card-title .staff-sub {
    margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.4;
  }
  .mobile-card-table tbody td.card-wide { grid-column: 1 / -1; }
  .mobile-card-table tbody td.list-check-col {
    position: absolute; top: 8px; right: 8px; display: flex; align-items: center;
    justify-content: center; width: 40px; height: 40px; padding: 0; text-indent: 0;
  }
  .mobile-card-table tbody td.list-check-col::before { display: none; }
  .mobile-card-table tbody td.list-check-col .list-checkbox { width: 40px; height: 40px; }
  .mobile-card-table tbody td.list-check-col input { width: 18px; height: 18px; margin: 0; }
  .mobile-card-table tbody td.list-check-col + td.card-title { padding-right: 42px; }
  .mobile-card-table tbody td.list-wrap {
    max-width: none; overflow: visible; white-space: normal; text-overflow: clip;
  }
  .mobile-card-table tbody td.list-muted { white-space: normal; }
  .mobile-card-table tbody td.list-ops,
  .mobile-card-table tbody td.card-actions {
    grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap;
    justify-content: flex-end; align-items: center; gap: 6px;
    padding: 9px 0 0; border-top: 1px dashed #e7edf6; text-indent: 0;
  }
  .mobile-card-table tbody td.list-ops::before,
  .mobile-card-table tbody td.card-actions::before { display: none; }
  .mobile-card-table tbody td.card-actions .btn {
    min-width: 0; min-height: 38px; padding: 0 14px; font-size: 12.5px;
  }
  .mobile-card-table tbody td.card-actions .btn:only-child { min-width: 88px; }
  .mobile-card-table tbody td.card-actions.staff-actions .btn {
    flex: 1 1 0; padding: 0 6px; font-size: 12px; white-space: nowrap;
  }
  .mobile-card-table tbody td:empty { display: none; }
}

@media (max-width: 340px) {
  .mobile-card-table tbody td.card-wide { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  .workspace-head { padding: 14px 14px 6px; }
  .workspace-title h1 { font-size: 19px; }
  .hero { padding: 22px 18px; border-radius: 18px; }
  .hero h2 { font-size: 23px; }
  .hero-actions .btn { flex: 1; }
  .section { margin-top: 22px; }
  .module-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 12px 13px; gap: 10px; }
  .module-arrow { display: none; }
  .module-icon { width: 38px; height: 38px; }
  .metric-grid { gap: 8px; }
  .metric { padding: 13px; }
  .metric strong { font-size: 16px; }
  .ops-actions .btn { flex: 1; }
  .path-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .path-row code { white-space: normal; overflow-wrap: anywhere; }
  .empty-state { margin-top: 28px; }
  .empty-actions .btn { flex: 1; }
  .toast { bottom: 78px; }
}

/* 生产任务 */
.task-home-section { margin-top: 18px; }
.task-home-list { border-radius: 14px; overflow: hidden; }
.task-home-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line, #e8ebf0);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.task-home-item:last-child { border-bottom: 0; }
.task-home-item > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.task-home-item strong,
.task-home-item span,
.task-home-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-home-item span,
.task-home-item small { color: var(--muted, #7b8494); font-size: 12px; }
.task-page .section-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.task-page .section-head h2 { margin: 0; }
.task-page .section-head p { margin: 4px 0 0; color: var(--muted, #7b8494); font-size: 13px; }
.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.task-toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.task-refresh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; min-height: 32px; padding: 0 13px; margin-left: auto;
  border: 1px solid #dbe5ef; border-radius: 999px;
  background: #fff; color: #53677d; font-size: 12px;
}
.task-refresh-btn:hover { border-color: #b7cee6; background: #f6fafd; color: #1f6fb2; }
.task-refresh-btn svg { width: 14px; height: 14px; }
.task-refresh-btn:disabled { opacity: .6; }
.task-list { display: grid; gap: 10px; }
.task-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line, #e8ebf0);
}
.task-card.urgent { border-left: 4px solid #e05656; }
.task-card-main { min-width: 0; flex: 1; }
.task-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-card-title strong { font-size: 15px; }
.task-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 7px; color: var(--muted, #7b8494); font-size: 12px; }
.task-due { color: #b26a00; }.task-card-note { margin: 7px 0 0; color: #4d5665; font-size: 13px; line-height: 1.55; }
.task-card-note { color: var(--muted, #7b8494); }
.task-card-assignees { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; color: #6b7d91; }
.task-card-assignees strong { color: #1f6fb2; font-weight: 600; }
.task-card-assignees.muted { color: var(--muted, #7b8494); }
.task-card-actions { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.task-action-help { flex-basis: 100%; text-align: right; color: #8b99aa; font-size: 10.5px; line-height: 1.4; }
.task-form { margin: 14px 0; padding: 16px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, #e8ebf0); }/* border-collapse 必须是 separate：collapse 模式下 Chromium 的 sticky 表头会失效，
   表头和筛选行就吸不住（其它列表也都是 separate） */
.task-order-table { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
/* 表头吸在顶部，筛选行吸在表头下面（top 必须等于表头行高） */
.task-order-table .list-head-row th { height: 38px; z-index: 3; }
.task-order-table .list-filter-row th { padding: 5px 6px; background: #fbfcfe; position: sticky; top: 38px; z-index: 2; }
.task-order-filter { width: 100%; min-height: 30px; height: 30px; padding: 0 7px; font-size: 11px; border-radius: 7px; background: #fff; }
/* 8 列：订单编号 / 客户名称 / 下发日期 / 发货日期 / 订单内容 / 当前状态 / 处理人 / 处理部门 */
.task-order-table th:nth-child(1) { width: 112px; }
.task-order-table th:nth-child(2) { width: 200px; }
.task-order-table th:nth-child(3) { width: 96px; }
.task-order-table th:nth-child(4) { width: 96px; }
.task-order-table th:nth-child(5) { width: 264px; }
.task-order-table th:nth-child(6) { width: 104px; }
.task-order-table th:nth-child(7) { width: 104px; }
.task-order-table th:nth-child(8) { width: 104px; }
/* 订单内容这列允许换行，不再省略号截断 */
.task-order-table .task-order-content { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
.task-order-content-line { display: block; }
.task-order-content-line + .task-order-content-line { margin-top: 2px; }
.task-order-table th {
  position: sticky; top: 0; z-index: 1;
  padding: 9px 10px; border-bottom: 1px solid var(--line);
  background: #f1f5fa; color: #33445b; font-weight: 600; text-align: left; white-space: nowrap;
}
.task-order-table td { padding: 10px; border-bottom: 1px solid #edf1f6; color: #34475d; vertical-align: middle; }
.task-order-table tbody tr { cursor: pointer; }
.task-order-table tbody tr:hover { background: #f5f9ff; }
.task-order-table tbody tr.hidden { display: none; }
.task-order-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.task-order-no { color: #113a66; font-size: 12.5px; }.task-order-detail-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.task-order-detail-row > .task-card { flex: 1 1 100%; min-width: 0; }


/* 上级任务（不是自己负责、但跟自己有关）：灰色只读卡片 */
.task-card-ancestor {
  background: #f5f7fa; border: 1px dashed #d9e2ec; opacity: .78; filter: saturate(.55);
  pointer-events: none;
}
.task-card-ancestor .task-card-title strong { color: #5d6b7b; }
.task-card-ancestor .task-card-meta { color: #8a97a6; }
.task-card-ancestor-content {
  margin-top: 6px; padding: 6px 9px; border-left: 3px solid #cdd8e4;
  background: #fbfcfe; color: #74828f; font-size: 12px; border-radius: 0 6px 6px 0;
  white-space: pre-wrap;
}
.task-order-detail-row.is-ancestor .task-child-relation { color: #9aa8b7; }

/* 父子任务：子任务缩进 + 左侧竖线 + 「↳ 谁 下推的下一步」 */
.task-order-detail-row.is-child { position: relative; }
.task-order-detail-row.is-child::before {
  content: ''; position: absolute; left: -13px; top: 2px; bottom: 12px;
  width: 2px; border-radius: 2px; background: #d7e3f0;
}
.task-child-relation {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 0 5px 2px; color: #55708c; font-size: 11.5px;
}
.task-child-relation::before { content: '↳'; color: #9db4cb; font-size: 13px; line-height: 1; }
.task-assign-head { display: flex; flex-direction: column; gap: 3px; padding: 0 14px 8px; }
.task-assignee-list, .task-note-list { display: flex; flex-direction: column; gap: 8px; }
.task-assignee-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px;
  align-items: start; padding: 9px 10px; border: 1px solid #e4ebf3; border-radius: 9px; background: #fbfdff;
}
.task-assignee-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.task-person-types { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.task-person-note {
  width: 100%; min-height: 32px; height: auto; padding: 6px 9px;
  line-height: 1.45; resize: vertical; field-sizing: content;
}
.task-card-assignee-note { margin-top: 8px; padding: 8px 10px; border-left: 3px solid #6aa2df; background: #f3f8ff; border-radius: 0 7px 7px 0; }
.task-card-assignee-note span { display: block; margin-bottom: 3px; color: #5a7594; font-size: 10.5px; }
.task-card-assignee-note p { margin: 0; color: #2d4d6f; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.task-withdraw-box {
  margin: 8px 0; padding: 8px 11px; border-left: 3px solid #d97706;
  background: #fff7ed; border-radius: 0 8px 8px 0;
}
.task-withdraw-box.is-rejected { border-left-color: #b42318; background: #fef3f2; }
.task-withdraw-box > span { display: block; color: #9a5b06; font-size: 12px; font-weight: 600; }
.task-withdraw-box > p { margin: 4px 0 0; color: #7a4a10; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.task-withdraw-actions { display: flex; gap: 8px; margin-top: 8px; }
.task-person-remove { margin-top: 1px; }
.task-note-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid #e4ebf3; border-radius: 9px; background: #fbfdff;
}
.task-assignee-picker { width: 100%; min-width: 0; }
.task-note-index {
  width: auto; color: #6b7d91; font-size: 12px; line-height: 1;
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.task-note-row .order-input {
  width: 100%; min-width: 0; min-height: 34px; height: 34px;
  margin: 0; padding: 0 10px; line-height: 34px;
}
.task-note-row .btn { min-height: 32px; height: 32px; padding: 0 10px; white-space: nowrap; }
.task-add-row { align-self: flex-start; margin-top: 6px; }

/* 「新增生产任务」一次加多条 + 草稿 */
.task-new-modal .shipping-modal-card { width: min(960px, 96vw); }
.task-new-rows { display: flex; flex-direction: column; gap: 12px; }
.task-new-row { border: 1px solid #e4ebf3; border-radius: 12px; padding: 10px 12px 12px; background: #fbfcfe; }
.task-new-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.task-new-row-index { color: #5a7594; font-size: 12px; font-weight: 600; }
.task-new-row-remove { border: 0; background: transparent; color: #98a4b3; font-size: 12px; cursor: pointer; padding: 0; }
.task-new-row-remove:hover { color: #c0504d; }
.task-new-grid {
  display: grid; gap: 10px 12px;
  grid-template-columns: 108px minmax(0, 1.3fr) minmax(0, 1fr) 76px minmax(0, 1fr) minmax(0, 1.3fr);
}
.task-new-grid .task-new-notes { grid-column: 1 / -1; }
.task-new-grid .order-input { width: 100%; min-width: 0; }
.task-new-grid textarea.order-input { min-height: 56px; height: auto; padding: 7px 9px; line-height: 1.5; resize: vertical; }
.task-new-notes .task-note-list { display: flex; flex-direction: column; gap: 6px; }
.task-new-notes .task-add-row { align-self: flex-start; margin-top: 2px; }
.task-new-add { margin-top: 10px; }
.task-new-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.task-new-draft-hint { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .task-new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* 运维台：整机编号对调 */
.unit-swap-modal .shipping-modal-card { width: min(760px, 96vw); }
.unit-swap-preview { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.unit-swap-pair { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 10px; }
.unit-swap-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid #e2eaf3; border-radius: 10px; background: #fbfdff; min-width: 0; }
.unit-swap-card strong { color: #173a60; font-size: 15px; }
.unit-swap-card span { color: #33414f; font-size: 12.5px; }
.unit-swap-card small { color: var(--muted); font-size: 11.5px; }
.unit-swap-arrow { text-align: center; color: #2f6fb3; font-size: 20px; }
.unit-swap-blockers { padding: 10px 12px; border-left: 3px solid #c0504d; background: #fdf2f1; border-radius: 0 8px 8px 0; color: #8a2b26; font-size: 12.5px; }
.unit-swap-blockers strong { display: block; margin-bottom: 4px; }
.unit-swap-blockers ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.unit-swap-ok { padding: 9px 12px; border-left: 3px solid #4c9a63; background: #eef8f1; border-radius: 0 8px 8px 0; color: #2f6b43; font-size: 12.5px; }
.unit-swap-notes { color: var(--muted); font-size: 12px; line-height: 1.6; }
.task-subhead { margin-bottom: 6px; color: #173a60; font-size: 12.5px; font-weight: 600; }.task-type-check { display: inline-flex; align-items: center; gap: 5px; color: #3e536d; font-size: 12.5px; cursor: pointer; }
.task-type-check input { accent-color: var(--blue); }
.task-attachment-block { padding: 10px 12px; border: 1px solid #e0e9f3; border-radius: 10px; background: #f8fbfe; }
.task-attachment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-attachment-head strong { color: #173a60; font-size: 12.5px; }
.task-attachment-head span { flex: 1; color: #7a8b9d; font-size: 11.5px; }
.task-attachment-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.task-attachment-item { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12px; }
.task-attachment-item a { color: #1f6fb2; text-decoration: none; overflow-wrap: anywhere; }
.task-attachment-item span { color: #8796a8; font-size: 11px; }
.task-card-notes { margin: 7px 0 0; padding-left: 20px; color: #4d5665; font-size: 12.5px; line-height: 1.65; }
.task-card-files {
  display: flex; flex-direction: column; gap: 6px; margin-top: 8px;
  font-size: 11.5px; color: #7a8b9d;
}
.task-order-status-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.task-file-group { min-width: 0; }
.task-file-group-title { margin-bottom: 2px; color: #5a7594; font-size: 10.5px; }
.task-file-group-list { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.task-card-files a { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: #1f6fb2; text-decoration: none; overflow-wrap: anywhere; }
.task-file-no { flex: 0 0 auto; color: #8492a5; font-variant-numeric: tabular-nums; }
.task-file-label { color: #22364f; font-weight: 600; }
.task-file-real { color: #1f6fb2; }
.task-file-uploader { color: #8492a5; font-size: 10.5px; }
.task-file-dup { margin-left: 4px; color: #b26a00; font-size: 10px; }
/* 任务卡上的项目信息、成果、审核意见、操作流水 */
.task-order-head { margin-bottom: 14px; padding: 14px 16px; }
.task-order-head-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.task-order-head-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-order-head-title strong { color: #113a66; font-size: 16px; }
.task-order-head-title span { color: #6b7d91; font-size: 12px; overflow-wrap: anywhere; }
.task-order-head-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 18px;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2e9f2;
}
.task-order-head-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-order-head-item span { color: #8492a5; font-size: 10.5px; }
.task-order-head-item strong { color: #22364f; font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.task-card-item { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 12.5px; }
.task-card-item span { flex: 0 0 auto; color: #8492a5; font-size: 10.5px; }
.task-card-item strong { color: #22364f; font-weight: 600; }
.task-card-origin { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 12.5px; }
.task-card-origin span { flex: 0 0 auto; color: #8492a5; font-size: 10.5px; }
.task-card-origin strong { color: #2f6fb3; font-weight: 600; }
.task-card-remark { margin-top: 7px; padding: 7px 10px; border-left: 3px solid #6aa2df; background: #f5f9ff; border-radius: 0 7px 7px 0; }
.task-card-remark.is-change { border-left-color: #d98e2b; background: #fff8ec; }
.task-card-remark span { display: block; margin-bottom: 2px; color: #5a7594; font-size: 10.5px; }
.task-card-remark p { margin: 0; color: #2d4d6f; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.task-project {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 14px;
  margin-top: 8px; padding: 8px 10px; background: #f7f9fc; border: 1px solid #e6edf6; border-radius: 8px;
}
.task-project-item { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.task-project-item span { flex: 0 0 auto; color: #8492a5; font-size: 10.5px; }
.task-project-item strong {
  color: #22364f; font-size: 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-result-box, .task-review-box {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: #f2f8f3; border-left: 3px solid #4aa96c;
}
.task-review-box.rejected { background: #fdf3f3; border-left-color: #d9534f; }
.task-result-box > span, .task-review-box > span { display: block; margin-bottom: 3px; color: #5a7594; font-size: 10.5px; }
.task-result-box p, .task-review-box p { margin: 0 0 4px; font-size: 12px; color: #2d4d6f; line-height: 1.55; white-space: pre-wrap; }
.task-result-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #8492a5; font-size: 10.5px; }
.task-events { margin: 8px 0 0; padding: 0 0 0 2px; list-style: none; border-top: 1px dashed #e2e9f2; padding-top: 7px; }
.task-events li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  padding: 3px 0; font-size: 11px; color: #5f7288;
}
.task-event-time { color: #9aa7b8; font-variant-numeric: tabular-nums; }
.task-events strong { color: #22364f; font-size: 11.5px; }
.task-event-operator { color: #7b8798; }
.task-events em { color: #6b7c90; font-style: normal; }
.task-panel {
  margin-top: 10px; padding: 10px 12px; border: 1px solid #d9e4f2; border-radius: 9px; background: #fbfcfe;
}
.task-panel > strong { display: block; margin-bottom: 7px; font-size: 12.5px; color: #22364f; }
.task-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.task-panel-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #7b8798; }
.task-panel-grid textarea, .task-panel-grid input {
  border: 1px solid #dce3ec; border-radius: 7px; padding: 6px 8px; font-size: 12px; color: #33445b;
  font-family: inherit; resize: vertical; background: #fff;
}.task-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
/* 变更审计 */
.audit-empty { padding: 14px 12px; color: #8492a5; font-size: 12px; }
.audit-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.notice-mismatch-card { border-color: #f0c36d; background: #fffaf0; }
.notice-mismatch-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 4px; font-size: 13px; color: #7a4b12; }
.notice-mismatch-note { font-size: 12px; color: #8a6a3b; line-height: 1.6; }
.notice-mismatch-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; }
.order-notice-mismatch-modal { width: min(980px, 94vw); }
.audit-row { border: 1px solid #e6edf6; border-radius: 9px; padding: 8px 10px; background: #fbfcfe; }
.audit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 12px; color: #5f7288; }
.audit-head strong { color: #22364f; font-size: 12.5px; }
.audit-who { color: #2f6feb; }
.audit-time { margin-left: auto; color: #9aa7b8; font-variant-numeric: tabular-nums; }
.audit-changes { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.audit-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 11.5px; }
.audit-field { min-width: 72px; color: #7b8798; }
.audit-before { color: #b4552d; text-decoration: line-through; }
.audit-arrow { color: #a6b0bf; }
.audit-after { color: #2f7d4f; font-weight: 600; }
@media (max-width: 720px) {
  .audit-time { margin-left: 0; }
  .audit-change { flex-direction: column; gap: 2px; }
}
.task-assign-head strong { font-size: 14px; color: #173a60; }
.task-assign-head span { font-size: 11.5px; color: #7a8b9d; }
.task-empty { padding: 26px 16px; border-radius: 14px; background: var(--surface, #fff); border: 1px dashed var(--line, #dfe4ea); color: var(--muted, #7b8494); text-align: center; }
@media (max-width: 640px) {
  .task-card { flex-direction: column; }
  .task-card-actions { justify-content: flex-start; }
}

/* 生产通知单二级目录 / 生产变更单 */
.notice-subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f7;
}
.notice-subnav-item {
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  background: transparent;
  color: #536071;
  font-size: 13px;
  cursor: pointer;
}
.notice-subnav-item.on {
  background: #fff;
  color: var(--navy, #0d2b4e);
  box-shadow: 0 1px 4px rgba(15, 35, 60, 0.08);
  font-weight: 700;
}
@media (min-width: 981px) {
  body .notice-subnav { display: none; }
}
.notice-change-card { margin-top: 14px; }
.notice-change-list { display: grid; gap: 8px; }
.notice-change-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #e8ebf0);
  border-radius: 10px;
  background: #fafbfd;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.notice-change-item span,
.notice-change-item small { color: var(--muted, #7b8494); font-size: 12px; }
.notice-change-rows { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.notice-change-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: #3d2b13 !important; font-size: 12px !important; line-height: 1.5; }
.notice-change-row b { color: #3d2b13; font-weight: 600; }
.notice-change-row em { color: #7b8494; font-style: normal; }
.notice-change-reason { color: #7a4a0d !important; font-size: 12px !important; line-height: 1.5; }
.change-order-page .notice-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.change-order-page .notice-head h2 { margin: 0; }
.change-order-page .notice-head p { margin: 4px 0 0; color: var(--muted, #7b8494); font-size: 13px; }
.change-order-page .notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }.change-items-table .notice-input { min-width: 80px; }/* ---------- 人员管理：Excel 列表 / 组织架构 / 档案表单 ---------- */
.staff-page .staff-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; }
.staff-view-switch {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px;
  border: 1px solid var(--line); border-radius: 10px; background: #f3f7fc;
}
.staff-view-switch .btn { min-height: 26px; padding: 0 11px; }
.staff-batchbar { position: sticky; top: 0; z-index: 6; box-shadow: 0 4px 12px -8px rgba(15, 40, 80, .4); }
.staff-batchbar .order-filter { height: 28px; font-size: 11.5px; }
.staff-batch-busy { color: var(--muted); font-size: 11.5px; }
.staff-chip-cell { line-height: 1.9; white-space: normal; }
.staff-chip-cell .chip { display: inline-flex; }
.staff-name-cell { max-width: 100%; }
.staff-name-cell strong,
.staff-name-cell .staff-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-name-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.staff-hint-warn { color: #9a5b00; background: #fff8ea; border-color: #f4dcae; }

/* 组织架构 */
.staff-org { display: flex; flex-direction: column; gap: 12px; }
.staff-org-section-title {
  display: flex; align-items: center; gap: 8px; margin: 8px 2px 0;
  font-size: 12.5px; color: var(--navy);
}
.staff-org-section-bar { width: 4px; height: 15px; border-radius: 2px; background: var(--blue); flex: none; }
.staff-org-section-title strong { font-size: 13px; letter-spacing: .2px; }
.staff-org-section-title span { color: var(--muted); font-size: 11.5px; }
.staff-org-section-title em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11.5px; }
.staff-org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 12px; }.staff-org-card { padding: 0; overflow: hidden; border-radius: 14px; }
.staff-org-card .order-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 15px; margin: 0; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fbff 0%, #f1f6fd 100%);
}
.staff-org-card .order-card-head h2 { font-size: 13.5px; margin: 0; }
.staff-org-card .order-card-head > span { color: var(--muted); font-size: 11px; }
.staff-org-flag {
  margin-left: auto; font-style: normal; font-size: 10.5px; color: #a66b08;
  background: #fff8ea; border: 1px solid #f4dcae; border-radius: 999px; padding: 1px 8px;
}
.staff-org-rows { display: flex; flex-direction: column; }
.staff-org-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 9px 14px 9px calc(14px + var(--staff-depth, 0) * 20px);
  border: 0; border-bottom: 1px solid #f0f4f9; background: #fff;
  font: inherit; color: var(--ink);
  transition: background .12s;
}
.staff-org-row:last-child { border-bottom: 0; }
.staff-org-row:hover { background: #f5faff; }
.staff-org-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.staff-org-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.staff-org-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.staff-org-name strong {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-org-phone { color: #8b98a9; font-size: 11px; white-space: nowrap; }
.staff-org-sub { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-org-tags { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.staff-org-tags .chip { margin: 0; }
@media (max-width: 1100px) {
  .staff-org-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .staff-org-row { padding: 9px 12px 9px calc(12px + var(--staff-depth, 0) * 14px); gap: 8px; }
  .staff-org-tags { display: none; }
  .staff-org-card .order-card-head { padding: 9px 12px; }
  .staff-org-avatar { width: 30px; height: 30px; }
}

/* 档案表单（和通知单同版式） */
.staff-form { max-width: 1060px; margin: 0 auto; }
.staff-form .notice-paper { padding-bottom: 20px; }
.staff-subline-name { color: var(--ink); font-size: 13.5px; }
.staff-meta-table th { width: 84px; }
.staff-meta-table td { height: 38px; }
.staff-meta-table .notice-input { font-size: 12.5px; }
.staff-meta-table .notice-input[disabled] { color: #7b8a9e; }
.staff-meta-table .notice-select, .staff-meta-table select.notice-input {
  appearance: auto; border: 0; background: transparent; cursor: pointer;
}
/* 表格里的提示不套成一块大卡片，避免把整行撑成一个空盒子 */
.staff-meta-table .staff-hint {
  margin: 6px 0 0; padding: 0; border: 0; background: transparent; border-radius: 0;
  font-size: 11px; line-height: 1.6;
}
.staff-readonly-cell {
  display: flex; align-items: center; gap: 8px; min-height: 28px;
  color: #8b98a9; font-size: 12px;
}
.staff-readonly-cell .btn { margin-left: auto; }
.staff-nav-picker, .staff-permission-picker {
  padding: 12px 14px; border: 1px solid #e3e9f1; border-radius: 10px; background: #fbfcfe;
}
.staff-permission-picker { margin-top: 10px; }
.staff-nav-picker .order-card-head, .staff-permission-picker .order-card-head {
  margin: 0 0 9px; padding: 0; border: 0; background: transparent;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
}
.staff-nav-picker .order-card-head h2, .staff-permission-picker .order-card-head h2 { margin: 0; font-size: 13px; }
.staff-nav-picker .order-card-head span, .staff-permission-picker .order-card-head span { color: var(--muted); font-size: 11px; }
.staff-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; }
.staff-nav-picker .staff-hint, .staff-permission-picker .staff-hint {
  margin: 9px 0 0; padding: 0; border: 0; background: transparent;
}
.staff-form .staff-product-box { margin-top: 10px; background: #fbfcfe; border-radius: 10px; }
/* 职位候选行留出两行高度：切厂区时 2 个/4 个选项不会把整张表顶得跳一下 */
.staff-duty-options { min-height: 44px; align-content: flex-start; }
@media (max-width: 760px) {
  .staff-meta-table th { width: 68px; font-size: 11px; }
  .staff-nav-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  /* 手机端把档案表格拆成“标签 → 值”竖排，避免三列输入框挤成一条线 */
  .staff-form .notice-paper { padding: 14px 12px 18px; }
  .staff-meta-table { min-width: 0; display: block; }
  .staff-meta-table tbody { display: block; }
  .staff-meta-table tr { display: block; padding: 4px 0 2px; border-bottom: 1px solid #eef2f7; }
  .staff-meta-table tr:last-child { border-bottom: 0; }
  .staff-meta-table th,
  .staff-meta-table td { display: block; width: auto; height: auto; border: 0; padding: 0; }
  .staff-meta-table th { background: transparent; text-align: left; color: #7b8a9e; font-size: 10.5px; font-weight: 500; padding-top: 7px; }
  .staff-meta-table td { padding: 2px 0 9px; }
  .staff-meta-table .notice-input,
  .staff-meta-table select.notice-input { min-height: 34px; }
  .staff-duty-options { min-height: 0; }
}

/* 任务卡片视图的筛选条（非分解人） */* 表格筛选行的 .list-filter-input/select 是 width:100%，放进筛选条要收回固定宽度 */
.task-card-filterbar .list-filter-input,
.task-card-filterbar .list-filter-select { width: auto; flex: 0 0 auto; }@media (max-width: 760px) {
  .task-card-filterbar-left { flex-direction: column; align-items: stretch; }
  .task-card-keyword,
  .task-card-filterbar .list-filter-select { width: 100%; }
}


/* ---------- 运维台：骨架屏 + 刷新提示 ---------- */
.ops-refresh-note { margin-left: 4px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ops-refresh-note.loading { color: var(--blue); }
.ops-skeleton-ok {
  display: flex; align-items: center; gap: 8px;
  background: #f7f9fc !important; border-color: var(--line) !important; color: var(--muted) !important;
}
.ops-skeleton-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  animation: ops-skeleton-pulse 1.1s ease-in-out infinite;
}
.ops-skeleton-block {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #eef2f7 25%, #e2e9f2 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: ops-skeleton-shimmer 1.4s ease infinite;
  margin: 6px 0;
}
.ops-skeleton-block.h-22 { height: 22px; }
.ops-skeleton-block.w-60 { width: 60%; }
.ops-skeleton-block.w-70 { width: 70%; }
.ops-skeleton-block.w-80 { width: 80%; }
.ops-skeleton-block.w-90 { width: 90%; }
.ops-skeleton-block.w-100 { width: 100%; }
.ops-skeleton-block.w-120 { width: 120px; }
.ops-skeleton-block.w-140 { width: 140px; }
.ops-skeleton-block.w-full { width: 100%; }
.ops-skeleton-card { pointer-events: none; padding: 15px 16px; }
.ops-skeleton-kpi { pointer-events: none; padding: 14px 15px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
@keyframes ops-skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@keyframes ops-skeleton-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}


/* ---------- 生产通知单：打印预览弹窗 ---------- */
.notice-print-modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column;
  background: rgba(17, 28, 45, .55);
}
.notice-print-modal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 40, 80, .08);
}
.notice-print-modal-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.notice-print-modal-title strong { font-size: 14px; color: var(--ink); }
.notice-print-modal-title span { color: var(--muted); font-size: 11.5px; }
.notice-print-modal-actions { display: flex; gap: 8px; flex: none; }
.notice-print-modal-body { flex: 1; overflow: auto; padding: 18px 12px 32px; }
.notice-print-paper {
  width: 210mm; min-height: 297mm; margin: 0 auto; padding: 8mm;
  background: #fff; box-shadow: 0 12px 32px rgba(8, 18, 36, .38);
}
/* 打印预览直接用 Word 转出来的 PDF：纸张不再加内边距，PDF 自己带版心 */
.notice-print-paper-pdf { padding: 0; overflow: hidden; }
.notice-print-pdf { display: block; width: 210mm; height: 297mm; border: 0; background: #fff; }
.notice-print-pdf-state { padding: 60px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.notice-print-fallback-note {
  margin: 0 0 8px; padding: 10px 12px; border-radius: 8px;
  background: #fff7e6; border: 1px solid #f3d19e; color: #8a5a00; font-size: 12px;
  display: flex; flex-direction: column; gap: 6px; line-height: 1.6;
}
.notice-print-fallback-detail { color: #9a6b00; opacity: .85; word-break: break-word; }
.notice-print-fallback-advice {
  color: #7a4b00; background: #fff1d6; border-radius: 6px; padding: 6px 8px; line-height: 1.6;
}
.notice-print-fallback-actions { color: #8a5a00; }
.notice-print-fallback-link { color: #2563eb; text-decoration: underline; }
/* 屏幕上的打印稿默认是隐藏的，预览里要显示出来 */
.notice-print-paper .notice-print-sheet { display: block; }
@media (max-width: 900px) {
  .notice-print-modal-bar { flex-wrap: wrap; }
  .notice-print-modal-body { padding: 10px 6px 24px; }
  /* 手机不缩窄 A4，直接横向滚动，保证一页的版式不被压变形 */
  .notice-print-paper { width: 210mm; min-height: 0; padding: 6mm; }
}
@media print {
  .notice-print-modal { display: none !important; }
}
/* ---------- 提交成果面板（图号 + 多条完成内容 + 附件） ---------- */
.task-panel.tp-submit { display: flex; flex-direction: column; gap: 12px; }
.tp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tp-head strong { font-size: 13.5px; color: var(--navy); }
.tp-head span { color: var(--muted); font-size: 11.5px; }
.tp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tp-field > span { font-size: 11.5px; color: var(--muted); }
.tp-field input,
.tp-field select {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; font-size: 12.5px; color: var(--ink); min-width: 0;
}
.tp-field input:focus,
.tp-field select:focus { outline: 2px solid rgba(37, 99, 235, .18); border-color: #9dbcf7; }.tp-items {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: #fbfcfe; display: flex; flex-direction: column; gap: 8px;
}
.tp-items-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.tp-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.tp-item-no {
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.tp-item-text {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; font-size: 12.5px; min-width: 0;
}
.tp-item-text:focus { outline: 2px solid rgba(37, 99, 235, .18); border-color: #9dbcf7; }
.tp-loose { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tp-item-files { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tp-file-item {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 2px 7px; border-radius: 6px; background: #eef2f8; font-size: 11.5px;
}
.tp-file-item a { color: #1f6fb2; text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: baseline; gap: 4px; }
.tp-file-item .tp-file-no { color: #8492a5; font-variant-numeric: tabular-nums; }
.tp-file-item .tp-file-label { color: #22364f; font-weight: 600; }
.tp-file-item .tp-file-real { color: #1f6fb2; }
.tp-file-item .tp-file-size { color: #8796a8; font-size: 10.5px; }
.tp-file-item .tp-file-dup { color: #b26a00; font-size: 10px; }
.tp-file-item .btn { min-height: 22px; padding: 0 5px; font-size: 10.5px; }.tp-complete {
  border-top: 1px dashed var(--line); padding-top: 12px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
}
.tp-complete-title { font-size: 12px; color: var(--muted); }
.tp-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.tp-push {
  width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: #f3f7ff; border: 1px solid #dbe6fb;
}.tp-push-add { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tp-push-add select { flex: 1; min-width: 130px; }/* 下推负责人：一行一个人，每人单独任务类型 + 备注 */
.tp-push { display: flex; flex-direction: column; gap: 8px; }
.tp-push-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tp-push-title { font-size: 13px; font-weight: 600; color: #173a60; }
.tp-push-hint { font-size: 11.5px; color: var(--muted); }
.tp-push-rows { display: flex; flex-direction: column; gap: 8px; }
.tp-push-add-btn { align-self: flex-start; }
.tp-push-row { background: #fff; }
.tp-push-picker { width: 100%; min-width: 0; }
/* 全站统一的「可搜索选择」：人员、项目、订单、整机都走这一套 */
.search-picker { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.search-picker-input { width: 100%; }
.search-picker-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  max-height: 280px; overflow-y: auto; padding: 4px;
  background: #fff; border: 1px solid #dbe4ef; border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 39, 68, .18);
}
.search-picker-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 8px 10px; border-radius: 7px; text-align: left; cursor: pointer;
}
.search-picker-option:hover, .search-picker-option:focus { background: #f1f6ff; outline: none; }
.search-picker-option strong { font-size: 12.5px; color: var(--navy); font-weight: 600; }
.search-picker-option span { font-size: 10.5px; color: var(--muted); }
.search-picker-empty { padding: 10px 12px; font-size: 11.5px; color: var(--muted); }
.search-picker-hint { font-size: 10.5px; color: var(--muted); }
.search-picker-hint.is-picked { color: #1f6fb2; font-weight: 600; }
.tp-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 附件上传弹框：别都挤在一起 ---------- */
.attachment-dialog { width: min(560px, 92vw); }
.attachment-dialog-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; }
.attachment-dialog-body .order-field { display: flex; flex-direction: column; gap: 6px; }
.attachment-dialog-body .order-field > span { font-size: 12px; color: var(--muted); }
.attachment-dialog-file {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  position: relative;
  border: 1px dashed #cfd8e6; border-radius: 10px; background: #fafbfd;
}
.attachment-file-input {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none;
}
.attachment-dialog-file .attachment-file-name {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.attachment-dialog-body .order-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.attachment-dialog-body .notice-error { font-size: 12px; }

/* 订单行的厂区列 + 改厂区弹窗 */
.list-site-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.list-site-edit { padding: 2px 6px; font-size: 11.5px; }
.list-product-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-product-attr { display: flex; align-items: center; gap: 6px; margin-top: 3px; white-space: nowrap; }
.list-product-attr .chip { font-size: 10.5px; padding: 1px 5px; }
.list-category-edit { padding: 1px 5px; font-size: 11px; }
.order-site-dialog { width: min(420px, 92vw); }
.order-site-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.order-site-body p { margin: 0; }

@media (max-width: 900px) {
  .tp-fields { grid-template-columns: minmax(0, 1fr); }
  .tp-push { grid-template-columns: minmax(0, 1fr); }
  .tp-item { grid-template-columns: 22px minmax(0, 1fr); }
  .tp-item .btn { grid-column: 2; justify-self: start; }
}

/* 发货选货面板 */
@media (max-width: 900px) {
  .shipping-items-row { grid-template-columns: 20px minmax(0, 1fr); }
  .shipping-items-row .shipping-items-meta,
  .shipping-items-row .shipping-items-number,
  .shipping-items-row .shipping-items-qty { grid-column: 2; }
}
/* 发货申请单：重构版式 */
.shipping-page { display: flex; flex-direction: column; gap: 4px; }
.ship-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 8px; }
.ship-kpi {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.ship-kpi span { font-size: 11.5px; color: var(--muted); }
.ship-kpi strong { font-size: 20px; color: var(--navy); line-height: 1.2; }
.ship-kpi:hover { border-color: #c9d6ea; }
.ship-kpi.is-active { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .14); }
.ship-kpi.is-warn strong { color: #b45309; }
.ship-kpi.is-info strong { color: #1d4ed8; }
.ship-kpi.is-ok strong { color: #15803d; }
.ship-toolbar { gap: 10px; }
.ship-search { position: relative; display: flex; align-items: center; }
.ship-search-icon {
  position: absolute; left: 9px; width: 15px; height: 15px; color: var(--muted); pointer-events: none;
  display: block; flex: none;
}
.ship-search-icon svg { width: 15px; height: 15px; display: block; }
.ship-search .list-filter-input { padding-left: 30px; width: 260px; }
.ship-table .list-ops { white-space: nowrap; }
.ship-table .list-ops .btn + .btn { margin-left: 6px; }
.ship-item-summary { color: var(--ink); font-size: 12px; }

/* 弹窗 */
.shipping-modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 22, 40, .45); padding: 24px;
}
.shipping-modal-card {
  width: min(720px, 96vw); max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(9, 20, 38, .35); overflow: hidden;
}
.shipping-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--line);
}
.shipping-modal-head h2 { margin: 0; font-size: 16px; color: var(--navy); }
.shipping-modal-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.shipping-modal-body { padding: 16px 20px; overflow: auto; flex: 1; }
.shipping-modal-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fbfcfe; }
.ship-pick-body { display: flex; flex-direction: column; gap: 14px; }
.ship-pick-search { width: 100%; }
.ship-pick-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ship-pick-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ship-pick-field > span { font-size: 12px; color: var(--muted); }
.ship-pick-field-wide { grid-column: 1 / -1; }
.ship-pick-hint { font-size: 12px; color: var(--muted); }
.ship-pick-group { display: flex; flex-direction: column; gap: 6px; }
.ship-pick-group-title { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ship-pick {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ship-pick:hover { border-color: #c9d6ea; background: #f8fbff; }
.ship-pick.is-on { border-color: #2563eb; background: #f2f7ff; }
.ship-pick-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ship-pick-main strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.ship-pick-main small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-pick-side { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ship-pick-qty { width: 64px; height: 30px; }
.ship-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ship-pick-count { margin-right: auto; font-size: 12px; color: var(--muted); }@media (max-width: 900px) {
  .ship-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ship-pick-meta { grid-template-columns: minmax(0, 1fr); }
  .ship-search .list-filter-input { width: 100%; }
}

/* 模板列宽：可拖动的可视化条 */
.tpl-widths { display: flex; flex-direction: column; gap: 8px; }
.tpl-widths-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-widths-head strong { font-size: 12.5px; color: var(--navy); }
.tpl-wbar { display: flex; align-items: stretch; height: 46px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f6f9ff; user-select: none; }
.tpl-wseg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; border-right: 1px solid #dbe4f3; background: #fff; font-size: 11px; color: var(--muted); overflow: hidden; }
.tpl-wseg b { font-size: 11.5px; color: var(--navy); font-weight: 600; }
.tpl-wseg em { font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.tpl-wdelim { flex: none; width: 7px; margin: 0 -3px; cursor: col-resize; background: linear-gradient(90deg, transparent 2px, #9dbcf7 2px, #9dbcf7 5px, transparent 5px); z-index: 2; }
.tpl-wdelim:hover { background: linear-gradient(90deg, transparent 2px, #2563eb 2px, #2563eb 5px, transparent 5px); }
body.tpl-resizing, body.tpl-resizing * { cursor: col-resize !important; }

/* 打印稿已生成：不内嵌 PDF，给按钮打开 */
.notice-print-pdf-ready { padding: 60px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.notice-print-pdf-ready strong { font-size: 15px; color: var(--navy); }
.notice-print-pdf-ready p { margin: 0; color: var(--muted); font-size: 12.5px; max-width: 460px; line-height: 1.6; }
.notice-print-pdf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.notice-print-pdf-actions .btn { text-decoration: none; }

.notice-print-pdf-pages { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 12px 0; }
.notice-print-pdf-page { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 4px 14px rgba(8,18,36,.12); }
.notice-print-pdf-error { padding: 24px; color: #b45309; font-size: 12.5px; text-align: center; }
.notice-print-pdf-ready { padding: 10px 24px 40px; }

/* ===== 发货单（申请 + 回复 同一张纸） ===== */
.ship-kpi-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ship-table .list-data-row { cursor: pointer; }

.ship-detail-page { display: flex; flex-direction: column; gap: 10px; }
.ship-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.ship-detail-main { min-width: 0; }
.ship-detail-actions { flex-wrap: wrap; gap: 8px; }

.shipping-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 26px 18px; box-shadow: 0 1px 2px rgba(16, 32, 56, .05);
}
.shipping-sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.shipping-sheet-head h1 {
  margin: 0; font-size: 22px; letter-spacing: 3px; color: var(--ink); font-weight: 700;
  font-family: '黑体', 'SimHei', 'Microsoft YaHei', sans-serif;
}
.shipping-sheet-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.shipping-sheet-date input { width: 158px; height: 30px; }

.ship-form-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ship-form-table th,
.ship-form-table td { border: 1px solid #333; padding: 3px 6px; vertical-align: middle; }
.ship-form-table th { width: 132px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.ship-form-table th:nth-of-type(3) { width: 96px; }
.ship-form-value { padding: 2px 4px; }
.ship-cell-input {
  width: 100%; height: 30px; font-size: 13px; padding: 2px 5px;
  border: 1px dashed transparent; background: transparent; box-shadow: none;
}
.ship-cell-input:hover:not(:disabled), .ship-cell-input:focus { border-color: #9db4d8; background: #f8fbff; }
.ship-cell-input:disabled { color: var(--ink); -webkit-text-fill-color: var(--ink); cursor: default; opacity: 1; }
.ship-cell-area { resize: vertical; min-height: 46px; line-height: 1.6; height: auto; }
.ship-add-row { text-align: left; }
.ship-reply-divider td { background: #f4f7fb; border-top: 2px solid #333; }
.ship-reply-title { font-size: 12px; color: var(--muted); font-weight: 600; }
.ship-sign-cell { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }.ship-sign-date { color: var(--muted); font-size: 11.5px; }
.shipping-sheet-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; font-size: 13px; }
.shipping-sheet-tip { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }

.ship-detail-side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 10px; }
.ship-detail-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ship-detail-card-title { font-size: 12px; color: var(--muted); font-weight: 600; }
.ship-detail-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.ship-detail-line span { color: var(--muted); }
.ship-detail-line b { font-weight: 600; color: var(--ink); text-align: right; }.ship-detail-loading { padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; }

.ship-attach-list { display: flex; flex-direction: column; gap: 6px; }
.ship-attach-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ship-attach-row a { color: #1d4ed8; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-attach-row a:hover { text-decoration: underline; }
.ship-upload-btn { align-self: flex-start; cursor: pointer; }

.ship-plan-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 150px; gap: 8px; align-items: center; }
.ship-plan-role { font-size: 12.5px; color: var(--ink); font-weight: 600; }

.ship-print-body { min-height: 200px; }
.ship-pdf-pages { display: flex; flex-direction: column; gap: 10px; align-items: center; background: #eef2f7; padding: 10px; border-radius: 8px; }
.ship-pdf-pages canvas { max-width: 100%; box-shadow: 0 6px 18px rgba(9, 20, 38, .18); background: #fff; }

@media (max-width: 1400px) {
  .ship-kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .ship-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .ship-detail-side { position: static; }
}
@media (max-width: 900px) {
  .ship-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shipping-sheet { padding: 14px; }
  .ship-form-table th { width: 92px; font-size: 12px; }
  .ship-plan-row { grid-template-columns: 78px minmax(0, 1fr); }
  .shipping-sheet-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* 主要发运货物：文本框 + 「从订单选货」 */
.ship-goods-cell { display: flex; align-items: flex-start; gap: 8px; }
.ship-goods-cell .ship-cell-area { flex: 1; min-height: 56px; }
.ship-goods-pick { flex: none; white-space: nowrap; }
@media (max-width: 760px) {
  .ship-goods-cell { flex-direction: column; align-items: stretch; }
}

/* 接货联系人行：电话格里的删除按钮 */
.ship-cell-actions { display: flex; align-items: center; gap: 4px; }
.ship-cell-actions .ship-cell-input { flex: 1; min-width: 0; }
.ship-row-del {
  flex: none; width: 22px; height: 22px; line-height: 1; border-radius: 6px;
  color: #b91c1c; border: 1px solid transparent; background: transparent; font-size: 15px;
}
.ship-row-del:hover { background: #fee2e2; border-color: #fecaca; }

/* 财务签字：签名 + 日期同一行；平时不显示 yyyy/mm/日 占位，点进去才变日期控件 */
.ship-sign-cell { flex-direction: row; align-items: center; gap: 6px; }
.ship-sign-cell .ship-sign-date-input { width: 118px; flex: none; height: 26px; font-size: 12px; color: var(--muted); }
.shipping-sheet .ship-sign-cell [data-ship-field="financeSign"] { border-bottom: 1px dashed #b8c6dc; border-radius: 0; }
.shipping-sheet .ship-sign-cell [data-ship-field="financeSign"]:focus { border-bottom-style: solid; border-bottom-color: #2563eb; }

/* 新建发货单：订单搜索 + 日期输入 */
.ship-order-results {
  max-height: 224px; overflow: auto; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; display: flex; flex-direction: column;
}
.ship-order-item {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; width: 100%;
  padding: 8px 10px; border: 0; border-bottom: 1px solid #eef2f8; background: #fff; cursor: pointer;
  text-align: left;
}
.ship-order-item:last-child { border-bottom: 0; }
.ship-order-item:hover { background: #f2f7ff; }
.ship-order-item strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.ship-order-item span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ship-order-hint { padding: 10px 12px; font-size: 12px; color: var(--muted); }
.ship-order-picked {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 10px; font-size: 12.5px; color: #1d4ed8;
}
.ship-date-row { display: flex; align-items: center; gap: 6px; }
.ship-date-row .ship-date-text { flex: 1; min-width: 0; }
.ship-date-pick {
  flex: none; width: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  color: transparent; overflow: hidden;
}
.ship-date-pick::-webkit-datetime-edit { display: none; }
.ship-date-pick::-webkit-inner-spin-button { display: none; }
.ship-date-pick::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; }

/* ---------- 产品库（2026-11 重建）：满屏型号库 ---------- */
body.list-view .workspace-body:has(.catalog-page) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 4px 12px 10px;
}
body.catalog-view .workspace-head { display: none; }
.catalog-page { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; max-width: none; margin: 0; }
.catalog-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }

.catalog-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 2px 2px 0; }
.catalog-headline { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.catalog-headline h1 { margin: 0; font-size: 20px; line-height: 1.2; color: var(--navy); letter-spacing: -.2px; }
.catalog-total { font-size: 12px; color: var(--muted); white-space: nowrap; }
.catalog-search { flex: 1; min-width: 260px; max-width: 520px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.catalog-search:focus-within { border-color: #9db8dc; box-shadow: 0 0 0 3px rgba(47, 111, 235, .08); }
.catalog-search-icon { width: 15px; height: 15px; color: var(--muted); flex: none; }
.catalog-search-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 13px; color: var(--ink); }
.catalog-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.catalog-tools .order-filter, .catalog-tools .btn { height: 32px; min-height: 32px; }
.catalog-filter-toggle { display: none; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; color: var(--muted); }
.catalog-filter-toggle.on { border-color: #9db8dc; color: var(--blue); background: var(--blue-soft); }

.catalog-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 12px; }

/* 左侧筛选 */
.catalog-filters { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px 12px; overflow-y: auto; }
.catalog-filter-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 8px; }
.catalog-filter-head strong { font-size: 13px; color: var(--navy); }
.catalog-filter-reset { font-size: 11.5px; color: var(--muted); padding: 2px 4px; }
.catalog-filter-reset:hover { color: var(--blue); }
.catalog-filter-section { padding: 4px 0 8px; border-top: 1px dashed #edf1f7; }
.catalog-filter-section:first-of-type { border-top: 0; }
.catalog-filter-title { padding: 6px 8px 4px; font-size: 11px; font-weight: 600; color: #8a94a6; letter-spacing: .04em; }
.catalog-filter-body { display: flex; flex-direction: column; gap: 1px; }
.catalog-filter-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 6px 8px; border-radius: 7px; font-size: 12.5px; color: #344054; text-align: left;
}
.catalog-filter-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-filter-item b { font-weight: 500; color: #98a2b3; font-size: 11.5px; flex: none; }
.catalog-filter-item:hover { background: #f5f8fc; }
.catalog-filter-item.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.catalog-filter-item.on b { color: var(--blue); }

/* 右侧表格 */
.catalog-content { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.catalog-table-wrap { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.catalog-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px; }
.catalog-table thead th {
  position: sticky; top: 0; z-index: 2; padding: 9px 10px; text-align: left; font-weight: 600; color: #667085;
  background: #f7f9fc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.catalog-table tbody td { padding: 8px 10px; border-bottom: 1px solid #f0f3f8; color: #344054; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-table tbody tr.catalog-tr { cursor: pointer; }
.catalog-table tbody tr.catalog-tr:hover td { background: #f8fbff; }
.catalog-table tbody tr.catalog-tr.selected td { background: #eef5ff; }
.catalog-table .c-model strong { color: var(--navy); font-weight: 600; font-size: 12.5px; }
.catalog-table .c-name { color: #475467; }
.catalog-table .c-name .c-sub { display: block; color: #98a2b3; font-size: 11px; }
.catalog-table .c-cap { font-variant-numeric: tabular-nums; }
.catalog-table .c-codes { color: #667085; font-variant-numeric: tabular-nums; }
.catalog-table .c-check { width: 36px; }
.catalog-table .c-check input { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }
.catalog-table .c-actions { width: 150px; text-align: right; }
.catalog-table th.c-actions { text-align: right; }
.catalog-table td.c-actions { white-space: nowrap; }
.catalog-row-btn { padding: 3px 6px; border-radius: 6px; font-size: 11.5px; color: #667085; }
.catalog-row-btn:hover { background: #eef2f7; color: var(--navy); }
.catalog-row-btn.danger:hover { background: #fff1f0; color: var(--bad); }

/* 状态标签 */
.catalog-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; background: #f2f4f7; color: #667085; white-space: nowrap; }
.catalog-chip.ok { background: #eaf7ef; color: #0c7a46; }
.catalog-chip.pending { background: #fff8e8; color: #8a6411; }
.catalog-chip.warn { background: #eef2f7; color: #475467; }
.catalog-chip.muted { background: #f2f4f7; color: #98a2b3; }

/* 分页 */
.catalog-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); background: #fbfcfe; flex-wrap: wrap; }
.catalog-pager-text { font-size: 12px; color: var(--muted); }
.catalog-pager-tools { display: flex; align-items: center; gap: 6px; }
.catalog-pager-tools .order-filter, .catalog-pager-tools .btn { height: 30px; min-height: 30px; font-size: 12px; }

/* 空状态 */
.catalog-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--muted); }
.catalog-empty h2 { margin: 0; font-size: 16px; color: var(--navy); }
.catalog-empty p { margin: 0; font-size: 12.5px; }

/* 批量操作条 */
.catalog-page .catalog-batchbar { margin: 0; border-radius: 0; border-width: 0 0 1px; }

/* 详情抽屉 */
.catalog-drawer-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(9, 26, 46, .28); display: flex; justify-content: flex-end; }
.catalog-drawer { width: min(420px, 100%); height: 100%; background: #fff; box-shadow: -18px 0 48px -24px rgba(9, 26, 46, .45); display: flex; flex-direction: column; }
.catalog-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #f8fafd; }
.catalog-drawer-eyebrow { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.catalog-drawer-head h2 { margin: 2px 0 0; font-size: 18px; color: var(--navy); word-break: break-all; }
.catalog-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.catalog-drawer-grid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 12.5px; }
.catalog-drawer-grid dt { color: #8a94a6; }
.catalog-drawer-grid dd { margin: 0; color: #344054; word-break: break-word; }
.catalog-drawer-label { font-size: 11px; color: #8a94a6; margin-bottom: 4px; }
.catalog-drawer-codes { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #edf1f7; }
.catalog-drawer-codes p { margin: 0; font-size: 12px; line-height: 1.7; color: #475467; word-break: break-all; }
.catalog-drawer-foot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfe; }
.catalog-drawer-foot .btn { flex: 1; }

/* 表单里的分类区 */
.catalog-extra { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.catalog-extra summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--navy); padding: 4px 0 8px; }

/* 移动端卡片 */
.catalog-cards { display: none; }
@media (max-width: 980px) {
  .catalog-body { grid-template-columns: minmax(0, 1fr); }
  .catalog-filters { display: none; }
  .catalog-filters.open {
    display: block; position: fixed; inset: 64px 10px 10px; z-index: 80;
    box-shadow: 0 18px 48px -20px rgba(9, 26, 46, .45);
  }
  .catalog-filter-toggle { display: inline-flex; align-items: center; }
  .catalog-search { order: 3; max-width: none; flex-basis: 100%; }
  .catalog-tools { order: 4; width: 100%; margin-left: 0; }
  .catalog-table-wrap { display: none; }
  .catalog-cards { display: flex; flex-direction: column; overflow-y: auto; }
  .catalog-card { padding: 11px 14px; border-bottom: 1px solid #f0f3f8; }
  .catalog-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .catalog-card-head strong { font-size: 13px; color: var(--navy); }
  .catalog-card-sub { margin-top: 3px; font-size: 11.5px; color: #667085; }
  .catalog-card-meta { margin-top: 4px; font-size: 11px; color: #98a2b3; }
  .catalog-pager { padding: 8px 10px; }
}


.catalog-table thead th:nth-child(1) { width: 36px; }
.catalog-table thead th:nth-child(2) { width: 150px; }
.catalog-table thead th:nth-child(3) { width: 170px; }
.catalog-table thead th:nth-child(4) { width: 80px; }
.catalog-table thead th:nth-child(5) { width: 88px; }
.catalog-table thead th:nth-child(6) { width: 92px; }
.catalog-table thead th:nth-child(7) { width: 60px; }
.catalog-table thead th:nth-child(8) { width: 64px; }
.catalog-table thead th:nth-child(9) { width: 150px; }
.catalog-table.aux thead th:nth-child(2) { width: auto; }
.catalog-table.aux thead th:nth-child(3) { width: 200px; }
.catalog-table.aux thead th:nth-child(4) { width: 80px; }
.catalog-table.aux thead th:nth-child(5) { width: 108px; }

body.catalog-view .shell { height: 100dvh; min-height: 0; overflow: hidden; }
body.catalog-view .workspace { min-height: 0; height: 100dvh; }

.catalog-body-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.catalog-pager .btn, .catalog-pager .order-filter { white-space: nowrap; flex: none; }
@media (max-width: 980px) {
  .catalog-cards { flex: 1; min-height: 0; }
  .catalog-pager { gap: 6px; }
  .catalog-pager-text { flex-basis: 100%; }
}

.catalog-body.single { grid-template-columns: minmax(0, 1fr); }
.catalog-table.aux thead th:nth-child(2) { width: auto; }
.catalog-table.aux thead th:nth-child(3) { width: 200px; }
.catalog-table.aux thead th:nth-child(4) { width: 80px; }
.catalog-table.aux thead th:nth-child(5) { width: 100px; }

.catalog-picker-series { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 8px; }
.catalog-picker-chip { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; color: #475467; }
.catalog-picker-chip.on { background: var(--blue-soft); border-color: #bcd2f7; color: var(--blue); font-weight: 600; }
.catalog-picker-meta { margin-top: 2px; font-size: 11px; color: #98a2b3; }

.catalog-filter-head-tools { display: flex; align-items: center; gap: 6px; }
.catalog-filter-close { display: none; font-size: 11.5px; color: var(--blue); padding: 2px 4px; }
@media (max-width: 980px) {
  .catalog-filter-close { display: inline-flex; }
}

.catalog-filter-hint p { margin: 0 8px; font-size: 11.5px; line-height: 1.6; color: #98a2b3; }

.catalog-notice {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 14px 8px; padding: 9px 12px; border: 1px solid #f2e2b5;
  background: #fffbf0; border-radius: 10px; font-size: 12px; color: #8a6411;
}
.catalog-notice strong { color: #6b4e0a; font-size: 12.5px; }



/* 质检页面搬进平台后，宿主铺满 qc-frame（内容在 Shadow DOM 里滚动） */
.qc-native-host { display: block; width: 100%; height: 100%; }

/* 归档 PDF 预览 */
.pdf-preview { width: min(920px, 92vw); max-height: 90vh; display: flex; flex-direction: column; }
.pdf-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e3eaf2; }
.pdf-preview-body { overflow: auto; padding: 14px; background: #eef2f6; }
.pdf-preview-page { display: block; margin: 0 auto 12px; background: #fff; box-shadow: 0 2px 10px rgba(15, 35, 55, .12); }

/* 整机详情 → 质检记录里的检查项摘要（只列模板勾了「进生产明细」的项） */
.qc-record-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.qc-record-items .qc-item { font-size: 12px; color: #3d566e; background: #f2f6fa; border: 1px solid #e1e9f2; border-radius: 6px; padding: 2px 7px; }
.qc-record-items .qc-item.fail { background: #fdecec; border-color: #f3c9c9; color: #b03a2e; }
.qc-record-items .qc-item.pass { background: #eaf6ef; border-color: #cbe7d8; color: #17734f; }
.qc-record-items .qc-item b { font-weight: 600; }
.qc-record-items .qc-item.more { color: #7c8ea3; }

/* 不合格原因汇总（统计页） */
.fail-reason-summary { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.fail-reason-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; background: #f7fafd; border: 1px solid #e6eef6; border-radius: 8px; font-size: 13px; }
.fail-reason-text { color: #3d566e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 生产通知单 / 生产变更单 版本预览（同页切换，不跳转） */
.notice-doc-page .notice-doc { max-width: 1000px; margin: 0 auto; }.notice-doc.is-change .notice-doc-head h1 { color: #b26a00; }.notice-doc-change { background: #f8fbfe; border: 1px solid #e6eef6; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.notice-doc-change-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.notice-doc-change p { margin: 4px 0; font-size: 13px; }.notice-doc-reason { margin-top: 10px; padding: 8px 12px; background: #fff8e8; border: 1px solid #f0dfc0; border-radius: 8px; color: #8a5a10; font-size: 13px; }

.notice-preview-changes-title { font-size: 15px; margin: 4px 0 10px; }
.notice-preview-changes .notice-doc-change { margin-bottom: 8px; }

/* 拆分子任务：每个负责人的状态都显示出来 */
.task-child-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin: 0 6px 4px 0; border-radius: 999px; background: #eef5fd; border: 1px solid #d7e6f7; color: #2a5a8c; font-size: 12px; }
.task-child-chip.is-returned { background: #fdeeee; border-color: #f3cccc; color: #a03a36; }

/* 运维台问题反馈：折叠 + 图片预览 */
.ops-feedback-item { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 0; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.ops-feedback-details { flex: 1 1 auto; min-width: 0; }
.ops-feedback-details > summary { list-style: none; cursor: pointer; }
.ops-feedback-details > summary::-webkit-details-marker { display: none; }
.ops-feedback-details > summary::before { content: '▸'; color: #7b8a9e; margin-right: 4px; }
.ops-feedback-details[open] > summary::before { content: '▾'; }
.ops-feedback-status { flex: 0 0 auto; }
.ops-feedback-body { padding: 4px 12px 12px; border-top: 1px dashed var(--line); margin-top: 6px; }
.ops-feedback-body p { margin: 8px 0; white-space: pre-wrap; }
.feedback-attachments { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.feedback-thumb { display: inline-flex; flex-direction: column; gap: 4px; width: 132px; padding: 6px; border: 1px solid #dbe5f0; border-radius: 8px; background: #f8fbff; cursor: zoom-in; text-align: left; }
.feedback-thumb img { width: 120px; height: 84px; object-fit: cover; border-radius: 6px; background: #eef3f9; }
.feedback-thumb span { font-size: 11px; color: #5b6b7f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(12, 22, 34, .72); display: flex; align-items: center; justify-content: center; padding: 24px; }
.image-lightbox-inner { max-width: min(1200px, 94vw); max-height: 92vh; display: flex; flex-direction: column; gap: 10px; }
.image-lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; background: #fff; }
.image-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 13px; }

/* 问题反馈：紧凑列表（一行一条）+ 状态筛选 */
.ops-feedback-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ops-feedback-filter { border: none; cursor: pointer; padding: 2px 10px; }
.ops-feedback-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ops-feedback-item { margin: 0; }
.ops-feedback-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.ops-feedback-head strong { flex: 0 0 auto; color: #1e3146; }
.ops-feedback-meta { flex: 0 0 auto; color: #6d7f92; }
.ops-feedback-excerpt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #44586d; }
.ops-feedback-head .order-filter { flex: 0 0 auto; min-width: 86px; }
.ops-feedback-item.is-resolved .ops-feedback-excerpt { color: #8a99a8; }

/* 整机回收站 */
.unit-recycle-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.unit-recycle-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.unit-recycle-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.unit-recycle-main strong { font-size: 13px; }
.unit-recycle-main span { font-size: 12px; }
.unit-recycle-actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* 下推：每位负责人单独附件 */
.tp-push-files { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.tp-push-file { font-size: 12px; color: #44586d; }
.tp-push-file-hint { font-size: 11px; color: #7b8a9e; }

/* 表单按钮置顶 */
form.order-form > .actions-top, form.notice-form > .actions-top {
  margin: 0 0 12px;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg, #f3f6fa);
}

/* 整机详情：关联质检整机 */
.unit-qc-link { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0 0; }
.unit-qc-link select { min-width: 320px; max-width: 100%; }

/* 质检整机详情 */
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 0 2px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 3px; }
.detail-grid .muted { font-size: 11px; }
.detail-grid strong { font-size: 13px; color: var(--ink); }
.qc-unit-group { margin-top: 12px; }
.qc-unit-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); }
.qc-unit-item:first-of-type { border-top: 0; }.qc-unit-item { display: flex; flex-direction: column; gap: 6px; }.qc-unit-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.qc-unit-photo { width: 78px; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #f6f9fc; cursor: zoom-in; }
.qc-unit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 整机台账：整行可点 */
.qc-unit-row { cursor: pointer; }
.qc-unit-row:hover { background: #f5f9ff; }

/* 新增备品弹窗：两列表单，别再挤在左边 */
.spare-dialog .catalog-picker-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 16px 18px 4px;
  overflow-y: auto;
}
.spare-dialog .catalog-picker-body > .order-field { min-width: 0; }
.spare-dialog .catalog-picker-body > .order-field:nth-child(6),
.spare-dialog .catalog-picker-body > p,
.spare-dialog .catalog-picker-body > .notice-error,
.spare-dialog .catalog-picker-actions { grid-column: 1 / -1; }
.spare-dialog .catalog-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 2px -18px 0;
  padding: 12px 18px 16px;
  border-top: 1px solid #eef1f5;
  background: #fff;
}
@media (max-width: 620px) {
  .spare-dialog .catalog-picker-body { grid-template-columns: 1fr; }
}

/* 整机台账：列宽按内容分配，产品名称/客户留足空间 */
.qc-units-table { table-layout: auto; min-width: 1080px; }
.qc-units-table th:nth-child(1) { width: 155px; }
.qc-units-table th:nth-child(2) { width: 80px; }
.qc-units-table th:nth-child(3) { width: 240px; }
.qc-units-table th:nth-child(4) { width: 280px; }
.qc-units-table th:nth-child(5) { width: 120px; }
.qc-units-table th:nth-child(6) { width: 135px; }

.spare-dialog .catalog-picker-head h3 { margin: 0; font-size: 16px; color: var(--ink); }

/* 整机台账详情：铺满宽度，返回按钮做得更明显 */
.qc-unit-detail-page { max-width: none; margin: 0; }
.qc-detail-back {
  margin: 6px 0 14px;
  padding: 8px 16px;
  border: 1px solid #b9cde6;
  border-radius: 9px;
  background: #fff;
  color: #1f4f83;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(20, 50, 90, .08);
}
.qc-detail-back:hover { background: #f3f8ff; border-color: #7fa9d8; }/* 整机台账：行高稍微加高 */
.qc-units-table td { padding: 11px 10px; }
.qc-unit-item { padding: 11px 0; gap: 8px; line-height: 1.65; }/* 从归档记录生成整机：按产品（模板）展开归档记录，挑着生成 */
.qc-gen-dialog { width: min(880px, 100%); }
.qc-gen-dialog .catalog-picker-head h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.qc-gen-dialog .catalog-picker-search-wrap { margin-bottom: 0; }
.qc-gen-summary { padding: 8px 18px 10px; color: #475467; font-size: 12px; }
.qc-gen-body {
  overflow-y: auto;
  padding: 0 14px 6px;
  flex: 1 1 auto;
  min-height: 120px;
}
.qc-gen-site { display: flex; align-items: baseline; gap: 8px; padding: 12px 6px 6px; }
.qc-gen-site strong { font-size: 12.5px; color: var(--ink); letter-spacing: .04em; }
.qc-gen-site span { font-size: 11px; color: var(--muted); }
.qc-gen-product {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 10px 12px; margin-bottom: 6px; border: 1px solid #e4eaf2; border-radius: 9px;
  background: #fff; cursor: pointer; font: inherit;
}
.qc-gen-product:hover { background: #f5f9ff; border-color: #b7cfe9; }
.qc-gen-product.is-open { border-color: #b7cfe9; background: #fbfdff; }
.qc-gen-product.is-empty { cursor: default; background: #fafbfc; }
.qc-gen-product.is-empty:hover { background: #fafbfc; border-color: #e4eaf2; }
.qc-gen-caret { width: 12px; flex: none; color: #8fa3ba; font-size: 11px; }
.qc-gen-name { flex: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.qc-gen-product.is-empty .qc-gen-name { color: #667085; font-weight: 500; }
.qc-gen-version { flex: none; font-size: 11px; color: #98a2b3; }
.qc-gen-stats { margin-left: auto; flex: none; font-size: 11.5px; color: #5b6b7f; }
.qc-gen-stats.has-pending { color: #b54708; font-weight: 600; }
.qc-gen-records {
  margin: -2px 0 8px 20px; padding: 6px 10px 6px 12px;
  border-left: 2px solid #e4ecf6; display: flex; flex-direction: column; gap: 1px;
}
.qc-gen-record-tools { display: flex; justify-content: flex-end; padding-bottom: 2px; }
.qc-gen-record {
  display: grid; grid-template-columns: 20px 160px 128px 1fr auto;
  align-items: center; gap: 8px; padding: 6px; border-radius: 6px;
  font-size: 12px; color: #344054; cursor: pointer;
}
.qc-gen-record:hover { background: #f6f9fd; }
.qc-gen-record.is-linked { color: #98a2b3; cursor: default; }
.qc-gen-record.is-linked:hover { background: transparent; }
.qc-gen-record.is-part { cursor: default; }
.qc-gen-check { width: 14px; height: 14px; accent-color: var(--blue); cursor: pointer; }
.qc-gen-check:disabled { cursor: default; }
.qc-gen-code { font-weight: 600; font-variant-numeric: tabular-nums; }
.qc-gen-date { color: #667085; font-variant-numeric: tabular-nums; }
.qc-gen-by { color: #8b98a8; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-gen-note { padding: 4px 2px 8px; font-size: 11.5px; color: #98a2b3; }
.qc-gen-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 12px 18px 14px; border-top: 1px solid #eef1f5; background: #fff;
}
.qc-gen-picked { margin-right: auto; font-size: 12px; color: #667085; }
@media (max-width: 640px) {
  .qc-gen-record { grid-template-columns: 20px minmax(90px, 1fr) 1fr auto; }
  .qc-gen-by { display: none; }
  .qc-gen-product { flex-wrap: wrap; }
  .qc-gen-stats { width: 100%; margin-left: 21px; }
}

/* 手机顶栏只留工作台和刷新：全屏/新窗口在手机上没用，还挤占返回按钮的位置 */
@media (max-width: 760px) {
  .qc-tools .icon-btn:nth-child(4),
  .qc-tools .icon-btn:nth-child(5) { display: none; }
}

/* 手机上的返回按钮：做大一点、给个浅底，侧滑返回不灵时更好点 */
@media (max-width: 760px) {
  .qc-top-main > .icon-btn {
    width: 42px; height: 42px; border-radius: 11px;
    background: #f2f5f9; color: var(--navy);
  }
  .qc-top-main > .icon-btn svg { width: 20px; height: 20px; }
  .qc-top-main > .icon-btn:disabled { background: transparent; }
}

/* 列表筛选方案：下拉 + 存为方案 + 删除 */
.filter-preset-bar { display: flex; align-items: center; gap: 6px; }
.filter-preset-select { width: auto; min-width: 128px; max-width: 200px; }
.filter-preset-dialog { width: min(460px, 100%); }
.filter-preset-body { padding: 14px 18px 4px; }
.filter-preset-body .order-field { margin-bottom: 12px; }
.filter-preset-body .catalog-picker-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0 14px; }

/* 订单高级筛选弹窗 */
.order-cond-dialog { width: min(760px, 100%); }
.order-cond-dialog .catalog-picker-head h3 { margin: 0 0 3px; font-size: 16px; color: var(--ink); }
.order-cond-dialog .catalog-picker-head p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.order-cond-body { padding: 12px 18px 6px; overflow-y: auto; }
.order-cond-head {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 108px minmax(0, 1.2fr) 34px;
  gap: 8px; padding: 0 0 6px; color: var(--muted); font-size: 11px;
}
.order-cond-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.order-cond-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 108px minmax(0, 1.2fr) 34px;
  gap: 8px; align-items: center;
}
.order-cond-row .order-input { width: 100%; min-width: 0; }
.order-cond-hint { font-size: 12px; color: #98a2b3; padding-left: 2px; }
.order-cond-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 14px; border-top: 1px solid #eef1f5; }
.order-cond-actions .btn-ghost:first-child { margin-right: auto; }
@media (max-width: 640px) {
  .order-cond-row, .order-cond-head { grid-template-columns: 70px minmax(0, 1fr) 90px minmax(0, 1fr) 30px; }
}

/* 运维台·数据维护：导入/清理/对账按功能分组，占满整行 */
.ops-maintenance { grid-column: 1 / -1; }
.ops-maint-body { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.ops-maint-group { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ops-maint-group:first-child { padding-top: 0; border-top: 0; }
.ops-maint-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ops-maint-head strong { font-size: 13px; color: var(--navy); }
.ops-maint-head span { font-size: 11px; color: var(--muted); }
.ops-maint-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 生产列表（按订单行）加了备注列：第 8 列给足宽度，第 9 列是操作 */
.production-list-table { min-width: 1180px; }
.production-list-table th:nth-child(8) { width: 240px; }
.production-list-table th:nth-child(9) { width: 132px; }

/* 整机生产列表第 5 列改成备注，给足宽度 */
.production-unit-table th:nth-child(2),
.production-unit-table td:nth-child(2) { width: 210px; }
.production-unit-table th:nth-child(3),
.production-unit-table td:nth-child(3) { width: 200px; }

/* 从归档记录生成整机：进度条 */
.qc-gen-progress { padding: 0 18px 8px; }
.qc-gen-progress.hidden { display: none; }
.qc-gen-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.qc-gen-progress-label { color: var(--ink); font-weight: 500; }
.qc-gen-progress-track { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.qc-gen-progress-fill { height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width .2s ease; }

/* 高级筛选里的筛选方案条 + 条件矛盾提示 */
.order-cond-preset { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px 0; }
.order-cond-preset-label { font-size: 12px; color: var(--muted); }
.order-cond-preset-select { width: auto; min-width: 160px; max-width: 240px; }
.order-cond-issues {
  margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  background: #fff4f2; border: 1px solid #ffd7cf; color: #b42318;
  font-size: 12px; line-height: 1.6;
}
.order-cond-issues.hidden { display: none; }

/* 通知单序号可以手填（1.1 这种） */
.notice-seq { width: 44px; }
.notice-seq-input {
  width: 36px; min-width: 0; max-width: 100%; box-sizing: border-box;
  padding: 2px 2px; text-align: center; font-size: 12px;
}

/* 台账详情：检查项时间、照片时间、修改历史 */
.qc-unit-time { font-size: 11.5px; color: var(--muted); }
.qc-unit-photos { display: flex; flex-wrap: wrap; gap: 10px; }.qc-unit-history {
  margin-top: 6px; padding: 6px 9px; border-radius: 8px; background: #f7f9fc;
  border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 3px;
}
.qc-unit-history-label { font-size: 11.5px; color: var(--muted); }
.qc-unit-history-row { font-size: 11.5px; color: var(--ink); }

/* 整机台账：按产品展开工序节点列 */
.qc-units-product { min-width: 170px; }
.qc-units-wrap { overflow-x: auto; }
.qc-units-table.qc-units-nodes { width: max-content; min-width: 100%; table-layout: fixed; }
.qc-units-nodes col { display: none; }
.qc-units-nodes th, .qc-units-nodes td { width: 102px; min-width: 102px; max-width: 102px; }
.qc-units-nodes th.qc-pin, .qc-units-nodes td.qc-pin { width: 132px; min-width: 132px; max-width: 132px; }
.qc-units-nodes th.qc-pin-2, .qc-units-nodes td.qc-pin-2 { width: 182px; min-width: 182px; max-width: 182px; }
.qc-units-nodes thead tr th:nth-child(3) { width: 106px; min-width: 106px; max-width: 106px; }
.qc-units-nodes thead tr th:nth-child(4) { width: 120px; min-width: 120px; max-width: 120px; }
.qc-units-nodes tbody tr td:nth-child(3) { width: 106px; min-width: 106px; max-width: 106px; }
.qc-units-nodes tbody tr td:nth-child(4) { width: 120px; min-width: 120px; max-width: 120px; }
.qc-units-nodes thead th.qc-node-group { width: auto; min-width: 92px; max-width: none; }
.qc-units-nodes thead .list-head-row th,
.qc-units-nodes thead .qc-node-subhead th { position: sticky; top: 0; z-index: 3; background: #f6f8fb; }
.qc-units-nodes thead .qc-node-subhead th { top: 33px; }
.qc-units-nodes thead th.qc-node-group { background: #eef3fb; color: #1f4fd1; font-weight: 600; }
.qc-units-nodes thead th.qc-node-head { font-weight: 500; color: #4a5b73; font-size: 11.5px; white-space: nowrap; }
.qc-units-nodes td.qc-pin,
.qc-units-nodes th.qc-pin { position: sticky; left: 0; z-index: 2; background: #fff; }
.qc-units-nodes td.qc-pin-2,
.qc-units-nodes th.qc-pin-2 { position: sticky; left: 120px; z-index: 2; background: #fff; text-align: left; }
.qc-units-nodes thead th.qc-pin,
.qc-units-nodes thead th.qc-pin-2 { z-index: 5; background: #f6f8fb; }
.qc-unit-order { display: block; color: #98a2b3; font-size: 11px; }
.qc-node-progress { min-width: 90px; }
.qc-node-bar { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.qc-node-bar span { display: block; height: 100%; border-radius: 999px; background: #12b76a; }
.qc-node-progress small { display: block; margin-top: 3px; color: #7b8794; font-size: 10.5px; }
.qc-node-cell { min-width: 84px; text-align: center; }
.qc-node-cell b { display: block; font-size: 11px; font-weight: 600; }
.qc-node-cell i { display: block; font-style: normal; font-size: 10.5px; margin-top: 1px; }
.qc-node-cell .qc-node-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.qc-node-cell.done { background: #f3fbf6; }
.qc-node-cell.done b { color: #067647; }
.qc-node-cell.done i { color: #5a8f74; }
.qc-node-cell.done .qc-node-dot { background: #12b76a; }
.qc-node-cell.todo b { color: #98a2b3; font-weight: 500; }
.qc-node-cell.todo i { color: #c2c9d2; }
.qc-node-cell.todo .qc-node-dot { background: #d0d5dd; }

/* ==========================================================================
   简约皮肤（覆盖层）
   参照 shadcn/ui + Linear：1px 细边、8~10px 圆角、无重阴影、单一蓝色强调
   ========================================================================== */

/* 侧栏：深蓝渐变（保留品牌色） */
.sidebar { background: linear-gradient(180deg, #0b2542 0%, #0d2b4e 62%, #0a2340 100%); padding: 18px 12px 12px; }
.brand { padding: 2px 8px 14px; }
.brand-mark { border-radius: 10px; }
.brand-text strong { font-size: 16px; letter-spacing: .3px; }

/* 按钮 */
.btn {
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 500; box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: #f9fafb; border-color: var(--line-strong); }
.btn:disabled { opacity: .45; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f3f4f6; border-color: transparent; color: var(--ink); }
.btn-small { height: 30px; padding: 0 10px; font-size: 12.5px; }

/* 输入 / 下拉 */
.order-input, .notice-input, .list-filter-input, .order-filter, .catalog-picker-search {
  height: 32px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 13px; padding: 0 10px; color: var(--ink);
}
.order-input::placeholder, .list-filter-input::placeholder { color: #9ca3af; }
.order-input:focus, .notice-input:focus, .list-filter-input:focus, .order-filter:focus, .catalog-picker-search:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* 表格 */
.list-table { border-collapse: separate; border-spacing: 0; }
.list-table th {
  background: #f9fafb; color: #6b7280; font-weight: 500; font-size: 12.5px;
  border-bottom: 1px solid var(--line); padding: 9px 12px; white-space: nowrap;
}
.list-table td { border-bottom: 1px solid #f1f2f4; padding: 9px 12px; font-size: 13px; }
.list-table tbody tr:last-child td { border-bottom: 0; }
.list-table tbody tr:hover td { background: #fafbfc; }
.list-filter-row th { background: #fff; border-bottom: 1px solid var(--line); padding: 6px 8px; }

/* 卡片 */
.surface, .order-card, .ops-card, .qc-unit-group, .qc-unit-item {
  border: 1px solid var(--line); border-radius: 12px; box-shadow: none; background: #fff;
}
.order-card { padding: 14px 16px; }
.order-card-head { padding-bottom: 10px; border-bottom: 1px solid #f1f2f4; margin-bottom: 12px; }
.order-card-head h2 { font-size: 14px; font-weight: 600; }
.ops-card { padding: 14px 16px; }

/* 状态标签 */
.chip { border-radius: 6px; font-size: 11.5px; padding: 1px 7px; border: 1px solid transparent; }
.chip.info { background: #eff6ff; color: #1d4ed8; }
.chip.ok { background: #ecfdf5; color: #047857; }
.chip.warn { background: #fffbeb; color: #b45309; }
.chip.muted { background: #f3f4f6; color: #6b7280; }

/* 工具栏 */
.list-toolbar { padding: 10px 0 12px; }
.list-toolbar strong { font-size: 15px; font-weight: 600; }
.list-toolbar span { color: var(--muted); font-size: 12.5px; }

/* 弹窗 */
.catalog-picker, .shipping-modal-card {
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(16, 24, 40, .14);
}
.catalog-picker-head h3, .shipping-modal-head h2 { font-size: 15px; font-weight: 600; }
.catalog-picker-overlay, .shipping-modal { background: rgba(17, 24, 39, .42); }

/* 详情页的字段网格 */
.detail-grid > div > span.muted { font-size: 11.5px; color: #9ca3af; }
.detail-grid > div > strong { font-size: 13px; }

/* 页面标题 */
.page > h1,
.workspace-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }.page > p { color: var(--muted); font-size: 12.5px; }

/* ==========================================================================
   全局留白与密度：列表页不贴边，表头/单元格松一点
   ========================================================================== */
body.list-view .workspace-body { padding: 14px 26px 40px; }
.workspace-head { padding: 24px 26px 10px; }
.workspace-title h1 { margin-bottom: 4px; }

.list-toolbar { gap: 16px; padding: 12px 2px 16px; }
.list-toolbar-left { gap: 12px; }
.list-toolbar-left strong { font-size: 15px; }
.list-toolbar-left span { font-size: 12px; }
.list-toolbar-right { gap: 8px; }

.list-table th { padding: 10px 14px; }
.list-head-row th { height: 42px; }
.list-filter-row th { top: 42px; padding: 8px 10px; }
.list-table td { padding: 11px 14px; }
.list-table-wrap { max-height: calc(100vh - 290px); }

/* 列表页的卡片/工具栏之外，页面级块之间也拉开一点 */
.page.list-page > * + * { margin-top: 4px; }

/* 生产通知单列表：加「订单内容」列后的列宽重排 */
.notice-table { min-width: 1280px; }
.notice-table th:nth-child(1) { width: 36px; }
.notice-table th:nth-child(2) { width: 110px; }
.notice-table th:nth-child(3) { width: 168px; }
.notice-table th:nth-child(4) { width: 320px; }
.notice-table th:nth-child(5) { width: 108px; }
.notice-table th:nth-child(6) { width: 96px; }
.notice-table th:nth-child(7) { width: 148px; }
.notice-table th:nth-child(8) { width: 78px; }
.notice-table th:nth-child(9) { width: 104px; }
.notice-table th:nth-child(10) { width: 86px; }
.notice-content-cell { white-space: normal; vertical-align: top; }
.notice-content-line { font-size: 12px; line-height: 1.6; color: #475467; }
.notice-content-line + .notice-content-line { margin-top: 2px; }

/* ==========================================================================
   手机端：运维台「问题反馈」卡片（标题被筛选挤成两行、摘要被 nowrap 挤没）
   ========================================================================== */
@media (max-width: 720px) {
  .ops-card-head { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; }
  .ops-card-head h2 { white-space: nowrap; }
  .ops-feedback-filters { width: 100%; }
  .ops-feedback-filters .chip { padding: 3px 9px; }

  .ops-feedback-item { display: flex; flex-direction: column; gap: 8px; }
  .ops-feedback-head {
    flex-wrap: wrap; white-space: normal; row-gap: 4px; column-gap: 8px;
    padding: 8px 10px; align-items: center;
  }
  .ops-feedback-head strong { flex: 0 0 auto; }
  .ops-feedback-meta { flex: 0 0 auto; font-size: 11px; }
  .ops-feedback-excerpt {
    flex: 1 0 100%; white-space: normal; overflow: visible; text-overflow: clip;
    line-height: 1.5; margin-top: 2px;
  }
  .ops-feedback-item > .ops-feedback-status { width: 100%; margin: 0; }
  .ops-feedback-body { padding: 0 10px 10px; }
  .ops-feedback-body p { word-break: break-word; }
}

/* 手机端列表工具栏：标题别被下拉挤换行，空态文字别被截断 */
@media (max-width: 720px) {
  .list-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .list-toolbar-left { flex-wrap: wrap; row-gap: 6px; align-items: center; }
  .list-toolbar-left strong,
  .list-toolbar-left span { white-space: nowrap; }
  .list-toolbar-left .qc-units-product { flex: 1 1 auto; min-width: 150px; }
  .list-empty-cell { white-space: normal; line-height: 1.6; padding: 18px 14px; }
}

/* 手机端整机台账空态：表格缩到容器宽，提示文字正常换行 */
@media (max-width: 720px) {
  .qc-units-table.is-empty { min-width: 100%; }
  .qc-units-table.is-empty thead,
  .qc-units-table.is-empty .list-filter-row { display: none; }
  .qc-units-table.is-empty .list-empty-cell { white-space: normal; line-height: 1.6; }
}

/* 手机端运维台顶部操作：按钮两列，别竖排换行 */
@media (max-width: 720px) {
  .ops-update-progress { margin: 10px 0; padding: 10px 12px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; }
.ops-update-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; color: #334155; }
.ops-update-progress-bar { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.ops-update-progress-fill { height: 100%; border-radius: 999px; background: #3b82f6; transition: width .25s ease; }
.ops-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  .ops-actions .btn { width: 100%; justify-content: center; white-space: nowrap; min-height: 38px; }
  .ops-actions .ops-refresh-note { grid-column: 1 / -1; text-align: left; }
}

/* 手机端：底部导航别挡住内容；搜索框占满一行 */
@media (max-width: 720px) {
  body.list-view .workspace-body,
  .workspace-body { padding-bottom: 100px; }
  .list-toolbar-left .list-filter-input { width: 100%; min-width: 0; }
}

/* 手机端空态：别让底部导航压住提示文字 */
@media (max-width: 720px) {
  .empty-state { padding-bottom: 90px; }
  .page.list-page > .empty-state { padding-bottom: 90px; }
}

/* 手机端空态：表格缩到容器宽，提示文字完整显示 */
@media (max-width: 720px) {
  .list-table-wrap:has(.list-empty-cell) .list-table {
    min-width: 100%;
    table-layout: auto;
  }
  .list-table-wrap:has(.list-empty-cell) .list-empty-cell {
    white-space: normal;
    text-align: center;
    line-height: 1.7;
    padding: 28px 18px;
  }
  .list-table-wrap:has(.list-empty-cell) .list-filter-row th {
    padding: 6px 4px;
  }
  .list-table-wrap:has(.list-empty-cell) .list-filter-row .list-filter-input {
    width: 100%;
    min-width: 0;
  }
}

/* 手机端列表搜索框（catalog-search-input 这类）占满一行 */
@media (max-width: 720px) {
  .list-toolbar-left .catalog-search-input,
  .list-toolbar-left .notice-search,
  .list-toolbar-left .catalog-search-wrap { flex: 1 1 100%; width: 100%; min-width: 0; }
}

/* 台账工序节点：合格 / 不合格 / 不适用 */
.qc-node-cell.pass { background: #f3fbf6; }
.qc-node-cell.pass b { color: #067647; }
.qc-node-cell.pass i { color: #5a8f74; }
.qc-node-cell.pass .qc-node-dot { background: #12b76a; }
.qc-node-cell.fail { background: #fef3f2; }
.qc-node-cell.fail b { color: #b42318; }
.qc-node-cell.fail i { color: #b9706a; }
.qc-node-cell.fail .qc-node-dot { background: #f04438; }
.qc-node-cell.na { background: #f9fafb; }
.qc-node-cell.na b { color: #667085; }
.qc-node-cell.na i { color: #98a2b3; }
.qc-node-cell.na .qc-node-dot { background: #d0d5dd; }

/* 质检新建检验表单：防止个别缩放/字体环境下输入框被压扁 */
.field > input, .field > select, .field > textarea { min-height: 44px; }

/* 整机台账「全部产品」视图列宽 */
.qc-units-table:not(.qc-units-nodes) th:nth-child(1) { width: 132px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(2) { width: 76px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(3) { width: 180px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(4) { width: 92px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(5) { width: 92px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(6) { width: 180px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(7) { width: 140px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(8) { width: 110px; }

/* 台账节点视图：客户 / 检验性质 / 非标内容 列宽 */
.qc-units-nodes th.qc-col-customer, .qc-units-nodes td.qc-col-customer { width: 150px; min-width: 150px; max-width: 150px; white-space: normal; }
.qc-units-nodes th.qc-col-kind, .qc-units-nodes td.qc-col-kind { width: 84px; min-width: 84px; max-width: 84px; }
.qc-units-nodes th.qc-col-remark, .qc-units-nodes td.qc-col-remark { width: 210px; min-width: 210px; max-width: 210px; white-space: normal; line-height: 1.5; text-align: left; }

/* 通知单多行输入框：高度由 JS 按内容撑开，万一没算到也能滚动 */
.notice-area { overflow-y: auto; }

/* 通知单表头：输入框占满格子，合同编号列标签窄一点 */
.notice-meta .notice-input,
.notice-meta .notice-area { width: 100%; min-width: 0; }
.notice-meta th:nth-child(3) { width: 74px; }
.notice-meta td .notice-input-area { width: 100%; }

/* 通知单表头：列宽按内容自适应，标签格紧凑，输入框拿更多宽度 */
.notice-meta { table-layout: auto; }
.notice-meta th { width: auto; min-width: 76px; }
.notice-meta th:nth-child(3) { width: auto; min-width: 68px; }
.notice-meta td { width: auto; }

/* ===== 整机详情：检查项紧凑列表 ===== */
.qc-unit-detail-page .qc-unit-group {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin-bottom: 12px;
}
.qc-unit-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fafbfc;
}
.qc-unit-group-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.qc-unit-group-count { font-size: 12px; color: var(--muted); }

.qc-unit-item { padding: 10px 16px; border-bottom: 1px solid #f2f4f7; }
.qc-unit-item:last-child { border-bottom: 0; }
.qc-unit-item.is-fail { background: #fffbfa; }
.qc-unit-row { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.qc-unit-cat {
  flex: none; font-size: 11px; color: #667085; background: #f2f4f7;
  border-radius: 4px; padding: 1px 6px;
}
.qc-unit-text { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-unit-chip { flex: none; font-size: 12px; line-height: 20px; padding: 0 10px; border-radius: 999px; }
.qc-unit-chip.ok { color: #067647; background: #ecfdf3; }
.qc-unit-chip.bad { color: #b42318; background: #fef3f2; }
.qc-unit-chip.muted { color: #667085; background: #f2f4f7; }
.qc-unit-time { flex: none; font-size: 12px; color: #98a2b3; }

.qc-unit-sub { display: flex; gap: 6px; margin-top: 5px; font-size: 12.5px; color: #475467; }
.qc-unit-sub b { flex: none; font-weight: 500; color: #98a2b3; }
.qc-unit-sub.is-fail { color: #b42318; }
.qc-unit-sub.is-fail b { color: #d92d20; opacity: .75; }

.qc-unit-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qc-unit-photos .qc-unit-photo {
  width: 72px; height: 54px; padding: 0; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; background: #f8fafc; cursor: pointer;
}
.qc-unit-photos .qc-unit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.qc-unit-history {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 8px; padding: 7px 10px; border-radius: 6px;
  background: #f8fafc; font-size: 11.5px; color: #667085;
}
.qc-unit-history-label { color: #98a2b3; }

.qc-unit-empty-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.qc-unit-empty-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.qc-unit-empty-text { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 筛选方案：固定到工具栏的按钮 / 存为方案时的勾选 */
.filter-preset-bar { flex-wrap: wrap; }
.filter-preset-pin { border-color: #c7d7fe; background: #eef4ff; color: #1d4ed8; }
.filter-preset-pin.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.filter-preset-pin-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 12.5px; color: #475467; }
.filter-preset-pin-check input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: none; }

/* 筛选方案：固定方案单独一行，下拉/保存另起一行 */
.filter-preset-block { display: flex; flex-direction: column; gap: 8px; flex: 1 1 100%; order: -1; }.filter-preset-pinned-row .filter-preset-pin { white-space: nowrap; }
.filter-preset-block .filter-preset-bar { flex-wrap: wrap; }

/* 列表页顶部的高级筛选按钮行 */
.list-conditions-bar { display: flex; align-items: center; gap: 8px; padding: 0 26px 10px; }

/* 筛选方案一行：下拉 + 固定的方案按钮（放几个都行） */
.filter-preset-block {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  flex: 1 1 100%; order: -1;
}
.filter-preset-block .filter-preset-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-preset-block .filter-preset-select { min-width: 150px; }

/* 方案行占满工具栏宽度，靠左排 */
.list-toolbar-right { flex-wrap: wrap; }

/* 方案行强制占满一行并左对齐 */
.list-toolbar-right { flex-wrap: wrap !important; }

/* 页面顶部条件行里的方案栏不要占满整行 */
.list-conditions-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 26px; margin-bottom: -6px; flex-wrap: wrap; }
.list-conditions-bar .filter-preset-block { flex: 0 1 auto; width: auto; order: 0; }
.list-conditions-bar .filter-preset-select { min-width: 140px; }

/* 变更单/发货单：方案条在工具栏里靠右，和其他按钮对齐 */
.list-toolbar-right .filter-preset-block {
  flex: 0 0 auto; width: auto; order: 0; margin-left: auto;
}

/* 方案条：页面顶部的占满一行；工具栏里的靠右和其他按钮对齐 */
.list-conditions-bar .filter-preset-block { flex: 0 1 auto; width: auto; order: 0; }
.list-toolbar-right .filter-preset-block { flex: 0 0 auto; width: auto; order: 0; margin-left: auto; }

/* ==========================================================================
   统一列表工具栏的输入框 / 下拉 / 按钮（高度、圆角、边框、聚焦环一致）
   ========================================================================== */
.list-toolbar input:not([type='checkbox']):not([type='radio']),
.list-toolbar select,
.list-filter-row input:not([type='checkbox']):not([type='radio']),
.list-filter-row select,
.list-conditions-bar input:not([type='checkbox']):not([type='radio']),
.list-conditions-bar select,
.list-filter-input,
.list-filter-select,
.order-filter,
.filter-preset-select,
.catalog-search-input,
.notice-search {
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 32px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}.list-toolbar select,

.list-filter-row select,

.list-conditions-bar select,

.list-filter-select,

.order-filter,

.filter-preset-select {
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' stroke='%23667085' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}.list-toolbar input:focus,

.list-toolbar select:focus,

.list-filter-row input:focus,

.list-filter-row select:focus,

.list-conditions-bar input:focus,

.list-conditions-bar select:focus,

.list-filter-input:focus,

.list-filter-select:focus,

.order-filter:focus,

.filter-preset-select:focus,

.catalog-search-input:focus,

.notice-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.list-toolbar input::placeholder,
.list-filter-row input::placeholder,
.list-conditions-bar input::placeholder {
  color: #98a2b3;
}
/* 工具栏里的按钮统一高度和圆角 */
.list-toolbar .btn,
.list-toolbar > button,
.list-conditions-bar .btn,
.list-conditions-bar > button,
.filter-preset-bar .btn,
.filter-preset-pin {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}
/* 工具栏里的复选框别被上面的高度规则带跑 */
.list-toolbar input[type='checkbox'],
.list-filter-row input[type='checkbox'],
.list-conditions-bar input[type='checkbox'] {
  height: 16px; min-height: 0; width: 16px; padding: 0; border-radius: 4px; appearance: auto;
}

/* 桌面上列表表格必须是正常的 table 布局：
   手机卡片化的 .mobile-card-table 规则一旦漏到桌面，列宽就会全乱 */
@media (min-width: 721px) {
  table.list-table.mobile-card-table { display: table; table-layout: fixed; width: 100%; }
  table.list-table.mobile-card-table thead { display: table-header-group; }
  table.list-table.mobile-card-table tbody { display: table-row-group; }
  table.list-table.mobile-card-table tbody tr { display: table-row; }
  table.list-table.mobile-card-table tbody td,
  table.list-table.mobile-card-table thead th { display: table-cell; }
  table.list-table.mobile-card-table tbody td::before { display: none; }
}

/* 方案行和下面工具栏之间别留太大空隙 */
.list-conditions-bar { margin-bottom: -14px; }
.list-conditions-bar + .page .list-toolbar,
.list-conditions-bar + .production-page .list-toolbar,
.list-conditions-bar + .catalog-page .list-toolbar { padding-top: 8px; }

/* 方案行整体往下挪一点，离标题远一些 */
.list-conditions-bar { margin: 8px 0 0; }

/* ===== 发货申请单列表：工具栏排布规整 ===== */
.ship-toolbar { gap: 12px; align-items: center; }
.ship-toolbar .list-toolbar-left { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ship-toolbar .list-toolbar-right {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; flex-wrap: wrap;
}
.ship-search .list-filter-input { width: 240px; }
.ship-toolbar .filter-preset-block { margin-left: 0; }
.ship-toolbar .filter-preset-select { min-width: 128px; }
.ship-toolbar .btn { white-space: nowrap; }
.ship-kpi-row { gap: 12px; }
.ship-kpi { min-height: 64px; }

/* 发货单：工具栏在上，KPI 卡片在下铺满整行 */
.shipping-page .ship-kpi-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
  width: 100%;
}
.shipping-page .list-toolbar { padding-bottom: 8px; }

/* ===== 整机关联：关键字搜索 ===== */
.unit-qc-link-pick { flex-wrap: wrap; align-items: flex-start; }
.unit-qc-search-wrap { flex: 1 1 300px; min-width: 220px; }
.unit-qc-results { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow: auto; margin-top: 6px; }
.unit-qc-option { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; }
.unit-qc-option:hover { border-color: #2563eb; background: #f8fafc; }
.unit-qc-option b { color: #2563eb; font-weight: 600; }
.unit-qc-option-name { color: #111827; }
.unit-qc-option i { margin-left: auto; font-style: normal; color: #6b7280; font-size: 12px; }
.unit-qc-hint { padding: 4px 2px; }
.unit-qc-picked { color: #15803d; }

/* ===== 生产列表：质检进度 ===== */
.prod-qc-cell { min-width: 140px; white-space: nowrap; }
.prod-qc-bar { height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; margin-bottom: 4px; }
.prod-qc-bar span { display: block; height: 100%; background: #16a34a; transition: width .2s ease; }
.prod-qc-bar span.is-fail { background: #dc2626; }
.prod-qc-text { font-size: 12px; color: #374151; font-variant-numeric: tabular-nums; }
.prod-qc-fail { margin-left: 6px; font-size: 12px; color: #dc2626; }
.prod-qc-todo { font-size: 12px; color: #9ca3af; }

/* 整机生产列表加「质检进度」后：给进度和操作列固定宽度，别挤在一起 */
.production-unit-table th:nth-child(6),
.production-unit-table td:nth-child(6) { width: 370px; }
.production-unit-table th:nth-child(7),
.production-unit-table td:nth-child(7) { width: 168px; }
.production-unit-table { min-width: 1380px; }
.production-unit-table .list-ops .production-row-actions { display: flex; gap: 6px; flex-wrap: nowrap; }

/* 整机列表筛选行：订单号 + 备注 并排 */
.list-filter-pair { display: flex; gap: 6px; }
.list-filter-pair .list-filter-input { min-width: 0; }

/* 整机列表：订单编号列放宽，容纳「订单号 + 备注」两个筛选框 */
.production-unit-table th:nth-child(4),
.production-unit-table td:nth-child(4) { width: 250px; }
.list-filter-pair .list-filter-input { flex: 1 1 0; min-width: 92px; }

/* 生产列表：质检节点小标签 */
.prod-qc-cell { min-width: 320px; white-space: normal; }
.prod-qc-head { display: flex; align-items: baseline; gap: 8px; }/* 节点标签：短标签 + 超长省略，行高别撑太高 */* 节点全部展示，行高自适应；列宽收紧一点，操作列仍能露出来 */
.production-unit-table th:nth-child(2), .production-unit-table td:nth-child(2) { width: 170px; }
.production-unit-table th:nth-child(3), .production-unit-table td:nth-child(3) { width: 170px; }
.production-unit-table th:nth-child(4), .production-unit-table td:nth-child(4) { width: 220px; }
.production-unit-table th:nth-child(6), .production-unit-table td:nth-child(6) { width: 340px; }
.production-unit-table th:nth-child(7), .production-unit-table td:nth-child(7) { width: 150px; }
.production-unit-table { min-width: 1270px; }/* 生产列表：质检节点横向列 */
.prod-node-cell.pass { color: #047857; }
.prod-node-cell.fail { color: #b91c1c; font-weight: 600; }
.prod-node-cell.na { color: #94a3b8; }
.prod-node-cell.todo { color: #94a3b8; }.prod-node-cell.pass .prod-node-dot { background: #10b981; }
.prod-node-cell.fail .prod-node-dot { background: #ef4444; }
.prod-node-cell.na .prod-node-dot { background: #94a3b8; }
.production-unit-table { min-width: 1180px; }

/* 生产列表：汇总列收窄；操作列固定右侧，横向拉的时候还能点 */
.production-unit-table th:nth-child(6), .production-unit-table td:nth-child(6) { width: 220px; }
.production-unit-table th:last-child,
.production-unit-table td:last-child { position: sticky; right: 0; background: #fff; z-index: 2; box-shadow: -8px 0 10px -8px rgba(15, 23, 42, .18); }
.production-unit-table thead th:last-child { background: #f8fafc; }
.production-unit-table .list-filter-row th:last-child { background: #fff; }/* 操作列：加宽一点，按钮不被裁 */
.production-unit-table th:nth-child(7), .production-unit-table td:nth-child(7) { width: 190px; min-width: 190px; }
.production-unit-table td:last-child { padding-right: 12px; }

/* 生产列表：选了产品后的节点列，表头和整机台账一致 */
.production-unit-table.qc-units-nodes th:nth-child(6),
.production-unit-table.qc-units-nodes td:nth-child(6) { width: 220px; }
.production-unit-table.qc-units-nodes thead th.qc-node-group,
.production-unit-table.qc-units-nodes thead th.qc-node-head { width: 100px; }
.production-unit-table.qc-units-nodes thead .qc-node-subhead th { position: sticky; top: 33px; z-index: 3; background: #f6f8fb; }

/* ===== 生产列表：选产品后的节点表（和整机台账同款） ===== */
.production-unit-table.qc-units-nodes { table-layout: fixed; width: max-content; min-width: 100%; }
.production-unit-table.qc-units-nodes th,
.production-unit-table.qc-units-nodes td { width: 100px; min-width: 100px; max-width: 100px; white-space: normal; }
.production-unit-table.qc-units-nodes thead th.qc-node-group { width: auto; min-width: 100px; max-width: none; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(1),
.production-unit-table.qc-units-nodes tbody td:nth-child(1) { width: 150px; min-width: 150px; max-width: 150px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(2),
.production-unit-table.qc-units-nodes tbody td:nth-child(2) { width: 210px; min-width: 210px; max-width: 210px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(3),
.production-unit-table.qc-units-nodes tbody td:nth-child(3) { width: 190px; min-width: 190px; max-width: 190px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(4),
.production-unit-table.qc-units-nodes tbody td:nth-child(4) { width: 220px; min-width: 220px; max-width: 220px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(5),
.production-unit-table.qc-units-nodes tbody td:nth-child(5) { width: 96px; min-width: 96px; max-width: 96px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(6),
.production-unit-table.qc-units-nodes tbody td:nth-child(6) { width: 210px; min-width: 210px; max-width: 210px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:last-child,
.production-unit-table.qc-units-nodes tbody td:last-child { width: 190px; min-width: 190px; max-width: 190px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(1) { width: 150px; min-width: 150px; max-width: 150px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(2) { width: 210px; min-width: 210px; max-width: 210px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(3) { width: 190px; min-width: 190px; max-width: 190px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(4) { width: 220px; min-width: 220px; max-width: 220px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(5) { width: 96px; min-width: 96px; max-width: 96px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(6) { width: 210px; min-width: 210px; max-width: 210px; }
.production-unit-table.qc-units-nodes .list-filter-row th:last-child { width: 190px; min-width: 190px; max-width: 190px; }
.production-unit-table.qc-units-nodes .qc-node-cell { min-width: 100px; }
.production-unit-table.qc-units-nodes thead .qc-node-subhead th { position: sticky; top: 33px; z-index: 3; background: #f6f8fb; }

/* 台账那条 .qc-units-nodes col{display:none} 会把生产列表的 colgroup 也藏掉，这里恢复 */
.production-unit-table.qc-units-nodes col { display: table-column; }

/* 生产列表节点模式：基础列收窄一点，给节点列留出可视区域 */
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(1),
.production-unit-table.qc-units-nodes tbody td:nth-child(1) { width: 130px; min-width: 130px; max-width: 130px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(2),
.production-unit-table.qc-units-nodes tbody td:nth-child(2) { width: 180px; min-width: 180px; max-width: 180px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(3),
.production-unit-table.qc-units-nodes tbody td:nth-child(3) { width: 160px; min-width: 160px; max-width: 160px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(4),
.production-unit-table.qc-units-nodes tbody td:nth-child(4) { width: 180px; min-width: 180px; max-width: 180px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(5),
.production-unit-table.qc-units-nodes tbody td:nth-child(5) { width: 90px; min-width: 90px; max-width: 90px; }
.production-unit-table.qc-units-nodes thead tr:first-child th:nth-child(6),
.production-unit-table.qc-units-nodes tbody td:nth-child(6) { width: 180px; min-width: 180px; max-width: 180px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(1) { width: 130px; min-width: 130px; max-width: 130px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(2) { width: 180px; min-width: 180px; max-width: 180px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(3) { width: 160px; min-width: 160px; max-width: 160px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(4) { width: 180px; min-width: 180px; max-width: 180px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(5) { width: 90px; min-width: 90px; max-width: 90px; }
.production-unit-table.qc-units-nodes .list-filter-row th:nth-child(6) { width: 180px; min-width: 180px; max-width: 180px; }

/* 节点模式下操作列不吸右，跟着表格一起横向滚动，避免盖住节点 */
.production-unit-table.qc-units-nodes th:last-child,
.production-unit-table.qc-units-nodes td:last-child { position: static; box-shadow: none; }

/* 整机台账详情：证书类字段的就地编辑 */
.qc-info-input { flex: 1 1 160px; min-width: 120px; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; }
.qc-info-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

/* 整机台账证书字段：值和「改」同一行 */
.qc-info-value { display: flex; align-items: center; gap: 10px; }
.qc-info-value strong { flex: 0 1 auto; }
.qc-info-value .code-edit-btn { margin: 0; flex: 0 0 auto; }

/* 证书信息块：一次改三个字段 */
.qc-info-block { display: block; }
.qc-info-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.qc-info-head .code-edit-btn { margin: 0; }
.qc-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.qc-info-grid .qc-info-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qc-info-grid .qc-info-field strong { font-size: 15px; word-break: break-all; }
.qc-info-actions { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 720px) { .qc-info-grid { grid-template-columns: 1fr; } }

/* ===== 整机台账详情：新版排版 ===== */
.qc-unit-detail-page { display: flex; flex-direction: column; gap: 14px; }
.qc-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qc-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; padding: 22px 24px; background: #fff; border: 1px solid #e5eaf1; border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.qc-hero-main { min-width: 0; }
.qc-hero-code { font-size: 13px; letter-spacing: .08em; color: #1f6fb2; font-weight: 600; }
.qc-hero-title { margin: 4px 0 8px; font-size: 24px; line-height: 1.25; color: #14283d; }
.qc-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qc-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #eef3fb; color: #1f4fd1; font-size: 12px; font-weight: 600; }
.qc-tag.ok { background: #e9f8ef; color: #067647; }
.qc-tag.muted { background: #f2f4f7; color: #667085; font-weight: 500; }
.qc-hero-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 240px; }
.qc-hero-progress { width: 240px; }
.qc-hero-progress-text { font-size: 12px; color: #667085; margin-bottom: 6px; }
.qc-hero-progress-text b { font-size: 20px; color: #14283d; }
.qc-hero-bar { height: 6px; border-radius: 999px; background: #edf1f6; overflow: hidden; }
.qc-hero-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f9e6f, #12b76a); }
.qc-hero-percent { display: block; margin-top: 6px; font-size: 12px; color: #475467; text-align: right; }
.qc-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qc-panel { background: #fff; border: 1px solid #e5eaf1; border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.qc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qc-panel-head h2 { margin: 0; font-size: 15px; color: #14283d; }
.qc-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.qc-info-item { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qc-info-item.qc-info-wide { grid-column: 1 / -1; }
.qc-info-label { font-size: 12px; color: #8b98a9; }
.qc-info-value-text { font-size: 15px; color: #14283d; font-weight: 600; word-break: break-word; }
.qc-info-panel .qc-info-head { margin-bottom: 12px; }
.qc-info-panel .qc-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qc-check-panel { padding-bottom: 8px; }
.qc-check-summary { font-size: 12px; color: #667085; }
.qc-check-panel .qc-unit-group { border: 1px solid #eef2f6; border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.qc-check-panel .qc-unit-group-head { background: #f8fafc; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qc-check-panel .qc-unit-group-head h3 { margin: 0; font-size: 14px; }
.qc-check-panel .qc-unit-group-count { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #475467; background: transparent; }
.qc-check-panel .qc-unit-group-count b { font-weight: 600; }
.qc-unit-item { padding: 12px 14px; }
@media (max-width: 900px) {
  .qc-detail-columns { grid-template-columns: 1fr; }
  .qc-hero { flex-direction: column; }
  .qc-hero-side { align-items: flex-start; }
  .qc-hero-progress { width: 100%; }
  .qc-info-panel .qc-info-grid { grid-template-columns: 1fr; }
}

/* 分组完成度：进度条 + 数字 */
.qc-check-panel .qc-unit-group-count { position: static; display: flex; align-items: center; gap: 8px; background: transparent; }
.qc-unit-group-bar { display: block; width: 64px; height: 4px; border-radius: 999px; background: #e4e9f0; overflow: hidden; }
.qc-check-panel .qc-unit-group-bar i { display: block; height: 100%; border-radius: 999px; background: #12b76a; }
.qc-check-panel .qc-unit-group-count b { font-size: 12px; color: #475467; }

/* 证书字段：输入框跟普通单行输入一样高，别被 flex 撑成一大块 */
/* 原来 .qc-info-input 写了 flex: 1 1 160px，而 .qc-info-field 是竖向 flex，
   等于给输入框设了 160px 的「最小高度」，三个框全被撑成一大格。 */
.qc-info-grid { grid-template-columns: repeat(3, minmax(0, 320px)); }
.qc-info-panel .qc-info-grid { grid-template-columns: repeat(3, minmax(0, 320px)); }
.qc-info-grid .qc-info-field { align-self: start; }
.qc-info-input { flex: 0 0 auto; width: 100%; height: 34px; box-sizing: border-box; }

/* 运维台：PDF 打印自检结果 */
.pdf-doctor-panel { width: min(760px, 92vw); max-width: 760px; }
.pdf-doctor-text {
  white-space: pre-wrap; word-break: break-word;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12.5px; line-height: 1.65;
  background: #0f172a; color: #e2e8f0;
  padding: 14px 16px; border-radius: 12px;
  max-height: 58vh; overflow: auto; margin: 10px 0 0;
}
.pdf-doctor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ---------- 生产任务树看板 ---------- */
.task-tree-page { padding-bottom: 48px; }
.tt-toolbar {
  display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin: 0 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  position: sticky; top: 0; z-index: 6;
}
.tt-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.tt-toolbar-row.sub { padding-top: 7px; border-top: 1px dashed #e6edf4; }
.tt-hint { font-size: 11.5px; color: var(--muted); }
.tt-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-stat {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 3px 9px; border-radius: 999px; background: #f2f6fa; border: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}
.tt-stat b { font-size: 13px; color: #22303c; }
.tt-stat.warn b { color: #b1781d; }
.tt-stat.ok b { color: #2f7a45; }
.tt-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-tools .order-input { width: auto; height: 32px; padding: 5px 9px; font-size: 12.5px; }
.tt-tools select.order-input { width: 132px; }
.tt-tools .tt-search { width: 244px; }
.tt-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #42505e; cursor: pointer; }

.tt-trees { display: flex; flex-direction: column; gap: 16px; }
.tt-tree { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tt-tree-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; background: #f7fafd; border-bottom: 1px solid var(--line); cursor: pointer;
}
.tt-tree.collapsed .tt-tree-head { border-bottom: 0; }
.tt-tree-head:hover { background: #f0f6fc; }
.tt-sec-toggle {
  width: 20px; height: 20px; border: 0; background: transparent; color: #5c6b79;
  font-size: 12px; cursor: pointer; padding: 0; line-height: 1;
}
.tt-order { font-size: 13px; color: var(--navy); letter-spacing: .2px; }
.tt-customer { font-size: 12px; color: #42505e; }
.tt-due { font-size: 11.5px; color: var(--muted); }
.tt-progress { width: 110px; height: 6px; border-radius: 999px; background: #e6edf4; overflow: hidden; }
.tt-progress i { display: block; height: 100%; background: #4c9a63; border-radius: 999px; }
.tt-progress-text { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tt-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: #eef3f8; color: #4a5a68; border: 1px solid transparent;
}
.tt-chip.ok { background: #e9f4ec; color: #2f7a45; }
.tt-chip.warn { background: #fdf3e2; color: #a9741c; }
.tt-chip.bad { background: #fdecec; color: #b4453f; }
.tt-chip.info { background: #eaf2fb; color: #2f6fb3; }
.tt-chip.muted { background: #f1f4f7; color: #7b8794; }

.tt-scroll { overflow-x: auto; overflow-y: hidden; padding: 14px 16px 16px; background: #fcfdfe; }
.tt-canvas { position: relative; }
.tt-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.tt-edge { fill: none; stroke: #a2b8cc; stroke-width: 1.7; }
.tt-edge.done { stroke: #8fb79c; }
.tt-edge.spine { stroke: #9fb4c8; stroke-width: 1.7; }
.tt-zoom { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; }
.tt-zoom-text { min-width: 38px; text-align: center; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.tt-node {
  --tt-accent: #8fa3b6;
  position: absolute; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 2px;
  padding: 8px 12px 7px 11px; border: 1px solid #dbe4ed; border-left: 3px solid var(--tt-accent);
  border-radius: 10px; background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 40, 60, .04);
  transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}
.tt-node.compact { justify-content: center; gap: 4px; padding: 7px 11px 7px 10px; }
.tt-node.compact .tt-node-title { -webkit-line-clamp: 4; line-height: 17px; }
.tt-node.compact .tt-node-meta { line-height: 16px; }
.tt-node:hover { border-color: #9dc0e2; box-shadow: 0 4px 14px rgba(24, 60, 100, .13); transform: translateY(-1px); z-index: 3; }
.tt-node.ok { --tt-accent: #4c9a63; }
.tt-node.warn { --tt-accent: #d9a13b; }
.tt-node.info { --tt-accent: #2f6fb3; }
.tt-node.bad { --tt-accent: #c0504d; }
.tt-node.muted { --tt-accent: #b3bfca; }
.tt-node.ghost { border-style: dashed; background: #fbfcfe; }
.tt-node.ghost .tt-node-title { color: #6b7885; }
.tt-node.cancelled { opacity: .55; }
.tt-node-top { display: flex; align-items: flex-start; gap: 6px; min-height: 18px; }
.tt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tt-accent); flex: 0 0 auto; margin-top: 5px; }
.tt-node-title {
  flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; color: #22303c; line-height: 17px;
  white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tt-node-meta {
  font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-tag {
  flex: 0 0 auto; padding: 1px 5px; border-radius: 6px; font-size: 10px; line-height: 1.5;
  background: #fdecec; color: #b4453f; border: 1px solid #f3d2cf;
}
.tt-tag.change-add { background: #e9f4ec; color: #2f7a45; border-color: #cbe5d3; }
.tt-tag.change-remove { background: #f1f4f7; color: #7b8794; border-color: #e1e7ee; }
.tt-tag.design-add { background: #eaf2fb; color: #2f6fb3; border-color: #cfe2f5; }
.tt-tag.urgent { background: #fdecec; color: #b4453f; border-color: #f3d2cf; }

/* 详细卡片里那几行：任务号 / 负责人 / 内容 / 状态 / 备注 */
.tt-node-no { font-size: 10.5px; color: #97a4b2; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-node-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: 11.5px; color: #33414f; overflow: hidden; white-space: nowrap; }
.tt-node-line b { font-weight: 600; color: #22303c; }
.tt-node-line.spec { white-space: normal; max-height: 32px; }
.tt-node-spec { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 16px; white-space: normal; }
.tt-k { flex: 0 0 auto; font-size: 10.5px; color: #8b98a6; }
.tt-muted { color: #8b98a6; }
.tt-node-foot { display: flex; align-items: center; gap: 6px; font-size: 10.5px; margin-top: 1px; }
.tt-status { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; background: #eef3f8; color: #4a5a68; }
.tt-status.ok { background: #e9f4ec; color: #2f7a45; }
.tt-status.warn { background: #fdf3e2; color: #a9741c; }
.tt-status.info { background: #eaf2fb; color: #2f6fb3; }
.tt-status.bad { background: #fdecec; color: #b4453f; }
.tt-status.muted { background: #f1f4f7; color: #7b8794; }
.tt-node-note {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 1px; padding: 3px 6px; border-radius: 6px; background: #f7fafd;
  font-size: 11px; line-height: 1.45; color: #5a6876;
}
.tt-node-note.empty { background: transparent; padding: 0; color: #aab5c0; }
.tt-node-note .tt-k { margin-right: 5px; }
.tt-node-origin, .tt-node-result { display: flex; gap: 5px; font-size: 11px; color: #5a6876; white-space: nowrap; overflow: hidden; }
.tt-node-origin-text, .tt-node-result-text { overflow: hidden; text-overflow: ellipsis; }
.tt-node-event { font-size: 10.5px; color: #a3aeba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-attach {
  flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; font-size: 10px;
  background: #f2f6fa; border: 1px solid var(--line); color: #5a6876;
}
.tt-events-toggle {
  margin-left: auto; flex: 0 0 auto; border: 0; background: transparent; padding: 0 1px;
  font-size: 10.5px; color: #2f6fb3; cursor: pointer;
}
.tt-events-toggle:hover { text-decoration: underline; }
.tt-events-toggle.on { color: #7b8794; }
.tt-events {
  margin-top: 6px; padding-top: 5px; border-top: 1px dashed #e3eaf2; overflow: hidden;
}
.tt-event { display: flex; align-items: baseline; gap: 6px; height: 15px; line-height: 15px; font-size: 10.5px; color: #5a6876; white-space: nowrap; }
.tt-event-time { flex: 0 0 auto; color: #97a4b2; font-variant-numeric: tabular-nums; }
.tt-event-action { flex: 0 0 auto; font-weight: 600; color: #33414f; }
.tt-event-text { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; color: #6b7885; }
.tt-density { display: inline-flex; gap: 4px; }
.tt-node-toggle {
  position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px;
  border: 1px solid #d5e0ea; background: #fff; color: #516373;
  font-size: 11px; line-height: 1; cursor: pointer; z-index: 2;
  box-shadow: 0 1px 3px rgba(20, 40, 60, .1);
}
.tt-node-toggle:hover { border-color: #9dc0e2; color: #2f6fb3; }
.tt-node-toggle.collapsed { background: #eef4fb; color: #2f6fb3; }

.tt-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.tt-skeleton-row { height: 52px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9, #f8fbfd, #f1f5f9); background-size: 200% 100%; animation: tt-shimmer 1.4s infinite linear; }
@keyframes tt-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.task-card-focus {
  outline: 2px solid #2f6fb3;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(47, 111, 235, .14);
  animation: task-focus-pulse 1.1s ease-in-out 2;
}
@keyframes task-focus-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(47, 111, 235, .14); }
  50% { box-shadow: 0 0 0 10px rgba(47, 111, 235, .05); }
}

/* 发货清单（手机端优先） */
.ship-page { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ship-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ship-toolbar h1 { margin: 0; font-size: 22px; color: var(--navy); }
.ship-toolbar-title { display: flex; align-items: baseline; gap: 10px; }
.ship-toolbar-title span { color: #7b8ca1; font-size: 13px; }
.ship-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ship-search { flex: 1 1 180px; min-width: 140px; height: 34px; border: 1px solid #dce4ee; border-radius: 8px; padding: 0 10px; font-size: 13px; }
.ship-cards { display: flex; flex-direction: column; gap: 10px; }
.ship-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%;
  padding: 12px 14px; border: 1px solid #e2e9f2; border-radius: 12px; background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 40, 70, .04);
}
.ship-card:hover { border-color: #c9d8ea; box-shadow: 0 4px 14px -8px rgba(20, 40, 70, .3); }
.ship-card.is-ready { border-color: #f0d9b5; background: #fffdf8; }
.ship-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ship-card-top strong { font-size: 16px; color: var(--navy); }
.ship-card-customer { color: #48586b; font-size: 13px; }
.ship-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #8593a4; font-size: 12px; }
.ship-card-banner { margin-top: 2px; padding: 6px 9px; border-radius: 8px; background: #fff4e5; color: #9a6317; font-size: 12px; }
.ship-empty { padding: 26px; text-align: center; color: #96a3b3; background: #fff; border: 1px dashed #dfe6ef; border-radius: 12px; }
.ship-error { padding: 10px 12px; border-radius: 8px; background: #fdf0ef; color: #a33; font-size: 13px; }
.ship-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ship-head-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ship-head-title strong { font-size: 20px; color: var(--navy); }
.ship-head-title span { color: #68798d; font-size: 13px; }
.ship-progress { display: flex; flex-direction: column; gap: 5px; }
.ship-progress-bar { height: 8px; border-radius: 999px; background: #e8eef6; overflow: hidden; }
.ship-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4c9a63, #7bc08f); }
.ship-progress-text { color: #6d7f93; font-size: 12px; }
.ship-ready-banner { padding: 10px 14px; border-radius: 10px; background: #fff3e0; border: 1px solid #f4d8ae; color: #9a5b0a; font-weight: 600; }
.ship-shipped-banner { padding: 10px 14px; border-radius: 10px; background: #eef8f1; border: 1px solid #cfe8d7; color: #2f6b43; }
.ship-collecting-banner { padding: 10px 14px; border-radius: 10px; background: #f4f7fb; border: 1px solid #e2e9f2; color: #63758a; font-size: 13px; }
.ship-section { background: #fff; border: 1px solid #e2e9f2; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 13px; }
.ship-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ship-section-head h2 { margin: 0; font-size: 16px; color: var(--navy); }
.ship-section-count { color: #8593a4; font-size: 12px; }
.ship-separate-section { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 0; }
.ship-separate-section .ship-section-head { padding: 0 2px 10px; }
.ship-separate-section .ship-separate-table-wrap {
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 68, .04);
}
.ship-separate-section .ship-empty { border: 1px dashed #dfe7f1; border-radius: 12px; background: #fff; }
.ship-item { display: flex; gap: 10px; padding: 10px; border: 1px solid #e8eef6; border-radius: 10px; background: #fbfdff; }
.ship-item.is-verified { border-color: #d5e9dc; background: #f7fcf8; }
.ship-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ship-item-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ship-item-title strong { font-size: 14px; color: #2c3d52; }
.ship-item-model { color: #7b8ca1; font-size: 12px; }
.ship-qty { color: #47596e; font-size: 12px; font-weight: 600; }
.ship-item-meta { color: #93a0af; font-size: 11.5px; }
.ship-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 92px; }
.ship-separate-table-wrap {
  overflow-x: auto;
  margin-top: 2px;
}
.ship-separate-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}
.ship-separate-table th,
.ship-separate-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eff6;
  text-align: left;
  vertical-align: middle;
}
.ship-separate-table th {
  background: linear-gradient(180deg, #f9fcff, #f1f6fc);
  color: #63768c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border-bottom-color: #dfe8f2;
}
.ship-separate-table th:first-child { border-top-left-radius: 9px; }
.ship-separate-table th:last-child { border-top-right-radius: 9px; }
.ship-separate-table th:nth-child(1) { width: 6%; }
.ship-separate-table th:nth-child(2) { width: 11%; }
.ship-separate-table th:nth-child(3) { width: 25%; }
.ship-separate-table th:nth-child(4) { width: 15%; }
.ship-separate-table th:nth-child(5) { width: 8%; }
.ship-separate-table th:nth-child(6) { width: 14%; }
.ship-separate-table th:nth-child(7) { width: 13%; }
.ship-separate-table th:nth-child(8) { width: 8%; }
.ship-separate-table tbody tr { transition: background .15s ease; }
.ship-separate-table tbody tr:hover td { background: #f8fbff; }
.ship-separate-table tbody tr:nth-child(even):not(.is-verified) td { background: #fcfdff; }
.ship-separate-table tbody tr:last-child td { border-bottom: 0; }
.ship-separate-table tbody tr.is-verified td { background: #f7fcf9; }
.ship-separate-table tbody tr.is-verified td:first-child { box-shadow: inset 3px 0 0 #5aaa7e; }
.ship-separate-index { text-align: center !important; }
.ship-separate-index-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f0f5fb;
  color: #6b7f95;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ship-separate-title strong {
  display: block;
  color: #243b52;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ship-separate-model { color: #5f7187; line-height: 1.45; overflow-wrap: anywhere; }
.ship-separate-qty { white-space: nowrap; color: #223a52; font-weight: 600; font-variant-numeric: tabular-nums; }
.ship-separate-unit { margin-left: 3px; color: #8595a8; font-weight: 400; }
.ship-separate-completed strong { display: block; color: #455b72; font-size: 12px; font-weight: 500; line-height: 1.45; }
.ship-separate-date { display: block; margin-top: 2px; color: #96a4b4; font-size: 10.5px; }
.ship-separate-photos { min-width: 0; }
.ship-photo-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d9e5f4;
  background: #f6f9fe;
  color: #5b7590;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.ship-photo-state.is-done { border-color: #cfe6d9; background: #f3fbf6; color: #3c7a5d; }
.ship-photo-state.is-empty { border-color: #f0d9b5; background: #fffaf0; color: #9a6a1c; }
.ship-photo-state:disabled { opacity: .55; cursor: not-allowed; }
span.ship-photo-state { cursor: default; }
.ship-separate-verify { text-align: center !important; }
.ship-separate-verify .btn { min-height: 29px; min-width: 52px; padding: 0 11px; font-size: 11px; border-radius: 7px; white-space: nowrap; }
.ship-verify-btn { white-space: nowrap; }
.ship-separate-verify .chip { font-size: 10.5px; }
.ship-box-select { height: 30px; border: 1px solid #dce4ee; border-radius: 7px; font-size: 12px; padding: 0 6px; }
.ship-photos { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ship-photo { position: relative; width: 62px; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid #e2e9f2; }
.ship-photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ship-photo-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  border: 0; background: rgba(20, 30, 45, .55); color: #fff; font-size: 12px; line-height: 1; cursor: pointer;
}
.ship-photo-add {
  min-width: 62px; height: 62px; border-radius: 8px; border: 1px dashed #c8d6e6; background: #f7fafd;
  color: #5b7590; font-size: 11px; cursor: pointer; padding: 0 6px;
}
.ship-photo-add:disabled { opacity: .5; cursor: not-allowed; }
.ship-unboxed { border: 1px dashed #e0c9a0; background: #fffdf7; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ship-unboxed-title { color: #9a6a1c; font-size: 12px; font-weight: 600; }
.ship-boxes { display: flex; flex-direction: column; gap: 10px; }
.ship-box { border: 1px solid #e2e9f2; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fcfdff; }
.ship-box.is-sealed { border-color: #cfe8d7; background: #f8fdf9; }
.ship-box-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ship-box-head strong { font-size: 14px; color: var(--navy); }
.ship-box-label { color: #68798d; font-size: 12px; }
.ship-box-count { color: #93a0af; font-size: 11.5px; margin-left: auto; }
.ship-box-items { display: flex; flex-direction: column; gap: 6px; }
.ship-box-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; background: #f4f8fd; font-size: 12.5px; }
.ship-box-item-photos { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.ship-box-item-thumb { width: 26px; height: 26px; object-fit: cover; border-radius: 5px; border: 1px solid #e2e9f2; cursor: zoom-in; }
.ship-box-item-name { color: #33465c; }
.ship-box-item-qty { color: #6d7f93; }
.ship-box-empty { color: #9aa7b6; font-size: 12px; padding: 8px; border: 1px dashed #e1e8f1; border-radius: 8px; }
.ship-box-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ship-add-box { align-self: flex-start; }
.ship-hint { color: #93a0af; font-size: 12px; }
.ship-ship-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ship-ship-hint { color: #a33; font-size: 12px; }
.ship-confirm-btn { min-height: 40px; padding: 0 18px; }
.ship-photo-view {
  position: fixed; inset: 0; z-index: 120; background: rgba(10, 18, 28, .82);
  display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.ship-photo-view img { max-width: 100%; max-height: 100%; border-radius: 8px; }
/* 提交成果里的发货三选一 */
.tp-shipping {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px; border: 1px dashed #d8e2ee; border-radius: 10px; background: #fafcff;
}
.tp-shipping-title { color: #3c4d61; font-size: 13px; font-weight: 600; }
.tp-shipping-mode { margin: 0; }
.tp-shipping-hint { color: #93a0af; font-size: 11.5px; }
@media (max-width: 720px) {
  .ship-page { padding: 0 2px 96px; gap: 10px; }
  .ship-toolbar h1 { font-size: 20px; }
  .ship-section { padding: 12px; border-radius: 12px; }
  .ship-item { flex-direction: column; align-items: stretch; }
  .ship-item-side { flex-direction: row; align-items: center; justify-content: flex-end; }
  .ship-box-select { height: 34px; }
  .ship-photo, .ship-photo-add { width: 72px; height: 72px; }
  .ship-confirm-btn { width: 100%; }
  .ship-head-title strong { font-size: 18px; }
}
/* 非标产品台账 */
.nonstd-page .list-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nonstd-page .list-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.nonstd-page .list-tools { display: flex; gap: 8px; }
.nonstd-page .list-search { min-width: 220px; }
.nonstd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.nonstd-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.nonstd-card.invalid { border-color: #e8b4ae; background: #fff8f7; }
.nonstd-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.nonstd-card-head strong { font-size: 15px; }
.nonstd-card-title { font-weight: 600; margin: 4px 0; }
.nonstd-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.nonstd-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.nonstd-detail { max-width: 1180px; }
.nonstd-detail .card {
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 39, 68, .04);
}
.nonstd-detail .pad { padding: 20px 22px; }
.nonstd-detail .detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.nonstd-detail .detail-head h1 { font-size: 22px; margin: 0 6px 0 0; letter-spacing: -.01em; }
.nonstd-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.nonstd-form-grid .field { margin-bottom: 0; }
.nonstd-form-grid .field > span { margin-bottom: 6px; color: #6b7f95; font-size: 11.5px; }
.nonstd-required-mark { color: #c0504d; font-style: normal; }
.nonstd-field { margin-bottom: 0; min-width: 0; }
.nonstd-detail .nonstd-detail-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.nonstd-detail-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nonstd-back { padding-left: 0; margin-bottom: 2px; color: #5f7187; }
.nonstd-form-card { display: flex; flex-direction: column; }
.nonstd-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #eef2f7; }
.nonstd-card-heading h2 { margin: 0; font-size: 16px; color: var(--navy); font-weight: 600; }
.nonstd-card-heading p { margin: 5px 0 0; color: #8b99aa; font-size: 11.5px; }
.nonstd-note-field { margin-top: 18px; }
.nonstd-form-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef2f7; }
.nonstd-files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nonstd-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #e6edf5; border-radius: 10px; background: #fbfdff; flex-wrap: wrap; }
.nonstd-file-actions { display: flex; gap: 6px; }
.nonstd-upload { margin-top: 12px; }
.link-like { color: var(--primary, #2563eb); font-size: 13px; }
@media (max-width: 900px) {
  .nonstd-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nonstd-form-grid { grid-template-columns: 1fr; }
  .nonstd-page .list-search { min-width: 0; width: 100%; }
  .nonstd-list { grid-template-columns: 1fr; }
}
.nonstd-desktop { display: block; }
.nonstd-mobile { display: none; }
.nonstd-table-wrap { overflow-x: hidden; }
.nonstd-table { width: 100%; min-width: 0; table-layout: fixed; }
.nonstd-table th, .nonstd-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 7px 8px; }
.nonstd-table .nonstd-col-project { width: 18%; }
.nonstd-table .nonstd-col-dest { width: 12%; }
.nonstd-table .nonstd-col-open { width: 56px; text-align: right; color: var(--primary, #2563eb); }
.nonstd-table .list-data-row { cursor: pointer; }
.nonstd-table .list-data-row.invalid td { background: #fff8f7; }
.nonstd-detail-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.8fr); gap: 16px; align-items: start; }
.nonstd-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.nonstd-status-card { background: #fbfdff; }
.nonstd-detail .section-title { color: #33465c; font-size: 13.5px; font-weight: 600; }
.nonstd-detail .section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nonstd-status-card .section-title { margin-bottom: 10px; }
.nonstd-status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nonstd-status-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nonstd-status-actions .btn { width: auto; min-width: 132px; }
.nonstd-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nonstd-file-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #33465c; }
@media (max-width: 900px) {
  .nonstd-desktop { display: none; }
  .nonstd-mobile { display: block; }
  .nonstd-detail-layout { grid-template-columns: 1fr; }
}
.production-col-picker { position: relative; }
.production-col-backdrop { position: fixed; inset: 0; z-index: 70; background: transparent; }
.production-col-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 71; width: 300px; max-height: 70vh; overflow: auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 40, 62, .16); }
.production-col-pop-head { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.production-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 13px; }
.production-col-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
/* 问题反馈：归类 + 跟踪 + 提交人确认/重新打开（2026-11-25） */
.feedback-category-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedback-category-row label { color: var(--muted); font-size: 12px; }
.feedback-category { min-width: 150px; }
.feedback-author { color: var(--ink); font-weight: 600; }
.feedback-tracking { margin-top: 9px; border-top: 1px dashed var(--line); padding-top: 7px; }
.feedback-tracking > summary { cursor: pointer; color: var(--muted); font-size: 11.5px; }
.feedback-event-list { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; }
.feedback-event { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--muted); }
.feedback-event-action { color: var(--ink); font-weight: 600; flex: none; }
.feedback-event-meta { flex: none; }
.feedback-event-status { color: #4d6d8c; }
.feedback-event-note { flex: 1 1 100%; padding: 4px 8px; background: #f6f9fc; border-radius: 6px; color: #44586d; white-space: pre-wrap; }
.feedback-follow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.feedback-follow-form { flex: 1 1 100%; display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.feedback-follow-form textarea { width: 100%; min-height: 64px; resize: vertical; }
/* 问题反馈提交表单：分类胶囊、字数、拖拽区、附件卡片（2026-11-25） */
.feedback-form-card { overflow: hidden; }
.feedback-form { gap: 18px; padding: 4px 18px 18px; }
.feedback-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feedback-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.feedback-label { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-size: 12.5px; font-weight: 600; }
.feedback-required { color: #d92d20; font-weight: 700; }
.feedback-field-tip, .feedback-char-count { color: var(--muted); font-size: 11px; }
.feedback-char-count { font-variant-numeric: tabular-nums; }
.feedback-category-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-category-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 13px; border: 1px solid #dbe5f0; border-radius: 9px;
  background: #f8fbff; color: #44586d; font: inherit; font-size: 12.5px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.feedback-category-btn:hover { border-color: #a9c4e8; background: #f1f8ff; color: var(--navy); }
.feedback-category-btn.is-on { border-color: #7fa9e8; background: #eaf3ff; color: #245b9e; box-shadow: 0 0 0 2px rgba(65, 118, 230, .10); font-weight: 600; }
.feedback-category-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #94a3b8; }
.feedback-category-dot[data-category="bug"] { background: #e5484d; }
.feedback-category-dot[data-category="data"] { background: #f59e0b; }
.feedback-category-dot[data-category="operation"] { background: #3b82f6; }
.feedback-category-dot[data-category="suggestion"] { background: #10b981; }
.feedback-category-dot[data-category="other"] { background: #94a3b8; }
.feedback-textarea {
  width: 100%; min-height: 150px; resize: vertical; line-height: 1.65;
  padding: 12px 13px; border-radius: 10px; background: #fcfdff; font-size: 13px;
}
.feedback-textarea:focus { background: #fff; border-color: #7fa9e8; box-shadow: 0 0 0 3px rgba(65, 118, 230, .10); outline: none; }
.feedback-dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 24px 16px; border: 1.5px dashed #c4d5e8; border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%); text-align: center; cursor: pointer; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s; user-select: none;
}
.feedback-dropzone:hover, .feedback-dropzone:focus-visible { border-color: #7fa9e8; background: #f1f8ff; box-shadow: 0 0 0 3px rgba(65, 118, 230, .08); }
.feedback-dropzone.is-drag { border-color: var(--blue); background: #eaf3ff; box-shadow: 0 0 0 3px rgba(65, 118, 230, .12); }
.feedback-dropzone-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; background: #e4f0ff; color: #2d6cdf; box-shadow: inset 0 0 0 1px rgba(45, 108, 223, .08);
}
.feedback-dropzone-icon svg { width: 22px; height: 22px; }
.feedback-dropzone strong { color: var(--navy); font-size: 13.5px; line-height: 20px; }
.feedback-dropzone > span { color: var(--muted); font-size: 11.5px; line-height: 18px; }
.feedback-dropzone-actions { margin-top: 7px; }
.feedback-selected-list { display: flex; flex-direction: column; gap: 7px; }
.feedback-selected-title { color: var(--muted); font-size: 11.5px; }
.feedback-selected-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.feedback-selected-card {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 58px;
  padding: 7px; border: 1px solid #dbe7f4; border-radius: 10px; background: #fbfdff;
}
.feedback-selected-card > img { width: 42px; height: 42px; flex: none; object-fit: cover; border-radius: 7px; border: 1px solid #e2eaf4; }
.feedback-selected-fallback { width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #eef4fb; color: #5b7b9d; }
.feedback-selected-fallback svg { width: 20px; height: 20px; }
.feedback-selected-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.feedback-selected-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33475b; font-size: 11.5px; }
.feedback-selected-size { color: var(--muted); font-size: 10.5px; }
.feedback-selected-remove {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; padding: 0; border: 1px solid #e2c4c4;
  border-radius: 50%; background: #fff; color: #b74a4a; font-size: 14px; line-height: 18px; text-align: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 40, 70, .10);
}
.feedback-selected-remove:hover { background: #fff2f2; border-color: #d99a9a; }
.feedback-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.feedback-submit-hint { color: var(--muted); font-size: 11.5px; }
.feedback-kbd { display: inline-block; padding: 1px 5px; border: 1px solid #dbe3ec; border-bottom-width: 2px; border-radius: 4px; background: #f7f9fc; color: #5b6b7f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }
.feedback-submit-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.feedback-submit-status { color: #8a6d3b; font-size: 11.5px; }
.feedback-submit-btn { min-width: 124px; height: 38px; border-radius: 9px; font-weight: 600; }
.feedback-submit-btn:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
@media (max-width: 700px) {
  .feedback-form { padding-left: 12px; padding-right: 12px; }
  .feedback-category-btn { flex: 1 1 calc(50% - 8px); }
  .feedback-selected-grid { grid-template-columns: 1fr; }
  .feedback-submit-row { align-items: stretch; flex-direction: column; }
  .feedback-submit-actions { margin-left: 0; justify-content: flex-end; }
  .feedback-submit-btn { flex: 1; }
  .feedback-dropzone { padding: 20px 12px; }
}
/* 重新派发：可搜索负责人，不再靠下拉框逐个找 */
.task-reassign-field { display: flex; flex-direction: column; gap: 7px; }
.task-reassign-label { color: var(--navy); font-size: 12.5px; font-weight: 600; }
.task-reassign-search { width: 100%; }
.task-reassign-list {
  display: flex; flex-direction: column; gap: 5px; max-height: 280px; overflow: auto;
  padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff;
}
.task-reassign-option {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 6px 9px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; text-align: left;
  font: inherit; cursor: pointer;
}
.task-reassign-option:hover { background: #eef6ff; border-color: #d7e7f8; }
.task-reassign-option.is-on { background: #eaf3ff; border-color: #8fb6e8; }
.task-reassign-avatar {
  width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #e4f0ff; color: #2d6cdf; font-size: 12px; font-weight: 700;
}
.task-reassign-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.task-reassign-meta strong { color: #26384c; font-size: 12.5px; }
.task-reassign-meta span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-reassign-check { color: #2d6cdf; font-weight: 700; }
.task-reassign-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 12px; }.ship-separate-code { color: #245b9e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; white-space: nowrap; }
.ship-item-code { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-right: 5px; border-radius: 5px; background: #eef5fd; color: #2f5f91; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }/* 全部反馈：按问题分类统一筛选 */
.feedback-history-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.feedback-filter-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px;
  border: 1px solid #dbe5f0; border-radius: 999px; background: #f8fbff; color: #52667b;
  font: inherit; font-size: 11.5px; cursor: pointer; transition: .15s ease;
}
.feedback-filter-chip:hover { border-color: #a9c4e8; background: #f1f8ff; color: var(--navy); }
.feedback-filter-chip.is-on { border-color: #7fa9e8; background: #eaf3ff; color: #245b9e; font-weight: 600; }
.feedback-filter-count {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #eef3f9;
  color: #7b8a9e; font-size: 10px; line-height: 17px; text-align: center; font-weight: 500;
}
.feedback-filter-chip.is-on .feedback-filter-count { background: #d8e9ff; color: #2d6cdf; }
@media (max-width: 700px) { .feedback-history-filters { padding-left: 10px; padding-right: 10px; } }.feedback-no { flex: none; color: #7b8a9e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }/* 重新派发：把原任务内容带入，只改不对的地方 */
.task-reassign-edit { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.task-reassign-edit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.task-reassign-edit-head strong { color: var(--navy); font-size: 12.5px; }
.task-reassign-edit-head span { color: var(--muted); font-size: 11px; }
.task-reassign-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.task-reassign-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.task-reassign-field > span { color: #52667b; font-size: 11.5px; }
.task-reassign-items { display: flex; flex-direction: column; gap: 7px; }
.task-reassign-items-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-reassign-items-head > span { color: #52667b; font-size: 11.5px; }
.task-reassign-item { display: flex; align-items: center; gap: 7px; }
.task-reassign-item-no { width: 20px; flex: none; color: var(--muted); font-size: 11px; text-align: center; }
.task-reassign-item-input { flex: 1 1 auto; min-width: 0; }
.task-reassign-shipping { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 10px; border-radius: 8px; background: #f7faff; }
.task-reassign-shipping-title { color: #52667b; font-size: 11.5px; }
.task-reassign-radio { display: inline-flex; align-items: center; gap: 5px; color: #33475b; font-size: 11.5px; cursor: pointer; }
.task-reassign-hint { color: var(--muted); font-size: 11px; }
@media (max-width: 640px) { .task-reassign-fields { grid-template-columns: 1fr; } }/* 反馈导出：按分类/状态/日期/关键词筛选 */
.feedback-history-head { align-items: flex-start; gap: 10px; }
.feedback-history-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.feedback-history-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.feedback-export-modal { width: min(620px, 94vw); }
.feedback-export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-export-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11.5px; }
.feedback-export-field > span { color: #52667b; font-weight: 600; }
.feedback-export-keyword { margin-top: 12px; }
.feedback-export-preview { margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: #f1f7ff; color: #45627f; font-size: 11.5px; }
.feedback-export-preview strong { color: #245b9e; font-size: 13px; }
@media (max-width: 640px) { .feedback-export-grid { grid-template-columns: 1fr; } .feedback-history-actions { width: 100%; } .feedback-history-actions .btn { width: 100%; } }.feedback-order-field { max-width: 420px; }
.feedback-order-input { width: 100%; }
.feedback-order-no { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: #eef5fd; color: #2f5f91; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }.feedback-export-photos { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #52667b; font-size: 11.5px; cursor: pointer; }
.feedback-export-photos input { accent-color: var(--blue); }/* 反馈导出日期：默认收起，快捷范围 + 自定义展开 */
.feedback-export-date-wrap { grid-column: 1 / -1; }
.feedback-export-date { display: flex; flex-direction: column; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.feedback-export-date-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.feedback-export-date-summary { color: #2f5f91; font-size: 11.5px; font-weight: 600; }
.feedback-export-date-toggle { padding: 0; border: 0; background: none; color: var(--blue); font-size: 11px; cursor: pointer; }
.feedback-export-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-export-preset { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #52667b; font-size: 11px; cursor: pointer; }
.feedback-export-preset.is-on { border-color: var(--blue); background: #eaf3ff; color: #245b9e; font-weight: 600; }
.feedback-export-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.feedback-export-date-field { display: flex; align-items: center; gap: 7px; min-width: 0; color: #52667b; font-size: 11.5px; }
.feedback-export-date-field input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { .feedback-export-date-grid { grid-template-columns: 1fr; } }.tt-tag.ghost { background: #f0f2f5; color: #7b8794; border: 1px solid #e1e5ea; }/* 任务树：整单只读视图 */
.tt-readonly-open { flex: none; margin-left: 4px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #52667b; font-size: 10.5px; cursor: pointer; }
.tt-readonly-open:hover { border-color: var(--blue); color: var(--blue); }
.tt-readonly-modal { width: min(900px, 96vw); max-height: 88vh; }
.tt-readonly-body { padding: 12px 18px; overflow: auto; }
.tt-readonly-list { display: flex; flex-direction: column; gap: 8px; }
.tt-readonly-item { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.tt-readonly-item.is-cancelled { opacity: .6; background: #fafbfc; }
.tt-readonly-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tt-readonly-head strong { color: #1f3a56; font-size: 12.5px; }
.tt-readonly-no { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }
.tt-readonly-meta { margin-top: 4px; color: #52667b; font-size: 11px; }
.tt-readonly-text { margin-top: 4px; color: #33475b; font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; }
.tt-readonly-hint { margin-right: auto; color: var(--muted); font-size: 11px; }
@media (max-width: 640px) { .tt-readonly-modal { width: 96vw; } .tt-readonly-hint { width: 100%; margin-bottom: 6px; } }.task-new-grid .task-new-files { grid-column: 1 / -1; }
.task-new-files-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-new-files-head > span { color: #52667b; font-size: 11.5px; }
.task-new-file-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.task-new-file-empty { color: var(--muted); font-size: 11px; }
.task-new-file-item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; }
.task-new-file-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-new-file-size { color: var(--muted); font-size: 10px; }
.task-new-file-remove { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f6; color: #7b8794; font-size: 13px; line-height: 15px; cursor: pointer; }
.task-new-file-remove:hover { background: #fdecec; color: #a63232; }
.task-new-file-hint { color: var(--muted); font-size: 10.5px; }/* 非标产品列表：宽屏下用满工作区，表格字号和行距别缩得太小 */
.nonstd-page { max-width: 1600px; }
.nonstd-table-wrap { overflow-x: auto; }
.nonstd-table { min-width: 1180px; font-size: 13px; }
.nonstd-table th, .nonstd-table td { padding: 9px 10px; }
.nonstd-table .nonstd-col-open { width: 58px; }/* 非标产品列表：宽屏撑满工作区，行高和字号再放大一档 */
.workspace-body:has(> .nonstd-page) {
  max-width: none;
  margin: 0;
  padding-left: clamp(18px, 2vw, 48px);
  padding-right: clamp(18px, 2vw, 48px);
}
.nonstd-page { width: 100%; max-width: none; }
.nonstd-results, .nonstd-desktop, .nonstd-table-wrap { width: 100%; }
.nonstd-table { width: 100%; min-width: 1180px; font-size: 14px; }
.nonstd-table th, .nonstd-table td { padding: 12px 12px; line-height: 1.5; }
.nonstd-table thead th { padding-top: 12px; padding-bottom: 12px; }
.nonstd-table .nonstd-col-open { width: 64px; }
@media (max-width: 900px) {
  .workspace-body:has(> .nonstd-page) { padding-left: 14px; padding-right: 14px; }
}/* 非标产品状态筛选：做成明确的胶囊按钮，选中态和计数分开 */
.nonstd-page .list-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nonstd-page .nonstd-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  background: #fff;
  color: #52667b;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.nonstd-page .nonstd-filter-chip:hover { border-color: #9bb8dc; color: #1f5fce; }
.nonstd-page .nonstd-filter-chip.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.nonstd-page .nonstd-filter-chip:disabled { opacity: .65; cursor: default; }
.nonstd-page .nonstd-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}
.nonstd-page .nonstd-filter-chip.on .nonstd-filter-count { background: #dbeafe; color: #1d4ed8; }/* 整机台账证书列：显示在列表，点整机进详情修改 */
.qc-units-table { min-width: 1320px; }
.qc-units-table th.qc-col-cert,
.qc-units-table td.qc-col-cert {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qc-units-table.qc-units-nodes th:nth-child(3),
.qc-units-table.qc-units-nodes td:nth-child(3),
.qc-units-table.qc-units-nodes th:nth-child(4),
.qc-units-table.qc-units-nodes td:nth-child(4),
.qc-units-table.qc-units-nodes th:nth-child(5),
.qc-units-table.qc-units-nodes td:nth-child(5) { width: 120px; min-width: 120px; max-width: 120px; }
.qc-units-table:not(.qc-units-nodes) th:nth-child(4),
.qc-units-table:not(.qc-units-nodes) td:nth-child(4),
.qc-units-table:not(.qc-units-nodes) th:nth-child(5),
.qc-units-table:not(.qc-units-nodes) td:nth-child(5),
.qc-units-table:not(.qc-units-nodes) th:nth-child(6),
.qc-units-table:not(.qc-units-nodes) td:nth-child(6) { width: 120px; min-width: 120px; max-width: 120px; }/* 发货清单型号：允许发货人员补填实际型号；空值不再伪装成「技术选型」 */
.ship-model-input,
.ship-item-model-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 110px;
  padding: 5px 7px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #fff;
  color: #33475b;
  font: inherit;
  font-size: 12.5px;
}
.ship-model-input:focus,
.ship-item-model-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.ship-model-input.is-missing,
.ship-item-model-input.is-missing { border-color: #f0b429; background: #fffaf0; }
.ship-model-input.is-missing::placeholder,
.ship-item-model-input.is-missing::placeholder { color: #b7791f; }
.ship-item-model.is-missing,
.ship-model-missing { color: #b7791f; font-size: 12px; }
.ship-item-model-input { min-width: 90px; max-width: 150px; }.ship-model-warning {
  margin: 10px 0;
  padding: 9px 12px;
  border: 1px solid #f3d59a;
  border-radius: 8px;
  background: #fff9eb;
  color: #8a5a12;
  font-size: 12.5px;
}/* 发货名称可改，下面保留来源任务，改名后仍能追溯 */
.ship-title-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 120px;
  padding: 5px 7px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #fff;
  color: #33475b;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
}
.ship-title-input:focus,
.ship-item-title-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.ship-title-source { margin-top: 4px; color: #93a0af; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.ship-item-title-input {
  box-sizing: border-box;
  width: min(220px, 36vw);
  min-width: 110px;
  padding: 4px 7px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #fff;
  color: #33475b;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
}/* 生产列表：作业人和当前任务状态分两行显示 */
.production-line-status-cell { white-space: nowrap; vertical-align: middle; }
.production-line-person { display: block; margin-bottom: 3px; color: #33475b; font-size: 12.5px; font-weight: 600; }
.production-line-status-cell .chip { margin: 0; }
/* 生产列表按订单行：列显示 */
.list-table.production-list-table[data-hidden~="orderNo"] [data-col="orderNo"] { display: none !important; }
.list-table.production-list-table[data-hidden~="customer"] [data-col="customer"] { display: none !important; }
.list-table.production-list-table[data-hidden~="name"] [data-col="name"] { display: none !important; }
.list-table.production-list-table[data-hidden~="model"] [data-col="model"] { display: none !important; }
.list-table.production-list-table[data-hidden~="quantity"] [data-col="quantity"] { display: none !important; }
.list-table.production-list-table[data-hidden~="deliveryDate"] [data-col="deliveryDate"] { display: none !important; }
.list-table.production-list-table[data-hidden~="status"] [data-col="status"] { display: none !important; }
.list-table.production-list-table[data-hidden~="note"] [data-col="note"] { display: none !important; }
/* 调换订单：两栏内嵌搜索结果，不用绝对定位下拉，避免被弹窗底栏裁切 */
.unit-swap-choosers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.unit-swap-chooser { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.unit-swap-chooser-label { color: #5b6f86; font-size: 12px; font-weight: 600; }
.unit-swap-search { box-sizing: border-box; width: 100%; height: 36px; padding: 0 10px; border: 1px solid #d8e3ef; border-radius: 8px; background: #fff; color: #33475b; font: inherit; font-size: 12.5px; }
.unit-swap-search:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.unit-swap-selected { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid #bdd7f3; border-radius: 8px; background: #f2f8ff; }
.unit-swap-selected strong { color: #174a7a; font-size: 12.5px; }
.unit-swap-selected span { color: #71869b; font-size: 11px; }
.unit-swap-list { max-height: 210px; overflow-y: auto; border: 1px solid #e0e8f2; border-radius: 9px; background: #fff; }
.unit-swap-option { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid #eef3f8; background: #fff; text-align: left; cursor: pointer; }
.unit-swap-option:last-child { border-bottom: 0; }
.unit-swap-option:hover { background: #f6faff; }
.unit-swap-option.is-selected { background: #eef6ff; box-shadow: inset 3px 0 0 #3b82f6; }
.unit-swap-option strong { color: #223a52; font-size: 12px; font-weight: 600; }
.unit-swap-option span { color: #8192a4; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.unit-swap-empty { padding: 14px 10px; color: #8b9aab; font-size: 12px; text-align: center; }
@media (max-width: 700px) { .unit-swap-choosers { grid-template-columns: minmax(0, 1fr); } .unit-swap-list { max-height: 180px; } }/* 反馈：我的反馈 / 收起卡片 / 回复表单 */
.feedback-history-actions { flex-wrap: wrap; justify-content: flex-end; }
.feedback-collapse-btn { margin-left: auto; padding: 1px 7px; border: 1px solid #dbe6f2; border-radius: 6px; background: #fff; color: #60758c; font-size: 10.5px; cursor: pointer; }
.feedback-collapse-btn:hover { border-color: #9fc3e8; color: #2f6fb3; }
.feedback-history-item.is-collapsed { padding-bottom: 10px; }
.feedback-collapsed-hint { margin-top: 8px; color: #98a6b6; font-size: 11px; }
.feedback-follow-order { display: flex; flex-direction: column; gap: 4px; color: #6a7f95; font-size: 11.5px; }
.feedback-follow-order input { width: 100%; max-width: 320px; }
.feedback-follow-files { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.feedback-follow-file { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 7px; border: 1px solid #dbe7f4; border-radius: 7px; background: #f7fbff; color: #3d6288; font-size: 11px; }
.feedback-follow-file-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-follow-file-remove { padding: 0; border: 0; background: none; color: #94a3b3; font-size: 14px; line-height: 1; cursor: pointer; }
.feedback-follow-form-actions { display: flex; justify-content: flex-end; gap: 8px; }.feedback-follow-file-hint { color: #91a0b1; font-size: 10.5px; }.qc-hero-model { margin: -3px 0 8px; color: #52667b; font-size: 13px; }
.qc-unit-model { display: block; margin-top: 2px; color: #667085; font-size: 11px; line-height: 1.4; }
/* 工序节点列固定宽度：节点多时整表横向滚动，不要压成一条线 */
.qc-units-table.qc-units-nodes { table-layout: fixed; width: max-content; min-width: 100%; }
.qc-units-table.qc-units-nodes th.qc-col-code,
.qc-units-table.qc-units-nodes td.qc-col-code { width: 132px; min-width: 132px; max-width: 132px; }
.qc-units-table.qc-units-nodes th.qc-col-product,
.qc-units-table.qc-units-nodes td.qc-col-product { width: 182px; min-width: 182px; max-width: 182px; white-space: normal; }
.qc-units-nodes th.qc-node-head,
.qc-units-nodes td.qc-node-cell { width: 108px; min-width: 64px; max-width: none; }
.qc-units-nodes thead th.qc-node-head { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-units-nodes thead th.qc-node-group { min-width: 108px; white-space: nowrap; }
.qc-units-nodes .qc-node-cell b,
.qc-units-nodes .qc-node-cell i { white-space: nowrap; }
.qc-units-nodes td.qc-pin-2,
.qc-units-nodes th.qc-pin-2 { left: 132px; }/* 证书类编号必须完整显示，不能被省略号截断；内容长时换行，横向滚动查看整行。
   不要用 !important：表格已有列宽拖动，important 会盖住拖动时写入的行内宽度。 */
.qc-units-table.qc-units-nodes th.qc-col-cert,
.qc-units-table.qc-units-nodes td.qc-col-cert,
.qc-units-table:not(.qc-units-nodes) th.qc-col-cert,
.qc-units-table:not(.qc-units-nodes) td.qc-col-cert {
  width: 176px;
  min-width: 120px;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
}/* 整机台账基本信息：右上角修改，保存后同步质检记录 */
.qc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qc-panel-head .code-edit-btn { margin-left: auto; }
.qc-info-edit-item .qc-info-input { width: 100%; box-sizing: border-box; }
.qc-basic-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }/* 台账列宽拖动：把热区加宽一点，并在表头显示一条浅色分隔线，鼠标更容易找到 */
.qc-units-table .col-resizer { right: -7px; width: 15px; }
.qc-units-table .col-resizer::after { left: 7px; height: 64%; background: #d7e1ee; }
.qc-units-table .col-resizer:hover::after { background: #2563eb; width: 2px; }/* 列宽拖动：只移动竖线，松手才重排表格 */
.col-drag-guide { position: fixed; top: 0; bottom: 0; left: 0; z-index: 9999; width: 2px; background: #2563eb; box-shadow: 0 0 0 1px rgba(37,99,235,.16); pointer-events: none; will-change: transform; }
.col-drag-guide-label { position: fixed; top: 82px; left: 0; z-index: 10000; padding: 3px 7px; border-radius: 5px; background: #1d4ed8; color: #fff; font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; pointer-events: none; white-space: nowrap; will-change: transform; }.list-table thead th.is-dragging { background: #eef5ff; }/* 拖动列宽时减少重绘 */
.list-table.is-col-resizing tbody { pointer-events: none; }/* 工序节点表头改成单层：每个节点一个 th，分组名显示在节点列内部，列宽拖动不再涉及 colspan */
.qc-units-nodes thead th.qc-node-head { width: 108px; min-width: 64px; max-width: none; padding: 5px 5px 7px; vertical-align: bottom; white-space: normal; overflow: hidden; }
.qc-node-group-label { display: block; color: #7b8ca3; font-size: 9.5px; font-weight: 500; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-node-head-text { display: block; margin-top: 2px; color: #334155; font-size: 11px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-units-nodes thead th.qc-node-head.qc-node-first { border-left: 1px solid #cbd9ea; }/* 生产列表按订单行：列可重排后，宽度跟着 data-col 走，不能再依赖第几列 */
.list-table.production-list-table th[data-col="orderNo"] { width: 110px; }
.list-table.production-list-table th[data-col="customer"] { width: 180px; }
.list-table.production-list-table th[data-col="name"] { width: 21%; }
.list-table.production-list-table th[data-col="model"] { width: 16%; }
.list-table.production-list-table th[data-col="quantity"] { width: 72px; }
.list-table.production-list-table th[data-col="deliveryDate"] { width: 102px; }
.list-table.production-list-table th[data-col="status"] { width: 112px; }
.list-table.production-list-table th[data-col="note"] { width: 240px; }
.list-table.production-list-table th[data-col="ops"] { width: 132px; }
.list-table.production-list-table .list-filter-row th[data-col="status"] select { width: 100%; min-width: 0; }
/* 列显示：已选列带上下移动，隐藏列排在下面 */
.production-col-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 2px; }
.production-col-row .unit-check { flex: 1 1 auto; min-width: 0; }
.production-col-order { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.production-col-move { width: 24px; height: 24px; padding: 0; border: 1px solid #d7e2ee; border-radius: 6px; background: #fff; color: #3f5b78; font-size: 13px; line-height: 1; cursor: pointer; }
.production-col-move:hover:not(:disabled) { border-color: #9dc3e8; background: #f3f8ff; color: #2563a8; }
.production-col-move:disabled { color: #c7d1dc; cursor: default; }/* 整机产品编号：可搜索的质检台账选择框 */
.unit-code-picker { position: relative; }
.unit-code-input { width: 100%; }
.unit-code-results { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid #d7e2ee; border-radius: 8px; box-shadow: 0 12px 28px rgba(15, 23, 42, .14); padding: 4px; }
.unit-code-results.hidden { display: none; }
.unit-code-option { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: #fff; text-align: left; cursor: pointer; }
.unit-code-option:hover, .unit-code-option:focus { background: #f2f7fd; }
.unit-code-option b { flex: 0 0 auto; color: var(--blue); font-size: 13px; }
.unit-code-option-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e2c3b; font-size: 13px; }
.unit-code-option i { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7b8794; font-size: 12px; font-style: normal; }
.unit-code-hint { padding: 9px; color: #7b8794; font-size: 12px; }/* 主机生产明细：一台主机一张卡片 */
.production-unit-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); gap: 14px; }
.production-unit-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.production-unit-card:hover, .production-unit-card:focus-visible { border-color: #9dc3e8; box-shadow: 0 8px 22px rgba(37, 99, 168, .12); outline: none; transform: translateY(-1px); }
.production-unit-card.is-empty { cursor: default; opacity: .82; }
.production-unit-card.is-empty:hover { border-color: var(--line); box-shadow: 0 2px 8px rgba(15, 23, 42, .04); transform: none; }
.production-unit-card-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.production-unit-card-seq { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: #eef5fc; color: #3b6f9e; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.production-unit-card-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.production-unit-card-title strong { color: #1f3f5f; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-unit-card-title span { color: #7b8794; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-unit-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 10px 0; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.production-unit-card-field { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.production-unit-card-field.wide { grid-column: 1 / -1; }
.production-unit-card-field span { color: #8b98a7; font-size: 11px; }
.production-unit-card-field b { color: #2b3b4b; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-unit-card-processes { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.production-unit-card-process { display: inline-flex; align-items: center; gap: 4px; color: #63758a; font-size: 11.5px; }
.production-unit-card-process i { font-style: normal; }
.production-unit-card-process .production-process { margin: 0; }
.production-unit-card-note { padding: 7px 9px; border-radius: 8px; background: #f7fafc; color: #697b8d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.production-unit-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: #93a1b0; font-size: 11.5px; }
.production-unit-card-foot b { color: #2f6fa8; font-weight: 600; }
@media (max-width: 760px) {
  .production-unit-cards { grid-template-columns: minmax(0, 1fr); }
  .production-unit-card-fields { grid-template-columns: minmax(0, 1fr); }
}/* 整机详情里的质检记录：头信息一行，检查项整行铺开 */
.qc-record-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; grid-template-areas: "main meta actions" "items items items"; align-items: center; row-gap: 9px; }
.qc-record-main { grid-area: main; }
.qc-record-meta { grid-area: meta; }
.qc-record-actions { grid-area: actions; justify-self: end; white-space: nowrap; }
.qc-record-items { grid-area: items; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; margin-top: 0; }
.qc-record-items .qc-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; padding: 5px 8px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.qc-record-items .qc-item b { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
  .qc-record-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "meta" "actions" "items"; }
  .qc-record-actions { justify-self: start; flex-wrap: wrap; }
  .qc-record-items { grid-template-columns: minmax(0, 1fr); }
}.qc-record-items .qc-item-result { flex: 0 0 auto; white-space: nowrap; font-weight: 600; color: #8a97a6; }
.qc-record-items .qc-item-result.pass { color: #17734f; }
.qc-record-items .qc-item-result.fail { color: #b03a2e; }
.qc-record-items .qc-item-result.na { color: #7c8ea3; }.qc-record-summary { padding: 1px 6px; border-radius: 5px; background: #f1f6fa; color: #5d748a; font-size: 11px; white-space: nowrap; }/* 图纸卡片：同一图号多个 ERP 型号逐行显示，不再重复整张卡片 */
.drawing-model-list { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.drawing-model-tag { color: #1f5f9b; font-size: 12.5px; line-height: 1.45; font-weight: 500; }
.drawing-model-tag + .drawing-model-tag { border-top: 1px dashed #e4edf5; padding-top: 2px; }/* 图纸详情：一个 ERP 型号一张小卡片 */
.drawing-models-card { margin-top: 14px; }
.drawing-model-cards { display: flex; flex-direction: column; gap: 10px; }
.drawing-model-card { padding: 12px; border: 1px solid #dfe8f2; border-radius: 10px; background: #fbfdff; }
.drawing-model-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.drawing-model-card-head strong { color: #3e5972; font-size: 12px; font-weight: 600; }
.drawing-model-card .order-input { width: 100%; }
.drawing-model-add { width: 100%; padding: 10px; border: 1px dashed #b9d3e8; border-radius: 10px; background: #f7fbfe; color: #2f6fa8; font-size: 13px; cursor: pointer; }
.drawing-model-add:hover { border-color: #7fb3d8; background: #eff8ff; }/* 图纸型号组：同一图号下按型号显示完整卡片 */
.drawing-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 0 10px; }
.drawing-group-head h1 { margin: 0 0 4px; font-size: 24px; }
.drawing-group-head p { margin: 0; color: var(--muted); font-size: 12px; }
.drawing-group-form { margin-top: 14px; }
.drawing-group-card { margin-bottom: 10px; }
.drawing-group-card .order-form-grid { row-gap: 12px; }
.drawing-group-actions { display: flex; justify-content: flex-end; padding-top: 12px; }
.drawing-group-form > .order-card.surface { margin-top: 10px; }
@media (max-width: 760px) {
  .drawing-group-head { flex-wrap: wrap; }
}/* 生产通知单主机型号：输入框下方快捷候选 */
.notice-model-suggest { position: relative; align-items: flex-start; }
.notice-model-results { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); padding: 4px; background: #fff; border: 1px solid #d7e2ee; border-radius: 9px; box-shadow: 0 12px 28px rgba(15, 23, 42, .16); }
.notice-model-results.hidden { display: none; }
.notice-model-option { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 2px 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: #fff; text-align: left; cursor: pointer; }
.notice-model-option:hover, .notice-model-option:focus { background: #f2f7fd; }
.notice-model-option strong { color: #1e5f9d; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-model-option span { color: #33475b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-model-option i { grid-column: 1 / -1; color: #8a97a6; font-size: 11px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.production-col-order-input { flex: 0 0 auto; width: 40px; height: 25px; padding: 0 2px; border: 1px solid #d7e2ee; border-radius: 6px; background: #fff; color: #2f5d86; font-size: 12px; text-align: center; }
.production-col-order-input:focus { outline: none; border-color: #7fb3d8; box-shadow: 0 0 0 2px rgba(55, 125, 185, .12); }.production-col-order-input { width: 46px; padding: 0 4px; -moz-appearance: textfield; appearance: textfield; }
.production-col-order-input::-webkit-outer-spin-button,
.production-col-order-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }/* 手机端列显示：底部弹层 + 单列，避免 300px 浮层被挤出屏幕 */
@media (max-width: 760px) {
  .production-col-backdrop { z-index: 80; background: rgba(15, 23, 42, .32); }
  .production-col-pop {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: 72vh;
    padding: 14px;
    border-radius: 14px;
    z-index: 90;
  }
  .production-col-pop-head { font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
  .production-col-list { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 14px; }
  .production-col-row { min-height: 42px; padding: 4px 0; }
  .production-col-order-input { width: 52px; height: 32px; font-size: 14px; }
  .production-col-actions { position: sticky; bottom: 0; background: #fff; padding-top: 10px; }
  .production-col-actions .btn { min-height: 38px; }
}/* 人员产品权限：所有厂区一起显示，按厂区分组 */
.staff-product-groups { display: flex; flex-direction: column; gap: 10px; }
.staff-product-group { padding: 10px; border: 1px solid #e6edf5; border-radius: 10px; background: #fbfdff; }
.staff-product-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.staff-product-group-head strong { color: #274b6d; font-size: 12.5px; }
.staff-product-group-head span { color: #8a98a9; font-size: 11px; }
@media (max-width: 760px) {
  .staff-product-group { padding: 8px; }
  .staff-product-grid { grid-template-columns: minmax(0, 1fr); }
}/* 反馈状态筛选：和分类筛选同一样式，单独一行 */
.feedback-status-filters { padding-top: 0; margin-top: -4px; }
.feedback-status-filters::before { content: '状态'; align-self: center; margin-right: 2px; color: #8794a6; font-size: 11px; }
@media (max-width: 700px) { .feedback-status-filters { padding-left: 10px; padding-right: 10px; } }/* 非标产品图纸上传：隐藏原生文件框，只保留一个整齐的上传按钮 */
.nonstd-file-input { display: none; }
.nonstd-upload { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; margin-top: 12px; }/* 非标产品到来源质检记录的直达入口 */
.nonstd-source-link { margin-left: 2px; text-decoration: none; }.order-readonly-chip { display: flex; align-items: center; min-height: 36px; }
/* 整机对调弹窗：顶部两个模式（对调产品编号 / 对调订单） */
.unit-swap-modes { display: flex; gap: 8px; margin-bottom: 12px; }
.unit-swap-mode {
  padding: 5px 12px;
  border: 1px solid #d7e2ee;
  border-radius: 999px;
  background: #fff;
  color: #405166;
  font-size: 12.5px;
  cursor: pointer;
}
.unit-swap-mode.is-on { border-color: #2f6fb3; background: #eaf3fc; color: #1c5a96; font-weight: 600; }
.unit-swap-card-code strong { color: #1c5a96; }
.unit-swap-card-code small { line-height: 1.5; }

/* 运维台日志：说明行（换了日志目录/内置质检时的提示） */
.ops-log-note { font-size: 12px; color: #6b7c8f; background: #f4f8fc; border-left: 3px solid #9dbfdd; padding: 8px 10px; border-radius: 0 6px 6px 0; }
