/* Directory bottom edge: preview panes should meet the status bar without the gray gutter. */
html .vario-win-main:has(.vario-directory-v2),
html[data-vario-theme] .vario-win-main:has(.vario-directory-v2) {
    gap: 0 !important;
    row-gap: 0 !important;
}

html .vario-win-content:has(.vario-directory-v2),
html[data-vario-theme] .vario-win-content:has(.vario-directory-v2) {
    height: calc(100dvh - 86px) !important;
    max-height: calc(100dvh - 86px) !important;
    padding: 8px 4px 0 !important;
}

html .vario-contractors-dashboard.vario-directory-v2,
html .vario-items-dashboard.vario-directory-v2,
html[data-vario-theme] .vario-contractors-dashboard.vario-directory-v2,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 {
    padding-bottom: 0 !important;
}

@media (max-width: 1480px) {

    html .vario-items-dashboard.vario-directory-v2 .vario-items-top-search,
    html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-top-search {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions,
    html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions {
        justify-content: flex-end !important;
    }
}

@media (max-width: 1120px) {

    html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-main,
    html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-main {
        flex-wrap: wrap !important;
    }

    html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-body,
    html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-body {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

