/* ============================================================
   BÖLÜM 1: TEMEL AYARLAR VE DEĞİŞKENLER
   ============================================================ */
:root {
    --bg-body: #F8FAFC;          /* Açık Gri */
    --bg-sidebar: #0F172A;       /* Koyu Lacivert */
    --primary: #3B82F6;          /* Mavi */
    --primary-hover: #2563EB;    /* Koyu Mavi */
    --text-main: #1E293B;        /* Koyu Gri */
    --text-muted: #64748B;       /* Pasif Gri */
    --border-color: #E2E8F0;     /* Çerçeve */
    --danger: #EF4444;           /* Kırmızı */
    --success: #10B981;          /* Yeşil */
    --warning: #F59E0B;          /* Turuncu */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --radius: 12px;              
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    margin: 0; background-color: var(--bg-body); color: var(--text-main); font-size: 14px;
    -webkit-font-smoothing: antialiased; animation: slideDownFade 0.8s ease-out;
}

@keyframes slideDownFade { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.hidden { display: none !important; }
.text-center { text-align: center; }
.full-width { width: 100%; }

/* ============================================================
   BÖLÜM 2: GİRİŞ EKRANI & SIDEBAR (ADMIN)
   ============================================================ */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #E2E8F0 0%, #F8FAFC 100%); }
.login-box { background: #fff; padding: 40px; border-radius: 24px; width: 100%; max-width: 400px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); text-align: center; }
.brand-logo { font-size: 2rem; font-weight: 800; color: var(--bg-sidebar); margin-bottom: 0.5rem; letter-spacing: -1px; }

.dashboard-container { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 260px; background: var(--bg-sidebar); display: flex; flex-direction: column; color: white; flex-shrink: 0; }
.sidebar .brand { padding: 25px; font-size: 1.4rem; font-weight: 700; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); }
.user-info { padding: 20px; background: rgba(255,255,255,0.05); font-size: 0.9rem; color: #94A3B8; }
.nav-btn { background: transparent; border: none; color: #94A3B8; width: 90%; margin: 5px auto; padding: 12px 15px; text-align: left; cursor: pointer; font-weight: 500; border-radius: 8px; transition: var(--transition); display: flex; align-items: center; }
.nav-btn i { width: 24px; margin-right: 10px; font-size: 1.1em; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.nav-btn.active { background: var(--primary); color: white; }
.nav-btn.logout { margin-top: auto; margin-bottom: 20px; color: #F87171; }
.content { flex: 1; padding: 30px; overflow-y: auto; background: var(--bg-body); }

/* ============================================================
   BÖLÜM 3: TEMEL BİLEŞENLER
   ============================================================ */
h2 { font-size: 1.5rem; color: var(--text-main); font-weight: 700; margin-bottom: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02); margin-bottom: 20px; }

input, select, textarea { 
    width: 100%; 
    padding: 12px 14px; /* İç boşluğu artırdık */
    margin: 8px 0; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 14px; 
    background: #fff; 
    transition: var(--transition); 
    color: var(--text-main); 
    /* height: 42px; Kodu SİLİNDİ - Sabit yükseklik yerine min-height kullanıyoruz */
    min-height: 45px; /* Yazının sığması için garanti alan */
    line-height: 1.5; /* Satır aralığını açarak harflerin kesilmesini önler */
    box-sizing: border-box; /* Padding'in taşmasını önler */
}

input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
}
.btn-primary { background: var(--primary); color: white; border: none; padding: 0 20px; height: 42px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: #fff; border: 1px solid var(--border-color); color: var(--text-main); padding: 0 15px; height: 42px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary:hover { background: #F8FAFC; border-color: #CBD5E1; }
.btn-danger { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.data-badge { padding: 4px 8px; border-radius: 6px; background: #F1F5F9; color: var(--text-main); font-weight: 600; font-size: 12px; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.refund-badge { display: inline-block; background-color: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: bold; margin-top: 4px; }
.notification-badge { background-color: var(--danger); color: white; border-radius: 12px; padding: 2px 8px; font-size: 10px; margin-left: 5px; vertical-align: middle; }

/* ============================================================
   BÖLÜM 4: ARAMA KUTULARI VE KAMERA
   ============================================================ */
.toolbar-container { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.search-wrapper { position: relative; display: flex; align-items: center; width: 100%; max-width: 400px; height: 42px; }
.search-wrapper input { margin: 0; border-radius: 8px; padding-left: 35px; width: 100%; height: 100%; }
.search-wrapper.with-camera input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: none !important; }
.search-wrapper.with-camera .btn-secondary { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; border-left: 1px solid var(--border-color); margin: 0; height: 100%; width: 50px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--text-muted); }
.search-wrapper.with-camera .btn-secondary:hover { color: var(--primary); background: #f8fafc; }
.search-wrapper i.fa-search { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94A3B8; pointer-events: none; font-size: 14px; z-index: 5; }

/* ============================================================
   BÖLÜM 5: TABLOLAR
   ============================================================ */
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-color); background: #fff; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { background: #F8FAFC; padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; font-size: 13px; }
tr:hover td { background: #F8FAFC; }
.tab-container { display: flex; gap: 5px; padding: 4px; background: #E2E8F0; border-radius: 8px; width: fit-content; margin-bottom: 20px; }
.tab-btn { padding: 8px 20px; border-radius: 6px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 13px; }
.tab-btn.active { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3); 
    transform: translateY(-1px);
}

/* ============================================================
   BÖLÜM 6: DASHBOARD & TOPTAN SATIŞ
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; padding: 20px; border-radius: var(--radius); display: flex; align-items: center; border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-right: 15px; flex-shrink: 0; }
.stat-info h3 { margin: 0; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.stat-info p { margin: 5px 0 0 0; font-size: 1.8rem; font-weight: 700; color: var(--text-main); line-height: 1; }
.orange .stat-icon { background: #FFF7ED; color: #EA580C; } .blue .stat-icon { background: #EFF6FF; color: var(--primary); }
.purple .stat-icon { background: #F3E8FF; color: #9333EA; }
.red-outline { border: 1px dashed #E2E8F0; background: transparent; } .red-outline .stat-icon { background: #F1F5F9; color: #94A3B8; }
.warning-active { border: 2px solid var(--danger); background: #FEF2F2; animation: pulseRed 2s infinite; } .warning-active .stat-icon { background: #FEE2E2; color: var(--danger); }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.wholesale-layout { display: flex; gap: 20px; align-items: flex-start; width: 100%; } .ws-left-col { flex: 1; min-width: 0; } .ws-right-col { width: 350px; flex-shrink: 0; }
.sticky-card { position: sticky; top: 20px; z-index: 90; background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 14px; color: var(--text-muted); }
.summary-total { margin-top: 15px; padding-top: 15px; border-top: 2px solid var(--text-main); display: flex; justify-content: space-between; align-items: center; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.discount-tiers-container { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.tier-item { display: flex; justify-content: space-between; padding: 8px 12px; margin-bottom: 5px; background: #F8FAFC; border-radius: 8px; font-size: 13px; color: var(--text-muted); border: 1px solid transparent; transition: var(--transition); }
.tier-item.active-tier { background: #EFF6FF; color: var(--primary); border-color: #BFDBFE; font-weight: 600; }
.badge-discount { background: #DCFCE7; color: #166534; padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-left: 5px; }
.switch { position: relative; display: inline-block; width: 40px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary); } input:focus + .slider { box-shadow: 0 0 1px var(--primary); } input:checked + .slider:before { transform: translateX(16px); } .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; }

/* ============================================================
   BÖLÜM 7: MODALLAR
   ============================================================ */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 1; }
.modal-content { background: #fff; padding: 25px; border-radius: 20px; width: 500px; max-width: 95%; position: relative; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid #fff; max-height: 90vh; overflow-y: auto; }
.large-modal { width: 900px; }
.close { position: absolute; right: 20px; top: 20px; font-size: 20px; color: #94A3B8; cursor: pointer; }
.return-form-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.modal-wide .return-form-layout { grid-template-columns: 1fr 1fr; }
.dispatch-box { background: #F8FAFC; border: 1px dashed var(--primary); border-radius: 16px; padding: 20px; }

/* ============================================================
   BÖLÜM 8: CHATBOT (HIBRIT BOT STİLLERİ)
   ============================================================ */
.bot-toggle-btn { position: fixed; bottom: 25px; right: 25px; width: 65px; height: 65px; background: #2563EB; color: white; border: none; border-radius: 50%; box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4); cursor: pointer; z-index: 9999; font-size: 28px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.bot-toggle-btn:hover { transform: scale(1.1); }
.bot-container { position: fixed; bottom: 100px; right: 25px; width: 360px; height: 550px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; z-index: 9999; border: 1px solid #e2e8f0; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.bot-header { background: #1e293b; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.bot-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 10px; }
.bot-messages { flex: 1; padding: 20px; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; position: relative; word-wrap: break-word; }
.bot-msg { background: white; color: #334155; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; align-self: flex-start; }
.user-msg { background: #2563EB; color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.bot-options-area { padding: 10px 20px; background: white; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #f1f5f9; }
.option-chip { background: #eff6ff; color: #2563EB; border: 1px solid #bfdbfe; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.option-chip:hover { background: #2563EB; color: white; }
.bot-input-area { padding: 15px; background: white; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; }
.bot-input-area input { flex: 1; padding: 10px 15px; border-radius: 25px; border: 1px solid #cbd5e1; outline: none; font-size: 14px; height: 40px; }
.bot-input-area button { width: 40px; height: 40px; border-radius: 50%; background: #2563EB; color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   BÖLÜM 9: MOBİL & PRINT AYARLARI
   ============================================================ */
@media (max-width: 768px) {
    body { font-size: 13px; background-color: #f8fafc; }
    .dashboard-container { flex-direction: column; height: auto; }
    .sidebar { width: 100%; height: auto; flex-direction: row; padding: 10px; position: sticky; top: 0; z-index: 100; overflow-x: auto; white-space: nowrap; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
    .sidebar .brand, .sidebar .user-info { display: none; }
    .sidebar nav { display: flex; gap: 8px; width: 100%; }
    .nav-btn { width: auto; margin: 0; padding: 8px 16px; font-size: 12px; background: rgba(255,255,255,0.1); border-radius: 20px; flex-shrink: 0; }
    .nav-btn.active { background: var(--primary); box-shadow: 0 2px 10px rgba(59,130,246,0.3); }
    .content { padding: 15px; padding-bottom: 80px; }
    .stats-grid, .wholesale-layout, .return-form-layout, .modal-wide .return-form-layout { grid-template-columns: 1fr !important; gap: 15px; display: flex; flex-direction: column; }
    .ws-right-col { width: 100%; }
    .sticky-card { position: relative; top: 0; }
    
    /* V-CARD DÖNÜŞÜMÜ (Responsive Tables) */
    table thead { display: none; }
    table tbody tr { display: block; background: #fff; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); border: 1px solid var(--border-color); padding: 15px; }
    table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f1f5f9; text-align: right; font-size: 13px; }
    table tbody td:last-child { border-bottom: none; justify-content: center; padding-top: 15px; }
    table tbody td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 12px; text-align: left; margin-right: 10px; }

    /* Portal Mobil */
    .portal-hero h1 { font-size: 1.8rem; }
    .nav-flex { flex-direction: column; gap: 15px; }
    .portal-links { margin: 10px 0; }
    .radio-group { grid-template-columns: 1fr; }
    .timeline { font-size: 0.8rem; }
}

/* ROL TABANLI GİZLEME */
body[data-user-role="depo_sorumlusu"] .admin-only { display: none !important; }
body[data-user-role="personel"] .admin-only { display: none !important; }
body[data-user-role="izleyici"] .admin-only { display: none !important; }

/* Print */
.ws-table.print-table { table-layout: fixed; width: 100%; }
.ws-table.print-table th, .ws-table.print-table td { vertical-align: top; padding: 10px; word-wrap: break-word; white-space: normal; font-size: 13px; }
.print-header-container { border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.print-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.print-summary-wrapper { display: flex; justify-content: flex-end; }
.print-summary-box { width: 300px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
@media print { .sidebar, .toolbar-container, .btn-primary, .close { display: none !important; } .modal { position: absolute; background: white; } .modal-content { box-shadow: none; width: 100%; } }

/* ============================================================
   BÖLÜM 10: MÜŞTERİ PORTALI (v16.0)
   ============================================================ */
.portal-body { background: #F1F5F9; color: #334155; font-family: 'Inter', sans-serif; }
.portal-nav {
    background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}
.portal-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.portal-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.portal-brand .highlight { color: #3B82F6; }
.portal-links a { color: #94A3B8; text-decoration: none; margin-left: 25px; font-weight: 500; transition: 0.3s; }
.portal-links a:hover, .portal-links a.active { color: white; }
.portal-login-btn { background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 6px; color: white; text-decoration: none; font-size: 13px; transition: 0.3s; }
.portal-login-btn:hover { background: #3B82F6; }

.portal-hero { background: #1E293B; color: white; text-align: center; padding: 60px 20px 80px; margin-bottom: -40px; }
.portal-hero h1 { margin: 0 0 10px; font-size: 2.5rem; font-weight: 800; }
.portal-hero p { color: #94A3B8; margin: 0; font-size: 1.1rem; }

.main-wrapper { position: relative; z-index: 10; }
.portal-section { background: white; border-radius: 16px; padding: 40px; margin-bottom: 30px; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; }

.section-title { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.section-title .icon-bg { width: 50px; height: 50px; background: #EFF6FF; color: #3B82F6; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.section-title h2 { margin: 0; color: #0F172A; font-size: 1.5rem; }
.section-title p { margin: 5px 0 0; color: #64748B; font-size: 0.95rem; }

/* Wizard Styles */
.wizard-step { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.input-group-lg label { display: block; font-weight: 700; color: #334155; margin-bottom: 10px; }
.input-group-lg input { width: 100%; padding: 18px; font-size: 1.2rem; border: 2px solid #E2E8F0; border-radius: 12px; text-align: center; letter-spacing: 1px; font-weight: 600; color: #0F172A; outline: none; transition: 0.3s; }
.input-group-lg input:focus { border-color: #3B82F6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.input-group-lg small { display: block; text-align: center; margin-top: 8px; color: #94A3B8; }

.btn-portal-primary { width: 100%; padding: 16px; background: #3B82F6; color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 20px; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-portal-primary:hover { background: #2563EB; transform: translateY(-2px); }
.btn-portal-secondary { padding: 12px 24px; background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-portal-secondary:hover { background: #E2E8F0; }

.order-summary-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; margin-bottom: 25px; }
.os-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; color: #64748B; }
.os-id { font-family: monospace; font-weight: 700; color: #3B82F6; background: #EFF6FF; padding: 2px 6px; border-radius: 4px; }
.os-body { display: flex; justify-content: space-between; align-items: center; }
.os-body h3 { margin: 0; font-size: 1.1rem; color: #0F172A; }
.os-total { font-size: 1.2rem; font-weight: 800; color: #059669; }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.radio-card input { display: none; }
.rc-content { border: 2px solid #E2E8F0; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; color: #64748B; }
.radio-card input:checked + .rc-content { border-color: #3B82F6; background: #EFF6FF; color: #3B82F6; }
.rc-content i { font-size: 24px; display: block; margin-bottom: 8px; }

.shipping-instruction { background: #F0FDF4; border: 1px dashed #22C55E; padding: 20px; border-radius: 12px; margin: 20px 0; }
.si-label { display: block; font-size: 0.9rem; color: #166534; margin-bottom: 5px; }
.si-code { display: block; font-size: 1.8rem; font-weight: 800; color: #15803D; letter-spacing: 1px; }
.portal-error { color: #EF4444; font-weight: 600; margin-top: 10px; }
.portal-footer { text-align: center; padding: 30px; color: #94A3B8; font-size: 0.9rem; }
.policy-text { font-size: 0.9rem; color: #64748B; margin: 10px 0 20px; }

/* Timeline (4 Adımlı - v16.2/3) */
.tracking-container { text-align: center; }
.track-input-area { display: flex; gap: 10px; margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.track-input-area input { flex: 1; padding: 12px 15px; border: 2px solid #E2E8F0; border-radius: 10px; outline: none; }
.track-input-area button { padding: 0 25px; background: #0F172A; color: white; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; }

.timeline { display: flex; justify-content: space-between; position: relative; margin: 40px 0 20px; }
.progress-track { position: absolute; top: 15px; left: 0; width: 100%; height: 4px; background: #E2E8F0; z-index: 1; border-radius: 2px; }
.progress-fill { height: 100%; background: #10B981; width: 0%; transition: width 1s ease; border-radius: 2px; }
.tl-item { position: relative; z-index: 2; width: 25%; text-align: center; opacity: 0.5; transition: 0.3s; }
.tl-item.active { opacity: 1; }
.tl-dot { width: 34px; height: 34px; background: white; border: 3px solid #E2E8F0; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.3s; }
.tl-item.active .tl-dot { border-color: #10B981; background: #10B981; color: white; transform: scale(1.2); box-shadow: 0 0 0 5px rgba(16,185,129,0.1); }
.track-msg { font-weight: 600; color: #3B82F6; margin-top: 20px; padding: 10px; background: #EFF6FF; border-radius: 8px; display: inline-block; }

/* ============================================================
   BÖLÜM 11: SSS (ACCORDION) DÜZELTME - v16.4
   ============================================================ */
.accordion-wrapper { display: flex; flex-direction: column; gap: 15px; }
.accordion-item { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.accordion-item:hover { border-color: #CBD5E1; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.accordion-header { width: 100%; padding: 20px; background: #fff; border: none; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 600; color: #1E293B; cursor: pointer; text-align: left; transition: background 0.2s; }
.accordion-header:hover { background: #F8FAFC; color: #3B82F6; }
.accordion-header i { color: #94A3B8; transition: transform 0.3s ease; }

.accordion-item.active { border-color: #3B82F6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); }
.accordion-item.active .accordion-header { background: #EFF6FF; color: #3B82F6; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: #3B82F6; }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.3s ease; background: #fff; padding: 0 20px; }
.accordion-item.active .accordion-body { max-height: 200px; padding: 0 20px 20px 20px; border-top: 1px solid #F1F5F9; }
.accordion-body p { margin: 0; color: #64748B; font-size: 0.95rem; line-height: 1.6; padding-top: 15px; }

/* ============================================================
   BÖLÜM 12: ENVANTER MODAL DÜZENİ (v18.0)
   ============================================================ */
.inv-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Sağ taraf (Loglar) biraz daha geniş */
    gap: 25px;
    height: 100%;
}

/* Sol Kolon (Form) */
.inv-left-col {
    padding-right: 20px;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.inv-product-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

/* Sağ Kolon (Loglar) */
.inv-right-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 550px; /* Modal yüksekliğine göre sınırla */
}

.log-list-header {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Log Listesi (Scroll Alanı) */
.log-history-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    padding: 10px;
    margin-bottom: 15px;
}

/* Tekil Log Kartı */
.log-item {
    background: white;
    border: 1px solid #E2E8F0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    border-left: 3px solid #cbd5e1; /* Varsayılan gri çizgi */
    transition: all 0.2s;
}
.log-item:hover { transform: translateX(2px); box-shadow: 0 2px 5px rgba(0,0,0,0.03); }

/* Log Tiplerine Göre Renkler */
.log-item.type-add { border-left-color: #10B981; } /* Yeşil */
.log-item.type-remove { border-left-color: #EF4444; } /* Kırmızı */
.log-item.type-info { border-left-color: #3B82F6; } /* Mavi */

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748B;
    margin-bottom: 4px;
}
.log-content { font-size: 13px; color: #1E293B; line-height: 1.4; }
.log-qty-badge {
    background: #EFF6FF; color: #3B82F6; padding: 2px 6px; 
    border-radius: 4px; font-weight: bold; font-size: 11px; margin-left: 5px;
}

/* Log Ekleme Alanı (Footer) */
.log-input-area {
    background: #F1F5F9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

/* Responsive: Mobilde Tek Kolon */
@media (max-width: 768px) {
    .inv-modal-grid { grid-template-columns: 1fr; gap: 20px; }
    .inv-left-col { border-right: none; border-bottom: 1px solid #E2E8F0; padding-bottom: 20px; padding-right: 0; }
    .inv-right-col { height: auto; max-height: none; }
    .log-history-container { max-height: 250px; }
}
/* ============================================================
   BÖLÜM 13: XML RAPOR MODALI (v30.0)
   ============================================================ */

/* Modalın iç yapısını Flex yaparak Header ve Footer'ı sabitliyoruz */
.modal-flex-layout {
    display: flex;
    flex-direction: column;
    height: 80vh; /* Ekranın %80'i kadar yükseklik */
    max-height: 600px;
    padding: 0 !important; /* Padding'i iç elementlere dağıtacağız */
    overflow: hidden; /* Dış taşmayı engelle */
}

.modal-header-fixed {
    padding: 20px;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.modal-body-scroll {
    flex: 1; /* Kalan boşluğu doldur */
    overflow-y: auto; /* Sadece burası kaydırılsın */
    padding: 20px;
    background: #F8FAFC;
}

.modal-footer-fixed {
    padding: 15px 20px;
    border-top: 1px solid #E2E8F0;
    background: white;
    flex-shrink: 0;
}

/* Kritik Stok (Tükenenler) Görünümü */
.log-change-item {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px;
    background: white;
    border: 1px solid #E2E8F0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-change-item.critical {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid #EF4444;
}

.badge-new { background: #DBEAFE; color: #1E40AF; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 11px; }
.badge-update { background: #FEF3C7; color: #92400E; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 11px; }
.badge-critical { background: #EF4444; color: white; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 11px; animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }
/* ============================================================
   BÖLÜM 14: KOMPAKT SİPARİŞ TABLOSU (v36.0)
   ============================================================ */
.compact-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* Okunabilir boyut */
    color: #1E293B;
}

.compact-table thead th {
    background-color: #F1F5F9;
    padding: 8px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #CBD5E1;
    color: #475569;
}

.compact-table tbody td {
    padding: 6px 8px; /* İnce satırlar */
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.compact-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Kontrol Checkbox Stili */
.check-cell {
    text-align: center;
    width: 50px;
}
.check-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #10B981; /* Yeşil Tik */
}

.totals-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #E2E8F0;
    text-align: right;
    background-color: #F8FAFC;
    padding: 15px;
    border-radius: 8px;
}
.totals-area p { margin: 3px 0; font-size: 13px; color: #64748B; }
.totals-area h4 { margin: 5px 0 0 0; font-size: 16px; color: #1E293B; }
/* ============================================================
   BÖLÜM 15: AYARLAR AKORDİYON & GÜVENLİK (v39.0)
   ============================================================ */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.setting-group {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.setting-header {
    background: #fff;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1E293B;
    transition: background 0.2s;
}

.setting-header:hover {
    background: #F8FAFC;
}

.setting-header i {
    color: #94A3B8;
    transition: transform 0.3s ease;
}

/* Açık Durum */
.setting-group.active .setting-header {
    background: #EFF6FF;
    color: #2563EB;
    border-bottom: 1px solid #E2E8F0;
}

.setting-group.active .setting-header i {
    transform: rotate(180deg);
    color: #2563EB;
}

.setting-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.setting-group.active .setting-content {
    max-height: 500px; /* İçeriğe göre yetecek kadar */
    padding: 20px;
    overflow-y: auto;
}

/* Tehlikeli Bölge */
.danger-zone {
    border: 1px solid #FECACA;
    background: #FEF2F2;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}
.danger-zone h4 { color: #DC2626; margin-top: 0; }
.danger-zone p { font-size: 12px; color: #7F1D1D; }
/* ============================================================
   BÖLÜM 16: MANUEL / İADE SATIRLARI (v41.0)
   ============================================================ */
tr.manual-row {
    background-color: #FEF2F2; /* Açık Kırmızı */
}
tr.manual-row input {
    background-color: #fff;
    border-color: #FCA5A5;
}
tr.manual-row td {
    color: #991B1B;
}
/* ============================================================
   BÖLÜM 16: YEDEKLEME SATIRLARI (v46.0)
   ============================================================ */
.backup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.backup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
    padding: 10px 15px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
}

.backup-info h5 { margin: 0 0 2px 0; font-size: 14px; color: #334155; }
.backup-info p { margin: 0; font-size: 11px; color: #64748B; }

.backup-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
   BÖLÜM 17: MÜŞTERİ PORTALI (v60.0 - RENK VE VERİ ONARIMI)
   ============================================================ */

/* 1. TEMEL YAPILANDIRMA */
.portal-body {
    background-color: #f8fafc; font-family: 'Inter', sans-serif;
    color: #334155; margin: 0; overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

/* NAVBAR */
.portal-nav {
    background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}
.nav-container {
    width: 100%; /* max-width kaldırıldı, tam genişlik */
    padding: 0 40px; /* Kenarlardan boşluk */
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 24px; font-weight: 800; color: #0f172a; text-decoration: none; letter-spacing: -0.5px; }
.logo .highlight { color: #2563eb; }
.nav-links a { text-decoration: none; color: #64748b; font-weight: 500; margin-left: 25px; font-size: 14px; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #2563eb; }

/* 2. SPLIT LAYOUT */
.hero-split { display: flex; flex: 1; height: calc(100vh - 70px); }

/* --- SOL TARA (ARAMA) --- */
.hero-left {
    width: 450px; flex-shrink: 0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 40px; border-right: 1px solid #e2e8f0; 
    z-index: 10; position: relative; /* Desen için relative */
    overflow: hidden; /* Taşan desen gizlensin */
}
.pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Üst kısmı kaplar */
    background-image: radial-gradient(#e2e8f0 2px, transparent 2px);
    background-size: 24px 24px; /* Nokta sıklığı */
    opacity: 0.9;
    z-index: 0; /* İçeriğin arkasında */
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%); /* Aşağı doğru silikleşir */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.hero-content { 
    width: 100%; 
    position: relative; 
    z-index: 2; /* Desen üstüne çıksın */
}
.hero-content { width: 100%; }
.tag-badge {
    background: #eff6ff; color: #2563eb; padding: 6px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; margin-bottom: 20px;
}
.hero-content h1 { font-size: 32px; color: #0f172a; margin: 0 0 15px 0; line-height: 1.2; letter-spacing: -1px; }
.hero-content p { font-size: 15px; color: #64748b; margin-bottom: 40px; line-height: 1.6; }

/* INPUT */
.search-box-wrapper { margin-bottom: 40px; }
.input-floating {
    position: relative; background: #ffffff; border: 2px solid #e2e8f0; border-radius: 12px;
    padding: 5px; display: flex; align-items: center; transition: all 0.3s;
}
.input-floating:focus-within { border-color: #2563eb; box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15); }
.input-floating input {
    flex: 1; border: none; background: transparent; padding: 22px 15px 6px;
    font-size: 16px; font-weight: 600; color: #0f172a; outline: none; height: 50px;
}
.input-floating label {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 15px; pointer-events: none; transition: 0.3s;
}
.input-floating input:focus ~ label, .input-floating input:not(:placeholder-shown) ~ label {
    top: 14px; font-size: 11px; color: #2563eb; font-weight: 700;
}
.input-floating button {
    width: 50px; height: 50px; border-radius: 10px; border: none;
    background: #0f172a; color: white; font-size: 18px; cursor: pointer; transition: 0.2s;
}
.input-floating button:hover { background: #2563eb; }

.features-grid { display: flex; gap: 20px; }
.feat-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; font-weight: 600; }
.feat-item i { color: #2563eb; }

/* --- SAĞ TARA (PORTAL DASHBOARD) --- */
.hero-right {
    flex: 1; background: #f1f5f9; position: relative; overflow: hidden;
}

.hero-image-container { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }
.image-overlay {
    position: absolute; bottom: 50px; left: 50px; background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px); padding: 25px; border-radius: 16px;
    display: flex; align-items: center; gap: 15px; color: white; max-width: 450px;
}
.overlay-icon {
    width: 50px; height: 50px; background: #2563eb; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
    color: #ffffff; /* İkon rengi beyaz yapıldı */
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); /* Hafif gölge eklendi */
}

.overlay-text h3 { margin: 0 0 5px 0; font-size: 18px; font-weight: 700; }
.overlay-text p { margin: 0; font-size: 14px; opacity: 0.9; line-height: 1.4; }

/* PORTAL DASHBOARD CONTAINER */
.portal-dash-container {
    position: relative; z-index: 5; width: 100%; height: 100%;
    padding: 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 25px;
}

.dash-header-card {
    background: #fff; border-radius: 16px; padding: 25px 30px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
}
.dh-left { display: flex; align-items: center; gap: 15px; }
.dh-icon { font-size: 40px; color: #cbd5e1; }
.dh-label { font-size: 12px; color: #64748b; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 2px; }
.dh-left h3 { margin: 0; font-size: 20px; color: #0f172a; }
.dh-right { text-align: right; display: flex; gap: 40px; align-items: center; }
.dh-right h3 { margin: 0; font-size: 18px; color: #334155; }
.dh-price { background: #eff6ff; color: #2563eb; padding: 8px 15px; border-radius: 10px; font-weight: 800; font-size: 18px; }

.dash-panel {
    background: #fff; border-radius: 16px; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); display: flex; flex-direction: column;
}
.panel-header {
    padding: 20px 25px; border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
}
.panel-header h4 { margin: 0; font-size: 16px; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.panel-header i { color: #2563eb; }
.panel-body { padding: 30px; }

/* -------------------------------------------
   RENKLİ YATAY TIMELINE & TARİHÇE (v61.0)
------------------------------------------- */
.return-code-badge { background: #fff7ed; color: #c2410c; padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; border: 1px solid #ffedd5; }

.timeline-horizontal-colorful {
    display: flex; justify-content: space-between; position: relative;
    padding: 20px 0; margin-bottom: 10px;
}

/* ADIM YAPISI */
.tm-step {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
    width: 25%; text-align: center; opacity: 0.6; transition: all 0.3s;
}

/* BAĞLANTI ÇİZGİLERİ (SEGMENTED LINES) */
.tm-step::after {
    content: ''; position: absolute;
    top: 25px; /* İkonun ortası */
    left: 50%; /* Kendi merkezinden başla */
    width: 100%; /* Bir sonraki adımın merkezine kadar uzan */
    height: 4px;
    background: #e2e8f0; /* Varsayılan Gri */
    z-index: -1; /* İkonun arkasında kalsın */
    transition: background 0.4s ease;
}

/* Son adımın çizgisi olmamalı */
.tm-step:last-child::after { display: none; }

/* İKON TASARIMI */
.tm-icon {
    width: 50px; height: 50px; background: #fff; border: 3px solid #cbd5e1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 18px; color: #94a3b8;
    margin-bottom: 10px; box-shadow: 0 0 0 6px #fff; transition: all 0.3s;
}

.tm-content h5 { 
    margin: 0 0 4px 0; 
    font-size: 15px; /* Yazı büyütüldü */
    font-weight: 700; 
    color: #334155; /* Başlık daha koyu */
}

.tm-content p { 
    margin: 0 0 5px 0; 
    font-size: 13px; 
    color: #475569; /* METİN RENGİ KOYULAŞTIRILDI (Okunabilirlik için) */
    line-height: 1.4; 
    font-weight: 500;
}

/* Kutu içindeki tarih alanı */
.tm-date {
    font-size: 11px; 
    font-weight: 700; 
    color: #475569; /* Tarih rengi belirginleştirildi */
    background: #e2e8f0; 
    padding: 3px 10px; 
    border-radius: 12px;
    display: inline-block; 
    min-height: 20px;
    margin-top: 5px;
}
.tm-date:empty {
    display: none;
}

/* --- AKTİF VE TAMAMLANMIŞ DURUMLAR --- */
.tm-step.active, .tm-step.completed { opacity: 1; }
.tm-step.active .tm-icon { transform: scale(1.15); }

/* RENKLER VE ÇİZGİ BOYAMA MANTIĞI */

/* ADIM 1: MAVİ (Başvuru) */
.tm-step[data-step="1"].active .tm-icon, 
.tm-step[data-step="1"].completed .tm-icon {
    background: #3b82f6; border-color: #3b82f6; color: white; box-shadow: 0 0 0 6px #eff6ff;
}
/* Step 1 tamamlandığında Step 2'ye giden çizgi Mavi olsun */
.tm-step[data-step="1"].completed::after { background: #3b82f6; }


/* ADIM 2: MOR (İnceleme) */
.tm-step[data-step="2"].active .tm-icon, 
.tm-step[data-step="2"].completed .tm-icon {
    background: #8b5cf6; border-color: #8b5cf6; color: white; box-shadow: 0 0 0 6px #f3e8ff;
}
/* Step 2 tamamlandığında Step 3'e giden çizgi Mor olsun */
.tm-step[data-step="2"].completed::after { background: #8b5cf6; }


/* ADIM 3: TURUNCU (Onay) */
.tm-step[data-step="3"].active .tm-icon, 
.tm-step[data-step="3"].completed .tm-icon {
    background: #f97316; border-color: #f97316; color: white; box-shadow: 0 0 0 6px #ffedd5;
}
/* Step 3 tamamlandığında Step 4'e giden çizgi Turuncu olsun */
.tm-step[data-step="3"].completed::after { background: #f97316; }


/* ADIM 4: YEŞİL (Sonuç) */
.tm-step[data-step="4"].active .tm-icon, 
.tm-step[data-step="4"].completed .tm-icon {
    background: #10b981; border-color: #10b981; color: white; box-shadow: 0 0 0 6px #d1fae5;
}

/* YAZI RENKLERİ */
.tm-step.active h5, .tm-step.completed h5 { color: #0f172a; }
.tm-step.active p { color: #334155; font-weight: 500; }
.tm-step.completed .tm-date { color: #0f172a; background: #e2e8f0; } /* Tarih belirginleşsin */

/* RED DURUMU (Özel) */
.tm-step.rejected .tm-icon { background: #EF4444 !important; border-color: #EF4444 !important; color: white !important; }

/* AKTİF ve TAMAMLANMIŞ DURUMLAR */
.tm-step.active, .tm-step.completed { opacity: 1; }
.tm-step.active .tm-icon { transform: scale(1.15); }

/* --- RENKLER (DATA-STEP İLE GARANTİ) --- */
/* ADIM 1: MAVİ */
.tm-step[data-step="1"].active .tm-icon, .tm-step[data-step="1"].completed .tm-icon {
    background: #3b82f6; border-color: #3b82f6; color: white; box-shadow: 0 0 0 6px #eff6ff;
}
/* ADIM 2: MOR */
.tm-step[data-step="2"].active .tm-icon, .tm-step[data-step="2"].completed .tm-icon {
    background: #8b5cf6; border-color: #8b5cf6; color: white; box-shadow: 0 0 0 6px #f3e8ff;
}
/* ADIM 3: TURUNCU */
.tm-step[data-step="3"].active .tm-icon, .tm-step[data-step="3"].completed .tm-icon {
    background: #f97316; border-color: #f97316; color: white; box-shadow: 0 0 0 6px #ffedd5;
}
/* ADIM 4: YEŞİL */
.tm-step[data-step="4"].active .tm-icon, .tm-step[data-step="4"].completed .tm-icon {
    background: #10b981; border-color: #10b981; color: white; box-shadow: 0 0 0 6px #d1fae5;
}

/* YAZILARIN RENKLENMESİ */
.tm-step.active h5, .tm-step.completed h5 { color: #0f172a; }
.tm-step.active p { color: #334155; font-weight: 500; }

.info-alert {
    background: #f0f9ff; border-left: 4px solid #0ea5e9; padding: 15px;
    border-radius: 8px; font-size: 13px; color: #0369a1; margin-top: 10px;
}

/* FORM STYLES */
.form-layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.radio-group-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.radio-box input { display: none; }
.rb-content {
    border: 2px solid #e2e8f0; border-radius: 12px; padding: 15px;
    display: flex; align-items: center; gap: 15px;
    cursor: pointer; transition: 0.2s; color: #64748b; font-weight: 600;
}
.rb-icon { font-size: 20px; color: #94a3b8; }
.radio-box input:checked + .rb-content { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
.radio-box input:checked + .rb-content .rb-icon { color: #2563eb; }

.form-stack { display: flex; flex-direction: column; gap: 15px; }
select, textarea {
    width: 100%; 
    padding: 14px; 
    border: 1px solid #cbd5e1; 
    border-radius: 10px; 
    font-size: 14px; 
    outline: none; 
    transition: 0.2s;
    background: #ffffff; /* Arkaplan beyaz olsun */
    position: relative; 
    z-index: 20; /* Tıklanabilirliği garantiye al */
    cursor: pointer;
    -webkit-appearance: auto; /* Tarayıcı varsayılan oku geri getir (Bazen kaybolabilir) */
    appearance: auto;
}
select:focus, textarea:focus { border-color: #2563eb; }
.big-btn { padding: 16px; font-size: 15px; }

/* INFO BAR */
.info-bar { background: #fff; border-top: 1px solid #e2e8f0; padding: 15px 0; margin-top: auto; }
.info-bar-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: center; gap: 40px; padding: 0 30px; }
.ib-item { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 13px; }
.ib-item i { font-size: 20px; color: #2563eb; }
.ib-item strong { display: block; color: #0f172a; }
.ib-item a { color: #2563eb; text-decoration: none; font-weight: 600; }

.fade-in { animation: fadeIn 0.5s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeIn { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }

@media (max-width: 1100px) {
    .hero-split { flex-direction: column; height: auto; }
    .hero-left { width: 100%; border-right: none; padding: 30px; }
    .hero-right { display: none; padding: 20px; }
    .hero-right:has(.portal-dash-container:not(.hidden)) { display: flex; min-height: 600px; }
    .hero-image-container { display: none; }
    .form-layout-grid { grid-template-columns: 1fr; }
    .timeline-horizontal-colorful { overflow-x: auto; padding-bottom: 20px; }
    .tm-step { min-width: 80px; }
}
/* -------------------------------------------
   İŞLEM GEÇMİŞİ (LOG SİSTEMİ) - v62.0
------------------------------------------- */
.process-history-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    animation: fadeIn 0.5s ease-out;
}

.history-title {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 15px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-feed {
    display: flex;
    flex-direction: column;
    gap: 0; /* Çizgi bütünlüğü için */
}

.feed-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    position: relative;
}

.feed-item:last-child {
    padding-bottom: 0;
}

/* Sol Dikey Çizgi */
.feed-item::before {
    content: '';
    position: absolute;
    left: 6px; /* Noktanın ortası */
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #f1f5f9;
}
.feed-item:last-child::before { display: none; }

/* Nokta */
.feed-dot {
    width: 14px;
    height: 14px;
    background: #e2e8f0;
    border: 3px solid #fff;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 0 2px #f1f5f9;
    margin-top: 4px;
}

/* İlk kayıt (En yeni) renkli olsun */
.feed-item:first-child .feed-dot {
    background: #2563eb;
    box-shadow: 0 0 0 3px #eff6ff;
}

.feed-content {
    flex: 1;
}

.feed-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

.feed-msg {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    display: inline-block;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .feed-msg { display: block; width: 100%; }
}

/* ============================================================
   BÖLÜM 18: MODERN FATURA / SİPARİŞ DETAY MODALI (v17.0)
   ============================================================ */

/* Modal İçerik Kapsayıcısı */
.invoice-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* 1. Başlık Alanı (Gri/Mavi Arkaplanlı) */
.invoice-head {
    background: #F8FAFC;
    padding: 25px 30px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.invoice-brand h3 {
    margin: 0;
    font-size: 20px;
    color: #0F172A;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.invoice-meta-badges {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.meta-date {
    font-size: 12px;
    color: #64748B;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 2. Bilgi Grid'i (Müşteri vs.) */
.invoice-info-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 25px 30px;
}

.info-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #94A3B8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-group p {
    margin: 0;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
    line-height: 1.4;
}

.info-highlight {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

/* 3. Tablo Alanı */
.invoice-body {
    padding: 0 30px 20px 30px;
}

.invoice-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.invoice-table-modern th {
    background: #fff;
    color: #64748B;
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 0;
    border-bottom: 2px solid #E2E8F0;
    font-weight: 700;
}

.invoice-table-modern td {
    padding: 12px 0;
    border-bottom: 1px dashed #E2E8F0;
    font-size: 13px;
    color: #334155;
    vertical-align: middle;
}

.invoice-table-modern tr:last-child td {
    border-bottom: none;
}

/* İade Satırı Özel Stil */
.row-return td {
    color: #DC2626 !important;
    font-weight: 500;
}
.row-return .cell-code {
    background: #FEF2F2;
    color: #DC2626;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* 4. Alt Özet ve Butonlar */
.invoice-footer-section {
    background: #F8FAFC;
    padding: 20px 30px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.invoice-actions-left {
    display: flex;
    gap: 10px;
}

.invoice-summary-right {
    width: 280px;
    text-align: right;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 8px;
}

.summary-line.grand-total {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    border-top: 1px solid #CBD5E1;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Küçük ekran düzenlemesi */
@media (max-width: 600px) {
    .invoice-footer-section { flex-direction: column; gap: 20px; }
    .invoice-summary-right { width: 100%; }
    .invoice-info-row { grid-template-columns: 1fr; gap: 15px; }
}
/* ============================================================
   BÖLÜM 20: NET OKUNABİLİR KART TASARIMI (v56.0)
   ============================================================ */

/* 1. ARKA PLAN VE GENEL YAPI */
.portal-body {
    /* Koyu degrade arka plan (Koruyoruz) */
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    padding-bottom: 60px;
    color: #334155;
}

.portal-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. BEYAZ "PENCERE" KARTLAR (EN ÖNEMLİ KISIM) */
.search-card, .content-card, .faq-section {
    background-color: #FFFFFF !important; /* Bembeyaz Zemin */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); /* Derinlik Gölgesi */
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

/* Kart Başlıkları */
.search-card h1, .content-card h3, .faq-section h2 {
    color: #0F172A !important; /* Koyu Lacivert Başlık */
    font-weight: 800;
    margin-top: 0;
    text-align: center;
}

.search-card p, .tl-content p {
    color: #64748B !important; /* Okunabilir Gri Metin */
}

/* 3. SSS (SIKÇA SORULAN SORULAR) ÖZEL TASARIMI */
.faq-section {
    margin-top: 0; /* Ayrı bir kart gibi dursun */
}

.faq-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 15px;
}

.faq-item {
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    transition: background 0.3s;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
    padding: 15px 10px;
    font-weight: 600;
    color: #334155; /* Koyu Gri Soru */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q:hover { color: #2563EB; } /* Mouse gelince mavi olsun */

.faq-a {
    padding: 0 10px 15px 10px;
    font-size: 14px;
    color: #475569; /* Cevap Rengi */
    line-height: 1.6;
    display: none; /* Gizli */
}

/* Açıkken */
.faq-item.open .faq-a { display: block; animation: slideDown 0.3s ease; }
.faq-item.open .faq-q { color: #2563EB; font-weight: 700; }
.faq-item.open { background-color: #F8FAFC; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. TIMELINE (YATAY ZAMAN ÇİZELGESİ) */
.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 30px;
}

/* Çizgi */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 20px; left: 30px; right: 30px;
    height: 3px;
    background: #E2E8F0;
    z-index: 0;
}

.tl-item {
    position: relative;
    z-index: 1;
    width: 25%;
    text-align: center;
    opacity: 0.4; /* Pasif */
    filter: grayscale(100%);
    transition: all 0.4s;
}

.tl-item.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.tl-icon {
    width: 40px; height: 40px;
    background: #fff;
    border: 3px solid #E2E8F0;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    color: #94A3B8;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tl-item.active .tl-icon {
    border-color: #2563EB;
    background: #2563EB;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.tl-content h4 { font-size: 12px; margin: 0; color: #1E293B; font-weight: 700; }
.tl-content p { font-size: 10px; margin: 2px 0 0; color: #64748B; }

/* 5. MOBİL UYUMLULUK */
@media (max-width: 480px) {
    .portal-container { padding: 0 15px; }
    .search-card, .content-card, .faq-section { padding: 20px; }
}
/* ============================================================
   BÖLÜM 21: PORTAL GÖNDERİM REHBERİ TASARIMI
   ============================================================ */

/* Form Düzeni Güncellemesi */
.form-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Yarı yarıya böl */
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .form-layout-grid { grid-template-columns: 1fr; }
}

/* Rehber Kartı */
.shipping-guide-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
}

.shipping-guide-card h5 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #1E293B;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E2E8F0;
}

.shipping-guide-card h5 i { color: #3B82F6; }

/* Liste Öğeleri */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gi-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748B;
    flex-shrink: 0;
}

.gi-text strong {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 2px;
}

.gi-text p {
    margin: 0;
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

/* Uyarı Tipi (Sarı/Turuncu) */
.guide-item.warning .gi-icon {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: #EA580C;
}

.guide-item.warning .gi-text strong { color: #C2410C; }
/* ============================================================
   BÖLÜM 22: MOBİL UYUMLULUK (PORTAL - v17.17)
   ============================================================ */

/* TABLET VE ALT (1100px altı) */
@media (max-width: 1100px) {
    .hero-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* Sol Taraf (Arama) */
    .hero-left {
        width: 100%;
        border-right: none;
        padding: 40px 20px;
        min-height: auto;
        border-bottom: 1px solid #e2e8f0;
    }

    /* Sağ Taraf (Sonuçlar) */
    .hero-right {
        width: 100%;
        padding: 0;
        background: #f8fafc;
        display: none; /* Varsayılan gizli */
    }

    /* Eğer sonuç alanı görünürse sağ tarafı aç */
    .hero-right:has(.portal-dash-container:not(.hidden)) {
        display: block;
        min-height: 100vh;
    }

    .hero-image-container {
        display: none; /* Mobilde arka plan resmini gizle */
    }

    .portal-dash-container {
        padding: 20px;
    }
}

/* MOBİL VE KÜÇÜK EKRANLAR (768px altı) */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        padding: 0 20px;
    }
    .nav-links {
        display: none; /* Menüyü mobilde sadeleştir */
    }
    .portal-nav {
        padding: 10px 0;
    }
    .logo {
        font-size: 20px;
    }

    /* Başlık Kartı (Müşteri & Tutar) */
    .dash-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .dh-left {
        width: 100%;
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 15px;
        margin-bottom: 0;
    }

    .dh-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .dh-right h3 {
        font-size: 15px;
    }

    /* Form ve Rehber Izgarası */
    .form-layout-grid {
        grid-template-columns: 1fr; /* Tek kolon */
        gap: 30px;
    }
    
    /* Inputlar */
    .input-floating input {
        font-size: 14px;
    }
    
    /* Timeline (Yatay Süreç) */
    .timeline-horizontal-colorful {
        overflow-x: auto; /* Taşan kısmı kaydır */
        padding-bottom: 20px;
        justify-content: flex-start;
        gap: 20px;
    }
    .tm-step {
        min-width: 90px; /* Her adımın minimum genişliği */
    }
    
    /* Alt Bilgi Çubuğu */
    .info-bar-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 0 20px;
    }
    
    /* Modallar */
    .modal-content {
        width: 95% !important;
        margin: 10px;
        padding: 20px !important;
    }
    
    /* Yeni Gönderim Rehberi */
    .shipping-guide-card {
        margin-top: 10px;
        background: #fff;
    }
    
    .guide-item {
        font-size: 12px;
    }
}
/* style.css - EN ALTA EKLE */

/* Desi Çoklu Paket Satırları */
.desi-row {
    display: grid; 
    /* GÜNCELLENDİ: Adet (60px) + En + Boy + Yükseklik + Sil Butonu (40px) */
    grid-template-columns: 60px 1fr 1fr 1fr 40px; 
    gap: 8px; 
    margin-bottom: 8px;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.desi-row input {
    margin: 0 !important;
    padding: 8px !important;
    text-align: center;
    font-size: 13px;
    height: 40px; /* Yüksekliği biraz artırıp modernleştirdik */
    min-height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.desi-row input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modern Silme Butonu */
.btn-remove-row {
    background: #fff; /* Varsayılan beyaz */
    color: #94a3b8;   /* Pasif gri ikon */
    border: 1px solid #e2e8f0; /* Inputlarla aynı çerçeve */
    border-radius: 8px;
    width: 40px;      /* Input yüksekliğiyle aynı */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-remove-row:hover {
    background: #fee2e2; /* Hover: Açık Kırmızı Zemin */
    color: #ef4444;      /* Hover: Kırmızı İkon */
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.btn-remove-row:active {
    transform: translateY(0);
}
/* ============================================================
   v34.1 - DİNAMİK TALEP MODALI TASARIMI
   ============================================================ */

/* Modal Başlık ve Bilgi Alanı */
.modal-info-header {
    background: #F1F5F9;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.modal-info-group label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748B;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.modal-info-group input {
    background: #fff;
    border: 1px solid #CBD5E1;
    font-weight: 600;
    color: #334155;
    height: 38px;
    min-height: 38px;
    margin: 0;
}

/* --- ANA GRID YAPISI (GÜNCELLENDİ) --- */
.modal-split-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Varsayılan: Sol Dar, Sağ Geniş */
    gap: 25px;
    align-items: start;
    transition: all 0.3s ease; /* Yumuşak geçiş */
}

/* YENİ: Tek Kolon Modu (Sağ taraf gizliyken devreye girer) */
.modal-split-layout.single-mode {
    grid-template-columns: 1fr; /* Tam genişlik */
}

/* Sol Panel Stili */
.modal-left-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Tek kolon modunda sol panelin iç yapısını güzelleştir */
.modal-split-layout.single-mode .modal-left-panel {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dropdownları yan yana al */
    gap: 20px;
}

/* Tek kolon modunda açıklama alanı (textarea) tüm satırı kaplasın */
.modal-split-layout.single-mode .modal-left-panel .full-width-item {
    grid-column: span 2;
}

/* Sağ Panel Alanları (Kartlar) */
.action-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    animation: fadeIn 0.3s ease;
}

.action-card-header {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-card-header i { color: #3B82F6; }

/* Ürün Seçim Listesi */
.product-select-list {
    max-height: 250px;
    overflow-y: auto;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 5px;
}

/* Sevk Fişi Tablosu */
.dispatch-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.dispatch-table th { background: #F1F5F9; padding: 5px; text-align: left; color: #64748B; }
.dispatch-table td { border-bottom: 1px solid #E2E8F0; padding: 5px; color: #334155; }

/* Mobilde Tek Kolona Düşür */
@media (max-width: 800px) {
    .modal-info-header { grid-template-columns: 1fr; }
    .modal-split-layout { grid-template-columns: 1fr !important; }
    .modal-split-layout.single-mode .modal-left-panel { grid-template-columns: 1fr; }
    .modal-split-layout.single-mode .modal-left-panel .full-width-item { grid-column: span 1; }
}
.form-dual-row {
    display: grid;
    /* GÜNCELLENDİ: 1fr 1fr yerine 1.5fr 1fr yaptık. 
       Butonlar daha geniş, select kutusu daha dar ama sıkışık değil. */
    grid-template-columns: 1.5fr 1fr; 
    gap: 20px;
    align-items: start; 
    margin-bottom: 15px;
}
/* Buton Grubu Kutusu */
.type-segment-container {
    display: flex;
    background: #F1F5F9;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    gap: 5px;
    height: 50px;
    align-items: center;
    box-sizing: border-box;
    width: 100%; /* Tam genişlik */
}

/* Tekil Buton Stili */
.type-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 5px; /* Padding azaltıldı, sığması için */
    height: 38px;
    border-radius: 8px;
    color: #64748B;
    font-weight: 600;
    font-size: 13px; /* Mobilde taşmasın diye 14px'den 13px'e çektim */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap; /* Yazı alt satıra inmesin */
}

.type-btn:hover { background: rgba(255,255,255,0.6); color: #334155; }

.type-btn.active {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transform: scale(1.02);
}

/* Türlere Göre Aktif Renkler */
.type-btn[data-val="iade"].active { color: #3B82F6; } /* Mavi */
.type-btn[data-val="degisim"].active { color: #F59E0B; } /* Turuncu */
.type-btn[data-val="iptal"].active { color: #EF4444; } /* Kırmızı */

/* Talep Modalındaki Select Kutusunu da Eşitle */
#modalReturnStatus {
    height: 50px !important; 
    min-height: 50px !important;
    font-size: 14px;
    width: 100%; /* Kapsayıcıyı doldur */
}

.type-btn i { font-size: 15px; }

/* ============================================================
   BÖLÜM 23: MODERN SAYFALAMA (PAGINATION) - v16.4
   ============================================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Butonlar arası boşluk */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #E2E8F0; /* Üstüne ince bir çizgi */
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    color: #64748B; /* Pasif yazı rengi */
    border-radius: 8px; /* Modern yuvarlak köşeler */
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Hafif gölge */
}

/* Mouse ile üzerine gelince */
.page-btn:hover:not(:disabled):not(.active) {
    border-color: #BFDBFE;
    color: #2563EB;
    background: #EFF6FF;
    transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
}

/* Aktif Sayfa (Seçili Olan) */
.page-btn.active {
    background: #3B82F6; /* Alfais Mavisi */
    color: #ffffff;
    border-color: #3B82F6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4); /* Mavi parlama efekti */
    cursor: default;
    pointer-events: none; /* Tıklanmasın */
}

/* Pasif Butonlar (İlk sayfadayken Geri butonu vb.) */
.page-btn:disabled {
    background: #F1F5F9;
    color: #CBD5E1;
    border-color: #F1F5F9;
    cursor: not-allowed;
    box-shadow: none;
}

/* ... (Noktalar) için stil */
.pagination-container span {
    color: #94A3B8;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0 5px;
}
 /* ============================================================
   BÖLÜM 24 GÜNCELLEME (v16.12) - GLOBAL FLOATING TABLE
   ============================================================ */

/* 1. Tablo Taşıyıcı (Wrapper) Temizliği */
/* Tablonun bulunduğu kutunun çizgilerini ve arka planını kaldırır */
.table-responsive.clean-mode {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important; /* Gölgelerin kesilmemesi için */
}

/* 2. Floating Table Genel Yapısı */
.modern-floating-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Kartlar arası boşluk */
    margin-top: -10px;
}

/* Başlıklar */
.modern-floating-table thead th {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 800;
    color: #94A3B8;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left; /* Varsayılan sola yaslı */
}

/* Satır Kartları */
.modern-floating-table tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.08); /* Hafif gölge */
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
}

.modern-floating-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(148, 163, 184, 0.15);
    position: relative;
    z-index: 10;
}

/* Hücreler */
.modern-floating-table tbody td {
    border: none;
    padding: 18px 20px;
    vertical-align: middle;
    color: #334155;
    font-size: 14px;
    background: #ffffff; /* Satır rengini hücreye ver */
}

/* Yuvarlak Köşeler (Satırın başı ve sonu) */
.modern-floating-table tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.modern-floating-table tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Tablo İçi Rozet (Badge) Düzeltmeleri */
.modern-floating-table .badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Küçük butonlar için ayar */
.modern-floating-table .btn-sm {
    border-radius: 8px;
    padding: 6px 12px;
}
/* ============================================================
   BÖLÜM 26: DESİ TABLOSU İÇERİK STİLLERİ (v16.16)
   ============================================================ */

/* Tarih Kutusu */
.ft-date-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ft-day { font-weight: 700; color: #0F172A; font-size: 13px; }
.ft-time { font-size: 11px; color: #94A3B8; }

/* Müşteri Alanı */
.ft-customer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #334155;
}
.ft-customer-icon {
    width: 32px; height: 32px;
    background: #F1F5F9; color: #64748B;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

/* Değer Kutuları (Bizim/Kargo Desi) */
.ft-val-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ft-val-label { 
    font-size: 9px; 
    color: #94A3B8; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.ft-val-num { 
    font-weight: 800; 
    font-size: 16px; 
    letter-spacing: -0.5px;
}

/* Fark Rozetleri */
.ft-diff-badge {
    padding: 6px 12px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 13px;
    display: inline-block; 
    min-width: 70px; 
    text-align: center;
}
.diff-pos { background: #FEF2F2; color: #EF4444; border: 1px solid #FECACA; } /* Kırmızı (Fark var) */
.diff-neg { background: #ECFDF5; color: #10B981; border: 1px solid #A7F3D0; } /* Yeşil (Biz daha az ölçmüşüz) */
.diff-zero { background: #F8FAFC; color: #94A3B8; border: 1px solid #E2E8F0; } /* Gri (Eşit) */

/* Ölçü Badge */
.ft-dims-badge {
    background: #F8FAFC;       /* Çok açık gri zemin */
    color: #475569;            /* Koyu gri yazı */
    border: 1px solid #E2E8F0; /* İnce gri çerçeve */
    border-radius: 20px; 
    padding: 5px 12px; 
    font-weight: 700; 
    font-size: 11px;           /* Fontu biraz kibarlaştırdık */
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
/* ============================================================
   BÖLÜM 27: TALEP TÜRÜ BADGE STİLLERİ (YENİ)
   ============================================================ */
.badge-type {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* İade: Kırmızı/Pembe */
.badge-type-iade {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* Değişim: Mavi */
.badge-type-degisim {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

/* İptal: Gri/Koyu */
.badge-type-iptal {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
}
/* ============================================================
   BRAND / LOGO STİLİ
   ============================================================ */
.brand {
    font-size: 24px;       /* Okunaklı boyut */
    font-weight: 800;      /* Extra Bold (Çok Kalın) */
    color: #ffffff;        /* evaletim kısmı BEYAZ */
    letter-spacing: -1px;  /* Harfleri sıkılaştır (Modern görünüm) */
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    cursor: default;       /* Üzerine gelince imleç değişmesin */
}

.brand span {
    color: #3B82F6;        /* .com kısmı MAVİ (Primary Rengi) */
    font-weight: 800;      /* O da kalın */
}

/* Opsiyonel: Hafif bir parlama efekti istersen bunu da ekle */
.brand:hover span {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); /* Mavi parlama */
    transition: all 0.3s ease;
}

/* v17.6.1 - Zarif Sipariş No Kopyalama Butonu */
.btn-copy-sm {
    background: transparent;
    border: none;
    color: #CBD5E1; /* Varsayılan: Çok açık gri, neredeyse görünmez */
    cursor: pointer;
    padding: 0;
    border-radius: 50%; /* Tam daire */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Yumuşak, modern geçiş */
    margin-left: 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;  /* Sabit boyut */
    height: 26px;
    opacity: 0.6; /* Biraz şeffaflık */
}

/* Sadece satırın üzerine gelindiğinde butonu belirginleştir */
tr:hover .btn-copy-sm {
    opacity: 1;
    color: #94A3B8; /* Daha belirgin gri */
}

/* Butonun üzerine gelindiğinde */
.btn-copy-sm:hover {
    color: #3B82F6; /* Ana Mavi */
    background-color: #EFF6FF; /* Çok hafif mavi arka plan */
    transform: translateY(-1px); /* Hafif yukarı kalkma efekti */
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1); /* Çok hafif mavi gölge */
}

/* Tıklama anı */
.btn-copy-sm:active {
    transform: translateY(0) scale(0.95); /* Tıklama hissi */
    background-color: #DBEAFE;
}

/* Başarı (Kopyalandı) durumu */
.btn-copy-sm.copied {
    color: #059669 !important; /* Koyu Yeşil */
    background-color: #D1FAE5 !important; /* Açık yeşil arka plan */
    box-shadow: none;
    transform: none;
    opacity: 1;
}
/* style.css içine en alta ekleyebilirsiniz */

.hover-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.hover-row:hover {
    background-color: #F8FAFC;
}

/* Modal içindeki basit tablo için */
.simple-table {
    width: 100%;
    border-collapse: collapse;
}
.simple-table th, .simple-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.simple-table th {
    font-size: 12px;
    color: #64748B;
    background: #fff;
}
/* --- MODERN PAGINATION TASARIMI --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    border-radius: 0 0 12px 12px; /* Tablonun altına yapışık dursun */
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pagination-btn:hover:not(:disabled) {
    border-color: #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #f1f5f9;
    box-shadow: none;
}

.pagination-info {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}