/* ==========================================================================
   Selected-row hover guard (must be LAST: equal specificity, wins on order)

   A bare `.row:hover` is (0,2,0) and a `.row-selected` is only (0,1,0), so the
   hover always outranks the selection: moving the cursor over a selected row
   repainted it pale while its text stayed white, and the row read as blank.
   Restating the selection at hover specificity, for every grid in the suite,
   is what keeps a selected row readable under the cursor.

   Grouped by what the selection looks like, so a new grid joins the list its
   colours already belong to.
   ========================================================================== */

/* ---- mid blue, white text ---- */
.cpt-row-selected:hover,
.er-row-selected:hover,
.admitted-row-selected:hover,
.lab-detail-row-selected:hover { background: #2f6ea5; color: #fff; }

/* ---- ward blue, white text (listing rows, the note trail, consultant visits) ---- */
.ipd-row-selected:hover,
.ipd-trail-row-selected:hover { background: #2f6f9f; color: #fff; }

/* ---- deep blue, white text ---- */
.vr-row-selected:hover,
.pp-row-selected:hover,
.ap-row-selected:hover,
.bp-row-selected:hover,
.cp-row-selected:hover,
.er-grid-row-selected:hover,
.ph-row-selected:hover { background: #1d4f91; color: #fff; }

/* ---- pale blue, ordinary text ---- */
.patient-grid-row-selected:hover,
.appt-lookup-row-selected:hover,
.appt-grid-row-selected:hover { background: #cfe4f5; color: var(--ink); }

/* A cell that carries its own tint would show through the selection - the bill's
   Total column is the one that did. The selection owns the whole row. */
.ipd-visit-row.ipd-row-selected:hover .ipd-col,
.ipd-visit-row.ipd-row-selected:hover .vd-col,
.ipd-visit-row.ipd-row-selected:hover .ipd-visit-total { background: transparent; color: #fff; }
