.checksheet-container{
  background:#fff;
  font-family: Arial, Helvetica, sans-serif;
  color:#000;
}

/* The PDF page wrapper: NO left/right padding so header can be full width */
.checksheet-container .checksheet-page{
  padding: 0;
  margin: 0;
  position: relative;
  background:#fff;
  overflow: visible;
}

/* Body gets padding, not the page */
.checksheet-container .checksheet-body{
  padding: 0 40px 22mm 40px; /* bottom reserved for jsPDF footer */
}

/* ===== Yellow strip (full width) ===== */
.checksheet-container .yellow-strip{
  width: 100%;
  /* background:#E2AF39; */
  height: 46px;
  position: relative;
  margin: 0 0 12px 0;
}

.checksheet-container .yellow-strip .header-logo{
  height: 26px;
  width: auto;
  position: absolute;
  left: 40px;     /* align with body padding */
  top: 10px;
}

/* ===== Title centered, aligned with body ===== */
.checksheet-container .title-block{
  text-align: center;
  margin: 6px 40px 10px 40px;  /* align with body padding */
}

.checksheet-container .title-block .header-title{
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.checksheet-container .title-block .header-date{
  font-size: 16px;
  font-weight: 400;
  margin: 2px 0 0 0;
}

/* ===== Order table ===== */
.checksheet-container .order-table{
  width: 98%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #000;
  font-size: 12px;
  margin: 6px 0 8px 0;
  display: table;
}

.checksheet-container .order-table td{
  border: 1px solid #000;
  padding: 2px 6px;
  vertical-align: top;
  word-break: break-word;
  display: table-cell;
}

.checksheet-container .order-table tr{ display: table-row; }

.checksheet-container .col-left{  width: 55%; }
.checksheet-container .col-mid{   width: 33%; }
.checksheet-container .col-right{ width: 12%; text-align:center; }

.checksheet-container .subhead td{ font-weight: 400; }
.checksheet-container .inscription{ line-height: 1.2; }

/* ===== Page breaks for html2pdf pages ===== */
/* .checksheet-container .checksheet-page.html2pdf__page-break{
  page-break-after: always;
  break-after: page;
} */
/* .checksheet-container .checksheet-page.html2pdf__page-break:last-child{
  page-break-after: auto;
  break-after: auto;
} */

/* Avoid splitting an order block */
.checksheet-container .checksheet-header,
.checksheet-container .order-table,
.checksheet-container .order-table tr,
.checksheet-container .order-table td{
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

/* Optional: only if you want HUGE orders to split at item rows instead of overflowing */
.checksheet-container .order-table tr.item-row{
  break-inside: auto !important;
  page-break-inside: auto !important;
}

/* Remove @media print page breaks: html2pdf is not true print */
@media print{
  .no-print{ display:none !important; }
}

/* Header container */
.checksheet-container .yellow-strip{
  position: relative;
  height: 46px;
  width: 100%;
  overflow: hidden;
}

/* Yellow bar image */
.checksheet-container .yellow-bar{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 46px;
  object-fit: cover;
  display: block;
}

/* Logo on top of bar */
.checksheet-container .header-logo{
  position: absolute;
  top: 10px;
  left: 40px;           /* align with body padding */
  height: 26px;
  width: auto;
  z-index: 2;
}