@font-face {
    font-family: iranSans;
    src: url(/static/fonts/iransans.ttf);
  }
  
body, h1, h2, h3, p {
    font-family: iranSans;
}
/* RTL wrapper styles - only override what's needed for RTL */
[dir="rtl"] #wrapper {
    /* For RTL, use right margin instead of left margin */
    margin-left: 0 !important;
    margin-right: 0; /* Start with no margin by default */
    transition: all .3s ease-in-out;
}

/* State when sidebar is open - content should have right margin in RTL */
[dir="rtl"] #wrapper.sidebar-open {
    margin-left: 0 !important;
    margin-right: var(--sidebar-width);
}

/* State when sidebar is hidden - content takes full width in RTL */
[dir="rtl"] #wrapper.fullwidth {
    margin-left: 0 !important;
    margin-right: 0;
}

/* Bootstrap Button Gropus RTL */
.btn-group > .btn,
.btn-group-vertical > .btn {
    position: relative;
    float: left;
}

.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
    border-top-left-radius: 0; 
    border-bottom-left-radius: 0;
}

/* Disabled since conflict occured with notification box */
/* .navbar .dropdown-menu {
    right: 0 !important;
    left: auto !important;
} */

.navbar .navbar-nav>li>a {
    float: right !important;
}

.sidebar .close-aside {
    position: absolute;
    top: 7px;
    left: 7px;
    right: unset;
    cursor: pointer;
    color: #EEE;
}
.ms-auto {
    margin-left: unset!important;
    margin-right: auto!important;
}
/* RTL sidebar styles */
[dir="rtl"] .sidebar {
    /* Start hidden by default for RTL */
    transform: translateX(270px);
}

[dir="rtl"] .sidebar.show-sidebar {
    transform: translateX(0);
}

/* RTL specific sidebar hidden state */
[dir="rtl"] .sidebar.sidebar-hidden {
    transform: translateX(270px);
}

/* RTL mobile styles */
@media (max-width: 767px) {
  [dir="rtl"] .sidebar.sidebar-hidden {
    transform: translateX(270px);
  }
  
  [dir="rtl"] .sidebar.show-sidebar {
    transform: translateX(0);
  }
}
[dir="rtl"] .sidebar ul .sidebar-dropdown {
  padding-left: unset;
  padding-right: 30px;
}

[dir="rtl"] .sidebar ul>li>i {
    margin-right: unset;
    margin-left: .7rem;
}
[dir="rtl"] .sidebar ul>li.has-dropdown>a:after {
    float: left;
}
[dir="rtl"] .sidebar ul .opened>a:after {
    transform: rotate(90deg);
}

/* Login */
#login .wrapper .remember-me {
    flex-direction: row-reverse;
}

/* Menus */
.dropdown-menu .dropdown-item {
    text-align: right;
}

/* Reports */
.expandable-col.expanded .expandable-content p {
    text-align: right;
    font-size: 13px;
}