body > nav {
    padding: 0 .938rem;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: var(--head-height);
    display: flex;
    flex-wrap: wrap;
    z-index: 2;
    background-color: var(--white);
    margin: 0;
    transition: all .3s ease-in-out;
    position: fixed;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px var(--bg-default);
}
body > nav > a.logo {
    margin-right: 1rem;
    line-height: 0;
    order: 1;
}
body > nav > a.logo > img {
    border: none;
    height: 40px;
}
body > nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
body > nav > ul > li {
    position: relative;
    padding: .5rem 1.5rem;
}
body > nav > ul + ul:last-child > li {
    position: relative;
    padding: .5rem .25rem;
}
body > nav > ul > li a {
    padding: 5px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
}
body > nav > ul > li a .count-circle {
    background-color: var(--light-primary);
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 21px;
    text-align: center;
    vertical-align: middle;
    border-radius: 50%;
    font-size: 10px;
    border: none;
    color: var(--primary);
}
body > nav > ul > li a:hover {
    text-decoration: none;
}
body > nav > ul > li a.active {
    color: #000;
    text-decoration: underline;
}
/** Dropdown */
body > nav > ul > li.dropdown > a + ul {
    display: none;
    position: absolute;
    margin: 0 -1rem;
    background-color: var(--white);
    border-radius: 5px;
    /*box-shadow: 0 0 1.25rem 0 rgba(0, 0, 0, .1);*/
}
body > nav > ul > li.dropdown > a:hover + ul,
body > nav > ul > li.dropdown > a + ul:hover
{
    display: block;
}
body > nav > ul > li.dropdown > a + ul > li {
    display: block;
    padding: 0.5rem 1rem;
}
/** Mobile first: menu should be hidden and opened with class .show */
body > nav > ul#menu {
    order: 3;
    display: none;
}
body > nav > ul:last-child {
    height: var(--head-height);
    order: 2;
}
/** Language droprdown in second nav menu should be hidden by default on small screens */
body > nav > ul:last-child li.dropdown.languages {
    display: none;
}
body > nav > ul li.nav-toggle button {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
}
body > nav > ul li.nav-toggle button:hover {
    color: #000;
}
body > nav #personal-menu {
    z-index: 4;
}
body > nav > ul + ul:last-child > li.personal-link {
    padding: 0;
}
body > nav > ul li.personal-link a {
    display: flex;
    align-items: center;
}
body > nav > ul li.personal-link > a {
    padding: 0;
}
body > nav > ul li.personal-link a + ul {
    right: 0;
    width: 280px;
}
body > nav > ul li.personal-link a + ul > li {
    padding: 0.25rem 0.5rem;
}
body > nav > ul li.personal-link a span {
    max-width: 108px;
    text-overflow: ellipsis;
    overflow: hidden;
}
body > nav > ul li.personal-link ul li.personal-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
body:not(.dark) > nav > ul li svg#sun {
    display: inline-block;
}
body:not(.dark) > nav > ul li svg#moon {
    display: none;
}
body > nav > ul li a .card-icon {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 1.375rem;
    border-radius: 5px;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    margin-right: 10px;
}

