/* Lightweight div-based bar charts on the dashboards (SubscriptionGrowthChart, NewAccountsCard).
   Global because more than one component draws with these classes. */
.dfm-bc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
}

.dfm-bc-key {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.dfm-bc-key > i {
    width: 11px;
    height: 11px;
    border-radius: 3px;
}

.dfm-bc-plot {
    position: relative;
    height: 220px;
    margin-left: 34px;
}

.dfm-bc-gridline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.dfm-bc-gridline > span {
    position: absolute;
    right: 100%;
    padding-right: 8px;
    transform: translateY(-50%);
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
}

.dfm-bc-cols {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
}

.dfm-bc-col {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.dfm-bc-bar {
    display: block;
    width: 34%;
    max-width: 20px;
    border-radius: 3px 3px 0 0;
}

.dfm-bc-labels {
    display: flex;
    margin-left: 34px;
    padding-top: 8px;
}

.dfm-bc-labels > span {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.dfm-bc-labels > span.is-partial {
    font-style: italic;
}

.dfm-bc-note {
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.dfm-bc-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.dfm-bc-labels > span.is-selected {
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}
