/* --------------- base styles  --------------*/
.rtccontent {
  display: block;
  text-align: start;
  line-height: 17.234px;
  min-height: 0px;
  white-space: normal;
  color: rgb(0, 0, 0);
  font-family: menlo, monaco, consolas, "courier new", monospace;
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none solid rgb(0, 0, 0);
}

/* ---------------  richtext.css  --------------*/
.rtccontent .paragraphnode {
  font-family: helvetica, arial, sans-serif;
  white-space: pre-wrap;
  margin: 2px 10px 10px 4px; /* added extra 1px bottom margin to have consistent spacing for copy to clipboard button */
  line-height: 1.5;
  color: rgba(0, 0, 0, 1);
  font-size: 14px;
  min-height: 17px;
}

.comment_body .rtccontent .paragraphnode,
.comment_body .rtccontent .rtclistnode,
.comment_body .rtccontent .codeblock {
  font-size: 13px !important;
}

.comment_body .rtccontent .heading-2 {
  font-size: 15px !important;
}

.rtccontent .heading-1 {
  /* can be uncommented when title text is enabled in toolstrip/editor
  margin: 10px 10px 15px 4px;
  white-space: pre-wrap;
  font-family: helvetica, arial, sans-serif;
  font-size: 22px;
  line-height: 1.2em;
  color: rgba(213, 80, 0, 1);
  font-weight: normal;
  min-height: 24px; */
  font-family: helvetica, arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: rgba(60, 60, 60, 1);
  white-space: pre-wrap;
  line-height: 1;
  margin: 20px 10px 5px 4px;
}

.rtccontent .heading-1:first-child {
  margin-top: 3px;
}

.rtccontent .heading-2 {
  font-family: helvetica, arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: rgba(60, 60, 60, 1);
  white-space: pre-wrap;
  line-height: 1;
  margin: 20px 10px 5px 4px;
}

.rtccontent .heading-3 {
  font-family: helvetica, arial, sans-serif;
  font-size: 17px;
  font-weight: bold;
  color: rgba(60, 60, 60, 1);
  white-space: pre-wrap;
  line-height: 18px;
  margin: 15px 10px 5px 4px;
}

.rtccontent .heading-4 {
  font-family: helvetica, arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: rgba(60, 60, 60, 1);
  white-space: pre-wrap;
  line-height: 18px;
  margin: 10px 10px 5px 4px;
}

.rtccontent .heading-2:first-child,
.rtccontent .heading-3:first-child,
.rtccontent .heading-4:first-child {
  margin-top: 3px;
}

.rtccontent .heading-2.wrappable,
.rtccontent .heading-3.wrappable,
.rtccontent .heading-4.wrappable {
  word-wrap: break-word;
}

/* --------------- text attributes --------------*/
.rtccontent .textbox.bold {
  font-weight: bold;
}

.rtccontent .textbox.italic {
  font-style: italic;
}

.rtccontent .textbox.underline {
  text-decoration: underline;
}

.rtccontent .textbox.monospace {
  font-family: menlo, monaco, consolas, "courier new", monospace;
}

/* force expanding the line so that the container has correct height even with empty content */
.rtccontent .textbox .textwrapper:empty::before,
  /* workaround for ie/edge native buggy wrapping behavior. force wrapping where it should occur. (g1447238) */
.rtccontent .textbox:first-child::before {
  content: "";
  display: inline-block;
}

/* --------------- lists.css --------------*/
.rtccontent .rtclistnode {
  font-family: helvetica, arial, sans-serif;
  font-size: 10.5pt;
  color: #000;
  line-height: 1.5em;
}

.rtccontent .rtclistitem {
  margin-left: 20px;
  white-space: pre-wrap;
}

/* --------------- sectionrules.css --------------*/
/*
* line node blocks decoration
*/
.rtccontent .codeblock {
  margin: 10px 3px 10px 3px;
  border-radius: 4px;
  background-color: #f7f7f7;
}

.rtccontent .codeblock   .paragraphnode {
  margin-top: 10px;
}

