.as-top-nav {
    background: #000e4d;
    height: 70px;
    display: flex;
    width: 100%;
}

.container {
    width: calc(100% - 30px);
    margin: 0 auto 0 auto;
    max-width: 1280px;
}

.flex {
    display: flex;
    align-items: center;
}

.brand-head-logo {
    height: 32px;
}

#account-navigation {
    display: block;
    position: relative;
    margin-left: auto;
}

/* menu toggle styles */
.mobile-account-toggle {
    height: 70px;
    position: relative;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000e4d;
    border: 0 none;
    cursor: pointer;
    padding: 0 12px 0 0;
    transition: background 0.3s ease;
    z-index: 10;
}

    .mobile-account-toggle:focus {
        background-color: inherit;
    }

    .mobile-account-toggle .user-icon {
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

    .mobile-account-toggle:after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 0;
        height: 0;
        border: solid white;
        border-width: 0 2px 2px 0;
        padding: 3px;
        transition: transform 0.3s ease;
        right: 12px;
        margin-top: -1px;
    }

/* nav styles */
#account-navigation > ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    position: absolute;
    top: 50%;
    right: 0;
    background: #002e87;
    transition: top 0.3s ease, opacity 0.3s ease;
    margin: 0;
    padding: 0;
    z-index: 11;
    border-radius: 0 0 6px 6px;
    list-style: none;
    width: 200px;
}

    #account-navigation > ul li {
        float: none;
    }

    #account-navigation > ul ul {
        max-height: 0;
        opacity: 0;
        background: #0049b3;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        margin: 0;
        z-index: 9;
        list-style: none;
        padding: 0;
    }

    #account-navigation > ul > li a {
        white-space: pre;
        color: #fff;
        display: flex;
        padding: 0 15px 0 20px;
        text-decoration: none;
        font-family: "Barlow", sans-serif;
        font-weight: 400;
        font-size: 16px;
        height: 40px;
        align-items: center;
        position: relative;
    }

        #account-navigation > ul > li a:hover {
            background-color: inherit;
        }

    #account-navigation > ul ul > li a {
        white-space: wrap;
        font-size: 12px;
        line-height: 18px;
        height: auto;
        padding: 6px 20px;
    }

    #account-navigation > ul > li a .icon {
        margin-right: 10px;
    }

.arrow {
    position: absolute;
    width: 8px;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    height: 5px;
    transition: transform 0.3s ease;
}

    .arrow::after {
        content: "";
        display: block;
        width: 8px;
        height: 5px;
        background-image: url(../../Images/common/menu-icons/arrow.svg);
        background-repeat: no-repeat;
    }

/* visible mobile nav */
#account-navigation.visible .mobile-account-toggle {
    background: #002e87;
}

    #account-navigation.visible .mobile-account-toggle .user-icon {
        opacity: 1;
    }

    #account-navigation.visible .mobile-account-toggle:after {
        transform: translateY(-30%) rotate(-135deg);
    }

#account-navigation.visible > ul {
    top: 100%;
    max-height: 625px;
    opacity: 1;
    padding: 10px 0 5px;
    display: block;
    height: auto;
}

#account-navigation li.visible-sub .arrow {
    transform: rotate(0deg);
}

#account-navigation li ul {
    display: none;
    top: 45px;
}

#account-navigation li.visible-sub ul {
    display: block;
    max-height: 390px;
    opacity: 1;
    padding: 10px;
    height: auto;
    overflow: auto;
}

    #account-navigation li.visible-sub ul::-webkit-scrollbar {
        width: 4px;
        margin-right: 5px;
    }

    #account-navigation li.visible-sub ul::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #account-navigation li.visible-sub ul::-webkit-scrollbar-thumb {
        background: #1E1E1E61;
        border-radius: 4px;
    }

        #account-navigation li.visible-sub ul::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.top-nav-wrapper .responsive-nav,
.top-nav-wrapper .close-icon {
    display: none;
}

.top-nav-wrapper {
    position: relative;
    background-color: #ffffff;
    border-radius: 6px;
}

