
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #fff;
}
header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 50px;
}
.product-form, .quote-table {
  margin-top: 20px;
}
input, select {
  margin: 5px;
  padding: 8px;
}
button {
  padding: 8px 12px;
  background-color: green;
  color: white;
  border: none;
  cursor: pointer;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th {
  background-color: #007F3F;
  color: white;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.total-container {
  margin-top: 10px;
  text-align: right;
}


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


@media print {
  label[for="quotationNo"],
  #quotationNo {
    display: inline-block;
    width: 150px !important;
    vertical-align: middle;
  }

  label[for="address"],
  #address {
    display: inline-block;
    width: 60% !important;
    vertical-align: middle;
  }
}


body, input, select, label, table {
  font-size: 13px;
}

@media print {
  body, input, select, label, table {
    font-size: 13px;
  }
}


/* Force uniform A4 layout for all devices when printing */
@media print {
  body {
    width: 794px;
    margin: 0 auto;
    -webkit-print-color-adjust: exact;
  }

  .no-print,
  button,
  .product-entry button {
    display: none !important;
  }

  input, select {
    border: none;
    background: transparent;
  }

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

  th, td {
    padding: 4px;
    border: 1px solid #000;
    font-size: 13px;
  }
}

/* Ensure consistent zoom across mobile devices */
@media screen and (max-width: 768px) {
  body {
    zoom: 1;
  }
}


@media print {
  input#printable,
  input#printable:focus,
  input#printable:active {
    border: 1px solid #000 !important;
    background: transparent !important;
    padding: 2px;
  }

  input#printable-short {
    width: 150px !important;
    border: 1px solid #000 !important;
    background: transparent !important;
    padding: 2px;
  }

  input#printable-long {
    width: 60% !important;
    border: 1px solid #000 !important;
    background: transparent !important;
    padding: 2px;
  }
}


@media print {
  #printable,
  #printable-short,
  #printable-long {
    font-size: 18px !important;
  }
}

@media print {
  #clientName,
  #quotationNo {
    font-size: 18px !important;
    width: 300px !important;
  }
}

@media print {
  #grandTotal {
    pointer-events: auto !important;
  }
}
#grandTotal {
  pointer-events: auto !important;
  background-color: white !important;
}
