@import url('iconmoon-font.css');

/* speak button css */
.spt_speak {
    font-size:24px;
    padding-left: 13px;
    cursor: pointer !important;
	display:none!important;
}

/* Increse the image size */
img.rally_math_essay, img.math_essay {
    width: 50px;
    height: 50px;
}

.learndash-wrapper .wpProQuiz_content.answer-masking .wpProQuiz_questionList span:not(.circled) {
    z-index:5px !important;
}

/* Toolbar height to be same */
div.wrs_multipleRowPanel.wrs_selected {
    height: 85px;
}

div.wrs_formulaDisplayWrapper {
    height: 200px !important;
}

.wrs_editor .wrs_layoutFor2Rows .wrs_empty {
    height: 9px !important;
}

button[title="fractionsub"] > img.wrs_image {
    height: 39px !important;
    margin-top: -19px !important;
}

/* The Modal (background) */
.calmodaldiv {
    display: none;
    position: fixed;
    z-index: 1;
    left: 27%;
    top: 20%;
    width: 25%;
    height: 100%;
    overflow: auto;
}

/* Modal Content */
.cal-modal-content {
    height: auto;
    margin-top: 50%;
    width: 61%;
}

/* Calclulator */
#calculator {
    max-width:260px;
    margin-top:20%;
    margin-bottom:2%;
    padding-bottom: 2%;
    background-color:#305A85;
    border-bottom-right-radius:5%;
    border-bottom-left-radius:5%;
    box-shadow:5px 4px 10px 1px #000000;
    border:3px outset #305A85;
}

/* The Close Button */
#close {
    text-align: center;
    color: #aaaaaa;
    float: right;
    width: 40px;
    background-color: aquamarine;
    font-size: 20px;
    font-weight: bold;
    border-radius: 106px;
}
  
#close:hover, #close:focus {
    color: #d9534f;
    text-decoration: none;
    cursor: pointer;
}


@media only screen and (min-width: 1px) and (max-width: 800px) {
    .calmodaldiv{
        left: 20%;
        width: 102%;
    }
    .cal-modal-content {
        height: auto;
        margin-top: 50%;
        width: 72%;
    }
}

/* Calculator CSS */
#logo {
    width:130px;
}

.tooltip-inner {
    white-space:pre-wrap;
}

.gray {
    color:#999999 !important;
}

/* ==== ---===----===---==---==---=----==-=-=--=-=-=-= */
.learndash-wrapper .wpProQuiz_content .wpProQuiz_question{ padding-right: 25px;}
.wpProQuiz_questionListItem label{ position: relative;}
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem{
    padding-left: 45px!important;
}
.wpProQuiz_content.answer-masking .wpProQuiz_questionList .wpProQuiz_questionListItem label{ 
    background-color: transparent !important;
    color: #000 !important;
    padding: 6px 15px;
    border: 1px solid gray;
    margin: 0;
    width: calc(100% - 28px) !important;
    position: relative;

}
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList span.circled{
    margin-right: 0;
    margin-left: -66px;
	font-size: 1.15em!important;
}
.wpProQuiz_content.answer-masking .watchButton{ height: 100%;}
.wpProQuiz_content.answer-masking .wpProQuiz_questionListItem label::after{
    content: "";
    width: 100%;
    height: 100%;
    background: gray;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}
.wpProQuiz_content.answer-masking .wpProQuiz_questionList .wpProQuiz_questionListItem label.masking-active::after{
    display: none;
}
.wpProQuiz_content.answer-masking .wpProQuiz_questionList .wpProQuiz_questionListItem label.is-selected .circled,
.wpProQuiz_content.answer-masking .wpProQuiz_questionList .wpProQuiz_questionListItem label .circled:hover{ 
    color: #FFF !important;
    border-color: #3a6db0 !important;
    background: #3a6db0 !important;
}

/* ----------- */

#myModaldiv{
    z-index: 9999;
    height: 560px;
    overflow: hidden;
}

.calmodaldiv{ width: auto !important;}

#dragMeid{
    height: auto;
    margin-top: 0;
    width: 290px;
}

