/* assets/siparis-listesi.css */

.page-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.page-title i { color: #8b5cf6; margin-right: 10px; }
.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; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.btn-print:hover { background: #f1f5f9; color: #334155; }

.btn-new { background: #8b5cf6; 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: #7c3aed; }

/* Filtre */
.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: 140px; }
.filter-group.grow-2 { flex: 2; min-width: 200px; }
.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'; color: #334155; }
.btn-filter { background: #1e293b; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; height: 42px; }
.btn-reset { color: #ef4444; text-decoration: underline; font-size: 0.9rem; padding: 8px; cursor: pointer; display: inline-flex; align-items: center; height: 42px; }
.btn-group { display: flex; gap: 10px; }

/* Özet */
.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 #8b5cf6; }

/* Tablo */
.table-box { background: white; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px; background: #f8fafc; color: #64748b; font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
td { padding: 15px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 0.95rem; vertical-align: top; }
tr:hover td { background: #fcfcfc; }

/* Hücre Stilleri */
.date-badge { background: #f1f5f9; padding: 4px 8px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; color: #475569; display: inline-block; }
.cust-name { font-weight: 700; color: #1e293b; }
.cust-sub { font-size: 0.85rem; color: #64748b; margin-top: 2px; }
.desc-text { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge-ship { background: #ecfdf5; color: #047857; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; border: 1px solid #a7f3d0; }
.badge-pay { background: #eff6ff; color: #1d4ed8; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; border: 1px solid #bfdbfe; }
.note-text { font-size: 0.8rem; color: #94a3b8; margin-top: 5px; font-style: italic; }
.big-text { font-size: 1.1rem; }
.tax-info { font-size: 0.7rem; color: #94a3b8; font-weight: normal; }

/* Durum Rozetleri */
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.status-wait { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.status-prep { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-done { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; }
.status-cancel { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Aksiyon Butonları */
.action-group { display: flex; justify-content: center; gap: 5px; }
.btn-icon { width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; cursor: pointer; transition: 0.2s; background: white; }
.btn-view { color: #64748b; border-color: #e2e8f0; }
.btn-view:hover { background: #f1f5f9; color: #334155; }
.btn-edit { color: #3b82f6; border-color: #dbeafe; background: #eff6ff; }
.btn-edit:hover { background: #3b82f6; color: white; }
.btn-delete { color: #ef4444; border-color: #fee2e2; background: #fef2f2; text-decoration: none; }
.btn-delete:hover { background: #ef4444; color: white; }

.no-data { text-align: center; padding: 40px; color: #94a3b8; font-style: italic; }
.text-right { text-align: right; } .text-center { text-align: center; } .font-bold { font-weight: 700; } .text-dark { color: #0f172a; }

/* Yazdırma */
@media print {
    .no-print, .sidebar, header { display: none !important; }
    .main-content { margin: 0; padding: 0; width: 100%; }
    .container { max-width: 100%; padding: 0; }
    .table-box { box-shadow: none; border: none; }
    table { font-size: 10pt; }
    th, td { border: 1px solid #ccc; padding: 5px; }
}