.queryeditor-popup {
  background-color: #333;
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.queryeditor-content {
  display: flex;
  flex-shrink: 0;
}

.queryeditor-add-filter-group {
  margin: 5px;
  border: 1px solid #393939;
  padding: 3px;
}

.queryeditor-add-filter-group-inner {
  background-color: #222;
  color: #999;
  padding: 10px;
  text-align: center;
  flex-grow: 1;
}

.queryeditor-add-filter-group-inner:hover {
  background-color: #333;
  color: #ccc;
}

.queryeditor-group {
  display: flex;
  flex-direction: column;
  border: 1px solid #393939;
  padding: 5px;
  margin-right: 3px;
  margin-left: 2px;
}

.queryeditor-group.toplevel {
  border: none;
  padding: 0px;
}

.queryeditor-group-children {
  display: flex;
  flex-direction: column;
}

.queryeditor-group-row {
  display: flex;
  align-items: center;
}

.queryeditor-remove-icon {
  margin-left: 10px;
  color: #999;
  width: 20px;
  height: 20px;
}

.queryeditor-remove-icon:hover {
  color: #ccc;
}

.queryeditor-and-toggle {
  color: #999;
  background-color: #333;
  border-left: 1px solid #999;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  border-radius: 5px 0px 0px 5px;
  padding: 3px;
  padding-left: 5px;
  padding-right: 5px;
}

.queryeditor-and-toggle:hover {
  color: #fff;
}

.queryeditor-and-toggle.selected {
  background-color: #777;
  color: #fff;
}

.queryeditor-or-toggle {
  color: #999;
  background-color: #333;
  border-right: 1px solid #999;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  border-radius: 0px 5px 5px 0px;
  padding: 3px;
  padding-right: 5px;
  padding-left: 5px;
}

.queryeditor-or-toggle.selected {
  background-color: #777;
  color: #fff;
}

.queryeditor-or-toggle:hover {
  color: #fff;
}

.queryeditor-add-rule {
  display: flex;
  color: #999;
  align-items: center;
  margin-right: 10px;
}

.queryeditor-add-rule:hover {
  color: #ccc;
}

.queryeditor-add-icon {
  padding: 2px;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queryeditor-add-group {
  display: flex;
  color: #999;
  align-items: center;
}

.queryeditor-add-group:hover {
  color: #ccc;
}

.queryeditor-rule {
  display: flex;
  padding: 10px;
  align-items: flex-start;
  background-color: #222;
  flex-shrink: 0;
}

.queryeditor-rule > * {
  margin-right: 10px;
}

.queryeditor-rule > *:last-child {
  margin-right: 0px;
}

.queryeditor-component {
  position: relative;
  background-color: #333;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  color: #ccc;
  display: flex;
  align-items: flex-start;
  min-height: 32px;
  min-width: 100px;
  flex-shrink: 0;
}

.queryeditor-component.hoverable:hover {
  color: #fff;
}

.queryeditor-property-inner {
  display: flex;
  flex-direction: column;
  align-items: top;
  white-space: nowrap;
}

.queryeditor-property-label {
  color: #999;
  font-size: 10px;
  font-weight: bold;
}

.queryeditor-value-input {
  width: 100%;
  height: 100%;
  outline: none;
  border: none;
  background-color: transparent;
  color: #fff;
}

.queryeditor-caret-icon {
  margin-left: auto;
  align-self: center;
  padding-left: 15px;
}

.queryeditor-dropdown {
  position: absolute;
  top: 47px;
  background-color: #181818;
  color: #ccc;
  border-radius: 3px;
  margin-left: -10px;
  z-index: 10;
  max-height: 400px;
  overflow: auto;
}

.queryeditor-dropdown-item {
  padding: 4px;
  padding-right: 5px;
  padding-left: 5px;
}

.queryeditor-dropdown-item:hover {
  color: #fff;
  background-color: #333;
}

.queryeditor-value-type-icon {
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  color: #ccc;
  margin-right: 10px;
}

.queryeditor-value-type-icon:hover {
  color: #fff;
}

.queryeditor-header {
  display: flex;
  font-size: 12px;
  color: #999;
  margin-left: 5px;
  margin-bottom: 8px;
}

.queryeditor-desc {
  color: #999;
  margin-right: 10px;
  line-height: 12px;
  flex-grow: 0;
}

.queryeditor-combinator-label {
  padding: 5px;
  color: #999;
}

.queryeditor-combinator-label:hover {
  color: #ccc;
}

.queryeditor-add-button {
  background-color: #222;
  color: #ccc;
  padding: 3px;
  padding-left: 7px;
  padding-right: 7px;
  justify-self: center;
}

.queryeditor-add-button:hover {
  background-color: #292929;
  color: #fff;
}

.queryeditor-sorting {
  display: flex;
  flex-direction: column;
  border: 1px solid #666;
  padding: 5px;
}

.queryeditor-sorting-rules {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

.queryeditor-span {
  color: #999;
}

.queryeditor-strong {
  color: #ccc;
  font-weight: bold;
}

.queryeditor-span-strong {
  color: #ccc;
  font-weight: bold;
  margin-left: 5px;
  margin-right: 5px;
}

.queryeditor-text-rule {
  background-color: #222;
  padding: 3px;
}

.queryeditor-text-rule:hover {
  background-color: #333;
}

.queryeditor-trash-icon {
  content: url('../assets/icons/queryeditor-trash.svg');
  width: 20px;
  height: 20px;
  opacity: 0.6;
  margin-left: 10px;
  align-self: center;
  margin-right: 5px;
}

.queryeditor-trash-icon:hover {
  opacity: 0.8;
}

.queryeditor-sorting-rules {
  display: flex;
  flex-direction: column;
  border: 1px solid #393939;
  padding: 5px;
  margin-right: 3px;
  margin-left: 2px;
}
