.dashboard {
    width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 16px 96px 16px 16px;
    color: var(--white);
    font-family: 'cairo', Arial, sans-serif;
}

.kpi-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 20px;
}


.kpi-card {

    background: var(--background-secondary);

    border: 1px solid var(--border-cl);

    border-radius: 14px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 16px;

    transition: border-color .2s;
}


.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: bold;
}


.kpi-icon.green {
    background: rgba(129, 201, 149, .15);
    stroke: #81c995;
}


.kpi-icon.blue {
    background: rgba(138, 180, 248, .15);
    stroke: #8ab4f8;
}


.kpi-icon.purple {
    background: rgba(196, 181, 253, .15);
    stroke: #c4b5fd;
}


.kpi-icon.orange {
    background: rgba(251, 188, 4, .15);
    stroke: #fbbc04;
}


.kpi-title {
    color: #9aa0a6;
    font-size: 14px;
    margin-bottom: 4px;
}


.kpi-value {
    font-size: 28px;
    color: #f1f3f4;
}


.kpi-change {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
}


.green-text {
    color: #81c995;
    stroke: #81c995;
}


/* =========================================================
   CHART GRID
========================================================= */

.chart-grid {
    display: grid;
    grid-template-columns:
        2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


.dashboard-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-cl);
    border-radius: 14px;
    padding: 22px;
    box-sizing: border-box;
}


.large-card {

    grid-row: span 1;
}


.card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 5px;
}


.card-title {

    font-size: 16px;

    color: #e8eaed;
}


.card-subtitle {

    color: #9aa0a6;

    font-size: 12px;

    margin-top: 5px;
}


.chart {

    width: 100%;

    height: 330px;
}


.legend {

    display: flex;

    gap: 15px;

    color: #9aa0a6;

    font-size: 12px;
}


.legend span {

    display: flex;

    align-items: center;

    gap: 5px;
}


.legend-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    display: inline-block;
}


.green-dot {

    background: #81c995;
}


.blue-dot {

    background: #6968FC;
}


/* =========================================================
   BOTTOM GRID
========================================================= */

.bottom-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}


.orders-card {

    min-width: 0;
}


.view-btn {
    color: var(--main-cl);
    background-color: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
}


.view-btn:hover {

    background-color: #3c4043;
}


/* =========================================================
   TABLE
========================================================= */

.orders-table-wrapper {

    overflow-x: auto;

    margin-top: 15px;
}


.orders-table {

    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}


.orders-table th {

    color: #9aa0a6;

    font-weight: normal;

    text-align: right;

    padding: 12px 8px;

    border-bottom: 1px solid #303134;
}


.orders-table td {

    padding: 14px 8px;

    border-bottom: 1px solid #303134;

    color: #e8eaed;
}


.orders-table tr:last-child td {

    border-bottom: none;
}


.orders-table td:first-child {

    color: var(--main-cl);
}


/* =========================================================
   STATUS
========================================================= */

.status {

    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;
}


.status.paid {

    background: rgba(129, 201, 149, .12);

    color: #81c995;
}


.status.shipped {

    background: rgba(105, 104, 252, .1);

    color: #6968FC;
}


.status.pending {

    background: rgba(251, 188, 4, .12);

    color: #fbbc04;
}


/* =========================================================
   CATEGORY
========================================================= */

.category-chart {

    width: 100%;

    height: 330px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .kpi-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .chart-grid {

        grid-template-columns: 1fr;

    }

    .bottom-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 800px) {

    .dashboard {

        padding: 12px;

    }

    .kpi-grid {

        grid-template-columns: 1fr;

    }

    .dashboard-card {

        padding: 16px;

    }

    .chart {

        height: 280px;

    }

    .category-chart {

        height: 280px;

    }

    .legend {

        display: none;

    }

}