/* Styles for Scripts/graphs/HorizontalStackedBarChart.d3.v7.js. Override the variables to theme a chart. */
.hsb {
    --hsb-ink: #1f1f1f;
    --hsb-muted: #555555;
    --hsb-grid: #e8e8e8;
    --hsb-axis: #9a9a9a;
    --hsb-zero: #6b6b6b;
    --hsb-surface: #ffffff;
    position: relative;
    width: 100%;
    font-size: 12px;
    color: var(--hsb-ink);
}

.hsb .hsb-title {
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--hsb-grid);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--hsb-ink);
}

.hsb .hsb-description {
    margin: 0 0 10px;
    text-align: center;
    font-size: 13px;
    color: var(--hsb-muted);
}

.hsb-plot {
    position: relative;
    width: 100%;
}

.hsb-svg {
    display: block;
    overflow: visible;
}

.hsb-grid line {
    stroke: var(--hsb-grid);
    shape-rendering: crispEdges;
}

.hsb-axis path.domain {
    display: none;
}

.hsb-axis line {
    stroke: var(--hsb-axis);
}

.hsb-axis text {
    fill: var(--hsb-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.hsb-zero {
    stroke: var(--hsb-zero);
    shape-rendering: crispEdges;
}

.hsb-ylabel {
    fill: var(--hsb-ink);
    font-size: 12px;
}

.hsb-seg {
    outline: none;
    transition: opacity 0.15s ease;
}

.hsb-svg.hsb-hovering .hsb-seg:not(.is-active) {
    opacity: 0.45;
}

.hsb-seg:focus-visible rect {
    stroke: var(--hsb-ink);
    stroke-width: 2px;
}

.hsb-label {
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    paint-order: stroke;
    stroke-width: 3px;
    stroke-linejoin: round;
}

.hsb-tooltip {
    position: absolute;
    display: none;
    z-index: 20;
    pointer-events: none;
    min-width: 170px;
    padding: 8px 10px;
    background: var(--hsb-surface);
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    font-size: 12px;
    color: var(--hsb-ink);
}

.hsb-tooltip-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.hsb-tooltip table {
    width: 100%;
    border-collapse: collapse;
}

.hsb-tooltip td {
    padding: 2px 0;
}

.hsb-tooltip tr:not(.is-active) {
    color: var(--hsb-muted);
}

.hsb-tooltip tr.is-active td {
    font-weight: 700;
}

.hsb-tip-value {
    text-align: right;
    padding-left: 14px !important;
    font-variant-numeric: tabular-nums;
}

.hsb-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin-top: 6px;
}

.hsb-legend-item {
    display: inline-flex;
    align-items: center;
}

.hsb-swatch {
    display: inline-block;
    flex: none;
    width: 11px;
    height: 11px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: -1px;
}

.hsb-swatch-range {
    background: repeating-linear-gradient(45deg, #6b6b6b 0 2px, #d6d6d6 2px 4px);
}

.hsb-empty {
    padding: 32px 0;
    text-align: center;
    color: var(--hsb-muted);
}

.hsb-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (forced-colors: active) {
    .hsb-seg rect {
        stroke: CanvasText;
    }
}
