/* 列印樣式 */
#printContainer {
    display: none;
}

@media print {
    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-container,
    .config-panel,
    .btn-collapse-config,
    .label-preview-panel,
    .list-container,
    .toast,
    .modal-overlay,
    .template-panel,
    #shortcutBar,
    #welcomeOverlay {
        display: none !important;
    }

    #printContainer {
        display: block !important;
    }

    .print-page {
        page-break-after: always;
        display: grid !important;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .print-page:last-child {
        page-break-after: avoid;
    }

    .print-cell {
        padding: 4mm 5mm;
        display: flex;
        flex-direction: column;
        overflow: hidden !important;
        box-sizing: border-box;
        border: none !important;
        position: relative;
        height: 100% !important;
        max-height: 100% !important;
        break-inside: avoid;
        width: 100%;
        min-height: 0;
        min-width: 0;
    }

    .print-cell .print-id {
        font-weight: bold;
        margin-bottom: 2mm;
        flex-shrink: 0;
        line-height: 1.2;
    }

    .print-cell .print-comment {
        word-break: break-all;
        white-space: pre-wrap;
        overflow: hidden !important;
        flex: 1;
        max-height: 100%;
        width: 100%;
        min-height: 0;
        min-width: 0;
    }

    /* 印章在列印時也要顯示 */
    .print-cell img {
        max-width: 100%;
        max-height: 100%;
    }
}

/* 給學生的修改單：另印 A4，每位一塊、虛線剪開 */
@media print {
    .rev-sheet { break-inside: avoid; page-break-inside: avoid; border-bottom: 0.3mm dashed #999; padding: 4mm 2mm 5mm; font-family: 'Noto Serif TC', serif; font-size: 11.5pt; line-height: 1.7; color: #222; }
    .rev-sheet-h { font-size: 12.5pt; margin-bottom: 2mm; }
    .rev-sheet-h span { font-size: 10.5pt; color: #555; }
    .rev-sheet ol { margin: 0; padding-left: 6mm; }
    .rev-sheet li { margin-bottom: 2.5mm; }
    .rev-sheet-where { font-weight: bold; }
}
