 .receipt-wrapper {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  background: #fff;
  font-family: 'Arial', sans-serif;
}

.receipt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 15px;
}

.receipt-actions button {
  padding: 8px 16px;
  border: none;
  background: #000;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.receipt {
  border: 1px solid #ccc;
  padding: 2rem;
  background-color: white;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
}

.school-logo {
  width: 60px;
  height: 60px;
  background-color: #eee;
  border-radius: 50%;
}

.school-info h2 {
  margin: 0;
  font-size: 1.5rem;
}
.school-info p, .school-info h3 {
  margin: 4px 0;
}

.invoice-info p {
  margin: 4px 0;
  font-size: 0.9rem;
}

.student-details {
  margin: 1rem 0;
  font-size: 0.95rem;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.fee-table th, .fee-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-left, .summary-right {
  width: 48%;
}

.summary-right p {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

.summary-right .total-amount {
  font-size: 1.2rem;
}

.receipt-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #999;
}

@media print {
  body * {
    visibility: hidden;
  }
  .receipt, .receipt * {
    visibility: visible;
  }
  .receipt {
    position: absolute;
    left: 0;
    top: 0;
  }
}
/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .receipt-wrapper {
    padding: 1rem;
  }

  .receipt {
    padding: 1rem;
  }

  .school-info h2 {
    font-size: 1.2rem;
  }

  .school-info p, 
  .invoice-info p {
    font-size: 0.8rem;
  }

  .fee-table {
    display: block;
    overflow-x: auto;  /* enable horizontal scroll */
    white-space: nowrap;
  }

  .payment-summary {
    flex-direction: column;
    gap: 1rem;
  }

  .summary-left, 
  .summary-right {
    width: 100%;
  }

  .receipt-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .school-logo {
    width: 40px;
    height: 40px;
  }

  .receipt-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fee-table th, 
  .fee-table td {
    padding: 6px;
    font-size: 0.75rem;
  }

  .summary-right .total-amount {
    font-size: 1rem;
  }
}
