.payment-kpi-section .gesnote-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.payment-kpi-filter {
    min-width: 220px;
}

.payment-kpi-dropdown-button {
    width: 100%;
    min-height: 44px;
    color: #13213a;
    font-weight: 700;
    text-align: left;
}

.payment-kpi-dropdown {
    width: 280px;
    max-height: 360px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(19, 33, 58, 0.16);
}

.payment-kpi-month-list {
    max-height: 240px;
    overflow-y: auto;
}

.payment-kpi-month-option {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 9px 10px;
    color: #26344d;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.payment-kpi-month-option:hover {
    background: #f4f6fa;
}

.payment-kpi-all-option {
    color: #13213a;
    font-weight: 800;
    background: #f7f9fc;
}

.payment-kpi-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 178px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(19, 33, 58, 0.07);
}

.payment-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    font-size: 23px;
    border-radius: 15px;
}

.payment-kpi-paid .payment-kpi-icon {
    color: #15803d;
    background: #dcfce7;
}

.payment-kpi-unpaid .payment-kpi-icon {
    color: #b91c1c;
    background: #fee2e2;
}

.payment-kpi-partial .payment-kpi-icon {
    color: #b45309;
    background: #fef3c7;
}

.payment-kpi-content {
    min-width: 0;
    flex: 1;
}

.payment-kpi-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payment-kpi-number {
    margin-top: 4px;
    color: #13213a;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
}

.payment-kpi-amount {
    margin-top: 9px;
    color: #13213a;
    font-size: 1.05rem;
    font-weight: 900;
}

.payment-kpi-description {
    margin-top: 3px;
    color: #64748b;
    font-size: 0.78rem;
}

.payment-kpi-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.payment-kpi-split > div {
    padding: 9px;
    border-radius: 11px;
    background: #f8fafc;
}

.payment-kpi-split span,
.payment-kpi-split strong {
    display: block;
}

.payment-kpi-split span {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.payment-kpi-split strong {
    color: #13213a;
    font-size: 0.77rem;
}

@media (max-width: 767.98px) {
    .payment-kpi-filter {
        width: 100%;
    }

    .payment-kpi-dropdown {
        width: min(280px, calc(100vw - 40px));
    }
}
