.path-mod-caces #filterform {
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-bottom: 20px;
    min-height: 20px;
    padding: 9px;
}

.path-mod-caces #filterform blockquote {
    border-color: rgba(0, 0, 0, 0.15);
}

.path-mod-caces #filterform .fitem {
    display: inline-block;
    line-height: 40px;
    margin-right: .3em;
    white-space: nowrap;
}

.path-mod-caces #filterform .fitem label {
    display: inline;
    line-height: 20px;
    padding-right: .3em;
}

.path-mod-caces #filterform .fitem:before,
.path-mod-caces #filterform .fitem:after {
    display: inline;
}

.path-mod-caces #filterform div,
.path-mod-caces #filterform fieldset {
    clear: none;
    display: inline;
    float: none;
}

.path-mod-caces input[type="checkbox"].toggle label {
    cursor: pointer;
    position: relative;
    user-select: none;
    -moz-user-select: none;
}

.path-mod-caces input[type="checkbox"].toggle {
    display: none;
}

.path-mod-caces input[type="checkbox"].toggle + a,
.path-mod-caces input[type="checkbox"].toggle + label a {
    background: #eee;
    border-bottom: 2px solid darkgray;
    border-radius: 4px;
    display: inline-block;
    margin-right: 5px;
    padding: 5px;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.path-mod-caces input[type="checkbox"].toggle:checked + a,
.path-mod-caces input[type="checkbox"].toggle:checked + label a {
    border-bottom: 2px solid #1177d1;
    color: #1177d1;
    display: inline-block;
    transition: all 0.4s ease;
}

.path-mod-caces #page .quizattemptsummary td p {
    margin-top: 0;
}

.path-mod-caces table.quizattemptsummary tr.bestrow td {
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.path-mod-caces table.quizattemptsummary .noreviewmessage {
    color: gray;
}

.path-mod-caces .generaltable.quizattemptsummary {
    margin-left: auto;
    margin-right: auto;
}

.path-mod-caces .statedetails {
    display: block;
    font-size: 0.7em;
}

.path-mod-caces .mod-caces-attempt-nav .col-md-4 {
    box-sizing: border-box;
    float: left;
    width: 33.33333%;
}

.path-mod-caces .mod-caces-attempt-nav:after {
    display: table;
    clear: both;
    content: '';
}

.path-mod-caces .error {
    color: #f00;
    font-weight: bold;
}

.path-mod-caces .mod-caces-summary-highlight {
    background-color: #d9edf7;
    font-weight: bold;
}

.path-mod-caces .reportquiz_total_heading {
    border-bottom: 1px solid #e5e5e5;
}

.path-mod-caces .mod_quiz_edit_forms {
    display: none;
}

.path-mod-caces .question-approved {
    color: #0a0;
}

.path-mod-caces .question-unapproved {
    color: #7b1400;
}

.path-mod-caces table#categoryquestions {
    table-layout: auto;
}

.path-mod-caces #categoryquestions .header {
    text-align: left;
    white-space: nowrap;
}

.path-mod-caces #categoryquestions th.checkbox,
.path-mod-caces #categoryquestions td.checkbox {
    padding-left: 10px;
    padding-right: 7px;
}

.path-mod-caces #categoryquestions .qtype {
    width: auto;
}

.path-mod-caces #categoryquestions td.state {
    width: 28px;
    text-align: center;
    padding: 0;
}

.path-mod-caces #categoryquestions .questionname {
    min-width: 180px;
}

.path-mod-caces #categoryquestions .iconcol {
    width: 12px;
}

.path-mod-caces #categoryquestions .rates,
.path-mod-caces #categoryquestions .difficultylevel,
.path-mod-caces #categoryquestions .attempts {
    width: 115px;
}

.path-mod-caces #categoryquestions .tag {
    width: 12ch;
}

.path-mod-caces #categoryquestions th.attempts .sorters,
.path-mod-caces #categoryquestions th.difficultylevel .sorters,
.path-mod-caces #categoryquestions th.rates .sorters {
    font-size: .8em;
    font-weight: 400;
}

.path-mod-caces #categoryquestions th .sorters {
    font-size: 0.8em;
    font-weight: normal;
}

.path-mod-caces #categoryquestions th {
    font-weight: 400;
}

.path-mod-caces #categoryquestions td {
    vertical-align: inherit;
}

.path-mod-caces #categoryquestions td,
.path-mod-caces #categoryquestions th {
    padding: 0.2em;
}

.path-mod-caces .question-bank-table td.modifiername span.date,
.path-mod-caces .question-bank-table td.creatorname span.date {
    font-weight: normal;
    font-size: 0.8em;
}

.path-mod-caces #categoryquestions td.questionname,
.path-mod-caces #categoryquestions td.creatorname {
    white-space: normal;
    line-height: 1em;
}
.path-mod-caces #categoryquestions td.state .icon,
.path-mod-caces #categoryquestions td.qtype .icon {
    margin-right: 0;
}

.path-mod-caces .caces_behaviour {
    margin: 0 0 10px 5px;
}

.path-mod-caces .caces_behaviour label,
.path-mod-caces .im-feedback .caces_behaviour label,
.path-mod-caces .caces_behaviour span.label {
    margin-right: 15px;
}

