/* ============================================================
   Page: giderler — "Masraf Kontrol"
   Aksiyon şeridi + sabit gider barı + 3 kartlık özet şeridi + kategori ağacı
   + ödeme rozetleri + satır detay modalı + fiş görseli.
   Tüm değerler resources/css/core/variables.css tokenlarından; sabit hex yok
   (yalnız README §9'daki bilinçli mikro-ölçüler px olarak yazılıdır).
   ============================================================ */

/* ── Sayfa iskeleti (README §4) ──────────────────────────────────────────────
   Yukarıdan aşağı dikey akış. Ana bölünme flex-wrap ile: dar ekranda sağ panel
   solun ALTINA iner. ⛔ Sabit grid-template-columns kullanılmaz — 1280px'in
   altında sağ paneldeki tablo kabı taşırıyordu. */
.gd-page { display: flex; flex-direction: column; gap: var(--space-4); }
.gd-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: var(--space-3); }
.gd-split { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.gd-detail { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }

/* ── Yapışkan davranış ───────────────────────────────────────────────────────
   Sayfa PENCERE ile kayıyor (.app-topbar sticky, --topbar-height 60px) → tüm
   sticky offset'leri üst çubuğun ALTINDAN başlar, yoksa öğeler çubuğun arkasına
   girer. Yerleşik desen: yan panellerde `top: var(--space-4)` (kc-panel, kf-side,
   hs2-panel) — buna üst çubuk payını ekliyoruz. */
.gd-page { --gd-sticky-top: calc(var(--topbar-height) + var(--space-4)); }

/* Sol ağaç: kaydırırken yukarıda takılı kalır → kategori her an değiştirilebilir.
   ⚠ Ağaç ekrandan uzun olabilir (8 kategori + açık alt kalemler) → KENDİ İÇİNDE
   kayar; yoksa alttaki kategoriler ve TOPLAM satırı erişilemez kalırdı. */
.gd-tree {
  flex: 1 1 340px; max-width: 420px; min-width: 0;
  position: sticky; top: var(--gd-sticky-top); align-self: flex-start;
  max-height: calc(100vh - var(--gd-sticky-top) - var(--space-4));
  overflow-y: auto; overscroll-behavior: contain;
}
/* ⛔ SAĞ PANELDE HİÇBİR ŞEY YAPIŞTIRILMAZ — ikisi de denendi ve ikisi de bozdu:
   1) Sekme şeridi (Hareketler / Alt Kalemler): tablonun üstüne yapışıp kalıyordu.
   2) Tablo başlığı (`thead th`): `.table-wrap`ta `overflow-x: auto` var, yani
      thead'in yapışkan BAĞLAMI pencere değil O KAP. Oraya `top: 76px` verince
      başlık kabın içinde 76px AŞAĞI itilip ilk veri satırının altına düştü
      (TARİH/AÇIKLAMA satırı tablonun ortasında göründü). Ortak bileşendeki
      `top: 0` doğrudur; ÜZERİNE YAZMA.
   Yapışkan olan tek şey sol kategori ağacıdır. */

/* Dar ekranda sağ panel solun ALTINA iniyor → ağacı yapıştırmak ekranı yerdi. */
@media (max-width: 900px) {
  .gd-tree { position: static; max-height: none; overflow: visible; }
}

/* ── §4.1 Aksiyon şeridi: dönem seçici (segmented) + sayfa eylemleri ────────── */
.gd-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.gd-act-spacer { flex: 1 1 auto; }
.gd-act-btns { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.gd-seg-wrap {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.gd-seg {
  border: 0; cursor: pointer; background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700;
  padding: 7px 14px; border-radius: 7px; transition: var(--transition); white-space: nowrap;
}
.gd-seg:hover { color: var(--text); }
.gd-seg.is-active { background: var(--brand); color: #fff; }
.gd-donem-txt { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* ── §4.3 Özet kartları (ortak kabuk) ──────────────────────────────────────── */
.gd-card {
  display: flex; flex-direction: column; gap: var(--space-3); min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-5);
}
.gd-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.gd-card-lbl { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); letter-spacing: .02em; }
.gd-card-foot {
  border-top: 1px dashed var(--border); padding-top: var(--space-2);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); line-height: 1.5;
}
.gd-cekis-amt { font-weight: 800; color: var(--blue); }
/* Değişim rozeti — giderde ARTIŞ kötüdür (kırmızı), azalış iyidir (yeşil). */
.gd-delta {
  font-size: var(--fs-xs); font-weight: 800; padding: 4px 10px;
  border-radius: var(--radius-full); white-space: nowrap;
  background: var(--surface-alt); color: var(--text-muted);
}
.gd-delta.is-bad { background: var(--red-soft); color: var(--red); }
.gd-delta.is-good { background: var(--green-soft); color: var(--green); }

/* Kart 1 — toplam + 12 ay sparkline */
.gd-big {
  font-size: 30px; font-weight: 800; color: var(--text);
  line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
/* ⚠ Çubuk yükseklikleri JS'te PİKSEL olarak veriliyor; yüzde kullanılmaz —
   kapsayıcı yüksekliği içerikten geldiği için yüzde çözülmez. */
.gd-spark { display: flex; align-items: flex-end; gap: 4px; min-height: 62px; }
.gd-spark-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; justify-content: flex-end; }
.gd-spark-bar { width: 100%; border-radius: 3px 3px 0 0; }
.gd-spark-lbl { font-size: 9.5px; font-weight: 700; color: var(--text-faint); white-space: nowrap; }

/* Kart 2 — ödeme kırılımı */
.gd-stack { display: flex; gap: 2px; height: 12px; border-radius: var(--radius-full); overflow: hidden; }
.gd-stack-seg { min-width: 3px; }
.gd-stack-seg.is-empty { flex: 1; background: var(--surface-alt); }
.gd-lg { display: flex; flex-direction: column; gap: 6px; }
.gd-lg-row { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); }
.gd-lg-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.gd-lg-lbl { font-weight: 700; color: var(--text); flex: 1 1 auto; min-width: 0; }
.gd-lg-pct { color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.gd-lg-amt { font-weight: 800; color: var(--text); min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.gd-warn {
  display: flex; align-items: center; gap: 6px;
  background: var(--red-soft); border-radius: var(--radius-sm); padding: 7px 10px;
  font-size: 11.5px; font-weight: 700; color: var(--red);
}
.gd-warn svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-note { font-size: 11px; font-weight: 600; color: var(--text-faint); line-height: 1.5; }

/* Kart 3 — bütçe durumu */
.gd-butce-pct { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gd-bar { height: 10px; border-radius: var(--radius-full); background: var(--surface-alt); overflow: hidden; }
.gd-bar-fill { height: 100%; border-radius: var(--radius-full); transition: var(--transition); }
.gd-butce-sub { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.gd-asan { display: flex; flex-direction: column; gap: 4px; }
.gd-asan-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: var(--red-soft); color: var(--red); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 11.5px; font-weight: 700;
}
.gd-asan-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-butce-bos { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); line-height: 1.6; }
.gd-butce-bos a { color: var(--brand); font-weight: 700; }

/* ── §4.4 Sol panel: kategori ağacı ────────────────────────────────────────── */
.gd-tree-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.gd-tree-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted);
}
.gd-tree-head-r { color: var(--text-faint); font-weight: 700; letter-spacing: 0; text-transform: none; }
.gd-tree-bos { padding: var(--space-5) var(--space-4); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); text-align: center; }
.gd-kat { border-bottom: 1px solid var(--border); }
.gd-kat-row {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 11px var(--space-4) 11px 13px;
  border-left: 3px solid transparent; background: var(--surface);
  transition: var(--transition);
}
.gd-kat-row:hover { background: var(--row-hover); }
.gd-kat-row.is-sel { background: var(--brand-tint); }
/* Bu dönemde harcaması olmayan kategori: listede DURUR (liste dönemden döneme
   sabit kalsın, tıklanabilsin) ama soluk — dolu olanlarla karışmasın. */
