/*
 * RTL groundwork for the Dari/Pashto locales — deliberately scoped to the
 * page CONTENT only, never <html>/<body>. layouts/app.blade.php puts
 * dir="rtl" + the .rtl class on .main-panel > .content-wrapper (the
 * authenticated shell) or a plain wrapper div around @yield('content')
 * (guest pages) — never on <body> itself. The navbar, sidebar, and
 * footer are outside that element (siblings/ancestors, not descendants),
 * so they never match a [dir="rtl"]/.rtl-scoped selector and stay LTR
 * and in their normal position regardless of locale — a deliberate
 * choice: the vendor theme's own extensive .rtl-scoped chrome rules
 * (style.css — .rtl .navbar, .rtl .sidebar, etc.) were written for its
 * stock markup and actively fought the fully custom navbar/sidebar
 * (see partial/sidebar.blade.php), so rather than fixing each clash one
 * at a time, chrome is opted out of RTL mirroring entirely. Every rule
 * below still safely reaches genuinely page-content vendor components
 * (.rtl .table, .rtl .form-check, etc.) since those elements ARE
 * descendants of the scoped wrapper.
 */

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

[dir="rtl"] .stat-card-icon {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .scope-toggle-btn i {
  margin-right: 0;
  margin-left: 2px;
}

[dir="rtl"] .dropdown-item-icon {
  margin-right: 0 !important;
  margin-left: 0.5rem;
}
