body {
  background: #f1f4f7;
}

.app-navbar {
  background: #0d4f8b;
}

.option-list {
  max-height: 260px;
  overflow-y: auto;
  background: #fafbfc;
}

.form-sheet {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---- Official Form F replica ---- */

.formf-doc {
  background: #fff;
  color: #000;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.3;
}

.formf-doc * {
  font-size: inherit;
  line-height: inherit;
}

.formf-header-box {
  border: 1px solid #000;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.formf-meta {
  text-align: left;
}

.formf-title {
  font-weight: normal;
  text-align: left;
  margin: 5px 0 0;
}

.formf-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.formf-check-item {
  white-space: nowrap;
}

.formf-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}

.formf-table td {
  border: 1px solid #000;
  padding: 2px 6px;
  vertical-align: top;
}

.formf-section td {
  font-weight: bold;
  background: #f2f2f2;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.formf-label {
  width: 38%;
}

.formf-value {
  width: 62%;
}

.formf-subheading {
  font-weight: normal;
}

.formf-value-split {
  padding: 0 !important;
}

.formf-inner {
  width: 100%;
  border-collapse: collapse;
}

.formf-inner td {
  border: 1px solid #000;
  padding: 1px 4px;
  vertical-align: top;
}

.formf-inner td.il {
  white-space: nowrap;
  width: 16%;
}

.formf-inner td.iv {
  width: 34%;
}

.formf-inner-vlines {
  table-layout: fixed;
}

.formf-inner-vlines td {
  border: none;
}

.formf-addr-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
}

.formf-addr-table td {
  border: none;
  border-left: 1px solid #000;
  padding: 3px 6px;
  vertical-align: top;
}

.formf-addr-table td:first-child {
  border-left: none;
}

.formf-addr-table td.al {
  white-space: nowrap;
  width: 22%;
  border-left: 1px solid #000;
}

.formf-addr-table td.av {
  width: 39%;
}

.formf-stamp-area {
  min-height: 50px;
  height: 50px;
  overflow: hidden;
}

.formf-decl-heading {
  font-weight: bold;
  text-align: center;
  margin: 16px 0 8px;
}

.formf-decl-sub {
  font-weight: bold;
  margin-bottom: 4px;
}

.formf-decl-text {
  margin: 0 0 10px;
}

.deva {
  font-family: 'Noto Sans Devanagari', 'Nirmala UI', Arial, sans-serif;
  line-height: 1.6;
}

.formf-flex-row {
  width: 100%;
  margin-bottom: 14px;
}

.formf-cursive {
  font-family: 'Brush Script MT', cursive;
  font-size: 22px;
  min-height: 28px;
}

.formf-p3-sig {
  height: 40px;
  margin-top: 14px;
  overflow: hidden;
}

.formf-p3-caption {
  text-align: left;
  margin-bottom: 4px;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .form-sheet {
    box-shadow: none;
    padding: 0;
  }
  main.container-fluid {
    padding: 0 !important;
  }
  .formf-doc {
    box-shadow: none;
    max-width: 100%;
    padding: 0;
  }
  .formf-table tr,
  .formf-inner tr {
    page-break-inside: avoid;
  }
  .formf-decl-text,
  .formf-decl-heading,
  .formf-decl-sub {
    page-break-inside: avoid;
  }
  .formf-page-break {
    page-break-before: always;
    break-before: page;
  }
  @page {
    margin: 10mm 9mm;
  }
}