.nav-bottom {
    border-top: 1px solid #C3CCDA;
    height: 15px;
    margin: 0 24px;
}

@media screen and (min-width: 768px) {
    .container {
        width: 90%;
    }

    .mobile-account-toggle {
        display: none;
    }

    #account-navigation {
        margin-right: 0;
    }

        #account-navigation > ul {
            top: auto;
            width: auto;
            position: relative;
            opacity: 1;
            overflow: visible;
            max-height: unset;
            padding: 0;
            background: transparent;
            display: flex;
        }

            #account-navigation > ul > li a {
                padding: 0 12px;
                color: #d2e9ff;
                font-size: 14px;
                font-weight: 600;
                transition: background 0.3s ease;
            }

                #account-navigation > ul > li a:hover {
                    background: #000c66;
                }

            #account-navigation > ul ul {
                position: absolute;
                background: #ebf0f5;
                width: 300px;
                max-height: 300px;
                border-radius: 0 6px 6px 6px;
            }

                #account-navigation > ul ul li {
                    width: 100%;
                }

                #account-navigation > ul ul > li > a {
                    color: #000c66;
                    padding: 8px;
                    font-size: 14px;
                    line-height: 21px;
                    font-weight: 500;
                    background: transparent;
                    border-radius: 6px;
                }

                    #account-navigation > ul ul > li > a:hover {
                        background: #ced8e0;
                    }

        #account-navigation li.visible-sub > a {
            background: #000c66;
        }

    .arrow {
        position: relative;
        height: 6px;
        top: auto;
        right: auto;
        transition: transform 0.3s ease;
        margin-top: 6px;
        margin-left: 15px;
    }
}

.dropdwn:hover .dropdwn-content li,
.dropdwn:hover .mega-menu li {
    max-height: 800px;
}


@media screen and (max-width:768px) {
    #MemberTitleAndControls {
        padding: 0 15px;
    }

    .season-picker-dashboard {
        max-width: 100%;
        margin: 0px;
    }

    #account-navigation li.visible-sub ul {
        position: unset;
    }

    #nav-mobile {
        display: none;
    }

    .as-top-nav .container {
        margin: 0;
        width: 100% !important;
    }

    .as-top-nav .head-logo-wrapper {
        margin-left: 20px;
    }

/*
    .dropdwn:hover .dropdwn-content li {
        max-height: 0px;
    }
*/

    li {
        -webkit-tap-highlight-color: transparent;
    }

        li:focus {
            outline: none !important;
        }

    .as-sub-menu-tabs .tab.dropdwn .mega-menu h5::after {
        font-family: "Material Icons";
        content: '\e5c5';
        display: inline-block;
        margin-left: 3px;
        color: #7492AC;
        font-size: 18px;
        cursor: default;
        vertical-align: middle;
    }

    .as-sub-menu-tabs .tab.dropdwn .mega-menu h5.active::after {
        transform: translateY(2%) rotate(-180deg);
        float: none;
        vertical-align: middle;
    }

    .as-sub-menu-tabs .tab.dropdwn a b {
        float: none;
    }

    .as-main-menu .brand-logo {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        width: 60%;
    }

        .as-main-menu .brand-logo img {
            max-width: 285px;
        }

    .top-nav-wrapper .responsive-nav,
    .top-nav-wrapper .nav-content.show,
    .top-nav-wrapper .close-icon {
        display: block;
    }

    .top-nav-wrapper .nav-content {
        display: none;
    }

    .top-nav-wrapper .responsive-nav .nav-container {
        padding: 15px 0;
    }

        .top-nav-wrapper .responsive-nav .nav-container b {
            font-size: 16px;
            font-weight: 700;
            color: #000C66;
        }


    .top-nav-wrapper .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 12, 102, 0.35);
        z-index: 999;
        display: none;
    }

        .top-nav-wrapper .overlay.show-overlay {
            display: block;
        }

    .top-nav-wrapper .nav-content {
        position: absolute !important;
        top: 0;
        width: 260px;
        right: 8px;
        z-index: 1000;
    }

    .top-nav-wrapper .as-sub-menu-tabs {
        flex-wrap: nowrap;
        flex-direction: column;
        margin: 0 !important;
        width: 100%;
    }

        .top-nav-wrapper .as-sub-menu-tabs .tab.dropdwn .dropdwn-title:after {
            float: none;
            vertical-align: middle;
        }

    .top-nav-wrapper .as-sub-menu .as-sub-menu-tabs .tab a.active {
        color: #5B6B7A;
        box-shadow: none;
        background-color: none;
    }

        .top-nav-wrapper .as-sub-menu .as-sub-menu-tabs .tab a.active::after {
            float: none;
            vertical-align: middle;
            color: #7492AC !important;
        }

    .top-nav-wrapper .close-icon {
        position: absolute;
        right: 20px;
        z-index: 99999;
        top: 15px;
    }

    .top-nav-wrapper {
        margin-top: 33px;
    }

