/*!
 *   AdminLTE v3.1.0 Correct and Standard RTl
 *   Author: SajjadMoosavi
 *   Website: AdminLTE.io <https://adminlte.io>
 *   License: Open source - MIT <https://opensource.org/licenses/MIT>
 */

@font-face {
    font-family: IranSans;
    src: url(../fonts/iran-sans-400.ttf);
}

* {
    font-family: IranSans;
}

body {
    text-align: right;
}

.wrapper, .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .media, .os-content, .main-header, .user-panel {
    direction: rtl;
}

tr.add-row>td>.addlink{
    float:right !important;
    background-color: #ffc107 !important;
}

/*Main Content And Sidebar */
.layout-fixed .main-sidebar {
    right: 0;
    left: inherit;
}
.form-inline>p{
    margin-left: 3px;
}

@media (min-width: 992px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        transition: margin-right .3s ease-in-out;
        margin-right: 250px;
        margin-left: inherit;
    }
}

@media (min-width: 768px) {
    .sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .main-footer, .sidebar-mini.sidebar-collapse .main-header {
        margin-left: 0 !important;
        margin-right: 74px !important;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .main-footer, .sidebar-mini.sidebar-collapse .main-header {
        margin-left: 0 !important;
        margin-right: 0px !important;
    }
}

@media (max-width: 992px) {
    .sidebar-collapse .main-sidebar, .sidebar-collapse .main-sidebar::before {
        margin-right: -250px;
        margin-left: inherit;
    }

    .content-wrapper, .main-footer, .main-header {
        margin-right: 0;
    }

}

.main-sidebar, .main-sidebar::before {
    transition: margin-right .3s ease-in-out, width .3s ease-in-out;
}

@media (max-width: 992px) {
    .sidebar-mini.sidebar-collapse .main-sidebar {
        display: none;
    }
}

/*Body Scrollbar Style*/
body::-webkit-scrollbar, .card-body::-webkit-scrollbar, .content::-webkit-scrollbar {
    width: 1em;
}

body::-webkit-scrollbar-track, .card-body::-webkit-scrollbar-track, .content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb, .card-body::-webkit-scrollbar-thumb, .content::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}

/*Sidebar Corrections*/
.nav-sidebar .nav-link > .right, .nav-sidebar .nav-link > p > .right {
    left: 1rem;
    right: inherit;
}

.nav-sidebar > .nav-item .nav-icon {
    margin-right: 0.05rem;
    margin-left: 0.2rem;
    float: right;
}

.nav-sidebar .nav-link > .right:nth-child(2), .nav-sidebar .nav-link > p > .right:nth-child(2) {
    left: 2.2rem;
    right: inherit;
}

.user-panel .image {
    padding-right: 0.8rem;
}

.nav {
    padding-right: 0;
    padding-left: inherit;
}

/*NavBar*/
.ml-auto, .mx-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.navbar-nav {
    padding-right: 0;
    padding-left: inherit;
}

/*Setting Aside*/
.control-sidebar-slide-open .control-sidebar, .control-sidebar-slide-open .control-sidebar::before {
    left: 0;
    right: inherit;
    transition: left .3s ease-in-out, display .3s ease-in-out;
}

.mr-1, .mx-1 {
    margin-left: 0.25rem !important;
    margin-right: inherit !important;
}

/*Chat Menu Option*/
.mr-3, .mx-3 {
    margin-left: 1rem !important;
    margin-right: inherit !important;
}

/*Dashboard Icons Box*/
.small-box .icon > i.fa, .small-box .icon > i.fab, .small-box .icon > i.fad, .small-box .icon > i.fal, .small-box .icon > i.far, .small-box .icon > i.fas, .small-box .icon > i.ion {
    left: 15px;
    right: auto;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: right;
}

@media (min-width: 576px) {
    .float-sm-right {
        float: left !important;
    }
}

.card-header > .card-tools {
    float: left !important;
}

.card-title {
    float: right;
}

.input-group > .input-group-append > .btn, .input-group > .input-group-append > .input-group-text, .input-group > .input-group-prepend:first-child > .btn:not(:first-child), .input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child), .input-group > .input-group-prepend:not(:first-child) > .btn, .input-group > .input-group-prepend:not(:first-child) > .input-group-text {
    border-radius: 0.25rem 0 0 0.25rem;
}

.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
    border-radius: 0;
    border-left-width: 0;
}

.btn-group > .btn-group:not(:last-child) > .btn, .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-radius: 0 0.25rem 0.25rem 0;
}

