/* ProseMirror core styles (MIT); see vendor/prosemirror-LICENSES.txt. */
.ProseMirror {
  position: relative;
}

.ProseMirror {
  word-wrap: break-word;
  white-space: pre-wrap;
  white-space: break-spaces;
  -webkit-font-variant-ligatures: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}

.ProseMirror pre {
  white-space: pre-wrap;
}

.ProseMirror li {
  position: relative;
}

.ProseMirror-hideselection *::selection { background: transparent; }
.ProseMirror-hideselection *::-moz-selection { background: transparent; }
.ProseMirror-hideselection { caret-color: transparent; }

/* See https://code.haverbeke.berlin/prosemirror/prosemirror/issues/1421#issuecomment-1759320191 */
.ProseMirror [draggable][contenteditable=false] { user-select: text }

.ProseMirror-selectednode {
  outline: 2px solid #8cf;
}

/* Make sure li selections wrap around markers */

li.ProseMirror-selectednode {
  outline: none;
}

li.ProseMirror-selectednode:after {
  content: "";
  position: absolute;
  left: -32px;
  right: -2px; top: -2px; bottom: -2px;
  border: 2px solid #8cf;
  pointer-events: none;
}

/* Protect against generic img rules */

img.ProseMirror-separator {
  display: inline !important;
  border: none !important;
  margin: 0 !important;
}

.ProseMirror-gapcursor {
  display: none;
  pointer-events: none;
  position: absolute;
}

.ProseMirror-gapcursor:after {
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  width: 20px;
  border-top: 1px solid black;
  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes ProseMirror-cursor-blink {
  to {
    visibility: hidden;
  }
}

/* One native editing surface, with no per-line hit areas or selection gutter. */
.rich-editor-host{min-width:0;flex:1;}
.moa-rich-document{min-height:240px;outline:none;padding:8px 0 80px;line-height:1.75;font-family:var(--ui-font-family,inherit);font-size:var(--ui-font-size,16px);color:var(--text,#273440);overflow-wrap:anywhere;touch-action:auto;caret-color:#285f85;}
.moa-rich-document p{margin:0 0 .7em;}
.moa-rich-document[data-empty=true]::before{content:attr(data-placeholder);position:absolute;top:8px;left:0;color:#94a0ad;pointer-events:none;}
.moa-rich-document h1,.moa-rich-document h2,.moa-rich-document h3,.moa-rich-document h4,.moa-rich-document h5,.moa-rich-document h6{font-weight:700;line-height:1.45;margin:1em 0 .5em;}
.moa-rich-document h1{font-size:1.8em}.moa-rich-document h2{font-size:1.5em}.moa-rich-document h3{font-size:1.25em}
.moa-rich-document strong{font-weight:700;font-synthesis:weight;}
.moa-rich-document em{font-style:italic;}
.moa-rich-document a{color:#286a98;text-decoration:underline;}
.moa-rich-document blockquote{border-left:3px solid #87b3ce;margin:.8em 0;padding:.2em 1em;color:#546a7a;}
.moa-rich-document pre{background:#f1f5f8;border:1px solid #e1e8ee;border-radius:8px;padding:12px;overflow:auto;tab-size:2;}
.moa-rich-document code{font-family:ui-monospace,monospace;font-size:.9em;background:#eef2f5;border-radius:3px;padding:.1em .2em;}
.moa-rich-document pre code{background:none;padding:0;}
.moa-rich-document ul,.moa-rich-document ol{padding-left:1.5em;margin:.5em 0 .8em;}
.moa-rich-document li{margin:.2em 0;}
.moa-rich-document li p{margin:0 0 .15em;}
.moa-rich-document li.rich-task{list-style:none;margin-left:-1.35em;padding-left:1.5em;}
.rich-task-toggle{position:absolute;left:0;top:.1em;display:inline-flex;align-items:center;justify-content:center;width:22px;height:24px;user-select:none;}
.rich-task-toggle .task-checkbox{margin:0;width:16px;height:16px;accent-color:#347fab;cursor:pointer;}
.rich-list-content{min-width:0;}
.rich-table-wrap{max-width:100%;overflow-x:auto;margin:.8em 0;overscroll-behavior-x:contain;}
.moa-rich-document table{border-collapse:collapse;table-layout:fixed;width:max-content;max-width:none;overflow:hidden;font-size:inherit;}
.moa-rich-document td,.moa-rich-document th{position:relative;box-sizing:border-box;min-width:120px;width:160px;max-width:300px;border:1px solid #cbd9e3;padding:7px 10px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap;}
.moa-rich-document th{background:#edf4f8;font-weight:700;}
.moa-rich-document td p,.moa-rich-document th p{margin:0;}
.moa-rich-document .selectedCell:after{content:'';position:absolute;inset:0;pointer-events:none;background:#75b3dc3b;z-index:1;}
.rich-table-actions{display:inline-flex;gap:3px;flex:none;align-items:center;border-right:1px solid #d4e1ea;padding-right:5px;margin-right:4px;}
.format-toolbar .rich-table-actions button{font-size:11px;width:auto;padding:0 7px;color:#28668f;background:#e7f1f7;}
.format-toolbar .rich-table-actions button.danger{color:#a23d47;background:#fff0f1;}
.rich-image{position:relative;display:inline-block;max-width:100%;line-height:0;vertical-align:bottom;margin:4px 0;}
.rich-image img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;}
.rich-image-tools{display:none;position:absolute;top:4px;left:4px;gap:4px;background:#fffef2eF;border:1px solid #cedae3;border-radius:6px;padding:3px;line-height:1.3;box-shadow:0 2px 7px #233b4a20;}
.rich-image-tools button{font-size:11px;padding:4px 6px;border:0;background:#edf4f8;border-radius:4px;white-space:nowrap;}
.rich-image-tools button[data-image-action=delete]{color:#a23d47;background:#fff0f1;}
.rich-image:hover .rich-image-tools,.rich-image:focus-within .rich-image-tools,.rich-image.ProseMirror-selectednode .rich-image-tools{display:flex;}
.rich-image-resize{position:absolute;bottom:1px;right:1px;width:28px;height:28px;padding:0;border:2px solid white;border-radius:5px;background:#307eac;color:white;cursor:nwse-resize;touch-action:none;line-height:24px;font-size:20px;box-shadow:0 1px 5px #25435440;}
.rich-image.resizing{outline:2px solid #5ba1ce;}
.moa-rich-document hr{border:0;border-top:2px solid #cfdee7;margin:1.4em 0;}
.redo-icon{display:flex;transform:scaleX(-1);}
.format-toolbar button:disabled{opacity:.35;}
.moa-rich-document ::selection{background:#b9dcef;}
@media(max-width:650px){.moa-rich-document{min-height:55vh;padding-bottom:90px;}.moa-rich-document td,.moa-rich-document th{width:140px;min-width:110px;padding:6px 8px;}.rich-image-tools{top:2px;left:2px;}}

.ProseMirror-focused .ProseMirror-gapcursor {
  display: block;
}

