/* ==========================================================================
   SIMPEL-IF Official Digital Receipt Stylesheet (Kwitansi Sah Digital)
   Institusi: Sekolah Tinggi Ilmu Tarbiyah (STIT) Ihsanul Fikri Magelang
   Alamat: Pabelan 1, Pabelan, Kec. Mungkid, Kab. Magelang, Jawa Tengah 56512
   Standar: Dokumen Keuangan Resmi Ber-QR Code Kriptografis & Stempel Sah
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Document Viewer Canvas & Single Unified Scroll System
   -------------------------------------------------------------------------- */
.modal-card.modal-receipt,
.modal-card:has(.receipt-modal-container) {
  max-width: 900px;
  height: 90vh;
  max-height: 90vh;
  display: flex !important;
  flex-direction: column !important;
}

.modal-card.modal-receipt .modal-body,
.modal-card:has(.receipt-modal-container) .modal-body {
  padding: 0 !important;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}

/* Custom Sleek Scrollbar for Receipt Modal */
.modal-card.modal-receipt .modal-body::-webkit-scrollbar,
.modal-card:has(.receipt-modal-container) .modal-body::-webkit-scrollbar {
  width: 10px;
}
.modal-card.modal-receipt .modal-body::-webkit-scrollbar-track,
.modal-card:has(.receipt-modal-container) .modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.7);
}
.modal-card.modal-receipt .modal-body::-webkit-scrollbar-thumb,
.modal-card:has(.receipt-modal-container) .modal-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 6px;
  border: 2px solid rgba(15, 23, 42, 0.7);
}
.modal-card.modal-receipt .modal-body::-webkit-scrollbar-thumb:hover,
.modal-card:has(.receipt-modal-container) .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.75);
}

.receipt-modal-container {
  background: transparent !important;
  padding: 24px 16px 40px;
  width: 100%;
  min-height: 100%;
  overflow: visible !important;
  max-height: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  user-select: text;
  box-sizing: border-box;
  position: relative;
}

/* Document Sticky Action Bar */
.receipt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 820px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 20;
  position: sticky;
  top: 12px;
}

.receipt-toolbar-left,
.receipt-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
}

.receipt-tool-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.receipt-tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.receipt-tool-btn.btn-wa {
  background: #15803d;
  border-color: #22c55e;
  color: #ffffff;
}
.receipt-tool-btn.btn-wa:hover {
  background: #166534;
}

.receipt-tool-btn.btn-print-action {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}
.receipt-tool-btn.btn-print-action:hover {
  background: #0369a1;
}

/* --------------------------------------------------------------------------
   2. Official Receipt Paper Sheet
   -------------------------------------------------------------------------- */
.official-receipt-paper {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  padding: 32px 36px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  position: relative;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

/* Document Inner Security Border Frame */
.receipt-inner-frame {
  border: 2px solid #0f2042;
  border-radius: 4px;
  padding: 24px 28px;
  position: relative;
  background: #ffffff;
}

.receipt-inner-frame::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid #d97706;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.85;
}

