/* Vade Farkı, Taksit ve Gecikme Faizi Hesaplayıcı — araca özel stil (ön ek: vfz-)
   Ortak bileşenler css/araclar.css'ten gelir; buradaki öğeler monokrom. */

.vfz-sekmeler { text-align: center; margin-bottom: 22px; }
/* Grid sütunu içeriğin min genişliğine büyümesin (tarih alanları dar ekranda taşırıyordu) */
[data-vfz-panel] .arac-calc > * { min-width: 0; }
[data-vfz-panel] input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.vfz-sekmeler .arac-segment { display: inline-flex; }
.arac-calc-form .arac-segment { display: flex; }
.arac-calc-form .arac-segment button { flex: 1 1 auto; }

.arac-field input[type="date"] {
  width: 100%; background: #ffffff; border: 1px solid #dcdcdb; color: #141414; color-scheme: light;
  padding: 11px 12px; border-radius: 10px; font-size: 1rem; font-family: inherit; outline: none; min-height: 46px;
}
.arac-field input[type="date"]:focus { border-color: #6b6b6b; }
.vfz-tarih-satir { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.vfz-tarih-satir .arac-field { margin-bottom: 0; }
.vfz-tarih-blok { margin-bottom: 18px; }
.vfz-sonuc-kutu { margin: 0; }
.vfz-mini-btn { background: none; border: 1px solid #dcdcdb; color: #474747; border-radius: 8px; padding: 4px 10px; font-size: .76rem; cursor: pointer; font-family: inherit; margin-left: 6px; }
.vfz-mini-btn:hover { border-color: #6b6b6b; color: #141414; }
.vfz-not { font-size: .8rem; color: #6b6b6b; line-height: 1.55; margin: 4px 0 0; }
.vfz-not a { color: #3d3d3d; }

/* Gecikme faizi dönem satırları */
.vfz-donem-baslik { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.vfz-donem-baslik strong { font-size: .85rem; color: #474747; font-weight: 600; }
.vfz-donem { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 96px 34px; gap: 8px; align-items: end; padding: 12px; border: 1px solid #ebebea; border-radius: 12px; background: #ffffff; margin-bottom: 10px; }
.vfz-donem-alan label { display: block; font-size: .72rem; color: #6b6b6b; margin-bottom: 4px; }
.vfz-donem-alan input { width: 100%; background: #ffffff; border: 1px solid #dcdcdb; color: #141414; color-scheme: light; padding: 8px; border-radius: 8px; font-size: .9rem; font-family: inherit; min-height: 38px; box-sizing: border-box; }
.vfz-donem-alan input:focus { outline: none; border-color: #6b6b6b; }
.vfz-donem-alan input.vfz-eksik { border-color: #8c8c8c; border-style: dashed; }
.vfz-sil { width: 34px; height: 38px; border: 1px solid #dcdcdb; background: none; color: #6b6b6b; border-radius: 8px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.vfz-sil:hover { color: #141414; border-color: #6b6b6b; }
.vfz-donem-alt { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: #6b6b6b; }
.vfz-donem-sonuc { color: #1f1f1f; font-weight: 600; }
.vfz-uyari-et { color: #141414; font-weight: 600; text-decoration: underline dotted; }
.vfz-uyari { border: 1px dashed #6b6b6b; border-radius: 10px; padding: 10px 12px; font-size: .84rem; color: #1f1f1f; margin: 4px 0 12px; }
.vfz-bos { color: #6b6b6b; font-size: .88rem; text-align: center; margin: 10px 0; }

@media (max-width: 480px) {
  .vfz-sekmeler .arac-segment { display: flex; flex-wrap: nowrap; width: 100%; box-sizing: border-box; }
  .vfz-sekmeler .arac-segment button { flex: 1 1 0; padding: 9px 4px; font-size: .8rem; white-space: nowrap; }
  .arac-calc-form, .arac-calc-result { padding: 20px 16px; }
  .vfz-tarih-satir { grid-template-columns: 1fr; }
  .vfz-donem { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 34px; padding: 10px; gap: 6px; }
  .vfz-donem-alan input { font-size: .84rem; padding: 8px 5px; }
  .vfz-donem .vfz-donem-alan:nth-child(3) { grid-column: 1 / 3; }
  .vfz-donem .vfz-sil { grid-column: 3; grid-row: 2; }
}

/* Taksit tablosu */
.vfz-plan { margin-top: 22px; background: #ffffff; border: 1px solid #ebebea; border-radius: 20px; padding: 22px; }
.vfz-plan-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vfz-plan-ust h2 { font-size: 1.05rem; margin: 0; color: #141414; }
.vfz-plan-ust .arac-actions { margin: 0; }
.vfz-tablo-kap { max-height: 560px; overflow: auto; border-radius: 12px; border: 1px solid #ebebea; }
.vfz-tablo { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.vfz-tablo th, .vfz-tablo td { padding: 10px 12px; text-align: right; border-bottom: 1px solid #ebebea; white-space: nowrap; color: #474747; }
.vfz-tablo th { position: sticky; top: 0; background: #f4f4f3; color: #1f1f1f; font-weight: 600; font-size: .8rem; z-index: 1; }
.vfz-tablo th:first-child, .vfz-tablo td:first-child { text-align: center; }
.vfz-tablo td:nth-child(2), .vfz-tablo th:nth-child(2) { text-align: left; }
.vfz-tablo td.vfz-g { color: #141414; font-weight: 600; }
.vfz-tablo tfoot td { color: #141414; font-weight: 700; background: #f4f4f3; border-bottom: none; }
.vfz-yazdir-ozet { display: none; }

/* Telefonda tablo → kart (yatay taşma yok) */
@media (max-width: 600px) {
  .vfz-plan { padding: 16px 12px; }
  .vfz-tablo-kap { max-height: none; border: none; overflow: visible; }
  .vfz-tablo thead { display: none; }
  .vfz-tablo, .vfz-tablo tbody, .vfz-tablo tfoot { display: block; }
  .vfz-tablo tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px; border: 1px solid #ebebea; border-radius: 12px; margin-bottom: 8px; background: #ffffff; }
  .vfz-tablo td { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border: none; text-align: right !important; white-space: normal; font-size: .85rem; min-width: 0; }
  .vfz-tablo td::before { content: attr(data-l); color: #6b6b6b; font-size: .75rem; text-align: left; }
  .vfz-tablo td:first-child { grid-column: 1 / -1; justify-content: flex-start; font-weight: 700; color: #141414; }
  .vfz-tablo tbody td:first-child::before { content: 'Taksit '; font-size: .85rem; color: #141414; }
  .vfz-tablo td:empty { display: none; }
  .vfz-tablo tfoot tr { background: #f4f4f3; }
  .vfz-tablo tfoot td:first-child::before { content: none; }
  .vfz-tablo td[colspan] { grid-column: 1 / -1; }
}

/* Oran tablosu (içerik) */
.vfz-oran-tablo { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.vfz-oran-tablo th, .vfz-oran-tablo td { padding: 9px 10px; border-bottom: 1px solid #ebebea; text-align: left; color: #555555; vertical-align: top; }
.vfz-oran-tablo th { color: #141414; font-weight: 600; font-size: .82rem; }
.vfz-oran-tablo td:nth-child(2) { color: #141414; font-weight: 600; white-space: nowrap; }
.vfz-oran-kap { overflow-x: auto; }

/* Yazdırma: yalnız taksit planı */
@media print {
  html.vfz-yazdir body * { visibility: hidden !important; }
  html.vfz-yazdir #tp-yazdir-alan, html.vfz-yazdir #tp-yazdir-alan * { visibility: visible !important; }
  html.vfz-yazdir #tp-yazdir-alan { position: absolute; left: 0; top: 0; width: 100%; background: #fff !important; border: none; padding: 0; }
  html.vfz-yazdir #tp-yazdir-alan * { color: #000 !important; background: #fff !important; border-color: #999 !important; }
  html.vfz-yazdir .vfz-plan-ust .arac-actions { display: none !important; }
  html.vfz-yazdir .vfz-yazdir-ozet { display: block; font-size: 11pt; margin: 0 0 8px; }
  html.vfz-yazdir .vfz-tablo-kap { max-height: none; overflow: visible; }
  html.vfz-yazdir .vfz-tablo thead { display: table-header-group !important; }
  html.vfz-yazdir .vfz-tablo { display: table !important; }
  html.vfz-yazdir .vfz-tablo tbody { display: table-row-group !important; }
  html.vfz-yazdir .vfz-tablo tfoot { display: table-footer-group !important; }
  html.vfz-yazdir .vfz-tablo tr { display: table-row !important; }
  html.vfz-yazdir .vfz-tablo td, html.vfz-yazdir .vfz-tablo th { display: table-cell !important; padding: 4px 6px; font-size: 9.5pt; position: static; }
  html.vfz-yazdir .vfz-tablo td::before { content: none !important; }
}
