/* ============================================================
   SOREL – Overlay RTL pour l'arabe
   ============================================================ */

body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.06);
}

body.rtl .main-content {
  margin-left: 0;
  margin-right: var(--sidebar-width);
}

body.rtl .topbar {
  left: 0;
  right: var(--sidebar-width);
}

body.rtl .sidebar-nav li a {
  border-left: none;
  border-right: 3px solid transparent;
}

body.rtl .sidebar-nav li a.active {
  border-left: none;
  border-right-color: var(--gold);
}

body.rtl .sidebar-nav li a {
  text-align: right;
}

body.rtl .topbar-search input {
  padding: 0.4rem 2rem 0.4rem 0.8rem;
}

body.rtl .topbar-search .search-icon {
  left: auto;
  right: 0.6rem;
}

body.rtl .topbar-actions {
  margin-left: 0;
  margin-right: auto;
}

body.rtl .kpi-card,
body.rtl .card,
body.rtl .audit-card {
  text-align: right;
}

body.rtl .kpi-value {
  flex-direction: row-reverse;
}

body.rtl .kpi-icon,
body.rtl .kpi-value-icon {
  float: left;
}

body.rtl .table-criteres th,
body.rtl .table-criteres td {
  text-align: right;
}

body.rtl .quick-item {
  flex-direction: row-reverse;
}

body.rtl .audit-meta {
  flex-direction: row-reverse;
}

body.rtl .fiche-section ul {
  padding-left: 0;
  padding-right: 1.1rem;
}

body.rtl .fiche-actions {
  flex-direction: row-reverse;
}

body.rtl .activity-item {
  flex-direction: row-reverse;
}

body.rtl .user-profile {
  flex-direction: row-reverse;
}

body.rtl .filter-group select,
body.rtl .filter-group input {
  text-align: right;
}

body.rtl .page-header {
  text-align: right;
}

body.rtl .referentiel-bar {
  flex-direction: row-reverse;
}

body.rtl .status {
  flex-direction: row-reverse;
}

body.rtl .topbar-title {
  order: 2;
}

body.rtl .topbar-search {
  order: 1;
}

body.rtl .topbar-actions {
  order: 0;
}
