/* =========================================================
   COLLECTION DASHBOARD - COMPACT
========================================================= */


/* =========================================================
   MAIN GRID
========================================================= */

.collection-grid {
    display: grid;

    grid-template-columns: 220px 250px minmax(0, 1fr);

    gap: 14px;

    margin-top: 14px;

    align-items: stretch;
}


/* =========================================================
   COLLECTION CARD
========================================================= */

.collection-card {
    background: #1E293B;

    border: 1px solid #334155;

    border-radius: 12px;

    padding: 16px;

    min-width: 0;
}


/* =========================================================
   MAIN VALUE
========================================================= */

.collection-value {
    text-align: center;
}


.collection-value strong {
    display: block;

    color: #F8FAFC;

    font-size: 22px;

    line-height: 1.25;

    font-weight: 700;

    white-space: nowrap;
}


.collection-value small {
    display: block;

    color: #94A3B8;

    font-size: 11px;

    margin-top: 3px;
}


/* =========================================================
   PAID SUMMARY
========================================================= */

.paid-summary {
    display: flex;

    justify-content: space-around;

    gap: 10px;

    margin-top: 8px;
}


.paid-summary > div {
    flex: 1;

    min-width: 0;

    text-align: center;
}


.paid-summary span {
    display: block;

    color: #94A3B8;

    font-size: 11px;

    margin-bottom: 3px;
}


.paid-summary strong {
    display: block;

    color: #F8FAFC;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   COLLECTION TABLE
========================================================= */

.collection-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 12px;
}


.collection-table td {
    padding: 7px 6px;

    border-bottom: 1px solid #334155;

    color: #CBD5E1;

    line-height: 1.3;
}


.collection-table tr:last-child td {
    border-bottom: none;
}


.collection-table td:last-child {
    text-align: right;

    font-weight: 600;

    color: #F8FAFC;

    white-space: nowrap;
}


/* =========================================================
   PANEL TITLE
========================================================= */

.collection-card .panel-title {
    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 10px;
}


.collection-card .panel-title i {
    font-size: 13px;
}


/* =========================================================
   CHART INSIDE COLLECTION
========================================================= */

.collection-card .pie-chart {
    height: 105px;

    min-height: 105px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .collection-grid {
        grid-template-columns: 200px 230px minmax(0, 1fr);
    }

}


@media (max-width: 992px) {

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-grid .collection-card:last-child {
        grid-column: 1 / -1;
    }

}


@media (max-width: 768px) {

    .collection-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .collection-grid .collection-card:last-child {
        grid-column: auto;
    }

    .collection-card {
        padding: 12px;
    }

    .collection-value strong {
        font-size: 20px;
    }

}


@media (max-width: 480px) {

    .paid-summary {
        flex-direction: column;
    }

}