.statistic-color-rules-popover .popover {
  max-width: unset;
  min-width: 200px;
}

.statistic-color-rules-wrapper {
  max-width: unset;
  min-width: 420px;
  min-height: 60px;
  padding-top: 1rem;
  background-color: #fff;
  border-radius: 2px;
}

.statistic-color-rules-wrapper .no-color-rules {
  padding: 0 1rem 1rem;
  font-size: 14px;
  color: #999;
}

.statistic-color-rules-popover .add-item-btn {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid #dedede;
  background: #fff;
  padding: 0 1rem;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  position: relative;
}

.statistic-color-rules-popover .add-item-btn .dtable-icon-add-table {
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
  -webkit-transform: none;
  transform: none;
}

.statistic-color-rules-popover .statistic-btn-add-color-rule {
  border-top: unset;
  color: #555;
}

.statistic-color-rules-popover .statistic-btn-add-color-rule:hover {
  cursor: pointer;
  background-color: #f9f9f9;
}

.statistic-color-rules-popover .statistic-btn-add-color-rule.disabled:hover {
  cursor: default;
}

.statistic-color-rule-item {
  padding: 8px 0;
  min-height: 30px;
  position: relative;
}

.statistic-color-rule-item:hover {
  cursor: pointer;
  background-color: #f9f9f9;
}

.statistic-color-rule-item.editing {
  background-color: #f5f5f5;
  padding-bottom: 2px;
}

.statistic-color-rule-item.editing:hover {
  background-color: #f5f5f5;
}

.statistic-color-rule-title {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 10px;
}

.statistic-color-rule-dropdown {
  display: inline-block;
  height: 20px;
  width: 20px;
  line-height: 20px;
  border-radius: 3px;
  text-align: center;
  margin: 0 8px;
  cursor: pointer;
  position: relative;
}

.statistic-color-rule-dropdown .dtable-icon-drop-down {
  display: inline-block;
  font-size: 12px;
  transform: scale(.8);
}

.statistic-color-rule-name {
  max-width: 344px;
}

.statistic-color-rule-name,
.statistic-color-rule-filters .add-new-option,
.statistic-color-rules .add-row-color-rule .add-new-option {
  user-select: none;
}

.statistic-color-rule-name.invalid,
.statistic-color-rules-popover .statistic-btn-add-color-rule.disabled {
  opacity: .5;
}

.statistic-color-rules-popover .statistic-btn-add-color-rule.disabled {
  cursor: default;
}

.statistic-delete-color-rule {
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  visibility: hidden;
}

.statistic-color-rule-item:hover .statistic-delete-color-rule {
  visibility: visible;
}

.statistic-delete-color-rule .dtable-font {
  color: #999;
}

.statistic-delete-color-rule:hover .dtable-font,
.statistic-btn-add-color-rule-filter:hover .popover-add-icon,
.statistic-btn-add-color-rule-filter:hover .add-new-option {
  color: #555555;
}

.statistic-btn-add-color-rule-filter.disabled:hover .popover-add-icon,
.statistic-btn-add-color-rule-filter.disabled:hover .add-new-option {
  color: #999;
}

.add-item-btn.statistic-btn-add-color-rule-filter {
  border-top: unset;
  background-color: #f5f5f5;
  padding-left: 27px;
  padding-right: 12px;
  height: 30px;
  line-height: 30px;
  font-weight: 400;
}

.statistic-btn-add-color-rule-filter:hover {
  background-color: unset;
}

.statistic-btn-add-color-rule-filter .popover-add-icon,
.statistic-btn-add-color-rule-filter .add-new-option {
  color: #999;
}
