/* assets/stok-hareket.css */

/* Ürün Başlık Kartı */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-icon {
    width: 60px; height: 60px;
    background: #fef3c7; color: #d97706;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

.product-info h1 {
    margin: 0; font-size: 1.4rem; color: #1e293b;
}

.code-badge {
    background: #f1f5f9; color: #64748b;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.85rem; font-family: monospace; font-weight: 700;
}

.type-badge {
    background: #ecfdf5; color: #059669;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.85rem; font-weight: 700; margin-left: 5px;
}

/* Butonlar */
.btn-outline {
    background: white; border: 1px solid #cbd5e1;
    color: #475569; padding: 10px 15px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 8px; transition: 0.2s;
    cursor: pointer;
}
.btn-outline:hover { background: #f8fafc; color: #1e293b; border-color: #94a3b8; }

/* Özet Kartlar */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white; border-radius: 12px; padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
}

.card-blue { border-bottom-color: #3b82f6; }
.card-green { border-bottom-color: #10b981; }
.card-purple { border-bottom-color: #8b5cf6; }
.card-gray { border-bottom-color: #6b7280; }

.card-icon {
    font-size: 2rem; opacity: 0.15;
}

.card-info span {
    font-size: 0.75rem; font-weight: 700; color: #64748b; letter-spacing: 0.5px;
}
.card-info h3 {
    margin: 5px 0 0 0; font-size: 1.6rem; color: #1e293b; font-weight: 800;
}
.card-info h3 small { font-size: 0.9rem; color: #94a3b8; }

/* Filtre Barı */
.filter-bar {
    background: #f8fafc; padding: 15px; border-radius: 10px;
    border: 1px solid #e2e8f0; margin-bottom: 25px;
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 15px;
}

.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: 0.8rem; font-weight: 600; color: #64748b; }

/* DÜZELTME: Select kutusu için stil eklendi */
.filter-group input, .filter-group select {
    padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem;
    min-width: 150px;
}

.btn-filter {
    background: #1e293b; color: white; border: none;
    padding: 9px 20px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.btn-reset {
    color: #ef4444; text-decoration: underline; font-size: 0.9rem; padding: 8px;
}

/* Tablo */
.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.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.detail-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; font-size: 0.95rem; }

/* Satır Tipleri */
.row-alis { background-color: #f0fdf4; }
.row-alis:hover { background-color: #dcfce7; }

.row-satis { background-color: #fff7ed; }
.row-satis:hover { background-color: #ffedd5; }

/* Hücre Detayları */
.badge { padding: 5px 10px; border-radius: 20px; font-weight: 600; font-size: 0.75rem; display: inline-flex; align-items: center; gap: 5px; }
.badge-alis { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-satis { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.badge-other { background: #f1f5f9; color: #475569; }

.cari-name { font-weight: 700; color: #1e293b; }
.cari-sub { font-size: 0.8rem; color: #64748b; }
.evrak-no { font-family: monospace; background: #f8fafc; padding: 2px 6px; border-radius: 4px; color: #475569; }

.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-dark { color: #0f172a; }
.text-small { font-size: 0.85rem; }
.text-muted { color: #94a3b8; }
.no-data { text-align: center; padding: 40px; color: #94a3b8; font-style: italic; }

/* Yazdırma */
@media print {
    .no-print, .sidebar, header { display: none !important; }
    .main-content { margin: 0 !important; width: 100% !important; }
    .container { padding: 0 !important; }
    .page-header-flex, .summary-cards, .table-container { box-shadow: none !important; border: 1px solid #e2e8f0; }
}
/* Mevcut dosyanın en altına eklenecek */

.btn-delete-row {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-row:hover {
    background-color: #ef4444;
    color: white;
    border-color: #dc2626;
    transform: scale(1.1);
}