{% block components %}
{% set title = "Reporte de Registro / Inspección: ID de Registro: " ~ (inspection.header.location.access_point_no if inspection.header.location.access_point_no else "") %}
{% set border_bottom = True %}
{% include "nassco/macp/es/page_title.html" %}

<div class="column mt-1" style="page-break-after: always;">
  <div class="row w-full">
    <div class="row w-33 flex-1">
      <div class="text-center font-small box flex-1 h-2">
        <p class="m-0">{{ t("labels.survey_date") }}:</p>
        {% if inspection.header.survey.survey_date %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.survey_date.strftime("%Y/%m/%d") }}</p>
        {% endif %}
      </div>
      <div class="text-center font-small box flex-2 border-left-0 h-2">
        <p class="m-0">{{ t("labels.work_order_no") }}:</p>
        {% if inspection.header.survey.work_order_number %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.work_order_number }}</p>
        {% endif %}
      </div>
    </div>
    <div class="row w-33 flex-1">
      <div class="text-center font-small box flex-2 border-left-0 h-2">
        <p class="m-0">{{ t("labels.weather") }}:</p>
        {% if inspection.header.survey.weather and inspection.header.survey.weather.label %}
        <p class="m-0 font-semibold">
          {% if 'dry' in inspection.header.survey.weather.label|lower %}
            {{ t("values.dry") }}
          {% else %}
            {{ inspection.header.survey.weather.label }}
          {% endif %}
        </p>
        {% endif %}
      </div>
      <div class="text-center font-small box flex-2 border-left-0 h-2">
        <p class="m-0">{{ t("labels.manhole_gis_id") }}:</p>
        {% if inspection.header.location.access_point_no %}
        <p class="m-0 font-semibold">{{ inspection.header.location.access_point_no }}</p>
        {% endif %}
      </div>
    </div>
    <div class="row w-33 flex-1">
      <div class="text-center font-small box flex-2 border-left-0 h-2">
        <p class="m-0">{{ t("labels.operator") }}:</p>
        {% if inspection.header.survey.surveyed_by %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.surveyed_by }}</p>
        {% endif %}
      </div>
      <div class="text-center font-small box flex-2 border-left-0 h-2">
        <p class="m-0">{{ t("labels.owner") }}:</p>
        {% if inspection.header.survey.owner %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.owner }}</p>
        {% endif %}
      </div>
    </div>
  </div>
  <div class="row w-full">
    <div class="row w-33 flex-1">
      <div class="text-center font-small box flex-1 h-2 border-top-0">
        <p class="m-0">{{ t("labels.start_time") }}:</p>
        {% if inspection.header.survey.survey_time %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.survey_time.strftime("%H:%M") }}</p>
        {% endif %}
      </div>
      <div class="text-center font-small box flex-1 border-left-0 h-2 border-top-0">
        <p class="m-0">{{ t("labels.year_commissioned") }}:</p>
        {% if inspection.header.manhole.year_constructed %}
        <p class="m-0 font-semibold">{{ inspection.header.manhole.year_constructed }}</p>
        {% endif %}
      </div>
    </div>
    <div class="row w-33 flex-1">
      <div class="text-center font-small box flex-1 border-left-0 h-2 border-top-0">
        <p class="m-0">{{ t("labels.camera") }}:</p>
        {% if inspection.header.survey.inspection_technology and inspection.header.survey.inspection_technology.label %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.inspection_technology.label }}</p>
        {% endif %}
      </div>
      <div class="text-center font-small box flex-1 border-left-0 h-2 border-top-0">
        <p class="m-0">{{ t("labels.certificate_no") }}:</p>
        {% if inspection.header.survey.certificate_number %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.certificate_number }}</p>
        {% endif %}
      </div>
    </div>
    <div class="row w-33 flex-1">
      <div class="text-center font-small box flex-1 border-left-0 h-2 border-top-0">
        <p class="m-0">{{ t("labels.requested_by") }}:</p>
        {% if inspection.header.survey.requested_by %}
        <p class="m-0 font-semibold">{{ inspection.header.survey.requested_by }}</p>
        {% endif %}
        </div>
      <div class="text-center font-small box flex-1 border-left-0 h-2 border-top-0">
        <p class="m-0">{{ t("labels.cleaned") }}:</p>
        {% if inspection.header.survey.cleaned %}
        <p class="m-0 font-semibold">{{ t("values.yes") }}</p>
        {% endif %}
      </div>
    </div>
  </div>
  <div class="row w-full">
    <div class="row w-33">
      <div class="w-full text-left font-small box h-3 border-top-0">
        <p class="m-0">{{ t("labels.road") }}: 
          {% if inspection.header.location.street %}
          <span class="font-semibold">{{inspection.header.location.street }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.place") }}: 
          {% if inspection.header.location.city %}
          <span class="font-semibold">{{inspection.header.location.city }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.location_details") }}: 
          {% if inspection.header.location.location_details %}
          <span class="font-semibold">{{inspection.header.location.location_details }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.location_code") }}: 
          {% if inspection.header.location.location_code %}
          <span class="font-semibold">{{inspection.header.location.location_code }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-3 border-top-0 border-left-0">
        <p class="m-0">{{ t("labels.manhole_gid_id") }}: 
          {% if inspection.header.location.access_point_no %}
          <span class="font-semibold">{{ inspection.header.location.access_point_no }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.catchment") }}: 
          {% if inspection.header.location.drainage_area %}
          <span class="font-semibold">{{ inspection.header.location.drainage_area }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.inflow_potential_from_runoff") }}: 
          {% if inspection.header.location.inflow_potential_from_runoff %}
          <span class="font-semibold">{{ inspection.header.location.inflow_potential_from_runoff }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.surface_type") }}: 
          {% if inspection.header.location.surface_type %}
          <span class="font-semibold">{{ inspection.header.location.surface_type }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-3 border-top-0 border-left-0">
        <p class="m-0">{{ t("labels.mh_use") }}: 
          {% if inspection.header.manhole.mh_use %}
          <span class="font-semibold">{{ inspection.header.manhole.mh_use }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.access_type") }}: 
          {% if inspection.header.manhole.access_type %}
          <span class="font-semibold">{{ inspection.header.manhole.access_type }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.purpose") }}: 
          {% if inspection.header.survey.purpose_of_survey %}
          <span class="font-semibold">{{inspection.header.survey.purpose_of_survey.value }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.inspection_status") }}: 
          {% if inspection.header.survey.inspection_status %}
          <span class="font-semibold">{{inspection.header.survey.inspection_status.value }}</span>
          {% endif %}
        </p>
      </div>
    </div>
  </div>
  <div class="row w-full">
    <div class="row w-33">
      <div class="w-full text-left font-small box h-4 border-top-0">
        <p class="m-0">{{ t("labels.rim_to_invert") }}: 
          {% if inspection.header.measurements.rim_to_invert %}
          <span class="font-semibold">{{ inspection.header.measurements.rim_to_invert }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.grade_to_invert") }}: 
          {% if inspection.header.measurements.grade_to_invert %}
          <span class="font-semibold">{{ inspection.header.measurements.grade_to_invert }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.rim_to_grade") }}: 
          {% if inspection.header.measurements.rim_to_grade %}
          <span class="font-semibold">{{inspection.header.measurements.rim_to_grade }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.rim_to_grade_exposed") }}: 
          {% if inspection.header.measurements.rim_to_grade_exposed %}
          <span class="font-semibold">{{inspection.header.measurements.rim_to_grade_exposed }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.evidence_surcharge") }}: 
          {% if inspection.header.manhole.evidence_of_surcharge %}
          <span class="font-semibold">{{inspection.header.manhole.evidence_of_surcharge }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.inspection_level") }}: 
          {% if inspection.header.survey.inspection_level %}
          <span class="font-semibold">{{inspection.header.survey.inspection_level }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-4 border-top-0 border-left-0">
        <p class="m-0">{{ t("labels.northing") }}: 
          {% if inspection.header.measurements.northing %}
          <span class="font-semibold">{{ inspection.header.measurements.northing }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.easting") }}: 
          {% if inspection.header.measurements.easting %}
          <span class="font-semibold">{{ inspection.header.measurements.easting }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.elevation") }}: 
          {% if inspection.header.measurements.elevation %}
          <span class="font-semibold">{{inspection.header.measurements.elevation }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.coordinate_system") }}: 
          {% if inspection.header.measurements.coordinate_system %}
          <span class="font-semibold">{{inspection.header.measurements.coordinate_system }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.vertical_datum") }}: 
          {% if inspection.header.measurements.vertical_datum %}
          <span class="font-semibold">{{inspection.header.measurements.vertical_datum }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("labels.gps_accuracy") }}: 
          {% if inspection.header.measurements.gps_accuracy %}
          <span class="font-semibold">{{inspection.header.measurements.gps_accuracy }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-4 border-top-0 border-left-0">
        <h3 class="component-title box text-center w-full my-1">{{ t("components.channel") }}</h3>
        <p class="m-0">{{ t("component_properties.channel_installed") }} 
          {% if inspection.header.components.channel.channel_installed %}
          <span class="font-semibold">{{ inspection.header.components.channel.channel_installed.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.type") }} 
          {% if inspection.header.components.channel.type %}
          <span class="font-semibold">{{ inspection.header.components.channel.type }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.channel_material") }} 
          {% if inspection.header.components.channel.channel_material %}
          <span class="font-semibold">{{ inspection.header.components.channel.channel_material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.exposure") }} 
          {% if inspection.header.components.channel.exposure %}
          <span class="font-semibold">{{ inspection.header.components.channel.exposure.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.channel_condition") }} 
          {% if inspection.header.components.channel.condition %}
          <span class="font-semibold">{{ inspection.header.components.channel.condition.label }}</span>
          {% endif %}
        </p>
      </div>
    </div>
  </div>
  <div class="row w-full">
    <div class="row w-33">
      <div class="w-full text-left font-small box h-5 border-top-0">
        <h3 class="component-title box text-center w-full my-1">{{ t("components.frame") }}</h3>
        <p class="m-0">{{ t("component_properties.frame_material") }} 
          {% if inspection.header.components.frame.frame_material %}
          <span class="font-semibold">{{ inspection.header.components.frame.frame_material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.frame_condition") }} 
          {% if inspection.header.components.frame.frame_condition %}
          <span class="font-semibold">{{ inspection.header.components.frame.frame_condition.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.bearing_surface_width") }} 
          {% if inspection.header.components.frame.bearing_surface_width %}
          <span class="font-semibold">{{ inspection.header.components.frame.bearing_surface_width }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.bearing_surface_depth") }} 
          {% if inspection.header.components.frame.bearing_surface_depth %}
          <span class="font-semibold">{{ inspection.header.components.frame.bearing_surface_depth }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.seal_condition") }} 
          {% if inspection.header.components.frame.seal_condition %}
          <span class="font-semibold">{{ inspection.header.components.frame.seal_condition.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.offset_distance") }} 
          {% if inspection.header.components.frame.offset_distance %}
          <span class="font-semibold">{{ inspection.header.components.frame.offset_distance }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.clear_opening_diameter") }} 
          {% if inspection.header.components.frame.clear_opening_diameter %}
          <span class="font-semibold">{{ inspection.header.components.frame.clear_opening_diameter }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.clear_opening_width") }} 
          {% if inspection.header.components.frame.clear_opening_width %}
          <span class="font-semibold">{{ inspection.header.components.frame.clear_opening_width }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.seal_inflow") }} 
          {% if inspection.header.components.frame.seal_inflow %}
          <span class="font-semibold">{{ inspection.header.components.frame.seal_inflow }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.frame_depth") }} 
          {% if inspection.header.components.frame.frame_depth %}
          <span class="font-semibold">{{ inspection.header.components.frame.frame_depth }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-5 border-top-0 border-left-0">
        <h3 class="component-title box text-center w-full my-1">{{ t("components.cover") }}</h3>
        <p class="m-0">{{ t("component_properties.type") }} 
          {% if inspection.header.components.cover.type %}
          <span class="font-semibold">{{ inspection.header.components.cover.type.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.shape") }}: 
            {% if inspection.header.components.cover.shape %}
          <span class="font-semibold">{{ inspection.header.components.cover.shape.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.size") }} 
          {% if inspection.header.components.cover.size %}
          <span class="font-semibold">{{ inspection.header.components.cover.size }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.center_size") }} 
          {% if inspection.header.components.cover.center_cover_size %}
          <span class="font-semibold">{{ inspection.header.components.cover.center_cover_size }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.size_width") }} 
          {% if inspection.header.components.cover.size_width %}
          <span class="font-semibold">{{ inspection.header.components.cover.size_width }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.cover_material") }} 
          {% if inspection.header.components.cover.cover_material %}
          <span class="font-semibold">{{ inspection.header.components.cover.cover_material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.hole_diameter") }} 
          {% if inspection.header.components.cover.hole_diameter %}
          <span class="font-semibold">{{ inspection.header.components.cover.hole_diameter }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.hole_number") }} 
          {% if inspection.header.components.cover.hole_number %}
          <span class="font-semibold">{{ inspection.header.components.cover.hole_number }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.bearing_surface_diameter") }} 
          {% if inspection.header.components.cover.bearing_surface_diameter %}
          <span class="font-semibold">{{ inspection.header.components.cover.bearing_surface_diameter }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.bearing_surface_width") }} 
          {% if inspection.header.components.cover.bearing_surface_width %}
          <span class="font-semibold">{{ inspection.header.components.cover.bearing_surface_width }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.cover_frame_fit") }} 
          {% if inspection.header.components.cover.cover_frame_fit %}
          <span class="font-semibold">{{ inspection.header.components.cover.cover_frame_fit }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.cover_condition") }} 
          {% if inspection.header.components.cover.cover_condition %}
          <span class="font-semibold">{{ inspection.header.components.cover.cover_condition.label }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-5 border-top-0 border-left-0">
        <h3 class="component-title box text-center w-full my-1">{{ t("components.cover_insert") }}</h3>
        <p class="m-0">{{ t("component_properties.insert_type") }} 
          {% if inspection.header.components.cover_insert.insert_type %}
          <span class="font-semibold">{{ inspection.header.components.cover_insert.insert_type.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.cover_insert_condition") }} 
          {% if inspection.header.components.cover_insert.cover_insert_condition %}
          <span class="font-semibold">{{ inspection.header.components.cover_insert.cover_insert_condition }}</span>
          {% endif %}
        </p>
        <h3 class="component-title box text-center w-full my-1">{{ t("components.steps") }}</h3>
        <p class="m-0">{{ t("component_properties.number") }} 
          {% if inspection.header.components.steps.number %}
          <span class="font-semibold">{{ inspection.header.components.steps.number }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.material") }}: 
            {% if inspection.header.components.steps.material %}
          <span class="font-semibold">{{ inspection.header.components.steps.material.label }}</span>
          {% endif %}
        </p>
        <h3 class="component-title box text-center w-full my-1">{{ t("components.cover_adjustment_ring") }}</h3>
        <p class="m-0">{{ t("component_properties.ring_type") }} 
          {% if inspection.header.components.cover_adjustment_ring.ring_type %}
          <span class="font-semibold">{{ inspection.header.components.cover_adjustment_ring.ring_type.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.ring_material") }} 
          {% if inspection.header.components.cover_adjustment_ring.ring_material %}
          <span class="font-semibold">{{ inspection.header.components.cover_adjustment_ring.ring_material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.ring_condition") }} 
          {% if inspection.header.components.cover_adjustment_ring.ring_condition %}
          <span class="font-semibold">{{ inspection.header.components.cover_adjustment_ring.ring_condition }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.ring_height") }} 
          {% if inspection.header.components.cover_adjustment_ring.ring_height %}
          <span class="font-semibold">{{ inspection.header.components.cover_adjustment_ring.ring_height }}</span>
          {% endif %}
        </p>
      </div>
    </div>
  </div>
  <div class="row w-full">
    <div class="row w-33">
      <div class="w-full text-left font-small box h-5 border-top-0">
        <h3 class="component-title box text-center w-full my-1">{{ t("components.cone") }}</h3>
        <p class="m-0">{{ t("component_properties.type") }} 
          {% if inspection.header.components.cone.type %}
          <span class="font-semibold">{{ inspection.header.components.cone.type.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.material") }} 
          {% if inspection.header.components.cone.material %}
          <span class="font-semibold">{{ inspection.header.components.cone.material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.depth") }} 
          {% if inspection.header.components.cone.depth %}
          <span class="font-semibold">{{ inspection.header.components.cone.depth }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.lining_interior") }} 
          {% if inspection.header.components.cone.lining_interior %}
          <span class="font-semibold">{{ inspection.header.components.cone.lining_interior.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.lining_exterior") }} 
          {% if inspection.header.components.cone.lining_exterior %}
          <span class="font-semibold">{{ inspection.header.components.cone.lining_exterior.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.cone_condition") }} 
          {% if inspection.header.components.cone.condition %}
          <span class="font-semibold">{{ inspection.header.components.cone.condition.label }}</span>
          {% endif %}
        </p>
        <h3 class="component-title box text-center w-full my-1">{{ t("components.bench") }}</h3>
        <p class="m-0">{{ t("component_properties.bench_present") }} 
          {% if inspection.header.components.bench.bench_present %}
          <span class="font-semibold">{{ inspection.header.components.bench.bench_present.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.bench_condition") }} 
          {% if inspection.header.components.bench.bench_condition %}
          <span class="font-semibold">{{ inspection.header.components.bench.bench_condition.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.bench_material") }} 
          {% if inspection.header.components.bench.bench_material %}
          <span class="font-semibold">{{ inspection.header.components.bench.bench_material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.bench_lining") }} 
          {% if inspection.header.components.bench.bench_lining %}
          <span class="font-semibold">{{ inspection.header.components.bench.bench_lining.label }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-5 border-top-0 border-left-0">
        <h3 class="component-title box text-center w-full my-1">{{ t("components.wall") }}</h3>
        <p class="m-0">{{ t("component_properties.wall_diameter") }} 
          {% if inspection.header.components.wall.diameter %}
          <span class="font-semibold">{{ inspection.header.components.wall.diameter }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.wall_by_size") }} 
          {% if inspection.header.components.wall.width %}
          <span class="font-semibold">{{ inspection.header.components.wall.width }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.material") }} 
          {% if inspection.header.components.wall.material %}
          <span class="font-semibold">{{ inspection.header.components.wall.material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.depth") }} 
          {% if inspection.header.components.wall.depth %}
          <span class="font-semibold">{{ inspection.header.components.wall.depth }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.wall_lining_exterior") }} 
          {% if inspection.header.components.wall.lining_exterior %}
          <span class="font-semibold">{{ inspection.header.components.wall.lining_exterior.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.wall_lining_interior") }} 
          {% if inspection.header.components.wall.lining_interior %}
          <span class="font-semibold">{{ inspection.header.components.wall.lining_interior.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.wall_condition") }} 
          {% if inspection.header.components.wall.condition %}
          <span class="font-semibold">{{ inspection.header.components.wall.condition.label }}</span>
          {% endif %}
        </p>
      </div>
    </div>
    <div class="row w-33">
      <div class="w-full text-left font-small box h-5 border-top-0 border-left-0">
        <h3 class="component-title box text-center w-full my-1">{{ t("components.chimney") }}</h3>
        <p class="m-0">{{ t("component_properties.chimney_present") }} 
          {% if inspection.header.components.chimney.chimney_present %}
          <span class="font-semibold">{{ inspection.header.components.chimney.chimney_present.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.first_material") }} 
          {% if inspection.header.components.chimney.first_material %}
          <span class="font-semibold">{{ inspection.header.components.chimney.first_material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.second_material") }} 
          {% if inspection.header.components.chimney.second_material %}
          <span class="font-semibold">{{ inspection.header.components.chimney.second_material.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.lining_exterior") }} 
          {% if inspection.header.components.chimney.lining_exterior %}
          <span class="font-semibold">{{ inspection.header.components.chimney.lining_exterior.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.lining_interior") }} 
          {% if inspection.header.components.chimney.lining_interior %}
          <span class="font-semibold">{{ inspection.header.components.chimney.lining_interior.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.chimney_i_i") }} 
          {% if inspection.header.components.chimney.chimney_inflow_infiltration %}
          <span class="font-semibold">{{ inspection.header.components.chimney.chimney_inflow_infiltration.label }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.clear_opening") }} 
          {% if inspection.header.components.chimney.clear_opening %}
          <span class="font-semibold">{{ inspection.header.components.chimney.clear_opening }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.chimney_depth") }} 
          {% if inspection.header.components.chimney.chimney_depth %}
          <span class="font-semibold">{{ inspection.header.components.chimney.chimney_depth }}</span>
          {% endif %}
        </p>
        <p class="m-0">{{ t("component_properties.chimney_condition") }} 
          {% if inspection.header.components.chimney.chimney_condition %}
          <span class="font-semibold">{{ inspection.header.components.chimney.chimney_condition.label }}</span>
          {% endif %}
        </p>
      </div>
    </div>
  </div>
  <div class="row w-full">
    <div class="w-full text-left font-small box border-top-0">
      <p class="m-0">{{ t("labels.additional_component_info") }} 
        {% if inspection.header.components.additional_info %}
        <span class="font-semibold">{{ inspection.header.components.additional_info }}</span>
        {% endif %}
      </p>
    </div>
  </div>
  <div class="row w-full">
    <div class="w-full text-left font-small box border-top-0">
      <p class="m-0">{{ t("labels.remarks") }} 
        {% if inspection.header.remarks %}
        <span class="font-semibold">{{ inspection.header.remarks }}</span>
        {% endif %}
      </p>
    </div>
  </div>
</div>

{% endblock %}
