/* ============================================================
   Tahakkuk & borçlar (tahakkuk.html) + Borçlarım (borclarim.html)
   Yalnız bu iki sayfa yükler; sınıflar thk- önekli.
   ============================================================ */

.thk-wrap { max-width: 1280px; }
.thk-ust { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--us-space-5); }
.thk-ust h2 { font: var(--us-text-h1); letter-spacing: var(--us-tracking-h1); margin: 4px 0 6px; color: var(--us-text-body); }
.thk-ust p { margin: 0; color: var(--us-text-muted); font-size: 14.5px; max-width: 640px; }
.thk-ust__sag { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thk-mail-durum { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--us-text-muted); background: var(--us-white); border: 1px solid var(--us-border-subtle); border-radius: var(--us-radius-pill); padding: 5px 11px; margin-top: 10px; }
.thk-mail-durum i, .thk-mail-durum svg { width: 14px; height: 14px; }
.thk-mail-durum.is-ok svg { color: var(--us-success); }
.thk-mail-durum.is-uyari svg { color: var(--us-yellow-700); }
.thk-mail-durum.is-kapali svg { color: var(--us-danger); }

/* KPI kartları */
.thk-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: var(--us-space-5); }
.thk-kpi__kart { background: var(--us-white); border-radius: var(--us-radius-lg); padding: 18px 20px; box-shadow: var(--us-shadow-sm); border: 1px solid var(--us-border-subtle); position: relative; overflow: hidden; }
.thk-kpi__kart::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--renk, var(--us-primary-blue)); }
.thk-kpi__etiket { font: 700 11px/1.3 var(--us-font-body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--us-text-faint); }
.thk-kpi__deger { font: 900 30px/1.1 var(--us-font-display); letter-spacing: -0.8px; color: var(--us-text-body); margin-top: 6px; font-variant-numeric: tabular-nums; }
.thk-kpi__alt { font-size: 12.5px; color: var(--us-text-muted); margin-top: 3px; }
.thk-kpi__kart.is-tik { cursor: pointer; transition: transform var(--us-duration-fast), box-shadow var(--us-duration-fast); }
.thk-kpi__kart.is-tik:hover { transform: translateY(-1px); box-shadow: var(--us-shadow-md); }