#myModaldiv #app{
    width: 290px; 
}
#myModaldiv #app iframe{
    width: 265px;
}

#myModaldiv #app iframe.normalCalculator{
    width: 235px;
    float: right;
    transform: scale(1.05);
    margin-top: 11px;
}


/* Make questionsolved */
div.wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionSolved {
    background-color: white !important;
}

/* border */
div.wpProQuiz_checkPage input.wpProQuiz_button {
    border: 2px solid !important;
}

/* -----  ==== */
.wpProQuiz_quiz{ padding: 0 25px;}


/* Circle span for eraser*/

/* .circle {
    position: absolute;
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border: 2px solid red;
}
  
.circle.in {
    display: block;
} */

/* ------------------------------------------------------ NEW Editor Styles ---------------------------------- */

/* Main container that holds the mathquill divs */
.calc_mathquil {
    /* resize: both; */
    /* overflow: auto; */
    /* max-width: 100%; */
    /* min-width: 947px;
    min-height: 421px; */
}

/* --------------------------- Mathquill Editor Buttons ------------------------ */

/* Tools pencil eraser css */
#tools {
    border: 1px solid black;
    width: 100%;
    padding: 10px;
    background: #334049;
}

.drawHeader {
    display: flex;
    justify-content: space-between;
}

.unre {
    display: inline-block;
    padding-right: 20px;
}

.toolsp {
    display: inline-block;
    border-left: 1px solid #98C9EC;
    padding-left: 20px;
}

.btn.der, .ny-clear {
    background-color: #33404A !important;
    min-height: 35px !important;
    border-radius: unset;
    padding: unset;
}

.btn.der:hover {
    border: 1px solid #98C9EC;
    background-color: unset;
}

.ny-clear:hover {
    border: 1px solid #98C9EC;
    background-color: unset;
}

.dtool {
    padding: 20px;
    border-radius: unset;
    height: auto;
    background-color: #33404A;
}

.dtool:hover {
    border: 1px solid #98C9EC;
    background-color: unset;
}

.rallyny-draw-btn-close {
    background-color: unset;
    color: #98C9EC;
}

.add-drawing-div > button {
    background-color: #A2D8FD !important;
    background-image: none;
    border-radius: 3px;
    border: 1px solid #FFF;
    box-shadow: none;
    color: #334049;
    cursor: pointer;
    font-size: 1.9rem;
    font-weight: bold;
    padding: 7px 15px;
    margin: 10px;
}
.add-drawing-div > button:hover {
    color: #ffffff;
}

.ny-clear-draw {
    opacity: 0.5;
}

/* Hide border */
button.chekbox_modif {
    border: unset !important;
}

body .calc_mathquil .chekbox_modif.clicked {
    border: 1px solid #98C9EC;
    background-color: unset
}

body .calc_mathquil .chekbox_modif.chekbox_modif.chekbox_modif:hover {
    background-color: rgba(73, 233, 245, 0.2)!important;
}

/* Undo redo buttons */
button.rallyny-grey .icon-arrow_left:before {
    color: #576C7B !important;
}

button.rallyny-grey .icon-arrow_right:before {
    color: #576C7B !important;
}

.calc_mathquil .rally-button-np {
    background: #334049;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc_mathquil .rally-button-np .mtoolbutton {
    display: flex;
    justify-content: space-between;
}

.calc_mathquil .rally-button-np .mtoolbutton .mqtools {
    line-height: 36px;
    height: 30px;
    padding: 20px 15px;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
    border-color: transparent;
    color: #a2d8fb;
}

