/* Direction comes from <html dir>, including portalled menus and popups. */
.panel-language-switcher .btn { min-height: 36px; font-weight: 500; }
.panel-language-switcher .dropdown-item { min-width: 140px; }
.flowsella-brand__name { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] body { font-family: Tahoma, Arial, sans-serif; letter-spacing: normal; }
html[lang="ar"] :is(h1, h2, h3, h4, h5, h6, .btn, .nav-link) { letter-spacing: normal; }
html[lang="ar"] .navbar-vertical .nav-link-title { letter-spacing: normal !important; }
@media (min-width: 576px) {
    .panel-welcome-copy { flex: 1 1 52%; min-width: 0; }
    .panel-welcome-art { flex: 0 0 44%; width: 44%; align-self: center; }
    .panel-welcome-art img { max-width: 100%; height: auto; }
}
html[lang="ar"] .panel-welcome-copy h3 { font-size: 1.25rem; line-height: 1.6; overflow-wrap: anywhere; }
html[dir="rtl"] :is(input[type="email"], input[type="url"], input[type="tel"], input[type="password"], input[type="number"], code, pre, [data-ltr]) {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
}

@media (min-width: 992px) {
    html[dir="rtl"] .navbar-vertical.navbar-expand-lg { right: 0; left: auto; }
    html[dir="rtl"] .navbar-vertical.navbar-expand-lg ~ .page-wrapper {
        margin-right: 16rem;
        margin-left: 0;
    }
}

html[dir="rtl"] :is(.table, .dropdown-menu, .modal-content, .offcanvas, .popover, .swal2-popup, .ts-dropdown) { direction: rtl; }
html[dir="rtl"] :is(.table th, .table td, .dt-layout-cell, .ts-control, .ts-dropdown, .modal-body, .swal2-html-container) { text-align: start; }
html[dir="rtl"] .table :is(.text-center, .dt-center) { text-align: center; }
html[dir="rtl"] .table :is(.text-end, .dt-type-numeric, .dt-type-date) { text-align: end; }
html[dir="rtl"] table.dataTable thead > tr > th.dt-orderable-asc,
html[dir="rtl"] table.dataTable thead > tr > th.dt-orderable-desc {
    padding-left: 30px;
    padding-right: .75rem;
}
html[dir="rtl"] table.dataTable thead .dt-column-order { right: auto; left: 8px; }
html[dir="rtl"] .dt-buttons .dropdown-menu { text-align: start; }
html[dir="rtl"] .dt-buttons .dropdown-item::before { margin-inline: 0 .5em; }
html[dir="rtl"] .dt-buttons .btn-group { position: relative; }
html[dir="rtl"] .dt-button-collection { left: auto !important; right: 0 !important; }
html[dir="rtl"] .dt-search input[type="search"] { padding-inline-start: 2.25rem; padding-inline-end: .85rem; }

html[dir="rtl"] .ts-wrapper.single .ts-control { background-position: left .75rem center; padding-left: 2.25rem; padding-right: .75rem; }
html[dir="rtl"] .ts-wrapper .clear-button { right: auto; left: .75rem; }
html[dir="rtl"] .ts-wrapper.plugin-remove_button .item .remove { margin-left: 0; margin-right: 6px; border-left: 0; border-right: 1px solid var(--tblr-border-color); }
html[dir="rtl"] .ts-dropdown { left: auto; right: 0; }
html[dir="rtl"] .ts-wrapper.multi .ts-control > div { margin-inline: 0 3px; }

html[dir="rtl"] :is(.ti-arrow-left, .ti-arrow-right, .ti-chevron-left, .ti-chevron-right, .ti-arrow-back-up) { transform: scaleX(-1); }
html[dir="rtl"] :is(.swal2-title, .swal2-html-container) { overflow-wrap: anywhere; }
html[dir="rtl"] .filepond--drop-label { direction: rtl; }
html[dir="rtl"] .filepond--file-info { align-items: flex-start; text-align: start; }
html[dir="rtl"] .filepond--file-info-main { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .litepicker { direction: rtl; }
html[dir="rtl"] .litepicker .container__months { flex-direction: row-reverse; }
html[dir="rtl"] .daterangepicker { direction: rtl; text-align: start; }
html[dir="rtl"] .daterangepicker .ranges { float: right; }
html[dir="rtl"] .daterangepicker .drp-calendar { float: right; }
html[dir="rtl"] .daterangepicker .calendar-table .prev span { transform: rotate(-45deg); }
html[dir="rtl"] .daterangepicker .calendar-table .next span { transform: rotate(135deg); }

@media (max-width: 575.98px) {
    .panel-language-switcher .btn { padding-inline: .5rem; }
    html[dir="rtl"] .navbar-vertical ~ .page-wrapper { margin-inline: 0; }
}