/* Sekmeler */
.thk-sekmeler { display: flex; gap: 4px; border-bottom: 2px solid var(--us-border-subtle); margin-bottom: var(--us-space-4); overflow-x: auto; scrollbar-width: none; }
.thk-sekme { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 0; background: none; font: 700 14px var(--us-font-body); color: var(--us-text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.thk-sekme svg { width: 16px; height: 16px; }
.thk-sekme:hover { color: var(--us-text-body); }
.thk-sekme.is-active { color: var(--us-blue-700); border-bottom-color: var(--us-blue-700); }
.thk-sayi { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: var(--us-brown-50); font-size: 11.5px; color: var(--us-text-muted); }
.thk-sayi.is-dikkat { background: var(--us-accent-yellow); color: var(--us-dark-brown); }

/* Araç çubuğu */
.thk-arac { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.thk-ara { position: relative; flex: 1 1 240px; max-width: 340px; }
.thk-ara svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--us-text-faint); pointer-events: none; }
.thk-ara .us-input { padding: 9px 12px 9px 36px; font-size: 13.5px; }
.thk-arac select.us-input { width: auto; padding: 9px 12px; font-size: 13.5px; }
.thk-arac .thk-bosluk { flex: 1; }

/* Tablo */
.thk-tablo-kart { background: var(--us-white); border-radius: var(--us-radius-lg); box-shadow: var(--us-shadow-sm); border: 1px solid var(--us-border-subtle); overflow: auto; }
table.thk-tablo { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.thk-tablo th { text-align: left; font: 700 11px var(--us-font-body); letter-spacing: 0.8px; text-transform: uppercase; color: var(--us-text-faint); padding: 11px 12px; border-bottom: 1px solid var(--us-border-subtle); background: #FBFAF9; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.thk-tablo td { padding: 11px 12px; border-bottom: 1px solid var(--us-border-subtle); vertical-align: middle; font-variant-numeric: tabular-nums; }
.thk-tablo tbody tr { cursor: pointer; transition: background var(--us-duration-fast); }
.thk-tablo tbody tr:hover { background: var(--us-blue-50); }
.thk-tablo tbody tr.is-secili { background: var(--us-yellow-50); }
.thk-tablo .r { text-align: right; }
.thk-tablo .c { text-align: center; width: 36px; }
.thk-tablo .kisi b { display: block; font-family: var(--us-font-display); font-weight: 700; font-size: 14px; }
.thk-tablo .kisi small, .thk-tablo .kalem small { color: var(--us-text-faint); font-size: 12px; }
.thk-tablo .kalem b { font-weight: 600; }
.thk-tablo .tutar-b { font-weight: 800; font-family: var(--us-font-display); font-size: 14.5px; }
.thk-tablo .bos { text-align: center; color: var(--us-text-faint); padding: 40px 12px; cursor: default; }
.thk-tablo input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--us-blue-700); cursor: pointer; }
.thk-tablo tfoot td { font-weight: 800; background: #FBFAF9; border-bottom: 0; cursor: default; }

/* Rozetler */
.thk-rozet { display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px var(--us-font-body); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.thk-rozet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.thk-d-acik { background: var(--us-blue-50); color: var(--us-blue-700); }
.thk-d-kismi { background: var(--us-yellow-50); color: var(--us-yellow-700); }
.thk-d-odendi { background: rgba(47, 122, 75, 0.11); color: var(--us-success); }
.thk-d-iptal, .thk-d-taksitlendi { background: var(--us-brown-50); color: var(--us-text-muted); }
.thk-d-gecikmis { background: rgba(176, 58, 49, 0.1); color: var(--us-danger); }
.thk-d-bekliyor { background: var(--us-yellow-50); color: var(--us-yellow-700); }
.thk-d-onaylandi { background: var(--us-blue-50); color: var(--us-blue-700); }
.thk-d-reddedildi { background: rgba(176, 58, 49, 0.1); color: var(--us-danger); }
.thk-kat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--us-text-muted); background: var(--us-surface-muted); border-radius: 6px; padding: 2px 7px; margin-right: 4px; }
.thk-gec { color: var(--us-danger); font-weight: 700; }

/* Toplu işlem çubuğu */
.thk-toplu { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--us-dark-brown); color: #fff; padding: 10px 12px 10px 18px; border-radius: 14px; box-shadow: var(--us-shadow-lg); margin-top: 12px; }
.thk-toplu b { font-family: var(--us-font-display); }
.thk-toplu .us-btn { background: rgba(255,255,255,0.12); color: #fff; border-color: transparent; }
.thk-toplu .us-btn:hover { background: rgba(255,255,255,0.22); }
.thk-toplu .us-btn.is-sari { background: var(--us-accent-yellow); color: var(--us-dark-brown); }

/* Çekmece (detay) */
.thk-cekmece-perde { position: fixed; inset: 0; background: rgba(63, 50, 50, 0.4); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
.thk-cekmece-perde.show { opacity: 1; pointer-events: auto; }
.thk-cekmece { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--us-surface-page); z-index: 71; box-shadow: -10px 0 40px rgba(63,50,50,.18); transform: translateX(100%); transition: transform .28s var(--us-ease-out); display: flex; flex-direction: column; }
.thk-cekmece.show { transform: none; }
.thk-cekmece__bas { background: var(--us-white); padding: 20px 24px 16px; border-bottom: 1px solid var(--us-border-subtle); display: flex; gap: 12px; align-items: flex-start; }
.thk-cekmece__bas h3 { margin: 2px 0 4px; font: 800 21px/1.25 var(--us-font-display); }
.thk-cekmece__bas p { margin: 0; color: var(--us-text-muted); font-size: 13px; }
.thk-cekmece__govde { flex: 1; overflow: auto; padding: 18px 24px 40px; }
.thk-ozet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.thk-ozet div { background: var(--us-white); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--us-border-subtle); }
.thk-ozet span { display: block; font: 700 10.5px var(--us-font-body); letter-spacing: 1px; text-transform: uppercase; color: var(--us-text-faint); }
.thk-ozet b { display: block; font: 900 21px/1.2 var(--us-font-display); margin-top: 3px; font-variant-numeric: tabular-nums; }
.thk-ozet .is-kalan { background: var(--us-dark-brown); border-color: transparent; }
.thk-ozet .is-kalan span { color: rgba(255,255,255,.6); }
.thk-ozet .is-kalan b { color: var(--us-accent-yellow); }
.thk-bilgi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; background: var(--us-white); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--us-border-subtle); font-size: 13px; margin-bottom: 14px; }
.thk-bilgi span { color: var(--us-text-faint); display: block; font-size: 11.5px; }
.thk-bilgi b { font-weight: 600; }
.thk-uyari { display: flex; gap: 10px; align-items: flex-start; background: var(--us-yellow-50); color: var(--us-yellow-700); border-radius: 12px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px; }
.thk-uyari svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.thk-uyari.is-kirmizi { background: rgba(176, 58, 49, 0.08); color: var(--us-danger); }
.thk-uyari.is-yesil { background: rgba(47, 122, 75, 0.09); color: var(--us-success); }
.thk-eylemler { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.thk-eylemler .us-btn { padding: 7px 11px; font-size: 13px; }
.thk-eylemler .us-btn.is-active { background: var(--us-dark-brown); color: #fff; border-color: var(--us-dark-brown); }
.thk-form { background: var(--us-white); border: 1px solid var(--us-border-subtle); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.thk-form .grid-2, .thk-form .grid-3 { gap: 10px; }
.thk-form__alt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.thk-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--us-text-muted); cursor: pointer; }
.thk-check input { width: 16px; height: 16px; accent-color: var(--us-blue-700); }
.thk-not { font-size: 12.5px; color: var(--us-text-faint); }

/* Zaman çizelgesi */
.thk-zaman { list-style: none; margin: 0; padding: 0; position: relative; }
.thk-zaman::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--us-border); }
.thk-zaman li { position: relative; display: flex; gap: 12px; padding: 7px 0; }
.thk-zaman .ikon { width: 32px; height: 32px; border-radius: 50%; background: var(--us-white); border: 2px solid var(--us-border); display: inline-flex; align-items: center; justify-content: center; flex: none; z-index: 1; color: var(--us-text-muted); }
.thk-zaman .ikon svg { width: 15px; height: 15px; }
.thk-zaman .ikon.is-odeme { border-color: var(--us-success); color: var(--us-success); }
.thk-zaman .ikon.is-iptal { border-color: var(--us-danger); color: var(--us-danger); }
.thk-zaman .ikon.is-mavi { border-color: var(--us-primary-blue); color: var(--us-blue-700); }
.thk-zaman .govde { flex: 1; min-width: 0; padding-top: 4px; font-size: 13.5px; }
.thk-zaman .govde b { font-weight: 700; }
.thk-zaman .govde small { display: block; color: var(--us-text-faint); font-size: 12px; margin-top: 1px; }
.thk-zaman .tutar { font: 800 14px var(--us-font-display); padding-top: 5px; white-space: nowrap; }

