/* =========================================================
   REVENUE PERFORMANCE - COMPACT
========================================================= */


/* =========================================================
   MAIN GRID
========================================================= */

.revenue-grid {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 260px;

    gap: 14px;

    margin-top: 14px;

    align-items: stretch;

    width: 100%;

    min-width: 0;
}


/* =========================================================
   CHART PANEL
========================================================= */

.revenue-chart-panel {
    background: #1E293B;

    border: 1px solid #334155;

    border-radius: 12px;

    padding: 16px;

    width: 100%;

    min-width: 0;

    max-width: 100%;

    overflow: hidden;
}


/* =========================================================
   PANEL TITLE
========================================================= */

.revenue-chart-panel .panel-title {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #F8FAFC;
}


.revenue-chart-panel .panel-title i {
    font-size: 13px;
}


/* =========================================================
   CHART
========================================================= */

#revenueChart {
    width: 100%;

    height: 260px;

    min-height: 260px;

    min-width: 0;
}


/* ApexCharts */

.revenue-chart-panel .apexcharts-canvas,
.revenue-chart-panel .apexcharts-svg {
    max-width: 100% !important;
}


/* =========================================================
   SUMMARY COLUMN
========================================================= */

.revenue-summary {
    display: flex;

    flex-direction: column;

    gap: 10px;

    width: 100%;

    min-width: 0;
}


/* =========================================================
   SUMMARY CARD
========================================================= */

.summary-item {
    background: #1E293B;

    border: 1px solid #334155;

    border-radius: 11px;

    padding: 12px 14px;

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* =========================================================
   LABEL
========================================================= */

.summary-item span {
    display: block;

    color: #94A3B8;

    margin-bottom: 4px;

    font-size: 11px;

    line-height: 1.3;
}


/* =========================================================
   VALUE
========================================================= */

.summary-item strong {
    display: block;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.25;

    color: #F8FAFC;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   OPTIONAL SMALL TEXT
========================================================= */

.summary-item small {
    display: block;

    margin-top: 3px;

    font-size: 10px;

    color: #64748B;

    line-height: 1.3;
}


/* =========================================================
   RESPONSIVE - MEDIUM DESKTOP
========================================================= */

@media (max-width: 1200px) {

    .revenue-grid {
        grid-template-columns: minmax(0, 1fr) 230px;
    }

    .summary-item strong {
        font-size: 17px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .revenue-grid {
        grid-template-columns: 1fr;
    }


    .revenue-summary {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .summary-item {
        min-height: 80px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .revenue-grid {
        gap: 10px;

        margin-top: 10px;
    }


    .revenue-chart-panel {
        padding: 12px;
    }


    #revenueChart {
        height: 220px;

        min-height: 220px;
    }


    .summary-item {
        padding: 10px 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    .revenue-summary {
        grid-template-columns: 1fr;
    }


    .summary-item strong {
        font-size: 16px;
    }

}