/* Lectura móvil de grids: conserva columnas útiles y desplaza, no comprime. */
@media (max-width: 800px) {
    .app-shell .grid-panel,
    .app-shell .grid-panel-fluid,
    .app-shell .erp-grid-wrap,
    .app-shell .informe-table-wrap {
        max-width: 100%;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .app-shell .erp-grid .dxbl-grid-container,
    .app-shell .erp-grid-fluid .dxbl-grid-container,
    .app-shell .commercial-grid .dxbl-grid-container {
        max-width: 100% !important;
        overflow-x: auto !important;
        scrollbar-width: thin;
    }

    .app-shell .erp-grid .dxbl-grid-table,
    .app-shell .erp-grid-fluid .dxbl-grid-table,
    .app-shell .commercial-grid .dxbl-grid-table {
        width: max-content !important;
        min-width: 880px !important;
        table-layout: fixed !important;
    }

    .app-shell .purchase-invoices-list-page .dxbl-grid-table {
        min-width: 1180px !important;
    }

    .app-shell .erp-grid .dxbl-grid-table th,
    .app-shell .erp-grid .dxbl-grid-table td,
    .app-shell .erp-grid-fluid .dxbl-grid-table th,
    .app-shell .erp-grid-fluid .dxbl-grid-table td {
        min-width: 72px;
        padding: 8px 7px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-shell .erp-grid .dxbl-grid-table tr > :first-child,
    .app-shell .erp-grid-fluid .dxbl-grid-table tr > :first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 42px;
        background: #fff;
        box-shadow: 1px 0 0 #d9e1ec;
    }

    .app-shell .erp-grid .dxbl-grid-table thead tr > :first-child,
    .app-shell .erp-grid-fluid .dxbl-grid-table thead tr > :first-child {
        z-index: 4;
        background: #f4f7fb;
    }

    .app-shell .informe-table {
        width: max-content;
        min-width: 780px;
    }

    .app-shell .informe-table th,
    .app-shell .informe-table td {
        padding: 8px 9px;
        white-space: nowrap;
    }

    .app-shell .dxbl-grid .dxbl-pager,
    .app-shell .erp-ribbon,
    .app-shell .list-toolbar-actions {
        flex-wrap: wrap !important;
    }
}
