/* assets/cari-liste.css - GÜNCELLENMİŞ VERSİYON */

/* ÖZET KARTLARI (YENİ) */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}
.summary-card:hover { transform: translateY(-3px); }

.sc-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.sc-content { text-align: right; }
.sc-title { font-size: 0.85rem; color: #64748b; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.sc-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }

/* Borç Kartı */
.card-debt .sc-icon { background: #fee2e2; color: #dc2626; }
.card-debt .sc-value { color: #dc2626; }

/* Alacak Kartı */
.card-receivable .sc-icon { background: #d1fae5; color: #059669; }
.card-receivable .sc-value { color: #059669; }

/* Tablo Genel */
.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
    border-top: 4px solid #3b82f6;
}

table { width: 100%; border-collapse: collapse; }
thead { background-color: #eff6ff; border-bottom: 2px solid #bfdbfe; }

th {
    padding: 15px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: middle;
}

tbody tr:hover { background-color: #f8fafc; }

/* Rozetler - GÜNCELLENDİ */
.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.badge-musteri { background: #dbeafe; color: #1e40af; }
.badge-tedarikci { background: #ffedd5; color: #9a3412; }
.badge-fason { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; } /* FASON STİLİ */

/* Bakiye Renkleri */
.bakiye-pozitif { color: #059669; font-weight: 800; } /* Alacaklı (Yeşil) */
.bakiye-negatif { color: #dc2626; font-weight: 800; } /* Borçlu (Kırmızı) */
.bakiye-sifir { color: #94a3b8; font-weight: 600; }

/* İşlem Butonları */
.action-btn { padding: 8px; border-radius: 8px; color: #64748b; transition: 0.2s; margin-right: 5px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.action-btn:hover { background: #f1f5f9; color: #3b82f6; }

/* FİLTRE ALANI */
.filter-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.filter-item { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 160px; }
.filter-item label { font-size: 0.85rem; font-weight: 600; color: #64748b; }
.filter-input {
    padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 0.9rem; color: #334155; width: 100%; box-sizing: border-box; background: #f8fafc;
}
.filter-input:focus { outline: none; border-color: #3b82f6; background: #fff; }

.btn-filter {
    background: #3b82f6; color: white; padding: 0 25px; border-radius: 8px;
    border: none; cursor: pointer; font-weight: 600; height: 40px; display: flex; align-items: center; gap: 8px;
    transition: background 0.2s;
}
.btn-filter:hover { background: #2563eb; }

.btn-reset {
    background: #ef4444; color: white; padding: 0 20px; border-radius: 8px;
    border: none; cursor: pointer; font-weight: 600; height: 40px; text-decoration: none; display: flex; align-items: center;
    transition: background 0.2s;
}
.btn-reset:hover { background: #dc2626; }