/* Light-tier extras (web/lightplus.js) */
.lp-tl { width:100%; border-collapse:collapse; margin:8px 0 4px; font-size:13px; }
.lp-tl th, .lp-tl td { border-bottom:1px solid #e2e8f0; padding:6px 8px; text-align:left; vertical-align:top; }
.lp-tl th { color:#64748b; font-weight:600; font-size:12px; background:#f8fafc; }
.lp-tl td.t { white-space:nowrap; font-variant-numeric:tabular-nums; }
.lp-ok { color:#047857; font-weight:600; }
.lp-bad { color:#b91c1c; font-weight:600; }
.lp-dim { color:#94a3b8; }
.lp-box { border:1px solid #dbe4f3; background:#f8fbff; border-radius:10px; padding:12px 14px; margin:12px 0; }
.lp-box h3 { margin:0 0 6px; font-size:15px; color:#041030; }
.lp-chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.lp-chip { display:inline-block; padding:3px 9px; border-radius:999px; font-size:12px; font-weight:600; background:#eef4ff; color:#0060E4; }
.lp-chip.red { background:#fef2f2; color:#b91c1c; }
.lp-chip.amber { background:#fffbeb; color:#b45309; }
.lp-chip.green { background:#ecfdf5; color:#047857; }
.lp-chip.grey { background:#f1f5f9; color:#475569; }
.lp-off { border:1px dashed #cbd5e1; background:#f8fafc; border-radius:10px; padding:10px 12px; color:#475569; font-size:13px; margin:10px 0; }
.lp-off b { color:#334155; }
.lp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; }
.lp-rank { display:inline-flex; width:26px; height:26px; border-radius:50%; align-items:center; justify-content:center; font-weight:700; background:#041030; color:#fff; font-size:13px; margin-right:8px; }
.lp-q { border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px; margin:8px 0; background:#fff; }
.lp-q.emerg { border-left:4px solid #dc2626; }
.lp-q.newp { border-left:4px solid #0060E4; }
.lp-q.done { background:#f8fafc; }
.lp-q .row1 { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:center; }
.lp-st { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.lp-st .btn.on { background:#041030; color:#fff; border-color:#041030; }
.lp-ladder { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:13px; margin:6px 0; }
.lp-ladder span.step { padding:4px 10px; border-radius:8px; background:#eef4ff; color:#041030; font-weight:600; }
.lp-ladder span.arrow { color:#566477; }
table.lp-board td, table.lp-board th { font-size:12.5px; }
table.lp-board td.co { color:#94a3b8; font-style:italic; white-space:nowrap; }
.lp-gap-missing { color:#b91c1c; font-weight:600; }
.lp-gap-partial { color:#b45309; font-weight:600; }
.lp-gap-returned { color:#047857; font-weight:600; }
.lp-ans input { padding:6px 8px; }
textarea.lp-ta { width:100%; min-height:70px; padding:8px 10px; border:1px solid #cbd5e1; border-radius:8px; font:inherit; }
/* Money Board: use the full screen width so the Connected-only columns stay visible */
table.lp-board td:nth-child(8) { min-width:170px; }
/* Callbacks find/filter + in-place outcomes (UX review P1-2/P1-3, 18 Nov 2026) */
.cbtools { margin:12px 0; display:flex; flex-direction:column; gap:8px; }
.cbtools input[type=search] { max-width:420px; }
.chip.on { background:#eef4ff; border-color:#0b63e5; color:#0b3a8c; }
.lp-st { align-items:center; }
.lp-st .btn.on { background:#ecfdf5; border-color:#059669; color:#065f46; font-weight:700; }
.cbnote { margin-top:8px; } .cbnote input { height:36px; font-size:13px; max-width:520px; }
.lp-q[hidden] { display:none; }
/* Money Board huddle sheet + explainers (UX review P1-7/P1-8) */
.mbfilter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.lp-board tr[hidden] { display:none; }
details.gaps summary { cursor:pointer; list-style:revert; }
details.gaps ul { margin:6px 0 0; padding-left:18px; font-size:12.5px; }
details.explain { display:inline-block; position:relative; vertical-align:middle; }
details.explain summary { list-style:none; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; border:1px solid #0b63e5; color:#0b3a8c; background:#eef4ff; font:700 13px Inter, sans-serif; cursor:pointer; }
details.explain summary::-webkit-details-marker { display:none; }
details.explain .explain-body { position:absolute; z-index:30; left:0; top:30px; width:min(360px, 80vw); background:#fff; border:1px solid #94a3b8; border-radius:10px; padding:10px 12px; box-shadow:0 10px 30px rgba(4,16,48,.15); font-size:13px; line-height:1.5; color:var(--navy); font-weight:400; }
.explain-row { display:flex; align-items:center; gap:8px; margin:8px 0; }
/* Money Board: card layout up to tablet width (was 640 px; the 8-column table pushed the page 29 px sideways at 768 px). */
@media (max-width:900px) {
  table.lp-board thead { display:none; }
  table.lp-board, table.lp-board tbody, table.lp-board tr, table.lp-board td { display:block; width:100%; }
  table.lp-board tr { border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:10px; background:#fff; }
  table.lp-board td { border:0; padding:3px 0; text-align:left !important; white-space:normal !important; }
  table.lp-board td[data-l]::before { content:attr(data-l) ": "; font-size:12px; color:#475569; font-weight:600; }
  table.lp-board td[data-l="Patient"]::before, table.lp-board td[data-l="Time"]::before { content:none; }
  details.explain .explain-body { position:fixed; left:5vw; right:5vw; top:auto; width:auto; }
}
@media print { details.explain { display:none; } }
