body.theme-fresk.path-mod-quiz {
    #page-content {
        #region-main-box {
            #region-main {
                #responseform,
                .questionflagsaveform {
                    .que {
                        display: flex;
                        flex-flow: row nowrap;
                        justify-content: flex-start;
                        align-items: flex-start;
                        .info {
                            max-width: 195px;
                            width: 100%;
                            float: unset !important;
                            background: white;
                            border: none;
                            box-shadow: 0 0 10px rgb(0 0 0 / 10%);
                            border-radius: 8px;
                            padding: 1em;
                            .state {
                                padding: 3px;
                                border-radius: 15px;
                                width: 50%;
                                text-align: center;
                                font-size: 12px;
                                margin-top: 1.5em;
                                margin-bottom: 1.5em;
                            }
                            .no {
                                font-size: 18px;
                                color: $graytext;
                                .qno {
                                    font-size: 18px;
                                    color: $graytext;
                                }
                            }
                        }
                        .content {
                            margin: 0 0 0 10px;
                            background: white;
                            border: none;
                            box-shadow: 0 0 10px rgb(0 0 0 / 10%);
                            border-radius: 8px;
                            width: 100%;
                            padding: 1em;
                            .formulation {
                                background-color: white;
                                margin-bottom: 0;
                                .accesshide {
                                    font-size: 18px;
                                    color: $graytext;
                                }
                                .qtext {
                                    font-size: 14px;
                                    color: $graytext;
                                    h1, h2, h3, h4 {
                                        font-size: 18px;
                                        color: $graytext;
                                    }
                                    p {
                                        font-size: 14px;
                                        color: $graytext;
                                    }
                                }
                                .ablock {
                                    .prompt,
                                    .answer {
                                        font-size: 14px;
                                        color: $graytext;
                                        input[size],
                                        select {
                                            width: 100% !important;
                                        }
                                        label,
                                        p {
                                            font-size: 14px;
                                            color: $graytext;
                                        }
                                        .incorrect {
                                            i.icon {
                                                color: $incorrect;
                                            }
                                        }
                                        .correct {
                                            i.icon {
                                                color: $correct;
                                            }
                                        }
                                        .incorrect + i.icon {
                                            color: $incorrect;
                                        }
                                        .correct + i.icon {
                                            color: $correct;
                                        }
                                    }
                                    label {
                                        a.btn-link {
                                            font-size: 14px;
                                            color: $secondary;
                                            &:hover {
                                                color: $primary;
                                                text-decoration: none;
                                            }
                                        }
                                    }
                                }
                                .validationerror {
                                    font-size: 14px;
                                }
                            }
                            .outcome {
                                background-color: #fff7dd;
                                .feedback {
                                    font-size: 14px;
                                }
                            }
                        }
                        &.incorrect {
                            .info {
                                .state {
                                    background-color: $incorrect;
                                }
                            }
                        }
                        &.correct {
                            .info {
                                .state {
                                    background-color: $correct;
                                }
                            }
                        }
                        &.notyetanswered,
                        &.answersaved {
                            .info {
                                .state {
                                    background-color: $notyetanswered;
                                }
                            }
                        }
                        &.partiallycorrect,
                        &.complete {
                            .info {
                                .state {
                                    background-color: $partiallycorrect;
                                }
                            }
                        }
                        &.partiallycorrect,
                        &.notyetanswered,
                        &.answersaved {
                            .info {
                                .state {
                                    width: 100%;
                                }
                            }
                        }
                    }
                }
                .table-responsive {
                    margin-top: 1em;
                    padding: 1.5em;
                    background: white;
                    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
                    border-radius: 8px;

                }
            }
        }
    }
    &#page-mod-quiz-review {
        #page-content {
            #region-main-box {
                #region-main {
                    [role="main"] {
                        .generaltable.quizreviewsummary {
                            tbody {
                                tr {
                                    .cell {
                                        background-color: white;
                                        padding: .5em;
                                        text-align: left !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    #block-region-side-pre {
        #mod_quiz_navblock {
            .card-body {
                .card-text {
                    #user-picture {
                        display: none;
                    }
                    .qn_buttons {
                        color: $graytext;
                        font-size: 14px;
                        &:hover {
                            color: $secondary;
                            text-decoration: none;
                        }
                        .qnbutton {
                            color: $graytext !important;
                            padding-top: 4px;
                            &:hover {
                                text-decoration: none;
                            }
                            .trafficlight {
                                background-color: #f0f0f0;
                                height: 12px;
                                width: 79%;
                                margin: 25px auto;
                            }
                        }
                        .qnbutton.answersaved .trafficlight {
                            background-color: $primary !important;
                        }
                        .qnbutton.thispage {
                            .thispageholder {
                                border: 1px solid $graytext !important;
                            }
                        }
                        .qnbutton.requiresgrading {
                            .trafficlight {
                                background-color: #f0f0f0 !important;
                            }
                        }
                        .qnbutton.correct {
                            .trafficlight {
                                background-color: #5febc9 !important;
                            }
                        }
                        .qnbutton.incorrect {
                            .trafficlight {
                                background-color: #ff4e58 !important;
                            }
                        }
                        .othernav {
                            .singlebutton,
                            .endtestlink {
                                font-size: 14px;
                            }
                        }
                    }
                }
            }
        }
    }
}
@media (max-width: 850px) {
    body#page-mod-quiz-attempt.theme-fresk.path-mod-quiz {
        #page.drawers #region-main {
            #responseform {
                .que {
                    flex-direction: column !important;
                    .info {
                        max-width: none !important;
                        width: 100%;
                    }
                    .content {
                        margin-left: 0 !important;
                        >div {
                            padding: 0 !important;
                        }
                    }
                }
            }
        }
    }
}

body#page-question-edit.theme-fresk.path-question {
    #topofscroll,
    #page-header {
        max-width: none !important;
    }
    #page .courseformatheader {
        max-width: none !important;
        padding-inline: 58px !important;
    }
    .categoryquestionscontainer {
        overflow: visible !important;
    }
}

body#page-mod-quiz-report.theme-fresk-limitedwidth {
    #page.drawers .main-inner{
        max-width: 100% !important;
        .secondary-navigation {
            margin: 1rem auto;
            max-width: 950px;
        }
        #region-main-box {
            width: 94.5vw;
        }
    }
}

body.theme-fresk.path-mod-quiz {
    #page-content {
        #region-main-box {
            #region-main {
                .questionflagsaveform {
                    .que {
                        .content {
                            .outcome {
                                margin-top: 12px;
                            }
                        }
                    }
                }
                .badge {
                    margin-top: 8px;
                }
            }
        }
    }
}