﻿.dashboard-page {
    padding: 2rem 0 4rem;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .dashboard-header h1 {
        margin: 0.25rem 0 0.5rem;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 750;
        color: #14213d;
    }

    .dashboard-header p,
    .section-title p {
        margin: 0;
        color: #667085;
    }

.dashboard-eyebrow {
    color: #0072bc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-date {
    padding: 0.75rem 1rem;
    color: #475467;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    white-space: nowrap;
}

.dashboard-section,
.comparison-panel {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .section-title h2 {
        margin: 0 0 0.25rem;
        color: #14213d;
        font-size: 1.35rem;
        font-weight: 700;
    }

.year-badge {
    padding: 0.4rem 0.8rem;
    color: #ffffff;
    background: #0072bc;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 145px;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 0.9rem;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
}

.metric-card-total {
    color: #ffffff;
    background: #14213d;
    border-color: #14213d;
}

.metric-label {
    color: #667085;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-card-total .metric-label {
    color: #d0d5dd;
}

.metric-value {
    margin-top: 1rem;
    color: #14213d;
    font-size: 2.5rem;
    line-height: 1;
}

.metric-card-total .metric-value {
    color: #ffffff;
}

.comparison-panel {
    background: #ffffff;
}

.comparison-table {
    margin-bottom: 0;
}

    .comparison-table thead th {
        padding: 0.9rem;
        color: #475467;
        background: #f8fafc;
        border-bottom: 1px solid #e4e7ec;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .comparison-table tbody td {
        padding: 1rem 0.9rem;
        color: #344054;
        border-color: #eaecf0;
        vertical-align: middle;
    }

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

@media (max-width: 767px) {
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-date {
        width: 100%;
        white-space: normal;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section,
    .comparison-panel {
        padding: 1rem;
    }
}

.download-column {
    min-width: 165px;
}

.btn-download {
    min-width: 140px;
    padding: 0.5rem 0.9rem;
    color: #ffffff;
    background: #315fc5;
    border: 1px solid #315fc5;
    border-radius: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .btn-download:hover,
    .btn-download:focus {
        color: #ffffff;
        background: #244ca7;
        border-color: #244ca7;
        transform: translateY(-1px);
    }

    .btn-download:active {
        transform: translateY(0);
    }