.barra-lateral {
    grid-column: 1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    align-self: stretch;
    position: sticky;
    top: var(--barra-topo-altura);
    width: max-content;
    min-width: max-content;
    max-width: 100%;
    height: calc(100vh - var(--barra-topo-altura));
    background-color: var(--color-surface-container-low);
    border-right: 1px solid var(--color-outline-variant);
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .barra-lateral {
        display: flex;
    }
}

.barra-lateral__nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.25rem;
    width: max-content;
    min-width: 100%;
}

.barra-lateral__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: max-content;
    min-width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 500;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-on-surface-variant);
    text-decoration: none;
    transition: background-color 0.075s ease, color 0.075s ease;
}

.barra-lateral__link .material-symbols-outlined {
    font-size: 1.375rem;
    flex-shrink: 0;
}

.barra-lateral__link:hover {
    background-color: var(--color-surface-container);
    color: var(--color-on-surface);
}

.barra-lateral__link--ativo {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.barra-lateral__link--ativo:hover {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.barra-lateral__grupo {
    display: flex;
    flex-direction: column;
    width: max-content;
    min-width: 100%;
}

.barra-lateral__link--submenu {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.barra-lateral__seta {
    margin-left: auto;
    font-size: 1.25rem;
    transition: transform 0.15s ease;
}

.barra-lateral__grupo--aberto .barra-lateral__seta {
    transform: rotate(180deg);
}

.barra-lateral__submenu {
    display: none;
    flex-direction: column;
    gap: 0.125rem;
    width: max-content;
    min-width: 100%;
    padding: 0.25rem 0 0.5rem;
}

.barra-lateral__grupo--aberto .barra-lateral__submenu {
    display: flex;
}

.barra-lateral__sublink {
    display: block;
    width: max-content;
    min-width: 100%;
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--color-on-surface-variant);
    text-decoration: none;
    transition: background-color 0.075s ease, color 0.075s ease;
}

.barra-lateral__sublink:hover {
    background-color: var(--color-surface-container);
    color: var(--color-on-surface);
}
