




#drawer {
    position: fixed;
    z-index: 10010;
    width: calc(100% - 76px);
    height: calc(100vh - 66px);
    top: 66px;
    left: calc(-100% + 76px);
    overflow-y: scroll;
    margin: 0;
    padding: 30px 0 0;
    box-sizing: border-box;
    background: rgba(245, 245, 245, 1);

    box-shadow: -1px 0 0 0 rgba(230, 230, 230, 1) inset;

    -webkit-transition: all ease-out 300ms;
       -moz-transition: all ease-out 300ms;
            transition: all ease-out 300ms;
}
#drawer.active {
    left: 0;
}

#drawer_logo {
    position: fixed;
    z-index: 10010;
    left: calc(-100% + 76px);;
    top: 0;
    width: 250px;
    height: 66px;    
    padding: 17px 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 1);
    box-shadow: -1px -1px 0 0 rgba(230, 230, 230, 1) inset;

    -webkit-transition: all ease-out 300ms;
       -moz-transition: all ease-out 300ms;
            transition: all ease-out 300ms;
}
body.header_active #drawer_logo {
    left: 0;
}

#drawer_logo img {
    display: block;
    width: 182px;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0 0 0 90px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 1);
    box-shadow: 0 -1px 0 0 rgba(230, 230, 230, 1) inset;

    -webkit-transition: all ease-out 300ms;
       -moz-transition: all ease-out 300ms;
            transition: all ease-out 300ms;
}
header h1 {
    line-height: 66px;
}

#content {
    position: relative;
    padding: 66px 20px 40px;

    -webkit-transition: all ease-out 300ms;
       -moz-transition: all ease-out 300ms;
            transition: all ease-out 300ms;
}
.body_mask {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    z-index: -1;

    -webkit-transition: all ease-out 300ms;
       -moz-transition: all ease-out 300ms;
            transition: all ease-out 300ms;
}
body.header_active .body_mask {
    background: rgba(0, 0, 0, .6);
    z-index: 10000;
}
body.header_active #drawer, body.header_active #drawer_user {
    left: 0;
}
body.header_active header, body.header_active #content {
    left: 250px;
}

@media (min-width: 700px) {

    #drawer_logo {
        height: 80px;
    }

}

@media (min-width: 1000px) {

    body.header_active #content {
        left: 0px;
    }

    #drawer_logo {
        padding: 23px 20px;
        left: 0;
    }

}







header .icons li.header_user {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2) inset, 0 0 0 1px rgba(0, 0, 0, 0);
    padding: 3px;

    -webkit-transition: all ease-out 100ms;
       -moz-transition: all ease-out 100ms;
            transition: all ease-out 100ms;
}
header .icons li.header_user:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 1px rgba(54, 156, 241, 1) inset, 0 0 0 1px rgba(54, 156, 241, 1);
}
.header_user .profile_pic {
    border-radius: 50px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: url(../img/user_profile.jpg) no-repeat;
    background-size: cover;
}
.header_user img {
    max-width: 100%;
}

.caret {
    display: block;
    position: absolute;
    right: 18px;
    width: 15px;
    height: 10px;

    background: url(../img/select.svg) no-repeat;
}

#drawer ul {
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 330px);
}
#drawer ul ul {
    min-height: unset;
}

#drawer ul#menu_primary ul li {
    padding-left: 20px;
}

#drawer #menu_primary li {
    list-style-type: none;
    padding: 0;
    
    cursor: pointer;
    -webkit-transition: all ease-out 100ms;
       -moz-transition: all ease-out 100ms;
            transition: all ease-out 100ms;
}

#drawer #menu_primary li:hover {
    background: rgba(0, 0, 0, .05);
}

#drawer #menu_primary li.active, #drawer #menu_primary li.active a, #drawer #menu_primary li.active:hover, #drawer #menu_primary li.active a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(138, 201, 251, 1);
    font-weight: 600;
    -webkit-font-smoothing: subpixel-antialiased;
    cursor: default;
}

#drawer a {
    text-decoration: none;
    width: 100%;
    display: block;
    height: 100%;
    padding: 10px 15px 10px 20px;
    box-sizing: border-box;
}
#drawer #menu_primary .semiactive, #drawer #menu_primary .active {
    padding: 10px 15px 10px 20px;
}
#drawer ul#menu_primary ul li.active {
    padding-left: 40px;
}

#drawer #menu_primary li.semiactive {
    font-weight: 600;
}

#badge {
    position: relative;
    width: 100%;
}
#badge img {
    width: 60px;
    position: absolute;
    left: calc(50% - 30px);
    top: calc(50% - 20px);

}
#badge:after {
    content: '';
    width: 100%;
    display: block;
    padding-bottom: 88%;
}








#hamburger {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 4px;
    top: 1px;
    cursor: pointer;
    box-sizing: border-box;
    z-index: 100;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0);

    -webkit-transition: all linear 140ms;
       -moz-transition: all linear 140ms;
            transition: all linear 140ms;
}
#hamburger:hover {
    background: rgba(0, 0, 0, .05);

    -webkit-transition: all linear 300ms;
       -moz-transition: all linear 300ms;
            transition: all linear 300ms;
}
#hamburger span {
    position: absolute;
    top: calc(50% - 1px);
    left: 16px;
    width: 28px;
    height: 3px;
    background: rgba(10, 10, 10, 1);
    display: block;

    -webkit-transition: all linear 80ms;
       -moz-transition: all linear 80ms;
            transition: all linear 80ms;
}
#hamburger span.hamburger_1 {
    margin: -9px 0 0;
}
#hamburger span.hamburger_3 {
    margin: 9px 0 -9px;
}

header .icons {
    position: absolute;
    right: 15px;
    top: 13px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header .icons li {
    float: left;
    width: 40px;
    height: 40px;
    margin-left: 2px;
    border-radius: 50%;
    padding: 12px 11px 9px;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all ease-out 100ms;
       -moz-transition: all ease-out 100ms;
            transition: all ease-out 100ms;
}
header .icons li:hover {
    background: rgba(0, 0, 0, .05);
}









@media (min-width: 400px) {

    #drawer {
        width: 250px;
    }


}

@media (min-width: 700px) {
    
    header {
        height: 80px;
    }
    header h1 {
        line-height: 80px;
    }
    #content {
        padding: 80px 20px 40px;
    }
    #drawer {
        height: calc(100vh - 80px);
        top: 80px;
    }
    #drawer_user {
        height: 80px;
    }
    header .icons {
        top: 19px;
    }
    #hamburger {
        top: 8px;
    }

}

@media (min-width: 1000px) {

    header {
        width: calc(100% - 250px);
        left: 250px;
        padding: 0;
    }
    
    #content {
        padding: 110px 0px 40px 250px;
        display: block;
        overflow: auto;
    }

    #drawer, #drawer.active, #drawer_user, #drawer_user.active {
        left: 0;
    }

    header .icons {
        right: 25px;
    }

    header .icons li {
        margin-left: 10px;
    }

    #hamburger, .body_mask {
        display: none;
    }
    #drawer_user {
        left: 0;
    }

}





