﻿#nav-container, nav, nav ul, nav li, nav div.link-container {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 10;
}

#nav-container {
    background-color: #2D3544;
    position: fixed;
    height: 100%;
    width: 16%;
}

#menu-toggle {
    width: 100%;
    height: 30px;
}

.header-part {
    position: relative;
    width: 100%;
    height: 15%;
}

    .header-part #menu-toggle .menu-collapse-button {
        color: white;
        width: 28px;
        height: 28px;
        background-color: #35A5F9;
        margin-top: 6px;
        margin-right: -14px;
        float: right;
        border-radius: 14px;
        text-align: center;
        font-size: 19px;
        font-weight: 600;
        font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
        cursor: pointer;
    }

        .header-part #menu-toggle .menu-collapse-button::after {
            content: "<";
        }

    .header-part .navbar-header {
        margin-top: 5px;
        width: 100%;
        height: 50px;
    }

        .header-part .navbar-header .menu-logo {
            width: calc(75vw * .16);
            height: calc(75vw * .16 / 6.37);
            margin-left: auto;
            margin-right: auto;
            background-image: url('../images/timestone_logo_dark.svg');
            background-repeat: no-repeat;
            background-size: contain;
        }

nav {
    padding-top: 20%;
    height: 85%;
    width: 100%;
}

    nav li, nav ul label.title, nav ul, nav a {
        color: #FFF;
        font-family: 'Montserrat', 'Open Sans', sans-serif;
        display: block;
    }

    nav ul {
        width: 100%;
    }

        nav ul div.label-background {
            width: 100%;
            height: 50px;
            padding-top: 10px;
        }

    nav label {
        width: 100%;
        height: 30px;
        margin: 0;
        cursor: pointer;
    }

        nav label .label-icon {
            margin-left: 16%;
            width: 33px;
            height: 33px;
            background-size: 30px 30px;
            display: inline-block;
            transition: all .25s;
        }


    nav ul li:hover div.label-background {
        background: rgba(56, 227, 171, .3);
        box-shadow: inset 5px 0px 0px 0px #38e3ab;
    }

    nav ul li div.link-container {
        display: none;
    }

    nav ul label .hours-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/hours.svg');
        mask-image: url('../images/MenuIcons/hours.svg');
    }

    nav ul label .basics-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/management.svg');
        mask-image: url('../images/MenuIcons/management.svg');
    }

    nav ul label .manage-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/settings.svg');
        mask-image: url('../images/MenuIcons/settings.svg');
    }

    nav ul label .invoice-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/invoice.svg');
        mask-image: url('../images/MenuIcons/invoice.svg');
    }

    nav ul label .budgets-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/budgets.svg');
        mask-image: url('../images/MenuIcons/budgets.svg');
    }

    nav ul label .employees-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/employees.svg');
        mask-image: url('../images/MenuIcons/employees.svg');
    }

    nav ul label .report-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/reports.svg');
        mask-image: url('../images/MenuIcons/reports.svg');
    }

    nav ul label .language-icon {
        background-color: #38e3ab;
        -webkit-mask-image: url('../images/MenuIcons/help.svg');
        mask-image: url('../images/MenuIcons/help.svg');
    }

    nav ul label .label-text {
        margin-left: 10px;
        height: 30px;
        font-size: 20px;
        font-weight: 100;
        transition: all .25s;
        vertical-align: top;
        font-family: 'DM Sans', sans-serif;
    }

    nav ul li {
        display: block;
        height: 50px;
        transition: all .25s;
        margin-bottom: 15px;
    }

    nav a:first-of-type {
        margin-top: 15px;
    }

    nav a {
        font-size: 14px;
        text-decoration: none;
        color: #FFF;
        display: block;
        padding: 10px 25px;
        transition: all 0.25s;
        margin-left: 24%;
        box-shadow: inset 5px 0px 0px 0px #34a1f4;
        font-family: 'DM Sans', sans-serif;
    }

        nav a:active { /*background: rgba(56, 227, 171, .3);*/
            background-color: rgba(56, 227, 171, .3);
            text-decoration: none;
        }

        nav a:visited {
            text-decoration: none;
        }

        nav a.selected-menuitem {
            background-color: rgba(56, 227, 171, .3);
            text-decoration: none;
        }

        nav a:hover {
            background-color: rgba(56, 227, 171, .3);
            color: white;
            text-decoration: none;
        }

    nav input[type="radio"] {
        display: none;
    }

    /* Input checked */
    nav input:checked + li div.link-container {
        display: block;
    }

/* Collapsed */

