/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 */

.editor-container {
  flex: 1;
  border-radius: 2px;
  max-width: 600px;
  color: #000;
  font-weight: 400;
  text-align: left;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.editor-inner {
  position: relative;
}

.txt {
  resize: none;
  caret-color: rgb(5, 5, 5);
  position: relative;
  tab-size: 1;
  outline: 0;
  min-width: 20px;
  caret-color: #444;
}

.editor-placeholder {
  color: #999;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  top: 0px;
  left: 0px;
  font-size: 15px;
}

.text_ltr {
  text-align: left;
}

.text_rtl {
  text-align: right;
}

.text_paragraph {
  margin: 0;
  position: relative;
}

.text_quote {
  margin: 0;
  margin-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  color: rgb(101, 103, 107);
  border-left-color: rgb(206, 208, 212);
  border-left-width: 4px;
  border-left-style: solid;
  padding-left: 16px;
}

.text_h1 {
  font-size: 24px;
  color: rgb(5, 5, 5);
  font-weight: 400;
  margin: 0;
}

.text_h2 {
  font-size: 15px;
  color: rgb(101, 103, 107);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.text_h3 {
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
}

.text_textBold {
  font-weight: bold;
}

.text_textItalic {
  font-style: italic;
}

.text_textUnderline {
  text-decoration: underline;
}

.text_textStrikethrough {
  text-decoration: line-through;
}

.text_textUnderlineStrikethrough {
  text-decoration: underline line-through;
}

.text_textSubscript {
  font-size: 0.8em;
  vertical-align: sub !important;
}

.text_textSuperscript {
  font-size: 0.8em;
  vertical-align: super;
}

.text_textCode {
  background-color: rgb(240, 242, 245);
  padding: 1px 0.25rem;
  font-family: Menlo, Consolas, Monaco, monospace;
  font-size: 94%;
}

.text_hashtag {
  background-color: rgba(88, 144, 255, 0.15);
  border-bottom: 1px solid rgba(88, 144, 255, 0.3);
}

.text_link {
  color: rgb(33, 111, 219);
  text-decoration: none;
}

.text_link:hover {
  text-decoration: underline;
  cursor: pointer;
}

.text_code {
  background-color: rgb(240, 242, 245);
  font-family: Menlo, Consolas, Monaco, monospace;
  display: block;
  padding: 8px 8px 8px 52px;
  line-height: 1.53;
  font-size: 13px;
  margin: 0;
  margin-top: 8px;
  margin-bottom: 8px;
  tab-size: 2;
  /* white-space: pre; */
  overflow-x: auto;
  position: relative;
}

.text_code:before {
  content: attr(data-gutter);
  position: absolute;
  background-color: #eee;
  left: 0;
  top: 0;
  border-right: 1px solid #ccc;
  padding: 8px;
  color: #777;
  white-space: pre-wrap;
  text-align: right;
  min-width: 25px;
}

.text_table {
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
  overflow-y: scroll;
  table-layout: fixed;
  width: calc(100% - 25px);
  margin: 30px 0;
}

.text_tableSelected {
  outline: 2px solid rgb(60, 132, 244);
}

.text_tableCell {
  border: 1px solid #bbb;
  min-width: 75px;
  vertical-align: top;
  text-align: start;
  padding: 6px 8px;
  position: relative;
  cursor: default;
  outline: none;
}

.text_tableCellSortedIndicator {
  display: block;
  opacity: 0.5;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #999;
}

.text_tableCellResizer {
  position: absolute;
  right: -4px;
  height: 100%;
  width: 8px;
  cursor: ew-resize;
  z-index: 10;
  top: 0;
}

.text_tableCellHeader {
  background-color: #f2f3f5;
  text-align: start;
}

.text_tableCellSelected {
  background-color: #c9dbf0;
}

.text_tableCellPrimarySelected {
  border: 2px solid rgb(60, 132, 244);
  display: block;
  height: calc(100% - 2px);
  position: absolute;
  width: calc(100% - 2px);
  left: -1px;
  top: -1px;
  z-index: 2;
}

.text_tableCellEditing {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  border-radius: 3px;
}

.text_tableAddColumns {
  position: absolute;
  top: 0;
  width: 20px;
  background-color: #eee;
  height: 100%;
  right: 0;
  animation: table-controls 0.2s ease;
  border: 0;
  cursor: pointer;
}

.text_tableAddColumns:hover {
  background-color: #c9dbf0;
}

.text_tableAddRows {
  position: absolute;
  bottom: -25px;
  width: calc(100% - 25px);
  background-color: #eee;
  height: 20px;
  left: 0;
  animation: table-controls 0.2s ease;
  border: 0;
  cursor: pointer;
}

.text_tableAddRows:hover {
  background-color: #c9dbf0;
}

@keyframes table-controls {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.text_tableCellResizeRuler {
  display: block;
  position: absolute;
  width: 1px;
  background-color: rgb(60, 132, 244);
  height: 100%;
  top: 0;
}

.text_tableCellActionButtonContainer {
  display: block;
  right: 5px;
  top: 6px;
  position: absolute;
  z-index: 4;
  width: 20px;
  height: 20px;
}

.text_tableCellActionButton {
  background-color: #eee;
  display: block;
  border: 0;
  border-radius: 20px;
  width: 20px;
  height: 20px;
  color: #222;
  cursor: pointer;
}

.text_tableCellActionButton:hover {
  background-color: #ddd;
}

.text_characterLimit {
  display: inline;
  background-color: #ffbbbb !important;
}

.text_ol1 {
  padding: 0;
  margin: 0;
  margin-left: 5px;
  list-style-position: inside;
  list-style-type: decimal;
}

.text_ol2 {
  padding: 0;
  margin: 0;
  margin-left: 5px;
  list-style-type: upper-alpha;
  list-style-position: inside;
}

.text_ol3 {
  padding: 0;
  margin: 0;
  margin-left: 5px;
  list-style-type: lower-alpha;
  list-style-position: inside;
}

.text_ol4 {
  padding: 0;
  margin: 0;
  margin-left: 5px;
  list-style-type: upper-roman;
  list-style-position: inside;
}

.text_ol5 {
  padding: 0;
  margin: 0;
  margin-left: 5px;
  list-style-type: lower-roman;
  list-style-position: inside;
}

.text_ul {
  padding: 0;
  margin: 0;
  margin-left: 5px;
  list-style-position: inside;
}

.text_ul .text_listItem {
  list-style-type: disc;
}

.text_listItem {
  margin: 0 10px;
}

.text_listItemChecked,
.text_listItemUnchecked {
  position: relative;
  margin-left: 8px;
  margin-right: 8px;
  padding-left: 24px;
  padding-right: 24px;
  list-style-type: none;
  outline: none;
}

.text_listItemChecked {
  text-decoration: line-through;
}

.text_listItemUnchecked:before,
.text_listItemChecked:before {
  content: "";
  width: 16px;
  height: 16px;
  top: 2px;
  left: 0;
  cursor: pointer;
  display: block;
  background-size: cover;
  position: absolute;
}

.text_listItemUnchecked[dir="rtl"]:before,
.text_listItemChecked[dir="rtl"]:before {
  left: auto;
  right: 0;
}

.text_listItemUnchecked:focus:before,
.text_listItemChecked:focus:before {
  box-shadow: 0 0 0 2px #a6cdfe;
  border-radius: 2px;
}

.text_listItemUnchecked:before {
  border: 1px solid #999;
  border-radius: 2px;
}

.text_listItemChecked:before {
  border: 1px solid rgb(61, 135, 245);
  border-radius: 2px;
  background-color: #3d87f5;
  background-repeat: no-repeat;
}

.text_listItemChecked:after {
  content: "";
  cursor: pointer;
  border-color: #fff;
  border-style: solid;
  position: absolute;
  display: block;
  top: 6px;
  width: 3px;
  left: 7px;
  right: 7px;
  height: 6px;
  transform: rotate(45deg);
  border-width: 0 2px 2px 0;
}

.text_nestedListItem {
  list-style-type: none;
}

.text_nestedListItem:before,
.text_nestedListItem:after {
  display: none;
}

.text_tokenComment {
  color: slategray;
}

.text_tokenPunctuation {
  color: #999;
}

.text_tokenProperty {
  color: #905;
}

.text_tokenSelector {
  color: #690;
}

.text_tokenOperator {
  color: #9a6e3a;
}

.text_tokenAttr {
  color: #07a;
}

.text_tokenVariable {
  color: #e90;
}

.text_tokenFunction {
  color: #dd4a68;
}

.text_mark {
  background: rgba(255, 212, 0, 0.14);
  border-bottom: 2px solid rgba(255, 212, 0, 0.3);
  padding-bottom: 2px;
}

.text_markOverlap {
  background: rgba(255, 212, 0, 0.3);
  border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}

.text_mark.selected {
  background: rgba(255, 212, 0, 0.5);
  border-bottom: 2px solid rgba(255, 212, 0, 1);
}

.text_markOverlap.selected {
  background: rgba(255, 212, 0, 0.7);
  border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}


.text_embedBlockFocus {
  outline: 2px solid rgb(60, 132, 244);
}