/* =============================================
   LAMIM — PREMIUM PRINT / PDF STYLES
   ============================================= */
@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  /* HIDE THE ENTIRE APP SHELL AND PREVIEW MODAL COMPLETELY */
  #app,
  .sidebar,
  .bottom-nav,
  .topbar,
  #sidebar-overlay,
  #lamim-pdf-modal {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  /* SHOW ONLY THE REPORT */
  #salah-print-report {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
  }

  #salah-print-report * {
    visibility: visible !important;
  }

  /* Premium Report Layout */
  .pdf-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 25px;
  }

  .pdf-brand-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #000;
  }

  .pdf-report-type {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }

  .pdf-meta-box {
    text-align: right;
    font-size: 11px;
    color: #333;
  }

  /* Executive Summary Box */
  .pdf-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
  }

  .pdf-summary-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    background: #fafafa !important;
    -webkit-print-color-adjust: exact;
  }

  .pdf-summary-val {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 2px;
  }

  .pdf-summary-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: #777;
  }

  /* The Detailed Table */
  .pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }

  .pdf-table th {
    background: #f4f4f4 !important;
    border: 1px solid #ddd;
    padding: 8px 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
    -webkit-print-color-adjust: exact;
  }

  .pdf-table td {
    border: 1px solid #eee;
    padding: 6px 4px;
    font-size: 10px;
    text-align: center;
  }

  .pdf-date-cell {
    font-weight: 700;
    text-align: left !important;
    background: #fcfcfc !important;
    padding-left: 10px !important;
    -webkit-print-color-adjust: exact;
  }

  /* Status Indicators for Print */
  .pdf-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    -webkit-print-color-adjust: exact;
  }

  .pdf-status-text {
    font-size: 8px;
    font-weight: 600;
  }

  /* Footer */
  .pdf-footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
  }

  .pdf-ayah {
    font-style: italic;
    font-size: 12px;
    color: #444;
    margin-bottom: 8px;
    max-width: 85%;
    margin: 0 auto 10px;
  }

  .pdf-watermark {
    font-size: 9px;
    color: #999;
    letter-spacing: 1px;
  }
}