.path-mod-caces .caces_behaviour .rate {
    margin-top: 20px;
    margin-bottom: 20px;
}

.path-mod-caces .caces_behaviour textarea {
    box-sizing: border-box;
    height: 100px;
    width: 100%;
}

.path-mod-caces .caces_behaviour .comment_list > div.caces-comment-container {
    border-bottom: 1px solid #fff;
    border-top: 1px solid #bfe2ef;
    margin: 15px 0;
    position: relative;
    padding: 0;
}

.path-mod-caces .caces_behaviour .comment_list div span.remove_action {
    cursor: pointer;
    position: absolute;
    right: 0;
    text-decoration: underline;
}

.path-mod-caces .caces_behaviour .comment_list div span.remove_action:hover {
    text-decoration: none;
}

.path-mod-caces .caces_behaviour .comment_list .editor_atto_content_wrap.no-content .editor_atto_content p {
    margin: 0; /** When in no content state, p has no margin. */
}

.path-mod-caces .caces_behaviour .rate .rating {
    cursor: not-allowed;
    display: inline-block;
    unicode-bidi: bidi-override;
    height: 0;
    vertical-align: text-top;
}

.path-mod-caces .caces_behaviour .rate .error {
    margin-top: 5px;
}

.path-mod-caces .caces_behaviour .star,
.path-mod-caces .caces_behaviour .rate .rating:hover .rateable.star-empty {
    background-image: url([[pix:mod_caces|star_icon]]);
}

.path-mod-caces .caces_behaviour .star,
.path-mod-caces .caces_behaviour .star-empty {
    display: inline-block;
    height: 20px;
    width: 20px;
}

.path-mod-caces .caces_behaviour .rate .rating .rateable {
    cursor: pointer;
}

.path-mod-caces .caces_behaviour .star-empty,
.path-mod-caces .caces_behaviour .rate .rating .rateable:hover ~ .rateable.star-empty,
.path-mod-caces .caces_behaviour .rate .rating .rateable.star-empty:hover ~ .rateable.star-empty {
    background-image: url([[pix:mod_caces|star_empty_icon]]);
}

.path-mod-caces .change-question-state {
    display: block;
}

.path-mod-caces .change-question-state button#change_state {
    margin-left: 10px;
}

.path-mod-caces .change-question-state button#change_state {
    margin-right: 10px;
}

.path-mod-caces .pagination .form-control {
    width: 60px;
}

.path-mod-caces .modulespecificbuttonscontainer input.btn {
    margin-right: 5px;
}

.path-mod-caces #mod_caces_statblock .report_more_url,
.path-mod-caces #mod_caces_rankingblock .report_more_url {
    text-align: right;
}

.path-mod-caces #mod_caces_statblock .card-text.content > div,
.path-mod-caces #mod_caces_rankingblock .card-text.content > div {
    display: flex;
    justify-content: space-between;
}

.path-mod-caces .mod_caces_submission_info {
    margin-top: 10px;
    margin-bottom: 10px;
}

/** Student quiz comment */
.path-mod-caces .caces-comment-container {
    padding-top: 8px;
    padding-left: 10px;
    padding-right: 12px;
}

.path-mod-caces .caces-comment-container .caces-comment-activity-icon {
    float: left;
    width: 36px;
    display: inline-block;
    padding-top: 5px;
}

.path-mod-caces .caces-comment-container .caces-comment-unavailable {
    margin: 10px 0;
    border: 1px dotted #888;
    background: #f8f8f8;
    padding: 10px;
}

.path-mod-caces .caces-comment-container .caces-comment-activity-icon > img.icon {
    width: 32px;
    height: 32px;
}

/* Atto in ie need the scroll and max height. */
.ie .path-mod-caces .caces-comment-container .editor_atto_content {
    max-height: 148px;
    overflow-y: scroll;
}

.path-mod-caces .caces-comment-container .caces-comment-subject {
    font-size: 1.14285em;
    color: #000;
    font-weight: bold;
    padding-top: 10px;
}

.path-mod-caces .caces-comment-container .caces-comment-introduction {
    display: inline-block;
    color: #000;
    padding-top: 2px;
}

.path-mod-caces .caces-comment-container .caces-comment-postform {
    margin-top: 20px;
    clear: both;
}

.path-mod-caces .caces-comment-container .editor_atto_content {
    resize: vertical;
    padding: 5px;
}

.path-mod-caces .caces-comment-container .caces-comment-postform input.disabled,
.path-mod-caces .caces-comment-container .caces-comment-postfragmentform input.disabled {
    cursor: default;
    background: #f0f0f1;
    color: #676463;
    border-color: #d4d2d2;
    opacity: 1.0;
    pointer-events: none;
    font-weight: normal;
}

.path-mod-caces .caces-comment-container .caces-comment-postform .editor_atto_toolbar {
    display: none;
}

.path-mod-caces .caces-comment-container .editor_atto_content_wrap {
    position: relative;
}

.path-mod-caces .caces-comment-container .editor_atto_content_wrap:before {
    content: attr(data-placeholder);
    color: gray;
    position: absolute;
    top: 5px;
    left: 5px;
    pointer-events: none;
}

