/* ==========================================
   GENEL AYARLAR
   ========================================== */

/* Beyaz tema için genel renkler */
h2, h5 {
    color: #2c3e50;
}

/* Sayfa başlığı - minimal (sonuç öne çıksın) */
.surectakip-page-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: #6c757d;
}

/* Süreç Takip Sonuçları - ön planda, vurgulu */
.surectakip-sonuc-bolumu {
    margin-top: 1.25rem;
    padding: 1rem 0;
    border-top: 2px solid #dee2e6;
}

.surectakip-sonuc-baslik {
    font-size: 1.5rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

/* ==========================================
   MODERN FİLTRE KARTI - Kompakt (sonuç tablosu ön planda)
   ========================================== */

.modern-filter-card {
    background: #fafbfc;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.filter-header {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-title i {
    color: white;
    font-size: 0.8rem;
}

.filter-title h5 {
    margin: 0;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15px;
}

.filter-body {
    padding: 0.5rem 0.75rem;
    background-color: white;
}

.filter-section {
    margin-bottom: 0.35rem;
}

.filter-section .row.g-3 {
    --bs-gutter-y: 0.25rem;
    --bs-gutter-x: 0.35rem;
}

.filter-section .row.g-3 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #f1f3f5;
}

.section-label i {
    color: #6c757d;
    font-size: 0.7rem;
}

.section-label span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.filter-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 0.35rem 0;
}

/* ==========================================
   MODERN INPUT GROUP - Kompakt
   ========================================== */

.modern-filter-card .modern-input-group {
    margin-bottom: 0.25rem;
}

.modern-filter-card .modern-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.15rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #495057;
}

.modern-filter-card .modern-label i {
    color: #6c757d;
    font-size: 0.65rem;
}

.modern-filter-card .modern-input {
    width: 100%;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: #fafbfc;
}

.modern-filter-card .modern-input:focus {
    outline: none;
    border-color: #6c757d;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
}

.modern-filter-card .modern-input:hover {
    border-color: #dee2e6;
    background-color: white;
}

.modern-filter-card .input-hint {
    display: block;
    margin-top: 0.05rem;
    font-size: 0.6rem;
    color: #6c757d;
    font-style: italic;
}

/* Sayfa genelinde label/input (diğer sayfalar için) */
.modern-input-group {
    margin-bottom: 1rem;
}

.modern-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

.modern-label i {
    color: #6c757d;
    font-size: 0.85rem;
}

.modern-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.modern-input:focus {
    outline: none;
    border-color: #6c757d;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.modern-input:hover {
    border-color: #dee2e6;
    background-color: white;
}

.input-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* ==========================================
   MODERN RADIO GROUP - Kompakt (filtre kartı içinde)
   ========================================== */

.modern-filter-card .modern-radio-group {
    margin-bottom: 0.25rem;
}

.modern-filter-card .radio-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.modern-filter-card .radio-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.4rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.modern-filter-card .radio-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.modern-radio-group {
    margin-bottom: 1rem;
}

.radio-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.radio-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.radio-btn input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-btn input[type="radio"]:checked ~ .radio-custom {
    border-color: #6c757d;
    background-color: #6c757d;
}

.radio-btn input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.radio-text {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

.modern-filter-card .radio-text {
    font-size: 0.75rem;
}

.radio-btn input[type="radio"]:checked ~ .radio-text {
    color: #212529;
    font-weight: 600;
}

/* ==========================================
   MODERN BUTTONS - Filtre kartı kompakt
   ========================================== */

.modern-filter-card .filter-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.modern-filter-card .modern-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.modern-btn-primary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.modern-btn-primary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4349 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    color: white;
}

.modern-btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

.modern-btn-secondary:hover {
    background-color: #dee2e6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    color: #495057;
}

.modern-btn i {
    font-size: 0.9rem;
}

/* ==========================================
   İSTATİSTİK PANELİ - Kompakt (sonuç ön planda)
   ========================================== */

