.bb-history {
    width: 100%;
    min-width: 0;
}

.bb-history-column > .bb-native-history {
    display: none !important;
}

.bb-history-heading,
.bb-history-labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--bs-secondary-color, #8f8f9d);
    font-size: 0.76rem;
    line-height: 1.2;
}

.bb-history-heading {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.bb-history-labels {
    margin-top: 0.35rem;
}

.bb-history-bars {
    display: grid;
    grid-template-columns: repeat(90, minmax(1px, 1fr));
    gap: 2px;
    width: 100%;
    height: 30px;
}

.bb-history-bar {
    display: block;
    min-width: 1px;
    height: 100%;
    border-radius: 2px;
    outline: none;
}

.bb-history-bar:hover,
.bb-history-bar:focus-visible {
    filter: brightness(1.2);
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 1px;
    transform: scaleY(1.08);
}

.bb-history-up { background: #20c997; }
.bb-history-partial { background: #f0ad4e; }
.bb-history-down { background: #dc3545; }
.bb-history-maintenance { background: #0d6efd; }
.bb-history-no-data { background: rgba(140, 140, 155, 0.32); }

@media (max-width: 1199.98px) {
    .bb-history-row > .bb-history-column {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-top: 0.85rem;
    }
}

@media (max-width: 640px) {
    .bb-history-bars {
        gap: 1px;
        height: 25px;
    }
}
