/* satis-listesi.css ile uyumlu, mal alışa özel renk tonları */

.page-title i {
    color: #ef4444; /* Alışlar genelde kırmızı tonuyla ifade edilir */
    margin-right: 10px;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-print {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.btn-print:hover { background: #f1f5f9; color: #334155; }

.btn-new {
    background: #ef4444;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-new:hover { background: #dc2626; }

/* Filtre Alanı */
.filter-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group.grow-2 { flex: 2; min-width: 250px; }

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.filter-group input, .filter-group select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    color: #334155;
}

.btn-filter {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    height: 42px;
}
.btn-filter:hover { background: #2563eb; }

.btn-reset {
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Input yüksekliğiyle aynı olsun */
    box-sizing: border-box;
}
.btn-reset:hover { background: #e2e8f0; color: #334155; }

.btn-group {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

/* Özet Barı */
.summary-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.sum-item {
    background: white;
    flex: 1;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.sum-item .lbl {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sum-item .val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #334155;
}

.sum-item.highlight { border-left: 4px solid #ef4444; }

/* Tablo Alanı */
.table-box {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.fatura-actions {
    background: #f8fafc;
    padding: 10px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.f-act-left { font-size: 0.9rem; color: #64748b; display: flex; align-items: center; gap: 8px; }
.f-act-right { display: flex; gap: 10px; }

.btn-invoice { background: #6366f1; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.btn-invoice:hover { background: #4f46e5; }
.btn-invoice-undo { background: #94a3b8; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.btn-invoice-undo:hover { background: #64748b; }

.table-responsive { width: 100%; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 15px; background: #f8fafc; color: #64748b; font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
td { padding: 12px 15px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 0.95rem; vertical-align: middle; }
tr:hover td { background: #fcfcfc; }
tr:last-child td { border-bottom: none; }

.date-badge { background: #f1f5f9; padding: 4px 8px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; color: #475569; display: inline-block; }
.cari-sub { font-size: 0.8rem; color: #94a3b8; margin-top: 2px; }
.desc-text { font-size: 0.85rem; color: #64748b; margin-top: 2px; font-style: italic; }
.doc-no { font-size: 0.75rem; color: #cbd5e1; margin-top: 2px; }

.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-red { color: #dc2626; }
.text-green { color: #16a34a; }
.text-blue { color: #2563eb; }
.text-muted { color: #94a3b8; }
.big-text { font-size: 1.05rem; }

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.btn-delete:hover { background: #dc2626; color: white; }

.input-highlight {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}
.input-highlight:focus {
    border-color: #ef4444;
    outline: none;
}

@media print {
    .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; width: 100% !important; }
    .container { padding: 0 !important; }
    .table-box { border: none; box-shadow: none; }
    table { font-size: 10pt; }
    th, td { padding: 5px; }
}