.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 3px solid #6c757d;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.stat-total {
    border-left-color: #6c757d;
}

.stat-ready {
    border-left-color: #28a745;
}

.stat-image {
    border-left-color: #fd7e14;
}

.stat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.stat-total .stat-icon {
    background-color: #e9ecef;
    color: #495057;
}

.stat-ready .stat-icon {
    background-color: #d4f4dd;
    color: #28a745;
}

.stat-image .stat-icon {
    background-color: #ffe8cc;
    color: #fd7e14;
}

.stat-icon i {
    font-size: 1.1rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

/* ==========================================
   RENK LEGEND PANELİ
   ========================================== */

.color-legend-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.legend-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e9ecef;
}

.legend-title i {
    color: #6c757d;
    font-size: 0.8rem;
}

.legend-title span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.legend-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-green {
    background-color: #d4f4dd;
    border-color: #b8eccc;
}

.legend-orange {
    background-color: #ffe8cc;
    border-color: #ffd9a6;
}

.legend-white {
    background-color: white;
    border-color: #dee2e6;
}

.legend-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
}

/* ==========================================
   MODERN TABLE WRAPPER - Tek tablo, başlık veriyle birlikte yatay kayar
   ========================================== */

.surectakip-sonuc-bolumu .modern-table-wrapper {
    margin: 0 auto 0;
    border: 2px solid #adb5bd;
    border-radius: 8px;
    overflow: auto;
    max-height: 650px;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

.modern-table-wrapper {
    margin: 0 auto 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: auto;
    max-height: 650px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

.modern-table-wrapper::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.modern-table-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.modern-table-wrapper::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

.modern-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

/* Tek tablo: thead sadece dikey sticky, yatayda veriyle birlikte kayar */
.modern-table-wrapper .surectakip-table {
    margin: 0 !important;
    width: 100%;
    min-width: 1180px;
}

.modern-table-wrapper .surectakip-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 0.72rem;
    letter-spacing: 0.1px;
    padding: 6px 4px !important;
    border: 1px solid #dee2e6 !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.modern-table-wrapper .surectakip-table tbody tr {
    transition: all 0.2s ease;
}

.modern-table-wrapper .surectakip-table tbody tr:hover {
    background-color: #f0f4ff !important;
}

/* ==========================================
   TABLO STİLLERİ
   ========================================== */

.table {
    margin-bottom: 0;
    width: 100%;
}

.table th {
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.75rem 0.5rem;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.table td {
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

/* KOLON GENİŞLİKLERİ - veri kolonları dar */
.modern-table-wrapper .surectakip-table thead th,
.modern-table-wrapper .surectakip-table tbody td {
    min-width: 58px;
    padding: 6px 4px;
    font-size: 0.72rem;
}

.modern-table-wrapper .surectakip-table thead th:first-child,
.modern-table-wrapper .surectakip-table tbody td:first-child {
    min-width: 72px;
    max-width: 72px;
    width: 72px;
    font-weight: 600;
}

.modern-table-wrapper .surectakip-table thead th:nth-child(2),
.modern-table-wrapper .surectakip-table tbody td:nth-child(2) {
    min-width: 95px;
    max-width: 95px;
    width: 95px;
    font-weight: 600;
}

/* Sipariş / Teslim Tarihi */
.modern-table-wrapper .surectakip-table thead th:nth-child(3),
.modern-table-wrapper .surectakip-table tbody td:nth-child(3),
.modern-table-wrapper .surectakip-table thead th:nth-child(4),
.modern-table-wrapper .surectakip-table tbody td:nth-child(4) {
    min-width: 72px;
    max-width: 72px;
}

/* Atanan Ressam, Resim Durumu, SDL Durumu */
.modern-table-wrapper .surectakip-table thead th:nth-child(5),
.modern-table-wrapper .surectakip-table tbody td:nth-child(5),
.modern-table-wrapper .surectakip-table thead th:nth-child(6),
.modern-table-wrapper .surectakip-table tbody td:nth-child(6),
.modern-table-wrapper .surectakip-table thead th:nth-child(7),
.modern-table-wrapper .surectakip-table tbody td:nth-child(7) {
    min-width: 68px;
    max-width: 80px;
}

/* Sevk %, Boya %, İmalat % */
.modern-table-wrapper .surectakip-table thead th:nth-child(8),
.modern-table-wrapper .surectakip-table tbody td:nth-child(8),
.modern-table-wrapper .surectakip-table thead th:nth-child(9),
.modern-table-wrapper .surectakip-table tbody td:nth-child(9),
.modern-table-wrapper .surectakip-table thead th:nth-child(10),
.modern-table-wrapper .surectakip-table tbody td:nth-child(10) {
    min-width: 50px;
    max-width: 52px;
}

/* Termine Kalan Süre */
.modern-table-wrapper .surectakip-table thead th:nth-child(11),
.modern-table-wrapper .surectakip-table tbody td:nth-child(11) {
    min-width: 62px;
    max-width: 68px;
}

/* Özel Kod */
.modern-table-wrapper .surectakip-table thead th:nth-child(12),
.modern-table-wrapper .surectakip-table tbody td:nth-child(12) {
    min-width: 65px;
    max-width: 82px;
}

/* Satış Temsilcisi - veri kolonu geniş */
.modern-table-wrapper .surectakip-table thead th:nth-child(13),
.modern-table-wrapper .surectakip-table tbody td:nth-child(13) {
    min-width: 110px;
    max-width: 140px;
}

/* Tedarik kolonları (Profil, Sac, Boya, Lazer, Resim Çıkarıldı, Sevke Hazır) */
.modern-table-wrapper .surectakip-table thead th:nth-child(14),
.modern-table-wrapper .surectakip-table thead th:nth-child(15),
.modern-table-wrapper .surectakip-table thead th:nth-child(16),
.modern-table-wrapper .surectakip-table thead th:nth-child(17),
.modern-table-wrapper .surectakip-table thead th:nth-child(18),
.modern-table-wrapper .surectakip-table thead th:nth-child(19),
.modern-table-wrapper .surectakip-table tbody td:nth-child(14),
.modern-table-wrapper .surectakip-table tbody td:nth-child(15),
.modern-table-wrapper .surectakip-table tbody td:nth-child(16),
.modern-table-wrapper .surectakip-table tbody td:nth-child(17),
.modern-table-wrapper .surectakip-table tbody td:nth-child(18),
.modern-table-wrapper .surectakip-table tbody td:nth-child(19) {
    min-width: 62px;
    max-width: 72px;
}

.modern-table-wrapper .surectakip-table thead th:last-child,
.modern-table-wrapper .surectakip-table tbody td:last-child {
    min-width: 58px;
    max-width: 70px;
}

/* İlk iki sütun (Teklif Bim No, Firma Adı) yatay kaydırmada sabit kalsın */
.modern-table-wrapper .surectakip-table thead th:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    background: #f8f9fa !important;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 4px rgba(0,0,0,0.06);
}

.modern-table-wrapper .surectakip-table thead th:nth-child(2) {
    position: sticky;
    left: 72px;
    top: 0;
    z-index: 20;
    background: #f8f9fa !important;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 4px rgba(0,0,0,0.06);
}

.modern-table-wrapper .surectakip-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: white;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}

.modern-table-wrapper .surectakip-table tbody td:nth-child(2) {
    position: sticky;
    left: 72px;
    z-index: 10;
    background: white;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}

/* Renkli satırlarda ilk iki sütun arka planı */
.modern-table-wrapper .surectakip-table tbody tr.resim-cikarildi td:first-child,
.modern-table-wrapper .surectakip-table tbody tr.resim-cikarildi td:nth-child(2) {
    background-color: #ffe8cc !important;
}

.modern-table-wrapper .surectakip-table tbody tr.sevke-hazir td:first-child,
.modern-table-wrapper .surectakip-table tbody tr.sevke-hazir td:nth-child(2) {
    background-color: #d4f4dd !important;
}

/* Tablo içi form elemanları - dar kolonlar için küçült */
.modern-table-wrapper .surectakip-table td .form-check-inline {
    margin-right: 0.2rem;
}

.modern-table-wrapper .surectakip-table td .form-check-label {
    font-size: 0.65rem;
}

.modern-table-wrapper .surectakip-table td .form-control-sm,
.modern-table-wrapper .surectakip-table td input[type="date"] {
    font-size: 0.65rem;
    padding: 0.15rem 0.25rem;
    min-height: 1.4rem;
    width: 100%;
    max-width: 4.2rem;
}

.modern-table-wrapper .surectakip-table td .form-check-input {
    width: 0.7rem;
    height: 0.7rem;
}

.modern-table-wrapper .surectakip-table td .form-switch .form-check-input {
    width: 2rem;
    height: 1rem;
}

.modern-table-wrapper .surectakip-table td .d-flex.flex-column {
    gap: 0.15rem;
}

.modern-table-wrapper .surectakip-table td .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
}

