/* 课间 · 打印版课表（A4 纵向，黑白可辨） */
@media print {
  @page { size: A4 portrait; margin: 10mm; }

  html, body { background: #fff !important; }
  body * { box-shadow: none !important; text-shadow: none !important; background-image: none !important; }

  .shell > aside,
  .skip-link, #boot, #toast, dialog, footer,
  .day-feature, .tool-directory, .week-controls, #add,
  .settings-area, .week-summary, .week-progress { display: none !important; }

  .shell { display: block !important; }
  #main-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }

  header { padding: 0 !important; margin: 0 0 4mm 0 !important; border: 0 !important; }
  #title { font-size: 15pt !important; color: #000 !important; }

  .week-top { margin: 0 0 3mm 0 !important; display: block !important; }
  .week-caption { display: block !important; }
  .week-caption h2 { font-size: 13pt !important; color: #000 !important; }
  .week-caption > span { display: block !important; color: #333 !important; font-size: 9pt !important; margin-top: 1mm; }

  .schedule-scroll {
    overflow: visible !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  .schedule-board {
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: 12mm repeat(7, 1fr) !important;
  }
  .schedule-corner, .schedule-head {
    position: static !important;
    height: 11mm !important;
    background: #efefef !important;
    color: #000 !important;
    border-bottom: 1px solid #999 !important;
  }
  .schedule-head > span { color: #333 !important; font-size: 8pt !important; }
  .schedule-head > b { font-size: 11pt !important; color: #000 !important; background: none !important; width: auto !important; height: auto !important; }
  .schedule-head > small { color: #555 !important; font-size: 6pt !important; }
  .schedule-head.is-today { background: #e6e6e6 !important; }

  .schedule-times, .schedule-day { grid-template-rows: repeat(var(--period-count), 8.6mm) !important; }
  .schedule-times { position: static !important; background: #fff !important; }
  .period { border-bottom: 1px solid #ccc !important; }
  .period b { font-size: 7pt !important; }
  .period small { display: none !important; }
  .schedule-day { background: #fff !important; border-left: 1px solid #ccc !important; }
  .schedule-rule { border-bottom: 1px solid #ccc !important; }
  .session-break { border-top: 2px solid #999 !important; }

  .schedule-course {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #444 !important;
    border-top: 2px solid #000 !important;
    border-radius: 0 !important;
    margin: 0.8mm !important;
    padding: 0.8mm !important;
    transform: none !important;
    filter: none !important;
    gap: 0.5mm !important;
  }
  .schedule-course strong { font-size: 6.5pt !important; line-height: 1.25 !important; color: #000 !important; }
  .schedule-room { font-size: 6pt !important; color: #222 !important; }
  .schedule-detail { font-size: 5.5pt !important; opacity: 1 !important; color: #444 !important; margin-top: auto !important; }
  .schedule-course em { font-size: 5.5pt !important; }
  .schedule-course.has-notes::before { display: none !important; }
}
