#sidemenu {
    position: fixed;
    z-index: 100;
    height: 100%;
    overflow-y: scroll;
    background: darken($primary-color, 6);
    box-shadow: 2px 0 4px 0 rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(29, 29, 29, 0.1);
    -webkit-transition: width $animatespeed ease;
    -moz-transition: width $animatespeed ease;
    -o-transition: width $animatespeed ease;
    transition: width $animatespeed ease;
    padding-left: 0.5rem;

    .sidemenu-profile {
        //background-color: darken($primary-color, 8);
        color: white;
        border-radius: 0.5rem;
        padding-top: 1rem;
    }

    .sidemenu-links {
        padding: 0;
    }

    .sidemenu-item {
        transition: background-color 0.2s ease-in;
        padding: 0.2rem 0;
        border-radius: 0.2rem;
        margin: 0.1rem 0;

        .icon {
            color: white;
            max-width: 2.5rem;
            text-align: center;
        }

        .text {
            color: white;
            font-size: 0.9rem;
            font-weight: 400;
            margin: auto;

            .badge {
                font-size: 0.9rem;
                margin: auto;
                float: right;
                background-color: rgb(255, 198, 12);
                font-weight: 600;
                color: black;
                padding: 0.2rem 0.4rem;
                border-radius: 0.8rem;
                margin-right: 1rem;
                //border: 1px solid rgb(112, 112, 112);
            }

            .count{
                font-size: 0.8rem;
                margin: auto;
                float: right;
                //background-color: rgb(255, 198, 12);
                //font-weight: 600;
                color: white;
                padding: 0.2rem 0.4rem;
                border-radius: 0.8rem;
                margin-right: 1rem;
            }
        }



        .arrow {
            max-width: 2rem;

            i {
                color: white;
                transition: transform 0.2s ease-in;
            }
        }

        &.active {
            background-color: rgb(59, 59, 59);
        }

        &.disabled {

            .sidemenu-group-title,
            .icon {
                color: rgb(145, 145, 145);
            }
        }

        &:not(.active, .disabled):hover {
            background-color: lighten($primary-color, 1);
            cursor: pointer;
        }
    }

    .sidemenu-subitems {
        transition: max-height 0.2s ease-in;
        overflow: hidden;

        .sidemenu-item-content {
            padding-left: 1.5rem;

            .icon {
                max-width: 1.5rem;
                font-size: 0.8rem;
                text-align: left;
            }

            .text {
                color: white;
                font-size: 0.8rem;
                font-weight: 400;
            }
        }

    }

    .sidemenu-subitem-group {

        input[type='checkbox'] {
            display: none;

            &:checked~.sidemenu-subitems {
                max-height: 0 !important;
            }

            &:checked+label {
                .arrow>i {
                    transform: rotate(-90deg);
                }
            }
        }

        label {
            width: 100%;
            margin-bottom: 0;
        }
    }

    @media(min-width: $sidemenu-break-width) {

        width: $sidemenu-width-full;

        & .sidemenu-item {
            max-width: 100%;
            opacity: 1;
        }

        &~#ribbon,
        &~#page {
            width:calc(100% - #{$sidemenu-width-full});
            margin-left: $sidemenu-width-full;
        }

    }

    @media(max-width: $sidemenu-break-width) {

        width: 0;

        & .sidemenu-item {
            max-width: 0;
            opacity: 0;
        }

        &~#ribbon,
        &~#page {
            margin-left: 0;
            width: 100%;
        }

        &.toggled {
            width: $sidemenu-width-full;

            & .sidemenu-item {
                max-width: 100%;
                opacity: 1;
            }
        }
    }
}

#menu-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    background-color: $primary-color;
    color: white;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    transition: background-color 0.3s;

    &:hover {
        background-color: lighten($primary-color, 10);
    }

    @media(min-width: $sidemenu-break-width) {
        display: none;
    }

}

.sidemenu-itemgroup {
    margin: 0.5rem 0;
    padding: 0.2rem 0;
    background-color: darken($primary-color, 2);
    border-radius: 0.5rem;
    border: 1px solid rgba(29, 29, 29, 0.2);

    .sidemenu-itemgroup-title {
        font-size: 0.6rem;
        color: white;
        //font-weight: 600;
        padding: 0.25rem;
        text-align: center;
    }
}

.sidemenu-infoblock {
    color: white;
    text-align: center;
    //display: none;
}