// = Main Navbar
// ============================================================================

.o_main_navbar {
    border-bottom: none !important;
    position: relative;
    z-index: 2;

    // Ensure consistent navbar entry colors for dark brand background
    --NavBar-entry-color: rgba(255, 255, 255, 0.9);
    --NavBar-entry-color--active: #{$o-white};
    --NavBar-entry-borderColor-active: #{$o-fusion-color-primary};
    --NavBar-entry-backgroundColor: #{$o-fusion-color-brand};
    --NavBar-entry-backgroundColor--active: #{darken($o-fusion-color-brand, 5%)};
    --NavBar-entry-backgroundColor--hover: #{lighten($o-fusion-color-brand, 8%)};
    --NavBar-entry-backgroundColor--focus: #{lighten($o-fusion-color-brand, 8%)};

    .o_menu_toggle {
        color: var(--NavBar-entry-color, rgba(255, 255, 255, 0.9));
    }

    .o_menu_brand {
        transition: opacity 0.15s ease;
    }

    .o_menu_systray .badge {
        font-size: 0.65em;
    }
}

// Ensure Discuss keeps the dark navbar consistent with all other apps
.o_web_client:has(.o-mail-Discuss) {
    .o_main_navbar {
        background: $o-fusion-color-brand !important;
        --NavBar-entry-backgroundColor: #{$o-fusion-color-brand};
    }
}
