/* Canigenix theme parity; no white fallback cards. */
#cgxHandoffPanel[hidden]{display:none!important}
.cx-handoff{margin:16px 0 22px;padding:22px;border:1px solid #315462;border-radius:14px;background:#122b36;color:#ecf6f4;scroll-margin-top:20px;box-shadow:0 10px 28px rgba(0,0,0,.12)}
.cx-handoff h2,.cx-handoff h3{color:#e7f7f2;margin:.35rem 0}
.cx-handoff-top,.cx-handoff-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.cx-handoff-muted{color:#b3ced0;font-size:.85rem;line-height:1.55}
.cx-handoff-client,.cx-handoff-clinical,.cx-handoff-state{padding:11px 14px;border:1px solid #43616b;border-radius:9px;background:#10212c;color:#d9f1ed;line-height:1.5}
.cx-handoff-clinical{border-left:3px solid #65d8c0}.cx-handoff-state{font-size:.84rem;color:#9fe3d1}
.cx-handoff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.cx-handoff-check{display:flex;align-items:flex-start;gap:12px;border:1px solid #365b65;background:#0c202a;border-radius:10px;padding:14px;color:#e2efec;cursor:pointer;line-height:1.45}
.cx-handoff-check input{width:18px;height:18px;flex:none;accent-color:#56cdb3;margin-top:2px}
.cx-handoff-notes{display:grid;gap:8px;color:#c5d9dc}.cx-handoff-notes textarea{width:100%;box-sizing:border-box;background:#0b202a;color:#f0f7f5;border:1px solid #53737c;border-radius:9px;padding:12px;font:inherit}
.cx-handoff-actions{justify-content:flex-start;margin:15px 0}.cx-handoff-actions button{min-height:42px}
.cx-handoff-notice{color:#9ee7d6;min-height:22px}.cx-handoff-error{color:#ffafa2!important}
.cgx-clear-patient-btn{border-color:#608c91;color:#d6e7e8;background:transparent}
@media(max-width:760px){.cx-handoff-grid{grid-template-columns:1fr}.cx-handoff{padding:16px}.cx-handoff-actions button{width:100%}}

/* Keep discharge desk with Clinic Day, not on unrelated module screens. */
#dashboardShortcuts[hidden] ~ #cgxHandoffPanel,
#appView.cx-clients-open #cgxHandoffPanel,
#appView.cx-billing-open #cgxHandoffPanel,
#appView.cx-inventory-open #cgxHandoffPanel,
#appView.cx-purchasing-open #cgxHandoffPanel{display:none!important}

/* v141: single checkout status within existing Discharge Desk; no additional tabs. */
.cx-checkout-overview{border:1px solid #426e76;border-radius:11px;padding:16px;margin:14px 0;background:#0c222c}
.cx-checkout-overview h4{margin:2px 0 10px;color:#d9f3ed}
.cx-checkout-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.cx-checkout-step{display:flex;flex-direction:column;gap:4px;background:#16323c;padding:10px;border-radius:8px;color:#d8eee9}
.cx-checkout-step-label{font-size:.75rem;color:#b3ced0}
.cx-checkout-finance{border-top:1px solid #426e76;margin-top:12px;padding-top:14px}
.cx-checkout-doc{font-size:.85rem;line-height:1.5;margin:7px 0}
@media(max-width:760px){.cx-checkout-steps{grid-template-columns:1fr}}

/* v146: explicit clinician-only owner handout, within existing Discharge Desk. */
#cxHandoutCard[hidden]{display:none!important}
.cx-owner-handout{margin:16px 0;padding:17px;border:1px solid #406f77;border-radius:11px;background:#102832}
.cx-owner-handout h3{margin:0 0 9px}
.cx-owner-handout .cx-handoff-notes{margin:12px 0}
.cx-owner-handout textarea,.cx-owner-handout select{width:100%;box-sizing:border-box;color:#f0f7f5;background:#0b202a;border:1px solid #53737c;border-radius:9px;padding:12px;font:inherit}
.cx-owner-handout button{min-height:42px;margin-top:12px}

/* v147: archived owner discharge history, inside the existing Discharge Desk. */
.cx-owner-history{border-top:1px solid var(--line,#d9e3e6);margin-top:1rem;padding-top:.7rem}
.cx-owner-history-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;padding:.65rem 0;border-bottom:1px solid var(--line,#d9e3e6)}
.cx-owner-followups{margin-top:1rem;padding:.8rem;border-radius:.7rem;background:rgba(122,148,153,.08)}
