/* ==========================================================================
   Print Stylesheet: Formal Fee Receipt with Student & Parents Name
   ========================================================================== */

#printable-receipt-container {
  display: none;
}

@media print {
  /* Hide all normal website elements */
  body * {
    visibility: hidden;
  }

  #printable-receipt-container,
  #printable-receipt-container * {
    visibility: visible;
  }

  #printable-receipt-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #FFFFFF;
    color: #000000;
    padding: 30px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  }

  .receipt-box {
    border: 2px solid #000;
    padding: 24px;
    position: relative;
    background: #FFF;
  }

  .receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #000;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .receipt-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
  }

  .receipt-school-info {
    text-align: center;
    flex-grow: 1;
  }

  .receipt-school-info h2 {
    font-size: 20pt;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .receipt-school-info p {
    font-size: 9.5pt;
    margin: 2px 0;
  }

  .receipt-title-badge {
    text-align: center;
    margin: 16px 0;
  }

  .receipt-title-badge span {
    font-size: 13pt;
    font-weight: 800;
    text-transform: uppercase;
    border: 1.5px solid #000;
    padding: 4px 20px;
    background: #EEE;
  }

  .receipt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 10.5pt;
    margin-bottom: 20px;
    border-bottom: 1px solid #CCC;
    padding-bottom: 16px;
  }

  .meta-row {
    display: flex;
    margin-bottom: 6px;
  }

  .meta-label {
    width: 150px;
    font-weight: 700;
  }

  .meta-value {
    flex-grow: 1;
  }

  .receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 10.5pt;
  }

  .receipt-table th,
  .receipt-table td {
    border: 1px solid #000;
    padding: 8px 12px;
  }

  .receipt-table th {
    background: #EEE;
    text-align: left;
  }

  .receipt-table td.amount {
    text-align: right;
  }

  .receipt-total-row td {
    font-weight: 800;
    font-size: 11.5pt;
  }

  .receipt-footer-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
  }

  .sig-block {
    text-align: center;
    width: 200px;
    border-top: 1px solid #000;
    font-size: 9.5pt;
    font-weight: 700;
  }

  .receipt-seal {
    text-align: center;
    font-size: 8.5pt;
    color: #444;
    margin-top: 20px;
  }
}