#sidebar {
    position: fixed;
    z-index: 1;
    top: var(--head-height);
    width: 12rem;
    height: calc(100vh - var(--head-height));
    transition: all .3s ease-in-out;
    display: none;
    background-color: transparent;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#sidebar > ul {
    padding: 0;
    height: auto;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--white);
    border-radius: 0 0.625rem 0.625rem 0;
}
#sidebar ul li {
    list-style-type: none;
    position: relative;
    white-space: nowrap;
    border-radius: 5px;
    padding: 0;
    margin: 0;
}
#sidebar ul li a {
    font-family: "Montserrat", sans-serif;
    font-size: .875rem;
    white-space: nowrap;
    display: block;
    color: var(--secondary);
    position: relative;
    padding: .938rem;
    line-height: 1.125rem;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    overflow: hidden;
}
#sidebar > ul > li > a {
    padding: 1.15rem .938rem;
}
#sidebar > ul > li > a.active {
    color: var(--primary);
    font-weight: 400;
    text-decoration: none;
    background: var(--light-primary);
    border-radius: 0.5rem;
}
#sidebar ul li a + ul {
    display: none;
    margin: 0 0 0 1.75rem;
}
#sidebar ul > li > ul > li > a {
    opacity: 0.75;
    color: var(--black);
}
#sidebar ul > li > ul > li > a.active {
    color: var(--black);
    text-decoration: underline;
    opacity: 1;
}
#sidebar ul li a.active + ul {
    display: block;
}
#sidebar ul li a svg {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    width: 20px;
    display: inline-block;
    color: inherit;
    min-width: 20px;
    min-height: 20px;
}

#sidebar ul li a [data-im-area="count"] {
    font-style: normal;
}
#sidebar ul li a [data-im-area="count"]:not(:empty):before {
    content: ' (';
}
#sidebar ul li a [data-im-area="count"]:not(:empty):after {
    content: ')';
}



/** Dark mode */
body.dark > nav {
    /*background: var(--white);*/
    /*background: #373737;*/
    background: #1d2532;
}
body.dark > nav > ul li svg#sun {
    display: none;
}
body.dark > nav > ul li svg#moon {
    display: inline-block;
}
body.dark > nav > ul > li.dropdown > a + ul {
    background-color: var(--white);
}
body.dark > nav > ul > li a {
    color: #aaaaaa;
}
body.dark > nav > ul > li a:hover {
    color: var(--black);
}
body.dark > nav > ul li.personal-link a.btn-primary {
    color: var(--white);
}
body.dark #sidebar ul > li > ul > li > a {
    color: var(--primary);
}
body.dark #sidebar ul > li > ul > li > a.active {
    color: var(--primary);
}



@media (max-width: 768px) {
    /* Hide User name in menu on the small screen */
    body > nav > ul li.personal-link > a > span {
        display: none;
    }
}

@media (max-width: 992px) {
    body > nav {
        min-height: var(--head-height);
    }
    body > nav > ul:last-child {
        height: var(--head-height);
    }
    body > nav > ul#menu.show {
        display: block;
        width: 100%;
        height: calc(100vh - 36px);
        text-align: right;
        position: absolute;
        z-index: 3;
        top: var(--head-height);
        left: 0;
        background-color: var(--white);
        padding: 0 0.5rem;
    }
    body > nav > ul#menu.show > li {
        display: block;
        width: 100%;
        padding: 1rem 0.5rem;
    }
    body > nav > ul > li.dropdown > a:hover + ul,
    body > nav > ul > li.dropdown > a + ul:hover
    {
        right: 0;
    }
}
@media (min-width: 768px) {
    body > nav > ul + ul:last-child > li {
        padding: .5rem .5rem;
    }
    body > nav > ul li.personal-link a img {
        margin-right: 0.5rem;
    }
}
@media (min-width: 992px) {
    body > nav > ul {
        flex-wrap: wrap;
    }
    /** On the large screens the menu should be shown */
    body > nav > ul#menu {
        order: 2;
        display: flex;
    }
    body > nav > ul:last-child {
        order: 3;
    }
    body > nav > ul:nth-child(2) > li.dropdown.languages {
        display: none;
    }
    body > nav > ul li.nav-toggle {
        display: none;
    }
    /** Language droprdown in second nav menu should be visible on large screens */
    body > nav > ul:last-child > li.dropdown.languages {
        display: inline-block;
    }
    body > nav > ul > li a.active {
        text-decoration: none;
        position: relative;
        font-weight: 400;
        color: var(--black);
    }
}
@media (min-width: 1280px) {
    #sidebar {
        display: flex;
        align-items: center;
    }
}