/* Sidenav
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.sidenav {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 7rem); /* Fallback */
    height: calc(100dvh - 7rem);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    background-color: var(--white);
    overflow: auto;
    z-index: 99;
}

.sidenav--full-height {
    height: 100vh;
    height: 100dvh;
    left: 0;
    top: 0;
}

.sidenav.opened {
    /*left: 0;*/
    transform: translateX(0%);
}

.sidenav__header {
    padding: 2rem 0;
    margin: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    border-bottom: solid 1px var(--grey-100);
}

.sidenav__header.sticky {
    margin: 0;
    padding: 1rem 2rem;
    flex-direction: row;
    align-items: center;
    position: sticky;
    box-shadow: 0 1px 0 0 rgba(0,0,0,.07),0 0 24px 0 rgba(0,0,0,.1);
    border-bottom: none;
    background-color: white;
    top: 0;
    z-index: 100;
}

.sidenav__header.sticky .sidenav__heading {
    text-align: center;
    flex-grow: 1;
}

.sidenav__header.sticky .sidenav__close {
    position: absolute;
}

.sidenav__icon {
    color: var(--primary-blue);
    cursor: pointer;
}

.sidenav__heading {
    font-size: var(--text-xl);
}

.sidenav__content {
    font-size: var(--text-sm);
    padding: 0 2rem;
}

/* Submenu
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.submenu {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    right: 0;
    width: 100%;
    /*height: calc(100vh - 7rem);*/
    /*height: 100%;*/
    height: calc(100vh - 7rem); /* Fallback */
    height: calc(100dvh - 7rem);
    transition: transform 0.3s ease;
    transform: translateX(100%) scaleX(0);
    transform-origin: right center;
    background-color: white;
    overflow: scroll;
    /*z-index: 9999;*/
}

.submenu.opened {
    transform: translateX(0%) scaleX(1);
}

.submenu__header {
    margin: 0;
    padding: 1rem 0;
    position: sticky;
    /*box-shadow: 0 1px 0 0 rgba(0,0,0,.07),0 0 24px 0 rgba(0,0,0,.1);*/
    border-bottom: 1px solid var(--grey-200);
    background-color: white;
    top: 0;
}

.submenu__header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.submenu__icon {
    color: var(--primary-navy);
    cursor: pointer;
}

.submenu__heading {
    font-size: var(--text-base);
    text-align: center;
    flex-grow: 1;
}

.submenu__close {
    position: absolute;
}

.submenu__content {
    font-size: var(--text-sm);
    background-color: white;
}


/* Sidenav - Header
/web/src/app/rsd/lib/component/header.php
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.sidenav-header__sign-in {
    padding: 2rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidenav-header__title {
    margin: 0.5rem 0 0.5rem 0;
    color: var(--black);
}

.sidenav-header__text {
    color: var(--grey-700);
    font-size: var(--text-sm);
}

.sidenav-header__label {
    font-size: var(--text-sm);
    color: var(--grey-700);
}

.sidenav-header__account {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    border: solid var(--grey-200) 1px;
    cursor: pointer;
    border-radius: 6px;
}

.sidenav-header__account-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
}

.sidenav-header__icon-container {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--slate-300);
    border-radius: 24px;
    background-color: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidenav-header__icon {
    width: 1.5rem;
    height: auto;
}

.sidenav-header__name {
    font-weight: bold;
}

.sidenav-header__email {
    color: var(--slate-700);
}

.sidenav-header__selector {
    padding: 1.25rem;
    background-color: var(--grey-50);
    display: flex;
    justify-content: space-between;
    margin-top: 0.5em;
    font-weight: bold;
    font-size: var(--text-xs);
    border: solid var(--grey-200) 1px;
    cursor: pointer;
    border-radius: 4px;
}

.sidenav-header__menu {
    border-top: solid var(--grey-200) 1px;
}

.sidenav-header__list {
    margin: 0;
    padding: 0;
}

.sidenav-header__item {
    border-bottom: solid var(--grey-200) 1px;
}

.sidenav-header__link {
    padding: 1.5rem 0 1.5rem 1.25rem;
    display: block;
    font-weight: bold;
    cursor: pointer;
    font-size: var(--text-sm);
}

.sidenav-header__signout {
    color: var(--red-700);
}
