/*
 * RTL overrides for Arabic — loaded only when app()->getLocale() === 'ar'
 * (see resources/views/layouts/app.blade.php), after theme.css/custom.css.
 *
 * theme.css already uses Bootstrap 5's logical spacing utilities (.ms-/.me-,
 * not .ml-/.mr-), which flip automatically under dir="rtl" — so this file is
 * deliberately small and targeted, not a full Bootstrap-RTL rebuild (there's
 * no build step in this project to regenerate one from the purchased theme).
 * Extend this file as specific components are found to need it during visual
 * QA, rather than trying to flip every physical left/right rule up front.
 */

[dir="rtl"] body {
    text-align: right;
}

/* Bootstrap's dropdown-menu-end assumes LTR; under RTL it should hug the
   opposite edge of its toggle. */
[dir="rtl"] .dropdown-menu-end {
    --bs-position: start;
}

/* Mobile off-canvas menu slides from the reading-start edge (right in RTL),
   not always the physical left the theme assumes. */
[dir="rtl"] .offcanvas-start {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

/* Breadcrumb separators and icon+text horizontal groups that assume LTR
   order visually read backwards under RTL without this. */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: 0.5rem;
}