.btn-group > .btn-group:not(:first-child) > .btn, .btn-group > .btn:not(:first-child) {
    border-radius: 0.25rem 0 0 0.25rem;
}

.btn-group > .btn-group:not(:first-child), .btn-group > .btn:not(:first-child) {
    margin-right: -1px;
    margin-left: inherit;
}

.todo-list > li .tools {
    float: left;
}

[class*=icheck-] > input:first-child:checked + input[type=hidden] + label::after, [class*=icheck-] > input:first-child:checked + label::after {
    left: 7px;
}

.float-right {
    float: left !important;
}

/*Dashboard 2*/
.chart-legend {
    padding-right: 0;
    padding-left: inherit;
    margin: 10px 0;
}

.direct-chat-contacts::-webkit-scrollbar, .direct-chat-messages::-webkit-scrollbar, .select2-results__options::-webkit-scrollbar, #bootstrap-duallistbox-selected-list_::-webkit-scrollbar, #bootstrap-duallistbox-nonselected-list_::-webkit-scrollbar {
    width: 0.5em;
}

.direct-chat-contacts::-webkit-scrollbar-track, .direct-chat-messages::-webkit-scrollbar-track, .select2-results__options::-webkit-scrollbar-track, #bootstrap-duallistbox-selected-list_::-webkit-scrollbar, #bootstrap-duallistbox-nonselected-list_::-webkit-scrollbar {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.direct-chat-contacts::-webkit-scrollbar-track, .direct-chat-messages::-webkit-scrollbar-thumb, .select2-results__options::-webkit-scrollbar-thumb, #bootstrap-duallistbox-selected-list_::-webkit-scrollbar, #bootstrap-duallistbox-nonselected-list_::-webkit-scrollbar {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}

.select2-container--default .select2-dropdown.select2-dropdown--below {
    direction: rtl;
}

.products-list .product-img {
    float: right;
}

.products-list .product-info {
    margin-right: 60px;
    margin-left: inherit;
}

.float-left {
    float: right !important;
}

.float-right {
    float: left !important;
}

/*Dashboard 3*/
.mr-2, .mx-2 {
    margin-left: 0.5rem !important;
    margin-right: inherit !important;
}

.text-right {
    text-align: left !important;
}

/*Widgets*/
.user-block, .user-block img {
    float: right;
}

.user-block .comment, .user-block .description, .user-block .username {
    margin-right: 50px;
    margin-left: inherit;
}

/*Top Nav*/
.breadcrumb-item + .breadcrumb-item {
    padding-right: 0.5rem;
    padding-left: inherit;
}

.dropdown-toggle::after {
    margin-right: 0.255em;
    margin-left: inherit;
}

@media (min-width: 768px) {
    .ml-md-3, .mx-md-3 {
        margin-right: 1rem !important;
        margin-left: inherit;
    }
}

.input-group:not(.has-validation) > .custom-file:not(:last-child) .custom-file-label, .input-group:not(.has-validation) > .custom-file:not(:last-child) .custom-file-label::after, .input-group:not(.has-validation) > .custom-select:not(:last-child), .input-group:not(.has-validation) > .form-control:not(:last-child) {
    border-radius: 0;
    text-align: right;
}

.btn-navbar {
    border-right-width: 0;
    border-left-width: 1px;
}

.form-control-navbar {
    border-left-width: 0;
    border-right-width: 1px;
}

ul > li > .dropdown-item {
    text-align: right;
}

ul > .dropdown-submenu > a::after {
    float: left;
    border-right: 0.3em solid;
    border-left: 0;
    margin-left: inherit;
    margin-right: 0.5rem;
}

ul > .dropdown-submenu > .dropdown-menu {
    right: 100%;
    left: inherit;
    margin-right: 0;
    margin-left: inherit;
}

.dropdown-menu {
    text-align: right !important;
}

.navbar-badge {
    left: 5px;
    right: inherit;
}

.breadcrumb-item + .breadcrumb-item::before {
    padding-left: 0.5rem;
    padding-right: inherit;
}

.dropdown-footer, .dropdown-header {
    text-align: center !important;
}

/*General Elements*/
.color-palette-box h4 {
    right: 1.25rem;
    left: inherit !important;
}

.color-palette {
    text-align: left !important;
    padding-left: 0.75rem;
    padding-right: inherit !important;
}

.color-palette.disabled span {
    text-align: right !important;
    padding-right: 0.75rem;
    padding-left: inherit !important;
}