.calc_mathquil .rally-button-np .bholder {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.calc_mathquil .rally-button-np .bholder .rallyinput {
    margin-bottom: 2px;
    margin-left: 2px;
    margin-right: 2px;
    line-height: normal;
    padding: 4px 12px;
    background-color: #33404A !important;
    color: #a2d8fb !important;
    border-color: transparent !important;
    font-size: 18px;
    font-weight: bold;
}

.calc_mathquil .rally-button-np .bholder .rallyinput:hover {
    color: #a2d8fb !important;
    background-color: #40505b !important;
    border-color: #a2d8fd !important;
}

.calc_mathquil .rally-button-np .mtoolbutton .mqtools:hover {
    background: transparent;
    border-color:transparent;
}

/* Drawing Button */
.chekbox_modif {
    background-color: #33404A;
    border-radius: unset !important;
    height: auto;
    width: auto;
    line-height: 44px;
    padding: 0 8px;
    font-size: 30px;
    margin: 0 2px;
	color: #a2d8fd!important;
}

/* Drawing checkbox clicked class */
.chekbox_modif.clicked {
    background: #98C9EC !important;
}

/* Canvas border */
.free_sketch {
    border: 1px solid black;
}

/* Clicked tools */
.clicked {
    background-color: #98C9EC !important;
    min-height: 35px !important;
    border-radius: unset
}

.clicked > i {
    color: #33404A;
}

.fa-pencil {
    color: #98C9EC;
}

.fa-eraser {
    color: #98C9EC;
}

.drawEditorCanvas {
    border: 1px solid black;
    background-color: white
}

/* Add drawing button css */
.add-drawing-div {
    background-color: #33404A;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
}

.calc_mathquil .rally-button-np .mtoolbutton .mqtools{
    font-size: 35px;
    padding: 0;
    filter: inherit !important;
}

.calc_mathquil .rally-button-np .mtoolbutton .mqtools:hover{ color: #FFF;}

.calc_mathquil .rally-button-np .bholder .rallyinput{
    padding: 0 4px;
    font-weight: 900;
    font-size: 32px;
    line-height: 25px;
    height: auto;
}

.calc_mathquil .rally-button-np .bholder .rallyinput .icon-change{font-size: 35px;}
.calc_mathquil .rally-button-np .bholder .rallyinput .icon-angle{ 
    font-size: 35px;
    font-weight: bold;
}

.drawEditorCanvas{
    border: 1px solid #334049;
    background-color: white;
    box-shadow: 1px 2px 14px #334049;
}

.drawEditorCanvas .drawHeader{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
}

.drawEditorCanvas .drawHeader h3{ color: #FFF;  margin-top: 0;   margin-bottom: 5px;}
.drawEditorCanvas .drawHeader button.rallyny-draw-btn-close{
    background-color: transparent;
    color: #98C9EC;
    height: auto;
    line-height: 24px;
    padding: 0;
    font-size: 50px;
    border-color: #98C9EC;
}

.drawEditorCanvas .drawEdittoolsWrap{ display: flex; flex-wrap: wrap; justify-content: flex-start; padding-bottom: 10px;}

.drawEditorCanvas .drawEdittoolsWrap > div{ }

.drawEditorCanvas .drawEdittoolsWrap > div button{
    background-color: transparent;
    color: #98C9EC;
    height: auto;
    line-height: 24px;
    padding: 0;
    font-size: 25px;
    border-color: transparent;
}

body .drawEditorCanvas .drawEdittoolsWrap > div button:hover,
body .drawEditorCanvas .drawEdittoolsWrap > div button.clicked{
    border-color: #98C9EC;
    background: #98C9EC !important;
    color: #000 !important;
}

.drawEditorCanvas .drawEdittoolsWrap > div.unre{
    display: flex;
    justify-content: space-between;
}

.drawEditorCanvas .drawEdittoolsWrap > div.unre button{
    padding: 0 8px;
    margin-right: 5px;
}

.drawEditorCanvas .drawEdittoolsWrap > div button.ny-clear span{
    font-size: 15px !important;
}

.drawEditorCanvas .drawEdittoolsWrap > div button.toolsp{}

.drawEditorCanvas .drawEdittoolsWrap > div.toolsp button{
    filter: inherit !important;
    font-size: 18px;
    padding: 0 8px;
    line-height: 33px;
    background: transparent !important;
}

.drawEditorCanvas .drawEdittoolsWrap > div.toolsp button i{
    color: #98C9EC !important;
}

body .drawEditorCanvas .drawEdittoolsWrap > div button:hover i,
body .drawEditorCanvas .drawEdittoolsWrap > div button.clicked i{ color: #000 !important;}

.drawEditorCanvas .add-drawing-div button{
    font-size: 15px;
}

/* sft change */
/* .drawEditorCanvas{ width: 100% !important; max-width: 619px;} */

/* Change cursor of the tools area */
#tools {
    cursor: move !important;
}

/* Font Size of the clearall button */
.rallyinput.clearall {
    font-size: 14px !important;
}

/* ---------------------------------------------- Input wrapper down part --------------------------------------------------------- */

/* Editor holding div to hide */
.calc_mathquil .rally-input-wrapper {
    resize: both;
    height: 300px;
    border-color: #334049;
    /* overflow-y: scroll; */
    overflow-y: auto;
    padding: 15px;
    min-width: 1136.5px;
    max-width: 1671px;
    min-height: 421px;
}

.rally-input-div {
    border: unset !important;
}

.rally-input-div:focus-visible {
    border: unset !important;
    outline: none;
    border: 1px solid white !important;
}

/* Matheditor image styling */
.ny-cdata > img {
    border: 1px solid rgb(210, 207, 207);
}

/* Remove icon on image on editor */
/* span.ny-remove-icon {
    display: inline-block;
    background-color: #999999;
    border-radius: 175px;
    width: 43px !important;
    cursor: pointer;
    font-style: normal;
    height: 39px;
    font-weight: 600;
    padding-left: 10px;
} */

/* Adding border to the img tag on editor*/
span.rallyny-d {
    display: flex;
    width: 600px;
    border: 1px solid black;
}

/* Set the postion on cancel symbol */
.ny-controls {
    margin-left: 0px !important;
    /* margin-top: -19px !important; */
}

.mq-root-block {
    padding-top: 15px !important;
}

.calc_mathquil .mq-math-mode .mq-empty.mq-root-block{ background-color: transparent !important;}

/* Blue Color To Empty div */
.calc_mathquil .rally-input-wrapper .mq-math-mode .mq-empty{ background-color: #a2d8fd;}

.mathquill-editable.mq-editable-field.mq-math-mode {
    border: unset !important;
}

/* Quiz button focused */
.wpProQuiz_quiz button:focus{ background: transparent !important;}


/* New Jaydeep */

/* Adding border to the img tag on editor*/
span.rallyny-d {
    display: flex;
    width: 600px;
    border: 1px solid black;
}

/* Change cursor of the tools area */
#tools { cursor: move !important; }

/* ============== Drawing container resize new ================== */

/* Main controls design. */
.ire-image-controls {
    padding: 14px 14px;
    margin-bottom: 5px;
    border-radius: 50%;
    background: lightgray;
    cursor: pointer;
    margin-left: 5px;
}

/* Main controls design. */
.ire-image-controls:last-child {
    position: absolute;
    margin: 0;
    bottom: 10px;
    left: 5px;
}

/* ================= Notes css ========================== */

#rally_noteds {
	height: 60px;
    width: 40px;
    top: 0;
    margin-left: 5px;
}
#rally_noteds:before {
  position: absolute;
  font-family: 'nyrehz';
  content: '\e813';
  font-size: 25px;
  padding: 0;
  line-height: .5;
  top: 10px;
  left: 5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
}
#rally_noteds:after {
  content: "note";
  font-size: 12px;
  color: white;
  text-align: center;
  display: flex;
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-family: "Verdana", san-serif;
}
#rally_noteds:hover::after, #rally_noteds:hover::before, #rally_noteds.on_but::before, #rally_noteds.on_but::after {
  color: #A2D8FD;
}
#rally_noteds:hover::before, #rally_noteds.on_but::before {
  font-family: 'nyrehz';
  content: '\e80d';
  font-weight: 700;
}

