/* Minimal RTL support tweaks layered over LTR Bootstrap */
html[dir=rtl] body { direction: rtl; }

/* margin inline helpers */
html[dir=rtl] .me-0 { margin-left: 0 !important; margin-right: 0 !important; }
html[dir=rtl] .ms-0 { margin-right: 0 !important; margin-left: 0 !important; }
html[dir=rtl] .me-1 { margin-left: .25rem !important; margin-right: 0 !important; }
html[dir=rtl] .me-2 { margin-left: .5rem !important; margin-right: 0 !important; }
html[dir=rtl] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
html[dir=rtl] .me-4 { margin-left: 1.5rem !important; margin-right: 0 !important; }
html[dir=rtl] .me-5 { margin-left: 3rem !important; margin-right: 0 !important; }
html[dir=rtl] .ms-1 { margin-right: .25rem !important; margin-left: 0 !important; }
html[dir=rtl] .ms-2 { margin-right: .5rem !important; margin-left: 0 !important; }
html[dir=rtl] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
html[dir=rtl] .ms-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
html[dir=rtl] .ms-5 { margin-right: 3rem !important; margin-left: 0 !important; }

/* padding inline helpers */
html[dir=rtl] .pe-0 { padding-left: 0 !important; padding-right: 0 !important; }
html[dir=rtl] .ps-0 { padding-right: 0 !important; padding-left: 0 !important; }
html[dir=rtl] .pe-1 { padding-left: .25rem !important; padding-right: 0 !important; }
html[dir=rtl] .pe-2 { padding-left: .5rem !important; padding-right: 0 !important; }
html[dir=rtl] .pe-3 { padding-left: 1rem !important; padding-right: 0 !important; }
html[dir=rtl] .pe-4 { padding-left: 1.5rem !important; padding-right: 0 !important; }
html[dir=rtl] .pe-5 { padding-left: 3rem !important; padding-right: 0 !important; }
html[dir=rtl] .ps-1 { padding-right: .25rem !important; padding-left: 0 !important; }
html[dir=rtl] .ps-2 { padding-right: .5rem !important; padding-left: 0 !important; }
html[dir=rtl] .ps-3 { padding-right: 1rem !important; padding-left: 0 !important; }
html[dir=rtl] .ps-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
html[dir=rtl] .ps-5 { padding-right: 3rem !important; padding-left: 0 !important; }

/* Breadcrumb and pagination alignment */
html[dir=rtl] .breadcrumb { flex-direction: row-reverse; }
html[dir=rtl] .pagination { direction: ltr; }

/* Language dropdown alignment tweak */
html[dir=rtl] .dropdown-menu-end { right: auto; left: 0; }
