/* 批 C 客户进度页——进度页样式（portal/view.js；员工页 360 预览也用，类名都带 cpv- 前缀）
 * 批 V16 D3（#202 样稿 portal/mock/d3-mobile.html）：三块（首页 / 进度 / 人员）从上往下排；手机上一次只显示一块的规则在 app.css（只在客户页） */
.cpv { --cpv-ink: #1f2937; --cpv-mute: #6b7280; --cpv-line: #e5e7eb; --cpv-card: #ffffff; --cpv-soft: #f3f4f6; --cpv-brand: #1d4ed8; --cpv-brand-soft: #eff6ff;
  --cpv-green: #15803d; --cpv-green-soft: #ecfdf5; --cpv-amber: #b45309; --cpv-amber-soft: #fffbeb; --cpv-gray: #6b7280; --cpv-red: #b91c1c;
  color: var(--cpv-ink); font-size: 16px; line-height: 1.55; max-width: 640px; margin: 0 auto; text-align: left; }
.cpv * { box-sizing: border-box; }
.cpv-pane + .cpv-pane { margin-top: 22px; }
.cpv-card { background: var(--cpv-card); border: 1px solid var(--cpv-line); border-radius: 16px; padding: 16px; margin-top: 10px; }
.cpv-h { font-size: 15px; font-weight: 700; margin: 16px 2px 0; }
.cpv-pane > .cpv-h:first-child { margin-top: 4px; }
.cpv-empty { color: var(--cpv-mute); background: var(--cpv-card); border: 1px dashed var(--cpv-line); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 10px; }

