/* ============================================================================
 * SISTEM INFORMASI PUSAT PRESTASI MAN PINRANG
 * Custom Stylesheet & Print Styling (A4 / F4)
 * ============================================================================ */

:root {
  --emerald-primary: #047857;
  --emerald-dark: #064e3b;
  --gold-accent: #b45309;
  --gold-soft: #fef3c7;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background-color: #f8faf9;
}

.font-mono-num {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Lightbox Overlay */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop.hidden {
  display: none;
}

/* Print Layout A4 & F4 */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

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

  .print-only {
    display: block !important;
  }

  .print-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  th, td {
    border: 1px solid #334155 !important;
    padding: 6px 8px !important;
    font-size: 9.5pt !important;
  }

  thead {
    display: table-header-group;
  }
}

@page {
  size: A4 portrait;
  margin: 14mm 15mm;
}

body.paper-f4 {
  --print-paper: 215mm 330mm;
}

@media print {
  body.paper-f4 {
    width: 215mm;
  }
}
