/* Solvia overrides on top of the NiceAdmin template styles. */

.modal-backdrop {
  z-index: 1040;
}

.modal.show {
  z-index: 1050;
}

.rich-text-editor-toolbar .btn {
  line-height: 1;
}

.rich-text-editor-content {
  min-height: 4.5em;
  max-height: 16em;
  overflow-y: auto;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
}

.rich-text-editor-content .tiptap {
  outline: none;
}

.rich-text-editor-content p {
  margin: 0 0 0.5em;
}

.rich-text-editor-content p:last-child {
  margin-bottom: 0;
}

.rich-text-editor-content ul,
.rich-text-editor-content ol {
  margin: 0 0 0.5em;
  padding-left: 1.5em;
}

/* TipTap placeholder extension: renders as a data attribute on the first
   empty paragraph rather than a real DOM node. */
.rich-text-editor-content .tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #adb5bd;
  pointer-events: none;
  height: 0;
}

.rich-content p {
  margin: 0 0 0.5em;
}

.rich-content p:last-child {
  margin-bottom: 0;
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 0.5em;
  padding-left: 1.5em;
}
