.contrast-icon {
    filter: var(--header-icon-contrast-filter);
}

.headerbar button {
    border: 0;
    background: none;
}

/* Usado para o cabeçalho dos helpers */
.headerbar-background-helper {
    background: url(../../../layout21/images/layout/default_nl_background.png)
        no-repeat;
}

.headerbar :is(h1, h2, h3, h4, h5, h6, span, p, strong, small) {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#header-height-overlay {
    height: 80px;
}

.headerbar {
    z-index: 1031;
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    gap: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);

    justify-content: space-between;
    align-items: center;

    padding: 0.6rem 3rem;

    background-size: cover;

    font-family: "Mulish", sans-serif;
    color: var(--header-text-contrast-main-color);
}

/* Trinidad adiciona um before desnecessário que estragam o gap do header */
.headerbar::before,
.headerbar::after {
    display: none;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header__powered-by-nl {
    display: flex;

    padding: 0.4rem 1.2rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 24px;

    font-size: 10px;
    color: #ffffff;
    white-space: nowrap;
}

.header__powered-by-nl img {
    height: 1.6rem;
    width: 1.6rem;
}

.header__menu {
    cursor: pointer;
    font-size: 2.8rem;
}

.header__logo a {
    display: flex;
}
.header__logo :is(a:hover, *:focus) {
    text-decoration: none;
}
.header__logo-image-container img {
    max-width: 13.5rem;
}

/* ---------- */

.header__end {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
}

.header__end .dropdown {
    max-width: var(--header-user-container-width);
    display: flex;
}

.header__user {
    display: flex;
    gap: 2rem;
    width: fit-content;
    border-radius: 8px;
    padding: 1.2rem 1.28rem;
    min-height: calc(
        9.8rem - 1.6rem * 2
    ); /* Altura header - padding vertical * 2 */

    justify-content: space-between;
    align-items: center;

    transition: background-color 0.25s;
    cursor: pointer;
}

.header__user:hover {
    background-color: var(--btn-hover-color);
}

.header_profile {
    width: 3.4rem;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    object-fit: cover;
}

.header__user-info {
    display: flex;
    flex-direction: column;
    width: fit-content;
    line-height: normal;
    max-width: var(--header-user-container-width);
}

.header__user-info > span {
    font-size: 14px;
    color: var(--header-text-contrast-main-color);
}

.header__user-info > small {
    font-size: 10px;
    color: var(--header-text-contrast-secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    line-height: 1.3;
}

.header__downarrow {
    display: flex;
}
.header__downarrow img {
    height: 0.8rem;
}

.header__navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 700px) {
    .header__navbar {
        display: none;
    }
}

@media (max-width: 550px) {
    .headerbar {
        flex-direction: column;
        padding-top: 1.6rem;
    }
    .header__end {
        justify-content: space-between;
    }
    .header__logo {
        align-self: baseline;
    }
    .header__user-info small:first-of-type {
        display: none;
    }
}

.header__logo-image-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nl-logo-container {
    width: 3.7rem;
    aspect-ratio: 1;
    background-color: var(--nl-orange);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1;
}
.nl-logo-container img {
    width: 2.3rem;
    height: 1.09rem;
}

#nova-aba-btn {
    position: relative;
}

#nova-aba-btn .fa.fa-square-o {
    margin-bottom: -0.2rem;
}
#nova-aba-btn .fa-plus {
    position: absolute;
    font-size: 8px;
    display: block;
    line-height: 8px;
    padding: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-46%, -50%);
}

.header__navbar > :is(a, button, div) i {
    font-size: 2rem;
    margin-bottom: -0.7px;
}

.header__navbar > :is(a, button) {
    transition: background-color 0.2s;
    padding: 0.5rem;
    height: fit-content;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    min-height: 3.6rem;
    min-width: 3.6rem;
}
.header__navbar :is(button, a):hover {
    background-color: var(--btn-hover-color);
}
.header__navbar :is(button, a):active {
    background-color: var(--btn-active-color);
}
.header__navbar :is(button, a):focus {
    text-decoration: none;
}

.header--badge {
    position: absolute;
    top: 5% !important;
    right: 0 !important; /* Sobrescrever o bootstrap */
}
/* ---------- */

.header-sol-atual {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 30rem;
    max-height: 9.5rem;
}

.header-sol-atual small {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.header-sol-atual > div {
    display: flex;
    flex-direction: column;
}

/* ---------- */

.triches__container {
    /* line-height: 1.2; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.triches__line {
    line-height: 1.2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.2rem;
    max-width: 300px;
}

.triches__value {
    color: var(--header-text-contrast-secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#cmdAlterarRepresentante:hover {
    text-decoration: none;
}

/* ---------- */
#btnEs0001SolAtual i {
    filter: var(--header-icon-contrast-filter);
}

/* ---------- */
/* Favoritos */

.menu-favoritos {
    border-radius: 17.5px;
    overflow: hidden;
    padding: 0;
}

.menu-favoritos li {
    list-style-type: none;
}

.favoritos__tab {
    color: #313534;
    transition: background-color cubic-bezier(0.075, 0.82, 0.165, 1) 0.4s;
    text-transform: none !important;
}

li:not(.active) > .favoritos__tab:hover {
    background-color: #dddddd !important;
    color: #313534;
    font-weight: bold;
}

#header-menu-favoritos li a .icon-button {
    position: absolute;
    right: 5px;
}
#header-menu-favoritos li a .icon-button i {
    font-size: 15px;
}
.menu-favoritos ul.tab-pane > li > a:not(:hover) .icon-button {
    color: white;
}
#header-menu-favoritos li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#header-menu-favoritos li a span {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.stars-container {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: var(--header-text-contrast-main-color);
    border-radius: 9999px;
    opacity: 0.6;
    transition: box-shadow cubic-bezier(0.17, 0.67, 0.83, 0.67) 0.4s,
        transform cubic-bezier(0.17, 0.67, 0.83, 0.67) 0.4s,
        opacity cubic-bezier(0.17, 0.67, 0.83, 0.67) 0.4s;
}

.blink {
    transform: scale(1.2);
    -webkit-box-shadow: 0px 0px 7px 1px var(--header-text-contrast-main-color);
    -moz-box-shadow: 0px 0px 7px 1px var(--header-text-contrast-main-color);
    box-shadow: 0px 0px 7px 1px var(--header-text-contrast-main-color);
    opacity: 1;
}

.shooting-star {
    position: absolute;

    background: var(--header-text-contrast-main-color);
    height: 2px;
    border-radius: 1px;
    opacity: 0.75;
    transition: transform 0.3s linear;
}
