/*
    Mixin to progressively-enhance :focus-visible, keeping :focus where not supported
    Add an arbitrary list of selectors into the arguments, and the styling in the block.
    I you pass no selectors to the mixin the parent ("ampersand") operator is used instead.

    There are two mixins: 
    - focus-visible: a generic focus-visible, giving you "slots" to decide what to render for :focus, :focus reset, and :focus-visible
    - focus-visible-outline: a focus-visible, which only resets the outline. If you don't need more custom resets, use this one!

    Use focus-visible:
    The key thing here is checking which slot is being rendered.
    For example, you can reset box-shadow here, or anything else.

    @include focus-visible using ($slot) {
        @if $slot == focus {
            outline: 2px solid transparent;
            box-shadow: 0 0 0 4px blue;
        }
        @if $slot == focusReset {
            box-shadow: none;
        }
        @if $slot == focusVisible {
            box-shadow: 0 0 0 4px blue;
        }
    }

    Use focus-visible-outline:
    @include focus-visible-outline("button", "a[href]") {
        outline: 2px solid blue;
    }

    Resulting CSS (compressed):

    button:focus,
    a[href]:focus {
        outline: 2px solid blue;
    }

    button:focus:not(:focus-visible),
    a[href]:focus:not(:focus-visible) {
        outline: none;
    }
    button:focus-visible,
    a[href]:focus-visible {
        outline: 2px solid blue;
    }
*/
/**
* @prop --uic-charts-data-group-color: color of a specific data group, set it inside of the datagroups css class.
* @prop --uic-charts-legend-text-color: legend text color
* @prop --uic-charts-legend-text-font-size: legend text font size
* @prop --uic-charts-legend-border-color: legend squares border color
*/
.uic-legend {
  display: flex;
  flex-wrap: wrap;
  color: var(--uic-charts-legend-text-color, black);
}
.uic-legend--vertical {
  flex-direction: column;
}
.uic-legend--horizontal {
  flex-direction: row;
}
.uic-legend__item {
  font-size: var(--uic-charts-legend-text-font-size, 0.8rem);
  white-space: nowrap;
  overflow: hidden;
  margin-right: 1em;
  cursor: default;
}
.uic-legend__item::before {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-right: 0.5em;
  border: 1px solid var(--uic-charts-legend-border-color, gray);
  background-color: var(--uic-charts-data-group-color, black);
}
.uic-legend__item--clickable {
  cursor: pointer;
}