/* The menu behind the three dots on a row: the actions that are not the one
   people came for, and the one that cannot be undone. */

.row-menu-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--c-neutral-3);
  background: transparent;
  color: var(--c-neutral-9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.row-menu-button:hover,
.row-menu-button[aria-expanded="true"] {
  border-color: var(--c-neutral-7);
  color: var(--c-white);
}

.row-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  width: 216px;
  background: var(--c-neutral-0);
  border: 1px solid var(--c-neutral-3);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

/* Rows near the bottom of the list open upwards, or the last one would have
   its menu cut off by the edge of the list. */
.row-menu-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.row-menu button {
  text-align: left;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-white);
  font: var(--t-body-primary-300);
  cursor: pointer;
}

.row-menu button:hover {
  background: var(--c-neutral-1);
}

.row-menu-rule {
  height: 1px;
  margin: 6px 0;
  background: var(--c-neutral-3);
}

.row-menu-danger {
  color: var(--c-red) !important;
}

/* The menu is positioned against the actions, so they are the frame. */
.row-actions {
  position: relative;
}
