/* 6346 Ayet Sayfası - Mobil Tablo Düzeltmeleri */

/* Genel tablo responsive sistemi */
.table-container-6346 {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .table-container-6346 {
    background: rgb(31, 41, 55);
}

/* Horizontal scroll wrapper */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 51, 234, 0.3) transparent;
}

/* Webkit scrollbar styling */
.table-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.4);
    border-radius: 4px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.6);
}

/* Ana tablo stilleri - masaüstü korunur */
.table-6346 {
    width: 100%;
    min-width: 800px; /* Orijinal genişlik korunur */
    border-collapse: collapse;
    font-size: 14px;
}

/* Mobil uyarı mesajı */
.mobile-scroll-hint {
    display: none;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0.05));
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    color: rgb(147, 51, 234);
}

.dark .mobile-scroll-hint {
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.2), rgba(147, 51, 234, 0.1));
    border-color: rgba(147, 51, 234, 0.3);
    color: rgb(196, 181, 253);
}

/* Mobil özel responsive kuralları */
@media (max-width: 768px) {
    /* Uyarı mesajını göster */
    .mobile-scroll-hint {
        display: block;
    }
    
    /* Container padding ayarı */
    .table-container-6346 {
        margin: 0 -16px; /* Sayfa padding'ini nötralize et */
        border-radius: 0;
    }
    
    /* Scroll wrapper mobil optimizasyonu */
    .table-scroll-wrapper {
        padding: 0 16px; /* İç padding geri ver */
    }
    
    /* Tablo font size küçültme */
    .table-6346 {
        font-size: 12px;
        min-width: 700px; /* Biraz daha kompakt */
    }
    
    /* Header cell'leri kompakt */
    .table-6346 thead th {
        padding: 8px 6px !important;
        font-size: 10px !important;
        line-height: 1.2;
    }
    
    /* Body cell'leri kompakt */
    .table-6346 tbody td {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
    
    /* Footer cell'leri vurgulu tutma */
    .table-6346 tfoot td {
        padding: 8px 6px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        background: rgba(147, 51, 234, 0.1) !important;
    }
    
    .dark .table-6346 tfoot td {
        background: rgba(147, 51, 234, 0.2) !important;
    }
}

/* Tablet boyutu için orta çözüm */
@media (min-width: 769px) and (max-width: 1023px) {
    .table-6346 {
        font-size: 13px;
        min-width: 750px;
    }
    
    .table-6346 thead th,
    .table-6346 tbody td,
    .table-6346 tfoot td {
        padding: 10px 6px !important;
    }
}

/* Sticky header - opsiyonel enhancement */
@media (max-width: 768px) {
    .table-6346 thead {
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgb(237, 233, 254);
    }
    
    .dark .table-6346 thead {
        background: rgba(147, 51, 234, 0.9);
    }
}

/* Toplam satırları sticky footer - opsiyonel */
.sticky-footer-enabled .table-6346 tfoot {
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover effect'i mobilde kaldır */
@media (max-width: 768px) {
    .table-6346 tbody tr:hover {
        background-color: transparent !important;
    }
}

/* Focus indicator for accessibility */
.table-scroll-wrapper:focus-within {
    outline: 2px solid rgba(147, 51, 234, 0.5);
    outline-offset: 2px;
}