.alert-dismissible .close, .alert-dismissible .mailbox-attachment-close {
    left: 0;
    right: inherit;
}

.alert .icon {
    margin-left: 10px;
    margin-right: inherit;
}

.alert-dismissible {
    padding-left: 4rem;
    padding-right: inherit;
}

.callout.callout-danger {
    border-right-color: #bd2130;
}

.callout.callout-info {
    border-right-color: #117a8b;
}

.callout.callout-warning {
    border-right-color: #d39e00;
}

.callout.callout-success {
    border-right-color: #1e7e34;
}

.callout {
    border-right: 5px solid #e9ecef;
    border-left: inherit;
    margin-bottom: 1rem;
}

blockquote {
    border-left: inherit;
    border-right: 0.7rem solid #007bff;
}

.btn-app > .badge {
    left: -10px;
    right: inherit;
}

/*General Elements Modals*/
.toasts-top-right {
    left: 0;
    right: inherit;
}

.modal-header .close, .modal-header .mailbox-attachment-close {
    margin: -1rem auto -1rem -1rem;
}

.mr-auto, .mx-auto {
    margin-left: auto !important;
    margin-right: inherit !important;
}

.toast-header, .toast-body {
    direction: rtl;
}

.ml-2, .mx-2 {
    margin-right: 0.5rem !important;
    margin-left: inherit !important;
}

.swal2-popup.swal2-toast .swal2-title {
    text-align: right;
}

.swal2-icon.swal2-success .swal2-success-ring {
    right: -0.25em !important;
    left: inherit !important;
}

body.swal2-toast-shown .swal2-container.swal2-top-end, body.swal2-toast-shown .swal2-container.swal2-top-right {
    direction: rtl;
}

.swal2-popup.swal2-toast .swal2-icon {
    margin: 0 0 0 0.5em;
}

body.swal2-toast-shown .swal2-container.swal2-top-end, body.swal2-toast-shown .swal2-container.swal2-top-right {
    left: 0;
    right: auto;
}

.toast-top-right {
    left: 12px;
    right: inherit;
}

#toast-container > div {
    padding: 15px 50px 15px 15px;
    background-position: 95% center;
}

/*General Elements Nav*/
.nav-tabs.flex-column.nav-tabs-right {
    border-right: 1px solid #dee2e6;
    border-left: 0;
}

.nav-tabs.flex-column.nav-tabs-right .nav-item.show .nav-link, .nav-tabs.flex-column.nav-tabs-right .nav-link.active {
    border-top-color: rgb(222, 226, 230);
    border-left-color: rgb(222, 226, 230);
    border-bottom-color: rgb(222, 226, 230);
    border-right-color: transparent !important;
}

.nav-tabs.flex-column.nav-tabs-right .nav-link:focus, .nav-tabs.flex-column.nav-tabs-right .nav-link:hover {
    border-color: #e9ecef transparent #e9ecef #e9ecef;
}

.nav-tabs.flex-column.nav-tabs-right .nav-link {
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0;
    margin-left: -1px;
}

/*General UI Tilem Line*/
.timeline::before {
    right: 31px;
    left: inherit;
}

.timeline > div > .fa, .timeline > div > .fab, .timeline > div > .fad, .timeline > div > .fal, .timeline > div > .far, .timeline > div > .fas, .timeline > div > .ion, .timeline > div > .svg-inline--fa {
    right: 18px;
    left: inherit;
}

.timeline > div > .timeline-item {
    margin-left: 15px;
    margin-right: 60px;
}

.timeline > div {
    margin-right: 0;
    margin-left: 10px;
}

/*General UI Ribbons*/
.ribbon-wrapper {
    left: -2px;
    right: inherit;
}

.ribbon-wrapper .ribbon {
    -webkit-transform: rotate(315deg);
    transform: rotate(315deg);
}

/*Forms*/
.custom-file-label::after {
    left: 0;
    right: inherit;
    border-right: inherit;
    border-radius: 0 !important;
}

.custom-file-input:lang(en) ~ .custom-file-label::after {
    content: "انتخاب فایل";
}

.custom-file-label {
    /*  border-left-width: 0;*/
    right: inherit;
    width: 100%;
}

.form-check-input {
    margin-right: -1.25rem;
    margin-left: inherit;
}

.form-check {
    padding-right: 1.25rem;
    padding-left: inherit;
}

.form-control.is-valid, .was-validated .form-control:valid, .form-control.is-invalid, .was-validated .form-control:invalid {
    padding-left: 2.25rem !important;
    padding-right: 0.75rem !important;
    background-position: left calc(0.375em + 0.1875rem) center;
}

