/* Print-Friendly CSS Stylesheet for Certificates, ID Cards, Marksheets & Fee Receipts */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Hind Siliguri', 'Times New Roman', serif !important;
  }

  /* Hide app navigation & layout chrome during print */
  .saas-top-banner,
  .app-header,
  .sidebar,
  .admin-sidebar,
  .pos-topnav-header,
  .top-menu-bar,
  .portal-menu-bar,
  .portal-header,
  .btn,
  .no-print,
  .modal-close,
  .ticker-wrap {
    display: none !important;
  }

  .main-content,
  .admin-content,
  #main-workspace,
  #app-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .glass-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  .print-area {
    display: block !important;
    width: 100% !important;
  }

  /* Printable ID Card Container */
  .id-card-print {
    width: 3.375in;
    height: 2.125in;
    border: 2px solid #1e293b;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
    color: #0f172a;
    position: relative;
    box-shadow: none;
    page-break-inside: avoid;
    margin: 10px auto;
  }

  .id-card-header {
    text-align: center;
    border-bottom: 2px solid #4f46e5;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .id-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #312e81;
  }

  .id-card-sub {
    font-size: 10px;
    color: #475569;
  }

  .id-card-body {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .id-card-photo {
    width: 65px;
    height: 75px;
    border-radius: 6px;
    border: 1px solid #94a3b8;
    object-fit: cover;
  }

  .id-card-info {
    font-size: 10px;
    line-height: 1.4;
  }

  /* Printable Certificate / Testimonial */
  .certificate-print {
    width: 100%;
    max-width: 800px;
    min-height: 550px;
    margin: 0 auto;
    padding: 40px;
    border: 12px double #1e1b4b;
    background: #fffdfa;
    color: #1e293b;
    text-align: center;
    position: relative;
    page-break-after: always;
  }

  .cert-header {
    font-size: 26px;
    font-weight: 800;
    color: #312e81;
    margin-bottom: 5px;
  }

  .cert-title {
    font-size: 32px;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    color: #b45309;
    margin: 20px 0;
  }

  .cert-body {
    font-size: 16px;
    line-height: 2.2;
    margin: 24px 0;
    text-align: justify;
  }

  .cert-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding: 0 40px;
  }

  .cert-sign {
    border-top: 1px dashed #475569;
    width: 180px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding-top: 4px;
  }

  /* Printable Marksheet & Fee Receipt */
  .transcript-print, .receipt-print {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #000;
    color: #000;
  }

  table.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }

  table.print-table th, table.print-table td {
    border: 1px solid #000;
    padding: 6px 10px;
    font-size: 12px;
    color: #000 !important;
  }

  table.print-table th {
    background-color: #f1f5f9 !important;
  }
}
