.tiptap {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 1.25rem;
}

.tiptap:focus-visible {
    outline: none!important;
}

.tiptap p.is-empty::before,
.tiptap i.is-empty::before,
.tiptap h1.is-empty::before,
.tiptap h2.is-empty::before,
.tiptap h3.is-empty::before,
.tiptap h4.is-empty::before,
.tiptap h5.is-empty::before,
.tiptap h6.is-empty::before,
.tiptap blockquote.is-empty::before,
.tiptap li.is-empty::before
{
    color: #adb5bd;
    content: attr(data-placeholder);
    float: left;
    height: 0;
    pointer-events: none;
}

:global(.tiptap.ProseMirror-focused) {
    outline: none;
}

.tiptap code {
    background: var(--grey-5);
    color: var(--white-2);
    padding: 2px 4px;
    border-radius: 4px;
}

.tiptap pre {
    background: var(--black-2);
    color: var(--blue-5);
    padding: 15px;
    border-radius: 4px;
}

.tiptap pre code {
    background: transparent;
    color: var(--blue-5);
    padding: 0;
    border-radius: 0;
}

span.suggestion {
    position: relative;
    color: var(--blue);
    z-index: 2;
    padding: 0 2px;
}

span.suggestion::before {
    content: "";
    position: absolute;
    border-radius: 4px;
    left: -2px;
    right: -2px;
    top: -1px;
    bottom: -1px;
    background: var(--blue);
    opacity: 0.125;
    z-index: -1;
}


/* Basic editor styles */
/* Basic editor styles */
.tiptap {
    /* Table-specific styling */
  }
  .tiptap :first-child {
    margin-top: 0;
  }
  .tiptap table {
    border-collapse: collapse;
    margin: 0;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
  }
  .tiptap table td,
  .tiptap table th {
    border: 1px solid var(--grey-3);
    box-sizing: border-box;
    min-width: 1em;
    padding: 6px 8px;
    position: relative;
    vertical-align: top;
  }
  .tiptap table td > *,
  .tiptap table th > * {
    margin-bottom: 0;
  }
  .tiptap table th {
    background-color: var(--grey-1);
    font-weight: bold;
    text-align: left;
  }
  .tiptap table .selectedCell:after {
    background: var(--grey-2);
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
  }
  .tiptap table .column-resize-handle {
    background-color: var(--purple);
    bottom: -2px;
    pointer-events: none;
    position: absolute;
    right: -2px;
    top: 0;
    width: 4px;
  }
  .tiptap .tableWrapper {
    margin: 1.5rem 0;
    overflow-x: auto;
  }
  .tiptap.resize-cursor {
    cursor: ew-resize;
    cursor: col-resize;
  }

.tiptap hr, .ProseMirror-trailingBreak {
  width: 100%;
  height: 0.5px;
  background: var(--grey-3);
}

.ProseMirror-selectednode {
  position: relative;
}

img.ProseMirror-selectednode {
  outline: 2px solid var(--blue);
}

.ProseMirror-selectednode:before {
  content: "";
  user-select: none;
  pointer-events: none;
  position: absolute;
  z-index: 0;
  top: -2.5px;
  left: -2.5px;
  right: -2.5px;
  bottom: -2.5px;
  border-radius: 8px;
  outline: 2px solid var(--blue);
}

.md-doc-image {
    border-radius: 8px;
}