/* ============================================================
   TEMA-YENİ — connect/ (OzyConnect Panel) referansından taşınan
   yeni tasarım dili. Sadece "body.tema-yeni" içindeki sayfalarda
   geçerli olacak şekilde İSİM ÇAKIŞMASINI önlemek için tüm
   seçiciler ".tema-yeni" öneki altında tutuluyor — eski
   Bootstrap4 sayfaları (.card/.badge/.btn kullanan) bundan
   ETKİLENMEZ. Sayfa sayfa dönüştürdükçe bu dosya büyüyecek.
   ============================================================ */

/* ---- Tema token'ları (light varsayılan, dark [data-theme] ile) ---- */
body.tema-yeni {
    --bg-body: #f0f2f5;
    --bg-sidebar: #ffffff;
    --bg-sidebar-hover: #f4f6f8;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;
    --bg-input: #f4f6f8;
    --bg-dropdown: #ffffff;
    --bg-table-hover: #f8fafc;
    --bg-table-stripe: #fafbfc;
    --bg-badge: #f1f5f9;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: #1967F2;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
    --shadow-card: 0 1px 4px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
    --shadow-btn: 0 2px 8px rgba(25,103,242,.25);
    --shadow-stat: 0 4px 20px rgba(0,0,0,.04);

    --primary: #1967F2;
    --primary-light: #4B8AF5;
    --primary-dark: #0F52D4;
    --primary-bg: rgba(25,103,242,.08);
    --success: #10b981;
    --success-bg: rgba(16,185,129,.08);
    --warning: #f59e0b;
    --warning-bg: rgba(245,158,11,.08);
    --danger: #ef4444;
    --danger-bg: rgba(239,68,68,.08);
    --info: #3b82f6;
    --info-bg: rgba(59,130,246,.08);
    --purple: #8b5cf6;
    --purple-bg: rgba(139,92,246,.08);
    --cyan: #06b6d4;
    --cyan-bg: rgba(6,182,212,.08);

    --stat-1: linear-gradient(135deg, #1967F2 0%, #4B8AF5 100%);
    --stat-2: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --stat-3: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    --stat-4: linear-gradient(135deg, #1967F2 0%, #06b6d4 100%);

    --radius-xs: 6px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-full: 9999px;
    --transition: all .2s cubic-bezier(.4,0,.2,1);

    background: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
body.tema-yeni[data-theme="dark"] {
    --bg-body: #0c0e14;
    --bg-sidebar: #12141c;
    --bg-sidebar-hover: #1a1d2b;
    --bg-card: #161822;
    --bg-card-hover: #1c1f2e;
    --bg-input: #1a1d2b;
    --bg-dropdown: #1a1d2b;
    --bg-table-hover: #1a1d2b;
    --bg-table-stripe: #14161e;
    --bg-badge: #1e2235;

    --border: #262a3a;
    --border-light: #1e2235;
    --border-focus: #4B8AF5;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.4);
    --shadow-card: 0 1px 4px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.1);
    --shadow-btn: 0 2px 12px rgba(25,103,242,.3);
    --shadow-stat: 0 4px 24px rgba(0,0,0,.2);

    --primary-bg: rgba(25,103,242,.12);
    --success-bg: rgba(16,185,129,.12);
    --warning-bg: rgba(245,158,11,.12);
    --danger-bg: rgba(239,68,68,.12);
    --info-bg: rgba(59,130,246,.12);
    --purple-bg: rgba(139,92,246,.12);
    --cyan-bg: rgba(6,182,212,.12);
}

/* ---- Sayfa iskeleti ---- */
.tema-yeni .app-layout { display: flex; flex-direction: column; min-height: 100vh; }
.tema-yeni .page-content { flex: 1; padding: 24px 28px 40px; width: 100%; box-sizing: border-box; }
.tema-yeni .page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.tema-yeni .page-head h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0; }

/* ---- Üst çubuk 1. satır: marka + kullanıcı ---- */
.tema-yeni .tb1 { background: var(--bg-sidebar); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 101; }
.tema-yeni .tb1-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 52px; width: 100%; box-sizing: border-box; }
.tema-yeni .tb1-left { display: flex; align-items: center; gap: 14px; }
.tema-yeni .tb1-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tema-yeni .tb1-logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #1967F2, #4B8AF5); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(25,103,242,.3); flex-shrink: 0; }
.tema-yeni .tb1-logo img { width: 22px; height: 22px; object-fit: cover; border-radius: 6px; }
.tema-yeni .tb1-name { font-size: 17px; font-weight: 700; color: var(--text-primary); letter-spacing: -.3px; }
.tema-yeni .tb1-sub { font-size: 10px; color: var(--text-muted); margin-left: -2px; }
.tema-yeni .tb1-right { display: flex; align-items: center; gap: 10px; }
.tema-yeni .tb1-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.tema-yeni .tb1-user { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 20px; background: var(--bg-sidebar-hover); cursor: pointer; position: relative; }
.tema-yeni .tb1-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #1967F2, #4B8AF5); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 11px; overflow: hidden; flex-shrink: 0; }
.tema-yeni .tb1-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tema-yeni .tb1-uname { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.tema-yeni .tb1-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: transparent; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; transition: var(--transition); text-decoration: none; position: relative; }
.tema-yeni .tb1-btn:hover { background: var(--bg-sidebar-hover); color: var(--text-primary); border-color: var(--primary); }
.tema-yeni .tb1-btn i, .tema-yeni .tb1-btn svg { width: 16px; height: 16px; }

/* ---- Üst çubuk 2. satır: gruplu ribbon navigasyon ---- */
/* ❗❗ top:53px (52 DEĞİL) — .tb1'in kendi border-bottom'u (1px) dahil gerçek yüksekliği 53px;
   52px yazılırsa iki satır arasında sayfa arkaplanının göründüğü 1px'lik bir aralık/çizgi oluşuyor. */
.tema-yeni .tb2 { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 53px; z-index: 100; }
/* ❗ (kullanıcı kararı) tb1/tb2/page-content ÜÇÜ DE tam sayfa genişliğini kullanıyor — ortalanmış/
   sınırlı kutu denemesi hem gereksiz boşluğa hem (çok grup/öğe olduğu için) gerçek taşmaya yol
   açmıştı. */