.modern-table-wrapper .surectakip-table td .badge {
    font-size: 0.6rem;
    padding: 0.2em 0.4em;
}

/* Kolon genişlikleri - ekrana sığacak şekilde ayarlandı */
.col-bimno { 
    min-width: 80px; 
    max-width: 80px; 
    width: 80px;
}
.col-teklif { min-width: 100px; }
.col-tarih { min-width: 100px; }
.col-durum { min-width: 100px; }
.col-yuzde { min-width: 70px; }
.col-tedarik { min-width: 120px; }
.col-islem { min-width: 100px; }
.col-firma { 
    min-width: 150px; 
    max-width: 150px; 
    width: 150px;
}

/* ==========================================
   RENKLI SATIRLAR (ÖNEMLİ!)
   ========================================== */

/* Resim çıkarıldı satırları - TURUNCU */
tr.resim-cikarildi,
.body-table tbody tr.resim-cikarildi,
table tbody tr.resim-cikarildi {
    background-color: #ffe8cc !important;
}

tr.resim-cikarildi:hover,
.body-table tbody tr.resim-cikarildi:hover,
table tbody tr.resim-cikarildi:hover {
    background-color: #ffd9a6 !important;
}

/* Sevke hazır satırları - YEŞİL */
tr.sevke-hazir,
.body-table tbody tr.sevke-hazir,
table tbody tr.sevke-hazir {
    background-color: #d4f4dd !important;
}