.path-mod-caces .caces-comment-container .caces_customeditor .editor_atto_notification,
.path-mod-caces .caces-comment-container .caces-comment-postform .editor_atto_notification {
    position: relative;
    bottom: 0;
    height: auto;
}

.path-mod-caces .caces-comment-container .editor_atto_content {
    border: 1px solid #bbb;
}

.path-mod-caces .caces-comment-container .caces-comment-expand,
.path-mod-caces .caces-comment-container .caces-comment-collapse {
    color: #fff;
    padding: 5px 36px 5px 10px;
    border-radius: 3px 3px 0 0;
    border: 1px solid #1177d1;
    background-color: #1177d1;
    font-size: 1em;
    display: none;
    margin: 0;
    position: relative;
    background-image: none;
}

.path-mod-caces .caces-comment-container .caces-comment-expand::after {
    content: url([[pix:mod_caces|switch_plus_white]]);
    position: absolute;
    right: 10px;
    top: 7px;
    width: 16px;
    display: block;
}

.path-mod-caces .caces-comment-container .caces-comment-collapse::after {
    content: url([[pix:mod_caces|switch_minus_white]]);
    position: absolute;
    right: 10px;
    top: 7px;
    width: 16px;
    display: block;
}

.path-mod-caces .caces-comment-container .caces-comment-expand:hover,
.path-mod-caces .caces-comment-container .caces-comment-expand:active,
.path-mod-caces .caces-comment-container .caces-comment-expand:focus,
.path-mod-caces .caces-comment-container .caces-comment-collapse:hover,
.path-mod-caces .caces-comment-container .caces-comment-collapse:active,
.path-mod-caces .caces-comment-container .caces-comment-collapse:focus {
    background-color: #fff;
    color: #1177d1;
    cursor: pointer;
    border: 1px solid #1177d1;
}

.path-mod-caces .caces-comment-container .caces-comment-expand:hover::after,
.path-mod-caces .caces-comment-container .caces-comment-expand:active::after,
.path-mod-caces .caces-comment-container .caces-comment-expand:focus::after {
    content: url([[pix:mod_caces|switch_plus]]);
}

.path-mod-caces .caces-comment-container .caces-comment-expand[disabled]::after,
.path-mod-caces .caces-comment-container .caces-comment-expand[disabled]:hover::after {
    content: url([[pix:mod_caces|switch_plus_white]]);
}

.path-mod-caces .caces-comment-container .caces-comment-collapse:hover::after,
.path-mod-caces .caces-comment-container .caces-comment-collapse:active::after,
.path-mod-caces .caces-comment-container .caces-comment-collapse:focus::after {
    content: url([[pix:mod_caces|switch_minus]]);
}

.path-mod-caces .caces-comment-container .caces-comment-collapse[disabled]::after,
.path-mod-caces .caces-comment-container .caces-comment-collapse[disabled]:hover::after {
    content: url([[pix:mod_caces|switch_minus_white]]);
}

.path-mod-caces .caces-comment-container .caces-comment-expand[disabled],
.path-mod-caces .caces-comment-container .caces-comment-expand[disabled]:hover,
.path-mod-caces .caces-comment-container .caces-comment-collapse[disabled],
.path-mod-caces .caces-comment-container .caces-comment-collapse[disabled]:hover {
    background: #f0f0f1;
    color: #676463;
    border-color: #d4d2d2;
    opacity: 1.0;
}

.path-mod-caces .caces-comment-container .caces-comment-postcount {
    display: inline-block;
    font-size: 0.9375em;
    margin: auto 0 auto 10px;
}

/* Style the comment element. */
.path-mod-caces .caces-comment-container .caces-comment-item {
    border-top: 1px solid #bfe2ef;
}

.path-mod-caces .caces-comment-container .caces-comment-item .caces-comment-item-outerbox {
    padding-top: 12px;
    padding-bottom: 12px;
}

.path-mod-caces .caces-comment-container .caces-comment-item .caces-comment-item-outerbox.deleted-comment {
    margin-top: 20px;
    margin-bottom: 20px;
}

.path-mod-caces .caces-comment-container .caces-comment-item.highlighted {
    background: #def2f8;
}

.path-mod-caces .caces-comment-container .caces-comment-item.highlighted .caces-comment-replies {
    background: #fff;
}

.path-mod-caces .caces-comment-container .caces-comment-author {
    line-height: 1;
    color: #000;
    font-size: 1em;
    padding-right: 20px;
    position: relative;
}

.path-mod-caces .caces-comment-container .caces-comment-expandlink,
.path-mod-caces .caces-comment-container .caces-comment-collapselink {
    position: absolute;
    right: 0;
}

.path-mod-caces .caces-comment-container .caces-comment-text,
.path-mod-caces .caces-comment-container .caces-comment-text-deleted {
    background-color: #f4fafc;
    min-height: 70px;
    margin-right: 26px;
    font-size: 1em;
    color: #000;
    padding: 2px 8px 2px 8px;
    margin-top: 10px;
    overflow: auto;
}

.path-mod-caces .caces-comment-container .caces-comment-text .caces-comment-history {
    color: #b1b1b1;
    font-style: italic;
}

