/* assets/cari-emanet-detay.css */

/* Profil Başlığı */
.profile-header {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-icon {
    font-size: 3.5rem;
    color: #3b82f6;
    background: #eff6ff;
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.profile-info h1 { margin: 0; color: #1e293b; font-size: 1.5rem; }
.profile-info p { margin: 5px 0 0 0; font-size: 0.95rem; }

/* Buton Grubu */
.profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-outline {
    border: 1px solid #cbd5e1;
    background: white;
    color: #475569;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center; gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-outline:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.btn-print:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

/* YENİ AKSİYON BUTONLARI */
.btn-action {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: all 0.2s;
    border: none;
}

.btn-giris {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}
.btn-giris:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-cikis {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
}
.btn-cikis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.btn-ekstre {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}
.btn-ekstre:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Bölüm Başlıkları */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
    display: flex; align-items: center; gap: 10px;
    padding-left: 5px;
    border-left: 4px solid #3b82f6;
}

/* --- STOK KARTLARI (KALAVİ TASARIM) --- */
.stock-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Kartlar daha geniş */
    gap: 25px;
    margin-bottom: 35px;
}

.stock-card {
    padding: 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.stock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stock-name {
    font-size: 1.1rem;
    font-weight: 800; /* Daha kalın */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.stock-amount {
    font-size: 2.8rem; /* Kalavi boyutta miktar */
    font-weight: 900;
    line-height: 1;
}

.stock-amount small {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.85;
    margin-left: 4px;
}

/* RENK TEMALARI */

/* SARI TEMA (Parlak ve Dikkat Çekici) */
.card-yellow {
    background: #fefce8;
    border-color: #fde047;
    color: #854d0e;
}
.card-yellow .stock-name { color: #a16207; }
.card-yellow .stock-amount { color: #d97706; }

/* KIRMIZI TEMA (Canlı ve Vurgulu) */
.card-red {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.card-red .stock-name { color: #b91c1c; }
.card-red .stock-amount { color: #dc2626; }

/* PASİF TEMA (Bakiyesi 0 Olanlar - Silik) */
.card-passive {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    opacity: 0.7;
    border-style: dashed;
}
.card-passive .stock-name { color: #64748b; }
.card-passive .stock-amount { color: #cbd5e1; font-size: 1.8rem; }

.no-stock-alert {
    width: 100%;
    background: #f8fafc;
    color: #64748b;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    text-align: center;
    font-style: italic;
    grid-column: 1 / -1; /* Tüm satırı kapla */
}

/* İstatistik Barı */
.stats-bar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    page-break-inside: avoid;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.stat-item.border-left {
    border-left: 2px solid #f1f5f9;
}

.stat-item .label { font-size: 0.75rem; font-weight: 700; color: #94a3b8; letter-spacing: 0.5px; }
.stat-item .value { font-size: 1.4rem; font-weight: 800; color: #1e293b; }

.text-green { color: #059669 !important; }
.text-orange { color: #ea580c !important; }
.text-red { color: #dc2626 !important; }

/* Tablo Tasarımı */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.detail-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.detail-table thead { background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
.detail-table th { padding: 15px; text-align: left; font-size: 0.85rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.detail-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; }

/* Satır Renklendirme */
.row-giris { background-color: #f0fdf4; } /* Açık Yeşil Zemin */
.row-giris:hover { background-color: #dcfce7; }

.row-cikis { background-color: #fff7ed; } /* Açık Turuncu Zemin */
.row-cikis:hover { background-color: #ffedd5; }

/* Badgeler */
.badge { padding: 6px 12px; border-radius: 20px; font-weight: 600; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 5px; }
.badge-giris { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-cikis { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }

/* Hücre İçi */
.date-format { font-weight: 600; display: flex; flex-direction: column; }
.vade-info { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.vade-passed { color: #dc2626; font-weight: 700; }

.main-amount { font-size: 1.1rem; font-weight: 800; }
.sub-amount { font-size: 0.8rem; color: #64748b; }

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-small { font-size: 0.85rem; }
.text-muted { color: #94a3b8; }
.no-data { text-align: center; padding: 40px; color: #94a3b8; font-style: italic; }

/* --- YAZDIRMA AYARLARI --- */
@media print {
    body { background: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    
    /* Gizlenecek Alanlar */
    .sidebar, .hamburger, .profile-actions, .filter-bar, header { 
        display: none !important; 
    }

    /* Düzen Ayarları */
    .main-content { margin-left: 0 !important; padding: 0 !important; width: 100% !important; }
    .container { padding: 0 !important; max-width: 100% !important; }
    
    /* Renkleri ve Gölgeleri Düzenle */
    .profile-header, .stock-card, .stats-bar, .table-container {
        box-shadow: none !important;
        border: 1px solid #e2e8f0;
    }
    
    .profile-header { padding: 10px 0; margin-bottom: 10px; border: none; }
    
    /* Tablo Yazdırma */
    .table-container { overflow: visible !important; }
    .detail-table { width: 100% !important; min-width: 100% !important; }
    .detail-table th, .detail-table td { padding: 8px 5px !important; font-size: 0.8rem !important; }
    
    /* Sayfa Başlıkları */
    .section-title { font-size: 1rem; margin-top: 20px; }
    
    /* Renkli alanları belirginleştir */
    .row-giris { background-color: #f0fdf4 !important; }
    .row-cikis { background-color: #fff7ed !important; }
}