/* Explicit text roles for light status boxes inside the dark App shell. */
#sp-app-shell .alert-warning { background-color:#fff3cd!important; color:#513a00!important; }
#sp-app-shell .alert-danger { background-color:#f8d7da!important; color:#721c24!important; }
#sp-app-shell .alert-success { background-color:#d1e7dd!important; color:#0f5132!important; }
#sp-app-shell .alert-info { background-color:#cff4fc!important; color:#055160!important; }
#sp-app-shell .alert-secondary,#sp-app-shell .alert-light { background-color:#e9ecef!important; color:#343a40!important; }
#sp-app-shell .alert-dark { background-color:#343a40!important; color:#f8f9fa!important; }
#sp-app-shell .alert :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,li,label,legend) { color:inherit!important; }
#sp-app-shell .alert a { color:inherit!important; text-decoration:underline; }
#sp-app-shell .place_absence_section p[role="alert"][style] { color:#513a00!important; }

/* The room diagram intentionally keeps a light surface. */
#sp-app-shell .sp-room-map :is(h4,h5,h6) { color:#24382c; }

/* Preserve highlighted dates, links and action buttons with readable foregrounds. */
#sp-app-shell .place_absence_section .form-label > span { color:#ff91ad; }
#sp-app-shell .dashboard .occasion_date p { color:#173d3d; }
#sp-app-shell .loyalty_card_block a.activated { color:#fff; }
#sp-app-shell .loyalty_card_block a:not(.activated) { color:#173d3d; }
#sp-app-shell a.mp-open,#sp-app-shell a.mp-open span { color:#fff; }
#sp-app-shell .search_block .input-group-btn .btn { background:#205e62; color:#fff; border-color:#7fae9f; }
#sp-app-shell .dropdown-menu .text-muted { color:#c0cbc7!important; }
#sp-app-shell #sp-peer-page .sp-peer-label,#sp-app-shell #sp-peer-page #peer-character-count { color:#526556; }
#sp-app-shell #sp-peer-page textarea::placeholder { color:#526556!important; opacity:1; }
/* The QR pass is a portal outside the App shell and has a light error box. */
body:has(#sp-app-shell) .sp-gate-dialog .sp-gate-error { background:#fff3cd; color:#513a00; }

/* Legacy rich text inherits its surrounding card/cell instead of stored black text. */
#sp-app-shell :is(.event_detail_des,.news_listing_des,.news_detail,.video_list_detail,.title_detail,.chat_inner,.notifications_des) [style*="color" i],
#sp-app-shell :is(.event_detail_des,.news_listing_des,.news_detail,.video_list_detail,.title_detail,.chat_inner,.notifications_des) font[color],
#sp-app-shell :is(.table-responsive,.table-responsive-xxl) :is(td,th) [style*="color" i],
#sp-app-shell :is(.table-responsive,.table-responsive-xxl) :is(td,th) font[color] { color:inherit!important; }
