@use '_sass_variables' as *;

.layout-wrapper {
    height: 100vh;
    display: flex;
    transition: all 0.2s ease;
}
.layout-content-wrapper {
    flex: 1;
    height: 100%;
    overflow: auto;
    z-index: 9;
    transition: all 0.2s ease;
}
.layout-content-wrapper-inside {
    max-width: 1540px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.layout-content {
    // padding: 2rem 2rem 0 2rem;
    flex: 1 1 auto;
    position: relative;
}

// When vertical submenu is present, row layout at all screen sizes so main content is visible
.layout-content.with-submenu {
    display: flex;
    flex-direction: row;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;

    .layout-content-main {
        flex: 1;
        min-width: 0;
        overflow-y: auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;

        @media screen and (min-width: $breakpoint) {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    }
}

// Vertical spacing only; horizontal inset comes from AppLayout section padding (responsive).

@media screen and (max-width: ($breakpoint - 1)) {
    .layout-content {
        padding: 0.5rem 0 0 0;
    }
}

@media screen and (min-width: $breakpoint) and (max-width: 1200px) {
    .layout-content {
        padding: 0.75rem 0 0 0;
    }
}
