/* Loaded only when dir="rtl" is active, after site.css, to correct the pieces of
   the legacy Bootstrap-3-era rules in site.css that hardcode a physical left/right
   value and would otherwise win (by source order) over Bootstrap 5's own RTL
   stylesheet for the same class names. The shell markup (_Layout, UpperMenu,
   Login, ChangePassword, ForgotPassword, Home, Error) was audited for this;
   these are the concrete collisions found. */

body,
.tenant-upper-menu,
.auth-shell,
.recovery-shell,
.tenant-account-page {
    font-family: "Noto Kufi Arabic", "Open Sans", Arial, sans-serif;
}

/* site.css:3316 defines a legacy .dropdown-menu { text-align: left } that loads
   after Bootstrap's own stylesheet and overrides its RTL text alignment. */
[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* site.css:4920 defines a legacy .alert-dismissible { padding-right: 35px } that
   reserves close-button space on the wrong side once the button flips to the
   inline-end (left, in RTL) via Bootstrap's RTL stylesheet. */
[dir="rtl"] .alert-dismissible {
    padding-right: 1rem;
    padding-left: 35px;
}

/* site.min.css carried a stale, uncommented `th { text-align: left }` (the
   same rule is commented out in site.css:2413 as dead) that loads after
   Bootstrap's RTL stylesheet and wins the cascade for every plain <th>, e.g.
   the table headers on TenantTickets.cshtml. Fixed at the source in
   site.min.css; this rule guards against the same drift recurring. */
[dir="rtl"] th {
    text-align: right;
}

/* site.css:6303/6308 carries a legacy BS3-era clearfix (::before/::after,
   content:" ", display:table) on .row and .container-fluid. BS5's .row/
   .container-fluid are display:flex, so those pseudo-elements become real,
   invisible flex items and skew flex distribution (space-between, centering,
   etc). site.css already neutralizes this for `.navbar > .container-fluid`
   (line ~12696) but every other bare `.row`/`.container-fluid` on every page
   is still affected. */
.row::before,
.row::after,
.container-fluid::before,
.container-fluid::after {
    display: none !important;
    content: none !important;
}