.input-group.has-validation > .input-group-append:nth-last-child(n+3) > .btn, .input-group.has-validation > .input-group-append:nth-last-child(n+3) > .input-group-text, .input-group:not(.has-validation) > .input-group-append:not(:last-child) > .btn, .input-group:not(.has-validation) > .input-group-append:not(:last-child) > .input-group-text, .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group > .input-group-append:last-child > .input-group-text:not(:last-child), .input-group > .input-group-prepend > .btn, .input-group > .input-group-prepend > .input-group-text {
    border-radius: 0;
    border-left: 0;
}

.input-group > .custom-select:not(:first-child), .input-group > .form-control:not(:first-child) {
    border-radius: 0.25rem 0 0 0.25rem;
}

.custom-control-input {
    right: 0;
    left: inherit;
}

.custom-control {
    padding-right: 1.5rem;
    padding-left: inherit;
}

.custom-control-label::before, .custom-control-label::after {
    right: -1.5rem;
    left: inherit;
}

.custom-switch .custom-control-label::before {
    right: -2.25rem;
    left: inherit;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: inherit;
    padding-right: 0;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    left: 3px;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    padding-right: 0.75rem;
    padding-left: inherit;
}

.select2-results {
    direction: rtl;
}

[class*=icheck-] > label {
    padding-right: 29px !important;
    padding-left: inherit !important;
}

[class*=icheck-] > input:first-child + input[type=hidden] + label::before, [class*=icheck-] > input:first-child + label::before {
    margin-right: -29px;
}

/*Editors*/
.note-editor .note-toolbar .note-color .dropdown-toggle, .note-popover .popover-content .note-color .dropdown-toggle {
    padding-right: 2px;
}

ul > li > .dropdown-toggle::after {
    margin-right: 0.5em !important;
}

.CodeMirror-lines {
    text-align: left;
}

/*.dropdown-menu[x-placement^=bottom], .dropdown-menu[x-placement^=left], .dropdown-menu[x-placement^=right], .dropdown-menu[x-placement^=top] {
  left: auto !important;
  right: inherit !important;
  bottom: auto;
}*/
.note-editor .note-toolbar .note-para .note-dropdown-menu > div + div, .note-popover .popover-content .note-para .note-dropdown-menu > div + div {
    margin-right: 5px;
    margin-left: inherit !important;
}

/*DataTables*/
[data-widget=expandable-table][aria-expanded=true] i.expandable-table-caret[class*=right] {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
}

.fa-caret-right:before {
    content: "\f0da";
    content: "\f0d9" !important;
}

.dt-buttons.btn-group > .btn:not(:first-child) {
    border-radius: 0;
}

.dt-buttons.btn-group > .btn:first-child {
    border-radius: 0 0.25rem 0.25rem 0;
}

div.dataTables_wrapper div.dataTables_filter {
    text-align: left;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: inherit;
    margin-right: 0.5em;
}

/*Calendar*/
.fc-h-event .fc-event-title-container {
    text-align: right;
}

.fc-direction-rtl .fc-daygrid-event.fc-event-start {
    direction: rtl;
}

.fc-toolbar-chunk > .btn-group > .btn:not(:last-child) {
    border-radius: 0.2rem 0 0 0.2rem;
}

.fc-toolbar-chunk > .btn-group > .btn:not(:first-child) {
    border-radius: 0 0.2rem 0.2rem 0;
}

/*Gallery*/
.filter-container.p-0.row {
    direction: ltr;
}

.card-body > div > div.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-radius: 0;
}

.modal-header {
    direction: rtl;
}

/*.fa-chevron-left:before {
  content: "\f054" !important;
}
.fa-chevron-right:before{
  content: "\f053" !important;
}*/
/*invoice*/
.invoice > div.no-print > div > .btn-primary {
    margin-left: 5px;
}

/*contacts*/
.fa-li {
    right: -2em;
    left: inherit;
}

.page-item:first-child .page-link {
    margin-right: 0;
    margin-left: inherit;
    border-radius: 0 0.25rem 0.25rem 0;
}

.page-item:last-child .page-link {
    border-radius: 0.25rem 0 0 0.25rem;
}

.ml-4, .mx-4 {
    margin-right: 1.5rem !important;
    margin-left: inherit !important;
}

.fa-ul {
    margin-right: 2.5em;
    margin-left: inherit;
    padding-left: 0;
    padding-right: inherit;
}