ol#rally_quiz_start_btn .rally_review_notes_data {
    display: flex;
    flex-direction: column;
}

/* ====== filter Table ====== */

.rallyny_apply_filter_btn{
    border: 1px solid rgb(61, 151, 169) !important;
    color: rgb(61, 151, 169) !important;
}

.rallyny_apply_filter_btn:hover{
    background-color: rgb(61, 151, 169);
    color: #fff !important;
}

.rallyny_notes_report_wrapper {
    width: 100%;
    max-width: 90%;
    margin: 40px auto;
    /* padding: 18px 30px 25px; */

    box-sizing: border-box;

    /* border: 1px solid #222; */
    /* border-radius: 16px; */

    background: #fff;
}


.rallyny_notes_filters {
    display: grid;
    grid-template-columns:
        minmax(80px, 1.5fr)
        minmax(80px, 1.5fr)
        minmax(50px, 0.8fr)
        auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 40px;
}

/* Main DataTables wrapper. */
#rallyny_notes_table_wrapper {
    width: 100%;
    margin-top: 20px;

    font-family: Arial, sans-serif;
}

/* Length dropdown area. */
#rallyny_notes_table_wrapper .dataTables_length {
    margin-bottom: 22px;

    font-size: 15px;

    color: #222;
}

/* Length select. */
#rallyny_notes_table_wrapper .dataTables_length select {
    min-width: 75px;
    height: 38px;

    margin: 0 6px;
    padding: 4px 30px 4px 10px;

    border: 1px solid #333;
    border-radius: 8px;

    background: #fff;

    color: #222;

    outline: none;
}

