@media (min-width: 992px) {
    html[dir="rtl"] .navbar-vertical.navbar-expand-lg {
        right: 0;
    }
    html[dir="rtl"] .navbar-vertical.navbar-expand-lg .navbar-collapse .dropdown-menu .dropdown-item {
        padding-right: 3.25rem;
    }

}

@media all and (max-width: 544px) {
    .btn-mobile {
        width: 100%;
        display: block;
    }
}


html[dir="rtl"] .dropdown-menu-end[data-bs-popper] {
    left: 0;
    right: auto;
}
html[dir="rtl"] .float-end {
    float: left!important;
}

html[dir="rtl"] .input-group.has-validation>.dropdown-toggle:nth-last-child(n+4), .input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu), .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

html[dir="rtl"] .input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-right: -1px;
    border-top-left-radius:  4px;
    border-bottom-left-radius:  4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}


html[dir="rtl"] .modal-content .btn-close {
    left: 0;
}

html[dir="rtl"] .modal-header {
    align-items: center;
    min-height: 3.5rem;
    padding: 0 1.5rem 0 1.5rem;
}

html[dir="rtl"] .modal-content .btn-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    padding: 0;
    z-index: 10;
}
html[dir="rtl"] .dropdown-menu-arrow.dropdown-menu-end:before {
    left: .75rem;
    right: auto;
}

html[dir="rtl"] .text-end {
    text-align: left!important;
}

html[dir="rtl"] .input-group-text {
    padding-left: 12px;
    padding-right: 12px;
}

html[dir="ltr"] .form-check .form-check-input {
    float: right;
    margin-right: -1.5rem;
}
html[dir="ltr"] .form-check {
    padding-right: 1.5rem;
}

html[dir="rtl"] .input-group-flat .input-group-text:last-child {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

html[dir="rtl"] .input-group-flat .form-control:not(:last-child) {
    border-left: 1px;
    border-right: none;
}

@media all and (max-width: 544px) {
    .btn-mobile {
        width: 100%;
        display: block;
    }
}

@media (min-width: 992px) {
    html[dir="rtl"] .page-wrapper {
        margin-left: 0;
        margin-right: 15rem;
    }
}
@media (min-width: 992px) {
    html[dir="rtl"] .page-wrapper {
        margin-left: 0;
        margin-right: 15rem;
    }
}


@media (max-width: 992px) {
    html[dir="rtl"] .navbar-expand-lg .navbar-collapse .dropdown-toggle:after {
        margin-right: auto;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    html[dir="rtl"]  .navbar-expand-lg .navbar-collapse .dropdown-toggle:after {
        margin-right: auto;
        margin-left: 0;
    }
}
