/* Tradesman profile / account menu — shared by full site (~/bundles/css) and landing layout (~/main/css).
   Keeps landing.css legacy .navbar .dropdown-menu rules from styling the tradesman menu. */

/* Tradesman account dropdown - modern sectioned layout (desktop) */
.navbar .profile-meta .dropdown-menu {
    min-width: 300px;
    width: auto;
    padding: 8px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12), 0 2px 6px rgba(17, 24, 39, 0.06);
    margin-top: 8px;
    z-index: 1000;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.navbar .profile-meta .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}
.navbar .profile-meta .dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.navbar .profile-meta .dropdown-menu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
    background-clip: padding-box;
    border: 2px solid transparent;
}
.navbar .profile-meta .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li {
    border: none !important;
    background: transparent;
}
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li > a {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 9px 16px;
    margin: 0 6px;
    border-radius: 8px;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li > a:hover,
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li > a:focus,
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > .active > a,
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > .active > a:hover,
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > .active > a:focus {
    background-color: #f3f4f6 !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
}
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li > a:hover .menu-label,
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li > a:focus .menu-label {
    color: #111827 !important;
}
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li > a:hover .menu-icon,
.navbar .profile-meta .dropdown-menu:not(.yamm-dropdown-menu) > li > a:focus .menu-icon {
    color: #4b5563 !important;
}
.profile-meta .dropdown-menu .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.profile-meta .dropdown-menu img.menu-icon {
    color: inherit;
    opacity: .75;
}
.profile-meta .dropdown-menu .menu-label {
    flex: 1 1 auto;
    font-size: 14px;
}
.profile-meta .dropdown-menu .tradesman-menu-header {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
    padding: 10px 22px 4px;
    line-height: 1.4;
    background: transparent;
}
.profile-meta .dropdown-menu .tradesman-menu-header .menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #9ca3af;
    font-size: 12px;
}
.navbar .profile-meta .dropdown-menu > li.divider {
    height: 1px;
    margin: 8px 12px;
    background: #e5e7eb;
    border: none;
}
.profile-meta .dropdown-menu .menu-new-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1.4;
}

/* Tradesman account menu - mobile inline list (hidden-lg <ul>) */
.navbar-nav.hidden-lg .tradesman-menu-header {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
    padding: 16px 18px 6px;
    background: transparent;
    border: none !important;
}
.navbar-nav.hidden-lg .tradesman-menu-header .menu-icon {
    display: inline-block;
    width: 18px;
    margin-right: 8px;
    color: #9ca3af;
    font-size: 12px;
    vertical-align: middle;
}
.navbar-nav.hidden-lg > li > a .menu-icon {
    display: inline-block;
    width: 22px;
    text-align: center;
    margin-right: 12px;
    color: #6b7280;
    font-size: 16px;
    vertical-align: middle;
}
.navbar-nav.hidden-lg > li > a img.menu-icon {
    color: inherit;
    opacity: .75;
}
.navbar-nav.hidden-lg > li > a .menu-label {
    vertical-align: middle;
    font-weight: 500;
}
.navbar .navbar-collapse .navbar-nav.hidden-lg > li.divider {
    height: 1px;
    margin: 8px 18px;
    padding: 0;
    overflow: hidden;
    background-color: #e5e7eb !important;
    border: none !important;
}
.navbar-nav.hidden-lg > li.language {
    background: transparent;
}
.navbar-nav.hidden-lg > li.language > a {
    font-weight: 500;
}
.navbar-nav.hidden-lg > li > a i.menu-icon.fas,
.navbar-nav.hidden-lg > li > a i.menu-icon.fa {
    color: #6b7280;
    font-size: 14px;
}
.profile-meta .dropdown-menu .fas.menu-icon,
.profile-meta .dropdown-menu .fa.menu-icon {
    color: #6b7280;
    font-size: 14px;
}
.navbar-nav.hidden-lg .menu-new-badge {
    margin-left: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .4px;
    vertical-align: middle;
}

/* Mobile logout row: logout on the left, language switcher on the right */
.navbar-nav.hidden-lg > li.logout-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.navbar-nav.hidden-lg > li.logout-row > a.logout-link {
    flex: 1 1 auto;
}
.navbar-nav.hidden-lg > li.logout-row > a.lang-switch-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 10px 12px !important;
    border-radius: 999px !important;
    background: #f3f4f6;
    color: #1f2937 !important;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: background-color .15s ease, color .15s ease;
}
.navbar-nav.hidden-lg > li.logout-row > a.lang-switch-link:hover,
.navbar-nav.hidden-lg > li.logout-row > a.lang-switch-link:focus {
    background-color: #e5e7eb !important;
    color: #111827 !important;
    text-decoration: none;
}
.navbar-nav.hidden-lg > li.logout-row > a.lang-switch-link i {
    font-size: 13px;
    color: #4b5563;
}
.navbar-nav.hidden-lg > li.logout-row > a.lang-switch-link:hover i,
.navbar-nav.hidden-lg > li.logout-row > a.lang-switch-link:focus i {
    color: #111827;
}

/* Modern white background + clean mobile menu (overrides legacy grey #F5F7FA, per-li borders, zero-padding anchors) */
@media (max-width: 1200px) {
    .navbar .navbar-collapse,
    .navbar .navbar-collapse.collapse.in {
        background: #ffffff;
    }
    .navbar .navbar-collapse .navbar-nav > li {
        background: transparent;
    }
    .navbar-nav.hidden-lg > li + li,
    .navbar-nav.hidden-lg > li.bell {
        border-top: none;
    }
    .navbar-nav.hidden-lg > li > a {
        padding: 10px 16px;
        margin: 0 6px;
        border-radius: 8px;
        color: #1f2937;
        transition: background-color .15s ease, color .15s ease;
    }
    .navbar-nav.hidden-lg > li > a:hover,
    .navbar-nav.hidden-lg > li > a:focus {
        background-color: #f3f4f6;
        color: #111827;
    }
}
