/* Insights: per-machine ratio bars and the two share charts. */

.ratios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-sm) var(--gap-lg);
}

.ratio-row {
    display: grid;
    grid-template-columns: 76px 1fr 52px;
    align-items: center;
    gap: var(--gap-sm);
}

.ratio-label {
    font-size: var(--fs-small);
    color: var(--text-dim);
    white-space: nowrap;
}

.ratio-track {
    height: 10px;
    border-radius: var(--r-pill);
    background: var(--panel2);
    overflow: hidden;
}

.ratio-fill {
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--ok);
    transition: width var(--t) var(--t-swift);
}

.ratio-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.chart {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--gap-sm);
    height: 168px;
}

.chart-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 18px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    border-bottom: var(--divider-w) solid var(--border-c);
    border-left: var(--divider-w) solid var(--border-c);
    padding: 0 2px;
    position: relative;
}

.chart-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.chart-bar {
    width: 100%;
    max-width: 26px;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    background: var(--primary);
    transition: height var(--t) var(--t-swift);
}

.chart-bar-missing {
    background: var(--border-soft);
}

.chart-tick {
    position: absolute;
    bottom: -18px;
    white-space: nowrap;
}

.chart-col {
    position: relative;
}

.chart-empty {
    margin: 0;
    padding: var(--gap) 0;
}