/* Table container. */
.rallyny_notes_table {
    width: 100% !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    border: 1px solid #333 !important;
    /* border-radius: 14px !important; */

    overflow: hidden;

    background: #fff;

    font-size: 15px;
}

/* Remove old teal header. */
.rallyny_notes_table thead th {
    padding: 14px 16px !important;

    background: #fff !important;

    color: #222 !important;
    background-color: rgb(61, 151, 169) !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #333 !important;
    border-right: 1px solid #333 !important;

    font-size: 15px;
    font-weight: 600;

    text-align: left;

    vertical-align: middle;
}


/* Last heading. */
.rallyny_notes_table thead th:last-child {
    border-right: 0 !important;
}


/* Body cells. */
.rallyny_notes_table tbody td {
    padding: 13px 16px !important;

    background: #fff !important;

    color: #222;

    border-top: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #333 !important;
    border-right: 1px solid #333 !important;

    vertical-align: middle;
}


/* Remove right border from last cell. */
.rallyny_notes_table tbody td:last-child {
    border-right: 0 !important;
}


/* Remove bottom border from last row. */
.rallyny_notes_table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* No striped backgrounds. */
.rallyny_notes_table tbody tr:nth-child(even),
.rallyny_notes_table tbody tr:nth-child(odd) {
    background: #fff !important;
}

/* Row hover. */
.rallyny_notes_table tbody tr:hover td {
    background: #f8f8f8 !important;
}

/* View Notes / Edit button. */
.rallyny_notes_table .rallyny_view_notes_btn, .rallyny_notes_table .rallyny_edit_btn {
    padding: 7px 13px;
    border: 1px solid rgb(61, 151, 169) !important;;
    border-radius: 7px;
    /* background: rgb(61, 151, 169) !important; */
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Button hover. */
.rallyny_notes_table .rallyny_view_notes_btn:hover, .rallyny_notes_table .rallyny_edit_btn:hover {
    background: rgb(61, 151, 169) !important;;
    color: #fff;
}

/* DataTables search box. */
#rallyny_notes_table_wrapper .dataTables_filter {
    margin-bottom: 20px;
}

/* Search input. */
#rallyny_notes_table_wrapper .dataTables_filter input {
    height: 38px;
    margin-left: 8px;
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 8px;
    outline: none;
    background: #fff;
}

/* Table info. */
#rallyny_notes_table_wrapper .dataTables_info {
    padding-top: 18px;
    font-size: 14px;
    color: #444;
}


/* Pagination wrapper. */
#rallyny_notes_table_wrapper .dataTables_paginate {
    padding-top: 15px;
}


