/**
 * Bahij TheSansArabic — LTR and RTL RonexAdmin shells.
 *
 * - @font-face for Bahij + remap `Switzer` weights to Bahij (after app.min / app-rtl).
 * - Override `--tb-font-sans-serif` so Bootstrap/Toner variables resolve to Bahij everywhere.
 * - Explicit stack on body / overlays for inherited text.
 *
 * Loaded from `utils/css.html` after `app.min.css` or `app-rtl.min.css`.
 */
:root {
  --tb-font-sans-serif: "Bahij TheSansArabic", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
}

/* In-package sources (../fonts relative to this css file) — never load core UI
   fonts from an external host; offline/firewalled clients must still render. */
@font-face {
  font-family: "Bahij TheSansArabic";
  src: url("../fonts/Bahij_TheSansArabic-Bold.woff") format("woff"),
    url("../fonts/Bahij_TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Bahij TheSansArabic";
  src: url("../fonts/Bahij_TheSansArabic-Plain.woff") format("woff"),
    url("../fonts/Bahij_TheSansArabic-Plain.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Toner theme uses `Switzer`; map every UI weight to Bahij files (same as TechnoLab app-rtl). */
@font-face {
  font-family: Switzer;
  src: url("../fonts/Bahij_TheSansArabic-Bold.woff") format("woff"),
    url("../fonts/Bahij_TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: Switzer;
  src: url("../fonts/Bahij_TheSansArabic-Bold.woff") format("woff"),
    url("../fonts/Bahij_TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: Switzer;
  src: url("../fonts/Bahij_TheSansArabic-Bold.woff") format("woff"),
    url("../fonts/Bahij_TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: Switzer;
  src: url("../fonts/Bahij_TheSansArabic-Bold.woff") format("woff"),
    url("../fonts/Bahij_TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: Switzer;
  src: url("../fonts/Bahij_TheSansArabic-Bold.woff") format("woff"),
    url("../fonts/Bahij_TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

html body,
html .offcanvas,
html .modal-content,
html .dropdown-menu,
html .popover,
html .tooltip {
  font-family: "Bahij TheSansArabic", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Tagbar (2026-04): shell top bar uses flex + logical spacing; ticker marquee in tagbar.js
   keeps LTR keyframes. No extra Bahij rules required unless you add physical ml/mr on
   new tagbar elements — prefer ms/me, flex-start/flex-end, and the RTL admin checklist. */
