/**
 * Based on https://github.com/firefox-devtools/react-contextmenu/blob/d1e5483d4581ddd081d34bbc525b3922f8fed16c/examples/react-contextmenu.css
 */

.react-contextmenu {
  @apply text-sm text-gray-600 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none overflow-hidden py-1;
  background-clip: padding-box;
  margin: 2px 0 0;
  min-width: 160px;
  outline: none;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transition: opacity 250ms ease !important;
}

.react-contextmenu.react-contextmenu--visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 9999;
}

.react-contextmenu-item {
  @apply text-gray-700 pl-3 pr-4 py-2;
  background: 0 0;
  border: 0;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
  text-align: inherit;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.react-contextmenu-item.react-contextmenu-item--active,
.react-contextmenu-item.react-contextmenu-item--selected {
  @apply bg-gray-100 text-gray-900;
  text-decoration: none;
}

.react-contextmenu-item.react-contextmenu-item--disabled,
.react-contextmenu-item.react-contextmenu-item--disabled:hover {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.15);
  color: #878a8c;
}

.react-contextmenu-item--divider {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  cursor: inherit;
  margin-bottom: 3px;
  padding: 2px 0;
}
.react-contextmenu-item--divider:hover {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.15);
}

.react-contextmenu-item.react-contextmenu-submenu {
  padding: 0;
}

.react-contextmenu-item.react-contextmenu-submenu
  > .react-contextmenu-item:after {
  content: '▶';
  display: inline-block;
  position: absolute;
  right: 7px;
}

.example-multiple-targets::after {
  content: attr(data-count);
  display: block;
}