.path-mod-caces .caces-comment-container .caces-comment-text .caces-comment-history a {
    color: #45a4dc;
    text-decoration: none;
}

.path-mod-caces .caces-comment-container .caces-comment-text-deleted {
    color: #a5a5a5;
    background-color: #fff;
}

.path-mod-caces .caces-comment-container .caces-comment-text-deleted .caces-comment-delete-info {
    color: #000;
}

.path-mod-caces .caces-comment-container .caces-comment-replies .caces-comment-postfooter {
    text-align: left;
}

.path-mod-caces .caces-comment-container .caces-comment-postfooter {
    text-align: right;
    display: inline-block;
    width: 100%;
    padding: 12px 0 2px 0;
}

.path-mod-caces .caces-comment-container .caces-comment-postfooter .caces-comment-commands-box > div {
    margin-bottom: 10px;
}

.path-mod-caces .caces-comment-container .caces-comment-commands-buttons {
    display: inline-block;
}

.path-mod-caces .caces-comment-container .caces-comment-commands-buttons button {
    margin-right: 9px;
    line-height: 1;
    height: 28px;
    padding-left: 8px;
    padding-right: 8px;
}

.path-mod-caces .caces-comment-container .caces-comment-totalreply {
    display: inline-block;
    font-size: 1em;
    color: #000;
    line-height: 28px;
}

.path-mod-caces .caces-comment-container .caces-comment-replies {
    position: relative;
}

.path-mod-caces .caces-comment-container .caces-comment-replies .caces-comment-item {
    padding-left: 57px;
}

.path-mod-caces .caces-comment-container .caces-comment-replies .caces-comment-replyicon {
    position: absolute;
    transform: rotate(180deg);
    left: 0;
}

.path-mod-caces .caces-comment-container .caces-comment-replies .caces-comment-replyicon > img {
    padding-right: 0;
}

.path-mod-caces .caces-comment-container .caces-comment-loading {
    display: none;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.path-mod-caces .caces-comment-container .caces-comment-delete-message {
    margin: 20px 0 20px 54px;
}

.path-mod-caces .caces-comment-container .caces-comment-delete-message {
    margin: 20px 0 31px 54px;
    padding-right: 25px;
    position: relative;
}

.path-mod-caces .caces-comment-container .caces-comment-delete-message .caces-comment-expandlink,
.path-mod-caces .caces-comment-container .caces-comment-delete-message .caces-comment-collapselink {
    position: absolute;
    right: 0;
    height: 16px;
}

.path-mod-caces .caces-comment-show-dates {
    border: #9e9e9e 2px solid;
    margin-bottom: 12px;
    margin-top: 6px;
    padding-left: 10px;
    height: 29px;
    padding-top: 5px;
}

.path-mod-caces .caces-comment-container .comment_editor_container .felement {
    width: 100%;
    flex: unset;
    max-width: 100%;
    display: block;
}

.path-mod-caces .caces-comment-container .caces-comment-postfragmentform {
    position: relative;
    background: #fff;
    color: #000;
}

.path-mod-caces .caces-comment-container .caces-comment-postfragmentform .comment-area-form {
    padding-right: 27px;
    margin-left: 54px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.path-mod-caces .caces-comment-container .caces-comment-postfragmentform.edit .comment-area-form {
    margin-left: 0;
}

.path-mod-caces .comment-area-form .buttonar .fitem:not(:first-child) {
    margin-left: 5px;
}

.path-mod-caces .caces-comment-expandlink,
.path-mod-caces .caces-comment-collapselink {
    padding: 0 8px;
}

#page-mod-caces-preview .modal,
#page-mod-caces-attempt .modal {
    background-color: transparent;
}

.path-mod-caces .comment-label-content {
    margin-bottom: 0.5rem;
}

.path-mod-caces .comment-label-content label.add-comment-label {
    margin: 0;
    padding-right: 5px;
}

.path-mod-caces .caces-comment-container .hide-comment-filter {
    display: none;
}

.path-mod-caces .caces-comment-container .no-comment {
    padding: 12px 0;
    margin-top: 35px;
    border-top: 1px solid #bfe2ef;
    display: none;
}

.path-mod-caces .caces-comment-container .comment-errors .comment-error {
    margin-bottom: 1rem;
}

.path-mod-caces div[data-groupname="report-comment-conditions"] span {
    display: block;
}

.path-mod-caces .caces-comment-container .caces-comment-filter-info {
    display: table;
    width: 100%;
}

.path-mod-caces .caces-comment-container .caces-comment-filter-info .caces-comment-expand-section {
    text-align: right;
}

.path-mod-caces .caces-comment-container .caces-comment-filter-info .caces-comment-postcount {
    font-weight: 700;
}

.path-mod-caces .caces-comment-filters .caces-comment-filter-item {
    font-size: 1em;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.path-mod-caces .caces-comment-filters .caces-comment-filter-item span.caces-comment-filter-name {
    padding: 0 5px;
}

.path-mod-caces .caces-comment-filters .caces-comment-filter-item span:hover {
    text-decoration: underline;
}

.path-mod-caces .caces-comment-container .caces-comment-filter .caces-comment-filter-info {
    padding-top: 15px;
}

.path-mod-caces .caces-comment-container .caces-comment-filter-info .filter-item {
    display: table-cell;
}

.path-mod-caces .caces-comment-container .caces-comment-filter-item + .caces-comment-filter-item::before {
    content: "/";
    color: #000;
}

.path-mod-caces .caces-comment-filters .caces-comment-filter-item .caces-comment-filter-type {
    visibility: hidden;
}

.path-mod-caces .caces-comment-filters .caces-comment-filter-item.current .caces-comment-filter-type {
    visibility: visible;
}

.path-mod-caces .caces-comment-container .caces-comment-filter-item > div {
    display: inline-block;
}

.path-mod-caces .caces-comment-container .caces-comment-filter-item .caces-comment-filter-type i {
    vertical-align: text-top;
    margin: 0;
}

.path-mod-caces .caces-comment-container .filter-asc.current .caces-comment-filter-type i::before {
    content: url([[pix:mod_caces|switch_minus]]);
}

.path-mod-caces .caces-comment-container .filter-desc.current .caces-comment-filter-type i::before {
    content: url([[pix:mod_caces|switch_plus]]);
}

.path-mod-caces .caces-comment-container .caces-comment-commands-buttons .caces-comment-btneditreply img,
.path-mod-caces .caces-comment-container .caces-comment-commands-buttons .caces-comment-btnedit img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 9px 0 0;
}

.path-mod-caces span.stat {
    float: right;
    font-size: 100%;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}
.path-mod-caces span.stat.approvals,
.path-mod-caces span.stat.last-attempt-correct {
    color: #000;
    background-color: #28a745;
}
.path-mod-caces span.stat.disapprovals,
.path-mod-caces span.stat.last-attempt-incorrect {
    color: #fff;
    background-color: #dc3545;
}

.path-mod-caces span.stat.changed,
.path-mod-caces span.stat.never-answered {
    color: #212529;
    background-color: #ffc107;
}

.path-mod-caces .caces_behaviour .rate .btn {
    vertical-align: baseline;
}

.path-mod-caces #categoryquestions td.state .icon {
    padding-bottom: 5px;
}

