/* assets/tedarikci-detay.css */

/* Başlık Alanı */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left { display: flex; align-items: center; gap: 15px; }

.profile-icon {
    width: 60px; height: 60px;
    background: #f0f9ff; color: #0284c7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

.page-title { margin: 0; color: #1e293b; font-size: 1.4rem; }
.cari-sub { color: #64748b; font-size: 0.95rem; margin-top: 5px; }

/* Butonlar */
.btn-outline {
    background: white; border: 1px solid #cbd5e1;
    color: #475569; padding: 8px 15px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 8px; transition: 0.2s;
    cursor: pointer;
}
.btn-outline:hover { background: #f8fafc; color: #1e293b; border-color: #94a3b8; }

/* İstatistik Kartları */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white; padding: 20px; border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-top: 4px solid transparent;
}

.stat-card .label { font-size: 0.8rem; font-weight: 700; color: #64748b; letter-spacing: 0.5px; }
.stat-card .value { font-size: 1.8rem; font-weight: 800; margin: 5px 0; color: #1e293b; }
.stat-card .sub-text { font-size: 0.85rem; color: #94a3b8; }

.text-red { color: #dc2626 !important; }
.text-green { color: #059669 !important; }

.highlight-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}
.highlight-card .label { color: #94a3b8; }
.highlight-card .value { color: #fff; }
.highlight-card .sub-text { color: #cbd5e1; }

/* Ürün Özet Kartları */
.section-title {
    font-size: 1.1rem; font-weight: 700; color: #334155; margin-bottom: 15px;
    padding-left: 10px; border-left: 4px solid #f59e0b;
}

.product-summary-grid {
    display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 30px;
}

.prod-card {
    background: #fffbeb; border: 1px solid #fcd34d;
    padding: 15px; border-radius: 10px;
    min-width: 200px; flex: 1;
}

.prod-name { font-weight: 700; color: #92400e; font-size: 0.95rem; margin-bottom: 5px; text-transform: uppercase; }
.prod-details { display: flex; justify-content: space-between; align-items: center; }
.prod-qty { font-weight: 800; font-size: 1.2rem; color: #b45309; }
.prod-qty small { font-size: 0.8rem; font-weight: 600; opacity: 0.8; }
.prod-total { font-weight: 600; color: #d97706; background: rgba(255,255,255,0.6); padding: 2px 6px; border-radius: 4px; font-size: 0.9rem; }

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 992px) { .content-grid { grid-template-columns: 1fr; } }

/* Tablo */
.ledger-box, .payment-box {
    background: white; border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
}

.box-header {
    padding: 15px 20px; border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
}
.box-header h3 { margin: 0; font-size: 1rem; color: #334155; }

.table-container { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { padding: 12px 15px; text-align: left; background: #f8fafc; color: #64748b; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
td { padding: 12px 15px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; font-size: 0.9rem; }

/* Etiketler */
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; display: inline-block; }
.badge-alis { background: #fee2e2; color: #991b1b; } /* Borçlanma */
.badge-odeme { background: #dcfce7; color: #166534; } /* Ödeme */
.qty-badge { background: #f1f5f9; color: #64748b; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; margin-left: 5px; font-weight: 600; }

.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-small { font-size: 0.8rem; }
.text-muted { color: #94a3b8; }
.no-data { text-align: center; padding: 30px; color: #94a3b8; font-style: italic; }

/* Ödeme Formu */
.warning-header { background: #fff7ed; border-bottom-color: #fed7aa; }
.warning-header h3 { color: #9a3412; }

.payment-form { padding: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 5px; }

/* YENİ: input-select eklendi */
.form-group input, .form-group textarea, .input-select {
    width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; font-family: 'Inter'; font-size: 0.95rem;
}
.input-big { font-size: 1.2rem; font-weight: 700; color: #1e293b; }

.btn-pay {
    width: 100%; background: #10b981; color: white; padding: 12px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-pay:hover { background: #059669; }

/* Baskı Ayarları */
@media print {
    .sidebar, header, .no-print, .btn-print { display: none !important; }
    .main-content { margin: 0 !important; width: 100% !important; }
    .content-grid { display: block; }
    .ledger-box { box-shadow: none; border: 1px solid #e2e8f0; }
    .stats-container, .product-summary-grid { box-shadow: none; }
}
/* assets/tedarikci-detay.css */

/* ... (Mevcut stiller aynen kalıyor) ... */

/* VADE UYARILARI */
.vade-alert {
    color: #dc2626;
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 5px;
    border-radius: 4px;
}

.vade-normal {
    color: #64748b; font-size: 0.8rem; margin-top: 4px; font-weight: 500;
}

/* Gecikmiş satır */
.row-gecikmis {
    background-color: #fef2f2 !important; border-left: 4px solid #ef4444;
}
.row-gecikmis td { color: #7f1d1d; }

/* Hızlı Ödeme Butonları */
.btn-hizli-ode {
    background: #10b981; color: white; border: none;
    padding: 5px 10px; border-radius: 6px; cursor: pointer;
    font-size: 0.8rem; font-weight: 600;
    transition: 0.2s; display: inline-flex; align-items: center; gap: 5px;
}
.btn-hizli-ode:hover { background: #059669; transform: scale(1.05); }

.btn-kapat {
    background: transparent; color: #9ca3af; border: 1px solid #e5e7eb;
    padding: 4px 8px; border-radius: 6px; cursor: pointer;
    font-size: 0.8rem; margin-left: 5px; text-decoration: none; display: inline-block;
}
.btn-kapat:hover { background: #f3f4f6; color: #6b7280; }

.badge-odendi {
    background: #ecfdf5; color: #047857; padding: 4px 8px; border-radius: 4px; 
    font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
}

/* Form Elemanları Güncelleme */
.input-select {
    width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: 'Inter'; font-size: 0.95rem;
}