/* Teslimat Bildirimleri (yönetim) — Ekran 02. Ortak sınıflar my-products.css'ten; burada yalnız dn-* özgün stiller. */
/* Tam ekran — dealer-region gibi (.dr-page zaten width:100%); genişlik sınırı YOK. */
.mp-info.warn { background: #fef3c7; color: #7a4a00; }
.mp-info.warn .material-symbols-outlined { color: #b45309; }

/* SSH iş emri "garanti müşterisi × bayi stok kontrolü" uyarı popup'ı (global — DxPopup içinde de geçerli) */
.ssh-dealer-box { display: flex; align-items: center; gap: 12px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.ssh-dealer-av { width: 42px; height: 42px; border-radius: 10px; background: #e0f2f1; color: #0891b2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ssh-dealer-id { flex: 1; min-width: 0; }
.ssh-dealer-nm { font-weight: 700; color: #1e293b; }
.ssh-dealer-sub { font-size: 12.5px; color: #64748b; }
.ssh-dealer-tag { background: #dcfce7; color: #16a34a; font-weight: 700; font-size: 12px; padding: 3px 12px; border-radius: 14px; white-space: nowrap; }
.ssh-paths-title { font-weight: 600; font-size: 13px; margin: 4px 2px 6px; color: #1e293b; }
.ssh-paths { border: 1px dashed #e2e8f0; border-radius: 12px; padding: 6px 4px; }
.ssh-path { display: flex; gap: 11px; padding: 11px 12px; }
.ssh-path:not(:last-child) { border-bottom: 1px dashed #eef2f6; }
.ssh-path b { color: #1e293b; }
.ssh-path-n { width: 26px; height: 26px; border-radius: 50%; background: #0078d4; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.ssh-path-s { font-size: 12.5px; color: #64748b; margin-top: 2px; }
.ssh-paths-note { font-size: 12.5px; color: #64748b; margin-top: 12px; line-height: 1.6; }

/* Stat kartları — dealer-region kalıbı (dr-stats), 6 sütun + ek renk varyantları */
.dn-stats { grid-template-columns: repeat(6, 1fr); }
.dr-stat-ic.dn-pend { background: #fef3c7; color: #b45309; }
.dr-stat-ic.dn-out { background: #ffedd5; color: #c2410c; }
.dr-stat-ic.dn-reg { background: #ede9fe; color: #7c3aed; }
.dr-stat-ic.dn-cancel { background: #fee2e2; color: #dc2626; }
@media (max-width: 1100px) { .dn-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .dn-stats { grid-template-columns: 1fr 1fr; } }

.dn-combo { min-width: 170px; }

/* Grid hücreleri */
.dn-b-name { font-weight: 600; color: #1e293b; }
.dn-muted { color: #94a3b8; font-size: 12px; }
.dn-mono { font-weight: 600; color: #64748b; font-size: 12.5px; }
.dn-ck { width: 17px; height: 17px; accent-color: #0078d4; cursor: pointer; }
.dn-thumb { width: 34px; height: 26px; border-radius: 6px; background: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; color: #64748b; cursor: pointer; }
.dn-thumb:hover { background: #cbd5e1; }
.dn-thumb .material-symbols-outlined { font-size: 16px; }

/* Etiketler */
.dn-tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.dn-tag .material-symbols-outlined { font-size: 13px; }
.dn-tag.in { background: #dcfce7; color: #16a34a; }
.dn-tag.out { background: #ffedd5; color: #c2410c; }
.dn-tag.apprd { background: #dcfce7; color: #16a34a; }
.dn-tag.pend { background: #fef3c7; color: #b45309; }
.dn-tag.rej { background: #fee2e2; color: #dc2626; }
.dn-tag.late { background: #fee2e2; color: #dc2626; }
.dn-tag.miss { background: #f1f5f9; color: #64748b; }
.dn-tag.undef { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
/* Ruhsat durumu — net etiket: yeşil "tam" (tıklanır → görsel) / kırmızı "eksik" (onayı bloke eder) */
.dn-tag.ruhsat-ok { background: #dcfce7; color: #16a34a; border: 1px solid #86e0a6; cursor: pointer; }
.dn-tag.ruhsat-ok:hover { background: #bbf7d0; }
.dn-tag.ruhsat-miss { background: #fee2e2; color: #dc2626; border: 1px solid #f4a3a3; }

/* Seçili/odaklı satırda etiketler — dealer-region ile AYNI, kanıtlı yaklaşım: teal zeminde yarı saydam
   beyaz pill. (Beyazlatma yalnız yazıyı ezer; arka planı biz set edince pill okunur kalır.) */
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .dn-tag,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .dn-tag,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .dn-tag {
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .4) !important;
}
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .dn-tag .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .dn-tag .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .dn-tag .material-symbols-outlined { color: #fff !important; }
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .dn-thumb,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .dn-thumb,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .dn-thumb { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
/* Onay kolonu iptal-notu (my-products "Durum" ile AYNI: dolgulu kırmızı kutu, mp-grid-note). Seçili/odaklı
   satırda dealer-region.css'teki evrensel `tr.dxbl-selected > td *` beyazlatmasını YENMEK için .dn-page ön eki +
   notun ÇOCUKLARINI (<b>İptal:</b>) da hedefliyoruz; dolgulu kutu zaten kendi arka planını taşıdığından yalnız
   yazı rengini koyu kırmızıda tutmak yeterli. */
.dn-page .teal-grid .dxbl-grid-table tbody tr:is([class*="focused"], .dxbl-focused, .dxbl-selected) > td .mp-grid-note,
.dn-page .teal-grid .dxbl-grid-table tbody tr:is([class*="focused"], .dxbl-focused, .dxbl-selected) > td .mp-grid-note * { color: #991b1b !important; }
.dn-page .teal-grid .dxbl-grid-table tbody tr:is([class*="focused"], .dxbl-focused, .dxbl-selected) > td .mp-grid-note b { color: #7f1d1d !important; }

/* Mobil kart başlığı — ferah: 1. satır cari, 2. şase, 3. ürün adı; durum rozeti sağ üstte */
.dn-card-head { align-items: flex-start; gap: 10px; }
.dn-card-head > .dn-tag { flex-shrink: 0; }
.dn-card-id { flex: 1 1 auto; min-width: 0; }
.dn-card-dealer { font-weight: 700; font-size: 14.5px; color: #1e293b; line-height: 1.3; overflow-wrap: anywhere; }
.dn-card-chassis { font-size: 12px; margin-top: 3px; }
.dn-card-chassis .dn-mono { color: #64748b; font-weight: 600; }
.dn-card-product { font-size: 12.5px; color: #475569; font-weight: 600; margin-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }

/* Mobil kart ek alanları */
.dn-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; font-size: 12.5px; margin-bottom: 9px; }
.dn-card-grid .dn-l { font-size: 10.5px; text-transform: uppercase; color: #94a3b8; font-weight: 600; letter-spacing: .3px; }
.dn-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-card.dn-late { border-left: 3px solid #dc2626; }
/* Mobil/tablet toplu seçim — kart checkbox + seçili vurgu */
.dr-card.is-sel { border-color: #0891b2 !important; box-shadow: 0 0 0 1px #0891b2, 0 4px 14px rgba(8, 145, 178, .12); }
.dn-card-ck { display: flex; align-items: center; flex-shrink: 0; padding: 2px 2px 2px 0; cursor: pointer; }
.dn-card-ck .dn-ck { width: 20px; height: 20px; accent-color: #0891b2; }

/* Grid satır aksiyonları — hizalı, boşluklu; Onayla yeşil varyantı (dealer-region dr-actbtn tabanı) */
.mp-rowacts { display: flex; gap: 5px; justify-content: center; }
.dr-actbtn.ok { color: #16a34a; }
.dr-actbtn.ok:hover:not(:disabled) { background: #f0fdf4; border-color: #16a34a; }
/* Seçili/odaklı satırda aksiyon butonları — teal zeminde TEMİZ BEYAZ buton + renkli ikon
   (dealer-region'ın yarı saydam görünümü yerine; yalnız .dn-page). */
.dn-page .teal-grid .dxbl-grid-table tbody tr:is([class*="focused"], .dxbl-focused, .dxbl-selected) > td .dr-actbtn {
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18) !important;
}
.dn-page .teal-grid .dxbl-grid-table tbody tr:is([class*="focused"], .dxbl-focused, .dxbl-selected) > td .dr-actbtn .material-symbols-outlined { color: #475569 !important; }
.dn-page .teal-grid .dxbl-grid-table tbody tr:is([class*="focused"], .dxbl-focused, .dxbl-selected) > td .dr-actbtn.ok .material-symbols-outlined { color: #16a34a !important; }
.dn-page .teal-grid .dxbl-grid-table tbody tr:is([class*="focused"], .dxbl-focused, .dxbl-selected) > td .dr-actbtn.danger .material-symbols-outlined { color: #dc2626 !important; }

/* Mobil/tablet kart aksiyon butonları — kurumsal, tutarlı boyut */
.dn-card-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.dn-cbtn { height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; transition: .13s; }
.dn-cbtn .material-symbols-outlined { font-size: 18px; }
.dn-cbtn:hover { background: #f8fafc; border-color: #cbd5e1; }
.dn-cbtn.primary { background: #0891b2; border-color: #0891b2; color: #fff; flex: 1 1 auto; justify-content: center; box-shadow: 0 1px 3px rgba(8, 145, 178, .25); }
.dn-cbtn.primary:hover { background: #0e7490; border-color: #0e7490; }
.dn-cbtn.icon { width: 38px; padding: 0; justify-content: center; flex-shrink: 0; }
.dn-cbtn.danger { color: #dc2626; }
.dn-cbtn.danger:hover { border-color: #dc2626; background: #fef2f2; }

/* Seçim dock (toplu onay) */
.dn-seldock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 45; background: #3c4e5b; color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 14px 40px rgba(15, 23, 42, .35); }
.dn-seldock .s { font-size: 13px; font-weight: 600; } .dn-seldock .s b { color: #22d3ee; }
.dn-seldock .sp { width: 1px; height: 26px; background: rgba(255, 255, 255, .18); }
.dn-sd-btn { border: none; border-radius: 9px; height: 36px; padding: 0 14px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; }
.dn-sd-btn .material-symbols-outlined { font-size: 17px; }
.dn-sd-btn.ok { background: #16a34a; color: #fff; } .dn-sd-btn.ok:hover { background: #15803d; }
.dn-sd-btn.ok[disabled] { opacity: .55; cursor: not-allowed; }
.dn-sd-btn.ghost { background: rgba(255, 255, 255, .12); color: #e5edf2; } .dn-sd-btn.ghost:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 1024px) { .dn-seldock { left: 12px; right: 12px; transform: none; bottom: 12px; justify-content: space-between; } }

/* Toplu onay listesi */
.dn-bulk-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; margin-top: 4px; }
.dn-bl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.dn-bl-ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dn-bl-ic.ok { background: #dcfce7; color: #16a34a; }
.dn-bl-ic .material-symbols-outlined { font-size: 18px; }
.dn-bl-body { min-width: 0; flex: 1; }
.dn-bl-body .m { font-weight: 600; font-size: 12.5px; color: #1e293b; }
.dn-bl-body .s { font-size: 11.5px; color: #94a3b8; }

/* Detay/Düzelt popup — kurumsal */
/* Etiket (caption) tek satır flex öğesi — zorunlu (*) alt satıra düşmesin, tüm alanlar aynı hizada */
.dn-form-g2 .mp-f { justify-content: flex-start; }
.dn-cap { display: inline-flex; align-items: center; gap: 3px; min-height: 16px; line-height: 16px; }
.dn-detail-hero { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #f8fafc, #eef2f4); border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.dn-detail-av { width: 46px; height: 46px; border-radius: 12px; background: #e0f2f1; color: #0891b2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dn-detail-av .material-symbols-outlined { font-size: 26px; }
.dn-detail-hid { flex: 1; min-width: 0; }
.dn-detail-name { font-weight: 700; font-size: 15px; color: #1e293b; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-detail-sub { font-size: 12.5px; color: #64748b; margin-top: 3px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-detail-sub2 { font-size: 12.5px; color: #475569; font-weight: 600; margin-top: 1px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-detail-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex-shrink: 0; }
.dn-edit-hint { display: flex; align-items: center; gap: 8px; background: #e8f4fd; color: #0369a1; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 12px; }
.dn-edit-hint .material-symbols-outlined { font-size: 18px; }
.dn-ro-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #64748b; margin-top: 4px; }
.dn-ro-note .material-symbols-outlined { font-size: 17px; color: #94a3b8; }
.dn-reg-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1e293b; cursor: pointer; margin: 6px 0 10px; }
.dn-reg-check input { width: 18px; height: 18px; accent-color: #0891b2; }

.dn-info-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.dn-info-h { display: flex; align-items: center; gap: 7px; background: #f8fafc; border-bottom: 1px solid #eef2f6; padding: 9px 13px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #475569; }
.dn-info-h .material-symbols-outlined { font-size: 17px; color: #0891b2; }
.dn-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dn-info-grid > div { padding: 9px 13px; border-bottom: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dn-info-grid > div:nth-child(odd) { border-right: 1px solid #f1f5f9; }
.dn-info-grid > div.dn-info-full { grid-column: 1 / -1; border-right: none; }
.dn-info-grid > div span { font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.dn-info-grid > div b { font-size: 13px; color: #1e293b; font-weight: 600; word-break: break-word; }

/* Onay popup'ı — ERP Tarım proje kartı "mevcut → yeni" karşılaştırması */
.dn-erp-card { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.dn-erp-h { display: flex; align-items: center; gap: 7px; background: #f0f9ff; border-bottom: 1px solid #e0f2fe; padding: 8px 12px; font-size: 11.5px; font-weight: 700; color: #0369a1; text-transform: uppercase; letter-spacing: .3px; }
.dn-erp-h .material-symbols-outlined { font-size: 17px; }
.dn-erp-loading { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 12.5px; color: #64748b; }
.dn-erp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dn-erp-table th { text-align: left; padding: 6px 10px; background: #f8fafc; color: #64748b; font-weight: 600; font-size: 11px; border-bottom: 1px solid #eef2f6; }
.dn-erp-table td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.dn-erp-table tr:last-child td { border-bottom: none; }
.dn-erp-table td:first-child { color: #64748b; font-weight: 600; white-space: nowrap; }
.dn-erp-table td.cur { color: #94a3b8; }
.dn-erp-table td.arw { text-align: center; color: #cbd5e1; width: 22px; padding: 7px 0; }
.dn-erp-table td.arw .material-symbols-outlined { font-size: 16px; }
.dn-erp-table td.new { color: #16a34a; font-weight: 700; }
/* Mobil + tablet: rozetler (durum + alan) en alt satıra, tam genişlik; bayi adı üstte sarar */
@media (max-width: 1024px) {
    .dn-detail-hero { flex-wrap: wrap; align-items: flex-start; }
    .dn-detail-badges { flex-direction: row; align-items: center; justify-content: flex-start; width: 100%; flex-basis: 100%; margin-top: 8px; gap: 6px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
}
@media (max-width: 560px) { .dn-info-grid { grid-template-columns: 1fr; } .dn-info-grid > div:nth-child(odd) { border-right: none; } }

/* Zaman çizelgesi (Geçmiş) */
.dn-tl { position: relative; padding-left: 26px; }
.dn-tl:before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #e2e8f0; }
.dn-tl-i { position: relative; padding-bottom: 16px; }
.dn-tl-i .dot { position: absolute; left: -22px; top: 3px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px #eef2f6; }
.dn-tl-i .tt { font-weight: 700; font-size: 13px; color: #1e293b; }
.dn-tl-i .tm { font-size: 12px; color: #64748b; margin-top: 2px; }
.dn-tl-i .tx { font-size: 12.5px; margin-top: 5px; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 8px; padding: 8px 10px; }

/* Popup başlık success varyantı */
.b2b-themed-header.success .bh-icon { background: rgba(22, 163, 74, .18); color: #bbf7d0; }

/* ═══════════════════════════════════════════════════════════════════════════════
   BAYİ STOKLARI (/dealer-stocks) — ds-* sınıfları. delivery-notifications.css
   içine konuldu çünkü bu dosya _Host.cshtml'de ZATEN yüklü; ayrı bir css + _Host
   link'i tam restart isterdi (hot-reload _Host head'ini yenilemez).
   ═══════════════════════════════════════════════════════════════════════════════ */

/* KPI 7 kutu — HER genişlikte TEK SATIR (minmax(0,1fr) ile daralarak sığar, taşmaz). Yalnız telefonda 2 sütun. */
.ds-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ds-stats .dr-stat { padding: 8px 9px; gap: 7px; min-width: 0; }
.ds-stats .dr-stat-l { line-height: 1.15; }
@media (max-width: 560px) { .ds-stats { grid-template-columns: repeat(2, 1fr); } }
/* Transfer Edilenler kartı ikonu — modülün transfer moru (ds-transfer-badge ile aynı) */
.dr-stat-ic.ds-xfer { background: #f3e8ff; color: #7c3aed; }

/* Bayi + ürün tipi filtreleri: her birine SABİT genişlik ver (DxComboBox flex-basis:auto ile
   kendi içerik genişliğine göre render olup üst üste biniyordu). Arama flex:1 ile büyür,
   combo'lar sarmaz-shrink olmaz; dar ekranda toolbar doğal sarar (delivery-notifications kalıbı). */
/* Bayi combo, toolbar'da kalan TÜM alanı doldurur (uzun ünvan sığsın; açılır liste de kutu kadar geniş olur).
   Arama büyümez, dar sabit kalır; ürün tipi combo dar-sabit. ds-page/dn-page toolbar'larında ortak. */
.ds-page .dr-toolbar .dr-search,
.dn-page .dr-toolbar .dr-search { flex: 1 1 220px; min-width: 180px; }
.ds-page .dr-toolbar .dn-combo,
.dn-page .dr-toolbar .dn-combo { flex: 1 1 320px; width: auto; min-width: 300px; max-width: 440px; }
.ds-page .dr-toolbar .dn-combo-sm,
.dn-page .dr-toolbar .dn-combo-sm { flex: 0 0 190px; width: 190px; min-width: 190px; max-width: 190px; }

/* Sevk tarihi aralığı filtresi (dealer-stocks + my-products) */
.ds-page .dr-daterange,
.dr-page .dr-daterange {
    display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
    background: #fff; border: 1px solid #cdd6dc; border-radius: 8px; padding: 0 10px; height: 38px;
}
.ds-page .dr-daterange > .material-symbols-outlined,
.dr-page .dr-daterange > .material-symbols-outlined { font-size: 18px; color: #00796b; }
.ds-page .dr-daterange .dr-date,
.dr-page .dr-daterange .dr-date {
    border: none; outline: none; background: transparent; font-size: 13px; color: #233038; width: 118px; padding: 0;
}
.ds-page .dr-daterange .dr-date-sep,
.dr-page .dr-daterange .dr-date-sep { color: #90a4ae; }
@media (max-width: 560px) {
    .ds-page .dr-daterange, .dr-page .dr-daterange { flex: 1 1 100%; justify-content: center; }
    .ds-page .dr-daterange .dr-date, .dr-page .dr-daterange .dr-date { width: 44%; }
}
@media (max-width: 560px) {
    .ds-page .dr-toolbar .dr-search,
    .ds-page .dr-toolbar .dn-combo, .ds-page .dr-toolbar .dn-combo-sm,
    .dn-page .dr-toolbar .dr-search,
    .dn-page .dr-toolbar .dn-combo, .dn-page .dr-toolbar .dn-combo-sm { flex: 1 1 100%; width: 100%; min-width: 0; max-width: none; }
}

/* Grid hücreleri */
.ds-cell-b { line-height: 1.3; }
.ds-muted { font-size: 11.5px; color: #94a3b8; }
.ds-mono { font-size: 12px; font-weight: 600; color: #64748b; }

/* Ürün tipi rozeti */
.ds-ptype { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #0078d4; background: #e8f4fd; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.ds-ptype .material-symbols-outlined { font-size: 14px; }
.ds-ptype.muted { color: #64748b; background: #f1f5f9; }

/* Durum hücresindeki "transfer edildi" rozeti */
.ds-transfer-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: #7c3aed; background: #f3e8ff; border-radius: 12px; padding: 2px 8px; margin-top: 3px; }
.ds-transfer-badge .material-symbols-outlined { font-size: 13px; }

/* Seçili/odaklı satır (teal zemin) — ds-ptype & ds-transfer-badge kendi açık arka planlarını taşıdığından,
   evrensel `tr.dxbl-selected > td *` beyazlatması metni beyaz yapınca "beyaz tabaka" oluşuyordu.
   Çözüm .dn-tag ile aynı: yarı saydam beyaz pill + beyaz metin (arka planı biz set edince okunur kalır). */
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .ds-ptype,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .ds-ptype,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .ds-ptype,
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .ds-transfer-badge,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .ds-transfer-badge,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .ds-transfer-badge {
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
}
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .ds-ptype .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .ds-ptype .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .ds-ptype .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .ds-transfer-badge .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .ds-transfer-badge .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .ds-transfer-badge .material-symbols-outlined { color: #fff !important; }

.ds-transfer-note { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #7c3aed; background: #f3e8ff; border-radius: 8px; padding: 7px 10px; margin-top: 8px; }
.ds-transfer-note .material-symbols-outlined { font-size: 16px; }

/* Grid satır aksiyon sarmalayıcı */
.ds-rowact { display: flex; gap: 6px; justify-content: center; }

/* Transfer popup: kaynak → hedef akış kutusu */
.ds-flow { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.ds-flow-box { flex: 1; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; background: #f8fafc; min-width: 0; }
.ds-flow-box .l { font-size: 10.5px; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.ds-flow-box .v { font-weight: 700; font-size: 13.5px; margin-top: 2px; word-break: break-word; }
.ds-flow-box.src { border-left: 3px solid #94a3b8; }
.ds-flow-box.dst { border-left: 3px solid #0078d4; background: #e8f4fd; }
.ds-flow-box.dst .v { color: #0078d4; }
.ds-flow-arw { color: #0078d4; flex-shrink: 0; }
@media (max-width: 560px) { .ds-flow { flex-direction: column; align-items: stretch; } .ds-flow-arw { transform: rotate(90deg); align-self: center; } }

.ds-form-combo { width: 100%; margin-bottom: 10px; }

/* Hareketler zaman çizelgesi */
.ds-timeline { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.ds-tl-item { display: flex; gap: 11px; align-items: flex-start; }
.ds-tl-item.current .ds-tl-body { background: #f0fdf4; border-color: #bbf7d0; }
.ds-tl-dot { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds-tl-dot .material-symbols-outlined { font-size: 18px; }
.ds-tl-dot.ship { background: #e8f4fd; color: #0078d4; }
.ds-tl-dot.transfer { background: #f3e8ff; color: #7c3aed; }
.ds-tl-body { flex: 1; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; background: #fff; min-width: 0; }
.ds-tl-top { display: flex; align-items: center; gap: 8px; }
.ds-tl-kind { font-weight: 700; font-size: 12.5px; color: #1e293b; }
.ds-tl-date { font-size: 12px; color: #64748b; }
.ds-tl-cur { font-size: 10.5px; font-weight: 600; color: #16a34a; background: #dcfce7; border-radius: 10px; padding: 1px 8px; margin-left: auto; }
.ds-tl-route { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; color: #475569; flex-wrap: wrap; }
.ds-tl-route .material-symbols-outlined { font-size: 14px; color: #94a3b8; }
.ds-tl-note { margin-top: 5px; font-size: 11.5px; color: #64748b; font-style: italic; }
/* Geri alınmış transfer — soluk + kırmızı rozet/ikon */
.ds-tl-item.reversed .ds-tl-body { opacity: .72; }
.ds-tl-dot.reversed { background: #fee2e2; color: #b91c1c; }
.ds-tl-rev { font-size: 10.5px; font-weight: 600; color: #b91c1c; background: #fee2e2; border-radius: 10px; padding: 1px 8px; margin-left: auto; }

/* Onay penceresi — "Sentez'e yazmadan onayla" seçeneği */
.dn-skip-sentez { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; padding: 10px 12px; background: #fff7e6; border: 1px solid #f0d59a; border-radius: 9px; font-size: 12.5px; color: #6a4e12; cursor: pointer; }
.dn-skip-sentez input { margin-top: 2px; width: 16px; height: 16px; accent-color: #b7791f; flex-shrink: 0; }
.dn-skip-sentez b { color: #5a4210; }

/* Satış formu PDF popup — yerleşik tarayıcı görüntüleyici (iframe + blob) */
.dn-pdf-body { padding: 0 !important; overflow: hidden; }
.dn-pdf-frame { width: 100%; height: 82vh; border: none; display: block; }