/*
* line nodes decoration
*/
.rtccontent .codeblock > .inlinewrapper:first-child .linenode:first-child,
.rtccontent .codeblock > .linenode:first-child {
  /* added extra 12px top padding to account for copy to clipboard button */
  padding-top: 17px;
}

.rtccontent .codeblock .linenode:last-child {
  padding-bottom: 5px;
}

.rtccontent .linenode {
  padding-left: 10px;
}

/*.codeblock.contiguous {
  border: 1px solid #e9e9e9;
}*/

/* code blocks border */
.codeblock > .inlinewrapper:last-child .linenode,
.codeblock > .linenode:last-child {
  border-bottom: 1px solid #e9e9e9;
}
.codeblock > .inlinewrapper:first-child,
.codeblock > .linenode:first-child {
  border-top: 1px solid #e9e9e9;
}
.codeblock > .inlinewrapper:not(.outputs),
.codeblock > .inlinewrapper.outputs .linenode,
.codeblock > .linenode {
  border-left: 1px solid #e9e9e9;
  border-right: 1px solid #e9e9e9;
}
.rtccontent .linenode {
  padding-bottom: 4px;
}
.codeblock > .inlinewrapper.outputs   .inlinewrapper .linenode {
  padding-top: 6px;
  border-top: 1px solid #e9e9e9;
}
.rtccontent .codeblock > .inlinewrapper.outputs .linenode {
  border-bottom: 1px solid #e9e9e9;
}
.rtccontent .codeblock > * .inlinewrapper.outputs .linenode {
  padding-top: 6px;
}

.op_answer_panel .codeblock.contiguous,
.op_comment_panel .codeblock.contiguous {
  border: 1px solid #ccc;
}

.rtccontent .linenode .textbox {
  white-space: pre;
}

/* --------------- syntax highlighting --------------*/
.rtccontent .linenode .textbox .textwrapper.comment,
.rtccontent .codeexampleblock .textwrapper.comment {
  color: rgb(34, 139, 34);
}

.rtccontent .linenode .textbox .textwrapper.keyword,
.rtccontent .codeexampleblock .textwrapper.keyword {
  color: rgb(0, 0, 255);
}

.rtccontent .linenode .textbox .textwrapper.string,
.rtccontent .codeexampleblock .textwrapper.string {
  color: rgb(160, 32, 240);
}

.rtccontent .linenode .textbox .textwrapper.syscommand,
.rtccontent .codeexampleblock .textwrapper.syscommand {
  color: rgb(179, 140, 0);
}

.rtccontent .linenode .textbox .textwrapper.undetstring,
.rtccontent .codeexampleblock .textwrapper.undetstring {
  color: rgb(179, 0, 0);
}

.pending-uploads {
  margin-top: -6px !important;
  border-right: 1px solid #c3c3c3;
  border-bottom: 1px solid #c3c3c3;
  border-left: 1px solid #c3c3c3;
  padding: 3px 5px;
  background-color: #ffffff;
}

/* file upload error dialog */

.file_upload_errors {
  margin: 0 0 5px 0;
  border: 1px solid #d12f19;
  padding: 10px;
  font-family: sans-serif;
  font-size: 8pt;
  line-height: 12pt;
  background-color: #ffffff;
}

.file_upload_errors .title {
  padding: 0 0 0 40px;
  color: #d12f19;
}

.file_upload_errors ul {
  list-style-position: inside;
  padding: 0 0 0 40px;
}

