.erp-language-control { display:flex; align-items:center; gap:7px; flex:0 0 auto; color:var(--text); }
.erp-language-control > span { font-size:11px; color:var(--muted); }
.erp-language-control select { min-width:105px; height:38px; border:1px solid var(--line); border-radius:9px; background:var(--panel); color:var(--text); padding:0 8px; font:inherit; font-size:12px; direction:ltr; }
.topbar .erp-language-control > span { display:none; }
.login-form-panel > .erp-language-control { align-self:flex-end; margin-bottom:12px; }
html[dir="rtl"] body { font-family:Tahoma,"Segoe UI",Arial,sans-serif; }
html[dir="rtl"] :is(.menu-item,.menu-label,.page-heading,.surface-header,.report-card,.quick-action,.stock-form-field,.coa-field,.construction-report-card) { text-align:start; }
html[dir="rtl"] .sidebar { border-right:0; border-left:1px solid var(--line); }
html[dir="rtl"] :is(.menu-badge,.sidebar-close) { margin-left:0; margin-right:auto; }
html[dir="rtl"] .searchable-combo-arrow { right:auto; left:10px; }
html[dir="rtl"] .searchable-combo-input { padding-right:10px; padding-left:32px; text-align:start; }
html[dir="rtl"] .searchable-combo-option { text-align:start; }
html[dir="rtl"] .aux-master-field .searchable-combo-option { direction:ltr; text-align:left; }
html[dir="rtl"] :is(.searchable-combo-options,.menu-label,.eyebrow) { letter-spacing:normal!important; }
/* Preserve numeric/account column order and readable financial identifiers. */
html[dir="rtl"] #app table { direction:ltr; }
html[dir="rtl"] #app :is(input[type="number"],input[type="date"],input[type="password"],input[id*="number"],input[id*="code"],input[id*="rate"],input[id*="amount"],input[id*="debit"],input[id*="credit"],.voucher-entry-grid) { direction:ltr; unicode-bidi:plaintext; }
html[dir="rtl"] .voucher-history-shell-toggle { left:auto!important; right:calc(min(var(--voucher-history-width,430px),30%) - 15px)!important; }
html[dir="rtl"] .voucher-entry-shell.history-hidden .voucher-history-shell-toggle { right:6px!important; }
@media (max-width:900px) {
  .erp-language-control select { min-width:84px; max-width:115px; }
  html[dir="rtl"] .sidebar { left:auto!important; right:0!important; transform:translateX(102%); }
  html[dir="rtl"] .sidebar.open { transform:translateX(0); }
}
