.form-input {
  background-color: var(--color-grey);
  border: 1px solid var(--color-lightgreen);
  border-radius: 5px;
  padding: 3px;
  max-width: 55vw;
}

.form-container {
  width: 60vw;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.inline-form-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.inline-form-group label {
  white-space: nowrap;
}
.inline-form-group input {
  flex: 1;
  max-width: 100%;
}

.tiptap-editor {
  @apply prose prose-sm max-w-full;
  min-height: 160px;
  cursor: text;
  background-color: var(--color-grey);

  border: 1px solid var(--color-lightgreen);
  border-radius: 5px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 1rem; /* Increased from 4px for better clickability */
  position: relative; /* Required for placeholder (optional) */
}

.tiptap-editor:focus-within {
  border: 2px solid #0b0b0b;
  box-shadow: 0 0 0 2px rgba(199, 210, 254, 0.3);
}

.ProseMirror {
  min-height: 160px;
  outline: none;
  cursor: text;
}

.ProseMirror:focus {
  outline: none;
  box-shadow: none;
}

/* Add borders and spacing to table cells */
.tiptap-editor table {
  border-collapse: collapse; /* Merge borders */
  width: 100%; /* optional */
}

.tiptap-editor th,
.tiptap-editor td {
  border: 1px solid #ccc; /* light gray border */
  padding: 4px;
}

/* Optional: style header cells */
.tiptap-editor th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.tiptap-content table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid #ccc;
}

.tiptap-content th,
.tiptap-content td {
  border: 1px solid #ccc;
  padding: 8px;
  word-break: break-word;
}

.tiptap-content th {
  background-color: #f9fafb;
  font-weight: bold;
}

.tiptap-content p {
  margin: 0 0 1em;
}

th,
td {
  position: relative;
}

.column-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-lightgreen);
  cursor: col-resize;
  z-index: 10;
}

.tiptap-content ul,
.tiptap-content ol {
  list-style: initial !important;
  padding-left: 2rem !important;
  margin-left: 0 !important;
}

.tiptap-content ul li,
.tiptap-content ol li {
  display: list-item !important;
}

.tiptap-editor ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.tiptap-editor ol,
.tiptap-content ol {
  list-style-type: decimal !important;
  padding-left: 1.5rem;
}

.tiptap-editor li p {
  display: inline;
}

button {
  position: relative;
  cursor: pointer;
}

button:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-green);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 10;
}

.tiptap-toolbar i {
  font-size: 1.3rem;
  margin-left: 4px;
}

.select2-container {
  max-width: 720px; /* ou la largeur que tu souhaites */
  width: 100% !important;
}

.tiptap-content img {
  max-width: 500px;
  height: auto;
}
