
@page { size: A4; margin: 12mm; }
body {
  font-family: "Tahoma", "Vazir", sans-serif;
  direction: rtl;
  background: #fff;
  color: #111;
  -webkit-print-color-adjust: exact;
  margin: 0;
}
.page { 
  width: 190mm;        /* عرض کوچکتر از A4 */
  min-height: 277mm;   /* کمی کمتر از ارتفاع کامل */
  padding: 10mm;
  box-sizing: border-box; /* پدینگ درون عرض محاسبه می‌شود */
  margin: auto;         /* وسط‌چین در چاپ */
}
table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 0 0 6px 0; }
th, td { border: 1px solid #cfcfcf; padding: 6px 8px; vertical-align: middle; }
th { background: #f5f7f8; font-weight: 600; text-align: center; }
.center { text-align: center; }
.bold { font-weight: 700; }
.ticket-and-info td, .ticket-and-info th { border: none !important; }
.ticket-and-info tr:nth-child(odd) td { background: #f5f7f8; }
.ticket-and-info tr:nth-child(even) td { background: #fff; }
.ticket-row { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 8px; }
.ticket-number { font-weight: 700; white-space: nowrap; }
.barcode-svg { display: inline-block; margin: 0; height: 22px; }
.fop { margin-top: 8px; font-size: 12px; text-align: left; font-weight:bold; color:#000; }
.endorse-table td { padding: 8px; }
.endorse-left { text-align: left; }
.endorse-right { text-align: right; }
.note-row td { background:#f5f7f8; font-weight:600; padding:8px; text-align:right; }
.penalty-table th, .penalty-table td { font-size: 11px; padding:6px; border:1px solid #d0d0d0; }
.penalty-table th { background:#f5f7f8; }
.class-box, .fare-box { width:100%; border-collapse:collapse; }
.class-box th, .class-box td, .fare-box td { border:1px solid #d0d0d0; padding:6px; font-size:12px; }
.class-box th, .fare-box tr:nth-child(odd) td { background:#f5f7f8; }
.fare-box tr:nth-child(even) td { background:#fff; }
footer { margin-top:10px; font-size:11px; color:#555; }
.logo-container { text-align: center; margin-bottom: 15px; }
.logo-container img { width: 30%; height: auto; }