/* ① 首页 */
.cpv-hd { margin-top: 0; }
.cpv-co { font-size: 19px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.cpv-no { color: var(--cpv-mute); font-size: 13px; margin-top: 3px; word-break: break-all; }
.cpv-ring-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.cpv-ring { --p: 0%; position: relative; width: 92px; height: 92px; flex: none; border-radius: 50%; background: conic-gradient(var(--cpv-brand) var(--p), var(--cpv-line) 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cpv-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--cpv-card); }
.cpv-ring-v { position: relative; font-size: 22px; font-weight: 800; color: var(--cpv-brand); line-height: 1.1; }
.cpv-ring-lb { position: relative; font-size: 11px; color: var(--cpv-mute); line-height: 1.2; max-width: 70px; text-align: center; }
.cpv-r5 { --p: 5%; } .cpv-r10 { --p: 10%; } .cpv-r15 { --p: 15%; } .cpv-r20 { --p: 20%; } .cpv-r25 { --p: 25%; } .cpv-r30 { --p: 30%; } .cpv-r35 { --p: 35%; }
.cpv-r40 { --p: 40%; } .cpv-r45 { --p: 45%; } .cpv-r50 { --p: 50%; } .cpv-r55 { --p: 55%; } .cpv-r60 { --p: 60%; } .cpv-r65 { --p: 65%; } .cpv-r70 { --p: 70%; }
.cpv-r75 { --p: 75%; } .cpv-r80 { --p: 80%; } .cpv-r85 { --p: 85%; } .cpv-r90 { --p: 90%; } .cpv-r95 { --p: 95%; } .cpv-r100 { --p: 100%; }
.cpv-pg-none { color: var(--cpv-mute); font-size: 14px; flex: 1; }
.cpv-stage { min-width: 0; }
.cpv-stage-lb { color: var(--cpv-mute); font-size: 13px; }
.cpv-stage-v { font-size: 16px; font-weight: 700; margin-top: 2px; word-break: break-word; }
.cpv-next { background: var(--cpv-brand-soft); border-color: #bfdbfe; }
.cpv-next-n { font-weight: 700; font-size: 16px; word-break: break-word; }
.cpv-next-t { margin-top: 4px; font-size: 14px; color: #1e3a8a; white-space: pre-wrap; word-break: break-word; }
.cpv-next-d { display: inline-block; margin-top: 10px; font-size: 13px; background: var(--cpv-card); border: 1px solid #bfdbfe; border-radius: 99px; padding: 3px 10px; color: var(--cpv-brand); font-weight: 600; }
.cpv-next-d.cpv-dk-updating { color: var(--cpv-amber); border-color: #fcd34d; }
.cpv-rem { display: flex; gap: 12px; align-items: center; }
.cpv-rem-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--cpv-amber-soft); flex: none; position: relative; }
.cpv-rem-ic::before { content: ''; position: absolute; left: 9px; top: 10px; width: 16px; height: 14px; border: 2px solid var(--cpv-amber); border-radius: 3px; box-sizing: border-box; }
.cpv-rem-ic::after { content: ''; position: absolute; left: 9px; top: 15px; width: 16px; height: 2px; background: var(--cpv-amber); }
.cpv-rem-t { font-weight: 600; font-size: 15px; word-break: break-word; }

/* ② 进度 */
.cpv-seg { display: flex; gap: 6px; margin-top: 10px; }
.cpv-seg-i { flex: 1; text-align: center; background: var(--cpv-card); border: 1px solid var(--cpv-line); border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; min-width: 0; }
.cpv-seg-v { font-size: 16px; font-weight: 700; color: var(--cpv-ink); }
.cpv-seg-lb { font-size: 12px; color: var(--cpv-mute); }
.cpv-tl { list-style: none; margin: 12px 0 0; padding: 0; }
.cpv-n { position: relative; padding: 0 0 14px 30px; }
.cpv-n::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--cpv-line); }
.cpv-n:last-child::before { display: none; }
.cpv-dot { position: absolute; left: 3px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #cbd5e1; background: var(--cpv-card); }
.cpv-n-card { background: var(--cpv-card); border: 1px solid var(--cpv-line); border-radius: 14px; padding: 12px 14px; }
.cpv-n-top { display: flex; align-items: flex-start; gap: 8px; }
.cpv-n-name { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; line-height: 1.35; word-break: break-word; }
.cpv-badge { font-size: 12px; border-radius: 99px; padding: 2px 9px; white-space: nowrap; flex: none; background: var(--cpv-soft); color: var(--cpv-gray); }
.cpv-n-date { color: var(--cpv-mute); font-size: 13px; margin-top: 4px; }
.cpv-n-date.cpv-dk-updating { color: var(--cpv-amber); }
.cpv-x { font-size: 13px; margin-top: 8px; color: #374151; background: var(--cpv-soft); border-radius: 10px; padding: 8px 10px; }
.cpv-blk + .cpv-blk { margin-top: 6px; }
.cpv-blk-lb { color: var(--cpv-mute); font-size: 12px; }
.cpv-blk-tx { white-space: pre-wrap; word-break: break-word; }
.cpv-st-done .cpv-dot { border-color: var(--cpv-green); background: var(--cpv-green); }
.cpv-st-done .cpv-badge { background: var(--cpv-green-soft); color: var(--cpv-green); }
.cpv-st-doing .cpv-dot { border-color: var(--cpv-brand); box-shadow: 0 0 0 4px #dbeafe; }
.cpv-st-doing .cpv-n-card { border-color: #93c5fd; }
.cpv-st-doing .cpv-badge { background: var(--cpv-brand-soft); color: var(--cpv-brand); }
.cpv-st-need_you .cpv-dot { border-color: var(--cpv-amber); }
.cpv-st-need_you .cpv-n-card { border-color: #fcd34d; background: #fffdf5; }
.cpv-st-need_you .cpv-badge { background: var(--cpv-amber-soft); color: var(--cpv-amber); }
.cpv-st-paused .cpv-dot { border-color: #9ca3af; }
/* 批 V9 V9-4：不适用的节点（灰点、名字变浅） */
.cpv-st-na .cpv-dot { border-color: #e2e8f0; background: #f1f5f9; }
.cpv-st-na .cpv-n-name { color: var(--cpv-mute); font-weight: 600; }
.cpv-det { margin-top: 0; }
.cpv-det > summary { list-style: none; cursor: pointer; font-size: 13px; color: var(--cpv-brand); padding: 12px 0 10px; min-height: 44px; line-height: 22px; box-sizing: border-box; }   /* 批 V18 V18-28 ③：点按区 ≥ 44px */
.cpv-det > summary::-webkit-details-marker { display: none; }
.cpv-det > summary::before { content: '▸ '; }
.cpv-det[open] > summary::before { content: '▾ '; }
.cpv-ft { color: var(--cpv-mute); font-size: 12px; margin: 6px 2px 8px; line-height: 1.5; }
.cpv-ft p { margin: 4px 0; }

/* ③ 人员与签证 */
.cpv-pc { padding: 14px; }
.cpv-pc-top { display: flex; align-items: center; gap: 10px; }
.cpv-av { width: 38px; height: 38px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.cpv-pc-n { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; word-break: break-word; }
.cpv-vs { font-size: 12px; border-radius: 99px; padding: 3px 10px; white-space: nowrap; font-weight: 600; flex: none; background: var(--cpv-soft); color: var(--cpv-gray); }
.cpv-vs-issued { background: var(--cpv-green-soft); color: var(--cpv-green); }
.cpv-vs-submitted { background: var(--cpv-brand-soft); color: var(--cpv-brand); }
.cpv-vs-pending { background: var(--cpv-amber-soft); color: var(--cpv-amber); }
.cpv-kd { display: flex; gap: 8px; margin-top: 10px; }
.cpv-kd-i { flex: 1; min-width: 0; background: var(--cpv-soft); border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; }
.cpv-kd-lb { color: var(--cpv-mute); font-size: 11px; }
.cpv-kd-v { font-weight: 600; font-size: 14px; }
.cpv-kd-v.cpv-dk-updating { color: var(--cpv-amber); font-size: 13px; }
.cpv-stg { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.cpv-stg li { display: flex; gap: 8px; align-items: center; padding: 4px 0; color: #374151; }
.cpv-stg-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: none; }
.cpv-stg-done .cpv-stg-dot { background: var(--cpv-green); }
.cpv-stg-doing .cpv-stg-dot { background: var(--cpv-brand); box-shadow: 0 0 0 3px #dbeafe; }
.cpv-stg-doing { font-weight: 700; }
.cpv-stg li.cpv-stg-todo { color: var(--cpv-mute); }

/* ===== 批 V18 V18-26 ③ 客户端在线确认（审核方设计稿 2026-11-17）：新加的样式，类名 cpc- 开头，放 portal/view.css 末尾；颜色只用 .cpv 上现有的变量 ===== */
.cpc-todo { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; padding: 14px 14px 14px 16px; border: 1px solid #fcd34d; border-radius: 16px; background: var(--cpv-amber-soft); text-align: left; font: inherit; color: var(--cpv-ink); cursor: pointer; min-height: 44px; }
.cpc-todo-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cpv-amber); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.cpc-todo-tx { flex: 1; min-width: 0; }
.cpc-todo-t { font-weight: 700; font-size: 16px; }
.cpc-todo-s { font-size: 15px; color: #78350f; margin-top: 1px; word-break: break-word; }
.cpc-todo-r { font-size: 13px; color: #92400e; margin-top: 1px; word-break: break-word; }
.cpc-todo { margin-bottom: 6px; }
.cpc-go { flex: none; color: var(--cpv-amber); font-size: 22px; line-height: 1; }
.cpc-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--cpv-brand); cursor: pointer; }
.cpc-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 2px 2px 0; word-break: break-word; }
.cpc-sub { color: var(--cpv-mute); font-size: 13px; margin: 4px 2px 0; }
.cpc-state { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.cpc-state b { display: block; font-size: 16px; }
.cpc-state-wait { background: var(--cpv-amber-soft); border: 1px solid #fcd34d; color: #78350f; }
.cpc-state-ok { background: var(--cpv-green-soft); border: 1px solid #a7f3d0; color: #14532d; }
.cpc-state-new { background: var(--cpv-brand-soft); border: 1px solid #bfdbfe; color: #1e3a8a; }
.cpc-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; margin-top: 1px; }
.cpc-state-wait .cpc-ic { background: var(--cpv-amber); } .cpc-state-ok .cpc-ic { background: var(--cpv-green); } .cpc-state-new .cpc-ic { background: var(--cpv-brand); }
.cpc-note { margin-top: 10px; font-size: 14px; color: #374151; background: var(--cpv-soft); border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; }
.cpc-list { margin-top: 10px; padding: 2px 16px; }
.cpc-it { padding: 11px 0; border-bottom: 1px solid var(--cpv-line); }
.cpc-it:last-child { border-bottom: 0; }
.cpc-k { color: var(--cpv-mute); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.cpc-v { font-size: 16px; font-weight: 600; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.cpc-chg { font-size: 12px; font-weight: 600; color: var(--cpv-brand); background: var(--cpv-brand-soft); border-radius: 99px; padding: 1px 8px; }
.cpc-was { font-size: 13px; color: var(--cpv-mute); margin-top: 2px; text-decoration: line-through; word-break: break-word; }
.cpc-pdf { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--cpv-line); border-radius: 14px; background: var(--cpv-card); font: inherit; font-size: 15px; color: var(--cpv-brand); font-weight: 600; text-align: left; cursor: pointer; }
.cpc-pdf span:last-child { margin-left: auto; color: var(--cpv-mute); font-weight: 400; font-size: 13px; }
.cpc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: flex; gap: 10px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--cpv-line); }
.cpc-bar .cpa-btn { flex: 1.6; min-height: 48px; } .cpc-bar .cpa-btn2 { flex: 1; min-height: 48px; }
.cpc-pad { height: 84px; }
.cpc-mask { position: fixed; inset: 0; z-index: 20; background: rgba(17, 24, 39, .5); display: flex; align-items: flex-end; }
.cpc-sheet { box-sizing: border-box; width: 100%; background: #fff; border-radius: 18px 18px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.cpc-sheet-h { font-size: 19px; font-weight: 700; margin: 0; }
.cpc-sheet-p { font-size: 15px; color: #374151; margin: 8px 0 0; }
.cpc-sheet-b { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cpc-ta { box-sizing: border-box; width: 100%; min-height: 96px; margin-top: 12px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 16px; resize: vertical; }
.cpc-hist { margin-top: 10px; font-size: 13px; color: var(--cpv-mute); padding: 0 2px; }
@media (min-width: 720px) { .cpc-bar { position: static; border: 0; padding: 14px 0 0; background: none; } .cpc-pad { display: none; } .cpc-mask { align-items: center; justify-content: center; } .cpc-sheet { max-width: 440px; border-radius: 18px; } }