/* ❗❗❗ (kullanıcı canlıda kanıtladı — "İncele" ile doğrulandı: div.tb2-inner) Birkaç genişlik/
   flex denemesi de tam gidermedi; kesin kanıtlanmış tek çözüm YATAY KAYDIRMAYI TAMAMEN
   KALDIRMAK — `overflow-x: auto` yerine `flex-wrap: wrap` kullanılıyor. Böylece 10 grup/21 öğe
   mevcut genişliğe sığmazsa satır kaydırma çubuğu yerine ikinci bir satıra sarıyor — yatay
   kaydırma çubuğunun hiç ortaya çıkması artık YAPISAL OLARAK imkansız (tahmine dayalı piksel
   hesabına bağımlı değil). */
.tema-yeni .tb2-inner { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; padding: 0; gap: 0; overflow-x: visible; width: 100%; box-sizing: border-box; }
.tema-yeni .nb-group { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--border); flex: 1 1 auto; min-width: 0; }
.tema-yeni .nb-group:last-child { border-right: none; }
.tema-yeni .nb-group-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); font-weight: 700; padding: 6px 0 0; width: 100%; text-align: center; }
.tema-yeni .nb-group-items { display: flex; gap: 0; padding: 0 4px 6px; justify-content: center; width: 100%; min-width: 0; }
/* ❗❗ (kullanıcı canlıda kanıtladı, birkaç deneme sonrası) Sabit piksel genişlik (width/min-width)
   10 grup × 21 öğe için gerçek/genellikle sadece birkaç pikseli bulan bir taşmaya yol açıyordu —
   bu görsel olarak "sadece bir çizgi" gibi görünen ama gerçek bir yatay kaydırma çubuğunu
   tetikliyordu. `flex: 1 1 ...` + `min-width` (sabit `width` DEĞİL) ile öğeler gerçekten
   küçülüyor/büyüyor, satır her zaman mevcut genişliğe tam oturuyor — artık kaydırmaya hiç gerek
   kalmıyor (900px altı zaten mobil çekmeceye düşüyor, bkz. @media 900px).
*/
.tema-yeni .nb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 1 1 44px; min-width: 44px; max-width: 74px; padding: 6px 2px 8px; border-radius: 8px; color: var(--text-muted); font-weight: 500; font-size: 10px; text-decoration: none; white-space: nowrap; transition: var(--transition); overflow: hidden; box-sizing: border-box; }
.tema-yeni .nb-item > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tema-yeni .nb-item:hover { color: var(--text-primary); background: var(--bg-sidebar-hover); }
.tema-yeni .nb-item.active { color: var(--primary); background: var(--primary-bg); font-weight: 700; }
.tema-yeni .nb-item.active i, .tema-yeni .nb-item.active svg { color: var(--primary); }
.tema-yeni .nb-item i, .tema-yeni .nb-item svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.5; }
@media (max-width: 1400px) { .tema-yeni .nb-item { font-size: 9.5px; padding: 5px 2px 7px; } .tema-yeni .nb-item i, .tema-yeni .nb-item svg { width: 18px; height: 18px; } }
@media (max-width: 768px) { .tema-yeni .tb1-inner { padding: 0 12px; height: 46px; } .tema-yeni .tb1-date, .tema-yeni .tb1-uname { display: none; } }

/* ---- Bildirim/görev/destek dropdown'ları (paylaşılan kalıp) ---- */
.tema-yeni .notif-wrap { position: relative; }
.tema-yeni .notif-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; border-radius: 9px; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 6px rgba(239,68,68,.4); }
.tema-yeni .notif-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: 90vw; background: var(--bg-dropdown); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; overflow: hidden; }
.tema-yeni .notif-dropdown.show { display: block; }
.tema-yeni .notif-dropdown-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text-primary); }
.tema-yeni .notif-clear-btn { background: none; border: none; color: var(--primary); font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.tema-yeni .notif-clear-btn:hover { background: var(--primary-bg); }
.tema-yeni .notif-list { max-height: 280px; overflow-y: auto; }
.tema-yeni .notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 12.5px; color: var(--text-secondary); text-decoration: none; }
.tema-yeni .notif-item:last-child { border-bottom: none; }
.tema-yeni .notif-item:hover { background: var(--bg-sidebar-hover); }
.tema-yeni .notif-item.unread { font-weight: 700; color: var(--text-primary); }
.tema-yeni .notif-item .time { font-size: 10.5px; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 2px; }
.tema-yeni .notif-empty { padding: 24px 16px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* ---- Kullanıcı dropdown ---- */
.tema-yeni .user-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; background: var(--bg-dropdown); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; overflow: hidden; }
.tema-yeni .user-dropdown.show { display: block; }
.tema-yeni .user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.tema-yeni .user-dropdown a:hover { background: var(--bg-sidebar-hover); color: var(--text-primary); }
.tema-yeni .user-dropdown a i, .tema-yeni .user-dropdown a svg { width: 15px; height: 15px; }