/* Kişi seçici kısayolları + özet */
.thk-kisayol { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thk-kisayol button { border: 1px dashed var(--us-border-input); background: var(--us-white); color: var(--us-text-muted); font: 600 12.5px var(--us-font-body); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.thk-kisayol button:hover { border-style: solid; color: var(--us-blue-700); border-color: var(--us-blue-700); }
.thk-toplam-kutu { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--us-dark-brown); color: #fff; border-radius: 12px; padding: 12px 16px; }
.thk-toplam-kutu span { font-size: 13px; color: rgba(255,255,255,.75); }
.thk-toplam-kutu b { font: 900 22px var(--us-font-display); color: var(--us-accent-yellow); }
.thk-ilerleme { height: 8px; border-radius: 999px; background: var(--us-surface-muted); overflow: hidden; }
.thk-ilerleme span { display: block; height: 100%; background: var(--us-success); border-radius: 999px; transition: width .3s; }
.modal.is-genis { max-width: 680px; }

/* Talep kartları */
.thk-talepler { display: grid; gap: 12px; }
.thk-talep { background: var(--us-white); border-radius: var(--us-radius-lg); border: 1px solid var(--us-border-subtle); box-shadow: var(--us-shadow-sm); padding: 16px 18px; scroll-margin-top: 90px; }
.thk-talep.is-vurgu { outline: 3px solid var(--us-accent-yellow); }
.thk-talep__ust { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.thk-talep__ust h4 { margin: 0; font: 800 16px var(--us-font-display); }
.thk-talep__ust p { margin: 2px 0 0; font-size: 12.5px; color: var(--us-text-faint); }
.thk-talep__tutar { margin-left: auto; font: 900 20px var(--us-font-display); font-variant-numeric: tabular-nums; }
.thk-talep__metin { margin: 10px 0 0; font-size: 13.5px; color: var(--us-text-muted); white-space: pre-wrap; line-height: 1.55; }
.thk-talep__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--us-text-muted); margin-top: 10px; }
.thk-talep__meta b { color: var(--us-text-body); }
.thk-talep__karar { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--us-border); display: flex; flex-direction: column; gap: 8px; }
.thk-talep__yanit { margin-top: 10px; background: var(--us-surface-muted); border-radius: 10px; padding: 9px 12px; font-size: 13px; }