/* --------------- tabelofcontents.css --------------*/
.rtccontent .toc {
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.rtccontent .toc .tocheading {
  padding-left: 5px;
  padding-bottom: 10px;
  padding-top: 10px;
  margin: 0px;
  font-weight: bold;
}

.rtccontent .toc .tocitems {
  padding-bottom: 10px;
  padding-top: 10px;
  padding-left: 7px;
  margin-top: -1px;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
}

/* --------------- code example--------------*/
.rtccontent .codeexampleblock {
  white-space: pre;
  font-family: menlo, monaco, consolas, "courier new", monospace;
  font-size: 12px;
  line-height: 16px;
  padding: 10px 10px 10px 5px;
  margin-left: 55px;
  margin-right: 3px;
  border-radius: 4px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* fix for text/long code lines not wrapping */
.codeblock.contiguous,
.rtccontent .paragraphnode,
.rtccontent .codeexampleblock {
  overflow: auto;
}

/* fix the list styles overriden by site6 css */
.rtccontent ul.rtclistnode .rtclistitem {
  list-style-type: square !important;
}
.rtccontent .rtclistnode {
  padding-left: 40px;
  margin-left: 0px;
}
.rtccontent .rtclistitem {
  padding: 0px;
}

/* web-standards adds bullets so remove rtc bullets */
.rtccontent ul > li:before { 
  content: "";
}

/* fix image to render in original aspect ratio */
.rtccontent img[style*="height"] { 
  height:auto !important;
  max-width:none;
}
.mlc_editor .imagenode { 
  max-width:none;
}

/* hiding web image links */
.rtcimagedialog .urlradio   label,
.rtcimagedialog .urlradio,
.inputfield .urlfield {
  display: none;
}

/* editor ui changes */
.lti_editor {
  margin-bottom: 7px;
}
.mlc_editor .rtepane .linenode {
  padding-left: 10px;
}

/* help overlay */
.help-overlay.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1;
}
.help-overlay.btn-primary {
  border: 1px solid #2e6da4;
}
.add_guide_popover_overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  z-index: 19;
  background-color: rgba(0, 0, 0, 0.5);
}
.overlay_editor_foreground {
  background: rgba(0, 0, 0, 0);
  float: left;
  height: 352px;
  width: auto;
  overflow: visible;
  position: absolute;
  z-index: 22;
}
.add_guide_highlighted {
  z-index: 20;
  position: relative;
}
#rtc_editor_with_toolstrip .popover {
  z-index: 1036; /* fix for g2639211 */
}
body {
  --rtc-helpoverlay-border: red;
}
.add_guide_border {
  position: relative;
}
.add_guide_border:before {
  content: "";
  position: absolute;
  top: -2px;
  left: 2px;
  width: 0;
  height: 0;
  background: transparent;
  border: 2px dashed transparent;
  animation: animate_border_top_and_right 1s linear forwards;
}
.add_guide_border:after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 2px;
  width: 0;
  height: 0;
  background: transparent;
  border: 2px dashed transparent;
  animation: animate_border_bottom_and_left 1s linear forwards;
  animation-delay: 1s;
}
@keyframes animate_border_top_and_right {
  0% {
    width: 0;
    height: 0;
    border-top-color: var(--rtc-helpoverlay-border);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
  50% {
    width: 100%;
    height: 0;
    border-top-color: var(--rtc-helpoverlay-border);
    border-right-color: var(--rtc-helpoverlay-border);
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
  100% {
    width: 100%;
    height: 100%;
    border-top-color: var(--rtc-helpoverlay-border);
    border-right-color: var(--rtc-helpoverlay-border);
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
}
@keyframes animate_border_bottom_and_left {
  0% {
    width: 0;
    height: 0;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--rtc-helpoverlay-border);
    border-left-color: transparent;
  }
  50% {
    width: 100%;
    height: 0;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--rtc-helpoverlay-border);
    border-left-color: var(--rtc-helpoverlay-border);
  }
  100% {
    width: 100%;
    height: 100%;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--rtc-helpoverlay-border);
    border-left-color: var(--rtc-helpoverlay-border);
  }
}
.add_toolstrip_section_border {
  outline: 2px dashed var(--rtc-helpoverlay-border);
}
.overlay_number_guide {
  padding-top: 8px;
  color: #6f6f6f;
}
.reduce_toolstrip_height {
  height: 48px !important;
  margin: 2px !important;
  overflow: hidden;
}
.restore_toolstrip_height {
  height: 52px !important;
  margin: 0px !important;
}
.section_border {
  border: 2px dashed red;
}
.no_right_border {
  border-right-style: none;
}
.no_left_border {
  border-left-style: none;
}
.no_border {
  border: none;
}