/* Pagination buttons. */
#rallyny_notes_table_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    margin: 0 3px;
    padding: 7px 11px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #222 !important;
    cursor: pointer;
}


/* Current page. */
#rallyny_notes_table_wrapper .dataTables_paginate .paginate_button.current {
    border-color: #222 !important;
    background: #222 !important;
    color: #fff !important;
}


/* Pagination hover. */
#rallyny_notes_table_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: #222 !important;
    background: #222 !important;
    color: #fff !important;
}


/* Sorting icons - make them darker/subtle. */
.rallyny_notes_table thead .sorting::before,
.rallyny_notes_table thead .sorting::after,
.rallyny_notes_table thead .sorting_asc::before,
.rallyny_notes_table thead .sorting_asc::after,
.rallyny_notes_table thead .sorting_desc::before,
.rallyny_notes_table thead .sorting_desc::after {
    opacity: 0.5 !important;

    color: #222 !important;
}



/* Responsive table. */
@media (max-width: 900px) {

    #rallyny_notes_table_wrapper {
        overflow-x: auto;
    }

    .rallyny_notes_table {
        min-width: 950px;
    }
}

/* Responsive. */
@media (max-width: 800px) {

    .rallyny_notes_filters {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 30px;
    }

    .rallyny_notes_table_wrapper {
        overflow-x: auto;
    }

    .rallyny_notes_table {
        min-width: 750px;
    }

}


@media (max-width: 550px) {

    .rallyny_notes_filters {
        grid-template-columns: 1fr;
    }

    .rallyny_apply_filter_btn {
        width: 100%;
    }

}




/* View Nores Popup */

/* Popup overlay. */
.rallyny_notes_popup_overlay {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    z-index: 999999;
}


/* Popup. */
.rallyny_notes_popup {
    position: relative;

    width: 100%;
    max-width: 620px;

    max-height: 80vh;
    overflow-y: auto;

    padding: 30px;

    box-sizing: border-box;

    background: #fff;

    border-radius: 14px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}


/* Close button. */
.rallyny_notes_popup_close {
    position: absolute;

    top: 10px;
    right: 15px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #555;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


/* Popup title. */
.rallyny_notes_popup_title {
    margin: 0 35px 25px 0;

    font-size: 24px;
    font-weight: 700;

    color: #222;
}


/* Question section. */
.rallyny_notes_popup_question {
    margin-bottom: 25px;
}


/* Question text. */
.rallyny_notes_popup_question_text {
    margin-top: 8px;

    padding: 12px 15px;

    background: #f5f5f5;

    border-radius: 8px;

    font-size: 16px;
    line-height: 1.5;
}


/* Notes content. */
.rallyny_notes_popup_note_text {
    margin-top: 8px;

    padding: 15px;

    min-height: 100px;

    background: #f5f5f5;

    border-radius: 8px;

    font-size: 16px;
    line-height: 1.6;
}


.sft-rally-ela-rich-editor-wrapper {
  width: 100%;
}
.sft-rally-ela-rich-editor-wrapper .richText {
  border: 1px solid #334049 !important;
  z-index: 0;
}
.sft-rally-ela-rich-editor-wrapper .richText-toolbar {
  -webkit-user-select: none;
  background-color: #334049 !important;
  border: none;
  display: block;
  position: relative;
  user-select: none;
  border-bottom: none !important;
  padding: .5em 1em !important;
}
.sft-rally-ela-rich-editor-wrapper .richText-editor {
  resize: vertical !important;
  overflow: auto !important;
  min-height: 100px !important;
  max-height: 700px;
}
.richText .richText-toolbar ul li a {
  border-right: none !important;
}
.richText .richText-undo, .richText .richText-redo {
  background-color: transparent;
  border: 1px solid transparent;
  color: #a2d8fd !important;
  height: 42px;
  padding: 0 !important;
  margin: 0 !important;
  width: 42px;
  font-size: 22px;
}
.richText .richText-undo:hover, .richText .richText-redo:hover {
  background-color: transparent !important;
  border: 1px solid transparent !important;
}
.richText .richText-undo.is-disabled, .richText .richText-redo.is-disabled {
  color: #576c7b !important;
  opacity: 1 !important;
}
.richText .richText-undo span, .richText .richText-redo span {
  font-size: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
}
.richText .richText-undo span.icon-arrow_left:before {
	content: "\e900";
}
.richText .richText-redo span.icon-arrow_right:before {
	content: "\e901";
}
.richText .richText-undo span:hover, .richText .richText-redo span:hover {
  border: 1px solid #a2d8fd;
}
.richText .richText-undo.is-disabled span:hover, .richText .richText-redo.is-disabled span:hover {
  border: 1px solid transparent;
}
.bholder .saveall-btn {
    display: flex;
    gap: 3px;
    margin-top: 3px;
    padding: 4px 4px 0px 4px !important;
}

.saveall-btn img {
    filter: brightness(0) invert(1) !important;
}

.bholder .before-save-all{
    background-color: #496376 !important;
    border: 1px solid #f1f1f1;
}

/* Table UI Enhancement (Satvik) */

.dataTables_length label{
    margin-top: 60px;
}

div#ny-grading-question-table_filter label {
    margin: 0 4px 4px 0 !important;
}

