/* =====================================================================
   Module overrides
   ---------------------------------------------------------------------
   Fixes that belong to this project's own modules, kept OUT of styles.css
   and the other vendor stylesheets so nothing already working elsewhere is
   disturbed by them. Loaded last, after the vendor CSS.

   Add module-specific corrections here rather than editing a shared file.
   ===================================================================== */

/*
   Bootstrap's .text-primary is redefined as `color: #fff` in the vendor
   stylesheets. That breaks the standard subtle-badge pattern used across the
   CRM - `bg-primary-subtle text-primary` renders white text on a pale blue
   background, so the label is present but invisible. It also made the "All
   Tickets" status card show neither its count nor its icon.

   Restored to Bootstrap's own value here, so the vendor file stays exactly as
   shipped and this can be dropped by removing one <link>.
*/
.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

/*
   select2: the original <select> must be taken OUT of flow.

   In assets/libs/select2/dist/css/select2.min.css the .select2-hidden-accessible
   rule has its `position: absolute !important;` commented out. Everything else
   in that rule survives - 1px box, clip-path, overflow hidden - so the native
   <select> is still invisible, but it is no longer removed from the layout. It
   keeps its place in flow and every select2 on the page contributes a small
   gap: the sidebar offset on the ticket screens, and the same drift anywhere
   else a select2 sits inside a flex or grid row.

   Restored to the stock select2 rule here rather than in the library file, so
   the vendor stylesheet stays exactly as shipped. This only ever removes space
   that should not have been occupied, so it cannot push existing layouts apart.
*/
.select2-hidden-accessible {
    position: absolute !important;
}