/* matlab markup editor css */
.matlabmarkup-preview {
  display: none;
}
.custom_mm_tab {
  padding: 0px;
}
.mm_preview {
  min-height: 176px;
  background-color: white;
}
.mm_preview_placeholder div[class*="mm_preview"] {
  text-align: center;
  font-size: 16px;
  font-style: italic;
}
.mm_preview_no_text {
  color: #6f6f6f;
}
.mm_preview_error {
  color: #b7312c;
}

/* rtc context menu */
.menu {
  width: 150px;
  border-style: solid;
  border-width: 1px;
  border-color: grey;
  border-radius: 2px;
  background-color: rgb(249, 249, 249);
  box-shadow: 2px 2px 6px rgba(50, 50, 50, 0.25);
  position: fixed;
  display: none;
  z-index: 100;
  font-size: 13px;
}
.menu-item {
  padding: 4px 13px 4px 13px;
}
.menu-item:hover {
  background-color: rgb(46, 79, 162);
  cursor: pointer;
  color: white;
}

/* live eval supporting answers css */
.before-mss-call-alert {
  overflow-y: hidden;
  transition-property: all;
  transition-duration: 1.5s;
  transition-timing-function: cubic-bezier(0, 1, 1.5, 1);
  max-height: 0px;
}
.before-mss-call-alert.open {
  max-height: 500px;
}
.before-mss-call-alert,
.after-mss-call-alert {
  margin: 0 auto;
  min-width: 250px;
  width: 35%;
  max-width: 350px;
}
.live_eval_banner {
  position: fixed;
  width: 100%;
  z-index: 948;
}
.live_eval_in_progress_mask {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 901;
  background-color: rgba(0, 0, 0, 0.3);
}
.stop_execution_in_alert {
  float: right;
}
.stop_icon_in_alert {
  float: left;
  margin-right: 5px;
  margin-top: 2px;
}

.ran_in_label {
  float: right;
}
.ran_in_logo_div   div.answer_content {
  margin-top: 0px;
}
a.ran_in_tooltip,
a.ran_in_tooltip:hover,
a.ran_in_tooltip:focus,
a.ran_in_tooltip:active {
  text-decoration: none;
  color: inherit;
}
.r2020a_logo {
  background-image: url(/uploads/image/msriran_in_logo/r2020a.svg);
  width: 62px;
  height: 15px;
  display: inline-block;
  background-size: 62px 20px;
}
.r2020b_logo {
  background-image: url(/uploads/image/msriran_in_logo/r2020b.svg);
  width: 62px;
  height: 15px;
  display: inline-block;
  background-size: 62px 20px;
}
.r2021a_logo {
  background-image: url(/uploads/image/msriran_in_logo/r2021a.svg);
  width: 62px;
  height: 15px;
  display: inline-block;
  background-size: 62px 20px;
}
.r2021b_logo {
  background-image: url(/uploads/image/msriran_in_logo/r2021b.svg);
  width: 62px;
  height: 15px;
  display: inline-block;
  background-size: 62px 20px;
}

.r2022a_logo {
  background-image: url(/uploads/image/msriran_in_logo/r2022a.svg);
  width: 62px;
  height: 15px;
  display: inline-block;
  background-size: 62px 20px;
}

.r2022b_logo {
  background-image: url(/uploads/image/msriran_in_logo/r2022b.svg);
  width: 62px;
  height: 15px;
  display: inline-block;
  background-size: 62px 20px;
}

.r2023a_logo {
  background-image: url(/uploads/image/msriran_in_logo/r2023a.svg);
  width: 62px;
  height: 15px;
  display: inline-block;
  background-size: 62px 20px;
}

/* to made the background grey for code blocks */
.livecode .rtepane .scrollpane:not(.codehidden) .codeblock {
  background-color: #f7f7f7 !important;
}

/* removing output arrangement options */
.dijitcontentpane.rightmargincontainer {
  display: none;
  margin-right: -28px;
}
/* removing busy indicator */
.mlc_editor .multiviewrtc .busyholder, .busyholder {
  display: none;
}
/* removing figure palette from logged out view */
.figurefloatingpalette {
  display: none;
}

