﻿/* ================================================================
   TeamChampionshipPaymentsTab.css  —  recipe-aligned
   Shell + grey header (Sora title + stat pills) + a team table with
   status pills. Mode-aware green/amber, DM Mono figures.
================================================================ */

.tpay-shell {
    font-family: 'DM Sans', sans-serif;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────────── */
.tpay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-grey);
}

.tpay-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tpay-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    line-height: 1;
}

.tpay-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tpay-stat-pill {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

    .tpay-stat-pill.ok {
        background: rgba(29,158,117,0.10);
        border-color: rgba(29,158,117,0.25);
    }

.app-dark .tpay-stat-pill.ok {
    color: #34D399;
}

.app-light .tpay-stat-pill.ok {
    color: #0F6E56;
}

.tpay-stat-pill.warn {
    background: rgba(239,159,39,0.10);
    border-color: rgba(239,159,39,0.28);
}

.app-dark .tpay-stat-pill.warn {
    color: #F59E0B;
}

.app-light .tpay-stat-pill.warn {
    color: #B45309;
}

/* ── Body + table ─────────────────────────────────────────────── */
.tpay-body {
    padding: 16px 18px 18px;
}

.tpay-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
}

.tpay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

    .tpay-table thead th {
        text-align: center;
        font-family: 'Sora', sans-serif;
        font-weight: 700;
        font-size: 0.66rem;
        color: var(--mud-palette-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 10px 8px;
        border-bottom: 1px solid var(--mud-palette-lines-default);
        background: var(--mud-palette-background-grey);
    }

    .tpay-table tbody td {
        text-align: center;
        padding: 9px 8px;
        border-bottom: 1px solid var(--mud-palette-lines-default);
        color: var(--mud-palette-text-primary);
        font-family: 'DM Mono', monospace;
    }

    .tpay-table tbody tr:last-child td {
        border-bottom: none;
    }

    .tpay-table tbody tr:hover {
        background: var(--mud-palette-action-default-hover);
    }

.tpay-c-team {
    text-align: left !important;
    font-family: 'DM Sans', sans-serif !important;
}

td.tpay-c-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tpay-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tpay-team-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tpay-owing {
    color: var(--mud-palette-error);
    font-weight: 600;
}

.tpay-c-act {
    text-align: right !important;
    white-space: nowrap;
}

/* ── Status pill ──────────────────────────────────────────────── */
.tpay-status {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 9px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    background: var(--mud-palette-background-grey);
    color: var(--mud-palette-text-secondary);
}

.tpay-status--paid {
    background: rgba(29,158,117,0.14);
}

.app-dark .tpay-status--paid {
    color: #34D399;
}

.app-light .tpay-status--paid {
    color: #0F6E56;
}

.tpay-status--partial {
    background: rgba(239,159,39,0.14);
}

.app-dark .tpay-status--partial {
    color: #F59E0B;
}

.app-light .tpay-status--partial {
    color: #B45309;
}

.tpay-status--unpaid {
    background: rgba(248,113,113,0.14);
    color: var(--mud-palette-error);
}

.tpay-status--free {
    background: var(--mud-palette-background-grey);
    color: var(--mud-palette-text-secondary);
}

/* ── Empty ────────────────────────────────────────────────────── */
.tpay-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--mud-palette-text-secondary);
    font-size: 0.9rem;
}

.tpay-empty-icon {
    font-size: 2.25rem;
    color: var(--mud-palette-text-disabled);
}
