/*
 * Top navigation layout: keep theme logo/font sizes; only enforce single-row layout
 * and fix dropdown panel styles scoped to top-level items.
 */

.header-top .navbar.navbar-light.app-top-nav {
    flex-wrap: nowrap;
    align-items: stretch;
}

.header-top .app-top-nav .navbar-left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: stretch;
}

.header-top .app-top-nav .top-menu-custom {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    align-items: stretch;
}

.header-top .app-top-nav .hexadash-top-menu {
    min-width: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.header-top .app-top-nav .hexadash-top-menu > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    height: 100%;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li {
    display: inline-flex;
    align-items: stretch;
    position: relative;
    padding-right: 0;
    flex-shrink: 0;
}

/* Roomier than the compact 18px pass, still below the theme default (34px) */
.header-top .app-top-nav .hexadash-top-menu > ul > li:not(:last-child) {
    margin-right: 26px !important;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li > a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li.top-nav-athlete__divider {
    width: 1px;
    height: auto;
    align-self: center;
    min-height: 18px;
    margin: 0 14px 0 4px;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    flex-shrink: 0;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li.top-nav-athlete__divider::before {
    content: none;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li:hover > .subMenu {
    top: 100%;
    opacity: 1;
    visibility: visible;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li > ul.subMenu {
    width: 220px;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    z-index: 9990;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li > ul.subMenu > li {
    display: block;
    width: 100%;
    margin-right: 0 !important;
    padding-right: 0;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li > ul.subMenu > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    padding: 10px 20px !important;
    border-radius: 0;
    color: #272b41;
}

.header-top .app-top-nav .hexadash-top-menu > ul > li > ul.subMenu > li > a:hover,
.header-top .app-top-nav .hexadash-top-menu > ul > li > ul.subMenu > li > a:focus-visible {
    background-color: #fff1f0;
    color: #ff4d4f;
    outline: none;
}

.header-top .app-top-nav .logo-area {
    display: flex;
    align-items: center;
}

@media (min-width: 1200px) {
    .header-top .app-top-nav .hexadash-top-menu > ul > li:not(:last-child) {
        margin-right: 28px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .header-top .app-top-nav .hexadash-top-menu > ul > li:not(:last-child) {
        margin-right: 22px !important;
    }

    .header-top .app-top-nav .hexadash-top-menu > ul > li > a {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

@media (max-width: 767px) {
    .header-top .app-top-nav .top-menu-custom {
        display: none !important;
    }
}
