.finances-summary {
    width: 100%;
    padding: 18px 20px 28px;
    color: #ffffff;
}

.finances-summary * {
    box-sizing: border-box;
}

.finances-summary__head {
    min-height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #0b1728;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px 5px 0 0;
}

.finances-summary__head h1 {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.finances-summary__head p {
    margin: 6px 0 0;
    color: #9eabc0;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.finances-summary__refresh {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d1a2c;
    border: 1px solid rgba(240, 197, 69, 0.5);
    border-radius: 3px;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.finances-summary__refresh:hover,
.finances-summary__refresh:focus-visible {
    background: #14243b;
    border-color: #f0c545;
    color: #f0c545;
    outline: none;
}

.finances-summary__overall {
    min-height: 70px;
    margin: 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #101d31;
    border-top: 3px solid var(--ffo-gold, #f0c545);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.finances-summary__overall span {
    color: #aeb8cc;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.finances-summary__overall strong {
    color: var(--ffo-gold, #f0c545);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.finances-summary__grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    background: #07111f;
    border-radius: 0 0 5px 5px;
}

.finances-league {
    min-width: 0;
    background: #0b1728;
    border-radius: 4px;
    overflow: hidden;
}

.finances-league__head {
    min-height: 76px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    background: #101d31;
    border-top: 3px solid var(--ffo-gold, #f0c545);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.finances-league__head img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
}

.finances-league__head h2 {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finances-league__head p {
    margin: 6px 0 0;
    color: #9eabc0;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.finances-league__head p strong {
    color: var(--ffo-gold, #f0c545);
    font-weight: 900;
}

.finances-league__clubs {
    padding: 8px;
    display: grid;
    gap: 5px;
}

.finances-club {
    min-height: 46px;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: #0d1a2c;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

.finances-club:nth-child(even) {
    background: #0f1d30;
}

.finances-club:hover {
    background: #14243b;
    border-color: rgba(240, 197, 69, 0.25);
}

.finances-club__identity {
    min-width: 0;
    display: grid;
    grid-template-columns: 25px 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.finances-club__rank {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #708198;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
}

.finances-club__identity img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.finances-club__name {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finances-club__amount {
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.finances-club__amount.is-positive {
    color: #67d49d;
}

.finances-club__amount.is-warning {
    color: var(--ffo-gold, #f0c545);
}

.finances-club__amount.is-negative {
    color: #f2798f;
}

.finances-summary__error {
    margin: 12px;
    padding: 16px;
    background: #3c1d26;
    border: 1px solid rgba(242, 121, 143, 0.3);
    border-radius: 4px;
    color: #f2798f;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
}
