/* ---- Interface languages (v1.9.1): English · اردو · العربية ---- */

/* Arabic typography */
html[lang=ar] body, html[lang=ar] .form-control, html[lang=ar] .form-select, html[lang=ar] .btn, html[lang=ar] .badge,
html[lang=ar] .dropdown-item, html[lang=ar] .nav-link, html[lang=ar] .nav-sublink, html[lang=ar] input::placeholder, html[lang=ar] textarea::placeholder {
  font-family: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", "Dubai", Tahoma, "Arabic Typesetting", "Traditional Arabic", system-ui, sans-serif;
  letter-spacing: 0;
}
html[lang=ar] body { line-height: 1.75; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3, html[lang=ar] h4, html[lang=ar] h5, html[lang=ar] h6 { letter-spacing: 0; line-height: 1.5; }
html[lang=ar] .table td, html[lang=ar] .table th { vertical-align: middle; }

/* Language switcher */
.lang-switch .lang-toggle { min-width: 0; display: inline-flex; align-items: center; gap: .15rem; font-family: inherit; }
.lang-switch .lang-name[lang=ur] { font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Urdu Typesetting", serif; }
.lang-switch .lang-name[lang=ar] { font-family: "Segoe UI", "Noto Naskh Arabic", Tahoma, sans-serif; }
.lang-switch .dropdown-item[lang=ur] span { font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Urdu Typesetting", serif; font-size: 1.05rem; }
.lang-switch .dropdown-item[lang=ar] span { font-family: "Segoe UI", "Noto Naskh Arabic", Tahoma, sans-serif; }
.lang-switch .dropdown-menu { min-width: 12rem; }
.lang-floating { position: fixed; top: 14px; inset-inline-end: 14px; z-index: 1050; }
@media print { .lang-switch { display: none !important; } }
@media (max-width: 575.98px) { .lang-switch .lang-name { display: none; } }

/* Right-to-left details the stylesheet mirror cannot know about */
[dir=rtl] .fa-angle-right, [dir=rtl] .fa-angle-left, [dir=rtl] .fa-chevron-right, [dir=rtl] .fa-chevron-left,
[dir=rtl] .fa-arrow-right, [dir=rtl] .fa-arrow-left, [dir=rtl] .fa-arrow-right-long, [dir=rtl] .fa-arrow-left-long,
[dir=rtl] .fa-right-to-bracket, [dir=rtl] .fa-right-from-bracket, [dir=rtl] .fa-arrow-up-right-from-square,
[dir=rtl] .fa-reply, [dir=rtl] .fa-paper-plane, [dir=rtl] .fa-person-walking-arrow-right { transform: scaleX(-1); }
/* numbers, phone numbers, e-mails, codes and URLs read left-to-right inside RTL text */
[dir=rtl] input[type=tel], [dir=rtl] input[type=email], [dir=rtl] input[type=url], [dir=rtl] input[type=number], [dir=rtl] .font-monospace, [dir=rtl] code,
[dir=rtl] input[name*=phone], [dir=rtl] input[name*=mobile], [dir=rtl] input[name=cnic], [dir=rtl] input[name*=email] { direction: ltr; text-align: right; unicode-bidi: plaintext; }
[dir=rtl] .table td, [dir=rtl] .table th { text-align: right; }
[dir=rtl] .table td.text-end, [dir=rtl] .table th.text-end { text-align: left; }
[dir=rtl] .breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: var(--bs-breadcrumb-item-padding-x); padding-right: 0; }
[dir=rtl] .toast-container.end-0 { right: auto !important; left: 0 !important; }
[dir=rtl] .form-switch { padding-left: 0; padding-right: 2.5em; }
[dir=rtl] canvas { direction: ltr; }
