/* Mobile-compact rows for Filament tables — Abg Ahmad 2026-04-23
   Apply to all Filament resource list pages on mobile (≤768px).
   Tightens row padding (default ~0.875rem) for compact like sidebar menu. */

@media (max-width: 768px) {
    /* Row padding compact */
    .fi-ta-table tbody tr td,
    .fi-ta-table thead tr th {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }
    .fi-ta-record {
        min-height: 0 !important;
    }
    .fi-ta-cell {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    /* Reduce text-cell vertical spacing */
    .fi-ta-text-item {
        line-height: 1.25 !important;
    }
    .fi-ta-text {
        gap: 0.15rem !important;
    }

    /* Tighten row checkbox column */
    .fi-ta-record-checkbox-cell,
    .fi-ta-actions-cell {
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
    }

    /* Header row tighter */
    .fi-ta-header-cell {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Reduce gap between row content */
    .fi-ta-cell .flex {
        gap: 0.25rem !important;
    }

    /* Description below name compact */
    .fi-ta-text-item-description {
        font-size: 0.7rem !important;
        margin-top: 0 !important;
    }

    /* Filter row tighter */
    .fi-ta-filters {
        padding: 0.5rem !important;
    }

    /* Table scroll wrapper padding */
    .fi-ta-content {
        padding-top: 0 !important;
    }

    /* Card list (mobile alt-view) */
    .fi-ta-grid-record {
        padding: 0.6rem !important;
    }

    /* Remove excessive whitespace from text-item line-clamp containers */
    .fi-ta-text-item > div {
        margin: 0 !important;
    }
}
