.css-1rtol73-MuiChartsWrapper-root{
    place-items: start !important;
    justify-content: safe start !important; 
}


/* Chart and breakdown layout */
.paymentOverviewContent {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
}

/* Donut chart */
.paymentDonutWrapper {
    width: 150px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.paymentDonutWrapper .MuiChartsWrapper-root {
    width: 150px !important;
    height: 150px !important;
}

.paymentDonutCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.paymentDonutCenter h4 {
    margin: 0 0 5px;
    color: #111c3a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.paymentDonutCenter p {
    margin: 0;
    color: #526789;
    font-size: 10px;
    line-height: 1.3;
}

/* Payment breakdown */
.paymentBreakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.paymentBreakdownRow {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) 32px auto;
    align-items: center;
    column-gap: 6px;
    min-width: 0;
}

.paymentLegendDot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}

.paymentLabel {
    color: #526789;
    font-size: 13px;
    white-space: nowrap;
}

.paymentPercentage {
    color: #526789;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.paymentAmount {
    color: #111c3a;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* Due date banner */
.paymentDueBanner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 12px 10px;
    background: #e6f6f8;
    border-radius: 9px;
    box-sizing: border-box;
}

.paymentDueInfo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.paymentClockIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008ab5;
    flex-shrink: 0;
}

.paymentDueLabel {
    margin: 0 0 3px;
    color: #0085b5;
    font-size: 12px;
    line-height: 1.2;
}

.paymentDueDate {
    margin: 0;
    color: #0085b5;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.paymentInvoiceBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 7px 10px;
    background: #ffffff;
    border-radius: 8px;
    color: #008a2f;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.paymentInvoiceBtn:hover {
    background: #f3f9f0;
    color: #006b24;
}

/* Smaller screens */
@media (max-width: 400px) {
  

    .paymentOverviewContent {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 8px;
    }

    .paymentDonutWrapper {
        width: 150px;
        height: 150px;
    }

    .paymentDonutWrapper .MuiChartsWrapper-root {
        width: 150px !important;
        height: 150px !important;
    }

    .paymentDonutCenter h4 {
        font-size: 13px;
    }

    .paymentBreakdown {
        gap: 14px;
    }

    .paymentBreakdownRow {
        grid-template-columns: 8px minmax(0, 1fr) 25px;
        gap: 5px;
    }

    .paymentAmount {
        grid-column: 2 / -1;
        text-align: left;
    }

    .paymentDueBanner {
        padding: 8px;
    }

    .paymentInvoiceBtn {
        padding: 7px;
        font-size: 8px;
    }
}