/* css/print-forms.css */
.form-sheet {
  background: #fff;
  color: #000;
  font-family: Tahoma, "Iranian Sans", "Vazirmatn", Arial, sans-serif;
  direction: rtl;
  box-sizing: border-box;
}

.hs07-form {
  width: 100%;
  max-width: 190mm;
  margin: 0 auto;
  padding: 6mm 8mm;
  border: 1.5px solid #000;
  font-size: 11pt;
  line-height: 1.9;
  position: relative;
}

.hs07-serial {
  text-align: right;
  font-size: 10pt;
  margin-bottom: 2mm;
}

.hs07-header-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4mm;
}
.hs07-header-table td {
  border: 1px solid #000;
  padding: 2mm;
  vertical-align: middle;
}
.hs07-logo-cell { width: 22%; text-align: center; }
.hs07-logo-cell img { max-width: 28mm; max-height: 18mm; }
.hs07-title-cell { width: 56%; text-align: center; }
.hs07-title { font-size: 14pt; font-weight: 800; }
.hs07-code-cell { width: 22%; text-align: center; font-size: 9pt; }

.hs07-body { padding: 0 1mm; }
.hs07-text { text-align: justify; margin: 0 0 4mm; }
.hs07-fill {
  display: inline-block;
  min-width: 18mm;
  border-bottom: 1px dotted #000;
  padding: 0 1mm;
  text-align: center;
  font-weight: 700;
}
.hs07-bold { font-weight: 800; margin: 4mm 0; text-align: justify; }
.hs07-signatures {
  display: flex;
  justify-content: space-between;
  gap: 10mm;
  margin-top: 10mm;
}
.hs07-sign { width: 48%; font-size: 10pt; }
.hs07-footer {
  margin-top: 8mm;
  padding-top: 2mm;
  border-top: 1px dashed #000;
  font-size: 9pt;
  text-align: center;
}

.copy-label {
  font-size: 9pt;
  font-weight: 700;
  text-align: left;
  margin-bottom: 1mm;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }
  body * { visibility: hidden; }
  #formPrintArea, #formPrintArea * { visibility: visible; }
  #formPrintArea {
    position: absolute;
    inset: 0;
    width: 100%;
    background: #fff;
  }
  .print-form-page {
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
    min-height: 0;
  }
  .print-form-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .hs07-form {
    border: 1.5px solid #000;
    max-width: none;
    width: 100%;
    padding: 5mm 7mm;
  }
}