/*
    .as-sub-menu-tabs .tab .dropdwn-content,
    .as-sub-menu-tabs .tab .mega-menu {
        position: relative;
        top: 0;
        box-shadow: none;
    }

    .as-sub-menu .as-sub-menu-tabs .tab {
        height: 100%;
        position: relative;
    }

        .as-sub-menu .as-sub-menu-tabs .tab a {
            padding: 0 20px;
        }

    .tab.dropdwn .dropdown-sub-menu {
        max-height: 190px;
        overflow-y: scroll;
        background-color: #F5F8FA;
        padding-bottom: 5px;
    }

        .tab.dropdwn .dropdown-sub-menu::-webkit-scrollbar,
        .tab.dropdwn .mega-menu .mega-menu-sub::-webkit-scrollbar {
            width: 4px;
            margin-right: 5px;
        }

        .tab.dropdwn .dropdown-sub-menu::-webkit-scrollbar-track,
        .tab.dropdwn .mega-menu .mega-menu-sub::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .tab.dropdwn .dropdown-sub-menu::-webkit-scrollbar-thumb,
        .tab.dropdwn .mega-menu .mega-menu-sub::-webkit-scrollbar-thumb {
            background: #1E1E1E61;
            border-radius: 4px;
        }

            .tab.dropdwn .dropdown-sub-menu::-webkit-scrollbar-thumb:hover,
            .tab.dropdwn .mega-menu .mega-menu-sub::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

        .tab.dropdwn .dropdown-sub-menu li {
            max-height: 30px;
            width: 100%;
            border: none;
            cursor: pointer;
        }

        .tab.dropdwn .dropdown-sub-menu > li.active-parent {
            max-height: 150px;
            background: none;
        }

        .tab.dropdwn .dropdown-sub-menu .mega-menu-sub {
            background-color: #EBF0F5;
            overflow-y: auto;
            max-height: 90px;
            padding 0px;
        }

    .tab.dropdwn .mega-menu li h5 {
        padding-left: 30px;
        display: inline-block;
        vertical-align: middle;
        color: #748899;
        font-size: 16px;
        line-height: 30px;
        margin: 0px;
        width: 100%;
    }

        .tab.dropdwn .mega-menu li h5:last-child {
            margin-bottom: 20px;
        }

    .tab.dropdwn .mega-menu.dropdown-sub-menu .mega-menu-sub li {
        padding-left: 40px;
        box-sizing: border-box;
    }

        .tab.dropdwn .mega-menu.dropdown-sub-menu .mega-menu-sub li a {
            font-size: 13px;
            font-weight: 500;
            line-height: 13px;
            color: #5B6B7A;
        }

            .tab.dropdwn .mega-menu.dropdown-sub-menu .mega-menu-sub li a:hover {
                background-color: unset;
            }

        .tab.dropdwn .mega-menu.dropdown-sub-menu .mega-menu-sub li:hover {
            background-color: #0000001a;
        }

    .tab.dropdwn .mega-menu .mega-menu-sub a.disabled {
        display: none;
    }

    .tab.dropdwn .dropdown-sub-menu li a {
        border: none;
        padding-left: 30px;
        width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
    }

    .tab.dropdwn .nav-arrow:after {
        transform: translateY(-2%) rotate(-180deg);
    }

    .tab.dropdwn .nav-arrow:after,
    .tab.dropdwn .nav-arrow,
    .as-sub-menu-tabs .tab.dropdwn a:after {
        float: none !important;
        vertical-align: middle;
    }
*/

    nav .brand-logo {
        position: relative;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 600px) {
    .top-nav-wrapper {
        margin-top: 33px;
    }
}

