/**
 * Public Styles — Layout Only
 * Component styles → assets/css/components.css
 *
 * @package FiveOOD_General_Filters
 */

/* ================================================
   LAYOUT — GRIDS & FLEX WRAPPERS
   ================================================ */

.fiveood-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.fiveood-dashboard-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.fiveood-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* ================================================
   RESPONSIVE — CONTAINERS & LAYOUTS
   ================================================ */

/* Extra-large (≥1440): wide single-column */
@media screen and (min-width: 1440px) {
    .gf-page {
        max-width: 1400px;
        padding: 48px 32px;
    }
}

/* Large desktop (1024–1439): standard desktop layout */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .gf-page {
        max-width: 100%;
        padding: 32px 20px;
    }

    .fiveood-dashboard-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Tablet (768–1023) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .gf-page {
        max-width: 100%;
        padding: 24px 16px;
    }

    .fiveood-dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .fiveood-dashboard-actions {
        gap: 12px;
    }

    .fiveood-form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 767px) {
    .gf-page {
        max-width: 100%;
        padding: 16px 12px;
    }

    .fiveood-dashboard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fiveood-dashboard-actions {
        flex-direction: column;
        gap: 10px;
    }

    .fiveood-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fiveood-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 374px) {
    .gf-page {
        padding: 12px 8px;
    }
}

/* ================================================
   PRINT
   ================================================ */

@media print {
    .fiveood-dashboard-actions,
    .gf-btn,
    .fiveood-remove-line {
        display: none !important;
    }

    .gf-page {
        max-width: 100%;
        padding: 0;
    }

    .fiveood-card {
        break-inside: avoid;
    }
}