/* ── Üye sayfası (Borçlarım) ──────────────────────────────────── */
.brc-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: var(--us-space-5); }
.brc-toplam { display: flex; flex-direction: column; justify-content: center; background: var(--us-dark-brown); color: #fff; border-radius: 20px; padding: 24px 26px; position: relative; overflow: hidden; }
.brc-toplam::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(242,185,59,.28), transparent 70%); }
.brc-toplam .etiket { font: 700 11px var(--us-font-body); letter-spacing: 1.6px; color: rgba(255,255,255,.62); text-transform: uppercase; }
.brc-toplam .deger { font: 900 46px/1.05 var(--us-font-display); letter-spacing: -1.2px; color: var(--us-accent-yellow); margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.brc-toplam .deger.is-sifir { color: #8FE0AE; }
.brc-toplam .alt { font-size: 14px; color: rgba(255,255,255,.8); }
.brc-cipler { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.brc-cip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; }
.brc-cip svg { width: 14px; height: 14px; }
.brc-cip.is-kirmizi { background: rgba(255, 120, 100, .2); color: #FFC3B8; }
.brc-yan { background: var(--us-white); border-radius: 20px; padding: 20px 22px; border: 1px solid var(--us-border-subtle); display: flex; flex-direction: column; gap: 10px; }
.brc-yan h4 { margin: 0; font: 800 15px var(--us-font-display); display: flex; align-items: center; gap: 7px; }
.brc-yan h4 svg { width: 17px; height: 17px; color: var(--us-blue-700); }
.brc-iban { display: flex; align-items: center; gap: 8px; background: var(--us-surface-muted); border-radius: 10px; padding: 9px 10px 9px 12px; font-family: var(--us-font-mono); font-size: 14px; letter-spacing: .3px; }
.brc-iban code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.brc-kalemler { display: grid; gap: 12px; }
.brc-kalem { background: var(--us-white); border-radius: 18px; border: 1px solid var(--us-border-subtle); box-shadow: var(--us-shadow-sm); padding: 18px 20px; scroll-margin-top: 90px; }
.brc-kalem.is-gecikmis { border-color: rgba(176, 58, 49, .35); }
.brc-kalem.is-vurgu { outline: 3px solid var(--us-accent-yellow); }
.brc-kalem__ust { display: flex; gap: 12px; align-items: flex-start; }
.brc-kalem__ikon { width: 42px; height: 42px; border-radius: 12px; background: var(--us-blue-50); color: var(--us-blue-700); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brc-kalem__ikon svg { width: 20px; height: 20px; }
.brc-kalem__baslik { flex: 1 1 0; min-width: 0; }
.brc-kalem__ust h4 { margin: 0; font: 800 17px/1.3 var(--us-font-display); }
.brc-kalem__ust p { margin: 3px 0 0; font-size: 12.5px; color: var(--us-text-faint); }
.brc-kalem__kalan { margin-left: auto; text-align: right; }
.brc-kalem__kalan b { display: block; font: 900 24px/1.1 var(--us-font-display); font-variant-numeric: tabular-nums; }
.brc-kalem__kalan small { color: var(--us-text-faint); font-size: 12px; }
.brc-kalem__aciklama { font-size: 13.5px; color: var(--us-text-muted); margin: 10px 0 0; line-height: 1.5; }
.brc-kalem__ilerleme { margin-top: 14px; }
.brc-kalem__ilerleme .thk-not { display: flex; justify-content: space-between; margin-top: 5px; }
.brc-kalem__eylem { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.brc-detay { margin-top: 12px; border-top: 1px dashed var(--us-border); padding-top: 10px; }
.brc-detay summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--us-blue-700); list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.brc-detay summary::-webkit-details-marker { display: none; }
.brc-detay[open] summary svg { transform: rotate(180deg); }
.brc-detay summary svg { width: 15px; height: 15px; transition: transform .2s; }
.brc-bos { text-align: center; background: var(--us-white); border-radius: 18px; border: 1px dashed var(--us-border-input); padding: 34px 20px; color: var(--us-text-muted); }
.brc-bos svg { width: 34px; height: 34px; color: var(--us-success); margin-bottom: 8px; }
.brc-bos b { display: block; font: 800 18px var(--us-font-display); color: var(--us-text-body); margin-bottom: 4px; }
.brc-gecmis { background: var(--us-white); border-radius: 16px; border: 1px solid var(--us-border-subtle); }
.brc-gecmis__satir { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--us-border-subtle); font-size: 13.5px; }
.brc-gecmis__satir:last-child { border-bottom: 0; }
.brc-gecmis__satir .ad { flex: 1; min-width: 0; }
.brc-gecmis__satir .ad small { display: block; color: var(--us-text-faint); font-size: 12px; }
.brc-banner { display: flex; gap: 10px; align-items: center; border-radius: 14px; padding: 13px 16px; margin-bottom: 16px; font-size: 14px; }
.brc-banner svg { width: 20px; height: 20px; flex: none; }
.brc-banner.is-ok { background: rgba(47, 122, 75, 0.1); color: var(--us-success); }
.brc-banner.is-hata { background: rgba(176, 58, 49, 0.09); color: var(--us-danger); }
.brc-secim { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.brc-secim label { display: flex; flex-direction: column; gap: 3px; border: 1.5px solid var(--us-border-input); border-radius: 12px; padding: 11px 12px; cursor: pointer; font-size: 13px; color: var(--us-text-muted); }
.brc-secim label b { color: var(--us-text-body); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.brc-secim label b svg { width: 16px; height: 16px; }
.brc-secim input { position: absolute; opacity: 0; pointer-events: none; }
.brc-secim label:has(input:checked) { border-color: var(--us-blue-700); background: var(--us-blue-50); }
#iyziKap { min-height: 120px; }

@media (max-width: 1100px) { .thk-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .brc-hero { grid-template-columns: 1fr; }
  .thk-ozet { grid-template-columns: 1fr 1fr; }
  .thk-ozet .is-kalan { grid-column: 1 / -1; }
  .thk-bilgi { grid-template-columns: 1fr; }
  .thk-ust h2 { font-size: 28px; }
  .brc-toplam .deger { font-size: 38px; }
  .brc-kalem__ust { flex-wrap: wrap; }
  .brc-kalem__kalan { flex-basis: 100%; margin-left: 54px; text-align: left; }
  .thk-ara { max-width: none; }
}
@media (max-width: 520px) {
  .thk-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .thk-kpi__deger { font-size: 24px; }
  .thk-cekmece__govde { padding: 16px; }
  .thk-cekmece__bas { padding: 16px; }
  .brc-kalem__eylem .us-btn { flex: 1 1 auto; justify-content: center; }
}