.collapsed {
    width: 5% !important;
}

    .collapsed .header-part #menu-toggle .menu-collapse-button::after {
        content: ">";
    }

    .collapsed .header-part .navbar-header .menu-logo {
        width: 38px;
        height: 38px;
        background-image: url('../images/timestone_icon.svg');
        background-size: contain;
    }

    .collapsed nav ul label {
        text-align: center;
    }

    .collapsed nav li div.link-container {
        background-color: #2D3544;
        position: relative;
        top: -50px;
        left: calc(100% - 2px);
        width: 220px;
        height: auto;
        z-index: 10;
    }

        .collapsed nav li div.link-container a {
            margin-left: 0;
        }

    .collapsed nav input:checked + li div.link-container {
        display: none;
    }

    .collapsed nav input:checked + li:hover div.link-container {
        display: block;
    }

    .collapsed nav li:hover div.link-container {
        display: block;
    }

    .collapsed nav ul label .label-icon {
        margin-left: 0;
    }

    .collapsed nav ul label .label-text {
        display: none;
    }

nav input:checked + li {
    height: auto;
    max-height: 500px;
}

    nav input:checked + li div.label-background {
        background: rgba(56, 227, 171, .3);
        box-shadow: inset 5px 0px 0px 0px #38e3ab;
    }

.collapsed nav input:checked + li {
    height: 50px;
    max-height: 50px;
}

@media screen and (max-width: 600px) {
    nav {
        width: 100%;
        position: relative;
    }

    main {
        width: 100%;
        position: relative;
    }
}

#nav-container div.login-part {
    position: absolute;
    width: 100%;
    height: 10%;
    bottom: 0;
    z-index: 11;
    color: white;
    text-align: center;
    vertical-align: middle;
}

    #nav-container div.login-part a:first-of-type {
        margin-right: 10px;
    }

    #nav-container div.login-part a {
        padding: 10px;
        width: 50%;
        color: white;
        text-decoration: none;
        box-shadow: inset 5px 0px 0px 0px #34a1f4;
    }

        #nav-container div.login-part a:hover {
            background-color: #38e3ab;
            color: black;
            text-decoration: none;
        }

#nav-container.collapsed div.login-part {
    height: 15%;
    text-align: left;
    vertical-align: unset;
}

    #nav-container.collapsed div.login-part a:first-of-type {
        margin-right: 0;
        bottom: 0;
        margin-bottom: 40px;
    }

    #nav-container.collapsed div.login-part a {
        position: absolute;
        width: 100%;
        bottom: 0;
    }

.top-bar {
    position: fixed;
    z-index: 2;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    box-shadow: 0 0 5px #808080;
}

    .top-bar .top-bar-header-wrapper {
        position: relative;
        width: auto;
        float: left;
        height: 100%;
        left: 20%;
    }

    .top-bar .top-bar-content-wrapper {
        position: relative;
        width: auto;
        float: right;
        height: 100%;
        right: 100px;
    }

        .top-bar .top-bar-content-wrapper .name-wrapper {
            position: absolute;
            right: 250px;
            top: 16px;
            display: inline-block;
        }

            .top-bar .top-bar-content-wrapper .name-wrapper .name-text {
                font-size: 1.1em;
                font-family: 'DM Sans', sans-serif;
            }

        .top-bar .top-bar-content-wrapper .account-wrapper {
            width: 220px;
            height: 100%;
            display: inline-block;
        }

            .top-bar .top-bar-content-wrapper .account-wrapper .label-wrapper {
                position: relative;
                margin-top: 10px;
            }

            .top-bar .top-bar-content-wrapper .account-wrapper div.label-wrapper label {
                width: 100%;
                margin: 0;
                cursor: pointer;
            }

                .top-bar .top-bar-content-wrapper .account-wrapper div.label-wrapper label .label-icon.account-icon {
                    display: inline-block;
                    margin-left: 20%;
                    width: 35px;
                    height: 35px;
                    background-color: #35A5F9;
                    -webkit-mask-image: url('../images/MenuIcons/account.svg');
                    mask-image: url('../images/MenuIcons/account.svg');
                }

                .top-bar .top-bar-content-wrapper .account-wrapper div.label-wrapper label .label-text {
                    margin-left: 10px;
                    font-size: 1.3em;
                    position: relative;
                    bottom: 10px;
                }


            .top-bar .top-bar-content-wrapper .account-wrapper div.link-container {
                position: absolute;
                width: 220px;
                top: 60px;
                background-color: #2D3544;
                border-bottom-right-radius: 20px;
                border-bottom-left-radius: 20px;
                float: right;
                display: none;
            }

            .top-bar .top-bar-content-wrapper .account-wrapper:hover {
                background-color: #2D3544;
                color: white;
            }

.account-wrapper:hover .account-icon {
    background-color: #38e3ab !important;
}

.top-bar .top-bar-content-wrapper .account-wrapper:hover div.link-container {
    display: block;
}

.top-bar .top-bar-content-wrapper .account-wrapper a {
    font-size: 15px;
    text-decoration: none;
    color: #FFF;
    display: block;
    padding: 10px 25px;
}

    .top-bar .top-bar-content-wrapper .account-wrapper a:hover {
        background: rgba(56, 227, 171, .3);
    }

    .top-bar .top-bar-content-wrapper .account-wrapper a:last-of-type {
        margin-bottom: 20px;
    }
