.bill-page {
  margin: 0;
  padding: 0;
}

.bill-wrapper {
  width: 210mm;
  min-height: 297mm;
  margin: auto;
  background: white;
  border: 2px solid #000;
  padding: 15mm 10mm;
  /* padding: 10mm; */
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ROW & COLUMN */
.border-row {
  display: flex;
  width: 100%;
  border: 1px solid #000;
}

.border-row.date-number,
.border-row.shipper-consignee {
  margin: 0;
}

.border-row.date-number > .col,
.border-row.shipper-consignee > .col {
  padding: 4px 8px; /* reduce padding to match table alignment */
  box-sizing: border-box;
}

/* Optional: align text same as table cells */
.border-row.date-number > .col strong,
.border-row.shipper-consignee > .col strong {
  display: block;
}
.border-right {
  border-right: 1px solid #000;
  padding: 8px;
  box-sizing: border-box;
}

.shipper-consignee {
  margin-top: 10px;
}

.shipper,
.images-col,
.consignee {
  flex: 1;
  padding: 8px;
}

.images-col {
  display: flex;
  justify-content: center;
  padding: 0;
}

.images {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.images img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #000;
  display: block;
}

.shipper p,
.consignee p {
  margin: 2px 0;
}

/* TABLE */
.bill-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.bill-table th,
.bill-table td {
  border: 1px solid #000;
  padding: 6px;
  text-align: center;
}

.bill-table th {
  font-weight: bold;
  background: #f2f2f2;
}

.bill-table td.desc {
  text-align: left;
  vertical-align: top;
}

.bill-table td img.art-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #000;
}

.bill-table tfoot td.bold {
  font-weight: bold;
  text-align: right;
}

/* DECLARATION */
.declaration {
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 13px;
}

/* SIGNATURES */
.signature-row {
  display: flex;
  margin-top: 40px;
  align-items: flex-end; /* optional */
}
.signature-line {
  width: 200px;
  height: 40px;
  border-bottom: 1px solid #000;
  margin-top: 6px;
}
.date-row {
  margin-bottom: 10px;
}

/* PRINT SETTINGS */
@media print {
  body {
    margin: 0;
    padding: 0;
  }
  .bill-wrapper {
    border: none;
    width: 100%;
    padding: 10mm;
    box-sizing: border-box;
    page-break-after: always;
  }
}
