/* =========================================================
   Tahsilatlar sayfasi — premium liste
   ========================================================= */

/* HERO */
.tl-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px 28px;
    border-radius: 22px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #0F766E 100%);
    color: #fff;
    box-shadow: 0 18px 50px -10px rgba(15,23,42,0.45);
    overflow: hidden;
}
.tl-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 240px at 0% 0%, rgba(99,102,241,0.35) 0%, transparent 60%),
        radial-gradient(600px 280px at 100% 100%, rgba(16,185,129,0.30) 0%, transparent 55%);
    pointer-events: none;
}
.tl-hero-sol { display: flex; align-items: center; gap: 16px; position: relative; }
.tl-hero-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #6366F1, #10B981);
    color: #fff;
    box-shadow: 0 12px 30px rgba(99,102,241,0.45),
                inset 0 1px 0 rgba(255,255,255,0.25);
}
.tl-hero-sol h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, #C7D2FE 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.tl-hero-sol p { margin: 3px 0 0; font-size: 12.5px; color: rgba(226,232,240,0.72); }

/* KPI KARTLARI */
.tl-hero-kpi {
    position: relative;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.tl-kpi {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
    gap: 2px;
    transition: transform 0.18s, background 0.18s;
}
.tl-kpi:hover { transform: translateY(-2px); background: rgba(255,255,255,0.10); }
.tl-kpi small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(226,232,240,0.60);
    font-weight: 700;
}
.tl-kpi b {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
    line-height: 1.05;
}
.tl-kpi span {
    font-size: 11px;
    color: rgba(226,232,240,0.65);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.tl-kpi.is-ok      b { color: #4ADE80; }
.tl-kpi.is-err     b { color: #FCA5A5; }
.tl-kpi.is-toplam  b { color: #67E8F9; font-size: 20px; }
.tl-kpi.is-toplam span { color: rgba(103,232,249,0.80); font-size: 13px; font-weight: 800; }

@media (max-width: 900px) {
    .tl-hero { grid-template-columns: 1fr; }
    .tl-hero-kpi { grid-template-columns: repeat(2, 1fr); }
}

/* FILTRE BAR */
.tl-filtre {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--ja-border);
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    flex-wrap: wrap;
}
.tl-filtre-grup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-filtre-sag { flex: 1; justify-content: flex-end; }

.tl-tarih {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}
.tl-tarih svg { color: #64748B; }
.tl-tarih input[type="date"] {
    border: none; background: transparent;
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 12.5px;
    color: #1E293B;
    font-weight: 700;
    outline: none;
    padding: 2px;
    width: 122px;
}
.tl-tarih-sep { color: #94A3B8; font-weight: 800; }

.tl-hizli {
    appearance: none;
    background: transparent;
    border: 1px solid #E2E8F0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.tl-hizli:hover { background: #F1F5F9; border-color: #CBD5E1; color: #1E293B; }
.tl-hizli.is-aktif {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px rgba(99,102,241,0.30);
}

.tl-durum-grup {
    display: flex; background: #F1F5F9;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.tl-durum-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: #475569;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    letter-spacing: 0.2px;
}
.tl-durum-btn:hover { color: #1E293B; }
.tl-durum-btn.is-aktif {
    background: #fff;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}
.tl-durum-btn.is-ok.is-aktif  { color: #047857; }
.tl-durum-btn.is-err.is-aktif { color: #B91C1C; }
.tl-durum-btn.is-bek.is-aktif { color: #92400E; }

.tl-banka-select { min-width: 160px; }
.tl-banka-select .prm-select { padding: 6px 30px 6px 12px; font-size: 12.5px; }

.tl-arama {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    min-width: 220px;
    transition: border-color 0.15s, background 0.15s;
}
.tl-arama:focus-within { border-color: #6366F1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.tl-arama svg { color: #64748B; flex-shrink: 0; }
.tl-arama input {
    flex: 1; border: none; background: transparent; outline: none;
    font-family: inherit;
    font-size: 12.5px;
    color: #1E293B;
    min-width: 0;
}

/* ANA PANEL */
.tl-panel {
    background: #fff;
    border: 1px solid var(--ja-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

/* TABLO */
.tl-scroll { max-height: 65vh; overflow: auto; }
.tl-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    table-layout: fixed;
}
.tl-table thead th {
    position: sticky; top: 0; z-index: 2;
    background: #F8FAFC;
    text-align: left;
    padding: 11px 14px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    font-weight: 800;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}
.tl-th-durum   { width: 110px; }
.tl-th-tarih   { width: 110px; }
.tl-th-banka   { width: 130px; }
.tl-th-cari    { width: auto;  }
.tl-th-kart    { width: 170px; }
.tl-th-taksit  { width: 70px;  text-align: center; }
.tl-th-tutar   { width: 130px; text-align: right; }
.tl-th-islem   { width: 160px; }
.tl-th-mesaj   { width: 170px; }
.tl-th-aksiyon { width: 50px;  text-align: center; }

.tl-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tl-row { transition: background 0.12s; }
.tl-row:hover { background: linear-gradient(90deg, rgba(99,102,241,0.04) 0%, rgba(16,185,129,0.03) 100%); }

.tl-row.is-err td { color: #7F1D1D; opacity: 0.75; }
.tl-row.is-err .tl-tutar-hucre b { text-decoration: line-through; color: #DC2626; }

/* Durum rozeti */
.tl-durum-rozet {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.tl-durum-dot { width: 6px; height: 6px; border-radius: 50%; }
.tl-durum-rozet.is-ok  { background: rgba(16,185,129,0.12);  color: #047857; }
.tl-durum-rozet.is-ok  .tl-durum-dot { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.18); animation: tlPulse 2s ease-in-out infinite; }
.tl-durum-rozet.is-err { background: rgba(239,68,68,0.12);   color: #B91C1C; }
.tl-durum-rozet.is-err .tl-durum-dot { background: #EF4444; }
.tl-durum-rozet.is-bek { background: rgba(245,158,11,0.12);  color: #92400E; }
.tl-durum-rozet.is-bek .tl-durum-dot { background: #F59E0B; animation: tlPulse 1.5s ease-in-out infinite; }
.tl-durum-rozet.is-iptal { background: rgba(100,116,139,0.14); color: #475569; }
.tl-durum-rozet.is-iptal .tl-durum-dot { background: #64748B; }
.tl-row.is-iptal td { color: #64748B; opacity: 0.80; }
.tl-row.is-iptal .tl-tutar-hucre b { text-decoration: line-through; color: #94A3B8; }
.tl-durum-btn.is-iptal.is-aktif { color: #475569; }
@keyframes tlPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Tarih sutunu */
.tl-tarih-cell { display: flex; flex-direction: column; line-height: 1.15; }
.tl-tarih-cell b { font-family: 'Plus Jakarta Sans', monospace; font-size: 12.5px; color: #0F172A; font-weight: 700; }
.tl-tarih-cell small { font-size: 10.5px; color: #64748B; font-family: 'Plus Jakarta Sans', monospace; }

/* Banka sutunu — yeni gorsel kutu */
.tl-banka-cell {
    display: flex; align-items: center;
    gap: 0;
}
.tl-banka-logo-kutu {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    border-left: 3px solid var(--banka-renk, #475569);
    box-shadow: 0 2px 5px rgba(15,23,42,0.06);
    min-width: 110px;
    height: 36px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.tl-banka-logo-kutu img {
    max-height: 22px;
    max-width: 90px;
    object-fit: contain;
}
.tl-row:hover .tl-banka-logo-kutu {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15,23,42,0.10);
}
.tl-banka-baslik {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 10px 5px 6px;
    background: linear-gradient(90deg, var(--banka-renk, #475569) 0%, color-mix(in oklab, var(--banka-renk, #475569) 88%, #fff) 100%);
    border-radius: 8px;
    color: #fff;
    min-width: 110px;
    height: 36px;
    box-shadow: 0 2px 5px rgba(15,23,42,0.10);
}
.tl-banka-harf {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: rgba(255,255,255,0.20);
    display: inline-grid; place-items: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.tl-banka-baslik .tl-banka-ad {
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cari sutunu */
.tl-cari-cell { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tl-cari-cell b { font-size: 12.5px; font-weight: 700; color: #0F172A; overflow: hidden; text-overflow: ellipsis; }
.tl-cari-cell small { font-size: 10.5px; color: #6366F1; font-family: 'Plus Jakarta Sans', monospace; font-weight: 600; }

/* Kart sutunu */
.tl-kart-cell { display: flex; align-items: center; gap: 8px; }
.tl-kart-cell > div { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tl-kart-cell b {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 12px;
    color: #0F172A;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.tl-kart-cell small {
    font-size: 10px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Plus Jakarta Sans', monospace;
}
.tl-marka {
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    font-style: italic;
    flex-shrink: 0;
}
.tl-marka-visa { background: #1A1F71; }
.tl-marka-mc   { background: linear-gradient(90deg, #EB001B, #F79E1B); }
.tl-marka-amex { background: #2671B7; }
.tl-marka-troy { background: linear-gradient(90deg, #E94E1B, #B33216); font-style: normal; text-transform: lowercase; }

/* Taksit */
.tl-taksit-hucre { text-align: center; }
.tl-taksit-tek {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(99,102,241,0.10);
    color: #4338CA;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tl-taksit-no {
    display: inline-grid; place-items: center;
    min-width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(245,158,11,0.30);
}

/* Tutar */
.tl-tutar-hucre { text-align: right; }
.tl-tutar-hucre b {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}
.tl-tutar-hucre small {
    font-size: 9.5px;
    color: #64748B;
    margin-left: 3px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* İslem No */
.tl-islem-cell { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; min-width: 0; }
.tl-islem-cell code {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 11px;
    color: #1E293B;
    background: rgba(99,102,241,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tl-islem-cell small {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 10px;
    color: #94A3B8;
    font-weight: 600;
    padding-left: 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mesaj */
.tl-mesaj-hucre {
    font-size: 11.5px;
}
.tl-mesaj-ok { color: #CBD5E1; font-weight: 700; }
.tl-mesaj-bek {
    color: #92400E;
    font-style: italic;
    background: rgba(245,158,11,0.10);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245,158,11,0.25);
}
.tl-mesaj-hata {
    display: inline-flex; align-items: center; gap: 5px;
    color: #B91C1C;
    background: rgba(239,68,68,0.10);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(239,68,68,0.25);
    font-weight: 700;
    font-style: normal;
    max-width: 100%;
}
.tl-mesaj-hata svg { color: #DC2626; flex-shrink: 0; }
.tl-mesaj-hata span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Aksiyon */
.tl-aksiyon-cell { display: flex; gap: 4px; justify-content: center; }
.tl-aks-btn {
    width: 28px; height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: grid; place-items: center;
    transition: all 0.15s;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.20);
    color: #4338CA;
}
.tl-aks-btn:hover { transform: translateY(-1px) scale(1.05); }
.tl-aks-dekont:hover { background: rgba(99,102,241,0.20); box-shadow: 0 4px 10px rgba(99,102,241,0.20); }
.tl-aks-iptal {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.20);
    color: #DC2626;
}
.tl-aks-iptal:hover { background: rgba(239,68,68,0.18); box-shadow: 0 4px 10px rgba(239,68,68,0.20); }

/* SAYFALAMA */
.tl-sayfa-cubuk {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--ja-border);
    background: #FAFBFD;
    flex-wrap: wrap;
    gap: 12px;
}
.tl-sayfa-bilgi { font-size: 12px; color: #475569; }
.tl-sayfa-bilgi b { color: #0F172A; font-weight: 800; }
.tl-sayfa-aksiyon { display: flex; gap: 4px; }
.tl-sayfa-btn {
    min-width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    display: inline-grid; place-items: center;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 0 8px;
    transition: all 0.12s;
}
.tl-sayfa-btn:hover:not(:disabled) { background: #F1F5F9; color: #1E293B; border-color: #CBD5E1; }
.tl-sayfa-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tl-sayfa-btn.is-aktif {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px rgba(99,102,241,0.30);
}

/* BOŞ DURUM */
.tl-bos {
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
}
.tl-bos svg { color: #CBD5E1; margin-bottom: 14px; }
.tl-bos p { margin: 0; font-size: 13.5px; }
