/* =========================================================
   REMOVE LEGACY NAVIGATION CARETS
   ========================================================= */

html body .navbar .dropdown-toggle::after,
html body .navbar-nav .dropdown-toggle::after,
html body nav .dropdown-toggle::after,
html body header .dropdown-toggle::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;

    width: 0 !important;
    height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: none !important;

    pointer-events: none !important;
}


/* Logged-in account caret */

html body li.Secondary_Navbar-Account::before,
html body li.Secondary_Navbar-Account::after,

html body li[data-menuItemName="Account"]::before,
html body li[data-menuItemName="Account"]::after,

html body li.user_icon::before,
html body li.user_icon::after,

html body li.Secondary_Navbar-Account > a.dropdown-toggle::before,
html body li.Secondary_Navbar-Account > a.dropdown-toggle::after,

html body li[data-menuItemName="Account"] > a.dropdown-toggle::before,
html body li[data-menuItemName="Account"] > a.dropdown-toggle::after,

html body li.user_icon > a.dropdown-toggle::before,
html body li.user_icon > a.dropdown-toggle::after,

html body li.Secondary_Navbar-Account > a.dropdown-toggle > span::before,
html body li.Secondary_Navbar-Account > a.dropdown-toggle > span::after,

html body li[data-menuItemName="Account"] > a.dropdown-toggle > span::before,
html body li[data-menuItemName="Account"] > a.dropdown-toggle > span::after,

html body li.Secondary_Navbar-Account .user-info::before,
html body li.Secondary_Navbar-Account .user-info::after,

html body li[data-menuItemName="Account"] .user-info::before,
html body li[data-menuItemName="Account"] .user-info::after {
    content: none !important;

    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;

    width: 0 !important;
    height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: none !important;

    font-size: 0 !important;
    line-height: 0 !important;

    pointer-events: none !important;
}


html body li[data-menuItemName="Account"] .caret,
html body li.Secondary_Navbar-Account .caret,
html body li[data-menuItemName="Account"] .fa-caret-down,
html body li.Secondary_Navbar-Account .fa-caret-down {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}


/* Keep Nabtech replacement indicators */

html body .nabtech-dropdown-indicator,
html body .nabtech-nav-indicator,
html body .nabtech-menu-arrow,
html body .nabtech-dropdown-arrow {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: auto !important;
    height: auto !important;
}
/* Palette colours follow the Panel (tools/theme/colour-follow.py) */
/* =========================================================
   PREMIUM LOGIN BUTTON
   ========================================================= */

html body .btn.btn-primary.text-white.border.px-3,
html body a.btn.btn-primary.text-white.border.px-3,
html body button.btn.btn-primary.text-white.border.px-3 {
    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    min-height: 42px !important;

    padding: 0 20px !important;

    background-color:var(--nbc-palette-surface,#ffffff) !important;

    background-image:linear-gradient(
            180deg,
            var(--nbc-palette-surface,#ffffff) 0%,
            color-mix(in srgb,var(--nbc-palette-surface,#ffffff) 48%,#f2f5f9) 100%
        ) !important;

    border: 1px solid rgba(15, 23, 42, 0.13) !important;

    border-radius: 10px !important;

    color:color-mix(in srgb,var(--nbc-palette-muted,#5a7489) 19%,#000210) !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    line-height: 1 !important;
    letter-spacing: -0.01em !important;

    text-decoration: none !important;

    box-shadow:0 1px 2px color-mix(in srgb,color-mix(in srgb,var(--nbc-primary,#0948b3) 16%,#100e10) 4%,transparent),
        0 4px 12px color-mix(in srgb,color-mix(in srgb,var(--nbc-primary,#0948b3) 16%,#100e10) 5%,transparent) !important;

    transform: none !important;

    transition:
        background .22s ease,
        border-color .22s ease,
        color .22s ease,
        box-shadow .22s ease !important;
}


html body .btn.btn-primary.text-white.border.px-3:not(:disabled):not(.disabled) {
    background-color:var(--nbc-palette-surface,#ffffff) !important;

    background-image:linear-gradient(
            180deg,
            var(--nbc-palette-surface,#ffffff) 0%,
            color-mix(in srgb,var(--nbc-palette-surface,#ffffff) 48%,#f2f5f9) 100%
        ) !important;

    color:color-mix(in srgb,var(--nbc-palette-muted,#5a7489) 19%,#000210) !important;
}


html body .btn.btn-primary.text-white.border.px-3:hover {
    background:linear-gradient(
            180deg,
            var(--nbc-palette-surface,#ffffff) 0%,
            color-mix(in srgb,var(--nbc-palette-surface,#ffffff) 19%,#f3f6ff) 100%
        ) !important;

    border-color:color-mix(in srgb,color-mix(in srgb,var(--nbc-palette-border,#d5dce5) 11%,#0f54ec) 30%,transparent) !important;

    color:color-mix(in srgb,var(--nbc-primary,#0948b3) 10%,#2866f1) !important;

    box-shadow:0 2px 4px color-mix(in srgb,color-mix(in srgb,var(--nbc-primary,#0948b3) 16%,#100e10) 4%,transparent),
        0 7px 18px color-mix(in srgb,color-mix(in srgb,var(--nbc-primary,#0948b3) 10%,#2866f1) 10%,transparent) !important;

    transform: none !important;
}
