/* NOTE: MwAvailabilityCount — unified stock readout (available/total + rented + out-of-order).
   Prefix: mw-avc. Consumer owns positioning (this element just lays its own parts out inline). */

.mw-avc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Availability fraction — the hero number, neutral so the coloured buckets read as accents. */
.mw-avc-frac {
    color: var(--mud-palette-text-primary);
    font-weight: 500;
}

/* Low supply (orange) / critical supply (red) — driven by the per-user thresholds in InventorySettings. */
.mw-avc-frac--low {
    color: #fb8c00;
}

.mw-avc-frac--critical {
    color: var(--mud-palette-error);
}

/* Rented (borrowed) — amber. */
.mw-avc-rented {
    color: var(--mud-palette-warning);
    font-variant-emoji: text;
}

/* Out of order (defect / in maintenance) — red. */
.mw-avc-broken {
    color: var(--mud-palette-error);
    font-variant-emoji: text;
}
