/*
 * Overrides for dir="rtl" (Arabic). Loaded only when the active locale is
 * RTL (see i18n.php / isRtl()), on top of app.css. Grid/flex track order
 * already flips automatically under dir="rtl" — this file only fixes the
 * few properties that don't (physical left/right, text-align).
 */

[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid var(--border);
}

[dir="rtl"] th,
[dir="rtl"] td {
    text-align: right;
}

[dir="rtl"] .table-wrap th:first-child,
[dir="rtl"] .table-wrap td:first-child {
    padding-left: 10px;
    padding-right: 16px;
}

[dir="rtl"] input[type="number"] {
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .auth-lang-switch {
    right: auto;
    left: 24px;
}

[dir="rtl"] code {
    direction: ltr;
    display: inline-block;
}
