body {
  font-family: Arial, sans-serif;
  /* margin: 20px; */
  justify-content: center;
}

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

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

.logo-box {
  border: .2px solid #000;
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 60px;
}

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

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

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

.header-right table {
  border-collapse: collapse;
  width: 250px;
  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
}





.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  margin-top: 10px;
}

.info-table td {
  border: 1px solid #000;
  padding: 1px 10px;
}

.label {
  font-weight: bold;
  background: #f2f2f2;
  width: 25%;
  font-size: 9.5px;
}

input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 8.5px;
}

input:focus {
  background: #ffffcc;
}


.sample-textarea {
  width: 100%;
  border: 1px solid #ffffff;
  resize: none;
  overflow: hidden;
  font-family: inherit;
  font-size: 8.5px;

}
.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;
}






.info2-table {
  width: 100%;
  border: 1px solid black;
  border-collapse: collapse;
  margin-top: 5px;
  font-family: Arial, sans-serif;
}

.info2-table th {
  border: 1px solid black;
  padding: 1px 10px;
  font-size: 9.5px;
  text-align: left;
  /* background: #d9d9d9; header grey like in image */
  font-weight: bold;
}

.info2-table td {
  border: 1px solid black;
  padding: 1px 3px;
  font-size: 8.5px;
  vertical-align: top;
}

.info2-table .label {
  background: #ffffff;
  font-weight: bold;
  width: 5%;
  white-space: nowrap;
}

/* Make input/textarea look like plain text */
.info2-table input,
.info2-table textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 8.5px;
  font-family: Arial, sans-serif;
  resize: none;
  background: transparent;
  line-height: 1.4em;
  padding: 0;
}

.info2-table input[readonly],
.info2-table textarea[readonly] {
  background: transparent;
}

.info2-table textarea {
  overflow: hidden; /* hide scrollbars */
}








.inline-field {
  white-space: nowrap; /* keep label + input together */
}
.info3-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  /* margin-top: 5px; */
}

.info3-table th,
.info3-table td {
  border: 1px solid #000;
  padding: 1px 4px;
  font-size: 8.5px;
  vertical-align: top;
}

.info3-table th.section-title {
  background: #d9d9d9; /* grey header */
  font-weight: bold;
  text-align: left;
  font-size: 8.5px;
}

.info3-table .label {
  font-weight: bold;
  background: #e6e6e6;
  width: 20%;
}

.info3-table input {
  border: none;
  outline: none;
  font-size: 8.5px;
  font-family: Arial, sans-serif;
  background: transparent;
  width: 100%;
}










.info4-table {
  width: 100%;
  border: 1px solid black;
  border-collapse: collapse;
}

.info4-table td, .info4-table th {
  border: 1px solid black;
  padding: 1px 10px;
  font-size: 8.5px;
  vertical-align: top;
}

.info4-table .label {
  background: #e6e6e6;
  font-weight: bold;
  width: 14%;
}

/* Table cell styles */
.options-row td {
  border-right: 1px solid grey;
  text-align: center;
  white-space: nowrap;
}

.options-row td:last-child {
  border-right: none;
}

/* Hide default checkbox */
.options-row input[type="checkbox"] {
  display: none;
}

/* Label styling */
.options-row label {
  position: relative;
  padding-left: 5px; /* space for custom box */
  cursor: pointer;
  font-size: 8.5px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* Draw custom checkbox box */
.options-row label::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -6px;
  width: 6px;
  height: 6px;
  border: 1px solid #000; /* black border */
  background: #fff;       /* white background */
}

/* Show black tick when checked */
.options-row input[type="checkbox"]:checked + label::after {
  content: "✔";
  position: absolute;
  left: 2.5px;
  top: -7px;
  font-size: 8.5px;
  color: #000;
}











/* Shared Table Base */
.info5-table,
.info6-table {
  width: 100%;
  border: 1px solid black;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 8.5px;
}

.info5-table th,
.info6-table th {
  border: 1px solid black;
  background: #bfbfbf; /* grey header */
  font-weight: bold;
  font-size: 8.5px;
  text-align: left;
  padding: 1px 10px;
}

.info5-table td,
.info6-table td {
  border: 1px solid black;
  padding: 6px 10px;
  vertical-align: top;
  font-size: 8.5px;
}

/* Inline editable text */
.gross, .net {
  margin-right: 8px; /* adjust spacing */
}
.inline-input {
  border: none;
  font-size: 8.5px;
  font-weight: bold;
  font-family: inherit;
  background: transparent;
  width: auto;
  min-width: 20px;
  box-sizing: border-box;
  margin-right: -60px;
}

/* Custom Checkbox */
.info5-table input[type="checkbox"],
.info6-table input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 6px;
  height: 6px;
  border: 1px solid black;
  display: inline-block;
  position: relative;
  margin-right: 4px;
  vertical-align: middle;
  cursor: pointer;
}

.info5-table input[type="checkbox"]:checked::after,
.info6-table input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: -1px;
  font-size: 8.5px;
  color: black;
  font-weight: bold;
}

