html,
body {
  height: auto;
  margin: 0;
  background: white;
  color: #333;
  -webkit-print-color-adjust: exact !important;
  color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.zcp-watermark-img {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60%;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.zcp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.zcp-header img {
  max-height: 80px;
  margin-bottom: 10px;
}

/* Title with Poppins font */
.zcp-title {
  margin: 0;
  color: #222;
  text-decoration: underline;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-align: center;
}

.zcp-header small {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.invoice-box {
  max-width: 800px;
  width: 100%;
  margin: auto;
  display: flex !important;
  flex-direction: column !important;
}

.zcp-content {
  flex: 1;
  min-height: 300px;
}

table {
  width: 100%;
  margin-top: 10px;
}

th,
td {
  border: none !important;
  padding: 5px !important;
  text-align: left;
}

td {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

th {
  border-bottom: 1px solid #000 !important;
}

.zcp-label {
  text-align: left;
  white-space: normal !important;
}

.zcp-value {
  text-align: right;
  font-weight: 600;
}

.zcp-total {
  font-weight: 600;
}

.zcp-disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
}

.zcp-disclaimer p {
  font-size: 10px;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: underline;
  margin-bottom: 5px;
}

.zcp-disclaimer ul {
  font-size: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 10px;
}

.zcp-footer {
  text-align: center;
  margin-top: 10px;
  font-size: 10px;
  color: #999;
  padding-top: 10px !important;
  border-top: 1px solid #ccc;
}

@media print {
  @page {
    size: A4 portrait;
    /* Force portrait */
    margin: 15mm 12mm 15mm 12mm;
  }

  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    font-family: "Poppins", sans-serif !important;
  }

  .zcp-watermark-img {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60%;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
  }
}

@media screen and (max-width: 600px) {
  .zcp-header img {
    max-height: 50px;
  }
}