@media screen and (min-width: 1024px) {
    #account-navigation > ul > li a {
        padding: 0 15px;
    }
}

#tools-nav {
    margin-left: auto;
    margin-top: auto;
    margin-right: 10px;
    align-items: flex-end;
    display: flex;
    overflow: visible;
    width: 40%;
    justify-content: end;
    position: relative;
}

    #tools-nav ul {
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        width: 92px;
        flex-direction: column;
        list-style: none;
        z-index: 9;
    }

    #tools-nav li {
        display: none;
        order: 2;
    }

        #tools-nav li.active {
            display: flex;
            order: 1;
        }

        #tools-nav li a {
            box-sizing: border-box;
            background: #FFFFFF;
            border-radius: 4px 4px 0 0 !important;
            align-items: center;
            justify-content: flex-start;
            flex-shrink: 0;
            display: flex;
            height: 32px;
            width: 92px;
            padding: 0 12px;
            letter-spacing: 0.015em;
            font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
            font-weight: 600;
            color: #5B6B7A;
            font-size: 16px;
            text-decoration: none;
        }

    #tools-nav #tool-menu-toggle {
        background: #F5F8FA;
        border-radius: 4px 4px 0 0;
        border: 0;
        padding: 0;
        margin: 0 0 0 1px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: #748899;
        cursor: pointer;
        position: relative;
        z-index: 10;
    }

        #tools-nav #tool-menu-toggle .toggle-off-icon {
            position: absolute;
            display: none;
        }

        #tools-nav #tool-menu-toggle .toggle-on-icon {
            position: absolute;
        }

    /* when nav is visible, these are the styles: */
    #tools-nav.visible ul {
        width: 125px;
        position: absolute;
        top: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 0 0 1px #E5EBF2;
        border-radius: 4px;
        overflow: hidden;
    }

    #tools-nav.visible li {
        display: flex;
    }

    #tools-nav.visible li a {
        width: 100%;
    }

    #tools-nav.visible li a b {
        line-height: initial;
    }

    #tools-nav.visible #tool-menu-toggle {
        background: #FFF;
        border-radius: 0px 4px 0 0;
    }

        #tools-nav.visible #tool-menu-toggle .toggle-off-icon {
            display: inline-block;
        }

        #tools-nav.visible #tool-menu-toggle .toggle-on-icon {
            display: none;
        }

@media screen and (min-width: 768px) {
    .org-header .container {
        height: 90px;
    }

    .org-header .brand-logo {
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        width: 100%;
        position: unset;
        padding-bottom: 0.75rem;
    }

        .org-header .brand-logo h2 {
            margin-left: 12px;
            line-height: 1em;
        }
}

@media screen and (min-width: 960px) {
    #tools-nav {
        margin-right: 15px;
    }

        #tools-nav ul {
            background: transparent;
            width: auto;
            flex-direction: row;
            position: absolute;
            bottom: 0;
            right: 0;
        }

        #tools-nav li {
            display: flex;
            order: 1;
            margin-left: 1px;
        }

            #tools-nav li a {
                background: #F5F8FA;
                color: #748899;
                width: auto;
                transition: color 350ms;
            }

                #tools-nav li a:hover {
                    color: #000C66;
                    background-color: #F0F7FF;
                }

            #tools-nav li.active a {
                background: #fff;
                color: #374552;
            }

        /* override visible styles: */
        #tools-nav.visible ul {
            width: auto;
            position: static;
            top: auto;
            right: auto;
            background: transparent;
            box-shadow: 0 0 0 0 transparent;
            border-radius: 4px;
            overflow: visible;
        }

        #tools-nav #tool-menu-toggle {
            display: none;
        }
}