tr.sevke-hazir:hover,
.body-table tbody tr.sevke-hazir:hover,
table tbody tr.sevke-hazir:hover {
    background-color: #b8eccc !important;
}

/* Striped sınıfını override et */
.table-striped tbody tr.resim-cikarildi:nth-of-type(odd),
.table-striped tbody tr.resim-cikarildi:nth-of-type(even) {
    background-color: #ffe8cc !important;
}

.table-striped tbody tr.sevke-hazir:nth-of-type(odd),
.table-striped tbody tr.sevke-hazir:nth-of-type(even) {
    background-color: #d4f4dd !important;
}

/* ==========================================
   BADGE STİLLERİ
   ========================================== */

.badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Beyaz tema için badge stilleri */
.badge.bg-success {
    background-color: #e9ecef !important;
    color: #495057 !important;
}
.badge.bg-warning {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}
.badge.bg-danger {
    background-color: #dee2e6 !important;
    color: #495057 !important;
}

/* ==========================================
   FORM STİLLERİ
   ========================================== */

.form-check-inline {
    margin-right: 0.5rem;
}

.form-control-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.form-control-sm:focus {
    border-color: #adb5bd;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.15);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-primary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-primary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Tarih alanları için özel stil */
input[type="date"] {
    background-color: #fff;
    cursor: pointer;
}

input[type="date"]:hover {
    background-color: #f8f9fa;
}

/* Toggle Switch Stilleri */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    background-color: #dee2e6;
    border: none;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: #6c757d;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.form-switch label {
    user-select: none;
}

