/* assets/satis-listesi.css */

.page-header-flex {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
    background: white; padding: 25px; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); border-left: 5px solid #6366f1;
}

.page-title { margin: 0; font-size: 1.6rem; color: #1e293b; }
.page-subtitle { margin: 5px 0 0 0; color: #64748b; font-size: 0.95rem; }

.header-actions { display: flex; gap: 10px; }
.btn-print {
    background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.btn-new {
    background: #6366f1; color: white; padding: 10px 25px; border-radius: 8px; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-new:hover { background: #4f46e5; transform: translateY(-2px); }

/* Filtre Alanı */
.filter-box {
    background: white; padding: 20px; border-radius: 12px; margin-bottom: 20px;
    display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.filter-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.grow-2 { flex: 2; min-width: 250px; } 

.filter-group label { font-size: 0.8rem; font-weight: 700; color: #64748b; }
.filter-group input {
    padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; width: 100%; box-sizing: border-box;
}

.btn-filter {
    background: #1e293b; color: white; padding: 10px 25px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; height: 40px; display: flex; align-items: center; gap: 8px;
}
.btn-reset {
    color: #ef4444; text-decoration: underline; font-size: 0.9rem; padding: 10px; cursor: pointer;
}

/* Özet Bar */
.summary-bar {
    display: flex; gap: 20px; margin-bottom: 20px;
}
.sum-item {
    background: white; padding: 15px 25px; border-radius: 10px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; min-width: 150px;
}
.sum-item.highlight { border-color: #6366f1; background: #eef2ff; }
.sum-item .lbl { font-size: 0.75rem; font-weight: 800; color: #64748b; letter-spacing: 0.5px; }
.sum-item .val { font-size: 1.4rem; font-weight: 800; color: #1e293b; margin-top: 5px; }
.highlight .val { color: #4338ca; }

/* Tablo */
.table-box {
    background: white; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden;
}
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { text-align: left; padding: 15px; background: #f8fafc; color: #64748b; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }
td { padding: 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 0.95rem; color: #334155; }
tr:hover { background: #f8fafc; }

.date-badge { background: #f1f5f9; padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; color: #475569; display: inline-block; }
.vade-mini { font-size: 0.75rem; color: #dc2626; margin-top: 4px; font-weight: 600; }

.cari-name { font-weight: 700; color: #1e293b; }
.cari-sub { font-size: 0.85rem; color: #64748b; }
.desc-text { font-size: 0.85rem; color: #64748b; margin-top: 3px; max-width: 300px; }

.badge-source {
    font-size: 0.7rem; background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; padding: 2px 6px; border-radius: 4px; margin-top: 5px; display: inline-block;
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-orange { color: #ea580c; }
.text-dark { color: #0f172a; }
.text-muted { color: #94a3b8; }
.big-text { font-size: 1.1rem; }

.btn-delete {
    background: #fef2f2; color: #ef4444; border: 1px solid #fecaca;
    padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; text-decoration: none;
    font-weight: 600; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px;
}
.btn-delete:hover { background: #ef4444; color: white; border-color: #ef4444; }

.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert.success { background:#dcfce7; color:#166534; border: 1px solid #bbf7d0; }

.no-data { text-align: center; padding: 40px; color: #94a3b8; font-style: italic; }

@media print {
    .sidebar, header, .header-actions, .filter-box, .no-print { display: none !important; }
    .main-content { margin: 0 !important; width: 100% !important; padding: 0 !important; }
    .page-header-flex, .table-box { box-shadow: none; border: 1px solid #e2e8f0; }
}