@page cycle-portrait { size: A4 portrait; margin: 6mm; }
.print-cycle-sheet { display: none; }
@media print {
  #result-screen.print-has-session.print-cycle-mode > :not(.print-cycle-sheet),
  #result-screen.print-cycle-mode > .print-session-sheet { display: none !important; }
  #result-screen.print-has-session.print-cycle-mode > .print-cycle-sheet { display: block !important; }
  .print-cycle-sheet, .print-cycle-sheet * { box-sizing: border-box; }
  .print-cycle-sheet { page: cycle-portrait; color: #403447; font: 7pt/1.05 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-cycle-header { display: flex; align-items: center; justify-content: space-between; gap: 3mm; min-height: 8mm; padding: 1mm 3mm; margin-bottom: 1mm; border-radius: 2mm; background: linear-gradient(115deg,#fbe7ef,#f4ecfb); }
  .print-cycle-header h1 { border: 0; padding: 0; margin: 0; font-size: 12pt; color: #59465e; white-space: nowrap; }
  .print-cycle-meta { font-size: 8pt; text-align: right; overflow-wrap: anywhere; }
  .print-cycle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1mm 3mm; }
  .print-cycle-page { min-width: 0; break-inside: avoid; }
  .print-cycle-span { font-size: 7pt; font-weight: bold; padding: .3mm 1mm; background: #f3eaf6; }
  .print-cycle-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 7pt; }
  .print-cycle-table th, .print-cycle-table td { border: .12mm solid #e8dfe9; padding: .06mm .25mm; text-align: center; white-space: nowrap; line-height: 1; }
  .print-cycle-table th { background: #f1e9f3; color: #57465f; font-size: 6pt; white-space: normal; overflow-wrap: anywhere; height: 6mm; }
  .print-cycle-table th:nth-child(1) { width: 9%; }
  .print-cycle-table th:nth-child(2) { width: 7.5%; }
  .print-cycle-table th:nth-child(3) { width: 7.3%; }
  .print-cycle-table th:nth-child(4) { width: 6%; }
  .print-cycle-table th:nth-child(5), .print-cycle-table th:nth-child(6) { width: 22.3%; }
  .print-cycle-table th:nth-child(7) { width: 5.4%; }
  .print-cycle-table th:nth-child(8) { width: 8.2%; }
  .print-cycle-table th:nth-child(9) { width: 12%; }
  .print-cycle-table:not(:has(th:nth-child(9))) th:nth-child(5),
  .print-cycle-table:not(:has(th:nth-child(9))) th:nth-child(6) { width: 25.1%; }
  .print-cycle-table:not(:has(th:nth-child(9))) th:nth-child(7) { width: 8.5%; }
  .print-cycle-table:not(:has(th:nth-child(9))) th:nth-child(8) { width: 11.5%; }
  .print-cycle-table .print-cycle-year td { height: 4.25mm; }
  .print-cycle-table .current-year td { background: #f7eaf3; color: #5e4264; font-weight: bold; }
  .print-cycle-notice { margin-top: 1mm; color: #786d7b; font-size: 6.5pt; line-height: 1.1; text-align: center; }
  .print-cycle-table .print-cycle-era td { text-align: left; font-weight: bold; padding: .08mm 1mm; background: #f5f1f6; }
  .print-cycle-table .era-red td { background: #faecef; }
  .print-cycle-table .era-blue td { background: #edf0f8; }
  .print-cycle-table .era-yellow td { background: #f8f2e8; }
}
