﻿/*Styles for right to left arrangement*/

body {
    text-align: right;
}

#header .header-brand {
    float: right;
}

#header .header-menu {
    float: left;
}


.sidebar-nav li a {
    padding: 5px 10px 0 15px;
    width: 200px;
}

#main .content {
    margin-right: 20px;
    margin-left: 0;
}

#hamburger.icon-menu-item {
    float: right;
    margin-left: 10px;
    margin-right: 0;
}


ul.navbar-nav {
    padding-right: 0;
}

.navbar-collapse {
    padding-left: 0;
    padding-right: 0;
}


/*sb-admin*/

@media (min-width: 576px) {
    .topbar .dropdown .dropdown-menu {
        right: -7rem;
    }
}

.sidebar .nav-item.dropdown .dropdown-toggle::after, .topbar .nav-item.dropdown .dropdown-toggle::after {
    content: '\f104';
    margin-right: 0.5rem;
}

.sidebar .nav-item .nav-link {
    text-align: right;
}

.sidebar .nav-item .nav-link i.fas {
    margin-right: 0;
    margin-left: 10px;
}

.sidebar #sidebarToggle::after {
    font-weight: 900;
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    margin-left: 0.25rem;
}

.sidebar.toggled #sidebarToggle::after {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    margin-right: 0.1rem;
}

@media (min-width: 768px) {
    .sidebar .nav-item .nav-link[data-toggle="collapse"].collapsed::after {
        content: '\f104';
        float: left;
    }

    .sidebar .nav-item .nav-link[data-toggle="collapse"]::after {
        float: left;
    }

    .sidebar .sidebar-heading {
        text-align: right;
    }
}

@media (min-width: 768px) {
    .sidebar.toggled .nav-item .collapse {
        right: calc(6.5rem + 1.5rem / 2);
    }
}

.custom-control-label::before {
    right: 0;
}

.form-check-input {
    position: absolute;
    margin-top: .34375rem;
    margin-right: -1.25rem;
}

input[type=checkbox], input[type=radio] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
}

.form-check {
    position: relative;
    display: block;
    padding-right: 1.25rem;
}

.form-check-inline {
    display: inline-flex;
    margin-right: 0;
    margin-left: 0.75rem;
    padding-right: 0;
}

.form-check-inline .form-check-input {
    position: static;
    margin-top: 0;
    margin-left: 0.3125rem;
    margin-right: 0;
}

.modal-header .close {
    margin: -1rem auto -1rem -1rem;
}

.border-left-primary {
    border-left: 0 !important;
    border-right: 0.25rem solid #3399ff !important;
}

.border-left-secondary {
    border-left: 0 !important;
    border-right: 0.25rem solid #858796 !important;
}

.border-left-success {
    border-left: 0 !important;
    border-right: 0.25rem solid #99cc66 !important;
}


.bg-login-image {
    border-right: 0;
    border-left: 1px solid #6e707e;
}

/* Radzen bug: numeric input doesn't align right in RTL mode */
.rz-numeric input[type=number], .rz-numeric input[type=text] {
    text-align: right;
}
