/* Tiptap / ProseMirror editor and table styles (moved from the old application.tailwind.css, SAM1-28). */

.tiptap p.is-editor-empty:first-child::before {
  color: #adb5bd;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}

.tiptap:focus {
  outline: none;
}

/* TipTap Table Styles */
.tiptap table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.tiptap table td,
.tiptap table th {
  min-width: 1em;
  border: 1px solid #cbd5e1; /* slate-300 */
  padding: 8px;
  vertical-align: top;
  box-sizing: border-box;
  position: relative;
}

.tiptap table th {
  font-weight: bold;
  text-align: left;
  background-color: #f1f5f9; /* slate-100 */
}

.ProseMirror table {
  width: 100%;
  border-collapse: collapse;
}

.ProseMirror th,
.ProseMirror td {
  border: 1px solid #cbd5e1;
  padding: 8px;
}

.ProseMirror th {
  background: #f8fafc;
}

.ProseMirror.ProseMirror-focused p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #adb5bd;
  pointer-events: none;
  height: 0;
}
