/*
    InvoicePaymentStatusBadge.razor.css
    Scoped CSS — no global pollution.

    Colour tokens (from live theme):
        Unpaid        #64748B  slate
        PartiallyPaid #e78500  amber (theme-adjusted)
        Paid          #349861  emerald (theme-adjusted)
        Overpaid      #8B5CF6  violet
*/

/* ── Base pill ────────────────────────────────────────────────── */
.ipb-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid var(--ipb-border-color);
    font-family: inherit;
}

/* ── Cell 1: left label slot (coloured background) ───────────── */
.ipb-left {
    display: flex;
    align-items: center;
    padding: 3px 8px;
}

/* ── Cells 2+: right slots (transparent bg, border-left divider) */
.ipb-slot {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    background: transparent;
    border-left: 1px solid var(--ipb-border-color);
}

/* ── Status colour skins ──────────────────────────────────────── */

/* Unpaid – slate #64748B */
.ipb-unpaid {
    --ipb-border-color: rgba(100, 116, 139, 0.35);
}

    .ipb-unpaid .ipb-left {
        background: rgba(100, 116, 139, 0.15);
        color: #64748B;
    }

/* PartiallyPaid – amber #e78500 */
.ipb-partial {
    --ipb-border-color: rgba(231, 133, 0, 0.35);
}

    .ipb-partial .ipb-left {
        background: rgba(231, 133, 0, 0.15);
        color: #e78500;
    }

/* Paid – emerald #349861 */
.ipb-paid {
    --ipb-border-color: rgba(52, 152, 97, 0.35);
}

    .ipb-paid .ipb-left {
        background: rgba(52, 152, 97, 0.15);
        color: #349861;
    }

/* Overpaid – violet #8B5CF6 */
.ipb-overpaid {
    --ipb-border-color: rgba(139, 92, 246, 0.35);
}

    .ipb-overpaid .ipb-left {
        background: rgba(139, 92, 246, 0.15);
        color: #8B5CF6;
    }

/* ── Slot text colours ────────────────────────────────────────── */
.ipb-r-red {
    color: #ef4444;
    font-weight: 600;
}

.ipb-r-amber {
    color: #e78500;
    font-weight: 600;
}

.ipb-r-green {
    color: #3cb371;
    font-weight: 600;
}

.ipb-r-purple {
    color: #8B5CF6;
    font-weight: 600;
}

.ipb-r-muted {
    color: #6b7280;
    font-weight: 600;
}
