/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 99vw;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* Header Stili */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.navigation a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.navigation a:hover {
    background: rgba(255,255,255,0.1);
    border-color: #3498db;
    transform: translateY(-2px);
}

.navigation a.nav-active {
    background: #3498db;
    border-color: #3498db;
}

/* Butonlar */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin: 0.2rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Alert Stilleri */
.alert {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert h3 {
    margin-bottom: 0.5rem;
}

/* MAPPING SAYFASI STİLLERİ */
.mapping-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mapping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mapping-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.mapping-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mapping-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.system-column {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    font-size: 0.9rem;
}

.mapping-select {
    flex: 1;
    margin-left: 1rem;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.preview-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.preview-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-table th,
.preview-table td {
    padding: 0.6rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.preview-table th {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.preview-table td {
    font-size: 0.8rem;
}

.mapping-actions {
    text-align: center;
    padding: 2rem 0;
}

.excel-headers .mapping-item {
    justify-content: flex-start;
    gap: 1rem;
}

.excel-headers .mapping-item strong {
    color: #3498db;
    min-width: 30px;
}

/* Data Section */
.main-content {
    padding: 1rem;
}

.upload-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.upload-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.upload-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.upload-form input[type="file"] {
    flex: 1;
    min-width: 300px;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.data-section {
    margin-bottom: 2rem;
}

/* DESKTOP TABLO OPTİMİZASYONU - SAYFA SIĞDIRMA */
.table-container {
    overflow-x: auto;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-height: 75vh;
    -webkit-overflow-scrolling: touch;
    /* Genişlik optimizasyonu */
    width: 100%;
    max-width: 100vw;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem; /* Biraz büyütüldü */
    table-layout: auto; /* Fixed'den auto'ya değiştirildi */
    min-width: 100%;
}

.data-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0.6rem 0.5rem; /* Padding biraz artırıldı */
    text-align: center;
    font-weight: 700;
    border-bottom: 3px solid #1a252f;
    border-right: 1px solid #34495e;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: normal; /* Sarılmaya izin ver */
    font-size: 0.68rem; /* Biraz büyütüldü */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    /* Sütun genişlik optimizasyonu */
    width: auto;
    max-width: 160px; /* Daha da genişletildi */
    line-height: 1.2; /* Satır yüksekliği eklendi */
    word-wrap: break-word; /* Kelime kırılması */
}

/* İŞLEMLER SÜTUNU GENİŞ */
.data-table th.action-column {
    width: 400px; /* Biraz genişletildi */
    min-width: 400px;
    max-width: 400px;
    white-space: nowrap; /* Bu sütun için sarılmasın */
}

.data-table td {
    padding: 0.6rem 0.5rem; /* Padding biraz artırıldı */
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #f8f9fa;
    vertical-align: middle;
    text-align: left;
    font-size: 0.72rem; /* Biraz büyütüldü */
    white-space: normal; /* Sarılmaya izin ver */
    word-wrap: break-word;
    max-width: 160px; /* Daha da genişletildi */
    line-height: 1.3; /* Satır yüksekliği */
}

/* VERİ HÜCRELERİ */
.data-table td.data-cell {
    max-width: 140px; /* Genişletildi */
    white-space: normal; /* Sarılmaya izin ver */
    word-wrap: break-word;
    line-height: 1.3;
}

/* BUTON SÜTUNU */
.data-table td.action-buttons {
    width: 400px; /* Genişletildi */
    min-width: 400px;
    max-width: 400px;
    white-space: nowrap;
    padding: 0.4rem; /* Biraz artırıldı */
}

.data-table tr:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* DURUM BUTONLARI - KOMPAKT AMA OKUNAKLИ */
.btn-called {
    background: #e74c3c !important;
    color: white !important;
    font-size: 0.62rem; /* Biraz büyütüldü */
    padding: 0.4rem 0.6rem; /* Biraz büyütüldü */
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 58px; /* Biraz büyütüldü */
    text-align: center;
    margin: 0.1rem;
}

.btn-arrived {
    background: #3498db !important;
    color: white !important;
    font-size: 0.62rem;
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 58px;
    text-align: center;
    margin: 0.1rem;
}

.btn-fed {
    background: #27ae60 !important;
    color: white !important;
    font-size: 0.62rem;
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 58px;
    text-align: center;
    margin: 0.1rem;
}

.btn-besleme2 {
    background: #e91e63 !important;
    color: white !important;
    font-size: 0.62rem;
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 58px;
    text-align: center;
    margin: 0.1rem;
}

.btn-returned {
    background: #9b59b6 !important;
    color: white !important;
    font-size: 0.62rem;
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 58px;
    text-align: center;
    margin: 0.1rem;
}

.btn-none {
    background: #f39c12 !important;
    color: white !important;
    font-size: 0.62rem;
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 58px;
    text-align: center;
    margin: 0.1rem;
}

/* DURUM RENKLERİ DESKTOP - DAHA KOYU VE BELİRGİN */
.status-called {
    background: rgba(231, 76, 60, 0.25) !important; /* 0.1'den 0.25'e çıkarıldı */
    border-left: 6px solid #e74c3c !important; /* 4px'den 6px'e çıkarıldı */
    box-shadow: inset 0 0 0 1px rgba(231, 76, 60, 0.1) !important;
}

.status-arrived {
    background: rgba(52, 152, 219, 0.25) !important;
    border-left: 6px solid #3498db !important;
    box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.1) !important;
}

.status-fed {
    background: rgba(39, 174, 96, 0.25) !important;
    border-left: 6px solid #27ae60 !important;
    box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.1) !important;
}

.status-besleme2 {
    background: rgba(233, 30, 99, 0.25) !important;
    border-left: 6px solid #e91e63 !important;
    box-shadow: inset 0 0 0 1px rgba(233, 30, 99, 0.1) !important;
}

.status-returned {
    background: rgba(155, 89, 182, 0.25) !important;
    border-left: 6px solid #9b59b6 !important;
    box-shadow: inset 0 0 0 1px rgba(155, 89, 182, 0.1) !important;
}

.status-none {
    background: rgba(243, 156, 18, 0.25) !important;
    border-left: 6px solid #f39c12 !important;
    box-shadow: inset 0 0 0 1px rgba(243, 156, 18, 0.1) !important;
}

/* ============================================ */
/* MOBİL RESPONSIVE - BOZULMADAN KORUNUYOR */
/* ============================================ */

@media (max-width: 768px) {
    /* Container ve temel yapı */
    .container {
        margin: 0;
        max-width: 100vw;
        width: 100vw;
        box-shadow: none;
        padding: 0;
        background: #f8f9fa;
        overflow-x: hidden;
    }
    
    .header {
        padding: 0.8rem;
        background: #2c3e50;
        width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }
    
    .header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .navigation {
        gap: 0.3rem;
        justify-content: center;
    }
    
    .navigation a {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Upload Form Düzeltmeleri */
    .upload-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .upload-form input[type="file"] {
        min-width: auto;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Mapping sayfası mobil */
    .mapping-container {
        padding: 1rem;
        width: 100vw;
        margin: 0;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .mapping-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mapping-item {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    
    .system-column {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .mapping-select {
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 0.85rem;
    }
    
    .preview-section {
        padding: 1rem;
        background: transparent !important;
        border: none !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* ====== PREVIEW TABLE MOBİL KART SİSTEMİ ====== */
    .preview-table {
        border: none !important;
        background: transparent !important;
        width: 100% !important;
        box-shadow: none !important;
    }
    
    .preview-table thead {
        display: none !important;
    }
    
    .preview-table tbody {
        display: block !important;
        background: transparent !important;
    }
    
    .preview-table tbody tr {
        display: block !important;
        background: #e74c3c !important; /* KIRMIZI KART */
        border-radius: 15px !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4) !important;
        overflow: hidden !important;
        border: 2px solid #c0392b !important;
    }
    
    .preview-table tbody tr:nth-child(2) {
        background: #3498db !important; /* MAVİ KART */
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4) !important;
        border: 2px solid #2980b9 !important;
    }
    
    .preview-table tbody tr:nth-child(3) {
        background: #27ae60 !important; /* YEŞİL KART */
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4) !important;
        border: 2px solid #229954 !important;
    }
    
    .preview-table tbody tr:nth-child(4) {
        background: #9b59b6 !important; /* MOR KART */
        box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4) !important;
        border: 2px solid #8e44ad !important;
    }
    
    .preview-table tbody tr:nth-child(5) {
        background: #f39c12 !important; /* TURUNCU KART */
        box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4) !important;
        border: 2px solid #e67e22 !important;
    }
    
    .preview-table tbody td {
        display: flex !important;
        align-items: center !important;
        padding: 15px 20px !important;
        border: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.3) !important;
        background: rgba(255,255,255,0.95) !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    .preview-table tbody td:last-child {
        border-bottom: none !important;
    }
    
    .preview-table tbody td::before {
        content: attr(data-label) !important;
        background: rgba(0,0,0,0.08) !important;
        color: rgba(0,0,0,0.8) !important;
        font-weight: 700 !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        text-align: center !important;
        min-width: 120px !important;
        max-width: 120px !important;
        margin-right: 15px !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .preview-table tbody td::after {
        content: attr(data-value) !important;
        background: rgba(255,255,255,0.9) !important;
        color: rgba(0,0,0,0.9) !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        flex: 1 !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        text-align: left !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
    }
    
    .preview-table tbody td:empty::after {
        content: "—" !important;
        color: rgba(0,0,0,0.4) !important;
        font-style: italic !important;
        text-align: center !important;
    }
    
    .mapping-actions {
        padding: 1rem 0;
        width: 100%;
    }
    
    .mapping-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Tablo Container Düzeltmeleri */
    .table-container {
        overflow: visible !important;
        border-radius: 0 !important;
        max-height: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Data Table Temel Yapı */
    .data-table {
        display: block !important;
        background: transparent !important;
        border: none !important;
        width: 100% !important;
        margin: 0;
        table-layout: auto !important;
    }
    
    .data-table thead {
        display: none !important;
    }
    
    .data-table tbody {
        display: block !important;
        width: 100% !important;
        margin: 0;
        padding: 0;
    }
    
    /* KART SİSTEMİ - DURUM RENKLERİ İLE */
    .data-table tbody tr {
        display: block !important;
        background: #ffffff !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 12px !important;
        margin: 0 0 1rem 0 !important;
        padding: 1rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* DURUM RENKLERİ - MOBİL KARTLAR */
    .data-table tbody tr.status-called {
        background: #ffe6e6 !important;
        border-color: #e74c3c !important;
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2) !important;
    }
    
    .data-table tbody tr.status-arrived {
        background: #e6f3ff !important;
        border-color: #3498db !important;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2) !important;
    }
    
    .data-table tbody tr.status-fed {
        background: #e6ffe6 !important;
        border-color: #27ae60 !important;
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2) !important;
    }
    
    .data-table tbody tr.status-besleme2 {
        background: #ffe6f9 !important;
        border-color: #e91e63 !important;
        box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2) !important;
    }
    
    .data-table tbody tr.status-returned {
        background: #f3e6ff !important;
        border-color: #9b59b6 !important;
        box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2) !important;
    }
    
    .data-table tbody tr.status-none {
        background: #fff3e6 !important;
        border-color: #f39c12 !important;
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2) !important;
    }
    
    /* HÜCRE DÜZENLEME - ETİKET VE DEĞER KUTUCULARI - TAM GÖRÜNÜM */
    .data-table td {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        border: none !important;
        padding: 0.6rem 0 !important;
        margin: 0 !important;
        text-align: left !important;
        font-size: 0.85rem !important;
        position: relative !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        background: transparent !important;
        max-width: unset !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    
    .data-table td:last-child {
        border-bottom: none !important;
    }
    
    /* ETİKET KUTUCULARI (SOL TARAF) - DAHA GENIŞ */
    .data-table td:before {
        content: attr(data-label) !important;
        display: inline-block !important;
        background: rgba(44, 62, 80, 0.1) !important;
        color: #2c3e50 !important;
        font-weight: 700 !important;
        font-size: 0.7rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 0.5rem 0.7rem !important;
        border-radius: 6px !important;
        text-align: center !important;
        min-width: 100px !important;
        max-width: 100px !important;
        width: 100px !important;
        margin-right: 0.8rem !important;
        border: 1px solid rgba(44, 62, 80, 0.15) !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        hyphens: auto !important;
    }
    
    /* DEĞER KUTUCULARI (SAĞ TARAF) - TAM GÖRÜNÜM */
    .data-table td {
        color: transparent !important;
        font-size: 0 !important;
    }
    
    .data-table td:after {
        content: attr(title) !important;
        display: inline-block !important;
        background: rgba(255, 255, 255, 0.95) !important;
        color: #333 !important;
        font-weight: 600 !important;
        font-size: 0.82rem !important;
        padding: 0.5rem 0.7rem !important;
        border-radius: 6px !important;
        flex: 1 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        text-align: left !important;
        word-wrap: break-word !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        /* TAM GÖRÜNÜM İÇİN YÜKSEKLIK KISITLAMASI KALDIRILDI */
        overflow: visible !important;
        text-overflow: unset !important;
        max-height: unset !important;
        /* Uzun değerler için otomatik yükseklik */
        min-height: 2.2em !important;
    }
    
    /* BOŞ HÜCRELER */
    .data-table td:empty:after,
    .data-table td[title=""]:after {
        content: "—" !important;
        color: rgba(0,0,0,0.4) !important;
        font-style: italic !important;
        text-align: center !important;
    }
    
    /* BUTON SÜTUNU ÖZEL DURUM - TÜM BUTONLAR GÖRÜNÜR */
    .data-table td.action-buttons {
        display: block !important;
        padding: 1rem 0 0 0 !important;
        margin-top: 0.8rem !important;
        border-top: 2px solid rgba(0,0,0,0.1) !important;
        border-bottom: none !important;
        background: rgba(0,0,0,0.02) !important;
        border-radius: 8px !important;
        width: 100% !important;
        /* Butonların sarılmasını sağla */
        white-space: normal !important;
        overflow: visible !important;
        max-width: unset !important;
        min-width: unset !important;
    }
    
    .data-table td.action-buttons:before {
        display: none !important;
    }
    
    .data-table td.action-buttons:after {
        display: none !important;
    }
    
    /* BUTONLAR MOBİLDE - TÜM TELEFONLARA UYUMLU */
    .action-buttons .btn {
        display: inline-block !important;
        font-size: 0.65rem !important;
        padding: 0.4rem 0.5rem !important;
        margin: 0.15rem !important;
        border-radius: 5px !important;
        white-space: nowrap !important;
        min-width: 60px !important;
        max-width: calc(50% - 0.3rem) !important;
        flex: none !important;
        text-align: center !important;
        line-height: 1.2 !important;
        /* Butonların iki sırada durması için */
        width: calc(50% - 0.3rem) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Küçük ekranlar için daha da kompakt */
    @media (max-width: 360px) {
        .action-buttons .btn {
            font-size: 0.6rem !important;
            padding: 0.3rem 0.4rem !important;
            margin: 0.1rem !important;
            min-width: 55px !important;
            max-width: calc(50% - 0.2rem) !important;
            width: calc(50% - 0.2rem) !important;
        }
        
        .data-table td:before {
            min-width: 85px !important;
            max-width: 85px !important;
            width: 85px !important;
            font-size: 0.65rem !important;
            padding: 0.4rem 0.5rem !important;
        }
    }
    
    /* AKTİF BUTONLAR */
    .btn.active {
        transform: scale(1.05) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        font-weight: 700 !important;
        border: 2px solid rgba(255,255,255,0.8) !important;
    }
    
    /* DATA SECTION BAŞLIK */
    .data-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .header-controls {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .auto-refresh-status {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* TABLO BİLGİLERİ */
    .table-info {
        margin-top: 1rem !important;
        padding: 1rem !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
    }
    
    .info-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .table-tips {
        font-size: 0.75rem !important;
    }
    
    .table-tips ul {
        margin-left: 1rem !important;
    }
    
    .table-tips li {
        margin-bottom: 0.3rem !important;
        line-height: 1.3 !important;
    }
}

/* ========================================
   YAZDIRILABIÇLIR RAPOR SAYFASI STILLERI 
   ======================================== */

.nav-active {
    background-color: #007bff !important;
    color: white !important;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* Responsive table için */
@media (max-width: 768px) {
    .report-table {
        font-size: 10px;
    }
    
    .report-table th,
    .report-table td {
        padding: 4px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .columns-grid {
        grid-template-columns: 1fr;
        max-height: 150px;
    }
