body {
  margin: 0;
  padding: 0;
}

.context-menu-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  ::-webkit-scrollbar-track {
    background-color: $secondary-view-bg-color !important;
  }
  ::-webkit-scrollbar {
    width: 10px;
    background-color: $secondary-text-color !important;
  }
  ::-webkit-scrollbar:horizontal {
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    border: 1px solid $main-view-bg-color !important;
    border-radius: 10px;
    background-color: $secondary-text-color !important;
  }
  ::-webkit-scrollbar-corner {
    background-color: $secondary-view-bg-color !important;
  }
}

.context-menu {
  padding: 5px 0;
  position: absolute;
  display: none;
  width: auto;
  min-width: 160px;
  max-width: 350px;
  color: $primary-text-color !important;
  background-color: $secondary-view-bg-color !important;
  box-shadow: 0 0 10px rgba($primary-text-color,0.8) !important;
}

.context-menu .item {
  padding: 4px 25px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  line-height: 18px;
}

.context-menu .sep {
  display: block;
  margin: 4px 0;
  height: 1px;
  background-color: $primary-border-color !important;
}

.context-menu .item.disabled {
  color: $secondary-text-color !important;
}

.context-menu .filter-search {
  position: fixed;
  left: 0;
  right: 0;
  height: 0;
  width: 0;
  opacity: 0;
}

.context-menu .filter-search input:focus {
  outline: 0;
}

.context-menu .item.disabled.hover {
  background-color: transparent;
}

.context-menu .item.check {
  padding-left: 10px;
}

.context-menu .item.check:before {
  content: '✓';
  font-weight: bold;
  display: inline-block;
  width: 15px;
}

.context-menu .item span {
  pointer-events: none;
}

.context-menu .item.secondary {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-right: 10px;
}

.context-menu .item.secondary .text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.context-menu .item.secondary .secondary {
  margin-left: 20px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.context-menu .filtered {
  display: none;
}

.context-menu .item .highlight {
  background-color: #cfcf00;
  color: #333;
  padding: 0 3px;
  border-radius: 2px;
}

.context-menu .item.parent:after {
  content: ' ';
  display: block;
  position: absolute;
  right: 10px;
  top: 8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #666;
}

.context-menu .item.hover {
  background-color: darken($primary-border-color, 3%) !important;
  cursor: default;
}

.context-menu .item.active,.context-menu .item:active {
  background-color: darken($primary-border-color, 15%) !important;
}

.context-menu .item:last-child {
  border: 0;
}
