/* ==========================================================================
   Finances Page Styles (Club → Finances)
   ========================================================================== */

/* Finances Header */
.finances-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* TV Money Section */
.tv-money-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #004855 0%, #47d9f3 100%);
    color: #fff;
    margin-bottom: 24px;
}

.tv-money-card__icon {
    font-size: 3.5rem;
    line-height: 1;
    flex-shrink: 0;
    color: #ffd86b;
}

.tv-money-card__body {
    flex: 1;
    min-width: 0;
}

.tv-money-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.tv-money-card__info {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* Balance Chart — a plain line on the page, short enough to glance past */
.balance-chart {
    position: relative;
    height: 100px;
    width: 100%;
}

@media (min-width: 768px) {
    .balance-chart {
        height: 180px;
    }
}

/* ─── The bank: loans and savings (#454) ──────────────────────────────────── */

/* The four money sections under the chart. Deliberately not a `sub-tab-bar`:
   the Club page already owns the sticky strip, and a second one would fight it.

   Three classes, not one: below 768px the generic `.nav.nav-pills` rule in
   buttons.css bleeds a page's top tab strip to the screen edge with negative
   margins and an inset, and at one class this strip lost to it — it slid up
   into the chart and stuck out on both sides. It spans the page instead, and
   the tabs share it evenly; only when the labels cannot fit does it scroll
   sideways rather than wrap into a block that pushes the panel down. */
.nav.nav-pills.finances-tabs {
    flex-wrap: nowrap;
    gap: 0.25rem;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav.nav-pills.finances-tabs::-webkit-scrollbar {
    display: none;
}

.nav.nav-pills.finances-tabs .nav-link {
    flex: 1 1 0;
    min-width: max-content;
    margin: 0;
    /* Bootstrap's 1rem each side made the four labels 30px too wide for a
       390px phone; the tabs grow into the spare room anyway. */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    white-space: nowrap;
}

/* Label above, figure below, so a long label and a long number never collide
   at 390px — a two-column grid would have to break one of them. */
.finances-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 24px;
    margin-bottom: 12px;
}

.finances-figures dt {
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.9rem;
}

.finances-figures dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.finances-amount-form {
    max-width: 420px;
}

.finances-amount-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.finances-amount-actions .btn {
    flex: 1 1 auto;
}
