#tickets-statistics-chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.tickets-statistics-chart-filter {
  min-width: 220px;
}

.tickets-statistics-filter-dropdown {
  position: relative;
}

.tickets-statistics-filter-dropdown summary {
  align-items: center;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  min-height: 36px;
  padding: 6px 10px;
}

.tickets-statistics-filter-list {
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  left: 0;
  max-height: 280px;
  min-width: 260px;
  overflow: auto;
  padding: 10px;
  position: absolute;
  top: calc(100% + 4px);
  z-index: 20;
}

.tickets-statistics-filter-option,
.tickets-statistics-legend-item,
.tickets-statistics-settings-item {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
}

.tickets-statistics-filter-group {
  border-top: 1px solid #e4e4e7;
  color: #52525b;
  font-weight: 600;
  margin-top: 4px;
  padding: 8px 0 2px;
}

.tickets-statistics-filter-group:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.tickets-statistics-filter-checkbox {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  display: inline-block !important;
  flex: 0 0 16px !important;
  height: 16px !important;
  margin: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  visibility: visible !important;
  width: 16px !important;
}

.tickets-statistics-legend-swatch {
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 14px;
  height: 14px;
  width: 14px;
}

.tickets-statistics-legend-items,
.tickets-statistics-settings-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

#tickets-statistics-chart-legend .tickets-horizontal-tabs__menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
