/* =========================================================
   Tahsilat Kurallari sayfasi
   ========================================================= */

.tk-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 28px;
    border-radius: 22px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #312E81 0%, #1E1B4B 60%, #0F172A 100%);
    color: #fff;
    box-shadow: 0 18px 50px -10px rgba(49,46,129,0.40);
    overflow: hidden;
}
.tk-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 240px at 0% 0%, rgba(139,92,246,0.40) 0%, transparent 60%),
        radial-gradient(600px 280px at 100% 100%, rgba(236,72,153,0.30) 0%, transparent 55%);
    pointer-events: none;
}
.tk-hero-icon {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: #fff;
    box-shadow: 0 12px 30px rgba(139,92,246,0.45),
                inset 0 1px 0 rgba(255,255,255,0.25);
}
.tk-hero-text { position: relative; }
.tk-hero-text h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.7px;
    background: linear-gradient(135deg, #fff 30%, #C7D2FE 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tk-hero-text p { margin: 4px 0 0; font-size: 13.5px; color: rgba(226,232,240,0.78); font-weight: 500; }

/* BILGI KUTUSU */
.tk-info {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
    border: 1px solid rgba(99,102,241,0.22);
    border-radius: 14px;
    margin-bottom: 14px;
    color: #4338CA;
    font-size: 12.5px;
}
.tk-info svg { color: #6366F1; flex-shrink: 0; margin-top: 2px; }
.tk-info b { color: #312E81; font-size: 13px; }
.tk-info p { margin: 4px 0 0; line-height: 1.5; }

/* TEST KUTUSU */
.tk-test {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #F59E0B;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.tk-test-head {
    display: flex; align-items: center; gap: 10px;
    color: #78350F;
    font-size: 13px;
    flex-wrap: wrap;
}
.tk-test-head svg { color: #B45309; }
.tk-test-input {
    width: 140px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid #F59E0B;
    background: #FFFBEB;
    font-family: 'Plus Jakarta Sans', monospace;
    font-weight: 800;
    font-size: 14px;
    color: #78350F;
    text-align: right;
    outline: none;
}
.tk-test-input:focus { border-color: #D97706; box-shadow: 0 0 0 3px rgba(245,158,11,0.20); }

.tk-test-rozetler {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 12px;
}
.tk-test-rozet {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border-left: 3px solid var(--banka-renk);
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tk-test-rozet b { color: #1F2937; font-weight: 800; }
.tk-test-rozet small { color: #6B7280; font-weight: 600; }
.tk-test-bos {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    font-size: 12.5px;
    color: #92400E;
    font-style: italic;
}
.tk-test-not {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 6px;
    color: #78350F;
    font-size: 11.5px;
    line-height: 1.5;
    display: flex; align-items: flex-start; gap: 6px;
}
.tk-test-not svg { color: #B45309; flex-shrink: 0; margin-top: 2px; }
.tk-test-not b { color: #451A03; }

/* TABLO */
.tk-panel {
    padding: 18px 20px;
}
.tk-panel-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
.tk-panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
}

.tk-bos {
    text-align: center;
    padding: 40px 20px;
    color: #94A3B8;
}
.tk-bos svg { color: #CBD5E1; margin-bottom: 14px; }
.tk-bos p { margin: 0; font-size: 13.5px; line-height: 1.5; }

.tk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.tk-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    font-weight: 800;
    border-bottom: 2px solid #E2E8F0;
    background: #F8FAFC;
}
.tk-table tbody tr {
    transition: background 0.15s;
}
.tk-table tbody tr:hover { background: #F1F5F9; }
.tk-table tbody tr.is-pasif { opacity: 0.55; }
.tk-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #F1F5F9;
}
.tk-th-aktif, .tk-th-aksiyon { width: 90px; }
.tk-th-taksit  { width: 130px; }
.tk-th-banka   { width: 180px; }
.tk-th-aralik  { width: 240px; }

.tk-cell-aralik {
    display: flex; align-items: center; gap: 6px;
    font-family: 'Plus Jakarta Sans', monospace;
    font-weight: 700;
    color: #1E293B;
}
.tk-tutar-chip {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(99,102,241,0.08);
    color: #4338CA;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}
.tk-tutar-ok { color: #94A3B8; font-weight: 800; }

.tk-taksit-rozet {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(245,158,11,0.30);
}

.tk-banka-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--banka-renk);
    color: var(--banka-renk);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}
.tk-banka-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--banka-renk);
}
.tk-tumu {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(16,185,129,0.10);
    color: #047857;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tk-aciklama {
    color: #64748B;
    font-size: 12px;
    font-style: italic;
    max-width: 260px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.tk-aktif-rozet {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.tk-aktif-rozet.is-aktif {
    background: rgba(16,185,129,0.12);
    color: #047857;
}
.tk-aktif-rozet.is-pasif {
    background: rgba(100,116,139,0.12);
    color: #475569;
}

.tk-aksiyon { white-space: nowrap; }
.tk-ikon-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    display: inline-grid; place-items: center;
    margin-right: 4px;
    transition: all 0.15s;
}
.tk-ikon-btn:hover { background: #F1F5F9; border-color: #CBD5E1; color: #1E293B; }
.tk-ikon-sil:hover { background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.30); color: #DC2626; }

/* DUZEN FORMU (inline row) */
.tk-row-duzen { background: linear-gradient(135deg, #F0F9FF, #E0F2FE); }
.tk-row-duzen > td { padding: 0; }
.tk-form {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.04));
    border-left: 4px solid #8B5CF6;
}
.tk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 14px 16px;
    align-items: end;
}
.tk-form-col-2 { grid-column: span 3; }
.tk-form-aktif { grid-column: 4; }
@media (max-width: 900px) {
    .tk-form-grid { grid-template-columns: 1fr 1fr; }
    .tk-form-col-2 { grid-column: span 2; }
    .tk-form-aktif { grid-column: span 2; }
}
.tk-form-aksiyon {
    display: flex; justify-content: flex-end; gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(99,102,241,0.25);
}
