/* Custom Styles */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Varsayılan görünürlük - Desktop */
.desktop-table {
    display: block;
}

.mobile-cards {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 20px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* Desktop tablo gizle, mobil kartları göster */
    .desktop-table {
        display: none;
    }
    
    .mobile-cards {
        display: block;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    /* Hızlı ödeme mobil */
    .quick-payment-form {
        flex-direction: column;
        width: 100%;
    }
    
    .quick-payment-input {
        width: 100%;
    }
    
    .btn-quick-pay {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-cards {
        display: none;
    }
    
    .desktop-table {
        display: block;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .page-header .btn,
    .actions,
    .filter-card {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .table-card {
        box-shadow: none;
        padding: 0;
    }
}

/* Hızlı Ödeme */
.quick-payment-form {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.quick-payment-input {
    width: 100px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color 0.3s;
}

.quick-payment-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.1);
}

.btn-quick-pay {
    padding: 6px 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-quick-pay .material-icons {
    font-size: 16px;
}

.btn-quick-pay:hover {
    background: #45a049;
}

.btn-quick-pay:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mobil Fatura Kartları - Basit Görünüm */
.fatura-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 12px;
}

.fatura-card-mobile {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s;
    border-left: 4px solid #e0e0e0;
}

.fatura-card-mobile:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.fatura-card-mobile.overdue {
    border-left-color: #F44336;
    background: #FFF5F5;
}

.fatura-card-mobile.warning {
    border-left-color: #FF9800;
    background: #FFFBF0;
}

.fatura-card-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.fatura-card-mobile-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.fatura-card-mobile-title .material-icons {
    color: #2196F3;
    font-size: 24px;
}

.fatura-no-mobile {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
}

.fatura-card-mobile-body {
    padding: 16px;
}

.fatura-info-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fatura-info-mobile .material-icons {
    color: #757575;
    font-size: 20px;
}

.fatura-info-mobile .info-text {
    font-size: 15px;
    color: #212121;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fatura-card-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    color: #2196F3;
    font-size: 14px;
    font-weight: 500;
}

.fatura-card-mobile-footer .material-icons {
    font-size: 18px;
    transition: transform 0.2s;
}

.fatura-card-link:hover .fatura-card-mobile-footer .material-icons {
    transform: translateX(4px);
}

/* Modern Mobil Fatura Kartları */
.fatura-card-mobile-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #e0e0e0;
    margin-bottom: 16px;
    position: relative;
}

.fatura-card-mobile-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.fatura-card-mobile-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}

.fatura-card-mobile-modern:hover::before {
    opacity: 1;
}

.fatura-card-mobile-modern.overdue {
    border-left-color: #F44336;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
}

.fatura-card-mobile-modern.overdue::before {
    background: linear-gradient(90deg, #F44336 0%, #E91E63 100%);
}

.fatura-card-mobile-modern.warning {
    border-left-color: #FF9800;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF3E0 100%);
}

.fatura-card-mobile-modern.warning::before {
    background: linear-gradient(90deg, #FF9800 0%, #FF6F00 100%);
}

.fatura-card-mobile-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.fatura-card-mobile-modern-title-section {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.fatura-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.fatura-icon-wrapper .material-icons {
    color: white;
    font-size: 24px;
}

.fatura-title-info {
    flex: 1;
    min-width: 0;
}

.fatura-no-mobile-modern {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.firma-adi-mobile {
    font-size: 14px;
    color: #757575;
    margin: 0;
    line-height: 1.4;
}

.badge-modern {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-small {
    padding: 4px 8px;
    font-size: 11px;
    margin-left: 8px;
}

.fatura-card-mobile-modern-body {
    padding: 20px;
}

.fatura-info-row-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    transition: all 0.2s;
}

.info-item-modern:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(4px);
}

.info-item-modern .material-icons {
    color: #667eea;
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-content-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label-modern {
    font-size: 12px;
    color: #757575;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value-modern {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.amount-primary {
    color: #667eea;
    font-size: 18px;
}

.amount-success {
    color: #4CAF50;
    font-size: 18px;
}

.amount-warning {
    color: #FF9800;
    font-size: 18px;
}

.fatura-card-mobile-modern-footer {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(0,0,0,0.06);
}

.btn-detail-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-detail-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-detail-modern .material-icons {
    font-size: 20px;
}

.btn-detail-modern .material-icons:last-child {
    margin-left: auto;
    transition: transform 0.3s;
}

.btn-detail-modern:hover .material-icons:last-child {
    transform: translateX(4px);
}

/* Desktop Tablo Modernleştirme - Material Design */
.data-table-modern {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.data-table-modern thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table-modern thead th {
    color: white;
    font-weight: 600;
    padding: 18px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    white-space: nowrap;
}

.data-table-modern thead th .material-icons {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.9;
}

.data-table-modern tbody tr.invoice-row-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: default;
    background: white;
}

.data-table-modern tbody tr.invoice-row-modern:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.data-table-modern tbody tr.overdue-row {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
    border-left: 5px solid #F44336;
}

.data-table-modern tbody tr.overdue-row:hover {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFF5F5 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.data-table-modern tbody tr.warning-row {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF3E0 100%);
    border-left: 5px solid #FF9800;
}

.data-table-modern tbody tr.warning-row:hover {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFFBF0 100%);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.data-table-modern tbody tr.normal-row {
    border-left: 5px solid #E0E0E0;
}

.data-table-modern tbody tr.normal-row:hover {
    border-left-color: #667eea;
}

.data-table-modern tbody td {
    padding: 14px 16px;
    color: #212121;
    font-size: 13px;
    border: none;
    vertical-align: middle;
}

/* Fatura No Hücresi */
.invoice-no-cell {
    min-width: 140px;
}

.invoice-no-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoice-icon {
    color: #667eea;
    font-size: 20px;
}

.invoice-no-cell strong {
    color: #667eea;
    font-weight: 700;
    font-size: 14px;
}

/* Firma Hücresi */
.firma-cell {
    min-width: 150px;
}

.firma-name {
    color: #424242;
    font-weight: 500;
}

/* Tutar Hücresi */
.amount-cell {
    min-width: 120px;
}

.amount-value {
    color: #212121;
    font-weight: 700;
    font-size: 15px;
    color: #667eea;
}

/* Son Ödeme Tarihi Hücresi */
.due-date-cell {
    min-width: 180px;
}

.due-date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.due-date-value {
    color: #424242;
    font-weight: 500;
    font-size: 13px;
}

/* Son Ödenen Tarih Hücresi */
.last-payment-date-cell {
    min-width: 180px;
}

.last-payment-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.last-payment-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4CAF50;
    font-weight: 500;
    font-size: 13px;
}

.last-payment-date .material-icons {
    flex-shrink: 0;
}

.last-payment-date span {
    white-space: nowrap;
}

.last-payment-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
}

.last-payment-amount .material-icons {
    flex-shrink: 0;
}

.last-payment-amount span {
    white-space: nowrap;
}

.success-amount {
    color: #4CAF50;
}

.no-payment {
    color: #9E9E9E;
    font-style: italic;
}

/* Durum Hücresi */
.status-cell {
    min-width: 120px;
}

.badge-modern-table {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-modern-table .material-icons {
    font-size: 14px;
}

.badge-modern-table.badge-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.badge-modern-table.badge-warning {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.badge-modern-table.badge-danger {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
}

/* Badge'ler */
.badge-danger-modern,
.badge-warning-modern,
.badge-success-modern {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.badge-danger-modern {
    background: #FFEBEE;
    color: #C62828;
}

.badge-warning-modern {
    background: #FFF3E0;
    color: #E65100;
}

.badge-success-modern {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Hızlı Ödeme Hücresi */
.quick-payment-cell-modern {
    min-width: 180px;
    cursor: default;
}

.quick-payment-form-modern {
    display: flex;
    gap: 6px;
    align-items: center;
}

.quick-payment-input-modern {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
    min-width: 100px;
}

.quick-payment-input-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-quick-pay-modern {
    padding: 8px 14px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-quick-pay-modern:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-quick-pay-modern:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
}

.paid-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.paid-badge-modern .material-icons {
    font-size: 16px;
}

/* İşlemler Hücresi */
.actions-cell-modern {
    min-width: 120px;
}

.action-buttons-modern {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.btn-action-modern {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-action-modern .material-icons {
    font-size: 18px;
}

.btn-view {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.btn-view:hover {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-edit {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #F57C00 0%, #FF9800 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #D32F2F 0%, #F44336 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

/* Responsive - Mobil için kompakt görünüm */
@media (max-width: 1200px) {
    .data-table-modern thead th {
        padding: 14px 12px;
        font-size: 11px;
    }
    
    .data-table-modern tbody td {
        padding: 12px;
        font-size: 12px;
    }
    
    .invoice-no-cell,
    .firma-cell,
    .amount-cell,
    .due-date-cell,
    .last-payment-date-cell {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .data-table-modern {
        font-size: 11px;
    }
    
    .data-table-modern thead th {
        padding: 10px 8px;
        font-size: 10px;
    }
    
    .data-table-modern thead th .material-icons {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .data-table-modern tbody td {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .invoice-no-wrapper,
    .due-date-wrapper {
        flex-direction: column;
        gap: 4px;
    }
    
    .quick-payment-form-modern {
        flex-direction: column;
        gap: 4px;
    }
    
    .quick-payment-input-modern {
        width: 100%;
        min-width: auto;
    }
    
    .btn-quick-pay-modern {
        width: 100%;
    }
    
    .action-buttons-modern {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-action-modern {
        width: 32px;
        height: 32px;
    }
}

/* İstatistik Kartları Modernleştirme */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, currentColor 0%, transparent 100%);
    opacity: 0.3;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stat-icon {
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Filtre Kartı Modernleştirme */
.filter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Tablo Kartı Modernleştirme */
.table-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Sayfalama Modernleştirme */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
}

.page-info {
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Mobil Kompakt Kart Görünümü */
.fatura-card-mobile-compact {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #e9ecef;
}

.fatura-card-mobile-compact.overdue {
    border-left: 5px solid #F44336;
    background: linear-gradient(135deg, #FFF5F5 0%, #ffffff 100%);
}

.fatura-card-mobile-compact.warning {
    border-left: 5px solid #FF9800;
    background: linear-gradient(135deg, #FFFBF0 0%, #ffffff 100%);
}

.fatura-card-mobile-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.fatura-card-mobile-compact-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.fatura-card-mobile-compact-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.fatura-icon-wrapper-compact {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fatura-icon-wrapper-compact .material-icons {
    color: white;
    font-size: 24px;
}

.fatura-title-info-compact {
    flex: 1;
    min-width: 0;
}

.fatura-no-mobile-compact {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.firma-adi-mobile-compact {
    font-size: 13px;
    color: #757575;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fatura-card-mobile-compact-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 12px;
}

.fatura-amount-compact {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
}

.fatura-due-date-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #757575;
    white-space: nowrap;
}

.fatura-due-date-compact .material-icons {
    font-size: 16px;
    color: #667eea;
}

.expand-icon {
    color: #667eea;
    font-size: 24px;
    transition: transform 0.3s;
    margin-top: 4px;
}

.fatura-card-mobile-compact-details {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.fatura-details-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.detail-label-compact {
    font-size: 13px;
    font-weight: 600;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value-compact {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
}

.detail-actions-compact {
    margin-top: 8px;
}

.btn-detail-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    width: 100%;
}

.btn-detail-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-detail-compact .material-icons {
    font-size: 20px;
}

/* Tablo Responsive - Sağa sola kaydırma olmadan */
.data-table-modern {
    table-layout: auto;
    width: 100%;
}

@media (max-width: 1400px) {
    .data-table-modern thead th {
        padding: 14px 10px;
        font-size: 11px;
    }
    
    .data-table-modern tbody td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .invoice-no-cell {
        min-width: 120px;
    }
    
    .firma-cell {
        min-width: 130px;
    }
    
    .amount-cell {
        min-width: 100px;
    }
    
    .due-date-cell {
        min-width: 120px;
    }
    
    .last-payment-date-cell {
        min-width: 150px;
    }
    
    .status-cell {
        min-width: 100px;
    }
    
    .quick-payment-cell-modern {
        min-width: 150px;
    }
    
    .actions-cell-modern {
        min-width: 100px;
    }
}

@media (max-width: 1200px) {
    .data-table-modern thead th {
        padding: 12px 8px;
        font-size: 10px;
    }
    
    .data-table-modern thead th .material-icons {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .data-table-modern tbody td {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .invoice-no-cell,
    .firma-cell,
    .amount-cell,
    .due-date-cell,
    .last-payment-date-cell,
    .status-cell,
    .quick-payment-cell-modern,
    .actions-cell-modern {
        min-width: auto;
    }
    
    .invoice-no-wrapper strong {
        font-size: 12px;
    }
    
    .amount-value {
        font-size: 13px;
    }
    
    .due-date-value {
        font-size: 11px;
    }
    
    .badge-modern-table {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .quick-payment-input-modern {
        min-width: 80px;
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .btn-quick-pay-modern {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .btn-action-modern {
        width: 32px;
        height: 32px;
    }
    
    .btn-action-modern .material-icons {
        font-size: 16px;
    }
}