/* Labels */
.info5-table label,
.info6-table label {
  font-size: 8.5px;
  font-weight: bold;
  margin-right: 15px;
  cursor: pointer;
}









.info7-table {
  width: 100%;
  border: 1px solid black;
  border-collapse: collapse;
  table-layout: fixed;
}

.info7-table th {
  border: 1px solid black;
  background: #bfbfbf;
  font-weight: bold;
  font-size: 8.5px;
  text-align: left;
  padding: 6px 10px;
}

.info7-table td {
  border: 1px solid black;
  padding: 0;
  font-size: 8.5px;
  vertical-align: top; /* important for expansion */
}

.info7-table .label {
  font-weight: bold;
  text-align: center;
  font-size: 8.5px;
  background: white;
}

.info7-table input,
.info7-table textarea {
  width: 100%;
  border: none;
  padding: 1px;
  font-size: 8.5px;
  box-sizing: border-box;
}

.info7-table textarea {
  resize: none;
  overflow-y: hidden;
  /* min-height: 28px; */
}











.info8-table {
  width: 100%;
  border: 1px solid black;
  border-collapse: collapse;
  table-layout: fixed;
}

.info8-table th {
  border: 1px solid black;
  background: #bfbfbf; /* grey header */
  font-weight: bold;
  font-size: 8.5px;
  text-align: left;
  padding: 1px 10px;
}

.info8-table td {
  border: 1px solid black;
  padding: 1px 10px;
  font-size: 8.5px;
  vertical-align: top;
  background: white; /* white body rows */
  line-height: 1.4;
}

.info8-table label {
  white-space: nowrap;
}

.info8-table input[type="checkbox"] {
  margin-left: 4px;
  margin-right: 8px;
}



.info9-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 8.5px;
}
.info9-table th {
  border: 1px solid #000;
  padding: 4px;
  text-align: center;
  background: #d9d9d9;
  font-weight: bold;
}
.info9-table td {
  border: 1px solid #000;
  padding: 4px;
  vertical-align: top;
}
.signature {
  display: inline-block;
  height: 20px;
  margin-left: 10px;
  vertical-align: middle;
}
.manufacturer-cell {
  text-align: center;
  vertical-align: middle;
}
.manufacturer-stamp {
  height: 80px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
.selectable {
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 5px;
  background: #fff;
  padding: 2px 4px;
}

/* Custom dropdown */
.custom-dropdown {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #000;
  font-size: 8.5px;
  z-index: 1000;
}
.custom-dropdown div {
  padding: 4px 6px;
  cursor: pointer;
}
.custom-dropdown div:hover {
  background: #d9d9d9;
}



.section-title {
  background: #e6e6e6;
  font-weight: bold;
  text-align: left;
  padding: 6px;
}

/* .storage {
  font-size: 8.5px;
  vertical-align: top;
  padding: 8px;
} */









.section-subtitle {
  background: #f2f2f2;
  font-weight: bold;
  text-align: left;
  padding: 6px;
}








.a4 {
  background: white;
  width: 200mm;
  min-height: 287mm; /* allow growth */
  padding: 10mm;
  box-sizing: border-box;
}


/* Print settings */
@media print {
  body {
    background: none;
    padding: 0;
  }

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

  .a4 {
    margin: 0;
    box-shadow: none;

  }


}


/*====== REMOVE SECOND PAGE FOR DEMO ======*/

.a4:nth-of-type(2) {
  display: none;
}



/* ================= PHOTO PAGE ================= */
.photo-meta {
  width: 100%;
  border-collapse: collapse;
  margin-top: 60px;
}
.photo-meta td {
  border: 1px solid #000;
  padding: 6px;
  font-size: 11px;
}

.photo-title {
  text-align: center;
  font-weight: bold;
  border: 1px solid #000;
  border-top: none;
  padding: 6px;
  font-size: 11px;
  background: #dfe4df;
}

.photo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.photo-table td {
  border: 1px solid #000;
  table-layout: fixed;
}

.section-head td {
  background: #eef2ee;
  font-weight: bold;
  padding: 6px;
}

/* ================= PHOTO UPLOAD ================= */
.photo-box {
  position: relative;
  height: 140px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  overflow: hidden;
}


.photo-inner {
  position: relative;
  width: 100%;
  height: 100%;                
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

/* IMAGE – FIT INSIDE WITHOUT AFFECTING SIZE */
.photo-inner img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;          /* fill box width */
  height: 100%;         /* fill box height */
  transform: translate(-50%, -50%);
  object-fit: fill;     /* ✅ STRETCH, NO CROP */
  pointer-events: none;
}


.photo-placeholder {
  font-size: 10px;
  color: #777;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Hide placeholder when image exists */
.photo-box.has-image .photo-placeholder {
  display: none;
}


/* PRINT SAFETY */
@media print {
  .photo-box {
    page-break-inside: avoid;
  }
  .photo-placeholder {
    display: none !important;
  }
}
