/* Word-aligned document preview. Screen-only: export logic remains untouched. */
@media screen {
    .session-sheet {
        max-width: 820px;
        padding: 18px 20px 24px;
        overflow: visible;
        font-family: var(--session-font-family, Arial, sans-serif) !important;
    }

    .session-sheet .official-header-table {
        margin-bottom: 4px;
    }

    .session-sheet .official-header-logos-list {
        min-height: 64px;
        margin: 0 0 4px;
        padding: 0;
        border-bottom: 0;
        justify-content: center;
    }

    .session-sheet .official-logo-item.minedu-header-artwork {
        width: 100%;
        padding: 0;
        border: 0;
        cursor: default;
    }

    .session-sheet .minedu-header-artwork .official-logo-img {
        width: min(100%, 520px);
        max-width: 520px;
        height: auto;
        max-height: 104px;
        object-fit: contain;
    }

    .session-sheet .session-title-bar-official {
        margin: 3px 0 7px;
        font-size: 12px;
        letter-spacing: 0;
    }

    .session-sheet .session-info-grid {
        table-layout: fixed;
        margin-bottom: 8px;
    }

    .session-sheet .session-info-grid td {
        min-width: 0;
        width: auto;
        padding: 5px 6px !important;
        font-size: 8px !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere;
    }

    .session-sheet .session-info-grid .label-cell {
        white-space: normal;
        letter-spacing: 0;
        text-transform: none;
    }

    .session-sheet .pc-table {
        margin-top: 8px !important;
        margin-bottom: 8px;
    }

    .session-sheet .pc-table td {
        padding: 5px 7px !important;
        font-size: 8.5px !important;
        line-height: 1.25 !important;
    }

    .session-sheet .subsection-title-bar {
        margin: 8px 0 0;
        padding: 5px 7px;
        border: 1px solid var(--theme-border-color, #000);
        border-bottom: 0;
        background: var(--theme-label-bg, #BDD6EE);
        font-size: 8.5px;
        letter-spacing: 0;
        text-align: center;
    }

    .session-sheet .content-table {
        table-layout: fixed;
        margin-bottom: 8px;
    }

    .session-sheet .content-table th,
    .session-sheet .content-table td {
        padding: 5px 6px !important;
        font-size: 8.5px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere;
    }

    .session-sheet .content-table .label-cell {
        width: 122px !important;
        white-space: normal;
        text-transform: none;
        letter-spacing: 0;
    }

    .session-sheet .propositos-table th {
        font-size: 7.5px !important;
        letter-spacing: 0;
    }

    .session-sheet .session-list {
        padding-left: 12px;
    }

    .session-sheet .session-list li {
        margin-bottom: 2px;
    }

    .session-sheet .ct-table,
    .session-sheet .enfoques-table,
    .session-sheet .recursos-table,
    .session-sheet .momentos-table {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .session-sheet .momentos-table th,
    .session-sheet .momentos-table td {
        font-size: 8.5px !important;
        line-height: 1.3 !important;
        padding: 5px 6px !important;
    }

    .session-sheet .checklist-preview-section {
        width: 100%;
        box-sizing: border-box;
        margin: 28px 0 0;
        padding: 18px 0 28px;
        background: #fff;
        border-top: 1px solid #d1d5db;
    }

    .session-sheet .checklist-official-header {
        display: flex;
        justify-content: center;
        min-height: 64px;
        margin-bottom: 4px;
    }

    .session-sheet .checklist-official-header img {
        width: min(100%, 620px);
        height: auto;
        max-height: 104px;
        object-fit: contain;
    }

    .session-sheet .checklist-title-bar {
        margin-bottom: 12px;
        padding: 8px 12px;
        background: #2c3e50;
        color: #fff;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
    }

    .session-sheet .checklist-meta-table,
    .session-sheet .checklist-grid {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        color: #000;
    }

    .session-sheet .checklist-meta-table {
        margin-bottom: 12px;
    }

    .session-sheet .checklist-meta-table th,
    .session-sheet .checklist-meta-table td {
        border: 1px solid #000;
        padding: 6px 8px;
        font-size: 8.5px;
        text-align: left;
    }

    .session-sheet .checklist-meta-table th {
        width: 14%;
        background: var(--theme-accent-soft, #F7CAAC);
    }

    .session-sheet .checklist-meta-table td {
        width: 36%;
        background: var(--theme-value-bg, #F2F2F2);
    }

    .session-sheet .checklist-grid th,
    .session-sheet .checklist-grid td {
        border: 1px solid #000;
        box-sizing: border-box;
    }

    .session-sheet .checklist-number-header,
    .session-sheet .checklist-number-cell {
        width: 34px;
        text-align: center;
        font-weight: 700;
    }

    .session-sheet .checklist-student-header,
    .session-sheet .checklist-student-cell {
        width: 210px;
        text-align: left;
        padding: 4px 7px;
    }

    .session-sheet .checklist-number-header,
    .session-sheet .checklist-student-header {
        background: #FFF2CC;
        font-size: 8px;
    }

    .session-sheet .checklist-criterion {
        height: 128px;
        padding: 6px 5px;
        vertical-align: top;
        text-align: center;
        font-size: 7.5px;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .session-sheet .checklist-criterion-prefix {
        display: block;
        margin-bottom: 2px;
        font-weight: 800;
    }

    .session-sheet .checklist-answer {
        width: calc((100% - 244px) / (var(--checklist-criteria) * 2));
        padding: 4px 2px;
        text-align: center;
        font-size: 7.5px;
    }

    .session-sheet .checklist-tone-0 { background: #D9E1F2; }
    .session-sheet .checklist-tone-1 { background: #FADBD8; }
    .session-sheet .checklist-tone-2 { background: #D5F5E3; }
    .session-sheet .checklist-tone-3 { background: #FCF3CF; }
    .session-sheet .checklist-tone-4 { background: #FDE8D8; }
    .session-sheet .checklist-tone-5 { background: #E8DAEF; }

    .session-sheet .checklist-student-row td {
        height: 23px;
        font-size: 8px;
        background: #fff;
    }

    .session-sheet .checklist-mark-cell {
        padding: 0;
    }
}

@media screen and (max-width: 900px) {
    .session-sheet .checklist-preview-section {
        padding-inline: 0;
    }

    .session-sheet .checklist-student-header,
    .session-sheet .checklist-student-cell {
        width: 150px;
    }
}
