.chart-wrapper {
  position: relative;
  height: 200px;
}

.chart-range-selection {
  position: absolute;
  pointer-events: none;
  background-color: rgba(var(--bs-primary-rgb), 0.2);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.75);
}

.performance-range-control {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-start;
  max-width: 100%;
  width: 100%;
}

.performance-range-state,
.performance-range-control .btn {
  align-items: center;
  display: inline-flex;
}

.performance-range-state {
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  color: var(--bs-body-color);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

.performance-range-date {
  cursor: pointer;
  gap: 0.25rem;
  position: relative;
}

.performance-range-native-input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.performance-range-date:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.125rem var(--bs-body-bg);
  outline: 0.1875rem solid var(--bs-primary);
  outline-offset: 0.125rem;
  z-index: 2;
}

.performance-range-date:has(.performance-range-native-input:invalid) {
  border-color: var(--bs-danger);
}

.performance-range-toggle {
  margin-left: calc(-1 * var(--bs-border-width));
}

.performance-range-toggle:focus-visible {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.125rem var(--bs-body-bg);
  outline: 0.1875rem solid var(--bs-primary);
  outline-offset: 0.125rem;
  position: relative;
  z-index: 2;
}

.performance-range-key,
.performance-range-option-key {
  justify-content: center;
  min-width: 2.5rem;
}

.performance-range-menu {
  min-width: 14rem;
}

.performance-name {
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .performance-range-control {
    gap: 0.125rem;
    width: 100%;
  }
}

.legend-item-color-box {
  display: inline-block;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
  border-style: solid;
  margin-right: 3px;
}

#chart-legend-container {
  height: 200px;
}

/* Break out of a container */
.break-out {
  width:100vw;
  position:relative;
  left:calc(-1 * (100vw - 100%)/2);
}

.toast-container {
  z-index: 1;
}

.btn-outline-secondary {
  border-color: #ced4da; /* $gray-400 */
}

.min-w-auto {
  min-width: auto;
}

.w-fit-content {
  width: fit-content
}

.svg-icon {
  height: 1rem;
  width: 1rem;
}

.badge-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.badge-group > .badge {
  position: relative;
  flex: 1 1 auto;
}

.badge-group > .badge:has(+ .badge:not(.d-none)) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.badge-group > .badge:not(.d-none) + .badge:not(.d-none) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.badge-group.rounded-pill > .badge {
  border-radius: 50rem !important;
}

.badge-group.rounded-pill > .badge:has(+ .badge:not(.d-none)) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.badge-group.rounded-pill > .badge:not(.d-none) + .badge:not(.d-none) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