.path-mod-caces #categoryquestions .header.qtype,
.path-mod-caces #categoryquestions .header.state,
.path-mod-caces .caceserrormessage {
    text-align: center;
}

/* Specific CSS override align-items-center, we need to prevent align-items: center in the form-group. */
.path-mod-caces #fgroup_id_rate_grp div.align-items-center,
.path-mod-caces #fgroup_id_rate_grp div.align-items-center,
.path-mod-caces #fgroup_id_difficultylevel_grp div.align-items-center,
.path-mod-caces #fgroup_id_publiccomment_grp div.align-items-center,
.path-mod-caces #fgroup_id_myrate_grp div.align-items-center,
.path-mod-caces #fgroup_id_myattempts_grp div.align-items-center,
.path-mod-caces #fgroup_id_mydifficulty_grp div.align-items-center {
    /* stylelint-disable-next-line declaration-no-important */
    align-items: flex-start !important;
}
/* This css styling won't work in 4.0.x until MDL-75917 is done. */
body.cm-type-caces.path-question-type #fitem_id_status {
    display: none;
}

#page-header {
  display: none !important;
}

#mod_caces_statblock {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e3e3e3;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.circular-chart.green-red .circle.correct {
    stroke: #4caf50;
}

.circular-chart.green-red .circle.incorrect {
    stroke: #f44336;
}

.circular-chart.blue .circle {
    stroke: #2196f3;
}

.percentage {
    fill: #000;
    font-family: Arial, sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
}

.description {
    fill: #000;
    font-family: Arial, sans-serif;
    font-size: 0.2em;
    text-anchor: middle;
}

.score-details {
    font-size: 1em;
    color: #333;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.categoryquestionscontainer {
  display: none;
}



/* Styling for progress bar on the attempt.php page */
#attempt-progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: #e0f7fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#attempt-progress-bar .progress-bar-inner {
    height: 100%;
    background: #4fc3f7;
    width: 0;
    border-radius: 15px;
    transition: width 0.4s ease-in-out;
}

#attempt-progress-bar .progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: black;
}

/* Counter container styling */
.counters-container {
        display: flex;
        justify-content: space-around;
        border-radius: 8px;
	    margin-top: 15px;
    }
.counters-container .counter {
    padding: 10px;
    border-radius: 30px;
    font-weight: bold;
}

.counters-container .counter.correct {
    background-color: #4caf50;
    color: #fff;
}

.counters-container .counter.incorrect {
    background-color: #f44336;
    color: #fff;
}

.que .info{
  display:none
}

.que .content {
  margin: 0 0 0 0 !important;
}


/* Modern Stat Block Styles */
#mod_caces_statblock {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
}

.statblock-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.progress-container {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f0f0f0;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.bg-custom-green {
    background-color: #27e727;
}

.bg-custom-red {
    background-color: #ff4c4c;
}

.bg-custom-grey {
    background-color: #cbcbcb;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    margin: 0 5px;
}

.stat-item.correct {
    background-color: #e0f7e9;
    border: 2px solid #27e727;
    color: #2d7b2d;
}

.stat-item.incorrect {
    background-color: #fbe9e7;
    border: 2px solid #ff4c4c;
    color: #9c2d2d;
}

.stat-item.unanswered {
    background-color: #f0f0f0;
    border: 2px solid #cbcbcb;
    color: #777;
}



.form-check-input.custom-toggle-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d1d1;
    border-radius: 3px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s ease-in-out;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
	margin-top: -3px;
}

