/* ═══════════════════════════════════════════════════════════════════════════
   Bildirim Takibi (Satış & Teslimat Ekran 05) — net-new sınıflar (nt-*).
   Kabuk/grid/kart/popup sınıfları dealer-region.css + my-products.css +
   delivery-notifications.css'ten yeniden kullanılır; burada yalnız ekrana özel
   parçalar tanımlıdır. Tema: charcoal başlık + teal accent (proje standardı).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tıklanabilir KPI kartı */
.nt-page .dr-stat.clickable { cursor: pointer; }
.nt-page .dr-stat.clickable:hover { box-shadow: 0 2px 10px rgba(15,23,42,.12); transform: translateY(-1px); }

/* Masaüstünde 5 KPI kartı TEK SATIR (paylaşılan dr-stats 4 sütun; burada 5'e çıkarılır) */
@media (min-width: 1025px) {
    .nt-page .dr-stats { grid-template-columns: repeat(5, 1fr) !important; }

    /* Arama + bayi + ürün tipi + eşik + sayaç TEK SATIR */
    .nt-page .dr-toolbar { flex-wrap: nowrap !important; align-items: center; }
    .nt-page .dr-search { flex: 1 1 auto; min-width: 130px; }
    .nt-page .dr-toolbar .dn-combo { flex: 0 0 auto; width: 190px; }
    .nt-page .dr-toolbar .dn-combo-sm { width: 150px; }
    .nt-page .dr-count { flex: 0 0 auto; white-space: nowrap; margin-left: auto; }
}

/* Tablet: KPI 3 sütun, toolbar sarabilir */
@media (min-width: 641px) and (max-width: 1024px) {
    .nt-page .dr-stats { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Yaş rozeti — stokta kalma süresi */
.nt-age {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 16px;
    background: #eef2f6;
    color: #475569;
    white-space: nowrap;
}
.nt-age.warn { background: #ffedd5; color: #c2410c; }
.nt-age.bad { background: #fee2e2; color: #dc2626; }

/* Bayi Stokları'nda "hatırlatıldı" göstergesi (Bildirim Takibi'nden gönderilen) */
.ds-reminder-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e8f4fd;
    color: #0078d4;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.ds-reminder-badge .material-symbols-outlined { font-size: 14px; color: #0078d4; }
.ds-reminder-badge.clickable { cursor: pointer; border: none; }
.ds-reminder-badge.clickable:hover { background: #d6ebfb; }

/* Seçili/odaklı satırda (teal zemin) okunur kalsın — ds-transfer-badge ile BİREBİR aynı desen
   (evrensel `tr.dxbl-selected>td *` beyazlatmasına karşı; odak sınıfı için [class*=focused] partial da dahil). */
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .ds-reminder-badge,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .ds-reminder-badge,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .ds-reminder-badge {
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
}
.teal-grid .dxbl-grid-table tbody tr[class*="focused"] > td .ds-reminder-badge .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-focused > td .ds-reminder-badge .material-symbols-outlined,
.teal-grid .dxbl-grid-table tbody tr.dxbl-selected > td .ds-reminder-badge .material-symbols-outlined {
    color: #fff !important;
}
.ds-reminder-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: #0078d4;
}
.ds-reminder-note .material-symbols-outlined { font-size: 16px; }

.nt-red { color: #dc2626; font-weight: 600; }
.nt-amber { color: #c2410c; font-weight: 600; }

.nt-last { font-weight: 600; color: #475569; font-size: 12.5px; }

/* Toplu seçim şeridi */
.nt-bulkbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 8px 14px;
    margin: 0 0 12px;
}
.nt-bulk-info { font-size: 13.5px; color: #1e3a8a; }
.nt-bulk-clear {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    width: 30px; height: 30px;
    justify-content: center;
}
.nt-bulk-clear:hover { background: #dbeafe; color: #1e3a8a; }

.nt-card-chk { width: 18px; height: 18px; margin: 2px 6px 0 0; flex: 0 0 auto; }

/* Hatırlatma popup — seçili ürün özeti (tekli) */
.nt-selp {
    background: #e8f4fd;
    border: 1px solid #bfe0f7;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 6px;
}

/* Kanal seçimi */
.nt-chans {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 4px 0 12px;
}
.nt-chans label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
}
.nt-chans input[type=checkbox] { width: 17px; height: 17px; }

/* Toplu seçili ürün listesi */
.nt-sel-list {
    max-height: 190px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
}
.nt-sel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
}
.nt-sel-row:last-child { border-bottom: none; }
.nt-sel-row > .material-symbols-outlined { color: #94a3b8; font-size: 20px; }
.nt-sel-body { flex: 1; min-width: 0; }

/* Detay — özet satırları */
.nt-sum { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.nt-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.nt-sum-row:last-child { border-bottom: none; }
.nt-sum-row .l { color: #64748b; }
.nt-sum-row .v { font-weight: 600; color: #1e293b; text-align: right; }

/* Hatırlatma geçmişi zaman çizelgesi */
.nt-hist { border-left: 2px solid #e2e8f0; padding-left: 14px; margin: 4px 0 6px; }
.nt-hist-it { position: relative; margin-bottom: 14px; }
.nt-hist-it::before {
    content: '';
    position: absolute;
    left: -19px; top: 4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #0078d4;
}
.nt-hist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.nt-hist-date { color: #64748b; font-size: 12px; font-weight: 500; }
.nt-hist-meta { color: #64748b; font-size: 12px; margin-top: 1px; }
.nt-hist-msg {
    margin-top: 6px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #334155;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .nt-bulkbar { flex-wrap: wrap; }
}
