/* ==========================================================================
   CLASS MANAGER - PRINT STYLESHEET
   Định dạng chuẩn đẹp khi in ra giấy A4 hoặc xuất file PDF
   ========================================================================== */

@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 9pt;
  }

  /* Hide navigation, toolbar, modals and buttons */
  .app-header,
  .matrix-toolbar,
  .status-popover,
  .modal-backdrop,
  .toast-container,
  .btn,
  .col-actions,
  .session-actions-btn {
    display: none !important;
  }

  .app-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .class-banner {
    background: #1e3a8a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: white !important;
    border-radius: 0 !important;
    padding: 10px 15px !important;
  }

  .banner-month {
    color: #bfdbfe !important;
  }

  .banner-class-name {
    color: white !important;
    font-size: 1.3rem !important;
  }

  .banner-teacher {
    color: #e0e7ff !important;
  }

  .banner-guide {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #f1f5f9 !important;
    font-size: 7.5pt !important;
  }

  .stats-bar {
    border-left: none !important;
    border-right: none !important;
    padding: 8px 15px !important;
  }

  .matrix-wrapper {
    box-shadow: none !important;
    border-radius: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .matrix-table {
    border: 1px solid #000 !important;
    font-size: 8pt !important;
  }

  .matrix-table th,
  .matrix-table td {
    border: 1px solid #94a3b8 !important;
    height: 24px !important;
  }

  .col-sticky-stt,
  .col-sticky-name {
    position: static !important;
    box-shadow: none !important;
  }

  /* Preserve cell background colors */
  .cell-at[data-status="C"],
  .cell-at[data-status="M"],
  .cell-at[data-status="L"],
  .cell-at[data-status="K"],
  .cell-hw[data-status="HT"],
  .cell-hw[data-status="TH"],
  .cell-hw[data-status="KH"] {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
