/* DOCTOR'S INSTRUCTIONS — dashboard pill + pulse + list (David's order #365, 2026-09-02). Same bones as the
   Needs-David tray (needs-david.css) so the two read as one family; blue, because these are her words, not an alarm. */
.di-pill{position:relative;border-color:#c7dbf7;color:#1d4ed8;background:#fff}
.di-pill.di-empty{color:#94a3b8;border-color:#e2e8f0}
.di-pill .di-dot{width:8px;height:8px;border-radius:50%;background:#cbd5e1;flex:0 0 auto}
.di-pill:not(.di-empty) .di-dot{background:#3478df}
.di-pill .di-count{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#1d4ed8;color:#fff;font-size:11px;font-weight:800;display:inline-grid;place-items:center;line-height:1}
/* THE PULSE — while any open item has never been opened. Stops the moment the list is opened. */
.di-pill.di-pulse{border-color:#3478df;background:#eaf3ff;animation:di-pulse-ring 1.2s ease-in-out infinite}
.di-pill.di-pulse .di-dot{animation:di-pulse-dot 1.2s ease-in-out infinite}
@keyframes di-pulse-ring{0%,100%{box-shadow:0 0 0 0 rgba(52,120,223,.55)}50%{box-shadow:0 0 0 7px rgba(52,120,223,0)}}
@keyframes di-pulse-dot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(1.35)}}
@media (prefers-reduced-motion:reduce){.di-pill.di-pulse,.di-pill.di-pulse .di-dot{animation:none;box-shadow:0 0 0 3px rgba(52,120,223,.35)}}
.p3-dash-instructions{display:flex;align-items:center;gap:10px;margin:0 0 12px}

.di-modal{width:min(96vw,820px)}
.di-modal .di-head-count{font-size:14px;color:#64748b;font-weight:700}
.di-body{padding:0 !important;max-height:min(70vh,760px);overflow:auto}
.di-list{list-style:none;margin:0;padding:0}
.di-history{border-top:3px solid #e2e8f0}
.di-history::before{content:"History";display:block;padding:10px 18px 2px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.di-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 18px;border-bottom:1px solid #eef2f7}
.di-row-new{background:#f5f9ff}
.di-row-done{opacity:.78}
.di-main{min-width:0}
.di-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:4px}
.di-patient{font-size:15px;font-weight:800;color:#0f172a}
.di-pvt{font-size:12.5px;color:#475569;font-weight:600}
.di-tag{font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:1px 7px;border-radius:999px;background:#e2e8f0;color:#334155}
.di-tag-new{background:#dbeafe;color:#1d4ed8}
.di-tag-backfilled{background:#fef3c7;color:#92400e}
.di-head{font-size:14px;font-weight:700;color:#16213a;margin:2px 0 4px}
.di-trigger{font-weight:500;color:#64748b;font-size:12.5px}
.di-line{font-size:14px;line-height:1.45;color:#16213a;white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0}
.di-line b{display:inline-block;min-width:96px;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin-right:6px;vertical-align:top;padding-top:2px}
.di-meta{margin-top:6px;font-size:12px;color:#64748b}
.di-open-pvt{color:#3478df;text-decoration:none;border-bottom:1px dotted #3478df}
.di-done{align-self:center;border:1px solid #c7dbf7;background:#fff;color:#1d4ed8;font-weight:800;font-size:12.5px;padding:8px 14px;border-radius:8px}
.di-done:hover{background:#eaf3ff}
.di-done:disabled{opacity:.6}
.di-empty-state{padding:26px 18px;color:#64748b;font-size:14px}
.di-err{margin:0 18px 8px;padding:8px 12px;border-radius:8px;background:#fff1f2;color:#991b1b;font-size:13px;font-weight:600}
.di-err button{float:right;border:0;background:transparent;color:inherit;font-size:16px;line-height:1}
.di-modal .modal-foot .spacer{flex:1}