/* Filter adjust. */
.ny-question-table-filter:has(.nynote_all_group) div {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 262px;
  border: none;
}
.ny-question-table-filter:has(.nynote_all_group) select {
  width: 100%;
  padding: 10px 40px 10px 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 0;
  background-color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.ny-question-table-filter:has(.nynote_all_group) div::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 65%;
  transform: translateY(-40%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #666666;
  pointer-events: none;
}
/* Filter adjust. */
.ny-question-table-filter {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  gap: 30px;
}
/* Keep the underlying Math essay value hidden while the custom editor initializes. */
li.wpProQuiz_listItem:has(.calc_mathquil) textarea.wpProQuiz_questionEssay { display: none !important; }

/* Drawing popup: one grip INSIDE the canvas, above the footer. */
.drawEditorCanvas {
    resize: none !important;
}
.drawEditorCanvas .rallyny-drawing-surface {
    position: relative;
    width: 100%;
    min-height: 310px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    resize: none !important;
}
.drawEditorCanvas .rallyny-drawing-surface canvas.free_sketch {
    display: block;
    min-width: 0;
    min-height: 0;
    resize: none !important;
}
.drawEditorCanvas .ui-resizable-handle:not(.rallyny-canvas-resize-handle) {
    display: none !important;
}
.drawEditorCanvas .rallyny-canvas-resize-handle {
    position: absolute !important;
    left: auto !important;
    top: auto !important;
    right: 2px !important;
    bottom: 2px !important;
    width: 24px !important;
    height: 24px !important;
    min-height: 0 !important;
    z-index: 10;
    background: transparent !important;
    border: 0;
    cursor: nwse-resize;
    touch-action: none;
}
.drawEditorCanvas .rallyny-canvas-resize-handle::before {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 16px;
    height: 16px;
    min-height: 0;
    background: repeating-linear-gradient(135deg, transparent 0 3px, #334049 3px 5px);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
/* NY MathQuill: 1024px maximum; toolbar follows the resizable answer area. */
body .calc_mathquil {
    width: 100%;
    max-width: 1024px !important;
    min-width: 0 !important;
    box-sizing: border-box;
}
body .calc_mathquil > .rally-input-wrapper {
    width: 100%;
    max-width: 100% !important;
    min-width: min(320px, 100%) !important;
    box-sizing: border-box;
    resize: both;
    overflow: auto;
}
body .calc_mathquil > .rally-button-np {
    width: 100%;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    height: auto !important;
    overflow: visible;
}
body .calc_mathquil > .rally-button-np .mtoolbutton {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}
body .calc_mathquil > .rally-button-np .bholder {
    flex: 1 1 320px;
    min-width: 0 !important;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    box-sizing: border-box;
}
body .calc_mathquil > .rally-button-np button {
    flex-shrink: 0;
    white-space: nowrap;
}