/* Rervy status and label badges.
   Real operational states should use StatusBadge. Plain ui-badge remains available
   for compact labels, counters and selection markers that are not entity states. */

.ui-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    max-width: 100%;
    padding: .25rem .6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .005em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.ui-badge-primary {
    color: #0b5d50;
    background: #e5f4f0;
    border-color: #c8e5de;
}

.ui-badge-success {
    color: #126245;
    background: #e9f7f0;
    border-color: #cdebdc;
}

.ui-badge-warning {
    color: #8a5a00;
    background: #fff6df;
    border-color: #f2dfad;
}

.ui-badge-danger {
    color: #a72b35;
    background: #fff0f2;
    border-color: #f2ccd1;
}

.ui-badge-info {
    color: #315c89;
    background: #edf5ff;
    border-color: #d1e2f5;
}

.ui-badge-neutral {
    color: #5f6873;
    background: #f3f5f7;
    border-color: #e1e5e9;
}

/* Transitional compatibility for the last Bootstrap status badge still present
   in legacy markup. It renders exactly like the Rervy success state until that
   large layout file is naturally touched again. */
.badge.bg-primary-subtle.text-primary {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .25rem .6rem !important;
    color: #126245 !important;
    background: #e9f7f0 !important;
    border: 1px solid #cdebdc;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (max-width: 575.98px) {
    .ui-badge,
    .badge.bg-primary-subtle.text-primary {
        min-height: 23px;
        padding: .23rem .55rem !important;
        font-size: .72rem;
    }
}