/*Login Page*/
.card-body > form > div.row, .login-card-body > form > div.row, .register-card-body > form > div.row {
    direction: rtl;
}

[class*=icheck-] > input:first-child:checked + label::after {
    right: 15px;
    left: inherit;
}

/*Lock Screen*/
.lockscreen-image {
    right: -10px;
    left: inherit;
}

.lockscreen-credentials {
    margin-left: inherit;
    margin-right: 70px;
    direction: rtl;
}

.fa-arrow-right:before {
    content: "\f060" !important;
}

@media (min-width: 576px) {
    .navbar-nav > .user-menu .user-image {
        margin-right: inherit;
        margin-left: 0.4rem;
    }
}

/*Search Page*/
@media (min-width: 768px) {
    .offset-md-2 {
        margin-left: inherit;
        margin-right: 16.666667%;
    }
}

@media (min-width: 768px) {
    .offset-md-1 {
        margin-left: inherit;
        margin-right: 8.333333%;
    }
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li:first-child.select2-search.select2-search--inline {
    margin-left: inherit;
    margin-right: 0.375rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li:first-child.select2-search.select2-search--inline .select2-search__field {
    text-align: right;
}

/*Iframe*/
.fa-angle-double-right:before {
    content: "\f100";
}

.fa-angle-double-left:before {
    content: "\f101";
}

.iframe-mode > div > div > .dropdown-menu {
    right: 0 !important;
}

.iframe-mode > div.wrapper > div.content-wrapper {
    margin-right: 0 !important;
}

/*Advanced Forms*/
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    float: right;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    float: left;
    margin-left: -2px;
    margin-right: 5px;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    float: right;
    margin-right: inherit;
    margin-left: 0.375rem;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field {
    text-align: right;
}

/*DashBoard TimePicker World*/
.daterangepicker .ranges li {
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: right;
    font-family: 'IRANSans';
}

/*Index2.html Users List Box*/
.users-list {
    padding-right: 0;
    list-style: none;
}

/*Logo Image On Sidebar*/
.brand-link .brand-image {
    margin-left: 0.2rem;
}

/*Switch Buttons*/
.switch-field label:first-of-type {
    border-radius: 0 4px 4px 0 !important;
    margin-right: 0;
}

/*Modal Background*/
.modal-backdrop.in {
    opacity: 0.5;
}

/*Radio Button Group*/
.btn-group > .btn:not(:last-child):not(.dropdown-toggle):nth-child(2) {
    border-radius: 0;
}

/*Split buttons*/
/*.btn-group>.btn:not(:last-child):not(.dropdown-toggle):nth-child(1) {
  border-radius: 0 0.25rem 0.25rem 0 !important;
}*/
/*Appended Buttons*/
.input-group:not(.has-validation) > .form-control:not(:last-child) {
    border-radius: 0 0.25rem 0.25rem 0 !important;
}

.input-group > .input-group-prepend > .btn {
    border-radius: 0 0.25rem 0.25rem 0;
}

/*Widgets Direct Chat Style*/
.contacts-list {
    padding-right: 0;
    padding-left: unset;
}

.contacts-list-img {
    float: right;
}

.contacts-list-info {
    margin-right: 45px;
    margin-left: unset;
}

.card-comments .card-comment img {
    float: right;
}

.card-comments .comment-text {
    margin-right: 40px;
    margin-left: unset;
}

/*Crousel Slider*/
.carousel-control-next {
    left: 0;
    right: inherit;
}

.carousel-control-prev {
    right: 0;
    left: inherit;
}

.carousel-control-prev .carousel-control-custom-icon {
    margin-right: -20px;
    margin-left: inherit;
}

.carousel-control-next .carousel-control-custom-icon {
    margin-left: 20px;
    margin-right: inherit;
}

.carousel-indicators {
    padding-right: 0;
    padding-left: inherit;
}

/*calendar*/
.btn-group > button.fc-dayGridMonth-button.btn.btn-primary.active {
    border-radius: 0.25rem 0 0 0.25rem !important;
}

/*light box*/
.ekko-lightbox-nav-overlay a span {
    text-align: left;
}

/*Profile Page*/
.timeline-body > img {
    width: 100%;
}

/*login box*/
.input-group-text.brClass {
    border: 1px solid #ced4da !important;
    border-right: 0 !important;
}

input.form-control.inputBrClass {
    border-right: 1px solid #ced4da !important;
}

.fa-inverse {
    color: chocolate !important;
}