.dashboard-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-top: 40px;
    box-sizing: border-box;
}

.dashboard-section {
    min-width: 0;
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    color: #172033;
    font-size: 24px;
    font-weight: 700;
}

/* =========================================
   KPI CARDS
========================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    min-width: 0;
    margin-bottom: 36px;
}

.kpi-card {
    min-width: 0;
    min-height: 130px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid #e5e8ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 32, 45, .08);
    box-sizing: border-box;
    transition: .2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 32, 45, .12);
}

.kpi-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef5f8;
    font-size: 28px;
}

.kpi-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.kpi-label {
    margin-bottom: 6px;
    color: #6b7788;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.kpi-value {
    color: #122033;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================
   PROJECTS
========================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.project-card {
    position: relative;
    min-width: 0;
    min-height: 160px;
    padding: 22px;
    border: 1px solid #e5e8ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 32, 45, .08);
    box-sizing: border-box;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.project-card-header > section {
    min-width: 0;
}

.project-title {
    margin: 0;
    color: #0d3d4d;
    font-size: 18px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.project-code {
    display: block;
    margin-top: 4px;
    color: #7b8797;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.project-phase {
    margin-top: 18px;
    color: #172033;
    font-size: 16px;
    font-weight: 600;
}

.project-meta {
    margin-top: 8px;
    padding-right: 190px;
    color: #7b8797;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.project-card-actions {
    position: absolute;
    right: 22px;
    bottom: 22px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .kpi-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .kpi-grid {
        gap: 16px;
    }

    .kpi-card {
        min-height: 110px;
        padding: 18px;
    }

    .project-card {
        padding-bottom: 78px;
    }

    .project-meta {
        padding-right: 0;
    }

    .project-card-actions {
        right: 22px;
        left: 22px;
    }

    .project-card-actions .cms-button {
        width: 100%;
    }
}
