/* =========================================================
   EXPENSE DASHBOARD - COMPACT
========================================================= */


/* =========================================================
   MAIN GRID
========================================================= */

.expense-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.15fr)
        minmax(180px, 0.85fr);

    gap: 14px;

    margin-top: 14px;

    align-items: stretch;

    width: 100%;

    min-width: 0;
}


.expense-panel {
    background: #1E293B;

    border: 1px solid #334155;

    border-radius: 12px;

    padding: 16px;

    width: 100%;

    min-width: 0;

    max-width: 100%;

    overflow: hidden;
}


/* =========================================================
   PANEL
========================================================= */

.expense-panel {
    background: #1E293B;

    border: 1px solid #334155;

    border-radius: 12px;

    padding: 16px;

    width: 100%;

    min-width: 0;

    max-width: 100%;

    overflow: hidden;
}


/* =========================================================
   PANEL TITLE
========================================================= */

.expense-panel .panel-title {
    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 10px;
}


.expense-panel .panel-title i {
    font-size: 13px;
}


/* =========================================================
   CHART
========================================================= */

.expense-panel .pie-chart {
    height: 120px;

    min-height: 120px;
}


/* =========================================================
   LEGEND
========================================================= */

.expense-legend {
    margin-top: 10px;

    font-size: 12px;
}


.expense-legend div {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 6px;

    color: #CBD5E1;
}


/* =========================================================
   LEGEND LABEL
========================================================= */

.expense-legend span {
    font-size: 11px;
}


.expense-legend strong {
    font-size: 12px;

    font-weight: 600;

    color: #F8FAFC;

    white-space: nowrap;
}


/* =========================================================
   DOT
========================================================= */

.dot {
    display: inline-block;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    margin-right: 5px;

    flex-shrink: 0;
}


.transport {
    background: #3B82F6;
}

.salary {
    background: #22C55E;
}

.operational {
    background: #F59E0B;
}

.office {
    background: #8B5CF6;
}

.others {
    background: #64748B;
}


/* =========================================================
   EXPENSE ITEM
========================================================= */

.expense-item {
    margin-bottom: 11px;
}


.expense-item:last-child {
    margin-bottom: 0;
}


/* =========================================================
   EXPENSE HEADER
========================================================= */

.expense-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-bottom: 5px;

    color: #F8FAFC;

    font-size: 12px;
}


.expense-header span {
    color: #CBD5E1;

    font-size: 11px;
}


.expense-header strong {
    color: #F8FAFC;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress {
    height: 5px;

    background: #334155;

    border-radius: 10px;

    overflow: hidden;
}


.progress-bar {
    height: 100%;

    background: #3B82F6;

    border-radius: 10px;

    transition: width 0.3s ease;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .expense-grid {
        grid-template-columns: 240px minmax(0, 1fr);
    }

}


@media (max-width: 992px) {

    .expense-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    .expense-grid {
        gap: 10px;

        margin-top: 10px;
    }

    .expense-panel {
        padding: 12px;
    }

    .expense-panel .pie-chart {
        height: 110px;

        min-height: 110px;
    }

}


@media (max-width: 480px) {

    .expense-header {
        font-size: 11px;
    }

}