.overlay_editor_for_live_eval {
  background: rgba(0, 0, 0, 0);
  z-index: 21;
}

/* handling data truncation ellipses */
.rtccontent .matrixelement .verticalellipsis,
.rtccontent .textelement .verticalellipsis,
.rtcdatatipelement .matrixelement .verticalellipsis,
.rtcdatatipelement .textelement .verticalellipsis {
  margin-left: 35px;
  background-image: ;
  background-repeat: no-repeat;
  height: 30px;
  width: 12px;
}
.rtccontent .matrixelement .horizontalellipsis,
.rtcdatatipelement .matrixelement .horizontalellipsis {
  display: none;
}

/* live eval ends */

.file_exchange_toolstrip
  .toolstrip
  div[data-tag="motwtoolstrip.liveeditortab.insert.attachmentscolumn"] {
  display: none;
}

/* mentions starts */
.mentions-view {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  margin-top: 20px;
  margin-left: -20px;
  background: white;
  color: black;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 11110 !important;
  font: 13px/1.46 arial, helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.42857143;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  max-width: 100%;
}

.mentions-view h5 {
  color: #333;
  margin-top: 0;
  margin-bottom: -1px;
  font-size: 16px;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.mentions-view .cur {
  color: #555;
  text-decoration: none;
  background-color: #f5f5f5;
}
.mentions-view .cur small {
  color: white;
}
.mentions-view strong {
  color: #3366ff;
}
.mentions-view .cur strong {
  color: white;
  font: bold;
}
.mentions-view ul {
  list-style: none;
  padding: 0;
  margin: auto;
  max-height: 200px;
  overflow-y: auto;
}
.mentions-view ul li {
  display: block;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  margin: 0px;
  padding: 10px 15px;
}
.mentions-view ul li:first-child {
  border-top: 1px solid #ddd;
}
.mentions-view small {
  font-size: smaller;
  color: #777;
  font-weight: normal;
}

.mentions-heading{
  background-color: #e6e6e6
}

.mentions-img {
  display: inline-block;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  vertical-align: bottom;
  margin-right: 4px;
}

/* mention someone other than yourself */
.sectionblock :not(.codeblock) a[class*="mentioned_myself"],
.sectionblock :not(.codeblock) a[class*="mentioned_myself"]:visited,
.sectionblock :not(.codeblock) a[class*="mentioned_myself"]:hover {
  background-color: #f5f5f5;
  padding-right: 2px;
  padding-left: 1px;
  border-radius: 5px;
}

/* mention yourself */
.sectionblock :not(.codeblock) a[class*="mentioned_myself"],
.sectionblock :not(.codeblock) a[class*="mentioned_myself"]:visited,
.sectionblock :not(.codeblock) a[class*="mentioned_myself"]:hover {
  background-color: #0076a8; /* link blue*/
  color: white;
  padding-right: 4px;
  padding-left: 2px;
  border-radius: 5px;
}

.pid {
  display: none;
}

/* mentions highlight */
@keyframes mentions_highlight {
  0% {
    background: #ffff99;
  }
  100% {
    background: #f7f7f7;
  }
}
.mentions_highlight {
  animation: mentions_highlight 3s;
}
/* mentions ends */

/* code detected */
.rtc_tagline {
  display: none;
}
@media screen and (min-width: 292px) {
  .rtc_tagline {
    display: block;
    padding: 3px;
    border-width: 0px 1px 1px 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
    background-color: #f5f5f5;
    margin: -7px 1px 7px 1px;
    font-size: 10px;
    overflow: hidden;
  }
  .tagline_text {
    padding: 7px 5px 5px 7px;
    margin: -5px;
  }
}

.run_detected_tagline {
  color: #187dbb;
  font-size: 14px;
  border: 0px;
}

.run_detected_logo {
  display: inline-block;
}

.tagline_text {
  height: 33px;
}

div.run_detected_tagline {
  animation: 0.5s slide-down;
}

@keyframes slide-down {
  0% {
    transform: translatey(-33px);
  }
  100% {
    transform: translatey(0);opacity:1;
  }
}
