.layout-main {
    flex: 1;
    min-width: 0;
}

.layout-content {
    background-color: var(--alii-grey);
    min-width: 0;
}

.layout-top-row {
    background-color: var(--alii-green);
    color: white;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.layout-top-row a,
.layout-top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.layout-top-row a:hover,
.layout-top-row .btn-link:hover {
    text-decoration: underline;
}

.layout-top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .layout-top-row:not(.auth) {
        display: none;
    }

    .layout-top-row.auth {
        justify-content: space-between;
    }

    .layout-top-row a,
    .layout-top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .layout-top-row {
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .layout-top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .layout-top-row,
    .layout-content-wrapper {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