/* Corner Security Ornaments */
.receipt-corner-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #0f2042;
  pointer-events: none;
  z-index: 3;
}
.corner-tl { top: 6px; left: 6px; border-top: 2px solid #0f2042; border-left: 2px solid #0f2042; }
.corner-tr { top: 6px; right: 6px; border-top: 2px solid #0f2042; border-right: 2px solid #0f2042; }
.corner-bl { bottom: 6px; left: 6px; border-bottom: 2px solid #0f2042; border-left: 2px solid #0f2042; }
.corner-br { bottom: 6px; right: 6px; border-bottom: 2px solid #0f2042; border-right: 2px solid #0f2042; }

/* --------------------------------------------------------------------------
   3. Security Background Watermark & Stamps
   -------------------------------------------------------------------------- */
.receipt-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  font-size: 4.8rem;
  font-weight: 900;
  color: rgba(15, 32, 66, 0.032);
  letter-spacing: 8px;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  z-index: 1;
  text-align: center;
  line-height: 1.15;
  user-select: none;
}

.receipt-watermark-sub {
  font-size: 1.6rem;
  letter-spacing: 6px;
  font-weight: 800;
  display: block;
}

/* Authentic Paid Stamp (Stempel Lunas Kas) */
.paid-stamp-watermark {
  position: absolute;
  right: 48px;
  top: 146px;
  border: 3px double #15803d;
  color: #15803d;
  background: rgba(240, 253, 244, 0.88);
  padding: 6px 18px;
  border-radius: 8px;
  transform: rotate(-13deg);
  z-index: 5;
  text-align: center;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
  pointer-events: none;
  user-select: none;
  transition: transform 0.2s ease;
}

.paid-stamp-watermark .stamp-stars {
  font-size: 0.68rem;
  letter-spacing: 3px;
  opacity: 0.9;
  line-height: 1;
}

.paid-stamp-watermark .stamp-main {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 1px 0;
}

.paid-stamp-watermark .stamp-sub {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #166534;
}

.paid-stamp-watermark .stamp-date {
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  margin-top: 1px;
}

.paid-stamp-watermark.stamp-cicil {
  border-color: #d97706;
  color: #b45309;
  background: rgba(254, 243, 199, 0.88);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}
.paid-stamp-watermark.stamp-cicil .stamp-sub {
  color: #92400e;
}

/* --------------------------------------------------------------------------
   4. Kop Surat Resmi Institusi (Official Letterhead)
   -------------------------------------------------------------------------- */
.receipt-header-kop {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 12px;
  position: relative;
  z-index: 2;
}

.receipt-kop-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.receipt-kop-text {
  flex: 1;
  text-align: center;
}

.kop-yayasan {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.kop-institution {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0a1e42;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 1px 0;
}

.kop-accreditation {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.kop-prodi-info {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  line-height: 1.3;
}

.kop-address {
  font-size: 0.69rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.35;
}

/* Kop Divider Line */
.receipt-kop-divider {
  margin-top: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.receipt-kop-divider .divider-thick {
  height: 3px;
  background: #0a1e42;
  border-radius: 2px;
  margin-bottom: 2px;
}

.receipt-kop-divider .divider-thin {
  height: 1.2px;
  background: #d97706;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   5. Islamic Basmalah & Receipt Title Box
   -------------------------------------------------------------------------- */
.receipt-basmalah {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.48rem;
  color: #064e3b;
  text-align: center;
  margin: 6px auto 4px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  direction: rtl;
  font-weight: 700;
  user-select: none;
}

.receipt-doa-taawun {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  color: #166534;
  text-align: center;
  margin: 10px 0 6px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.receipt-title-box {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.receipt-title-heading {
  font-size: 1.22rem;
  font-weight: 900;
  color: #0a1e42;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.receipt-title-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Meta Grid: Receipt No & Verification Status */
.receipt-meta-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.receipt-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.receipt-number-highlight {
  font-family: var(--font-mono, monospace);
  font-size: 1.05rem;
  font-weight: 900;
  color: #0a1e42;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-meta-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   6. Student & Academic Profile (Data Pembayar)
   -------------------------------------------------------------------------- */
.receipt-student-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.receipt-profile-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.receipt-profile-label {
  width: 140px;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.receipt-profile-colon {
  color: #94a3b8;
  margin-right: 2px;
}

.receipt-profile-value {
  flex: 1;
  color: #0f172a;
  font-weight: 700;
}

.receipt-student-name {
  font-size: 0.96rem;
  font-weight: 900;
  color: #0a1e42;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Itemized Financial Breakdown Table
   -------------------------------------------------------------------------- */
.receipt-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
}

.receipt-breakdown-table th {
  background: #0a1e42;
  color: #ffffff;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid #0a1e42;
}

.receipt-breakdown-table td {
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  vertical-align: middle;
}

.receipt-breakdown-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.receipt-breakdown-table tbody tr:hover {
  background: #f1f5f9;
}

.receipt-breakdown-table .col-no {
  width: 44px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #64748b;
}

.receipt-item-title {
  font-weight: 800;
  color: #0a1e42;
}

.receipt-item-desc {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 1px;
}

.receipt-breakdown-table tfoot td {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
}

.receipt-subtotal-row td {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.receipt-discount-row td {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
}

.receipt-grand-total-row td {
  background: #eff6ff !important;
  border-top: 2px solid #0a1e42 !important;
  border-bottom: 2px solid #0a1e42 !important;
}

.receipt-grand-total-label {
  font-size: 0.92rem;
  font-weight: 900;
  color: #0a1e42;
  letter-spacing: 0.5px;
}

.receipt-grand-total-val {
  font-family: var(--font-mono, monospace);
  font-size: 1.15rem;
  font-weight: 900;
  color: #1e40af;
}

.receipt-balance-note {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. Terbilang Callout Box
   -------------------------------------------------------------------------- */
.receipt-terbilang-box {
  background: #f8fafc;
  border-left: 4px solid #d97706;
  border-radius: 0 6px 6px 0;
  padding: 9px 16px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.terbilang-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.terbilang-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0a1e42;
  font-style: italic;
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   9. Bottom Grid: QR Code & Official Signature
   -------------------------------------------------------------------------- */
.receipt-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

/* QR Code Authenticity Box */
.receipt-qr-section {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff;
}

.receipt-qr-box {
  background: #ffffff;
  padding: 3px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.receipt-qr-box svg {
  display: block;
}

.receipt-qr-instructions {
  font-size: 0.7rem;
  color: #475569;
  line-height: 1.35;
}

.receipt-qr-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0a1e42;
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.receipt-qr-hash {
  font-size: 0.65rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  margin-top: 4px;
  word-break: break-all;
}

/* Official Signature Box */
.receipt-signature-box {
  text-align: center;
  position: relative;
  padding-left: 10px;
}

.signature-date {
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 3px;
}

.signature-role {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0a1e42;
  line-height: 1.25;
}

.signature-space {
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.signature-digital-img {
  font-family: 'Brush Script MT', 'Dancing Script', 'Segoe Script', cursive, sans-serif;
  font-size: 2.1rem;
  color: #1e3a8a;
  transform: rotate(-4deg);
  user-select: none;
  z-index: 2;
  position: relative;
}

/* Circular Official Institutional Stamp (Stempel Basah Bulat) */
.signature-stamp-svg {
  position: absolute;
  top: 50%;
  left: 36%;
  transform: translate(-50%, -50%) rotate(-10deg);
  width: 105px;
  height: 105px;
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(30, 64, 175, 0.25));
}

.signature-name {
  font-size: 0.86rem;
  font-weight: 900;
  color: #0a1e42;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signature-nip {
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   10. Legal Notice & Security Footer
   -------------------------------------------------------------------------- */
.receipt-legal-footer {
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.receipt-legal-text {
  margin-bottom: 4px;
}

.receipt-audit-trail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.63rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   11. Print Optimization Stylesheet (@media print)
   -------------------------------------------------------------------------- */
@page {
  size: A4 portrait;
  margin: 8mm 10mm 8mm 10mm;
}

@media print {
  /* Hide all app chrome */
  body * {
    visibility: hidden;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    height: auto !important;
    overflow: visible !important;
  }

  .role-switcher-banner,
  .sidebar,
  .topbar,
  .modal-header,
  .modal-footer,
  .toast-container,
  .btn,
  .receipt-toolbar,
  .no-print,
  #global-modal-close,
  .modal-close {
    display: none !important;
  }

  .modal-overlay {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .modal-card {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .modal-body {
    padding: 0 !important;
    overflow: visible !important;
    max-height: none !important;
  }

  .receipt-modal-container {
    background: transparent !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  /* Make receipt sheet and children visible */
  .official-receipt-paper,
  .official-receipt-paper * {
    visibility: visible !important;
  }

  .official-receipt-paper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .receipt-inner-frame {
    border: 2px solid #0f2042 !important;
    padding: 16px 20px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Prevent awkward page breaks */
  .receipt-breakdown-table,
  .receipt-bottom-grid,
  .receipt-student-profile {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* --------------------------------------------------------------------------
   12. Responsive Adjustments for Mobile / Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .modal-card.modal-receipt,
  .modal-card:has(.receipt-modal-container) {
    height: 96vh;
    max-height: 96vh;
    width: 100%;
    margin: 0;
    border-radius: var(--radius-lg);
  }

  .receipt-toolbar {
    top: 6px;
    padding: 6px 12px;
    border-radius: 24px;
    justify-content: center;
  }

  .official-receipt-paper {
    padding: 18px 14px;
  }

  .receipt-inner-frame {
    padding: 14px 12px;
  }

  .receipt-header-kop {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .receipt-kop-logo {
    width: 65px;
    height: 65px;
  }

  .kop-institution {
    font-size: 1.15rem;
  }

  .receipt-student-profile {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .receipt-profile-label {
    width: 120px;
  }

  .receipt-bottom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .paid-stamp-watermark {
    right: 14px;
    top: 130px;
    transform: rotate(-10deg) scale(0.85);
  }

  .receipt-watermark {
    font-size: 2.8rem;
  }
}

/* ==========================================================================
   14. BUKTI STRUK TRANSFER & BSI MOBILE E-RECEIPT MODAL
   ========================================================================== */
.modal-card.modal-transfer-proof {
  max-width: 920px;
  width: 95vw;
}

.transfer-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .transfer-proof-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* BSI Mobile E-Receipt Card */
.bsi-receipt-card {
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 130, 125, 0.12), 0 8px 10px -6px rgba(0, 130, 125, 0.08);
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.bsi-receipt-header {
  background: linear-gradient(135deg, #00827d 0%, #00a39d 100%);
  color: #ffffff;
  padding: 20px 22px;
  position: relative;
  text-align: center;
}

.bsi-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bsi-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
}

.bsi-logo-icon {
  background: #ffffff;
  color: #00827d;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.bsi-channel-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bsi-status-circle {
  width: 52px;
  height: 52px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.bsi-status-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 2px;
  color: #ffffff;
}

.bsi-status-time {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
}

/* Receipt Tear Border */
.bsi-tear-border {
  position: relative;
  height: 16px;
  background: #f8fafc;
  overflow: hidden;
}

.bsi-tear-border::before {
  content: "";
  display: block;
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 16px;
  background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
  background-size: 16px 16px;
}

/* Receipt Content Body */
.bsi-receipt-body {
  padding: 18px 22px 22px;
  background: #ffffff;
}

.bsi-amount-box {
  text-align: center;
  padding: 14px 12px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 10px;
  margin-bottom: 18px;
}

.bsi-amount-label {
  font-size: 0.72rem;
  color: #15803d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.bsi-amount-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #166534;
  font-family: var(--font-mono), monospace;
}

.bsi-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
}

.bsi-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.bsi-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bsi-item-label {
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
  width: 125px;
}

.bsi-item-val {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.bsi-item-val.highlight {
  color: #00827d;
  font-weight: 700;
}

.bsi-receipt-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Secondary Panel: Uploaded Photo & Student Context */
.transfer-proof-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proof-photo-card {
  background: #0f172a;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.proof-photo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
}

.proof-photo-preview-wrap {
  position: relative;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #334155;
}

.proof-photo-img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.proof-photo-img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.proof-photo-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* Fallback card when no photo is attached */
.proof-no-photo-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  color: #64748b;
}

.proof-context-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.82rem;
}

.proof-context-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.proof-context-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
}

.proof-context-row:last-child {
  border-bottom: none;
}

/* Verification Table Thumbnail Cells */
.verif-struk-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.verif-thumb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.verif-thumb-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: #00827d;
}

.verif-thumb-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.verif-thumb-bsi {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.verif-bsi-mini-icon {
  font-size: 0.72rem;
  font-weight: 800;
  color: #00827d;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #6ee7b7;
}

.verif-thumb-badge {
  font-size: 0.65rem;
  color: #00827d;
  font-weight: 700;
  margin-top: 3px;
}

