/* Dashboard layout direction: Arabic = RTL, English = LTR */

/* ========== Arabic (RTL) ========== */
html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl !important;
    text-align: right;
}

html[dir="rtl"] .side-menu,
html[dir="rtl"] .left.side-menu {
    right: 0 !important;
    left: auto !important;
}

html[dir="rtl"] .content-page {
    margin-right: 250px !important;
    margin-left: 0 !important;
}

html[dir="rtl"] #wrapper.enlarged .content-page {
    margin-right: 70px !important;
    margin-left: 0 !important;
}

html[dir="rtl"] #wrapper.enlarged .footer {
    right: 70px;
    left: 0;
}

html[dir="rtl"] .footer {
    right: 0;
    left: 250px;
}

html[dir="rtl"] .pull-right,
html[dir="rtl"] .navbar-right {
    float: left !important;
}

html[dir="rtl"] .pull-left,
html[dir="rtl"] .navbar-left {
    float: right !important;
}

html[dir="rtl"] .topbar {
    flex-direction: row;
}

/* ========== English (LTR) ========== */
html[dir="ltr"],
html[dir="ltr"] body {
    direction: ltr !important;
    text-align: left !important;
}

html[dir="ltr"] .side-menu,
html[dir="ltr"] .left.side-menu {
    left: 0 !important;
    right: auto !important;
}

html[dir="ltr"] .content-page {
    margin-left: 250px !important;
    margin-right: 0 !important;
}

html[dir="ltr"] #wrapper.enlarged .content-page {
    margin-left: 70px !important;
    margin-right: 0 !important;
}

html[dir="ltr"] #wrapper.enlarged .footer {
    left: 70px !important;
    right: 0 !important;
}

html[dir="ltr"] .footer {
    left: 250px !important;
    right: 0 !important;
    text-align: left !important;
}

html[dir="ltr"] .pull-right,
html[dir="ltr"] .navbar-right {
    float: right !important;
}

html[dir="ltr"] .pull-left,
html[dir="ltr"] .navbar-left {
    float: left !important;
}

html[dir="ltr"] .topbar {
    flex-direction: row;
}

html[dir="ltr"] .topbar .topbar-left {
    order: 0;
}

html[dir="ltr"] .navbar.navbar-default {
    order: 1;
    flex: 1;
}

html[dir="ltr"] .page-title,
html[dir="ltr"] .header-title,
html[dir="ltr"] .card-box,
html[dir="ltr"] table,
html[dir="ltr"] .form-group,
html[dir="ltr"] label {
    text-align: left;
}

html[dir="ltr"] .text-right {
    text-align: left !important;
}

html[dir="ltr"] .text-left {
    text-align: right !important;
}

html[dir="ltr"] #sidebar-menu ul li a,
html[dir="ltr"] #sidebar-menu ul li a i {
    text-align: left;
}

html[dir="ltr"] #sidebar-menu ul ul {
    padding-left: 20px;
    padding-right: 0;
}

html[dir="ltr"] .side-bar.right-bar {
    right: -266px;
    left: auto !important;
    float: right !important;
}

html[dir="ltr"] #wrapper.right-bar-enabled .right-bar {
    right: 0;
    left: auto !important;
}

html[dir="ltr"] .fa-eye,
html[dir="ltr"] .fa-eye-slash,
html[dir="ltr"] .showPassword {
    left: auto !important;
    right: 10px !important;
}

html[dir="ltr"] .dataTables_wrapper .dataTables_filter {
    text-align: right;
}

html[dir="ltr"] .dataTables_wrapper .dataTables_length {
    text-align: left;
}

html[dir="ltr"] .modal-header,
html[dir="ltr"] .modal-body,
html[dir="ltr"] .modal-footer {
    text-align: left;
}

html[dir="ltr"] .swal2-popup {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .swal2-popup {
    direction: rtl;
    text-align: right;
}

@media (max-width: 768px) {
    html[dir="ltr"] .content-page {
        margin-left: 0 !important;
    }

    html[dir="rtl"] .content-page {
        margin-right: 0 !important;
    }

    html[dir="ltr"] .footer {
        left: 0 !important;
    }

    html[dir="rtl"] .footer {
        left: 0 !important;
        right: 0 !important;
    }

    html[dir="ltr"] .enlarged .left.side-menu {
        margin-left: -75px;
        margin-right: 0;
    }

    html[dir="rtl"] .enlarged .left.side-menu {
        margin-right: -75px;
        margin-left: 0;
    }
}