/* ==========================================
   SIRALAMA STİLLERİ
   ========================================== */

.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.sortable:hover {
    background-color: #dee2e6 !important;
}

.sortable i {
    margin-left: 5px;
    font-size: 0.8em;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sortable:hover i {
    opacity: 1;
}

/* Sıralama durumları */
.sortable.sort-asc i {
    opacity: 1;
    transform: rotate(180deg);
}

.sortable.sort-desc i {
    opacity: 1;
    transform: rotate(0deg);
}

/* ==========================================
   ALERT STİLLERİ
   ========================================== */

.alert-info {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

/* ==========================================
   SAYFALAMA STİLLERİ
   ========================================== */

.pagination {
    margin: 0;
}

.page-link {
    color: #6c757d;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    text-decoration: none;
}

.page-link:hover {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #fff;
    border-color: #dee2e6;
}

/* ==========================================
   CARD STİLLERİ
   ========================================== */

.card {
    background-color: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.form-label {
    color: #495057;
    font-weight: 500;
}

.btn-secondary {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #dee2e6;
    border-color: #d3d9df;
    color: #495057;
}

/* ==========================================
   SCROLL INDICATOR & ANIMATIONS
   ========================================== */

.scroll-indicator {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
    width: 30px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   STICKY HEADER & COLUMNS
   ========================================== */

.sticky-header {
    background-color: #e9ecef !important;
    position: relative;
    z-index: 100;
}

.sticky-header th {
    background-color: #e9ecef !important;
    color: #495057 !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: bold !important;
    padding: 12px 8px !important;
    white-space: nowrap !important;
    text-align: center;
    vertical-align: middle;
}

.sticky-header.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    animation: slideDown 0.3s ease-out;
}

/* İlk iki sütun için yatay sticky */
.table thead th:first-child,
.table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: #e9ecef;
    border-right: 2px solid #dee2e6;
    min-width: 100px;
    max-width: 100px;
    box-shadow: 2px 0 4px rgba(0,0,0,0.08);
}

.table tbody td:first-child {
    background-color: white;
}

.table thead th:nth-child(2),
.table tbody td:nth-child(2) {
    position: sticky;
    left: 100px;
    z-index: 10;
    background-color: #e9ecef;
    border-right: 2px solid #dee2e6;
    min-width: 150px;
    max-width: 150px;
    box-shadow: 2px 0 4px rgba(0,0,0,0.08);
}

.table tbody td:nth-child(2) {
    background-color: white;
}

/* Renkli satırlar için sticky kolon arka planları */
tr.resim-cikarildi td:first-child,
tr.resim-cikarildi td:nth-child(2) {
    background-color: #ffe8cc !important;
}

tr.sevke-hazir td:first-child,
tr.sevke-hazir td:nth-child(2) {
    background-color: #d4f4dd !important;
}

/* ==========================================
   TABLE RESPONSIVE OVERRIDES
   ========================================== */

.table-responsive {
    position: relative;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9rem;
    width: 100%;
    margin: 0 auto;
}

/* Webkit tabanlı tarayıcılar için scrollbar stilleri */
.table-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Tablo minimum genişlik */
.table {
    position: relative;
    min-width: 1800px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .filter-body {
        padding: 1.25rem;
    }
    
    .radio-buttons {
        flex-direction: column;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .modern-btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-panel {
        grid-template-columns: 1fr;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .table th,
    .table td {
        font-size: 0.75rem;
        padding: 0.4rem 0.3rem;
    }
}
