/* =========================================================
   EduPro grading page scroll fix
   - Không đụng sidebar.
   - Cho trang chấm bài cuộn ổn định trên PC/laptop.
   - Cột danh sách và cột chi tiết có scroll riêng khi nội dung dài.
   ========================================================= */

body.page-template-giao-vien-cham-bai-chua-cham,
body.page-template-giao-vien-cham-bai-da-cham {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.page-template-giao-vien-cham-bai-chua-cham .edupro-schedule-pro-layout,
body.page-template-giao-vien-cham-bai-da-cham .edupro-schedule-pro-layout,
body.page-template-giao-vien-cham-bai-chua-cham .edupro-schedule-pro-main,
body.page-template-giao-vien-cham-bai-da-cham .edupro-schedule-pro-main,
body.page-template-giao-vien-cham-bai-chua-cham .edupro-schedule-pro-page,
body.page-template-giao-vien-cham-bai-da-cham .edupro-schedule-pro-page {
    overflow: visible !important;
}

body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-grading-app,
body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-grading-app {
    align-items: stretch !important;
    overflow: visible !important;
    min-height: 0 !important;
}

@media (min-width: 1101px) {
    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-grading-app,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-grading-app {
        height: auto !important;
        min-height: 750px !important;
        max-height: none !important;
    }

    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-left,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-left,
    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-right,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-right {
        min-height: 0 !important;
        height: 750px !important;
        max-height: 750px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-left,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-left {
        overflow: hidden !important;
    }

    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-right,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-right {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-gutter: stable !important;
    }

    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-list,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-gutter: stable !important;
    }

    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-panel-head,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-panel-head,
    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-filters,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-filters {
        flex: 0 0 auto !important;
    }

    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-detail,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-detail {
        flex: 0 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.page-template-giao-vien-cham-bai-chua-cham .edupro-grade-form,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-grade-form {
        padding-bottom: 28px !important;
    }
}

@media (max-width: 1100px) {
    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-left,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-left,
    body.page-template-giao-vien-cham-bai-chua-cham .edupro-essay-right,
    body.page-template-giao-vien-cham-bai-da-cham .edupro-essay-right {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