.custom-toggle-checkbox:checked {
    background-color: #2196F3; /* Blue background */
    border-color: #2196F3;
    transform: scale(1.1); /* Slightly larger when checked */
}

.custom-toggle-checkbox:focus {
    outline: none;
    border-color: #2196F3;
}

.custom-toggle-checkbox:checked::after {
    content: '';
    position: absolute;
    display: block;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.2s ease-in-out;
}

.custom-toggle-checkbox:checked::after {
    transform: translate(-60%, -60%) rotate(45deg) scale(1);
}

.custom-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ensure two equal columns */
    gap: 10px; /* Adjust gap as needed */
    align-items: center;
	user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.path-mod-caces .custom-toggle-container {
    display: flex;
    flex-wrap: wrap;
    width: 50%;
}

.path-mod-caces .custom-toggle-container > div {
    flex: 1 0 48%; /* Two columns with some space between them */
    margin-bottom: 10px; /* Space between rows */
}

.path-mod-caces .custom-toggle-container > div:nth-child(odd) {
    margin-right: 4%; /* Space between columns */
}

.path-mod-caces .custom-toggle-container > div:nth-child(even) {
    margin-left: 4%; /* Align even elements properly */
}

.centered-message {
    text-align: center;
    margin: 0 auto;
}
.header-with-tutorial {
    display: flex;
    justify-content: flex-end;
}

.tutorial-launch-btn {
    margin-left: auto;
}

.sticky-footer-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #bbb;
    font-size: 14px;
    color: #6c757d;
    z-index: 9999999;
}

.counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}





/* Header Styles */
.results-page .resultspage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 2px solid #007bff; /* Thin blue line */
    color: #656565; /* Header text color */
    background-color: transparent; /* Remove black background */
    border-radius: 10px 10px 0 0;
}

.results-page .resultspage-header h2 {
    margin: 0;
    font-size: 24px;
    color: #656565; /* Header text color */
}

/* Results Container */
.results-page .results-container {
    padding: 20px;
}

.results-page .results-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-page .results-info-columns {
    display: flex;
    width: 100%;
}

.results-page .results-info-column {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    margin-right: 10px;
    box-sizing: border-box; /* Ensures padding is included in width calculation */
}

.results-page .results-info-column:last-child {
    margin-right: 0; /* Remove margin on the last column */
}

.results-page .card-body {
    padding: 20px;
}
.results-page .card {
    padding: 20px;
	border: none !important;
}

.results-page .content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}
.list-group-item.list-group-item-danger.incorrect, 
.list-group-item.list-group-item-success.correct {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
	.results-page .results-info-columns {
        flex-direction: column;
    }

    .results-page .results-info-column {
        margin-right: 0; /* Remove margin for mobile */
        margin-bottom: 10px; /* Add space between columns when stacked */
		padding:0;
		background: white;
	}
.results-page .card{
	padding: 0;
}
.results-page .content{
	padding: 0;
}
.counters-container {
    margin-top: 20px;
}
}

.results-page .counter {
    display: flex;
    font-size: 1em;
    padding: 10px;
    background-color: #fff;
    border-bottom: 2px solid #b9b9b9; /* Add a grey underline */
    margin-bottom: 25px;
	margin-left: -25px;
}

.results-page .counter span {
  font-size: 1em;
  font-weight: 700;
  color: #343a40;
  background: #dfdfdf;
}

.results-page .third-column {
    display: flex;
    justify-content: center;
    align-items: center;
	background: white;
}

.results-page .third-column canvas {
    max-width: 100%;
    height: auto;
}

/* Results List */
.results-page .results-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.results-page .results-list .list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 15px;
    font-size: 1em;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-page .results-list .correct {
    background-color: #d4edda;
    color: #155724;
}

.results-page .results-list .incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

/* No Results */
.results-page .no-results {
    text-align: center;
    padding: 20px;
    background-color: #ffc107;
    border-radius: 10px;
    margin-top: 20px;
}

.results-page .dropdown-icon {
    transition: transform 0.3s;
}

.results-page .openfield.active .dropdown-icon {
    transform: rotate(180deg);
}

.results-page .content.show {
    display: block; /* Display content when the class "show" is added */
}


