/* Print-specific styles */
@media print {
  /* Hide all UI elements */
  nav, .tab, .admin-nav, .admin-tab,
  form, #adminSection, button,
  h1, h2:not(.print-header),
  .print-controls {
    display: none !important;
  }
  
  /* Show only the print content */
  body {
    font-family: Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    margin: 0;
    padding: 20pt;
  }
  
  .print-content {
    display: block !important;
  }
  
  .print-header {
    text-align: center;
    margin-bottom: 20pt;
    font-size: 16pt;
    font-weight: bold;
    border-bottom: 2pt solid black;
    padding-bottom: 10pt;
  }
  
  .print-entry {
    margin-bottom: 20pt;
    padding: 10pt;
    border: 1pt solid #ccc;
    page-break-inside: avoid;
  }
  
  .print-entry-header {
    font-weight: bold;
    font-size: 14pt;
    margin-bottom: 8pt;
    border-bottom: 1pt solid #999;
    padding-bottom: 4pt;
  }
  
  .print-field {
    margin-bottom: 6pt;
  }
  
  .print-field-label {
    font-weight: bold;
    display: inline-block;
    width: 100pt;
  }
  
  .print-notes {
    margin-top: 8pt;
    padding: 6pt;
    background: #f5f5f5;
    border-left: 3pt solid #999;
  }
  
  /* Force page breaks between students if needed */
  .student-section {
    page-break-before: auto;
  }
  
  /* Ensure good printing */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Print preview styles for screen */
.print-preview {
  display: none;
  max-width: 8.5in;
  margin: 20px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.4;
}

.print-preview.show {
  display: block;
}
