/**
 * LEAP UI — question bank wide table: scroll inside the bank, not the whole page.
 */

.questionbankwindow.boxwidthwide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#questionscontainer {
    max-width: 100%;
}

/* Scrollbar wrapper around the question table (Moodle core markup). */
.questionbankwindow .categoryquestionscontainer,
#questionscontainer .categoryquestionscontainer {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.questionbankwindow table.question-bank-table,
#questionscontainer table.question-bank-table,
.questionbankwindow table#categoryquestions,
#questionscontainer table#categoryquestions {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
    overflow-x: visible;
    margin-bottom: 0;
}

/* Keep the main content column from growing past the viewport. */
.path-question-edit #region-main,
#page-mod-quiz-edit #region-main {
    overflow-x: hidden;
    max-width: 100%;
}
