/* 汪总活动设备管理系统原型 · 小程序手机外框样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #e8ecf3; color: #1f2937; font-size: 14px; line-height: 1.6;
  display: flex; flex-direction: column; align-items: center; padding: 30px 0 50px;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.page-head { width: 420px; text-align: center; margin-bottom: 14px; }
.page-head h2 { font-size: 17px; color: #1f2937; }
.page-head p { font-size: 12px; color: #6b7280; }

/* ---------- 手机外框 ---------- */
.phone {
  width: 375px; min-height: 740px; background: #f5f6f8;
  border: 11px solid #111827; border-radius: 42px;
  box-shadow: 0 18px 50px rgba(15,30,70,.22);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.phone-status {
  background: #fff; height: 34px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 12px; color: #111827; font-weight: 700;
}
.phone-status .notch { position: absolute; left: 50%; transform: translateX(-50%); top: 12px; width: 110px; height: 18px; background: #111827; border-radius: 0 0 12px 12px; }
.phone-title { background: #fff; padding: 10px 16px 12px; font-size: 16px; font-weight: 700; border-bottom: 1px solid #eef1f6; display: flex; align-items: center; }
.phone-title .rt { margin-left: auto; font-size: 12px; font-weight: 400; color: #2563eb; }
.phone-title.blue { background: #21a0e6; color: #fff; border-bottom: none; }
.phone-title.blue .rt { color: rgba(255,255,255,.85); }
.phone-body { flex: 1; padding: 12px 12px 78px; overflow-y: auto; }

/* ---------- 底部导航 ---------- */
.phone-nav {
  position: absolute; bottom: 0; left: 0; right: 0; height: 62px; background: #fff;
  border-top: 1px solid #e8ebf2; display: flex; z-index: 5;
}
.phone-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #9ca3af; gap: 2px; }
.phone-nav a.active { color: #2563eb; font-weight: 700; }
.phone-nav .ico { font-size: 19px; line-height: 1; }

/* ---------- 小程序组件 ---------- */
.m-card { background: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 11px; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
.m-card-title { font-size: 14px; font-weight: 700; margin-bottom: 9px; display: flex; align-items: center; }
.m-card-title .rt { margin-left: auto; font-size: 11px; font-weight: 400; color: #2563eb; }
.greet { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; border-radius: 14px; padding: 15px 16px; margin-bottom: 11px; }
.greet b { font-size: 16px; }
.greet .idline { font-size: 12px; color: #c7d7f5; margin-top: 3px; }
.greet .idswitch { font-size: 12px; margin-top: 8px; background: rgba(255,255,255,.16); border-radius: 8px; padding: 5px 10px; display: inline-block; color: #fff; }
.grid9 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 0; }
.grid9 a, .grid9 span:not(.tag) { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: #374151; padding: 9px 0; }
.grid9 .ico { width: 42px; height: 42px; border-radius: 12px; background: #e8f0fe; color: #2563eb; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.grid9 .disabled { color: #b6bcc8; }
.grid9 .disabled .ico { background: #f0f2f6; color: #c3cad6; }
.chat-cell { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 9px; box-shadow: 0 1px 3px rgba(20,40,80,.06); gap: 11px; }
.chat-cell .ico { width: 40px; height: 40px; border-radius: 10px; background: #e8f0fe; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.chat-cell .ico.money { background: #fdf3e3; color: #b45309; }
.chat-cell .ico.leave { background: #e7f6ec; color: #16a34a; }
.chat-cell .t { flex: 1; min-width: 0; }
.chat-cell .t b { font-size: 13.5px; display: block; }
/* .t / .box / .bl-t 这些字段位里的 span 默认是灰字说明，但不能连状态小药丸（.tag）一起抢走：
   特异性一旦高过 .tag-yellow，小程序上的「审批中 / 已到账 / 已驳回」全变成灰字（第九轮实测 m2、m6 各 3 个） */
.chat-cell .t span:not(.tag) { font-size: 12px; color: #6b7280; }
.chat-cell .amt { text-align: right; font-size: 12px; color: #6b7280; flex-shrink: 0; }
.chat-cell .amt b { display: block; font-size: 15px; color: #1f2937; font-family: Consolas, monospace; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.tag-green { background: #e7f6ec; color: #16a34a; }
.tag-yellow { background: #fef4e2; color: #b45309; }
.tag-red { background: #fdecec; color: #dc2626; }
.tag-gray { background: #eef1f5; color: #6b7280; }
.tag-blue { background: #e8f0fe; color: #2563eb; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: flex-start; margin: 10px 0 4px; }
.steps .st { flex: 1; text-align: center; position: relative; font-size: 11px; color: #9ca3af; }
.steps .st .c { width: 20px; height: 20px; border-radius: 50%; background: #d7dce4; color: #fff; font-size: 11px; line-height: 20px; margin: 0 auto 4px; position: relative; z-index: 2; }
.steps .st::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #d7dce4; }
.steps .st:first-child::before { display: none; }
.steps .st.done { color: #16a34a; }
.steps .st.done .c { background: #16a34a; }
.steps .st.done::before { background: #16a34a; }
.steps .st.now { color: #2563eb; font-weight: 700; }
.steps .st.now .c { background: #2563eb; }
.steps .st.now::before { background: #16a34a; }
.steps .st.rej { color: #dc2626; font-weight: 700; }
.steps .st.rej .c { background: #dc2626; }

/* ---------- 表单 ---------- */
.m-form { background: #fff; border-radius: 12px; padding: 4px 14px 14px; margin-bottom: 11px; }
.m-field { padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.m-field:last-child { border-bottom: none; }
.m-field label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 5px; }
.m-field label .req { color: #dc2626; margin-left: 3px; }
.m-field .val { font-size: 14px; color: #1f2937; }
.m-field .fake-input { width: 100%; border: 1px solid #dfe4ec; border-radius: 8px; padding: 9px 11px; font-size: 14px; color: #1f2937; background: #fff; display: block; }
.m-field .fake-select { display: flex; align-items: center; justify-content: space-between; border: 1px solid #dfe4ec; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff; }
.m-field .fake-select .arr { color: #9ca3af; }
.m-field .note { font-size: 11px; color: #dc2626; margin-top: 4px; }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-box { position: relative; width: 104px; height: 104px; border: 1.5px dashed #b8c4d8; border-radius: 10px; background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: #8a94a6; text-align: center; padding: 4px; }
.upload-box .upx { position: absolute; top: 2px; right: 5px; font-size: 15px; line-height: 1; color: #b6c0d0; padding: 2px 3px; }
.upload-box .upx:hover { color: #dc2626; }
.upload-box.filled { border-style: solid; border-color: #bfd3f2; background: #eef4ff; color: #2563eb; }
.upload-box .cam { font-size: 22px; }
.approver-preview { background: #f6f8fc; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: #4b5563; }
.approver-preview .stp { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.approver-preview .stp .n { width: 17px; height: 17px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 10px; line-height: 17px; text-align: center; flex-shrink: 0; }
.approver-preview .stp.auto .n { background: #f59e0b; }
.m-btn { display: block; width: 100%; text-align: center; background: #2563eb; color: #fff !important; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700; margin: 4px 0 12px; }
.m-btn:hover { text-decoration: none; }
.action-row { display: flex; gap: 9px; margin-top: 12px; }
.action-row a { flex: 1; text-align: center; border-radius: 10px; padding: 11px 0; font-size: 14px; font-weight: 700; }
.act-ok { background: #16a34a; color: #fff !important; }
.act-rej { border: 1.5px solid #dc2626; color: #dc2626 !important; background: #fff; }
.act-add { background: #e8f0fe; color: #2563eb !important; }

/* ---------- 数字卡（老板日报） ---------- */
.duo-num { display: flex; gap: 11px; }
.duo-num .box { flex: 1; text-align: center; background: #fff; border-radius: 12px; padding: 13px 0; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
.duo-num .box b { font-size: 21px; font-family: Consolas, monospace; display: block; }
.duo-num .box span:not(.tag) { font-size: 12px; color: #6b7280; }
.lightbar { display: flex; flex-direction: column; gap: 8px; }
.lightbar .lb { display: flex; align-items: center; font-size: 13px; background: #fff; border-radius: 10px; padding: 9px 12px; gap: 9px; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
.lightbar .lb .d { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.lb .g { background: #16a34a; } .lb .y { background: #f59e0b; } .lb .r { background: #dc2626; }
.lb .amt { margin-left: auto; font-weight: 700; font-family: Consolas, monospace; }
.m-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 0; }
.m-bar .name { width: 130px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bar .bar { flex: 1; height: 12px; background: #eef2f8; border-radius: 999px; overflow: hidden; }
.m-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #93c5fd, #2563eb); }
.m-bar .val { width: 58px; text-align: right; font-weight: 700; font-family: Consolas, monospace; }
.warn-line { display: flex; gap: 8px; align-items: center; font-size: 12.5px; padding: 8px 10px; border-radius: 9px; margin-bottom: 7px; }
.warn-line.y { background: #fef4e2; color: #b45309; }
.warn-line.r { background: #fdecec; color: #dc2626; }
.pull-hint { text-align: center; font-size: 11px; color: #9ca3af; padding: 6px 0 2px; }
.back-desktop { display: block; text-align: center; font-size: 12px; margin-top: 4px; }

/* ---------- 进度/回顶 ---------- */
.phone-footer-back { width: 420px; text-align: center; margin-top: 14px; font-size: 12px; }
.progress { background: #e9edf3; height: 7px; border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); }

/* ---------- 手机交互层（app.js） ---------- */
.app-modal { display: none; position: absolute; inset: 0; z-index: 30; align-items: flex-end; justify-content: center; }
.app-modal.open { display: flex; }
.app-modal-mask { position: absolute; inset: 0; background: rgba(17,24,39,.45); }
.app-modal-box { position: relative; width: 100%; background: #fff; border-radius: 16px 16px 0 0; padding: 16px 16px 20px;
  max-height: 80%; overflow-y: auto; box-shadow: 0 -8px 30px rgba(15,30,70,.25); }
.app-modal-box.center { width: 88%; border-radius: 14px; margin: auto; }
.app-modal-head { font-size: 15px; font-weight: 700; color: #1e3a8a; margin-bottom: 10px; }
.app-modal-x { position: absolute; right: 14px; top: 12px; color: #9ca3af; font-size: 16px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid #dfe4ec; border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: inherit; }
.form-row textarea { min-height: 76px; }
.form-row .req { color: #dc2626; margin-left: 3px; }
.form-row.err input, .form-row.err textarea { border-color: #dc2626; background: #fff7f7; }
.app-modal-foot { display: flex; gap: 10px; margin-top: 6px; }
.app-modal-foot a, .app-modal-foot button { flex: 1; text-align: center; border-radius: 10px; padding: 11px 0; font-size: 14px; font-weight: 700; border: none; font-family: inherit; }
.app-modal-foot .ghost { background: #fff; border: 1px solid #d6dbe4; color: #4b5563 !important; }
.app-toast { position: absolute; left: 50%; top: 96px; transform: translateX(-50%) translateY(-6px); z-index: 60;
  background: rgba(17,24,39,.9); color: #fff; padding: 9px 16px; border-radius: 18px; font-size: 12.5px; opacity: 0; transition: .2s; pointer-events: none; white-space: nowrap; max-width: 90%; }
.app-toast.show { opacity: .95; transform: translateX(-50%); }
.row-new { background: #e7f6ec !important; transition: background 2s; }
.row-out { opacity: 0; transition: opacity .25s; }
.chat-cell.row-off { opacity: .55; }
.chat-cell, .grid9 a, .grid9 span, .photo-box { cursor: pointer; }
.app-modal.photo-view { display: none; align-items: center; justify-content: center; background: rgba(17,24,39,.9); }
.app-modal.photo-view.open { display: flex; }
.photo-view .big { width: 90%; height: 380px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; color: #6b7280; font-size: 13px; }

/* 附件（单据可挂多个） */
.att-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.att { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 96px; min-height: 62px; padding: 7px 6px; border: 1px solid #bfd3f2; border-radius: 9px;
  background: #eef4ff; color: #1d4ed8; font-size: 10.5px; text-align: center; line-height: 1.3; }
.att i { font-style: normal; font-size: 17px; }
.att.rm { border-style: dashed; border-color: #c9d2e0; background: #fff; color: #8a94a6; }
.att .att-x { font-size: 12px; color: #b6c0d0; }

.tab-pane { display: none; }
.tab-pane.show { display: block; }
.mtabs [data-pane] { cursor: pointer; }
.mtabs { display: flex; gap: 18px; padding: 2px 2px 10px; font-size: 14px; color: #6b7280; }
.mtabs [data-pane] { padding-bottom: 4px; }
.mtabs .on { color: #2563eb; font-weight: 700; border-bottom: 2.5px solid #2563eb; }

/* ---------- 补全：手机弹窗正文与审批时间轴 ---------- */
.app-modal-body { padding: 2px 0 4px; }
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 11px 16px; border-left: 2px solid #dbe4f5; margin-left: 5px; font-size: 12.5px; color: #4b5563; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #2563eb; }
.timeline li:last-child { border-left-color: transparent; }
.timeline .t { color: #9ca3af; font-size: 11.5px; margin-right: 6px; }
.timeline li.done::before { background: #16a34a; }
.timeline li.rej::before { background: #dc2626; }
.timeline li.rej { border-left-color: #f3c1c1; }
.timeline li.wait::before { background: #f59e0b; }
.timeline li.wait { border-left-color: #f0d6a8; }
.timeline li b { color: #1f2937; }
.timeline li .who { color: #6b7280; margin: 0 6px; }
.timeline li .tag { font-size: 10.5px; padding: 1px 7px; }
.st-memo { margin-top: 5px; background: #f7f9fc; border-left: 2px solid #dbe4f5; border-radius: 0 6px 6px 0; padding: 6px 9px; font-size: 11.5px; color: #4b5563; line-height: 1.5; }
.action-row.acted a { opacity: .32; pointer-events: none; }

/* ---------- 开单（M7 入库 / M8 出库） ---------- */
.bill-wrap { padding: 0 0 66px; }
.pick-wrap { padding: 0 0 66px; }
.pk-list { padding: 0 14px; }
.bill-party { display: flex; align-items: center; background: #fff; padding: 12px 14px; font-size: 14px; color: #4b5563; letter-spacing: 4px; }
.bill-party .pv { flex: 1; letter-spacing: 0; font-weight: 700; color: #9ca3af; margin-left: 2px; }
.bill-party .pv.filled { color: #1f2937; }
.bill-party .ps { flex: none; letter-spacing: 0; color: #2563eb; font-weight: 700; font-size: 15px; cursor: pointer; }
.bill-tools { display: flex; background: #fff; margin-top: 9px; padding: 12px 6px; }
.bill-tools a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: #374151; }
.bill-tools a + a { border-left: 1px solid #eef1f6; }
.bill-tools .ti { font-size: 17px; }
.bill-list { padding: 2px 14px 0; }
.bill-empty { text-align: center; color: #a6adba; font-size: 13px; padding: 92px 0; }
/* 「最近入库/出库单」列表容器：刚提交的单会落在这一组的第一行（引擎 data-recent） */
.bill-recent { display: block; border-top: 1px solid #eef1f6; margin-top: 2px; }
.bill-recent .chat-cell:last-child { border-bottom: none; }
.bill-line { display: grid; grid-template-columns: 1fr 54px 74px 20px; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.bill-line .bl-t b { display: block; font-size: 14px; color: #1f2937; }
.bill-line .bl-t span:not(.tag) { font-size: 11px; color: #8a94a6; }
.bill-line .bl-qty { width: 100%; border: 1px solid #d6dbe4; border-radius: 6px; padding: 5px 4px; font-size: 13.5px; text-align: center; font-family: inherit; }
.bill-line .bl-amt { font-family: Consolas, monospace; font-size: 14px; font-weight: 700; color: #dc2626; text-align: right; }
.bill-line .bl-del { color: #c3c9d4; font-size: 15px; text-align: center; cursor: pointer; }
.bill-line.over .bl-qty { border-color: #dc2626; color: #dc2626; }
.bill-line.over .bl-t b::after { content: " · 超出在库"; color: #dc2626; font-size: 11px; font-weight: 400; }
.bill-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; display: flex; z-index: 20; }
/* 出库超在库：合计标红 + 底部挂一行提醒（引擎自动插入 .bf-warn） */
.bill-foot.over .bf-sum { background: #fdeaea; box-shadow: inset 0 2px 0 #dc2626; }
.bill-foot.over .bf-ok { background: #efb4b4; }
.bf-warn { position: absolute; left: 0; right: 0; bottom: 58px; z-index: 19; background: #fef2f2; border-top: 1px solid #fecaca; color: #b91c1c; font-size: 12px; line-height: 1.5; padding: 8px 14px; }
.bill-foot .bf-sum { flex: 1.35; background: #fbf3d8; color: #dc2626; font-size: 19px; font-weight: 700; font-family: Consolas, monospace; display: flex; align-items: center; padding-left: 16px; }
.bill-foot .bf-sum i { font-style: normal; font-size: 14px; margin-right: 4px; }
.bill-foot .bf-sum .bc { margin-left: auto; margin-right: 14px; font-style: normal; font-family: inherit; font-size: 12px; font-weight: 600; color: #8a6d15; }
.bill-foot .bf-ok { flex: 1; background: #6fa8f5; color: #fff; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bill-foot .bf-ok.off { background: #c9d7ee; pointer-events: none; }
.bill-done { background: #eaf6ee; border-radius: 12px; padding: 14px 15px; font-size: 13px; color: #166534; margin: 14px 0; line-height: 1.9; }
.bill-done b { font-size: 15px; }
.bill-done a { color: #2563eb; font-weight: 700; }
.party-list a { display: block; padding: 12px 2px; border-bottom: 1px solid #f0f2f6; font-size: 14px; color: #1f2937; cursor: pointer; }
.party-list a:last-child { border-bottom: none; }
.party-list a span:not(.tag) { display: block; font-size: 11.5px; color: #8a94a6; margin-top: 2px; }

/* ---------- 选商品 / 库存查询（M9） ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 2px; }
.chips a { flex: none; background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; padding: 5px 13px; font-size: 12.5px; color: #4b5563; }
.chips a.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 700; }
.pk-line { display: grid; grid-template-columns: 22px 1fr auto 62px; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.pk-line .pk-on { width: 18px; height: 18px; accent-color: #2563eb; }
.pk-line b { display: block; font-size: 14px; color: #1f2937; }
.pk-line .pk-sub { font-size: 11px; color: #8a94a6; }
.pk-line .pk-qty { width: 100%; border: 1px solid #d6dbe4; border-radius: 6px; padding: 5px 4px; font-size: 13.5px; text-align: center; font-family: inherit; }
.pk-line.sel { background: #f5f9ff; }
.pk-warn { color: #b45309; font-weight: 700; }
.pick-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: #fff; border-top: 1px solid #eef1f6; display: flex; align-items: center; padding: 0 14px; gap: 12px; z-index: 20; }
.pick-foot .pn { flex: 1; font-size: 13px; color: #4b5563; }
.pick-foot .pn b { color: #2563eb; font-size: 16px; }
.pick-foot .pok { flex: none; width: 128px; text-align: center; background: #2563eb; color: #fff; border-radius: 10px; padding: 11px 0; font-size: 15px; font-weight: 700; }
.mode-view .pk-on, .mode-view .pk-qty, .mode-view .pick-foot, .mode-view .pk-pickonly { display: none; }
.mode-view .pk-line { grid-template-columns: 1fr auto; }
.mode-pick .pk-viewonly { display: none; }
.mode-out .pk-in, .mode-in .pk-out, .mode-view .pk-out { display: none; }
.pk-line .pk-price { font-family: Consolas, monospace; font-size: 13px; color: #1f2937; text-align: right; white-space: nowrap; }
.pk-bar { background: #fff; padding: 10px 14px; display: flex; gap: 9px; align-items: center; }
.pk-bar input { flex: 1; border: 1px solid #dfe4ec; border-radius: 18px; padding: 8px 13px; font-size: 13px; font-family: inherit; background: #f7f9fc; }
.pk-sum { font-size: 11.5px; color: #8a94a6; padding: 8px 14px 0; }
.pk-sum b { color: #1f2937; }

/* ===== 小程序端优化 2026-11：m1 待办紧凑行 + m3a 审批详情页版式 ===== */
.cell-sm { padding: 8px 12px !important; margin-bottom: 6px !important; }
.cell-sm .ico { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
.det-head { display: flex; align-items: flex-start; }
.det-head b { font-size: 15px; flex: 1; }
.det-hero { text-align: center; padding: 12px 0 10px; }
.det-hero .n { font-size: 26px; font-weight: 800; color: #dc2626; font-family: Consolas, monospace; }
.det-hero .s { font-size: 12px; color: #6b7280; margin-top: 4px; }
.det-f { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 9px 0; border-bottom: 1px solid #f0f2f6; }
.det-f:last-child { border-bottom: none; }
.det-f span:first-child { color: #6b7280; flex-shrink: 0; }
.det-f span:last-child { text-align: right; max-width: 210px; }
.det-f a { color: #2563eb; }
.det-bar { font-size: 12.5px; color: #6b7280; background: #f7f9fc; border-radius: 8px; padding: 9px 10px; text-align: center; }
.det-bar a { color: #2563eb; }
.det-foot { position: absolute; left: 0; right: 0; bottom: 54px; background: #fff; border-top: 1px solid #eef1f6; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 9px; }
.det-foot a { flex: 1; text-align: center; border-radius: 10px; padding: 11px 0; font-size: 14px; font-weight: 700; }
.pfoot-pad { height: 84px; }

/* 审批节点区：节点可能较多，单独做成固定高度、可上下滑动的区域，头部/金额/字段保持可见 */
.det-steps-scroll { max-height: 236px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.det-steps-scroll::-webkit-scrollbar { width: 4px; }
.det-steps-scroll::-webkit-scrollbar-thumb { background: #cfd8e8; border-radius: 4px; }
