/* 🖨️ Markalı A4 belgeleri (Riven 22 Eki: «yazdır dediği zaman daha düzgün; bizim ERTUR imzası olsun»): düzensiz fiil tablosu (fiil-halleri.js fiilHalleriYazdir)
   ve karma çalışma kâğıdı (karma-yazdir.js). Belge pdf.js pdfYazdir ile basılır: ayrı #pdfBelge, her sayfanın arkasında silik filigran, sonda marka + unvan satırı
   (style.css @media print: body.pdf-modu → uygulamanın çubukları ve alt menü hiç basılmaz; eski Safari'de de çalışır, body:has() gerekmez). Önek yb-.
   Siyah-beyaz yazıcıda okunaklı: renk yok; kalınlık, ince gri zemin ve ince çizgiler. Satır yüksekliği sabit (fiil tablosu sayfaları JS'te bu ölçülerle bölünür). */
@media print {
  /* koyu temada kök «color-scheme: dark» kâğıdın kenar boşluklarını siyaha boyuyordu (Chrome tuvali): yazdırırken hep açık */
  html.yb-yazdir, html:has(body.pdf-modu) { color-scheme:light !important; background:#fff !important; }
  body.pdf-modu #pdfBelge.yb-belge { font-size:9.5pt; line-height:1.25; color:#111; }
  #pdfBelge.yb-belge * { box-sizing:border-box; }
  .yb-sayfa { position:relative; }
  .yb-sayfa.yb-kir { break-after:page; page-break-after:always; }
  /* başlık bandı (1. sayfa) ve ince bant (sonraki sayfalar) */
  .yb-bant { display:flex; align-items:center; gap:4mm; height:18mm; padding:2mm 4mm; border:0.5mm solid #222; border-radius:2.5mm; }
  .yb-logo { font-size:20pt; line-height:1; }
  .yb-bas { flex:1; min-width:0; }
  .yb-bas small { display:block; font-size:7.5pt; letter-spacing:.5px; text-transform:uppercase; color:#444; }
  #pdfBelge .yb-bas h1 { margin:0.6mm 0 0; font-size:15pt; line-height:1.15; font-weight:800; color:#111; }
  .yb-bilgi { display:flex; flex-direction:column; align-items:flex-end; gap:0.3mm; font-size:8pt; color:#333; white-space:nowrap; }
  .yb-bilgi b { font-size:11.5pt; font-weight:800; color:#111; border:0.4mm solid #222; border-radius:1.5mm; padding:0.2mm 2.2mm; margin-bottom:0.5mm; }
  .yb-bant-ince { height:9mm; padding:0 0 1.2mm; border:0; border-bottom:0.5mm solid #222; border-radius:0; justify-content:space-between; align-items:flex-end; font-size:9pt; color:#333; }
  .yb-bant-ince b { font-size:10.5pt; color:#111; }
  .yb-ad { display:flex; gap:8mm; height:6mm; margin:3mm 0 0; font-size:10pt; font-weight:700; }
  .yb-ad span { flex:1; display:flex; align-items:flex-end; gap:2mm; }
  .yb-ad i { flex:1; height:4.6mm; border-bottom:0.3mm solid #444; }
  #pdfBelge h2.yb-anahtar { margin:3mm 0 0; font-size:12pt; }
  /* iki sütun tablo: sabit sütun genişliği, sabit satır yüksekliği, her sayfada başlık satırı */
  .yb-sutunlar { display:grid; grid-template-columns:1fr 1fr; gap:5mm; margin-top:4mm; align-items:start; }
  #pdfBelge table.yb-tablo { width:100%; border-collapse:collapse; table-layout:fixed; font-size:9pt; }
  .yb-tablo col.c1 { width:24%; } .yb-tablo col.c2 { width:25%; } .yb-tablo col.c3 { width:25%; } .yb-tablo col.c4 { width:26%; }
  #pdfBelge .yb-tablo th { height:9mm; padding:0.6mm 1.4mm; border:0.25mm solid #777; background:#e2e2e2; text-align:left; vertical-align:middle; font-size:7.6pt; font-weight:800; line-height:1.1; color:#111; text-transform:none; letter-spacing:0; }
  #pdfBelge .yb-tablo th small { display:block; font-size:6.5pt; font-weight:500; color:#444; }
  #pdfBelge .yb-tablo td { height:6.4mm; padding:0 1.4mm; border:0.25mm solid #9a9a9a; vertical-align:middle; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:9pt; color:#111; }
  #pdfBelge .yb-tablo td.v1 { font-weight:800; }
  #pdfBelge .yb-tablo td.tr { font-size:8.2pt; font-weight:400; color:#333; }   /* style.css .tr kalın: burada düz */
  #pdfBelge .yb-tablo td.v2, #pdfBelge .yb-tablo td.v3 { font-weight:400; }
  #pdfBelge .yb-tablo tbody tr:nth-child(even) td { background:#f2f2f2; }
  #pdfBelge .yb-tablo tr.yb-uzun td { height:9.6mm; white-space:normal; line-height:1.1; text-overflow:clip; overflow-wrap:anywhere; }   /* iki satıra sarılır; «…» yok (ölçü fiil-halleri.js fhDuzen) */
  #pdfBelge .yb-tablo tr.yb-bos td { height:8mm; }
  #pdfBelge .yb-tablo tr.yb-bos.yb-uzun td { height:12mm; }
  #pdfBelge .yb-tablo tr.yb-bos td.v2, #pdfBelge .yb-tablo tr.yb-bos td.v3 { background:#fff; border-bottom:0.4mm solid #333; }
  #pdfBelge .yb-tablo tr.yb-aile th { height:6.4mm; background:#cfcfcf; font-size:8.6pt; }
  #pdfBelge .yb-tablo tr.yb-aile th small { display:inline; margin-left:2mm; font-size:7pt; font-weight:500; color:#333; }
  .yb-tablo tr { break-inside:avoid; page-break-inside:avoid; }
  .yb-no { height:6mm; margin-top:3mm; padding-top:1mm; border-top:0.25mm solid #999; text-align:right; font-size:7.5pt; color:#555; }
  .yb-sutun { min-width:0; }
  /* son sayfa: imza kutusu (öğretmen tablosundaki «Prepared by …» gibi, en boş sütunun altında sağda) + pdfYazdir'ın marka satırı (buraya taşınır) */
  .yb-son { display:flex; flex-direction:column; align-items:flex-end; gap:2.5mm; margin-top:6mm; break-inside:avoid; page-break-inside:avoid; }
  #pdfBelge .yb-son .yb-imza-not { max-width:none; text-align:right; }
  #pdfBelge .yb-son > .pb-alt { display:flex; align-items:center; justify-content:flex-end; gap:3mm; margin:0; text-align:right; font-size:6.8pt; line-height:1.35; color:#666; }
  #pdfBelge .yb-son > .pb-alt b { color:#444; }
  #pdfBelge .yb-son > .pb-alt .pb-qr { margin:0; display:flex; flex-direction:column; align-items:center; gap:0.5mm; }
  #pdfBelge .yb-son > .pb-alt .pb-qr > div { width:14mm; height:14mm; } #pdfBelge .yb-son > .pb-alt .pb-qr svg { width:100%; height:100%; }
  #pdfBelge .yb-son > .pb-alt figcaption { font-size:6pt; }
  /* imza kutusu (öğretmen tablosundaki «Prepared by …» gibi sağ altta; metinler pdf.js markaAl) */
  .yb-imza-kap { display:flex; justify-content:space-between; align-items:flex-end; gap:6mm; margin-top:5mm; break-inside:avoid; page-break-inside:avoid; }
  #pdfBelge .yb-imza-not { max-width:46%; margin:0; font-size:7.5pt; color:#555; }
  .yb-imza { display:flex; flex-direction:column; gap:0.6mm; min-width:62mm; max-width:82mm; padding:2.5mm 5mm; border:0.6mm solid #222; border-radius:2mm; text-align:center; color:#111; }
  .yb-imza small { font-size:7pt; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:#444; }
  .yb-imza b { font-size:13pt; font-weight:800; letter-spacing:.6px; padding:0.6mm 0; border-top:0.3mm solid #222; border-bottom:0.3mm solid #222; }
  .yb-imza span { font-size:7.4pt; line-height:1.25; }
  .yb-imza em { font-style:normal; font-size:7pt; font-weight:700; }
  .yb-imza i { font-style:normal; font-size:7pt; color:#444; }
  /* ——— karma çalışma kâğıdı ——— */
  .yb-karma .yb-konular { margin:3mm 0 0; font-size:9.5pt; }
  .yb-yonerge { margin:2mm 0 0; padding:2mm 3mm; border:0.25mm solid #999; border-radius:1.5mm; background:#f2f2f2; font-size:8.8pt; }
  .yb-yonerge p { margin:0.4mm 0; }
  #pdfBelge ol.yb-sorular { list-style:none; margin:3mm 0 0; padding:0; counter-reset:yb; }
  .yb-sorular > li { display:grid; grid-template-columns:8mm 1fr; gap:1mm; padding:2.4mm 0; border-bottom:0.25mm dotted #aaa; break-inside:avoid; page-break-inside:avoid; }
  .yb-sorular .yb-n { font-weight:800; font-size:10.5pt; }
  #pdfBelge .yb-sorular p { margin:0 0 0.8mm; }
  .yb-sorular .yb-q { font-size:10.5pt; font-weight:600; }
  .yb-sorular .yb-tr { font-size:8.8pt; color:#444; }
  .yb-sorular .yb-bosluk { display:inline-block; width:24mm; border-bottom:0.35mm solid #222; vertical-align:baseline; }
  .yb-sorular .yb-siklar { display:flex; flex-wrap:wrap; gap:1mm 7mm; font-size:9.6pt; }
  .yb-sorular .yb-kutu { display:inline-block; width:3mm; height:3mm; margin-right:1.2mm; border:0.3mm solid #222; border-radius:0.6mm; vertical-align:-0.3mm; }
  .yb-sorular .yb-cizgi { height:7mm; border-bottom:0.3mm solid #555; }
  .yb-cevap-sayfa { break-before:page; page-break-before:always; }
  #pdfBelge ol.yb-cevaplar { margin:3mm 0 0; padding:0; list-style:none; columns:2; column-gap:8mm; font-size:9.2pt; }
  .yb-cevaplar > li { display:grid; grid-template-columns:7mm 1fr; gap:1mm; padding:1.2mm 0; border-bottom:0.2mm solid #ccc; break-inside:avoid; page-break-inside:avoid; }
  .yb-cevaplar small { display:block; color:#444; font-size:8pt; }
}
