/* Print Optimization Stylesheet for A One EMS */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    margin: 0;
    padding: 0;
  }

  .no-print, .app-sidebar, .app-header, .app-footer, .btn, .role-switcher-select {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .print-page {
    page-break-after: always;
    padding: 20mm;
    margin: 0 auto;
    max-width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
  }

  /* Printable Header */
  .inst-print-header {
    text-align: center;
    border-bottom: 2px double #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }

  .inst-print-header h1 {
    font-size: 22pt;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .inst-print-header p {
    font-size: 11pt;
    color: #333;
    margin: 2px 0;
  }

  .doc-title-badge {
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid #000;
    border-radius: 20px;
    font-size: 13pt;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
  }

  /* Student ID Card Layout (85.6mm x 54mm standard CR80) */
  .id-card-container {
    width: 86mm;
    height: 54mm;
    border: 1.5px solid #1e3a8a;
    border-radius: 8px;
    padding: 8px;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: none !important;
  }

  .id-card-header {
    text-align: center;
    background: #1e3a8a;
    color: #fff;
    padding: 4px;
    border-radius: 4px;
    font-size: 8pt;
    font-weight: 700;
  }

  .id-card-body {
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }

  .id-card-photo {
    width: 24mm;
    height: 28mm;
    border: 1px solid #ccc;
    border-radius: 4px;
    object-fit: cover;
  }

  .id-card-details {
    font-size: 7.5pt;
    line-height: 1.3;
  }

  /* Tables in Print */
  .table {
    width: 100% !important;
    border: 1px solid #000 !important;
    border-collapse: collapse !important;
  }

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

  .table th {
    background-color: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
  }

  /* Signatures */
  .signature-block {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 10px;
  }

  .sign-box {
    text-align: center;
    width: 180px;
    border-top: 1px dashed #000;
    padding-top: 5px;
    font-size: 10pt;
    font-weight: 600;
  }
}
