html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

@media (min-width: 290px) {
    .mx-sm-body:lang(en) {
        margin-left: 0px !important;
    }
    .mx-sm-body:lang(ar) {
        margin-right: 0px !important;
    }
}

@media (min-width: 768px) {
    .mx-md-body:lang(en) {
        margin-left: 270px !important;
    }
    .mx-sm-body:lang(ar) {
        margin-right: 270px !important;
    }
}
[class*=sidebar-light] .user-panel {
    border-bottom: 1px solid #dee2e6;
}
[class*=sidebar] .sidebar a:hover {
    text-decoration: none;
}

[class*=sidebar] .user-panel a:hover {
    color: #212529;
}

[class*=sidebar] .sidebar-header a {
    color: #343a40;
}
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}


#sidebar {
    min-width: 300px;
    max-width: 250px;
    min-height: 100vh;
    margin-top:80px !important;
}

    #sidebar.active:lang(en) {
        margin-left: -300px;
    }
    #sidebar.active:lang(ar) {
        margin-right: -300px;
    }
#sidebar {
    transition: all 0.3s;
    background-color: white;
    text-align: start;
}

    #sidebar ul.components {
        padding: 20px 0;
        border-bottom: 1px solid #47748b;
    }

    #sidebar ul p {
 padding: 10px;
    }

    #sidebar ul li a {
        padding: 10px;
        display: block;
    }

        #sidebar ul li a:hover {
            color: #7386D5;
        }

    #sidebar ul li.active > a, a[aria-expanded="true"] {

    }

@media (max-width: 768px) {
    #sidebar:lang(en) {
        margin-left: -300px;
    }

    #sidebar:lang(ar) {
        margin-right: -300px;
    }

    #sidebar.active:lang(en) {
        margin-left: 0;
    }

    #sidebar.active:lang(ar) {
        margin-right: 0;
    }
}
@media (max-width: 450px) {
    #sidebar {
        position: fixed;
        z-index: 3;
    }

    #overlay {
        position: fixed; /* Sit on top of the page content */
        display: none; /* Hidden by default */
        width: 100%; /* Full width (cover the whole page) */
        height: 100%; /* Full height (cover the whole page) */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5); /* Black background with opacity */
        z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
        cursor: pointer; /* Add a pointer on hover */
    }

    #sidebar.active + #overlay {
        display: block;
    }

    .sidebar-body {
        height: 70vh;
        overflow: auto;
    }
}