/* Three-dots trigger button rendered inside the table cell — borderless
 * by default; the background only shows on hover/focus. */
.trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  font-size: 15.4px;
}
.trigger:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Portal menu — position is set inline (fixed, computed from trigger rect). */
.menu {
  width: 200px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  padding: 6px;
  animation: rowMenuIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rowMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul li {
  margin: 2px 0;
}

.menu ul li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14.3px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: left;
}

.menu ul li button i {
  font-size: 16.5px;
  color: var(--text-muted);
}

.menu ul li button:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.menu ul li button:hover i {
  color: var(--primary);
}

.menu ul li button.delete:hover {
  background-color: var(--error-light);
  color: var(--error);
}

.menu ul li button.delete:hover i {
  color: var(--error);
}

.divider {
  height: 1px;
  background-color: var(--border);
  margin: 6px 4px !important;
}