/* ---- Kartlar / istatistik kutuları ---- */
.tema-yeni .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tema-yeni .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; box-shadow: var(--shadow-stat); transition: var(--transition); position: relative; overflow: hidden; text-decoration: none; }
.tema-yeni .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.tema-yeni .stat-card.grad-1::before { background: var(--stat-1); }
.tema-yeni .stat-card.grad-2::before { background: var(--stat-2); }
.tema-yeni .stat-card.grad-3::before { background: var(--stat-3); }
.tema-yeni .stat-card.grad-4::before { background: var(--stat-4); }
.tema-yeni .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tema-yeni .stat-info { flex: 1; min-width: 0; }
.tema-yeni .stat-info h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 8px; }
.tema-yeni .stat-value { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.tema-yeni .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.tema-yeni .stat-sub strong { color: var(--text-primary); }
.tema-yeni .stat-icon { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tema-yeni .stat-icon i, .tema-yeni .stat-icon svg { width: 22px; height: 22px; }
.tema-yeni .stat-icon.purple { background: var(--purple-bg); color: var(--purple); }
.tema-yeni .stat-icon.success { background: var(--success-bg); color: var(--success); }
.tema-yeni .stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.tema-yeni .stat-icon.info { background: var(--info-bg); color: var(--info); }
.tema-yeni .stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.tema-yeni .stat-icon.primary { background: var(--primary-bg); color: var(--primary); }

.tema-yeni .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: var(--transition); overflow: hidden; }
.tema-yeni .card:hover { box-shadow: var(--shadow-md); }
/* ❗ (2026-08-19, kullanıcı bildirdi — "aşağı doğru açılıyor ama seçenekler seçilemiyor") urunler.php'deki
   "Gönderilmemiş Pazaryerleri" filtre dropdown'ı (Bootstrap .dropdown-menu, position:absolute) bu kartın
   içinde — kart overflow:hidden ile köşeleri yuvarlatıyor ama açılan liste kart sınırının altına taştığında
   kesiliyordu. Bu kartta köşe dışına taşıp kırpılması gereken bir çocuk (renkli header/görsel) yok, o yüzden
   SADECE bu kart için overflow'u açmak güvenli. */
.tema-yeni .card.filtre-karti { overflow: visible; }
.tema-yeni .card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tema-yeni .card-header h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.tema-yeni .card-header h3 i, .tema-yeni .card-header h3 svg { width: 16px; height: 16px; color: var(--primary); }
.tema-yeni .card-body { padding: 20px; }
.tema-yeni .card-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.tema-yeni .card-link { font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.tema-yeni .card-link:hover { text-decoration: underline; }
.tema-yeni .card-link i, .tema-yeni .card-link svg { width: 14px; height: 14px; }

.tema-yeni .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tema-yeni .grid-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
@media (max-width: 1024px) { .tema-yeni .grid-2, .tema-yeni .grid-7-5 { grid-template-columns: 1fr; } }

.tema-yeni .table-wrapper { overflow-x: auto; }
.tema-yeni .data-table { width: 100%; border-collapse: collapse; }
.tema-yeni .data-table thead th { padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); background: var(--bg-table-stripe); border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.tema-yeni .data-table tbody td { padding: 10px 14px; font-size: 12.5px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.tema-yeni .data-table tbody tr:hover { background: var(--bg-table-hover); }
.tema-yeni .data-table tbody tr:last-child td { border-bottom: none; }

.tema-yeni .badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.tema-yeni .badge-success { background: var(--success-bg); color: var(--success); }
.tema-yeni .badge-warning { background: var(--warning-bg); color: var(--warning); }
.tema-yeni .badge-danger { background: var(--danger-bg); color: var(--danger); }
.tema-yeni .badge-info { background: var(--info-bg); color: var(--info); }
.tema-yeni .badge-primary { background: var(--primary-bg); color: var(--primary); }
.tema-yeni .badge-secondary { background: var(--bg-badge); color: var(--text-muted); }

.tema-yeni .btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; text-decoration: none; line-height: 1.4; }
.tema-yeni .btn i, .tema-yeni .btn svg { width: 15px; height: 15px; }
.tema-yeni .btn:active { transform: scale(.97); }
.tema-yeni .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow-btn); }
.tema-yeni .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(25,103,242,.4); color: #fff; }
.tema-yeni .btn-success { background: var(--success); color: #fff; }
.tema-yeni .btn-warning { background: var(--warning); color: #fff; }
.tema-yeni .btn-danger { background: var(--danger); color: #fff; }
.tema-yeni .btn-secondary { background: var(--bg-input); color: var(--text-secondary); border-color: var(--border); }
.tema-yeni .btn-secondary:hover { background: var(--bg-sidebar-hover); color: var(--text-primary); border-color: var(--primary); }
.tema-yeni .btn-sm { padding: 6px 12px; font-size: 12px; }

.tema-yeni .empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.tema-yeni .empty-state i, .tema-yeni .empty-state svg { width: 40px; height: 40px; margin-bottom: 10px; opacity: .5; display: block; margin-left: auto; margin-right: auto; }
.tema-yeni .empty-state p { font-size: 13px; font-weight: 500; margin: 0; }

/* ---- Formlar ---- */
.tema-yeni .form-group { margin-bottom: 16px; }
.tema-yeni .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.tema-yeni .form-input, .tema-yeni .form-select, .tema-yeni .form-textarea { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 13px; transition: var(--transition); }
.tema-yeni .form-input:focus, .tema-yeni .form-select:focus, .tema-yeni .form-textarea:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--primary-bg); background: var(--bg-card); }
.tema-yeni .form-input::placeholder { color: var(--text-muted); }
.tema-yeni .form-select { cursor: pointer; }
.tema-yeni .form-textarea { min-height: 100px; resize: vertical; }
.tema-yeni .theme-input-style { display: block; width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-primary); font-size: 13px; font-family: inherit; transition: var(--transition); }
.tema-yeni .theme-input-style:focus { outline: none; border-color: var(--primary); }

/* ---- Toggle switch — eski temanın .switch/.control ikilisiyle AYNI markup'ı kullanır
   (label.switch > input[type=checkbox] + span.control), sadece tema-yeni'ye özgü sade bir
   görsel; style.css'in kalabalık .switch tanımıyla çakışmasın diye .tema-yeni içine kapsanmış. */
.tema-yeni .switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.tema-yeni .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tema-yeni .switch .control { position: absolute; inset: 0; background: var(--bg-badge); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s; }
.tema-yeni .switch .control:after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tema-yeni .switch input:checked ~ .control { background: var(--primary); border-color: var(--primary); }
.tema-yeni .switch input:checked ~ .control:after { transform: translateX(18px); }
.tema-yeni .switch input:disabled ~ .control { opacity: .5; cursor: default; }

/* ---- Filtre çubuğu ---- */
.tema-yeni .filter-bar { display: flex; align-items: flex-end; gap: 14px; padding: 16px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 20px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.tema-yeni .filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }
.tema-yeni .filter-bar-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* ---- Mobil çekmece menü ---- */
.tema-yeni .mob-hamburger { display: none; }
.tema-yeni .mob-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; }
.tema-yeni .mob-drawer-overlay.show { display: block; }
.tema-yeni .mob-drawer { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: var(--bg-sidebar); z-index: 301; overflow-y: auto; }
.tema-yeni .mob-drawer.show { display: block; }
.tema-yeni .mob-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.tema-yeni .mob-drawer-close { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: none; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.tema-yeni .mob-nav-group { padding: 10px 8px 4px; }
.tema-yeni .mob-nav-group-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; padding: 6px 8px; }
.tema-yeni .mob-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 600; }
.tema-yeni .mob-nav-item.active { color: var(--primary); background: var(--primary-bg); }
.tema-yeni .mob-nav-item i, .tema-yeni .mob-nav-item svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
    .tema-yeni .tb2 { display: none; }
    .tema-yeni .mob-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 30px; height: 30px; background: none; border: none; cursor: pointer; }
    .tema-yeni .mob-hamburger span { display: block; width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; }
}

