body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

/* HEADER */
.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border: 1px solid black;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  border: .2px solid #000;
  padding: 0px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 70px;
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.title-box {
  /* border: 1px solid #000; */
  padding: 7px 15px;
  font-size: 17.5px;
  font-weight: bold;
  text-align: center;
}

.header-right {
  border-left: .2px solid black;
}

.header-right table {
  border-collapse: collapse;
  width: 220px;
  height: 100%;
}

.header-right td {
  border: .2px solid black;
  padding: 0px 6px;
  font-size: 9.5px;
}

.header-right .label {
  font-weight: bold;
  width: 50%;
}

.header-right .label-value {
  font-weight: bold
}

/* SECOND SECTION */
.section {
  margin-top: 10px;
}

.section table {
  border-collapse: collapse;
  width: 100%;
}

.section td {
  border: 1px solid black;
  padding: .5px 5px;
  font-size: 9.5px;
}

.section .label {
  font-weight: bold;
  width: 30%;
  background: #f9f9f9;
}

.section .label-value {
  font-weight: bold;
  background: #f9f9f9;
}




.applicant-dropdown {
  border: none;
  background: transparent;
  font-size: 9.5px;
  font-family: Arial, sans-serif;
  width: 100%;
  appearance: none;
  /* hides default arrow (Chrome, Safari, Edge) */
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  /* remove focus outline */
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* optional: remove dropdown arrow space in Firefox */
.applicant-dropdown::-ms-expand {
  display: none;
}



/* Make input look like plain text (table cell) */
.product-desc {
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font: inherit;
  padding: 0;
  margin: 0;
}

/* Hide the default dropdown arrow in Chrome, Edge, Safari */
.product-desc::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

/* Hide dropdown icon in Firefox */
.product-desc::-moz-list-bullet {
  font-size: 0;
}

/* Prevent dropdown button in Edge */
.product-desc::-ms-expand {
  display: none;
}











/* CHECKLIST SECTION */
.checklist {
  width: 100%;
  margin-top: 35px;
}

.checklist table {
  border-collapse: collapse;
  width: 100%;
  font-size: 8.5px;
}

.checklist th,
.checklist td {
  border: 1px solid black;
  padding: 5px;
  vertical-align: top;
}

.checklist th {
  background: #e6e6e6;
  font-weight: bold;
  text-align: left;
}

.checklist .sub-header th {
  text-align: center;
  font-weight: normal;
}

.checklist td {
  text-align: left;
}

.checklist td:nth-child(3),
.checklist td:nth-child(4),
.checklist td:nth-child(5) {
  text-align: center;
  width: 20px;
}

.checklist .section-header td {
  background: #d9d9d9;
  font-weight: bold;
  text-align: left;
}
.checklist .remarks {
  width: 190px;
}

.checklist .ref {
  width: 100px;
}




.checkbox-change {
  text-align: center;
}

.checkbox-change input[type="checkbox"] {
  /* Hide default checkbox */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 8px;
  height: 8px;
  border: .5px solid rgb(23, 23, 23);
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
}

.checkbox-change input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 9.5px;
  font-weight: bold;
  color: rgb(3, 3, 3);
  position: centered;
  position: absolute;
  top: -2px;
  left: -.1px;
}

/* .checkbox-change input[type="checkbox"]:checked::after {
  content: "☑";
  font-size: 9.5px;
  color: rgb(70, 69, 69);
  position: absolute;
  top: -3.5px;
  left: -1.8px;
} */






.checklist2 {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 8.5px;
  margin-top: 15px;
}

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

.checklist2 .ref {
  width: 25px;
  text-align: center;
  padding-right: 80px;
}

.checklist2 .desc {
  width: 200px;
}

.checklist2 .checkbox {
  width: 20px;
  text-align: center;
  font-size: 8.5px;
}

.checklist2 .remarks {
  width: 190px;
}







.page {
  width: 180mm;
  /* A4 width */
  /* A4 height */
  padding: 10mm;
  margin: auto;
  /* border: 1px solid #ccc; */
  background: white;
  box-sizing: border-box;
  page-break-after: always;
}

h2 {
  text-align: center;
}

/* Preview Modal */
#previewModal {
  display: none;
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#previewContent {
  background: #fff;
  width: 80%;
  height: 90%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#pdfFrame {
  flex: 1;
  width: 100%;
  border: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #00796B;
  color: white;
}

.modal-header button {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}


@media print {
  .print-btn {
    display: none !important;
  }
}





.signature-table-container {
  margin: 20px auto;
  width: 100%;
}

.signature-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 8.5px;
}

.signature-table td {
  border: 1px solid black;
  /* padding: 10px; */
  vertical-align: middle;
}

.signature-table .label {
  width: 30%;
  font-weight: bold;
}

.signature-table .value {
  width: 30%;
}

.signature-table img {
  max-height: 40px;
  max-width: 100px;
  display: block;
}




/* Remove border & background */
select {
  border: none;
  background: transparent;
  font-size: 8.5px;
  font-weight: bold;
  color: black;
  appearance: none;
  /* removes default arrow in most browsers */
  -webkit-appearance: none;
  /* Safari */
  -moz-appearance: none;
  /* Firefox */
  padding: 4px 0;
  cursor: pointer;
}

/* Optional: remove focus outline */
select:focus {
  outline: none;
}