/* Richieste: layout adattato alla larghezza del workspace, non del viewport. */
@container app-workspace (max-width: 768px) {
body.page-richieste .req-page-shell {
    gap: 14px !important;
}

body.page-richieste .req-page-toolbar,
body.page-richieste .req-groups-head,
body.page-richieste .req-mobile-quickbar {
    display: none !important;
}

body.page-richieste .req-page-shell .req-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body.page-richieste .req-page-shell .req-group,
body.page-richieste .req-page-shell .req-group-archive {
    border-radius: 18px !important;
}

body.page-richieste .req-page-shell .req-group:not([open]) .req-group-summary {
    min-height: 124px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 14px !important;
    border-radius: 18px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

body.page-richieste .req-page-shell .req-group:not([open]) .rg-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding-right: 0 !important;
}

body.page-richieste .req-page-shell .req-group:not([open]) .rg-heading {
    gap: 5px !important;
}

body.page-richieste .req-page-shell .req-group:not([open]) .rg-meta {
    display: none !important;
}

body.page-richieste .req-page-shell .req-group:not([open]) .rg-chevron {
    position: absolute !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

body.page-richieste #req-tab-bar {
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 12px !important;
}

body.page-richieste #req-tab-bar .acq-tab {
    flex: 0 0 auto !important;
}
}

/* Chiudo gap a 500px: 2-col tra 420-500px era troppo stretto */
@container app-workspace (max-width: 500px) {
    body.page-richieste .req-page-shell .req-groups {
        grid-template-columns: 1fr !important;
    }

    body.page-richieste .req-page-shell .req-group:not([open]) .req-group-summary {
        min-height: 112px !important;
        aspect-ratio: auto !important;
    }
}
