.sf-row-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 12rem;
  max-width: calc(100vw - 48px);
  max-width: calc(100dvw - 48px);
  margin: 0;
  padding: 0.2rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.sf-row-context-menu form {
  margin: 0;
}

.sf-row-context-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.62rem;
  border-radius: 10px;
  line-height: 1.2;
  font-weight: 500;
}

.sf-row-context-menu .dropdown-item i {
  width: 1rem;
  text-align: center;
}

.sf-row-context-menu .dropdown-item.text-danger {
  color: var(--bs-danger);
}

.sf-row-context-menu .dropdown-item.text-danger:hover,
.sf-row-context-menu .dropdown-item.text-danger:focus {
  color: var(--bs-danger);
  background: rgba(var(--bs-danger-rgb), 0.1);
}

.clickable-row.is-context-open {
  background: rgba(var(--bs-primary-rgb), 0.08);
}

.row-context-chevron-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  border-radius: 10px;
  /* Gabarit compact pour ne pas augmenter la hauteur des lignes de table */
  padding: 0.22rem 0.46rem;
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.row-context-chevron-btn:hover,
.row-context-chevron-btn:focus-visible {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.12);
}
