/* #422 — Records Processed (2026-09-10). Every rule prefixed .rp- so it cannot leak into another screen. */
.rp-head{align-items:flex-start}
.rp-build-marker{align-self:flex-start;font-size:11px;color:#6b7280;border:1px solid #e5e7eb;border-radius:999px;padding:2px 9px;white-space:nowrap}
.rp-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:6px 0 12px}
.rp-patient-search{display:flex;align-items:center;gap:8px;min-width:320px;flex:1 1 320px}
.rp-patient-search .search-picker{flex:1 1 auto;max-width:420px}
.rp-pills{display:inline-flex;border:1px solid #dfe6f0;border-radius:999px;overflow:hidden;background:#fff}
/* #424: seven pills fit unwrapped at laptop width (1100 px) — padding tightened, never the words */
.rp-pill{appearance:none;border:0;background:transparent;font:inherit;font-size:12.5px;font-weight:600;color:#5b6b82;padding:6px 11px;cursor:pointer;white-space:nowrap}
.rp-pills{flex:0 0 auto}
.rp-pill+.rp-pill{border-left:1px solid #e5eaf0}
.rp-pill.is-on{background:#2563eb;color:#fff}
.rp-list{border:1px solid #e5eaf0;border-radius:12px;background:#fff;overflow:hidden}
/* #427 click map: the row itself is NOT a target — no pointer, no hover invitation; the doors are the name, the chip, the icon */
.rp-row{display:grid;grid-template-columns:minmax(170px,1fr) 88px minmax(220px,1.5fr) minmax(230px,1.1fr) 28px;gap:12px;align-items:center;padding:9px 16px;border-top:1px solid #eef2f7;min-width:0}
.rp-row:first-child{border-top:0}
.rp-row-head{background:#f8fafc;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#6d788d;font-weight:700}
.rp-row-unlinked{background:#fffaf0}
/* #427 day headers — thin full-width bands, light gray, small text, the count right-aligned */
.rp-band{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 16px;background:#f3f5f9;border-top:1px solid #e5eaf0;font-size:11.5px;font-weight:600;color:#5b6b82;letter-spacing:.01em}
.rp-band-count{font-weight:500;color:#7b8798;white-space:nowrap}
.rp-cell{min-width:0}
.rp-cell-when{font-size:13px;color:#33465c;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-cell-source{font-size:12.5px;color:#5b6b82;min-width:0}
.rp-source{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-received{display:block;font-size:11px;color:#8a95a5;line-height:1.3}   /* David's full date words — wraps rather than cuts */
/* #427 document cell — the practice's PDF icon (the ONE glyph, scaled down to the row) + the filename as a quiet label */
.rp-cell-title{display:flex;align-items:center;gap:10px;min-width:0}
.rp-icon{flex:0 0 auto;display:inline-flex;align-items:center}
.rp-icon .pvt3-pdf{display:inline-block}
.rp-doc{min-width:0;flex:1 1 auto;display:block}
.rp-title{display:block;font-weight:400;font-size:12.5px;color:#33465c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-linked{display:block;font-size:11px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-linked i,.rp-ci-state i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#9ca3af;margin-right:6px;vertical-align:1px}
.rp-linked.is-linked i,.rp-ci-state.is-linked i{background:#16a34a}
.rp-linked.is-linked{color:#166534}
/* #454 — the slide-out's viewed mark and × hide-duplicate, now on every row (quiet; arrow cursor, law 5.21) */
.rp-viewed{display:block;font-size:11px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-viewed.is-unviewed{color:#b45309;font-weight:700}
.rp-band-unviewed{color:#b45309;font-weight:700}
.rp-cell-hide{display:flex;justify-content:flex-end}
.rp-hide{width:24px;height:24px;border:1px solid transparent;border-radius:6px;background:transparent;color:#9ca3af;font-size:16px;line-height:1;cursor:default;padding:0}
.rp-hide:hover{border-color:#e5e7eb;color:#b91c1c;background:#fff5f5}
.rp-hide:disabled{opacity:.4}
/* no dark variants: this page has no dark theme of its own (its list stays white when the app is dark), so dark-only text
   colours put pale amber on white — measured on the #508 dark screenshot and removed */
.rp-no-file{display:inline-block;width:20px;text-align:center;color:#9ca3af}
.rp-patient{appearance:none;border:0;background:transparent;font:inherit;font-weight:700;font-size:13.5px;color:#2563eb;padding:0;cursor:pointer;text-align:left;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.rp-patient:hover{text-decoration:underline}
.rp-go-word{appearance:none;font:inherit;font-size:11px;font-weight:600;color:#5b6b82;background:#fff;border:1px solid #dfe6f0;border-radius:999px;padding:1px 8px;white-space:nowrap;cursor:pointer;margin-left:8px;vertical-align:middle}
.rp-go-word:hover{border-color:#2563eb;color:#2563eb}
.rp-unlinked{font-weight:700;font-size:13px;color:#b45309;margin-right:8px}
.rp-link-btn{vertical-align:middle}
.rp-link-host{margin-top:6px}
.rp-link-note{display:block;font-size:12px;color:#b45309}
.rp-empty{padding:26px 16px;font-size:14px;color:#5b6b82}
.rp-back-pill{appearance:none;display:inline-block;margin:0 0 10px;padding:3px 12px;border-radius:999px;border:1px solid rgba(52,120,223,.5);background:rgba(52,120,223,.08);color:#3478df;font:inherit;font-size:12.5px;font-weight:600;line-height:1.5;white-space:nowrap;cursor:pointer}
/* "Came In" on an Active PVT — its own section, its own colour, never inside a module */
.rp-came-in{--history-accent:#0e7490;--history-soft:#eefbfc}
.rp-came-in .p3-history-head h3{color:#0e7490}
.rp-came-in-list{display:grid;gap:8px}
.rp-came-in-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:start;padding:10px 12px;border:1px solid #cfeaf0;border-left:4px solid #0e7490;border-radius:8px;background:#f4fbfc}
.rp-came-in-row.is-linked{border-left-color:#16a34a}
.rp-came-in-when{font-size:13px;font-weight:600;color:#33465c;white-space:nowrap;padding-top:2px}
.rp-came-in-when small{display:block;font-size:11px;font-weight:500;color:#6b7280;white-space:normal}
.rp-came-in-title{min-width:0}
.rp-ci-head{display:flex;align-items:center;gap:10px;min-width:0}
.rp-ci-head .rp-title{font-size:13px;color:#16213a}
.rp-ci-head small{display:block;font-size:11.5px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-ci-state{margin-top:6px;font-size:12.5px;color:#33465c}
.rp-ci-state.is-linked{color:#166534;font-weight:600}
.rp-ci-times{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:3px;font-size:11.5px;color:#6b7280}
.rp-ci-panel{margin-top:8px;padding:9px 11px;border:1px solid #d5e7ea;border-radius:8px;background:#fff}
.rp-ci-panel>b{display:block;font-size:12.5px;color:#0e7490;margin-bottom:6px}
.rp-ci-note{display:block;font-size:12px;color:#6b7280}
.rp-cands{display:grid;gap:4px}
.rp-cand{display:grid;grid-template-columns:auto 118px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:5px 8px;border:1px solid #e5eaf0;border-radius:7px;font-size:12.5px;background:#fbfcfe;cursor:pointer}
.rp-cand:has(input:checked){border-color:#0e7490;background:#eefbfc}
.rp-cand input{margin:0}
.rp-cand-kind{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#5b6b82;white-space:nowrap}
.rp-cand-desc{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#16213a}
.rp-cand-date{font-size:11.5px;color:#6b7280;white-space:nowrap}
.rp-cand-grade{font-size:10.5px;font-weight:700;color:#166534;background:#dcfce7;border-radius:999px;padding:1px 7px;white-space:nowrap}
.rp-cand-likely .rp-cand-grade{color:#854d0e;background:#fef3c7}
.rp-ci-actions{display:flex;gap:8px;margin-top:8px}
.rp-ci-link{background:#0e7490;color:#fff;border-color:#0e7490}
.rp-ci-link:disabled{opacity:.5}
.rp-ci-linked,.rp-ci-left{margin-top:6px;font-size:12.5px;color:#33465c;display:flex;align-items:center;gap:8px}
.rp-ci-linklink{appearance:none;border:0;background:transparent;font:inherit;font-size:12.5px;color:#2563eb;padding:0;cursor:pointer;text-decoration:underline}
/* the pill in the top strip — the reserved deep-teal (ledger #334); letter-spacing tightened so the two words fit whole */
.p3-pill-records-processed{color:#0B5E66;background:rgba(56,178,172,0.26);border-color:rgba(56,178,172,0.55);letter-spacing:-0.01em}
.p3-pill-records-processed.is-here{background:rgba(56,178,172,0.46)}
:root[data-theme="dark"] body[data-page="calendar"] .p3-pill-records-processed{color:#9FE3DC;background:rgba(56,178,172,0.20);border-color:rgba(56,178,172,0.50)}
:root[data-theme="dark"] body[data-page="calendar"] .p3-pill-records-processed.is-here{background:rgba(56,178,172,0.40)}
