
.text-document-editor[data-v-16370ef5] {
  width: 100%;
}
.editor-header[data-v-16370ef5] {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 16px;
}
.editor-actions[data-v-16370ef5] {
  display: flex;
  gap: 8px;
}
.fullscreen-btn[data-v-16370ef5] {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fullscreen-btn[data-v-16370ef5]:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.1);
}
.rich-editor-container[data-v-16370ef5] {
  position: relative;
}
.resize-guide[data-v-16370ef5] {
  position: absolute;
  width: 1px;
  background: #178a2c;
  z-index: 10;
}
.table-overlay[data-v-16370ef5] {
  position: absolute;
  border: 1px dashed #178a2c;
  pointer-events: none;
  z-index: 9;
}
.table-overlay .handle[data-v-16370ef5] {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #178a2c;
  border-radius: 2px;
  pointer-events: auto;
  cursor: pointer;
}
.table-overlay .handle.move[data-v-16370ef5] {
  left: -14px;
  top: -14px;
  cursor: grab;
}
.table-overlay .handle.br[data-v-16370ef5] {
  right: -6px;
  bottom: -6px;
  cursor: se-resize;
}
.table-overlay .handle.l[data-v-16370ef5] {
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}
.table-overlay .handle.indent[data-v-16370ef5] {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
}
.insert-guide[data-v-16370ef5] {
  position: absolute;
  height: 2px;
  background: #21ba45;
  z-index: 8;
}

/* Image overlay */
.image-overlay[data-v-16370ef5] {
  position: absolute;
  border: 1px dashed #1a73e8;
  pointer-events: none;
  z-index: 9;
}
.image-overlay .handle[data-v-16370ef5] {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #1a73e8;
  border-radius: 2px;
  pointer-events: auto;
  cursor: pointer;
}
.image-overlay .handle.move[data-v-16370ef5] {
  left: -14px;
  top: -14px;
  cursor: grab;
  width: 14px;
  height: 14px;
}
.image-overlay .handle.indent[data-v-16370ef5] {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
}
.image-overlay .handle.tl[data-v-16370ef5] { left: -6px; top: -6px; cursor: nw-resize;
}
.image-overlay .handle.tr[data-v-16370ef5] { right: -6px; top: -6px; cursor: ne-resize;
}
.image-overlay .handle.bl[data-v-16370ef5] { left: -6px; bottom: -6px; cursor: sw-resize;
}
.image-overlay .handle.br[data-v-16370ef5] { right: -6px; bottom: -6px; cursor: se-resize;
}
.image-overlay .handle.l[data-v-16370ef5] { left: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize;
}
.image-overlay .handle.r[data-v-16370ef5] { right: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize;
}
.image-overlay .handle.t[data-v-16370ef5] { top: -6px; left: 50%; transform: translateX(-50%); cursor: ns-resize;
}
.image-overlay .handle.b[data-v-16370ef5] { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: ns-resize;
}
.rich-text-editor[data-v-16370ef5] {
  background: white;
  border-radius: 4px;
  overflow: hidden;
}
.rich-text-editor[data-v-16370ef5] .q-editor__content {
  padding: 20px;
  line-height: 1.6;
  font-size: 14px;
  /* Ensure floats do not overflow the container */
  overflow: auto;
}
.rich-text-editor[data-v-16370ef5] .q-editor__toolbar {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 4px 4px 0 0;
}
.rich-text-editor[data-v-16370ef5] .q-editor__toolbar .q-btn {
  border-radius: 4px;
  margin: 2px;
  min-width: 32px;
  min-height: 32px;
}
.rich-text-editor[data-v-16370ef5] .q-editor__toolbar .q-btn:hover {
  background: rgba(33, 186, 69, 0.1);
}

/* Table default classes for newly inserted tables */
.dms-table[data-v-16370ef5] {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.dms-table .dms-cell[data-v-16370ef5] {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

/* Image Upload Styles */
.upload-area[data-v-16370ef5] {
  padding: 16px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}
.image-preview[data-v-16370ef5] {
  text-align: center;
}
.preview-image[data-v-16370ef5] {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

/* Table Preview Styles */
.table-preview[data-v-16370ef5] {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}
.table-grid[data-v-16370ef5] {
  display: grid;
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.table-row[data-v-16370ef5] {
  display: contents;
}

/* Imported Table Styles */
.table-imported[data-v-16370ef5] {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid #e0e0e0;
  background: white;
}
.table-imported th[data-v-16370ef5],
.table-imported td[data-v-16370ef5] {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 80px;
}
.table-imported th[data-v-16370ef5] {
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}
.table-imported tr[data-v-16370ef5]:nth-child(even) {
  background-color: #f8f9fa;
}
.table-imported tr[data-v-16370ef5]:hover {
  background-color: #e9ecef;
}

/* Image wrapping */
.img-wrap[data-v-16370ef5] {
  display: inline-block;
  max-width: 100%;
}
.img-wrap.left[data-v-16370ef5] {
  float: left;
  margin: 0 16px 8px 0;
}
.img-wrap.right[data-v-16370ef5] {
  float: right;
  margin: 0 0 8px 16px;
}
.img-wrap.break[data-v-16370ef5] {
  display: block;
  float: none;
  clear: both;
  margin: 12px auto;
}
.table-cell[data-v-16370ef5] {
  background: white;
  min-height: 20px;
  border: 1px solid #ddd;
}
.modal-card[data-v-16370ef5] {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Responsive Design */
@media (max-width: 768px) {
.rich-text-editor[data-v-16370ef5] .q-editor__content {
    min-height: 300px;
    padding: 16px;
}
}