/* Collapsed Questions */
.results-page .collapsed-question {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.results-page .collapsed-question:hover {
    text-decoration: underline;
}

.results-page .full-question {
    display: none;
}

.results-page .collapse.show .full-question {
    display: block;
}

/* CSS for the Canvas */
.results-info-container canvas {
    width: 200px;
    height: 200px;
    margin-left: 20px; /* Optional: Add some margin if needed */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.badge {
    font-size: 1em;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 5px 10px;
    border-radius: 12px;
    color: #333;
}

.results-page .openfield {
    background-color: transparent;
    color: #007bff;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1em;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    position: relative; /* Needed for the underline effect */
    transition: color 0.3s ease;
}

.results-page .openfield::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background: #007bff;
    transition: width 0.3s ease;
}


.results-page .openfield.active::after {
    width: 100%;
    left: 0;
}

.results-page .openfield:hover {
    color: #0056b3;
}

@media print {
    .results-page {
        display: none;
    }
}

/* Base styles for the radio buttons */
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Styles for the radio button when checked */
input[type="radio"]:checked {
    border-color: #007bff;
    background-color: #fff;
}

/* Adding a dot inside the radio button when checked */
input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hover and focus states for better accessibility */
input[type="radio"]:hover,
input[type="radio"]:focus {
    border-color: #0056b3;
}

/* Specific styles for your multichoice question containers */
.que.multichoice .answer div.r0 input, 
.que.multichoice .answer div.r1 input {
    margin: .3rem .5rem;
    width: 20px;
    flex-shrink: 0;
}

.qtype_multichoice_clearchoice input[type="radio"] {
    display: none;
}
#attempt-progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-inner {
    height: 20px;
    background-color: #76c7c0;
    transition: width 0.5s;
    border-radius: 5px 0 0 5px;
}

.progress-bar-text {
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    color: #333;
}

.answer-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answer-feedback i {
    margin-right: 10px;
}

.answer-feedback.correct {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.answer-feedback.correct i {
    color: #28a745; /* Green color for the checkmark */
}

.answer-feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.answer-feedback.incorrect i {
    color: #dc3545; /* Stronger red color for the X icon */
}

.answer-feedback.neutral {
    background-color: #ffeeba;
    color: #856404;
    border: 1px solid #ffeeba;
}
.icon.fa.fa-remove.text-danger.fa-fw {
  margin-top: 1px;
}
.icon.fa.fa-check.text-success.fa-fw {
  margin-top: 1px;
}

.progress-bar-text {
  white-space: nowrap;
}
#id_submitbutton {
  background: #287FE3 !important;
}
#id_resetbutton:hover,
#id_submitbutton:hover,
.btn.btn-primary.form-submit:hover {
  background: #216ACC !important;
}
  #id_resetbutton {
    margin-left: 10px;
  }
.btn.btn-primary.form-submit {
  border-radius: 5px;
}
.d-flex.flex-wrap.align-items-center {
  text-transform: capitalize;
}
.outcome.clearfix .feedback {display: flex; flex-direction: column;}
.outcome.clearfix .feedback .specificfeedback {display:none!important;}
.outcome.clearfix .feedback .generalfeedback {order: 2;}
.outcome.clearfix .feedback .rightanswer {order: 1;
    font-weight: bold;
	}
.outcome.clearfix {
    color: #001a1e !important;
}
input.btn.btn-primary:hover {
    background: #216ACC !important;
}
.question-tags {
    color: #001a1e;
    text-transform: capitalize;
}
.question-count-oval {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 15px;
    color: #287FE3;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    min-width: 25px;
    border: 1px solid #cccccc;
}
select#id_num_to_display {
    width: 75px;
}
.col-md-9 .mform{
    padding: 0px;
}
.col-md-9 {
    padding: 5px !important;
}
#page.drawers{
    margin-top: 0px !important;
}
.bellcurve-results .col-md-6 {
    display: flex;
	flex-wrap: wrap;
    align-items: center;
   justify-content: space-between;
}
.counter.nota,
.counter.mediana {
    width: 100%;
}
@media (max-width: 768px) {
    .counter.nota,
    .counter.mediana {
        margin-left: -13px;
    }
    .float-right input.btn.btn-primary {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 150px;
        height: 45px;
        line-height: 17.5px;
    }
	input.btn.btn-primary.next-button {
    width: auto;
    height: 45px;
}
}
.modulespecificbuttonscontainer.my-3 {
    display: none;
}
.mb-3 input#id_resetbutton {
    display: none;
}
.header-main .navbar.navbar-light .navbar-brand.has-logo .logo img{
    padding-left: 15px;
}
.custom-demo-tooltip .introjs-bullets {
    display: none;
}
.qtype_multichoice_clearchoice {
    display: none;
}

@media only screen and (max-width: 767px) {
    .special-offer-banner {
        padding: 5px;
    }
}

.mod-caces-attempt-nav.row {
    display: none;
}

form#responseform .mod-caces-attempt-nav.row {
    display: flex !important;
}

.path-mod .activity-header:not(:empty){
margin-bottom: 0 !important;
}
.header-with-tutorial {
    margin-bottom: 13px;
    display: flex;
    justify-content: space-between;	
}
.generate-simulator-button {
    margin-bottom: 15px;
}
.left-buttons a.btn.btn-secondary {
    height: 45px;
    align-content: center;
}

/* Media query for screens smaller than 768px */
@media (max-width: 767px) {
    .header-with-tutorial {
        margin-top: 13px;
        flex-direction: column;
        align-items: stretch; /* Optional: ensures buttons take full width */
    }
    .header-with-tutorial .left-buttons,
    .header-with-tutorial .right-buttons {
        width: 100%; /* Optional: buttons fill the container width */
        margin-bottom: 10px; /* Optional: adds space between buttons */
    }
    .header-with-tutorial .right-buttons {
        margin-bottom: 0; /* Removes bottom margin from the last button */
    }
	    .generate-simulator-button {
        margin-top: 15px;
    }
}

