
  /* Modal Overlay */
.overlayreceipt{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Modal Container */
.modalreceipt {
  background: #fff;
  width: 900px;
  max-width: 95%;
  max-height: 95vh;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow-y: auto;
}

/* Top Buttons */
.topButtons {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  gap: 10px;
}

.closeBtn {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.closeBtn:hover {
  color: #333;
}

.printBtn {
  padding: 10px 18px;
  background: #1f376d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.printBtn:hover {
  background: #162954;
}

.printBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Receipt Box Styles */
.receiptBox {
  padding: 25px;
  border: 1px solid #ccc;
  background: #fff;
  position: relative;
}

.navyStrip {
  background: #1f376d;
  height: 30px;
  width: calc(100% + 50px);
  margin-top: -25px;
  margin-left: -25px;
}

.logoBox {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0;
  justify-content: flex-end;
}

.logoStyle {
  height: 60px;
  width: auto;
}
.titleLogoRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 12px;
}

.logoRightBox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* keeps logo and receipt no aligned to right */
  gap: 4px;
}

.receiptNoBox {
  background: white;
  border: 2px solid #1f376d;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  color: #1f376d;
  white-space: nowrap;
}


.titleSection {
  display: flex;
  flex-direction: column;
}
.logoRightBox img {
  height: 60px; /* adjust if needed */
}


.headerRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.receiptTitle {
  font-size: 32px;
  font-weight: bold;
  color: #1f376d;
}

.receiptNoBox {
  background: white;
  border: 2px solid #1f376d;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  color: #1f376d;
  white-space: nowrap;
  gap: 10px;
}

.fieldsBox {
  margin-top: 30px;
  font-size: 16px;
}

.fieldRow {
  margin-bottom: 15px;
}

.fieldLabel {
  font-weight: bold;
  width: 250px;
  display: inline-block;
}

.signatureStyle {
  height: 40px;
  margin-left: 10px;
  vertical-align: middle;
}

.amountBox {
  margin-top: 25px;
  display: flex;
  gap: 12px;        
  align-items: center;
}

.amountLabel {
  font-size: 17px;
  font-weight: bold;
  color: #1f376d;
}

.amountValue {
  margin-top: 5px;
  border: 2px solid #1f376d;
  width: 160px;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 16px;
  text-align: center;
  background: #f8f9ff;
}

.bottomRow {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 16px;
}

.leftFields {
  width: 68%;
}

.paymentModeBox {
  border: 2px solid #1f376d;
  border-radius: 8px;
  width: 140px;
  height: 80px;
  padding: 10px;
  font-size: 14px;
  text-align: center;
  background: #f8f9ff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;

}

.paymentModeTitle {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 0;
  color: #1f376d;
  white-space: nowrap;   
  font-size: 18px;
  font-weight: 700;
  
}

.termsBox {
  margin-top: 40px;
  width: 100%;
  text-align: center;
}

.termsTitle {
  display: inline-block;
  background: #1f376d;
  color: white;
  padding: 6px 20px;
  font-size: 15px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.termsText {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  max-width: 850px;
  margin: auto;
}

/* Loading and Error States */
.text-center {
  text-align: center;
}

.p-8 {
  padding: 2rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-red-500 {
  color: #ef4444;
}

.mt-4 {
  margin-top: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.bg-gray-500 {
  background-color: #6b7280;
}

.rounded {
  border-radius: 0.375rem;
}
.termsBox {
  margin-top: 40px;
  width: 100%;
  text-align: center;
}

.termsLine {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.termsLine::before,
.termsLine::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #1f376d;
}

.termsLine::before {
  margin-right: 12px;
}

.termsLine::after {
  margin-left: 12px;
}

.termsLine span {
  background: #1f376d;
  color: white;
  padding: 6px 25px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
}
