/* THE CARRYOVER PANEL — PVT2 index.txt:267-274 (.co-banner / .co-icon / .co-dot), transcribed. */
.co-panel{margin:0 0 14px}
.co-banner{background:linear-gradient(135deg,#fff8ed,#fff3dc);border:1px solid #f0c36d;border-radius:14px;padding:14px 18px;margin-bottom:10px;display:flex;align-items:flex-start;gap:12px}
.co-banner .co-icon{width:34px;height:34px;border-radius:50%;background:#f59e0b;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0}
.co-banner .co-text h4{font-size:14px;font-weight:700;color:#78350f;margin:0 0 2px}
.co-banner .co-text p{font-size:12px;color:#92400e;line-height:1.4;margin:0}
.co-group{border:1px solid #eef2f7;border-radius:10px;padding:8px 12px;margin-bottom:8px;background:#fff}
.co-group h5{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#334155;margin:0 0 4px;text-transform:uppercase;letter-spacing:.03em}
.co-group h5 b{font-weight:800;color:#64748b}
.co-group ul{list-style:none;margin:0;padding:0}
.co-group li{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:baseline;padding:4px 0;border-top:1px solid #f1f5f9;font-size:12.5px}
.co-group li:first-child{border-top:0}
.co-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-weight:600}
.co-status{font-size:11px;color:#475569;background:#f1f5f9;border-radius:999px;padding:1px 8px;white-space:nowrap}
.co-date{font-size:11px;color:#64748b;white-space:nowrap}
.co-src{font-size:10.5px;color:#94a3b8;font-family:ui-monospace,Menlo,Consolas,monospace}
.co-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}
.co-dot-referrals{background:#2563eb}.co-dot-records{background:#7d4cc5}.co-dot-imaging{background:#a85da0}.co-dot-labs{background:#1a9a73}
/* the ghost stamp on the retired visit (law 4 wording) */
.p3-ghost-stamp{display:block;font-size:11px;color:#7c2d12;margin-top:3px;font-style:italic}
/* the handoff confirm lists items one per line (the shared confirm modal collapses newlines otherwise) */
.modal-backdrop .modal .modal-head p{white-space:pre-line}
/* per-item Carry / Dismiss with reason (PVT2 index.txt:11310 checkbox + 11358 reasons overlay) */
.co-group li{grid-template-columns:auto minmax(0,1fr) auto auto auto}
.co-group li.co-dimmed .co-summary,.co-group li.co-dimmed .co-status,.co-group li.co-dimmed .co-date{opacity:.55}
.co-carry{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#334155;white-space:nowrap}
.co-carry input{margin:0}
.co-dismiss{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:4px 0 6px 22px}
.co-dismiss-tag{font-size:11px;color:#b91c1c;font-weight:700;width:100%}
.co-reasons{display:flex;flex-wrap:wrap;gap:5px}
.co-reason{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:3px 9px;font-size:11px;cursor:pointer;color:#334155}
.co-reason.on{background:#fee2e2;border-color:#fca5a5;color:#991b1b;font-weight:700}
.co-reason-text{flex:1 1 220px;min-width:180px;border:1px solid #cbd5e1;border-radius:7px;padding:5px 8px;font-size:12px}
.co-counter{font-size:11.5px;color:#64748b;text-align:right;padding:2px 4px}
.co-handoff{max-width:760px}
.co-handoff-body h4{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#475569;margin:10px 0 4px}
.co-list{list-style:none;margin:0;padding:0}
.co-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:baseline;padding:5px 0;border-top:1px solid #f1f5f9;font-size:12.5px}
.co-list li.co-dis{grid-template-columns:1fr;gap:4px}
.co-list li.co-dis>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px}
.co-dis-reason{font-size:12px;color:#7c2d12;display:flex;gap:8px;align-items:center}
.co-dis-reason input{flex:1;border:1px solid #cbd5e1;border-radius:7px;padding:4px 8px;font-size:12px}
.co-none{font-size:12px;color:#94a3b8;margin:0}
.co-warn{font-size:12px;color:#b91c1c;font-weight:700;margin:8px 0 0}
.p3-ghost-stamp.dismissed{color:#991b1b}
/* #339 — "Carried from PVT <id> · <date>" on every carried row of the new visit */
.p3-carried-from{display:block;margin-top:2px;font-size:11px;font-style:normal;font-weight:600;color:#6b5a1e;background:#fff5d6;border:1px solid #f0dfa3;border-radius:6px;padding:1px 7px;width:max-content;max-width:100%}
/* #368 (David, 2026-09-02) — bulk controls, live count line, the Resolved button; #369 — Unresolve on the archived visit */
.co-bulk{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:13px;font-weight:700}
.co-bulk a{color:#1d4ed8;text-decoration:none;border-bottom:1px dotted #1d4ed8}
.co-bulk a:hover{color:#1e3a8a}
.co-bulk-hint{margin-left:auto;font-weight:500;color:#64748b;font-size:12px}
.co-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding-top:8px;border-top:1px solid #f0d9a8}
.co-foot .co-counter{margin:0;font-size:14px;font-weight:800;color:#334155}
.co-resolve{border:1px solid #c7dbf7;background:#fff;color:#1d4ed8;font-weight:800;font-size:13px;padding:8px 16px;border-radius:9px}
.co-resolve:hover{background:#eaf3ff}
.co-unresolve{margin-left:8px;border:1px solid #d9e0e9;background:#fff;color:#334155;font-weight:700;font-size:11.5px;padding:3px 9px;border-radius:999px;vertical-align:middle}
.co-unresolve:hover{border-color:#b9d4fa;background:#eaf3ff;color:#1e3a8a}
.co-unresolved-flag{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#fff1f2;color:#991b1b;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle}
.co-unresolve-modal{width:min(96vw,560px)}
.p3-carried-summary .co-unresolve{width:auto;align-self:flex-start;margin:6px 0 0}
/* law 4.10 — the handoff's BODY scrolls; "Complete PVT — carry N · resolve M" stays pinned and visible */
.modal.co-handoff{display:flex;flex-direction:column;max-height:92vh;overflow:hidden}
.modal.co-handoff .co-handoff-body{flex:1 1 auto;overflow:auto;min-height:0}
.modal.co-handoff .modal-foot{flex:0 0 auto}
.co-unresolve-q{font-size:16px;font-weight:800;color:#0f172a;margin:0 0 6px}
.co-unresolve-sub{font-size:13.5px;color:#475569;margin:0}
