:root {
    --olag-app-header-offset: 0px;
    --olag-app-footer-offset: 0px;
}

/* Left nav base */
#olag-left-nav {
    width: 140px;
    height: 100%;
    z-index: 8600;

    background: #eeeeee;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);

    overflow: visible;
}

#olag-mod {
    position: relative;
    height: 100%;
    width: 100%;
    background: #eeeeee;
}

/* Hamburger (Mobile) */
.office-menu-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1001;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    font-size: 26px;
    line-height: 1;

    background: rgba(0,0,0,0.35);
    color: #ffffff;

    border-radius: 8px;
    border: none;
    cursor: pointer;

    backdrop-filter: blur(4px);
}

.office-menu-icon:hover {
    background: rgba(0,0,0,0.5);
}

.office-menu-icon:active {
    transform: scale(0.95);
}

@media (min-width: 1024px) {
    .office-menu-icon {
        display: none;
    }
}

/* Menu structure */
#olag-menu.left {
    height: 100%;
}

.office-menu {
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    margin: 0;
}

.menu-container {
    position: relative;
    width: 100%;
}

.menu-container > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 96px;
    padding: 14px 0 12px;
    gap: 10px;

    text-decoration: none;
    color: #00315e;
}

/* Label text */
.menu-container > a > div {
    min-height: 22px;
    max-width: 100px;

    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
}

/* Icons */
.menu-container svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.cls-1 {
    fill: currentColor;
    stroke: none;
}

/* Hover */
.menu-container:hover {
    background: #00315e;
}

.menu-container:hover > a {
    color: #eeeeee;
}

/* First level sub menu */
.olag-hover {
    position: absolute;
    left: 138.5px;
    padding: 10px;
    inset-block: 0 auto;

    width: auto;
    min-width: 320px;
    max-width: 420px;

    background: #eeeeee;
    box-shadow: 0 0 16px rgba(0,0,0,.15);
    z-index: 8700;

    display: none;
}

.menu-container:last-child .olag-hover,
.menu-container:nth-last-child(-n+3) .olag-hover {
    top: auto;
    bottom: 0;
}

.menu-container:hover .olag-hover {
    display: block;
}

.menu-container:focus-within .olag-hover {
    display: block;
}

.olag-hover ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* First level sub menu */
.olag-hover li a {
    display: block;
    padding: 10px 16px;

    background: #eeeeee;
    color: #00315e;
    text-decoration: none;

    white-space: normal;
}

.olag-hover li a:hover {
    background: #00315e;
    color: #eeeeee;
}

.olag-sub-hover:hover > a {
    background: #00315e;
    color: #eeeeee;
}

/* Second level sub menu */
.olag-sub-hover {
    position: relative;
}

.olag-sub-hover .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    padding: 10px;

    display: none;

    width: max-content;
    min-width: 280px;
    max-width: 420px;

    background: #eeeeee;
    box-shadow: 0 0 16px rgba(0,0,0,.15);
}

.olag-sub-hover:hover .sub-menu {
    display: block;
}

.olag-sub-hover:focus-within .sub-menu {
    display: block;
}

.olag-sub-hover .sub-menu ul {
    column-count: 2;
    column-gap: 8px;
    padding: 0;
}

.olag-sub-hover .sub-menu li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.olag-sub-hover .sub-menu li a {
    display: block;
    padding: 10px 16px;
    line-height: 1.2;

    background: #eeeeee;
    color: #00315e;
    text-decoration: none;

    white-space: normal;
    overflow: visible;
}

.olag-sub-hover .sub-menu li a:hover {
    background: #00315e;
    color: #eeeeee;
}

/* Override injected header */
body > header {
    position: sticky;
    top: 0;
}

/* Mobile / Medium */
@media (max-width: 1024px) {
    #olag-left-nav {
        position: fixed;
        top: 0;
        left: 0;

        transform: translateX(-100%);
        transition: transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1);

        will-change: transform;
    }

    #olag-left-nav > #olag-menu {
        padding-top: var(--olag-app-header-offset);
    }

    body.nav-open #olag-left-nav {
        transform: translateX(0);
    }

    body.nav-open .office-menu-icon {
        display: none;
    }

    .olag-hover {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .olag-sub-hover {
        position: static;
    }

    .olag-sub-hover .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    body.nav-open {
        position: fixed;
        width: 100%;
    }
}

/* Overlay */
.office-overlay-sp {
    position: fixed;
    inset: 0;
    z-index: 850;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease-out;
}

body.nav-open .office-overlay-sp {
    opacity: 1;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

.hide-large {
    display: none;
}

/*Used to make sure header A displays correctly*/
#toggle-search,
#toggleSettings,
#toploginbutton {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#toggle-search svg,
#toggleSettings svg,
#toploginbutton svg {
    display: block;
    flex-shrink: 0;
}

#logo,
#logo > div,
#logo img {
    flex-shrink: 0;
}

#navSearch input[type="text"] {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

/*make the modal clickable*/
.modal {
    pointer-events: auto;
}
