/* =====================================================================
   Settings → Sales & finance → Payouts (c.4.3.52)
   ---------------------------------------------------------------------
   Only what the Payouts page invents: the period/currency strip of the
   Performance tab, the provider cards, the facts list of a payout, the
   source rows and the provider problem banner of the Issues tab. The
   hero, the status strip, the KPI tiles and the charts are the shared
   list-ios26.css / dashboard-ios26.css material. Colours come from the
   --ios26-* tokens, which the dark theme re-declares.
   ===================================================================== */

.nz-payouts-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 15px 0;
}

.nz-payouts-delta.is-up {
    color: #248a3d;
}

.nz-payouts-delta.is-down {
    color: #d70015;
}

body.color-1E202D .nz-payouts-delta.is-up {
    color: #30d158 !important;
}

body.color-1E202D .nz-payouts-delta.is-down {
    color: #ff6961 !important;
}

.nz-payouts-chart {
    position: relative;
    height: 260px;
}

.nz-payouts-provider-figure {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ios26-text);
}

/* a payout's facts: label on the left, value on the right, a hairline between rows */
.nz-payout-facts {
    display: flex;
    flex-direction: column;
}

.nz-payout-fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--ios26-hairline);
}

.nz-payout-fact:last-child {
    border-bottom: 0;
}

.nz-payout-fact-label {
    color: var(--ios26-muted);
    flex: 0 0 auto;
}

.nz-payout-fact-value {
    text-align: right;
    color: var(--ios26-text);
    min-width: 0;
    overflow-wrap: anywhere;
}

.nz-payout-head .nz-payout-amount {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ios26-text);
}

/* Sources modal */
.nz-payouts-source {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ios26-hairline);
}

.nz-payouts-source:last-child {
    border-bottom: 0;
}

.nz-payouts-source-icon {
    font-size: 22px;
    width: 28px;
    text-align: center;
    color: var(--ios26-muted);
    padding-top: 2px;
}

/* Issues: a provider that cannot be read */
.nz-payouts-problem {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 15px 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 59, 48, 0.35);
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.08);
    color: var(--ios26-text);
}

.nz-payouts-problem > i {
    font-size: 20px;
    color: #ff3b30;
}

.nz-payouts-problem-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nz-payouts-problem-text span {
    color: var(--ios26-muted);
}

body.color-1E202D .nz-payouts-problem-text span {
    color: #c4c9dc !important;
}

/* a phone: the total goes under the title instead of squeezing it */
@media (max-width: 767px) {
    .nz-payouts26 .nz-list-hero {
        flex-wrap: wrap;
    }

    .nz-payouts26 .nz-list-hero-total {
        margin-left: 0;
        align-items: flex-start;
    }
}

/* test payouts on screen: said once, above the list */
.nz-payouts-testnote {
    margin: 12px 15px 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 159, 10, 0.12);
    color: var(--ios26-text);
}

.nz-payouts-testnote i {
    color: #c93400;
    margin-right: 4px;
}

body.color-1E202D .nz-payouts-testnote i {
    color: #ffb340 !important;
}

.nz-payouts26 .nz-payouts-mode {
    display: inline-flex;
}

/* Payouts tab: what is still to reach the bank, as small glass tiles */
.nz-payouts-coming {
    padding: 14px 15px 4px;
}

.nz-payouts-coming-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ios26-muted);
    margin-bottom: 8px;
}

.nz-payouts-coming-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.nz-payouts-coming-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--ios26-edge);
    border-radius: 14px;
    background: var(--ios26-surface);
}

.nz-payouts-coming-label,
.nz-payouts-coming-sub {
    font-size: 12px;
    color: var(--ios26-muted);
}

.nz-payouts-coming-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--ios26-text);
}

/* the same note, for information rather than caution (history still being read) */
.nz-payouts-testnote.is-info {
    background: rgba(10, 132, 255, 0.10);
}

.nz-payouts-testnote.is-info i {
    color: #0a63c9;
}

body.color-1E202D .nz-payouts-testnote.is-info i {
    color: #64b5ff !important;
}
