/* ===== Yazdırma düzeni (sadece baskıda etkin) ===== */
@media print {
  html, html[data-theme="koyu"] {
    color-scheme: light;
    --bg: #fff; --panel: #fff; --panel-2: #f7f7f7; --control-bg: #fff;
    --text: #1d1d1f; --text2: #4f4f54; --text3: #6e6e73;
    --hairline: #d8d8dc; --hairline-strong: #b8b8bd; --fill: #f2f2f2; --fill-2: #f7f7f7;
  }
  .sidebar, #toast-root, .arac, .geri, .btn, .modal-alt, .topbar .tarih, .segment { display: none !important; }
  .content { margin-left: 0 !important; }
  .topbar { padding: 0 0 10px !important; }
  .icerik { padding: 0 !important; max-width: none !important; }
  .kart, .liste, .detay-kart { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .kart:hover { transform: none !important; }
  body { background: #fff !important; color: #1d1d1f !important; }
  thead { display: table-header-group; }
  thead th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tbody tr { break-inside: avoid; }
  /* Letterhead */
  .topbar h1::before { content: "Uçkunoğlu Halı — "; font-weight: 700; }

  /* Modal açıkken yalnızca modali yazdır */
  body:has(.modal-arka) .content > .topbar,
  body:has(.modal-arka) .content > .icerik { display: none !important; }
  .modal-arka { position: static !important; background: none !important; backdrop-filter: none !important; padding: 0 !important; display: block !important; }
  .modal { box-shadow: none !important; max-width: none !important; width: 100% !important; transform: none !important; animation: none !important; max-height: none !important; overflow: visible !important; }
  .modal-bas h3::before { content: "Uçkunoğlu Halı — "; }
}
