/* ContextMenu — menu contextuel générique réutilisable (toute l'appli).
   Voir /js/utils/context-menu.js */

.ctx-menu {
  position: fixed;
  z-index: 10000;
  min-width: 196px;
  max-width: 320px;
  padding: 6px;
  background: var(--bg-card, #fff);
  color: var(--text, #1a1a1a);
  border: 1px solid var(--border, #dde1e7);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  line-height: 1.2;
  user-select: none;
  animation: ctx-menu-in 0.12s ease;
}
@keyframes ctx-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.ctx-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.ctx-menu-item:hover,
.ctx-menu-item.is-open {
  background: rgba(207, 21, 120, 0.10);
  color: var(--primary-dark, #a01060);
}

.ctx-menu-item-icon {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  color: var(--text-secondary, #6b6b6b);
}
.ctx-menu-item:hover .ctx-menu-item-icon,
.ctx-menu-item.is-open .ctx-menu-item-icon {
  color: inherit;
}

.ctx-menu-item-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctx-menu-item-hint {
  margin-left: 14px;
  font-size: 11px;
  color: var(--text-light, #999);
}
.ctx-menu-item-arrow {
  margin-left: 8px;
  font-size: 10px;
  color: var(--text-light, #999);
}

.ctx-menu-item.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.ctx-menu-item.is-danger { color: #dc2626; }
.ctx-menu-item.is-danger .ctx-menu-item-icon { color: #dc2626; }
.ctx-menu-item.is-danger:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.ctx-menu-sep {
  height: 1px;
  margin: 5px 8px;
  background: var(--border, #dde1e7);
}