.gd-kat-row.is-bos .gd-kat-ad,
.gd-kat-row.is-bos .gd-kat-amt { color: var(--text-faint); font-weight: 600; }
.gd-kat-row.is-bos:hover .gd-kat-ad { color: var(--text-muted); }
.gd-kat-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gd-kat-l1 { display: flex; align-items: center; gap: 6px; }
.gd-chev { width: 13px; height: 13px; flex-shrink: 0; color: var(--text-faint); transition: var(--transition); }
.gd-kat.is-open .gd-chev { transform: rotate(90deg); }
.gd-kat-ad { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-kat-row.is-sel .gd-kat-ad { font-weight: 800; }
.gd-kat-amt { font-size: var(--fs-sm); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-kat-l2 { display: flex; align-items: center; gap: 6px; padding-left: 22px; }
.gd-kat-bar { position: relative; flex: 1 1 auto; min-width: 0; height: 6px; border-radius: var(--radius-full); background: var(--surface-alt); }
.gd-kat-fill { display: block; height: 100%; border-radius: var(--radius-full); }
/* Bütçe işareti — çubuğun ÜSTÜNDE ince dikey çizgi; taşsın diye top/bottom -2px. */
.gd-kat-mark { position: absolute; width: 2px; top: -2px; bottom: -2px; background: var(--text-faint); border-radius: 1px; }
.gd-kat-pay { font-size: 11px; font-weight: 700; color: var(--text-muted); min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.gd-kat-chg { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: var(--radius-full); white-space: nowrap; background: var(--surface-alt); color: var(--text-muted); }
.gd-kat-chg.is-bad { background: var(--red-soft); color: var(--red); }
.gd-kat-chg.is-good { background: var(--green-soft); color: var(--green); }
.gd-kat-butce { padding-left: 22px; font-size: 11px; font-weight: 700; }
/* Açık kategorinin alt kalemleri */
.gd-alt { background: var(--surface-alt); padding: var(--space-2) var(--space-4) var(--space-3) 38px; display: flex; flex-direction: column; gap: 6px; }
.gd-alt-row { display: flex; align-items: center; gap: 6px; }
.gd-alt-ad { flex: 0 0 108px; font-size: var(--fs-xs); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-alt-bar { flex: 1 1 auto; min-width: 0; height: 5px; border-radius: var(--radius-full); background: var(--border); }
.gd-alt-fill { display: block; height: 100%; border-radius: var(--radius-full); }
.gd-alt-amt { font-size: var(--fs-xs); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-alt-chg { font-size: 10.5px; font-weight: 800; min-width: 42px; text-align: right; color: var(--text-muted); white-space: nowrap; }
.gd-alt-chg.is-bad { color: var(--red); }
.gd-alt-chg.is-good { color: var(--green); }
/* ÖZEL SATIRLAR — normal kategori listesinden çıkarılıp altta tek satır gösterilenler:
   seyrek kategoriler (Olağandışı Giderler) ve Şahsi Çekiş. Rengi JS `--gd-ozel-renk`
   ile satır bazında veriyor (nadir kategoride kendi kategori rengi, çekişte mavi). */
.gd-ozel {
  display: flex; align-items: center; gap: var(--space-2); cursor: pointer;
  padding: 11px var(--space-4) 11px 13px; border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border); background: var(--surface); transition: var(--transition);
}
.gd-ozel:hover { background: var(--row-hover); }
.gd-ozel.is-sel { border-left-color: var(--gd-ozel-renk); background: color-mix(in srgb, var(--gd-ozel-renk) 10%, var(--surface)); }
.gd-ozel:focus-visible { outline: 2px solid var(--gd-ozel-renk); outline-offset: -2px; }
.gd-ozel-ico { display: inline-flex; color: var(--gd-ozel-renk); flex-shrink: 0; }
.gd-ozel-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-ozel-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gd-ozel-txt b { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.gd-ozel-txt span { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.gd-ozel-val { font-size: var(--fs-sm); font-weight: 800; color: var(--gd-ozel-renk); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Toplam satırı — .data-table tfoot.tbl-totals diliyle aynı */
.gd-tree-total {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); background: var(--surface-alt);
  border-top: 2px solid var(--border-strong);
}
.gd-tree-total span:first-child { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.gd-tree-total span:last-child { font-size: var(--fs-md); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ── §4.4 Sağ panel: kategori detay kartı ──────────────────────────────────── */
/* 12 aylık sütun grafiği KALDIRILDI (kullanıcı kararı): gereksizdi ve 12 sütunun
   "84B" etiketleri nowrap olduğu için sağ panele alt genişlik dayatıp yerleşimi
   daraltıyordu. Kart artık tablonun üstünde ince bir künye şeridi: ad + dört
   değer (bu dönem · önceki dönem · 12 ay ortalaması · kayıt) + bütçe. */
.gd-dcard {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--space-3) var(--space-4);
}
.gd-dhead { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.gd-dtitle { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gd-dkicker { font-size: 11px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.gd-dname {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: var(--fs-xl); font-weight: 800; color: var(--text); letter-spacing: -.01em;
}
.gd-dswatch { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.gd-dkpis { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.gd-mini { display: flex; flex-direction: column; gap: 2px; }
.gd-mini-lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.gd-mini-val { font-size: 18px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-mini-val.is-strong { font-weight: 800; color: var(--text); }
/* Bütçe şeridi */
.gd-dbutce {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px var(--space-3);
}
.gd-dbutce-lbl { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.gd-dbutce-amt { font-size: var(--fs-sm); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-dbutce-bar { flex: 1 1 120px; min-width: 80px; height: 8px; border-radius: var(--radius-full); background: var(--surface); overflow: hidden; }
.gd-dbutce-bar span { display: block; height: 100%; border-radius: var(--radius-full); }
.gd-dbutce-pct { font-size: var(--fs-sm); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-dbutce-btn { padding: 4px 10px; white-space: nowrap; }
.gd-dbutce.is-empty .gd-dbutce-lbl { color: var(--text-faint); }

/* ── §4.4 Alt kart: sekmeler · gömülü tablo ────────────────────────────────── */
/* ⛔ overflow: hidden YOK — sütun seçici popover'ı (.tbl-colpick-pop, mutlak
   konumlu) kartın dışına taşıyor; hidden olsaydı yarısı kırpılırdı. Köşe
   yuvarlaklığı bu yüzden üst/alt şeritlere tek tek veriliyor. */
.gd-tabcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.gd-tabs {
  display: flex; align-items: center; flex-wrap: wrap;
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.gd-tab {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted);
  padding: 12px 14px; border-bottom: 2px solid transparent; transition: var(--transition);
}
.gd-tab:hover { color: var(--text); }
.gd-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.gd-tab-count { margin-left: auto; padding: 0 var(--space-4); font-size: var(--fs-xs); font-weight: 700; color: var(--text-faint); white-space: nowrap; }
/* Kart İÇİNDEKİ tablo: kendi çerçevesini bırakır (kart zaten çerçeveli) */
.gd-tabcard .table-wrap, .gd-embed { border: 0; border-radius: 0; box-shadow: none; }

/* Tablo bileşeninin KENDİ araç çubuğu (arama · sütunlar · filtrele) ve alt öğeleri
   sayfa seviyesinde durmak üzere tasarlanmış: yatay boşlukları yok, dikey margin'leri
   var. Kart içine girince kartın kenarlarına yapışıp bozuk görünüyordu. Burada onları
   kartın kendi şeritleri hâline getiriyoruz — sekme şeridiyle aynı iç boşluk. */
.gd-tabcard .action-bar {
  margin: 0; padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.gd-tabcard .tbl-filter-panel {
  margin: 0; border: 0; border-radius: 0; box-shadow: none;
  border-bottom: 1px solid var(--border); background: var(--surface-alt);
}
.gd-tabcard .tbl-bulkbar, .gd-tabcard .tbl-cardsort { margin: 0; padding: var(--space-2) var(--space-4); }
.gd-tabcard .pagination {
  margin: 0; padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border); background: var(--surface-alt);
  border-radius: 0 0 var(--radius) var(--radius);
}
/* Sayfalama boşsa (tek sayfa) şerit hiç çizilmesin — boş bir kutu kalmasın. */
.gd-tabcard .pagination:empty { display: none; }
.gd-alt-bos { padding: var(--space-5) var(--space-4); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); text-align: center; }

/* ── Sabit gider banner ── */
.gd-rec-bar {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px var(--space-4);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
/* README §4.2 — sarı uyarı tonu --yellow (#E0992E) üzerinden; eski değerler
   (#F39C12) tokenlaşmamış eski paletten kalmıştı. */
.gd-rec-bar.is-due { background: rgba(224, 153, 46, .09); border-color: rgba(224, 153, 46, .45); }
.gd-rec-bar.is-clear { background: var(--surface-alt); }
.gd-rec-ico { display: inline-flex; color: var(--yellow); }
.gd-rec-bar.is-clear .gd-rec-ico { color: var(--green); }
.gd-rec-ico svg { width: 18px; height: 18px; }
.gd-rec-txt { font-size: var(--fs-sm); font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.gd-rec-txt b { font-weight: 800; color: var(--navy); }
.gd-rec-names { display: block; font-size: 11px; font-weight: 600; color: var(--text-faint); margin-top: 2px; }
.gd-rec-overdue { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: var(--radius-full); background: var(--red-soft); color: var(--red); margin-left: 4px; }
.gd-rec-manage { white-space: nowrap; }

/* ── Ödeme rozeti ── */
.gd-pk { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: var(--radius-full); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.gd-pk svg { width: 12px; height: 12px; }
.gd-pk.pk-cash { background: rgba(39, 174, 96, .14); color: var(--green); }
.gd-pk.pk-bank { background: rgba(53, 122, 189, .12); color: var(--blue); }
.gd-pk.pk-card { background: rgba(155, 89, 182, .14); color: var(--purple); }
.gd-pk.pk-auto { background: rgba(243, 156, 18, .14); color: var(--yellow); }
.gd-pk.pk-none { background: rgba(127, 140, 141, .16); color: var(--text-muted); }
.gd-taksit-hint { font-size: 11px; color: var(--text-soft, #7a8290); margin-top: 4px; }

/* Kilit chip (otomatik POS satırı) */
.gd-lock-chip { display: inline-flex; vertical-align: middle; color: var(--text-muted); }
.gd-lock-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Detay modalı ── */
.gd-d-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.gd-d-title { font-weight: 800; color: var(--navy); font-size: var(--fs-md); }
.gd-d-amt { font-weight: 800; color: var(--brand); font-size: var(--fs-lg); white-space: nowrap; }
.gd-d-rows { display: flex; flex-direction: column; gap: 2px; }
.gd-d-row { display: flex; gap: var(--space-3); align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.gd-d-row:last-child { border-bottom: 0; }
.gd-d-k { flex: 0 0 34%; font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); }
.gd-d-v { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--text); font-weight: 600; word-break: break-word; }
.gd-d-fis { margin-top: var(--space-3); }
.gd-d-fis img { max-width: 100%; max-height: 320px; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.gd-d-locknote { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.gd-d-locknote svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.gd-del:hover { color: var(--red); }

/* ── Form: kategori grup→alt iki sütun + fiş seçici ── */
.gd-catrow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.gd-catcol { display: flex; flex-direction: column; }
.gd-fis-pick { display: flex; flex-direction: column; gap: var(--space-2); }
.gd-fis-input { font-size: var(--fs-sm); }
.gd-fis-prev { display: flex; align-items: flex-start; gap: var(--space-3); }
.gd-fis-thumb { max-width: 120px; max-height: 120px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ── Sabit gider yönetim listesi ── */
.gd-rec-list { display: flex; flex-direction: column; gap: var(--space-2); }
.gd-rec-item { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.gd-rec-item.is-paused { opacity: .62; }
.gd-rec-main { flex: 1; min-width: 0; }
.gd-rec-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.gd-rec-meta { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.gd-rec-amt { font-weight: 800; color: var(--navy); white-space: nowrap; }
.gd-rec-acts { display: flex; gap: 4px; flex-shrink: 0; }
.gd-rec-tag { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: var(--radius-full); }
.gd-rec-tag.due { background: rgba(243, 156, 18, .16); color: var(--yellow); }
.gd-rec-tag.over { background: var(--red-soft); color: var(--red); }
.gd-rec-tag.paused { background: var(--surface-alt); color: var(--text-muted); }
.gd-rec-empty { padding: var(--space-6); text-align: center; color: var(--text-muted); font-weight: 700; font-size: var(--fs-sm); }

/* Mobil: kategori iki sütun → tek sütun */
@media (max-width: 560px) {
  .gd-catrow { grid-template-columns: 1fr; }
}