span.\35 18943215879179123 {
    display: none;
}
.left-buttons.mb-4 {
  margin-bottom: 0px !important;
}
.feedback table {
    width: 100%;
    border-collapse: collapse;
    color: #001a1e;
    border: 0;
}

.feedback table th, .feedback table td {
    border: 1px solid #001a1e;
    padding: 8px;
    text-align: left;
}

.feedback table th {
    background-color: #f2f2f2;
}

.feedback table td {
    background-color: #fff;
}

/* Mobile-friendly table */
.feedback table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for better visibility */
.feedback table::-webkit-scrollbar {
    height: 12px;
}

.feedback table::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.feedback table::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.feedback table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

/* Style for Firefox */
.feedback table {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.feedback table th, .feedback table td {
    min-width: 120px; /* Adjust based on content */
}
.outcome.clearfix .feedback div#tablefeedback {
    order: 3;
}

.answer-percentage {
    font-size: 1em;
    color: #287FE3;
    margin-bottom: 5px;
    margin-left: 10px;
    padding: 0 5px;
    height: 100%;
    background-color: #f4f4f4;
    border-radius: 7px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    font-weight: 700;
}

.answer-percentage .percentage-value {
    color: #287FE3;
    font-weight: bold;
    margin-left: 5px;
}

.answer .d-flex {
    flex-wrap: wrap;
}

.que.multichoice .answer .answernumber {
    min-width: 1.5em;
    flex: 0 1 auto;
}

.answer .flex-fill {
    flex: 1 !important;
}

.fa-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}

/* Optional: Handle mobile responsiveness */
@media (max-width: 768px) {
    .fa-tooltip {
        white-space: normal; /* Allow wrapping on smaller screens */
        word-wrap: break-word;
        transform: translateX(-50%); /* Centers the tooltip relative to the icon */
    }
.answer-percentage{
	margin-left:0px;
    }
.answer .d-flex {
    width: 100% !important;
}
.answer .flex-fill {
    min-width: 0;
    max-width: 100%;
}
}
.answer span.ml-1 {
    order: 1;
	left: 0px;
    margin-top: 2px;
    position: absolute;
}
.answer input {
    order: 2;
}
.answer .d-flex {
    order: 3;
}
.answer i.icon{
    font-size: 23px;
}


.feedback-fixed-footer {
                font-size: 0.7em;
    color: #555;
    text-align: center;
    margin-top: 10px !important;
    margin-bottom: -27px !important;
    font-style: italic;
    border-top: 1px solid #757575;
    padding-top: 0px;
        }
.generalfeedback img {
    width: 65%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
@media only screen and (max-width: 600px) {
    .generalfeedback img {
        width: 100%;
    }
}

.fdescription.required {
    display: none;
}
div#fitem_id_timer_duration .text-danger {
    display: none;
}

.custom-toggle-checkbox .form-check label {
    margin-top: -4px;
    margin-left: 5px;
}

.custom-toggle-checkbox .form-check .ml-2 {
    margin-top: -6px;
}

.custom-toggle-checkbox .form-check .ml-2 .icon {
    margin-left: 3px;
    margin-right: 4px;
}

label#id_timer_duration_label {
    margin-top: 8px;
}

.answer .flex-fill::first-letter {
text-transform: uppercase; 
}

.always-show-finish-button {
  margin-top: 40px;
}
@media (max-width: 768px) {
body#page-mod-caces-results .container.results-container.results-page {
    padding: 0;
}
body#page-mod-caces-results .special-offer-banner {
    padding: 10px !important;
}

body#page-mod-caces-results section#region-main {
    padding: 0px;
}

.results-page .counter {
    margin-left: 0px;
}

.special-offer-banner {
    margin-top: 20px;
}

.bellcurve-results {
    padding: 15px;
}

.bellcurve-results .col-md-6 {
    padding: 8px;
}
card .card-body {
    padding: 0px;
}
body#page-mod-caces-results div#resultTextContainer {
    text-align: center;
}
.results-page .resultspage-header {
padding:0px;
}
button.openfield.btn.btn-link {
    padding: 0px;
}
.results-info-column.first-column {
    margin-bottom: 0px;
}
.results-page .results-info-container {
    margin-bottom: 0;
}
}

.mb-3.row.fitem.custom-toggle-checkbox {
  margin-bottom: 0 !important;
}
.que .qtext img {
    max-width: 100%;
}
div#tablefeedback {
    margin-bottom: 10px;
}
.filter-tooltip {
    max-width: 800px !important;
}
.introjs-tooltiptext {
    font-size: 16px !important;
}
.introjs-tooltiptext {
    padding-bottom: 0 !important;
}
.introjs-helperNumberLayer {
    padding: 0 !important;
}
.introjs-helperNumberLayer {
    padding: 0 !important;
    font-size: 16px !important;
} 

@media (max-width: 767px) {
    .tutorialmaterias {
        top: 73% !important;
    }
}


.form-group #limit {
  width: 70px;
}