/* TABLE MENU */
.editor-table-menu {
  border-color: #333;
  background: #1a1a1a;
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-family: inherit;
}

.editor-table-menu__title,
.editor-table-menu__size-label,
.editor-table-menu__hint {
  color: var(--text-muted);
}

.editor-table-menu__number {
  border-color: #333;
  background: #0e0e0e;
  color: #ddd;
}

.editor-table-menu__number:focus {
  outline: none;
  border-color: var(--primary-accent);
}

.editor-table-menu__action {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.editor-table-menu__action:hover:not(:disabled),
.editor-table-menu__action:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.editor-table-menu__action:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 1px;
}

.editor-table-menu__action:disabled {
  color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.editor-table-menu__action.is-primary {
  border-color: var(--primary-accent);
  background: var(--primary-accent);
  color: var(--text-light);
}

.editor-table-menu__action.is-primary:hover:not(:disabled) {
  border-color: var(--primary-accent-hover);
  background: var(--primary-accent-hover);
}

.editor-table-menu__action.is-danger:hover:not(:disabled) {
  border-color: rgba(var(--primary-accent-rgb), 0.5);
  background: rgba(var(--primary-accent-rgb), 0.12);
  color: #ff6b81;
}

/* TABLES IN THE EDITOR */
.editor-content table {
  font-size: 0.9em;
}

.editor-content th,
.editor-content td {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.editor-content th,
.editor-content tr:first-child > td {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.editor-content tbody tr:nth-child(even) > td {
  background: rgba(255, 255, 255, 0.02);
}

.editor-content th > p,
.editor-content td > p {
  margin: 0;
}

.editor-content .selectedCell::after {
  background: rgba(var(--primary-accent-rgb), 0.18);
}
