/* EBBI blank printable assessment forms — NBI-aligned theme (#1a3c6b navy) */

@page { margin: 1.4cm 1.2cm; }

* { box-sizing: border-box; }

body {
  font-family: Inter, Arial, sans-serif;
  font-size: 10pt;
  color: #1a2744;
  margin: 0;
  background: #fff;
  line-height: 1.35;
}

.page {
  max-width: 21cm;
  margin: 0 auto;
  padding: 0.5cm 0;
  page-break-after: always;
}

.page:last-child { page-break-after: auto; }

.travel-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0.35rem;
}

.travel-history-table col.col-country { width: 24%; }
.travel-history-table col.col-date { width: 16%; }
.travel-history-table col.col-purpose { width: 38%; }
.travel-history-table col.col-check { width: 6%; }

.travel-history-table thead th {
  font-size: 7.5pt;
  font-weight: 700;
  text-align: left;
  padding: 0.2rem 0.35rem 0.25rem;
  border-bottom: 2px solid #1a3c6b;
  vertical-align: bottom;
  line-height: 1.15;
  color: #1a3c6b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.travel-history-table thead th:last-child {
  text-align: center;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
  font-size: 7pt;
}

.travel-history-table td {
  vertical-align: bottom;
  padding: 0.18rem 0.35rem 0.14rem;
  border-bottom: 1px solid #c5d4f0;
}

.travel-history-table td:last-child {
  width: 2.6rem;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  font-size: 9pt;
}

.travel-history-table td .line {
  min-height: 1.35rem;
  margin-top: 0;
  border-bottom-color: #333;
}

.children-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0.35rem;
}

.children-table col.col-name { width: 22%; }
.children-table col.col-dob { width: 14%; }
.children-table col.col-age { width: 8%; }
.children-table col.col-muni { width: 18%; }
.children-table col.col-prov { width: 10%; }
.children-table col.col-living { width: 28%; }

.children-table thead th {
  font-size: 7pt;
  font-weight: 700;
  text-align: left;
  padding: 0.2rem 0.25rem 0.25rem;
  border-bottom: 2px solid #1a3c6b;
  vertical-align: bottom;
  line-height: 1.1;
  color: #1a3c6b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.children-table td {
  vertical-align: bottom;
  padding: 0.18rem 0.25rem 0.14rem;
  border-bottom: 1px solid #c5d4f0;
}

.children-table td .line {
  min-height: 1.35rem;
  margin-top: 0;
  border-bottom-color: #333;
}

.header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 3px solid #1a3c6b;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
}

.header img { width: 56px; height: auto; }

.header h1 {
  font-size: 13pt;
  margin: 0 0 0.15rem;
  color: #1a3c6b;
  font-weight: 700;
}

.header .sub { font-size: 8.5pt; color: #444; margin: 0; }

.header .form-id { font-size: 8pt; color: #666; margin-top: 0.25rem; }

.notice {
  background: #f0f4ff;
  border-left: 4px solid #2a5298;
  padding: 0.5rem 0.65rem;
  font-size: 8.5pt;
  margin-bottom: 0.75rem;
  line-height: 1.45;
  color: #1a2744;
}

.section { margin-bottom: 0.85rem; }

.section h2 {
  font-size: 10pt;
  font-weight: 700;
  background: #1a3c6b;
  color: #fff;
  margin: 0 0 0.45rem;
  padding: 0.25rem 0.5rem;
}

.section .hint {
  font-size: 8pt;
  color: #555;
  margin: 0 0 0.35rem;
  font-style: italic;
}

.hint-inline { font-weight: normal; font-style: italic; font-size: 7.5pt; color: #555; }

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.4rem;
}

.field { flex: 1 1 45%; min-width: 140px; }

.field.full { flex: 1 1 100%; }

.field label {
  display: block;
  font-size: 7.5pt;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.1rem;
}

.line {
  border-bottom: 1px solid #333;
  min-height: 1.35rem;
  margin-top: 0.1rem;
}

.line.tall { min-height: 2.5rem; }

.yn { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; font-size: 9pt; margin: 0.2rem 0; }

.yn span::before { content: "☐ "; }

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.5rem;
  font-size: 8.5pt;
  margin: 0.25rem 0 0.5rem;
}

.checks span::before { content: "☐ "; }

.declaration {
  border: 1px solid #c5d4f0;
  border-left: 4px solid #2a5298;
  padding: 0.6rem;
  font-size: 8.5pt;
  margin-top: 0.5rem;
  background: #fafbff;
}

.staff {
  border: 2px dashed #2a5298;
  padding: 0.5rem;
  margin-top: 0.75rem;
  font-size: 8pt;
  background: #fafbff;
}

.footer {
  margin-top: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid #c5d4f0;
  font-size: 7.5pt;
  color: #666;
  text-align: center;
}

.page-end-links,
.form-end-note {
  font-size: 8pt;
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.35;
  color: #1a3c6b;
}

.warning {
  background: #fff8e6;
  border: 1px solid #e6c200;
  padding: 0.4rem 0.5rem;
  font-size: 8pt;
  margin: 0.35rem 0;
}

.no-print.print-tip {
  font-size: 8.5pt;
  margin: 0;
  padding: 0.35rem 1rem 0.75rem;
  background: #fff8e6;
  text-align: center;
}

@media print {

  .no-print { display: none !important; }

  body {
    margin: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page { padding: 0; }

  /* NBI-style print title — centered navy heading, no logo/address block */
  .header {
    display: block !important;
    border: none;
    padding: 0;
    margin: 0 0 0.5rem;
    text-align: center;
  }

  .header img,
  .header .sub { display: none !important; }

  .header h1 {
    display: block;
    font-size: 13pt;
    font-weight: 700;
    color: #1a3c6b !important;
    margin: 0 0 0.2rem;
  }

  .header .form-id {
    display: block;
    font-size: 8pt;
    color: #444 !important;
    margin: 0 0 0.35rem;
  }

  .footer { display: none !important; }

  .notice {
    background: #f0f4ff !important;
    border-left: 4px solid #2a5298 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section h2 {
    background: #1a3c6b !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .declaration {
    background: #fafbff !important;
    border-left: 4px solid #2a5298 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .staff {
    border-color: #2a5298 !important;
    background: #fafbff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .travel-history-table thead th {
    color: #1a3c6b !important;
    border-bottom-color: #1a3c6b !important;
  }

}
