/**
 * Mobil tablo yatay kaydırma — app.css / theme-visual sonrası yüklenir.
 * Kart genişlemesini keser; kaydırma yalnızca .table-h-scroll içinde olur.
 */
@media (max-width: 991.98px) {
    .app-shell,
    .app-main,
    .app-content {
        max-width: 100%;
        overflow-x: clip;
    }

    .app-content .row {
        max-width: 100%;
    }

    .app-content .row > [class*="col-"] {
        min-width: 0;
        max-width: 100%;
    }

    /* Tablolu kartlar viewport'u aşmasın */
    .app-content .card.table-responsive-mobile,
    .app-content .card.card-table-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: clip !important;
        overflow-y: visible;
    }

    .app-content .table-h-scroll,
    .app-content .quotes-table-scroll,
    .app-content .table-responsive {
        display: block !important;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: scroll !important;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        /* iOS: kaydırma katmanı */
        transform: translateZ(0);
    }

    .app-content .table-h-scroll--y {
        max-height: 280px;
        overflow-y: auto !important;
    }

    .app-content .table-h-scroll > .table,
    .app-content .quotes-table-scroll > .table,
    .app-content .table-responsive > .table {
        display: table !important;
        width: auto !important;
        min-width: 38rem !important;
        max-width: none !important;
        margin-bottom: 0 !important;
    }

    .app-content .table-h-scroll--wide > .table,
    .app-content .quotes-table-scroll .quotes-list-table {
        min-width: 52rem !important;
    }

    .app-content .table-h-scroll .text-end,
    .app-content .table-h-scroll th:last-child,
    .app-content .table-h-scroll td:last-child,
    .app-content .quotes-table-scroll .text-end {
        white-space: nowrap;
    }

    .table-scroll-hint {
        user-select: none;
    }
}
