/* assets/siparis-detay.css */

.page-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.header-left { display: flex; align-items: center; gap: 15px; }
.btn-back { background: white; border: 1px solid #e2e8f0; color: #64748b; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.btn-back:hover { background: #f1f5f9; color: #334155; }
.page-title { margin: 0; font-size: 1.5rem; color: #1e293b; font-weight: 800; }
.page-subtitle { margin: 2px 0 0; color: #64748b; font-size: 0.9rem; }
.header-actions { display: flex; gap: 10px; }
.btn-outline { background: white; border: 1px solid #cbd5e1; color: #475569; padding: 10px 15px; border-radius: 8px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.btn-outline:hover { background: #f8fafc; color: #1e293b; }
.btn-print { background: #1e293b; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.btn-print:hover { background: #0f172a; }

/* Durum Kartı */
.status-card {
    background: white; border-radius: 12px; padding: 20px; margin-bottom: 25px;
    display: flex; justify-content: space-between; align-items: center;
    border: 2px solid transparent; box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}
.status-info { display: flex; align-items: center; gap: 15px; }
.icon-box { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.status-card .label { font-size: 0.75rem; font-weight: 700; opacity: 0.8; letter-spacing: 0.5px; }
.status-card .value { font-size: 1.2rem; font-weight: 800; }

.status-form { display: flex; gap: 10px; }
.status-select { padding: 10px; border-radius: 8px; border: 1px solid #cbd5e1; font-weight: 600; cursor: pointer; font-family: 'Inter'; }
.btn-update { background: #3b82f6; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-update:hover { background: #2563eb; }

/* Durum Renkleri */
.status-wait { border-color: #fcd34d; background: #fffbeb; }
.status-wait .icon-box { background: #f59e0b; }
.status-wait .value { color: #b45309; }

.status-prep { border-color: #bfdbfe; background: #eff6ff; }
.status-prep .icon-box { background: #3b82f6; }
.status-prep .value { color: #1e40af; }

.status-ship { border-color: #c7d2fe; background: #eef2ff; }
.status-ship .icon-box { background: #6366f1; }
.status-ship .value { color: #4338ca; }

.status-done { border-color: #6ee7b7; background: #ecfdf5; }
.status-done .icon-box { background: #10b981; }
.status-done .value { color: #047857; }

.status-cancel { border-color: #fca5a5; background: #fef2f2; }
.status-cancel .icon-box { background: #ef4444; }
.status-cancel .value { color: #b91c1c; }


/* Detay Grid */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.card-header { padding: 15px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.card-header h3 { margin: 0; font-size: 1rem; color: #475569; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }

.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; }
.info-row:last-child { border-bottom: none; }
.lbl { color: #64748b; font-weight: 600; }
.val { color: #1e293b; font-weight: 700; text-align: right; }
.val.big { font-size: 1.1rem; }

.address-box { font-size: 1rem; line-height: 1.5; color: #334155; }
.note-box { margin-top: 15px; background: #fff7ed; padding: 10px; border-radius: 8px; border: 1px solid #ffedd5; font-size: 0.9rem; color: #9a3412; }
.note-box strong { display: block; margin-bottom: 5px; }
.note-box p { margin: 0; }

/* Ürün Kartı */
.product-highlight { background: #f1f5f9; padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 20px; }
.p-name { font-size: 1.2rem; font-weight: 800; color: #1e293b; margin-bottom: 5px; }
.p-qty { font-size: 1rem; font-weight: 600; color: #3b82f6; }

.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table td { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .text-right { text-align: right; font-weight: 700; color: #334155; }
.total-row td { font-size: 1.1rem; font-weight: 900; color: #0f172a; padding-top: 15px; border-top: 2px solid #e2e8f0; }

.tags-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.tag { padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.tag-payment { background: #eff6ff; color: #1d4ed8; }
.tag-ship { background: #ecfdf5; color: #047857; }
.tag-ship-no { background: #fff1f2; color: #be123c; }

/* Yazdırma */
.print-header { display: none; }
.card-print-only { display: none; }

@media print {
    .no-print, .sidebar, header { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    .container { padding: 0; }
    
    .print-header { display: block; text-align: center; margin-bottom: 30px; border-bottom: 2px solid #000; padding-bottom: 15px; }
    .print-header h2 { margin: 0; font-size: 1.5rem; }
    
    .detail-grid { display: block; }
    .col-left, .col-right { width: 100%; margin-bottom: 20px; }
    .card { border: 1px solid #000; box-shadow: none; break-inside: avoid; }
    .card-header { background: #eee; border-bottom: 1px solid #000; }
    
    .card-print-only { display: block; border: none; margin-top: 50px; }
    .print-sign-area { display: flex; justify-content: space-between; text-align: center; font-weight: bold; }
}

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
    .status-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .status-action, .status-form, .status-select, .btn-update { width: 100%; }
}