/* Assets/emanet-satis-liste.css - Modern ve Gösterişli Tasarım */

:root {
    --primary: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: #f1f5f9;
}

/* --- MODERN BAŞLIK ALANI --- */
.page-header-flex {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: white; 
    padding: 30px; 
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    margin-bottom: 30px;
    border-left: 6px solid var(--primary);
    transition: transform 0.2s ease;
}

.page-title { margin: 0; color: var(--dark); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.page-subtitle { color: #64748b; margin: 5px 0 0 0; font-size: 0.95rem; }

.header-actions { display: flex; gap: 12px; }

/* Butonlar */
.btn-print {
    background: #fff; color: #475569; border: 1px solid #cbd5e1; 
    padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; 
    display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-print:hover { background: #f1f5f9; color: #1e293b; transform: translateY(-1px); }

.btn-new {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white; padding: 12px 24px; border-radius: 10px; 
    text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2); transition: all 0.2s;
}
.btn-new:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3); }

.btn-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3); }


/* --- ÖZET KARTLARI --- */
.alert-section {
    background: transparent; padding: 0; margin-bottom: 35px; border: none;
}
.section-title {
    font-size: 1.1rem; font-weight: 800; color: #334155; margin-bottom: 20px; 
    display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.section-title i { color: var(--primary); }

.summary-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}

.sum-card {
    background: white; padding: 25px; border-radius: 16px; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); border: 1px solid white;
    transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden;
}
.sum-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1); }

/* Kart Renkleri */
.sum-card-danger { border-top: 5px solid var(--danger); }
.sum-card-danger::before { 
    content:''; position: absolute; top:0; right:0; width:80px; height:80px; 
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%); border-radius: 0 0 0 100%; 
}
.sum-card-success { border-top: 5px solid var(--success); }
.sum-card-success::before { 
    content:''; position: absolute; top:0; right:0; width:80px; height:80px; 
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%); border-radius: 0 0 0 100%; 
}

.sc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.sc-label { font-weight: 800; color: var(--dark); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.sc-status { font-size: 0.75rem; font-weight: 800; background: #f1f5f9; padding: 4px 8px; border-radius: 6px; color: #64748b; letter-spacing: 0.5px; }

.sc-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; color: #64748b; }
.total-row { margin-top: 15px; padding-top: 15px; border-top: 2px dashed #e2e8f0; color: var(--dark); font-weight: 800; font-size: 1.2rem; align-items: center; }

.empty-summary { 
    background: #ecfdf5; color: #065f46; padding: 20px; border-radius: 12px; 
    font-weight: 600; text-align: center; border: 1px dashed #34d399; 
}

/* --- TABLO TASARIMI --- */
.table-box {
    background: white; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); overflow: hidden; border: 1px solid var(--border-color);
}
.box-header { padding: 20px 25px; border-bottom: 1px solid #f1f5f9; background: #fafafa; }
.box-header h3 { margin: 0; font-size: 1.1rem; color: #334155; font-weight: 700; }

.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
th { 
    padding: 15px 20px; text-align: left; background: #f8fafc; color: #64748b; 
    font-size: 0.8rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; border-bottom: 2px solid #e2e8f0; 
}
td { padding: 15px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; font-size: 0.95rem; transition: background 0.2s; }

tr:last-child td { border-bottom: none; }

/* Satır Renklendirme ve Hover */
.row-satis:hover td { background: #fff7ed; }
.row-alis:hover td { background: #f0fdf4; }

/* Rozetler */
.badge { padding: 6px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.badge-out { background: #fff7ed; color: #ea580c; border: 1px solid #fdba74; }
.badge-in { background: #ecfdf5; color: #059669; border: 1px solid #86efac; }

.product-badge { 
    font-weight: 700; color: #1e293b; 
}
.product-badge.main-stok {
    font-size: 1.05rem; color: #4338ca; /* Hammadde daha belirgin olsun */
}

.date-badge { background: #f8fafc; color: #475569; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; gap: 6px; }

.cari-name { font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.text-right { text-align: right; }
.font-bold { font-weight: 800; }
.text-orange { color: #ea580c; }
.text-green { color: #166534; }
.text-small { font-size: 0.85rem; }
.text-muted { color: #94a3b8; }
.evrak { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; margin-left: 8px; font-size: 0.75rem; border: 1px solid #cbd5e1; color: #64748b; font-weight: 600; }
.no-data { text-align: center; padding: 50px; color: #94a3b8; font-style: italic; background: #f8fafc; }

@media print {
    .sidebar, header, .header-actions { display: none !important; }
    .main-content { margin: 0 !important; width: 100% !important; padding: 0 !important; }
    .page-header-flex, .table-box, .sum-card { box-shadow: none; border: 1px solid #000; }
    .sum-card-danger, .sum-card-success { border-top-width: 1px; border-color: #000; }
}