/* ---- Uyarı/flash mesajları ---- */
.tema-yeni .flash-message { padding: 12px 18px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.tema-yeni .flash-success { background: var(--success-bg); color: var(--success); }
.tema-yeni .flash-error { background: var(--danger-bg); color: var(--danger); }
.tema-yeni .flash-warning { background: var(--warning-bg); color: var(--warning); }
.tema-yeni .flash-info { background: var(--info-bg); color: var(--info); }

/* ============================================================
   ANASAYFA (dashboard) — connect/views/dashboard/index.php'den
   ============================================================ */
.tema-yeni .db-page { display: flex; flex-direction: column; gap: 20px; }

.tema-yeni .db-welcome { background: linear-gradient(135deg,#1967F2 0%,#4B8AF5 50%,#7BABF7 100%); border-radius: var(--radius-lg); padding: 26px 30px; color: #fff; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; position: relative; overflow: hidden; }
.tema-yeni .db-welcome::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(255,255,255,.08); border-radius: 50%; }
.tema-yeni .db-welcome-text h1 { font-size: 21px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.tema-yeni .db-welcome-text p { margin: 0; font-size: 13px; opacity: .85; }
.tema-yeni .db-welcome-actions { display: flex; gap: 8px; z-index: 1; position: relative; }
.tema-yeni .db-welcome-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 10px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.tema-yeni .db-welcome-btn i, .tema-yeni .db-welcome-btn svg { width: 14px; height: 14px; }
.tema-yeni .db-welcome-btn-white { background: rgba(255,255,255,.2); color: #fff; }
.tema-yeni .db-welcome-btn-white:hover { background: rgba(255,255,255,.35); color: #fff; }
.tema-yeni .db-welcome-btn-solid { background: #fff; color: #1967F2; }
.tema-yeni .db-welcome-btn-solid:hover { background: #f5f3ff; color: #1967F2; }

.tema-yeni .db-mp-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-light); }
.tema-yeni .db-mp-row:last-child { border-bottom: none; }
.tema-yeni .db-mp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tema-yeni .db-mp-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.tema-yeni .db-mp-name { font-size: 13px; font-weight: 600; flex: 1; color: var(--text-primary); }
.tema-yeni .db-mp-vals { text-align: right; }
.tema-yeni .db-mp-vals .count { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.tema-yeni .db-mp-vals .rev { font-size: 11px; color: var(--text-muted); }

.tema-yeni .db-order-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 12px; text-decoration: none; color: inherit; }
.tema-yeni .db-order-row:last-child { border-bottom: none; }
.tema-yeni .db-order-row:hover { background: var(--bg-table-hover); }
.tema-yeni .db-order-id { font-weight: 700; color: var(--primary); font-family: 'Fira Code', monospace; font-size: 11px; min-width: 90px; }
.tema-yeni .db-order-customer { flex: 1; color: var(--text-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tema-yeni .db-order-amount { font-weight: 700; min-width: 80px; text-align: right; color: var(--text-primary); }

.tema-yeni .db-low-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.tema-yeni .db-low-row:last-child { border-bottom: none; }
.tema-yeni .db-low-sku { font-family: monospace; font-size: 11px; color: var(--text-muted); min-width: 80px; }
.tema-yeni .db-low-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.tema-yeni .db-low-qty { font-weight: 700; color: var(--danger); background: var(--danger-bg); padding: 2px 10px; border-radius: 8px; font-size: 12px; }

.tema-yeni .db-attn-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-light); text-decoration: none; color: inherit; }
.tema-yeni .db-attn-row:last-child { border-bottom: none; }
.tema-yeni .db-attn-row:hover { color: var(--primary); }
.tema-yeni .db-attn-left { display: flex; align-items: center; gap: 10px; }
.tema-yeni .db-attn-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--warning-bg); color: var(--warning); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tema-yeni .db-attn-icon i, .tema-yeni .db-attn-icon svg { width: 16px; height: 16px; }
.tema-yeni .db-attn-count { font-weight: 700; font-size: 14px; background: var(--primary-bg); color: var(--primary); border-radius: 20px; padding: 2px 12px; }

/* ============================================================
   LİSTE SAYFALARI (siparişler/iadeler/soru-cevap vb.) — ortak
   bileşenler. Sınıf adları BİLEREK korunuyor: assets/js/veri-cek.js
   ve sayfa içi jQuery kodu bu isimlere DOM seçici olarak bağımlı —
   burada SADECE görünüm (renk/radius/gölge) tema token'larına
   taşınıyor, hiçbir sınıf adı değişmiyor.
   ============================================================ */

/* ---- Pazaryeri filtre sekmeleri (mp-tab) ---- */
.tema-yeni .mp-tab-satiri { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 8px; padding-bottom: 6px; margin-bottom: 16px; }
.tema-yeni .mp-tab { flex: 0 0 auto; display: flex; align-items: center; padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 600; transition: var(--transition); }
.tema-yeni .mp-tab:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.tema-yeni .mp-tab.aktif { background: var(--primary); border-color: var(--primary); color: #fff; }
.tema-yeni .mp-tab img { width: 22px; height: 22px; object-fit: contain; margin-right: 8px; }
.tema-yeni .mp-tab i { font-size: 18px; margin-right: 8px; }
.tema-yeni .mp-tab-sayi { margin-left: 6px; font-weight: 700; opacity: .85; }

/* ---- Pazaryeri büyük kutu sekmeleri (mp-tile — logo + altında adet sayacı) ---- */
.tema-yeni .mp-tile-row { display: flex; gap: 12px; margin-bottom: 18px; }
.tema-yeni .mp-tile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 8px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; transition: var(--transition); }
.tema-yeni .mp-tile:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tema-yeni .mp-tile.aktif { border-color: var(--primary); background: var(--primary-bg); box-shadow: 0 0 0 1px var(--primary) inset; }
.tema-yeni .mp-tile-logo { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.tema-yeni .mp-tile-sayi { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.tema-yeni .mp-tile.aktif .mp-tile-sayi { color: var(--primary); }
.tema-yeni .mp-tile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tema-yeni .mp-tile-logo i { font-size: 40px; color: var(--primary); }

/* ---- Tablo hücresinde pazaryeri logosu ---- */
.tema-yeni .satir-pazaryeri { display: flex; align-items: center; white-space: nowrap; }
.tema-yeni .satir-pazaryeri img { width: 22px; height: 22px; object-fit: contain; margin-right: 8px; }
.tema-yeni .satir-pazaryeri i { font-size: 18px; margin-right: 8px; color: var(--primary); }

/* ---- Sipariş tablosu: Ürün hücresi (görsel + ad, birden fazla ürün varsa altında "+N ürün daha") ---- */
.tema-yeni .siparis-pz-urun { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 220px; }
.tema-yeni .siparis-pz-urun img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; flex: none; cursor: zoom-in; }
.tema-yeni .siparis-pz-urun .siparis-pz-urun-yer { width: 32px; height: 32px; border-radius: 6px; background: var(--bg-badge); display: flex; align-items: center; justify-content: center; flex: none; }
.tema-yeni .siparis-pz-urun .siparis-pz-urun-yer i { width: 14px; height: 14px; color: var(--text-muted); }
.tema-yeni .siparis-pz-urun-metin { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tema-yeni .siparis-pz-urun-ad { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.tema-yeni .siparis-pz-urun-fazla { font-size: 11px; font-weight: 700; color: var(--primary); }

/* ---- Sağdan açılan detay paneli ---- */
.tema-yeni .detay-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1050; }
.tema-yeni .detay-overlay.acik { display: block; }
.tema-yeni .detay-panel { position: fixed; top: 0; right: -440px; width: 420px; max-width: 92vw; height: 100%; background: var(--bg-card); z-index: 1051; transition: right .3s ease; overflow-y: auto; box-shadow: var(--shadow-lg); color: var(--text-primary); }
.tema-yeni .detay-panel.acik { right: 0; }
.tema-yeni .detay-panel-ic { padding: 24px; }
.tema-yeni .detay-kapat { position: absolute; top: 18px; right: 18px; font-size: 22px; color: var(--text-muted); cursor: pointer; background: none; border: none; }
.tema-yeni .detay-bolum { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.tema-yeni .detay-bolum h6 { font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.tema-yeni .gecmis-adim { display: flex; align-items: flex-start; margin-bottom: 14px; }
.tema-yeni .gecmis-ikon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; margin-right: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tema-yeni .panel-yukleniyor { text-align: center; padding: 60px 0; color: var(--text-muted); }

/* ---- Veri Çek sonuç modalı (veri-cek.js'in ürettiği içerik) ---- */
.tema-yeni .vc-pazaryeri { display: flex; align-items: center; margin-bottom: 8px; }
.tema-yeni .vc-pazaryeri img { width: 28px; height: 28px; object-fit: contain; margin-right: 10px; }
.tema-yeni .vc-pazaryeri i { font-size: 22px; margin-right: 10px; color: var(--primary); }
.tema-yeni .vc-pazaryeri span { font-weight: 700; color: var(--text-primary); }
.tema-yeni .vc-blok { margin-bottom: 20px; }
.tema-yeni .vc-blok:last-child { margin-bottom: 0; }
.tema-yeni .vc-adimlar { list-style: none; margin: 0 0 0 38px; padding: 0; }
.tema-yeni .vc-adimlar li { padding: 8px 0; border-top: 1px solid var(--border-light); font-size: 13px; }
.tema-yeni .vc-adimlar li:first-child { border-top: 0; padding-top: 0; }
.tema-yeni .vc-adim-baslik { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tema-yeni .vc-adim-adi { color: var(--text-primary); font-weight: 600; }
.tema-yeni .vc-adim-ikon { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.tema-yeni .vc-adim-ikon-basarili { background: var(--success-bg); color: var(--success); }
.tema-yeni .vc-adim-ikon-hata { background: var(--danger-bg); color: var(--danger); }
.tema-yeni .vc-adim-mesaj { margin-top: 3px; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; word-break: break-word; }
.tema-yeni .vc-adim-mesaj-hata { color: var(--danger); }
.tema-yeni .vc-ilerleme { display: block; margin-top: 4px; font-size: 12px; color: var(--primary); }
.tema-yeni .vc-durum-etiket { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }
.tema-yeni .vc-durum-sirada { background: var(--bg-badge); color: var(--text-muted); }
.tema-yeni .vc-durum-calisiyor { background: var(--primary-bg); color: var(--primary); }
.tema-yeni .vc-durum-tamam { background: var(--success-bg); color: var(--success); }
.tema-yeni .vc-durum-hata { background: var(--danger-bg); color: var(--danger); }
.tema-yeni .vc-spam-uyari { position: fixed; bottom: 24px; right: 24px; z-index: 2000; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); padding: 12px 18px; border-radius: var(--radius-md); font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.tema-yeni .vc-spam-uyari-goster { opacity: 1; transform: translateY(0); }

/* ---- Bootstrap modal içeriği tema token'larıyla (modal kabuğu/JS'i Bootstrap'ten kalıyor) ---- */
.tema-yeni .modal-content { background: var(--bg-modal, var(--bg-card)); color: var(--text-primary); border: 1px solid var(--border); }
.tema-yeni .modal-header, .tema-yeni .modal-footer { border-color: var(--border); }
.tema-yeni .modal-title { color: var(--text-primary); }
.tema-yeni .modal .close { color: var(--text-primary); text-shadow: none; opacity: .6; }
.tema-yeni .modal .close:hover { opacity: 1; }
.tema-yeni .modal-backdrop.show { opacity: .5; }

/* ============================================================
   SİPARİŞ DETAYI — eski (Bootstrap4/style.css) sınıf adları AYNEN
   korunuyor (yüzlerce satırlık, canlı API'lerle doğrulanmış form/
   buton HTML'ini teker teker değiştirmek yerine), sadece YENİ tema
   token'larıyla yeniden boyanıyor. .row/.col-*/.d-flex/.mb-*/.mt-*
   gibi saf Bootstrap yardımcı sınıfları zaten bootstrap.min.css'ten
   geliyor, dokunulmadı.
   ============================================================ */
.tema-yeni label { display: block; }
.tema-yeni .btn.long { width: auto; }
.tema-yeni .btn.outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.tema-yeni .btn.outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.tema-yeni .btn-iptal { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.tema-yeni .font-11 { font-size: 11px; }
.tema-yeni .font-12 { font-size: 12px; }
.tema-yeni .font-13 { font-size: 13px; }
.tema-yeni .font-14 { font-size: 14px; }
.tema-yeni .font-16 { font-size: 16px; }
.tema-yeni .font-22 { font-size: 22px; }
.tema-yeni .text_color { color: var(--text-muted); }
.tema-yeni .bold { font-weight: 700; }
.tema-yeni h4, .tema-yeni h5, .tema-yeni h6 { color: var(--text-primary); margin: 0; }
.tema-yeni .adres-baslik { display: flex; align-items: center; gap: 6px; }
.tema-yeni .adres-baslik i { color: var(--primary); font-size: 15px; }
.tema-yeni .bilgi-satiri { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-primary); }
.tema-yeni .bilgi-satiri span:first-child { color: var(--text-muted); }
.tema-yeni .rp-rozet { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-left: 4px; vertical-align: middle; letter-spacing: .2px; white-space: nowrap; }
.tema-yeni .rp-rozet-altin { background: #fef3c7; color: #92400e; border: 1px solid #d97706; }
.tema-yeni .rp-rozet-bronz { background: #f4e3d7; color: #7c4a24; border: 1px solid #b5651d; }
.tema-yeni .fatura-kart .table th, .tema-yeni .fatura-kart .table td { font-size: 13px; padding: 8px; vertical-align: middle; color: var(--text-primary); border-color: var(--border); }
.tema-yeni .aksiyon-uyari { display: flex; align-items: flex-start; gap: 10px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); border-radius: var(--radius-md); padding: 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.tema-yeni .aksiyon-uyari i { color: #d97706; font-size: 16px; flex: none; margin-top: 1px; }
.tema-yeni .aksiyon-not { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.tema-yeni .siparis-aksiyon-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.tema-yeni .siparis-aksiyon-form:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.tema-yeni .siparis-detay-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tema-yeni .karlilik-duzenle-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; margin-left: 4px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-xs); vertical-align: middle; }
.tema-yeni .karlilik-duzenle-btn:hover { background: var(--primary-bg); color: var(--primary); }
.tema-yeni .karlilik-duzenle-btn i, .tema-yeni .karlilik-duzenle-btn svg { width: 13px; height: 13px; }
.tema-yeni .karlilik-duzenle-panel { background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-top: 14px; }
.tema-yeni .karlilik-kalem-satiri { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tema-yeni .karlilik-kalem-satiri span { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.tema-yeni .karlilik-kalem-satiri input { flex: 0 0 150px; }

/* ============================================================
   MÜŞTERİ HARİTASI — Leaflet ısı haritası + il bazlı liste
   ============================================================ */
.tema-yeni #musteriHarita { width: 100%; height: 560px; border-radius: var(--radius-md); background: var(--bg-input); }
.tema-yeni .il-satiri { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.tema-yeni .il-satiri:last-child { border-bottom: none; }
.tema-yeni .il-cubuk-arka { flex: 1; height: 8px; background: var(--bg-badge); border-radius: 4px; margin: 0 12px; overflow: hidden; }
.tema-yeni .il-cubuk { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 4px; }
.tema-yeni .musteri-adres { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }

/* ============================================================
   ÜRÜNLER — liste tablosu, pazaryeri şerit çubuğu, toplu işlemler
   ============================================================ */
.tema-yeni .urun-gorsel { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--bg-input); }
.tema-yeni .urun-gorsel-buyut { cursor: zoom-in; }
.tema-yeni .urun-ad { font-weight: 700; color: var(--text-primary); }
.tema-yeni .urun-alt-bilgi { font-size: 12px; color: var(--text-muted); }
.tema-yeni .eslenmemis { color: var(--text-muted); font-style: italic; font-size: 13px; }

/* Pazaryeri şerit çubuğu — hover ile popover açılır, üzerine gelmeden: onaylıysa dolu/parlak
   yanar, onaylı değilse (bekliyor/reddedildi/hata/sonuç bilinmiyor) yanıp söner. */
.tema-yeni .mp-strip-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tema-yeni .mp-strip { display: inline-flex; gap: 2px; align-items: center; justify-content: center; padding: 3px 5px; border-radius: var(--radius-xs); background: var(--bg-input); }
.tema-yeni .mp-seg { width: 7px; height: 20px; border-radius: 3px; cursor: default; transition: var(--transition); position: relative; }
.tema-yeni .mp-seg:first-child { border-radius: 3px 2px 2px 3px; }
.tema-yeni .mp-seg:last-child { border-radius: 2px 3px 3px 2px; }
.tema-yeni .mp-seg:hover { transform: scaleY(1.3); z-index: 2; box-shadow: 0 0 6px rgba(0,0,0,.25); }
.tema-yeni .mp-seg.yok { opacity: .12; }
.tema-yeni .mp-seg.lit { opacity: 1; }
.tema-yeni .mp-seg.lit-pasif { opacity: .5; background-image: repeating-linear-gradient(135deg, transparent, transparent 2px, rgba(255,255,255,.45) 2px, rgba(255,255,255,.45) 4px); }
.tema-yeni .mp-seg.blink { opacity: 1; animation: mpSegBlink 1.1s ease-in-out infinite; }
@keyframes mpSegBlink { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }
.tema-yeni .mp-count { font-size: 11px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }

.tema-yeni .mp-popover { position: fixed; z-index: 3000; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px 6px; display: none; min-width: 190px; pointer-events: none; }
.tema-yeni .mp-popover.show { display: block; }
.tema-yeni .mp-pop-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius-xs); font-size: 12px; white-space: nowrap; }
.tema-yeni .mp-pop-row + .mp-pop-row { margin-top: 2px; }
.tema-yeni .mp-pop-row img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; flex: none; }
.tema-yeni .mp-pop-row i { width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.tema-yeni .mp-pop-name { flex: 1; font-weight: 600; color: var(--text-primary); }
.tema-yeni .mp-pop-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.tema-yeni .mp-pop-status.s-lit { background: var(--success-bg); color: var(--success); }
.tema-yeni .mp-pop-status.s-lit-pasif { background: var(--bg-badge); color: var(--text-secondary); }
.tema-yeni .mp-pop-status.s-blink { background: var(--warning-bg); color: #b45309; }
.tema-yeni .mp-pop-status.s-yok { background: var(--bg-badge); color: var(--text-muted); }
.tema-yeni .mp-pop-row.is-yok { opacity: .55; }

.tema-yeni .buybox-rozet { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; margin-left: 6px; font-size: 13px; flex-shrink: 0; }
.tema-yeni .buybox-rozet.buybox-kazandi { background: var(--warning-bg); color: #b45309; }
.tema-yeni .buybox-rozet.buybox-kayip { background: var(--bg-badge); color: var(--text-muted); }
.tema-yeni .buybox-rozet.buybox-karisik { background: var(--danger-bg); color: var(--danger); }

.tema-yeni .btn-pazaryeri-fiyatlari { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; margin-left: 6px; font-size: 13px; flex-shrink: 0; background: var(--primary-bg); color: var(--primary); border: none; cursor: pointer; }
.tema-yeni .btn-pazaryeri-fiyatlari:hover { background: rgba(25,103,242,.16); }
.tema-yeni .pz-fiyat-satiri { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.tema-yeni .pz-fiyat-satiri:last-child { border-bottom: none; }

.tema-yeni .btn-pazaryeri-karsilastirma { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; margin-left: 6px; font-size: 13px; flex-shrink: 0; background: var(--bg-muted, #f0f1f5); color: var(--text-secondary); border: none; cursor: pointer; }
.tema-yeni .btn-pazaryeri-karsilastirma:hover { background: rgba(25,103,242,.16); color: var(--primary); }
.tema-yeni .pz-karsilastirma-tablo { width: 100%; border-collapse: collapse; font-size: 13px; }
.tema-yeni .pz-karsilastirma-tablo th { text-align: left; font-weight: 600; color: var(--text-secondary); padding: 6px 8px; border-bottom: 2px solid var(--border-light); white-space: nowrap; }
.tema-yeni .pz-karsilastirma-tablo td { padding: 8px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.tema-yeni .pz-karsilastirma-tablo tr:last-child td { border-bottom: none; }
.tema-yeni .pz-karsilastirma-tablo .pz-k-zaman { display: block; color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.tema-yeni .pz-karsilastirma-tablo .pz-k-bos { color: var(--text-muted); }

.tema-yeni .toplu-cubuk { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--primary-bg); border: 1px solid rgba(25,103,242,.25); border-radius: var(--radius-md); padding: 10px 16px; margin-bottom: 16px; }
.tema-yeni .toplu-cubuk.acik { display: flex; }

.tema-yeni .islem-hucre { white-space: nowrap; }
.tema-yeni .islem-btn-kare { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; margin-left: 6px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 16px; transition: var(--transition); }
.tema-yeni .islem-btn-kare:first-child { margin-left: 0; }
.tema-yeni .islem-btn-kare:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); text-decoration: none; }
.tema-yeni .islem-btn-kare.islem-btn-senkron:hover { border-color: var(--success); color: var(--success); background: var(--success-bg); }

.tema-yeni .inline-duzenle { height: 34px; width: 90px; font-size: 13px; padding: 4px 8px; text-align: right; }
.tema-yeni .inline-duzenle.inline-kaydediliyor { background: var(--warning-bg); }
.tema-yeni .inline-duzenle.inline-basarili { background: var(--success-bg); transition: background .6s ease; }
.tema-yeni .inline-duzenle.inline-hata { background: var(--danger-bg); }

.tema-yeni .hizli-atama-goster { cursor: pointer; border-bottom: 1px dashed var(--border); padding-bottom: 1px; white-space: nowrap; color: var(--text-primary); }
.tema-yeni .hizli-atama-goster:hover { border-bottom-color: var(--primary); color: var(--primary); }
.tema-yeni .hizli-atama-select { width: 150px !important; }
.tema-yeni .hizli-atama-select + .select2-container { max-width: 150px; }

.tema-yeni #urunTablosuAlani { position: relative; min-height: 120px; }
.tema-yeni #urunTablosuYukleniyor { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.7); align-items: center; justify-content: center; z-index: 5; }
.tema-yeni[data-theme="dark"] #urunTablosuYukleniyor { background: rgba(12,14,20,.7); }
.tema-yeni #urunTablosuYukleniyor.acik { display: flex; }
.tema-yeni .musteri-tc { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   MÜŞTERİ DETAY — üst başlıktaki baş harf rozeti
   ============================================================ */
.tema-yeni .musteri-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-right: 14px; flex-shrink: 0; box-shadow: var(--shadow-btn); }

/* ============================================================
   MARKALAR — avatar rozeti, pazaryeri eşleme ikon şeridi, sayfalama
   ============================================================ */
.tema-yeni .marka-avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-right: 10px; flex: 0 0 auto; }
.tema-yeni .marka-ad { font-weight: 700; color: var(--text-primary); }
.tema-yeni .marka-pazaryeri-ikon { width: 22px; height: 22px; margin-right: 4px; display: inline-flex; align-items: center; justify-content: center; }
.tema-yeni .marka-pazaryeri-ikon img { width: 20px; height: 20px; object-fit: contain; }
.tema-yeni .marka-pazaryeri-ikon.soluk { opacity: .2; }
.tema-yeni .marka-pazaryeri-ikon.tiklanabilir { cursor: pointer; transition: transform .12s ease; }
.tema-yeni .marka-pazaryeri-ikon.tiklanabilir:hover { transform: scale(1.18); }
.tema-yeni .marka-esleme-metin { font-size: 12px; color: var(--text-muted); }
.tema-yeni .filtre-sayfalama { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.tema-yeni #markaTablosuAlani { position: relative; min-height: 120px; }
.tema-yeni #markaTablosuYukleniyor { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.7); align-items: center; justify-content: center; z-index: 5; }
.tema-yeni[data-theme="dark"] #markaTablosuYukleniyor { background: rgba(12,14,20,.7); }
.tema-yeni #markaTablosuYukleniyor.acik { display: flex; }

/* ============================================================
   KATEGORİLER — ad stili, yakın-eşleşme rozeti, tablo yükleniyor
   ============================================================ */
.tema-yeni .kategori-ad { font-weight: 700; color: var(--text-primary); }
.tema-yeni .marka-pazaryeri-ikon.yakin-eslesme { position: relative; }
.tema-yeni .marka-pazaryeri-ikon.yakin-eslesme::after { content: '~'; position: absolute; top: -5px; right: -3px; font-size: 10px; font-weight: 700; line-height: 12px; width: 12px; height: 12px; text-align: center; border-radius: 50%; background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning); }
.tema-yeni #kategoriTablosuAlani { position: relative; min-height: 120px; }
.tema-yeni #kategoriTablosuYukleniyor { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.7); align-items: center; justify-content: center; z-index: 5; }
.tema-yeni[data-theme="dark"] #kategoriTablosuYukleniyor { background: rgba(12,14,20,.7); }
.tema-yeni #kategoriTablosuYukleniyor.acik { display: flex; }

/* ============================================================
   ÖZELLİK VARSAYILANLARI — modal içi özellik gridi, zorunlu/yedek vurgusu
   ============================================================ */
.tema-yeni .pazaryeri-logo-kucuk { width: 24px; height: 24px; object-fit: contain; margin-right: 8px; }
.tema-yeni .kov-ozellik-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 991px) { .tema-yeni .kov-ozellik-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tema-yeni .kov-ozellik-grid { grid-template-columns: 1fr; } }
.tema-yeni .kov-alan { border: 1px solid transparent; border-radius: 8px; padding: 10px; }
.tema-yeni .kov-alan.kov-zorunlu { background: var(--danger-bg); border-color: var(--danger); }
.tema-yeni .kov-yedek-aktif { border: 1px dashed var(--warning) !important; background: var(--warning-bg); }

/* ============================================================
   ÜRÜN DIŞA AKTARMA FEED'LERİ — token URL kutusu
   ============================================================ */
.tema-yeni .udaf-url-kutusu { font-family: 'Fira Code', monospace; font-size: 12px; background: var(--bg-badge); color: var(--text-secondary); padding: 6px 10px; border-radius: var(--radius-xs); word-break: break-all; max-width: 320px; }

/* ============================================================
   FİYATLANDIRMA AYARLARI — pazaryeri başına kargo/kâr/yuvarlama kartları
   ============================================================ */
.tema-yeni .fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tema-yeni .fs-hedef-tip-secim { display: flex; gap: 10px; margin-bottom: 12px; }
.tema-yeni .fs-hedef-tip-secim label { flex: 1 1 0; text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; font-size: 13px; margin: 0; color: var(--text-secondary); transition: var(--transition); }
.tema-yeni .fs-hedef-tip-secim input { display: none; }
.tema-yeni .fs-hedef-tip-secim label:has(input:checked) { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); font-weight: 700; }
.tema-yeni .fs-kaydedildi-etiketi { font-size: 12.5px; color: var(--success); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tema-yeni .fs-kaydedildi-etiketi svg { width: 14px; height: 14px; }

/* ============================================================
   PAZARYERİ FİYAT GÜNCELLE — toplu ilerleme + sonuç günlüğü
   ============================================================ */
.tema-yeni .pfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tema-yeni .pfg-buton-alani { display: flex; justify-content: center; }
.tema-yeni .pfg-buton-alani .btn { min-width: 200px; }
.tema-yeni .pfg-ilerleme { margin-top: 16px; }
.tema-yeni .pfg-progress-track { height: 8px; border-radius: var(--radius-full); background: var(--bg-badge); overflow: hidden; }
.tema-yeni .pfg-progress-bar { height: 100%; width: 0%; background: var(--primary); border-radius: var(--radius-full); transition: width .3s ease; }
.tema-yeni .pfg-log { margin-top: 14px; max-height: 240px; overflow-y: auto; background: var(--bg-badge); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; }
.tema-yeni .pfg-log-item { display: flex; align-items: flex-start; gap: 6px; padding: 3px 0; color: var(--text-secondary); }
.tema-yeni .pfg-log-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.tema-yeni .pfg-log-item.basarili svg { color: var(--success); }
.tema-yeni .pfg-log-item.hata svg { color: var(--danger); }
.tema-yeni .pfg-log-uyari { color: var(--danger); font-size: 12px; }
.tema-yeni .pfg-spin { animation: pfg-spin 1s linear infinite; }
@keyframes pfg-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   TEDARİKÇİ XML KAYNAKLARI — çok adımlı kaynak formu
   ============================================================ */
.tema-yeni .txk-esleme-tablosu td { vertical-align: middle; }
.tema-yeni .txk-ornek-deger { font-size: 12px; color: var(--text-muted); }
.tema-yeni .txk-adim { display: none; }
.tema-yeni .txk-adim.aktif { display: block; }

/* ============================================================
   Sayfa başlığında birden fazla eylem butonu gruplamak için (page-head zaten
   space-between flex — bu sarmalayıcı h2 ile birlikte sadece 2. çocuk olur)
   ============================================================ */
.tema-yeni .page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   BEKLEYEN İTHAL ÜRÜNLER — resim önizleme yer tutucusu
   ============================================================ */
.tema-yeni .tbu-resim-yok { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-muted); }
.tema-yeni .tbu-resim-yok svg { width: 18px; height: 18px; }

/* ============================================================
   ÜRÜN DETAYI
   ============================================================ */
.tema-yeni .udet-gorsel-buyuk { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card-hover); color: var(--text-muted); }
.tema-yeni .udet-kar-pozitif { color: var(--success); font-weight: 700; }
.tema-yeni .udet-kar-negatif { color: var(--danger); font-weight: 700; }
.tema-yeni .udet-spin { animation: pfg-spin 1s linear infinite; }

/* ============================================================
   Sekmeler (pill-tabs) — genel amaçlı, Bootstrap4 data-toggle="tab" ile
   birlikte çalışır (sadece görünüm değişir, tab-content mekanizması aynı)
   ============================================================ */
.tema-yeni .tabs-pill { display: flex; gap: 4px; background: var(--bg-badge); border-radius: var(--radius-md); padding: 4px; margin-bottom: 20px; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.tema-yeni .tabs-pill .tab-link { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; white-space: nowrap; transition: var(--transition); }
.tema-yeni .tabs-pill .tab-link:hover { color: var(--text-primary); text-decoration: none; }
.tema-yeni .tabs-pill .tab-link.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ============================================================
   YAPAY ZEKA
   ============================================================ */
.tema-yeni .yz-sohbet-listesi { max-height: 560px; overflow-y: auto; }
.tema-yeni .yz-sohbet-item { display: block; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 6px; color: var(--text-primary); }
.tema-yeni .yz-sohbet-item:hover { background: var(--bg-card-hover); text-decoration: none; }
.tema-yeni .yz-sohbet-item.aktif { background: var(--primary); color: #fff; }
.tema-yeni .yz-mesaj-alani { max-height: 480px; overflow-y: auto; padding: 10px 0; }
.tema-yeni .yz-mesaj { border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 12px; max-width: 80%; white-space: pre-wrap; font-size: 13.5px; }
.tema-yeni .yz-mesaj.user { background: var(--bg-badge); margin-left: auto; }
.tema-yeni .yz-mesaj.assistant { background: var(--primary-bg); margin-right: auto; }
.tema-yeni .yz-trend-karti { border-radius: var(--radius-md); border: 1px solid var(--border); padding: 16px; margin-bottom: 16px; }
.tema-yeni .yz-puan-daire {
   width: 84px; height: 84px; border-radius: 50%; margin: 0 auto;
   display: flex; align-items: center; justify-content: center;
   background: conic-gradient(var(--primary) calc(var(--puan, 0) * 1%), var(--bg-badge) 0);
   font-size: 24px; font-weight: 700; color: var(--text-primary); position: relative;
}
.tema-yeni .yz-puan-daire::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-card); z-index: 0; }
.tema-yeni .yz-puan-daire span { position: relative; z-index: 1; }
.tema-yeni .yz-bolum-karti { border-radius: var(--radius-md); border: 1px solid var(--border); padding: 14px 16px; height: 100%; }
.tema-yeni .yz-oneri-kutusu { background: var(--warning-bg); border: 1px solid var(--warning); border-radius: var(--radius-md); padding: 14px 16px; }
.tema-yeni .yz-kredi-hero { border-radius: var(--radius-lg); background: linear-gradient(120deg,#5b5ce0,#9061f9); color: #fff; padding: 22px 24px; margin-bottom: 20px; }
.tema-yeni .yz-paket-karti { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
