.d-flex {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
}
#sidebar {
    min-width: 300px;
    max-width: 300px;
    color: #fff;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
    z-index: 0;
}

#sidebar:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    background: #fc2f68;
    background: -moz-linear-gradient(-45deg, #fc2f2f 0%, #5effc9 100%);
    background: -webkit-gradient(left top, right bottom, color-stop(0%, #fc2f2f), color-stop(100%, #5effc9));
    background: -webkit-linear-gradient(-45deg, #fc2f2f  0%, #5effc9 100%);
    background: -o-linear-gradient(-45deg, #fc2f2f 0%, #5effc9 100%);
    background: -ms-linear-gradient(-45deg, #fc2f2f 0%, #5effc9 100%);
    background: -webkit-linear-gradient(315deg, #fc2f2f  0%, #5effc9 100%);
    background: -o-linear-gradient(315deg, #fc2f2f 0%, #5effc9 100%);
    background: linear-gradient(135deg, #fc2f2f 0%, #5effc9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fc2f2f', endColorstr='#5effc9', GradientType=1);
    opacity: .7;
    z-index: -1;
}

#sidebar.active {
    margin-right: -300px;
}

#sidebar.active .custom-menu {
    margin-left: -40px;
}

#sidebar.active .btn.btn-primary:before {
    content: "\f053";
    font-family: "FontAwesome";
    right: 2px !important;
}

#sidebar.active .btn.btn-primary:after {
    display: none;
}

#sidebar .h6 {
    color: #fff;
}

#sidebar h1 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 30px;
}

#sidebar h1 .logo {
    color: #fff;
    padding: 10px 30px;
    display: block;
}

#sidebar h1 .logo span {
    font-size: 13px;
    color: #fff;
    display: block;
}

#sidebar ul.components {
    padding: 0;
}

#sidebar ul li {
    font-size: 16px;
}

#sidebar ul li>ul {
    margin-left: 10px;
}

#sidebar ul li>ul li {
    font-size: 14px;
}

#sidebar ul li a {
    padding: 15px 30px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul li a:hover {
    color: #fff;
    background: #2f89fc;
    border-bottom: 1px solid #2f89fc;
}

#sidebar ul li.active>a {
    background: transparent;
    color: #fff;
}

#sidebar ul li.active>a:hover {
    background: #2f89fc;
    border-bottom: 1px solid #2f89fc;
}

@media (max-width: 991.98px) {
    #sidebar {
        margin-right: -300px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebar .custom-menu {
        margin-left: -60px !important;
        top: 10px !important;
    }
}

#sidebar .custom-menu {
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 0;
    margin-left: -35px;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    #sidebar .custom-menu {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}

#sidebar .custom-menu .btn.btn-primary {
    background: #2f89fc;
    border-color: transparent;
    position: relative;
    color: #000;
    width: 30px;
    height: 30px;
}

#sidebar .custom-menu .btn.btn-primary:after,
#sidebar .custom-menu .btn.btn-primary:before {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: "FontAwesome";
    color: #fff;
}

#sidebar .custom-menu .btn.btn-primary:after {
    content: "\f054";
    left: 2px;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media (max-width: 991.98px) {
    #sidebarCollapse span {
        display: none;
    }
}