/* assets/gun-sonu-kasa.css */

.report-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
    background: #fff; padding: 20px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.title-area h1 { margin: 0; color: #1e293b; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.title-area p { margin: 5px 0 0 0; color: #64748b; font-size: 0.95rem; }

.action-area { display: flex; gap: 10px; }
.btn-back {
    text-decoration: none; color: #475569; background: #f1f5f9; padding: 12px 20px; border-radius: 10px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-back:hover { background: #e2e8f0; color: #1e293b; }

.btn-print {
    background: #3b82f6; color: white; border: none; padding: 12px 25px; border-radius: 10px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}
.btn-print:hover { background: #2563eb; transform: translateY(-2px); }

/* Tarih Gezgini */
.date-navigator {
    display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 35px;
    background: white; padding: 20px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.nav-btn {
    text-decoration: none; color: #3b82f6; font-weight: 700; padding: 10px 20px; border-radius: 8px; background: #eff6ff; transition: 0.2s; font-size: 0.95rem;
}
.nav-btn:hover { background: #dbeafe; }
.date-form input {
    padding: 12px 20px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1.1rem; color: #1e293b; font-weight: 700; font-family: 'Inter'; outline: none; transition: 0.2s; text-align: center;
}
.date-form input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Rapor Kartı */
.report-card {
    background: white; border-radius: 0; padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 1000px; margin: 0 auto;
    border: 1px solid #e2e8f0;
    position: relative;
}
/* Kağıt efekti */
.report-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.report-title-print {
    text-align: center; margin-bottom: 40px; border-bottom: 2px solid #f1f5f9; padding-bottom: 20px;
}
.report-title-print h3 { margin: 0 0 5px 0; font-size: 2rem; color: #0f172a; letter-spacing: 1px; text-transform: uppercase; font-weight: 900; }
.report-title-print span { font-size: 1.2rem; color: #64748b; font-weight: 500; }

/* ÖZET TABLOSU (GRID YAPISI - 5 Kolon) */
.summary-grid {
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; /* Etiket - Nakit - Banka - POS - Toplam */
    gap: 1px; background: #cbd5e1; border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; margin-bottom: 50px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.sum-header { 
    background: #f8fafc; padding: 15px; font-weight: 800; color: #64748b; text-align: right; font-size: 0.85rem; letter-spacing: 0.5px;
}
.sum-label { 
    background: #fff; padding: 18px 20px; font-weight: 800; color: #334155; font-size: 0.95rem; display: flex; align-items: center; gap: 8px;
}
.sum-val { 
    background: #fff; padding: 18px 20px; text-align: right; color: #475569; font-family: 'Inter', monospace; font-size: 1.1rem; font-weight: 600;
}
.sum-val.total { 
    background: #f1f5f9; font-weight: 900; color: #0f172a; font-size: 1.2rem; border-left: 1px solid #e2e8f0;
}

/* Renkli Satırlar */
.giris .sum-val { background: #f0fdf4; color: #166534; }
.giris .sum-label { background: #f0fdf4; color: #166534; }
.giris .total { background: #dcfce7; color: #14532d; }

.cikis .sum-val { background: #fef2f2; color: #991b1b; }
.cikis .sum-label { background: #fef2f2; color: #991b1b; }
.cikis .total { background: #fee2e2; color: #7f1d1d; }

/* Kapanış Satırı (Vurgulu) */
.close-label { background: #1e293b; color: #94a3b8; font-size: 1rem; border-top: 2px solid #fff; }
.close-val { background: #334155; color: #e2e8f0; font-weight: 700; font-size: 1.2rem; border-top: 2px solid #475569; }
.close-total { 
    background: #0f172a; color: #4ade80; font-weight: 900; font-size: 1.6rem; border-top: 2px solid #1e293b;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.text-green { color: #166534 !important; }
.text-red { color: #991b1b !important; }

/* Detay Tablosu */
.detail-list h4 { margin: 0 0 20px 0; color: #334155; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; font-size: 1.3rem; }
.detail-list table { width: 100%; border-collapse: separate; border-spacing: 0; }

.detail-list th { 
    text-align: left; padding: 15px; background: #f1f5f9; color: #64748b; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}
.detail-list td { 
    padding: 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 0.95rem; color: #334155; transition: background 0.2s;
}
.detail-list tr:hover td { background: #f8fafc; }
.detail-list tr:last-child td { border-bottom: none; }

/* Rozetler */
.badge { padding: 5px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; }
.b-in { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.b-out { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.badge-nakit { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.badge-banka { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-pos { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }
.badge-kk { background: #ffe4e6; color: #be123c; border: 1px solid #fda4af; }

.desc { font-size: 0.9rem; color: #475569; margin-top: 4px; font-weight: 500; }
.text-right { text-align: right; }
.font-bold { font-weight: 800; }
.no-data { text-align: center; padding: 40px; color: #94a3b8; font-style: italic; background: #f8fafc; border-radius: 8px; }

/* Yazdırma Alt Bilgi */
.print-footer { margin-top: 60px; display: none; }
.print-footer p { font-size: 0.8rem; color: #94a3b8; font-style: italic; margin-bottom: 40px; }
.signatures { display: flex; justify-content: space-between; padding: 0 50px; }
.signatures div { width: 200px; border-top: 2px solid #000; text-align: center; padding-top: 10px; font-weight: 700; color: #000; }

@media print {
    body { background: white; }
    .no-print, .sidebar, header { display: none !important; }
    .main-content { margin: 0 !important; width: 100% !important; padding: 0 !important; }
    .container { padding: 0 !important; max-width: 100% !important; }
    .report-card { box-shadow: none; border: none; padding: 0; max-width: 100%; margin: 0; }
    .print-footer { display: block; }
    
    .sum-label, .sum-val, .sum-header { border: 1px solid #000 !important; color: #000 !important; background: none !important; }
    .close-label, .close-val { background-color: #eee !important; color: #000 !important; border: 1px solid #000 !important; font-weight: bold !important; -webkit-print-color-adjust: exact; }
    .close-total { background-color: #ccc !important; color: #000 !important; border: 2px solid #000 !important; -webkit-print-color-adjust: exact; }
    
    .detail-list th { border-bottom: 1px solid #000 !important; color: #000 !important; }
    .detail-list td { border-bottom: 1px dashed #999 !important; }
}