/* =========================================================
   EXECUTIVE SUMMARY
========================================================= */


/* =========================================================
   TREND SECTION
========================================================= */

.summary-trend {
    margin-bottom: 14px;
}


/* =========================================================
   TREND PANEL
========================================================= */

.summary-panel.trend {
    padding: 14px 16px;
}


/* =========================================================
   PANEL TITLE
========================================================= */

.summary-panel .panel-title {
    display: flex;
    align-items: center;

    gap: 6px;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 10px;

    color: #f8fafc;
}

.summary-panel .panel-title i {
    font-size: 12px;
}


/* =========================================================
   TREND KPI
========================================================= */

.trend-summary {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 10px;
}


.trend-item {
    background: rgba(255, 255, 255, 0.04);

    border-radius: 8px;

    padding: 9px 12px;

    min-height: 58px;

    min-width: 0;
}


.trend-item span {
    display: block;

    font-size: 10px;

    color: #9ca3af;

    margin-bottom: 3px;
}


.trend-item strong {
    display: block;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;

    color: #f8fafc;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   TREND CHART
========================================================= */

.trend-chart {
    width: 100%;

    height: 200px;
    min-height: 200px;
}


/* =========================================================
   MINI SUMMARY GRID
========================================================= */

.summary-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;

    width: 100%;

    align-items: stretch;
}


/* =========================================================
   MINI PANEL
========================================================= */

.summary-grid .summary-panel {
    padding: 12px;

    min-width: 0;

    overflow: hidden;
}


/* =========================================================
   PIE CHART
========================================================= */

.pie-chart {
    width: 100%;

    height: 100px;
    min-height: 100px;

    margin: 0 auto;
}


/* =========================================================
   PANEL LIST
========================================================= */

.panel-list {
    margin-top: 5px;
}


.panel-list div {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 8px;

    padding: 3px 0;

    min-width: 0;
}


.panel-list span {
    color: #9ca3af;

    font-size: 10px;

    white-space: nowrap;
}


.panel-list strong {
    font-size: 11px;

    font-weight: 600;

    text-align: right;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   APEXCHART FIX
========================================================= */

.summary-panel .apexcharts-canvas {
    max-width: 100% !important;

    margin: 0 auto;
}


.summary-panel .apexcharts-svg {
    max-width: 100% !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 992px) {

    .trend-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .summary-panel.trend {
        padding: 12px;
    }


    .trend-summary {
        gap: 8px;
    }


    .trend-chart {
        height: 190px;

        min-height: 190px;
    }


    .summary-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 480px) {

    .trend-summary {
        grid-template-columns: 1fr;
    }

}