/* 苹果05 体验版：单人工作台 V4（宽屏多栏 + 同页分步 + 常驻输入栏） */
.a5-desk { grid-template-columns: 220px minmax(0, 1fr) 330px; grid-template-rows: minmax(0, 1fr) auto; height: calc(100vh - 56px - 32px); }
.a5-desk > .v4-queue { grid-row: 1; }
.a5-center { grid-row: 1; }
.a5-right { grid-row: 1; }
.a5-aibar { grid-column: 1 / -1; grid-row: 2; position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line-strong, #c9c9cf); border-radius: 16px; padding: 8px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.a5-aibar #a5-ai { flex: 1; height: 40px; border: 0; outline: none; font-size: 15px; background: transparent; color: var(--text); }
.a5-mic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft, #e8f1fc); color: var(--accent, #0a66d8); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.a5-cap { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: #fdecea; color: #b42318; font-weight: 800; display: flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.a5-cap b { background: #b42318; color: #fff; border-radius: 999px; padding: 1px 8px; }
.a5-cap.zero { background: var(--fill, #f0f0f3); color: var(--text-2, #6e6e73); }
.a5-cap.zero b { background: #b0b0b8; }
.a5-pop { position: absolute; bottom: calc(100% + 8px); left: 12px; width: 600px; max-width: 70vw; background: var(--surface); border: 1px solid var(--line-strong, #c9c9cf); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 12px 14px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.a5-card { left: 120px; width: auto; min-width: 360px; max-width: 560px; }
.a5-card.done { background: #eef8f1; border-color: #bfe3cb; flex-direction: row; align-items: center; flex-wrap: wrap; }
.a5-crit { border-top: 1px solid var(--line, #e3e3e8); padding-top: 6px; }
.a5-crit p { margin: 0 0 6px; }
.a5-basis { font-size: 12px; color: var(--text-3, #8a8a90); background: var(--fill, #f3f3f6); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.a5-steps { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 8px 12px; flex-wrap: wrap; }
.a5-step { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2, #6e6e73); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.a5-step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e3e3e8; font-size: 12px; }
.a5-step.done { color: #1b7a3e; } .a5-step.done b { background: #1b7a3e; color: #fff; }
.a5-step.on { background: var(--accent-soft, #e8f1fc); color: var(--accent, #0a66d8); } .a5-step.on b { background: var(--accent, #0a66d8); color: #fff; }
.a5-step[disabled] { cursor: default; opacity: .7; }
.a5-stepbody { display: flex; flex-direction: column; gap: 10px; }
.a5-block .a5-sec { padding: 6px 0; border-bottom: 1px solid var(--line, #f0f0f3); }
.a5-block .a5-sec h4 { margin: 0 0 2px; font-size: 12.5px; color: var(--text-3, #6e6e73); font-weight: 700; }
.a5-block .a5-sec p { margin: 0; font-size: 15px; line-height: 1.9; }
.a5-m { padding: 1px 4px; border-radius: 4px; }
.a5-m.my { background: #ffe9a8; border-bottom: 2px solid #e0a800; }
.a5-m.mo { background: #ffd9bf; border-bottom: 2px solid #e8660c; }
.a5-m.mdoc { background: #e7f6ec; }
.a5-m-how { font-size: 12px; color: #1b7a3e; margin-left: 4px; }
.a5-m-acts { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.a5-flash { outline: 3px solid #e8660c; outline-offset: 2px; animation: a5f 1s ease 2; }
@keyframes a5f { 50% { outline-color: transparent; } }
.a5-legend { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 8px 14px; font-size: 13.5px; flex-wrap: wrap; }
.a5-cnt { border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 12.5px; }
.a5-cnt.my { background: #fff4d9; color: #8a5a00; } .a5-cnt.mo { background: #fdecea; color: #b42318; }
.a5-lg { font-size: 12px; color: var(--text-2, #6e6e73); display: inline-flex; align-items: center; gap: 4px; }
.a5-lg i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.a5-lg i.my { background: #ffe9a8; } .a5-lg i.mo { background: #ffd9bf; } .a5-lg i.mdoc { background: #e7f6ec; }
.a5-adv { margin: 0 0 8px; padding-left: 22px; font-size: 15px; line-height: 1.9; }
.a5-fu { margin-top: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.a5-fu-tip { flex-basis: 100%; margin: 6px 0 0; background: #fff8ec; border: 1px solid #f5d9a8; border-radius: 9px; padding: 7px 10px; font-size: 13px; }
.a5-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.a5-sum { margin: 0; padding: 0; list-style: none; }
.a5-sum li { padding: 8px 4px; border-bottom: 1px solid var(--line, #f0f0f3); font-size: 14px; display: flex; gap: 10px; }
.a5-sum li b { width: 84px; flex: none; color: var(--text-2, #6e6e73); }
.a5-hint { background: #fff8ec; border: 1px solid #f5d9a8; border-radius: 12px; padding: 8px 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.a5-tabs { display: flex; gap: 3px; background: var(--fill, #f0f0f3); border-radius: 10px; padding: 3px; margin-bottom: 10px; flex-wrap: wrap; }
.a5-tabs button { flex: 1; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 4px; border-radius: 8px; color: var(--text-2, #6e6e73); cursor: pointer; white-space: nowrap; }
.a5-tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.a5-lane { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid var(--line, #f0f0f3); font-size: 13.5px; }
.a5-st.ok { color: #1b7a3e; } .a5-st.on { color: var(--accent, #0a66d8); font-weight: 700; } .a5-st.wait, .a5-st.muted { color: var(--text-3, #8a8a90); }
.a5-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 8px; }
.a5-kpi div { background: var(--fill, #f5f5f7); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.a5-kpi b { font-size: 18px; } .a5-kpi span { font-size: 12px; color: var(--text-3, #6e6e73); }
.a5-list { list-style: none; margin: 0; padding: 0; }
.a5-list li { padding: 7px 2px; border-bottom: 1px solid var(--line, #f0f0f3); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.a5-ans p { margin: 4px 0; font-size: 13.5px; line-height: 1.6; }
.a5-src { color: var(--accent, #0a66d8); font-size: 12px !important; }
.a5-pc p { margin: 2px 0; }
.tabs-mini { display: flex; gap: 6px; }
.a5-mainbar .v4-left { white-space: nowrap; }
.a5-desk .v4-bar { padding-right: 16px; }
.a5-block .a5-sec p { white-space: pre-line; }
.a5-aibar { margin-right: 120px; }
.a5-mainbar { flex-wrap: wrap; }
.a5-steps .a5-basis { font-size: 12px; }
.a5-card .a5-basis { align-self: flex-start; }
.a5-desk .v4-rx-table table { font-size: 13px; } .a5-desk .v4-rx-table th, .a5-desk .v4-rx-table td { padding: 6px 6px; }
/* 任务2：药房 入库/盘点、收费 减免/退费/日结、沿用上次与常用方 */
.a5-sub { display: flex; gap: 4px; margin: 0 0 8px; border-bottom: 1px solid var(--line, #e3e3e8); }
.a5-sub button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2, #6e6e73); padding: 6px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.a5-sub button.on { color: var(--accent, #0a66d8); border-bottom-color: var(--accent, #0a66d8); }
.a5-right .label { margin: 10px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2, #6e6e73); }
.a5-right .src { font-size: 12px; color: var(--text-3, #8a8a90); margin: 2px 0; }
.a5-right .muted { font-size: 13px; margin: 4px 0; }
.a5-list li small { flex-basis: 100%; }
.a5-list li .a5-row { flex-basis: 100%; margin-top: 2px; }
.a5-list select, .a5-ck select, .a5-si select { height: 30px; border: 1px solid var(--line-strong, #c9c9cf); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 13px; background: var(--surface); max-width: 100%; }
.a5-ck select#a5-ck-item { width: 100%; }
.a5-right .v4-input { height: 32px; border: 1px solid var(--line-strong, #c9c9cf); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; min-width: 0; flex: 1; }
.a5-hide { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.a5-file { cursor: pointer; }
.a5-warn { font-size: 12px; color: #8a5a00; background: #fff4d9; border-radius: 6px; padding: 4px 8px; margin: 4px 0; flex-basis: 100%; }
.a5-si textarea { width: 100%; box-sizing: border-box; font-size: 13px; line-height: 1.6; margin-top: 6px; }
.a5-si-photo img { max-width: 100%; max-height: 160px; border-radius: 8px; border: 1px solid var(--line, #e3e3e8); margin-top: 6px; display: block; }
.a5-si-row { border: 1px solid var(--line, #e3e3e8); border-radius: 10px; padding: 8px; margin-bottom: 8px; }
.a5-si-row.ok { border-color: #bfe3cb; background: #f4fbf6; }
.a5-si-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13.5px; }
.a5-si-h .ok { color: #1b7a3e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.a5-si-g { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; margin-top: 6px; }
.a5-si-f { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-2, #6e6e73); border-radius: 6px; }
.a5-si-f input { height: 28px; border: 1px solid var(--line-strong, #c9c9cf); border-radius: 6px; padding: 0 6px; font: inherit; font-size: 13px; color: var(--text); min-width: 0; }
.a5-si-f.my input { background: #ffe9a8; border-color: #e0a800; }
.a5-si-f.mo input { background: #ffd9bf; border-color: #e8660c; }
.a5-si-note { display: block; grid-column: 1 / -1; font-size: 12px; }
.a5-si-note.my { color: #8a5a00; } .a5-si-note.mo { color: #b42318; }
.a5-my-t { background: #ffe9a8; border-radius: 4px; padding: 0 4px; } .a5-mo-t { background: #ffd9bf; border-radius: 4px; padding: 0 4px; }
.a5-fee-form { flex-basis: 100%; background: var(--fill, #f5f5f7); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.a5-fee-form .label { margin: 0; }
.a5-fee-form .v4-input { flex: none; width: 100%; box-sizing: border-box; }
.a5-day { margin-top: 6px; border-top: 1px solid var(--line, #e3e3e8); }
.a5-fold summary { font-size: 12.5px; color: var(--text-2, #6e6e73); cursor: pointer; padding: 6px 0; }
.a5-rx-tools .btn[disabled] { opacity: .5; cursor: not-allowed; }
.a5-tpl { margin-top: 8px; background: var(--fill, #f5f5f7); border-radius: 10px; padding: 8px 10px; }
.a5-tpl .label { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2, #6e6e73); }
.a5-tpl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--line, #e3e3e8); font-size: 13.5px; }
.a5-tpl-row .src { flex: 1 1 200px; font-size: 12px; color: var(--text-3, #8a8a90); }
.a5-tpl-row .a5-row { margin-top: 0; }
.a5-tpl .v4-input { height: 32px; border: 1px solid var(--line-strong, #c9c9cf); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; flex: 1; min-width: 160px; }
.a5-si-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.a5-si-f input { width: 100%; box-sizing: border-box; }
.a5-si-f:nth-of-type(3) { grid-column: 1 / -1; }
.a5-desk .btn[disabled], .a5-desk button.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.a5-si-err { color: #b42318; background: #fdecea; border-radius: 6px; padding: 4px 8px; font-size: 12.5px; margin: 6px 0 0; }

/* 1280 宽屏：右栏折叠成页签抽屉（≥1400 不变） */
.a5-drawer-hd { display: none; }
html.a5-on:not(.is-mobile) body { min-width: 1200px; }
@media (max-width: 1399px) {
  html.a5-on:not(.is-mobile) .a5-desk { grid-template-columns: 200px minmax(0, 1fr) 52px; }
  html.a5-on:not(.is-mobile) .a5-right { position: relative; overflow: visible; padding: 6px 4px; z-index: 20; }
  html.a5-on:not(.is-mobile) .a5-tabs { flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 3px; margin: 0; }
  html.a5-on:not(.is-mobile) .a5-tabs button { writing-mode: vertical-rl; letter-spacing: 2px; padding: 10px 0; white-space: normal; flex: none; }
  html.a5-on:not(.is-mobile) .a5-right:not(.open) .a5-tabbody { display: none; }
  html.a5-on:not(.is-mobile) .a5-right.open .a5-tabbody { position: absolute; top: 0; bottom: 0; right: calc(100% + 8px); width: 340px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong, #c9c9cf); border-radius: var(--r-l, 14px); box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 12px 14px; }
  html.a5-on:not(.is-mobile) .a5-right.open .a5-drawer-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; position: sticky; top: -12px; background: var(--surface); padding: 4px 0; z-index: 1; }
}

/* 第 11–20 项小功能 */
.a5-q-row .v4-q-name { min-width: 0; }
.a5-q-row { row-gap: 2px; }
.a5-q-row .a5-q-cc { grid-column: 2 / -1; margin-top: -4px; display: block; font-size: 12px; color: var(--text-3, #6e6e73); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#a5-q-next { margin-top: 6px; font-size: 12.5px; color: var(--text-2, #55555a); }
.v4-next:disabled { opacity: .45; cursor: not-allowed; }
.a5-sr-btn.zero { background: var(--fill, #f0f0f3); color: var(--text-2, #6e6e73); }
.a5-sr { border-bottom: 1px solid var(--line, #e3e3e8); padding: 8px 0; }
.a5-sr p { margin: 2px 0; }
.a5-sr-al { font-size: 13px; }
.a5-sr-seg { margin: 6px 0; }
.a5-sr .v4-input { width: 100%; height: 32px; border: 1px solid var(--line-strong, #c9c9cf); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; margin-bottom: 6px; box-sizing: border-box; }
.a5-exs { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.a5-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid var(--line, #e3e3e8); border-radius: 10px; padding: 8px 10px; }
.a5-ex b { font-size: 14px; }
.a5-ex .a5-ex-meta { flex-basis: 100%; margin: 0; font-size: 12.5px; }
.a5-ex-add .v4-input { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line-strong, #c9c9cf); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; }
.a5-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.a5-chip { border: 1px solid var(--line-strong, #c9c9cf); background: var(--surface); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; color: var(--text-2, #55555a); cursor: pointer; }
.a5-chip.on { background: var(--accent-soft, #e8f1fc); border-color: var(--accent, #0a66d8); color: var(--accent, #0a66d8); font-weight: 700; }
.a5-grade { font-size: 12px; border-radius: 6px; padding: 1px 6px; background: #fdecea; color: #b42318; }
.a5-grade.g2 { background: #fff4d9; color: #8a5a00; }
.a5-pc-other { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--fill, #f5f5f7); border-radius: 8px; padding: 4px 8px; }
.a5-spark { width: 100%; height: 70px; background: var(--fill, #f7f7f9); border-radius: 8px; }
.a5-spark .sys { stroke: #b42318; stroke-width: 2; } .a5-spark .dia { stroke: #e9a39b; stroke-width: 2; } .a5-spark .ref { stroke: #8a8a90; stroke-dasharray: 3 3; stroke-width: 1; }
.a5-vin, .a5-inv, .a5-set, .a5-fur { background: var(--fill, #f7f7f9); border-radius: 10px; padding: 8px; margin: 6px 0; flex-basis: 100%; }
.a5-vin-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.a5-vin-g label, .a5-set label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--text-2, #55555a); }
.a5-vin .v4-input, .a5-inv .v4-input, .a5-set .v4-input, .a5-fur .v4-input { width: 100%; box-sizing: border-box; flex: 1; }
.a5-set label { margin-bottom: 6px; }
.a5-fur { display: flex; flex-direction: column; gap: 6px; }
.a5-inv select, .a5-fur select { height: 32px; border: 1px solid var(--line-strong, #c9c9cf); border-radius: 8px; font: inherit; font-size: 13px; background: var(--surface); }
.a5-kpi.a5-kpi4 { grid-template-columns: repeat(4, 1fr); }
.a5-fu-st { font-size: 12px; color: var(--text-2, #55555a); background: var(--fill, #f0f0f3); border-radius: 6px; padding: 1px 6px; }
.a5-give-it { line-height: 1.5; }
.a5-kbc { border: 1px solid var(--line, #e3e3e8); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.a5-kbc p { margin: 2px 0; font-size: 13px; }
.a5-kb-src a { color: var(--accent, #0a66d8); font-size: 12.5px; word-break: break-all; }

/* ===== 第 21–25 项（11-12） ===== */
.a5-slash { left: 60px; width: 520px; bottom: calc(100% + 8px); max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.a5-slash > b { font-size: 13px; }
.a5-sl { display: flex; gap: 10px; align-items: baseline; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.a5-sl small { color: var(--text-2, #55555a); font-size: 12px; }
.a5-sl.on, .a5-sl:hover { background: var(--accent-soft, #e8f1fc); }
.a5-h4-edit { margin-left: 8px; border: 1px solid var(--line, #d9d9de); background: var(--surface, #fff); color: var(--accent, #0a66d8); border-radius: 6px; font-size: 12px; padding: 0 6px; cursor: pointer; }
.a5-backbar, .a5-backask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--fill, #f5f5f7); border-radius: 10px; padding: 6px 10px; margin: 6px 0; font-size: 13px; }
.a5-backask { display: block; background: #fff4d9; }
.a5-backask p { margin: 2px 0 6px; }
.a5-print-btns { margin: 8px 0; align-items: center; }
.a5-print-dim { position: fixed; inset: 0; background: rgba(0,0,0,.28); z-index: 60; }
.a5-print { position: fixed; z-index: 61; left: 50%; top: 40px; transform: translateX(-50%); width: min(760px, calc(100vw - 40px)); max-height: calc(100vh - 80px); overflow: auto; background: var(--surface, #fff); border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,.22); padding: 12px 16px; }
.a5-print-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; position: sticky; top: -12px; background: inherit; padding: 4px 0 8px; }
.a5-print-paper { border: 1px solid var(--line, #e3e3e8); border-radius: 6px; padding: 18px 22px; font-size: 14px; line-height: 1.7; background: #fff; color: #1d1d1f; }
.a5-print-paper.slip { max-width: 340px; margin: 0 auto; font-size: 14px; }
.a5-pd-h { display: flex; justify-content: space-between; border-bottom: 2px solid #1d1d1f; padding-bottom: 4px; margin-bottom: 6px; font-size: 16px; }
.a5-pd-pt { font-size: 13px; color: #444; margin: 0 0 8px; }
.a5-pd-t { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.a5-pd-t th, .a5-pd-t td { border: 1px solid #d9d9de; padding: 4px 6px; text-align: left; }
.a5-pd-drug { border-bottom: 1px dashed #d9d9de; padding: 4px 0; }
.a5-pd-drug p { margin: 0; }
.a5-ar { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.a5-ar-row { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; text-align: left; border: 1px solid var(--line, #e3e3e8); background: var(--surface, #fff); border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--text); }
.a5-ar-row span { justify-self: end; color: var(--text-2, #55555a); font-size: 12px; }
.a5-ar-row small { grid-column: 1 / -1; color: var(--text-2, #55555a); font-size: 12px; }
.a5-ar-row.on { border-color: var(--accent, #0a66d8); background: var(--accent-soft, #e8f1fc); }
@media print {
  html.a5-printing body * { visibility: hidden !important; }
  html.a5-printing #a5-print-paper, html.a5-printing #a5-print-paper * { visibility: visible !important; }
  html.a5-printing #a5-print-paper { position: fixed; left: 0; top: 0; width: 100%; border: 0; }
}

/* ===== 第 26–30 项（11-12） ===== */
.a5-del { background: #fde2e1; color: #b42318; text-decoration: line-through; }
.a5-ins { background: #dff3e5; color: #1a7f37; text-decoration: none; }
.a5-diff { line-height: 1.8; }
.a5-am-tag { font-size: 12px; color: #1a7f37; background: #dff3e5; border-radius: 6px; padding: 0 6px; font-weight: 600; }
.a5-vlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.a5-bd-trail { border: 1px solid var(--line, #e3e3e8); border-top: 0; border-radius: 0 0 8px 8px; padding: 6px 10px; font-size: 13px; }
.a5-bd-trail p { margin: 2px 0; display: flex; align-items: center; gap: 6px; }
.a5-low { color: #8a5a00; }
.a5-pager { justify-content: space-between; align-items: center; }
.a5-form { background: var(--fill, #f5f5f7); border-radius: 10px; padding: 8px; margin-top: 6px; }
.a5-form .label { margin: 4px 0; }

/* 第 26–30 项补：药房 6 个子页签不竖排折行 */
#a5-ph-sub { gap: 0; overflow-x: auto; scrollbar-width: none; }
#a5-ph-sub button { white-space: nowrap; flex: 0 0 auto; padding: 6px 7px; font-size: 12px; }
.a5-sub button { white-space: nowrap; }

/* ===== 第 31–35 项：档案备注、随访规则、作废、日结核对、营收构成 ===== */
.a5-pc-note { width: 100%; box-sizing: border-box; min-height: 52px; font: inherit; font-size: 13px; resize: vertical; }
.a5-sw { border: 1px solid var(--line, #d2d2d7); background: #f5f5f7; color: var(--text-2, #6e6e73); border-radius: 999px; font: inherit; font-size: 12px; padding: 2px 10px; cursor: pointer; min-width: 48px; }
.a5-sw.on { background: var(--accent, #0a66d8); border-color: var(--accent, #0a66d8); color: #fff; }
.a5-mix { margin: 8px 0 4px; }
.a5-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #eef0f3; margin: 4px 0 6px; }
.a5-bar span.d, .a5-dot.d { background: #0a66d8; }
.a5-bar span.e, .a5-dot.e { background: #34a853; }
.a5-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.a5-dc li { display: block; }
.a5-dc label.chk { font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.a5-dc small.src { display: block; margin-left: 22px; }

/* ===== 第 36–38 项：资料分类、机构目录、通知弹层 ===== */
.a5-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.a5-linkbtn:hover b { color: var(--accent, #0a66d8); }
.a5-kbd-note { margin: 4px 0 2px; font-size: 13px; }
.a5-nt { position: fixed; z-index: 58; right: 16px; top: 56px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 140px); overflow: auto; background: var(--surface, #fff); border: 1px solid var(--line, #e3e3e8); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 10px 12px; }
.a5-nt li.a5-read b { color: var(--text-2, #6e6e73); font-weight: 600; }
.a5-nt p { font-size: 13px; margin: 4px 0; }
.a5-clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a5-form > input.v4-input { display: block; width: 100%; box-sizing: border-box; margin: 0 0 6px; }

/* ===== 第 39–40 项：规模误切确认、常用方管理 ===== */
.a5-scale-ask { top: 30%; right: auto; left: 50%; transform: translateX(-50%); z-index: 62; width: min(460px, calc(100vw - 32px)); }
.a5-scale-ask p { font-size: 13px; }
.a5-tpl-row .a5-clip { -webkit-line-clamp: 1; }
.a5-tpl-items { margin: 4px 0; font-size: 13px; }

/* 收尾自审（11-12）：S1 输入栏让出右下缩放；S3 中栏底部不露字；S8 抬头不折行；S11 1280 左栏不折行；S12 提示条移到顶部，不盖动作卡和主按钮 */
html.a5-on .a5-aibar { margin-right: 160px; }
html.a5-on .a5-center { padding-bottom: 0; }
html.a5-on .a5-desk .v4-bar { box-shadow: var(--sh-2), 0 10px 0 0 var(--bg, #f5f5f7); }
html.a5-on .a5-desk .v4-head { flex-wrap: nowrap; min-width: 0; }
html.a5-on .a5-desk .v4-head .v4-pt { white-space: nowrap; flex: none; }
html.a5-on .a5-desk .v4-head .v4-allergy { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.a5-on .a5-desk .v4-head .v4-tag, html.a5-on .a5-desk .v4-head .btn { flex: none; white-space: nowrap; }
html.a5-on .a5-q-row .v4-q-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
html.a5-on .a5-q-row .v4-q-st { white-space: nowrap; }
html.a5-on .a5-sr-btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html.a5-on:not(.is-mobile) .toast { bottom: auto; top: 8px; }
@media (max-width: 1399px) {
  html.a5-on .a5-sr-btn { font-size: 12.5px; padding-left: 8px; padding-right: 8px; }
  html.a5-on .a5-q-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px; padding: 10px 6px; }
  html.a5-on .a5-q-row .v4-q-st { font-size: 13px; padding: 2px 6px; }
}

/* ===== 11-12 口述同步病历浮窗（天阳 11-12 12:30 电话）：中栏下方横向浮窗，贴在本步按钮条上方，不盖按钮 ===== */
.a5-desk[data-stage="recording"] .a5-center #a5-hint-host { margin-top: auto; }
.a5-desk[data-stage="recording"] .a5-center #a5-df-host + .v4-bar { margin-top: 10px; }
.a5df-host { position: sticky; bottom: 76px; z-index: 4; }
.a5df-host:empty { display: none; }
.a5df { background: var(--surface, #fff); border: 1.5px solid #0a66d8; border-radius: 14px; box-shadow: 0 8px 24px rgba(10, 102, 216, .18); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow: auto; animation: a5df-in .18s ease-out; }
@keyframes a5df-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.a5df-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a5df-head > b { font-size: 15px; }
.a5df-n { font-size: 12.5px; color: var(--t2, #6e6e73); }
.a5df-mods { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.a5df-mod { border: 1px solid #c9c9cf; background: #fff; color: #3a3a3c; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; min-height: 26px; }
.a5df-mod b { color: #0a66d8; margin-left: 2px; }
.a5df-mod.on { border-color: #0a66d8; background: #e8f1fc; color: #0a66d8; }
.a5df-mod.zero { opacity: .45; cursor: default; }
.a5df-mt { font-size: 12.5px; font-weight: 700; color: var(--t2, #6e6e73); }
.a5df-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 10px; }
.a5df-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 4px 8px; border-radius: 7px; font-size: 14px; line-height: 1.5; }
.a5df-row > b { min-width: 56px; font-size: 13px; color: var(--t2, #6e6e73); }
.a5df-row.hl { background: #ffe9a8; box-shadow: inset 0 -2px 0 #e0a800; }
.a5df-row.was { background: #e7f6ec; }
.a5df-before { color: #8e8e93; text-decoration: line-through; }
.a5df-arrow { color: #8e8e93; }
.a5df-after { font-weight: 700; color: var(--text, #1d1d1f); }
.a5df-said { flex-basis: 100%; font-size: 12px; color: #6e6e73; }
.a5df-tip { margin: 0; font-size: 12px; color: #6e6e73; }
.a5df-chip { margin-left: 10px; }
.a5df-chip.has-new { border-color: #e0a800; background: #fff8e1; }
.a5df-wrote { margin: 4px 0 0; font-size: 12.5px; color: #8a5a00; }
@media (prefers-reduced-motion: reduce) { .a5df { animation: none; } }
