/*
 * BroTech additions to the django-unfold theme.
 * Unfold ships a precompiled Tailwind build, so utilities it does not use itself
 * are missing; the few the dashboard needs live here, on Unfold's colour variables
 * so light and dark mode both follow the theme.
 */

.bt-kpi-value {
    color: var(--color-font-important-light);
    font-size: 1.875rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 0.25rem;
}

.dark .bt-kpi-value {
    color: var(--color-font-important-dark);
}

.bt-kpi-icon {
    color: var(--color-primary-600);
    font-size: 22px;
}

.dark .bt-kpi-icon {
    color: var(--color-primary-400);
}

.bt-chart {
    height: 240px;
}

.bt-num {
    font-variant-numeric: tabular-nums;
}

.bt-dot {
    border-radius: 9999px;
    display: inline-block;
    flex-shrink: 0;
    height: 0.625rem;
    width: 0.625rem;
}

.bt-dot-ok {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgb(22 163 74 / 0.18);
}

.bt-dot-down {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgb(220 38 38 / 0.18);
}

.bt-dot-unknown {
    background: var(--color-base-400);
}

.bt-alert-dot {
    background: #f59e0b;
    border-radius: 9999px;
    height: 0.5rem;
    width: 0.5rem;
}

.bt-row-link:hover {
    background: var(--color-base-50);
}

.dark .bt-row-link:hover {
    background: rgb(255 255 255 / 0.03);
}

/* Stat strip above the resource change form */
.bt-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
