/* ============================================================
   DASHBOARD VISUAL V1.1
   Density, hierarchy and large-screen refinement
   ============================================================ */


/* Wider and more useful working area */

.content {
    max-width: 1660px;
    padding:
        24px
        36px
        64px;
}


/* ------------------------------------------------------------
   TOPBAR
   ------------------------------------------------------------ */

.topbar {
    min-height: 72px;
    padding:
        12px
        36px;
}

.topbar h1 {
    margin: 2px 0 0;

    color: #101828;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;

    letter-spacing: -0.025em;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.hero {
    min-height: 138px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 32px;

    padding:
        24px
        28px;
}

.hero-title,
.hero h2 {
    max-width: 860px;

    margin:
        7px
        0
        0;

    color: #ffffff;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;

    letter-spacing: -0.035em;
}

.hero-description,
.hero p {
    max-width: 760px;

    margin:
        8px
        0
        0;

    color: #aab2bf;

    font-size: 13px;
    line-height: 1.55;
}

.hero-score {
    min-width: 112px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hero-score > span {
    color: #ffffff;

    font-size: 40px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.05em;
}

.hero-score small {
    color: #98a2b3;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
}


/* ------------------------------------------------------------
   KPI
   ------------------------------------------------------------ */

.kpi-grid {
    gap: 12px;
    margin-top: 14px;
}

.kpi-card {
    min-height: 112px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding:
        16px
        18px;
}

.kpi-label {
    color: #667085;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.kpi-value {
    margin-top: 12px;

    color: #101828;

    font-size: 26px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.04em;
}

.kpi-caption {
    margin-top: 8px;

    color: #98a2b3;

    font-size: 10px;
    line-height: 1.35;
}


/* ------------------------------------------------------------
   MAIN WORK AREA
   ------------------------------------------------------------ */

.dashboard-grid {
    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, 0.72fr);

    align-items: start;

    gap: 14px;

    margin-top: 14px;
}

.right-column {
    display: grid;
    gap: 14px;
}


/* ------------------------------------------------------------
   PANELS
   ------------------------------------------------------------ */

.panel {
    overflow: hidden;

    border-color: #e4e7ec;
    border-radius: 14px;

    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.025);
}

.panel-header {
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        14px
        18px;

    border-bottom: 1px solid #eaecf0;
}

.panel-header.compact {
    min-height: 62px;
}

.panel-header h3,
.result-panel h3 {
    margin:
        3px
        0
        0;

    color: #101828;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: -0.02em;
}

.section-eyebrow {
    color: #7f8a9a;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.11em;
}

.counter {
    min-width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border: 1px solid #e4e7ec;
    border-radius: 8px;

    background: #f9fafb;
    color: #344054;

    font-size: 11px;
    font-weight: 700;
}


/* ------------------------------------------------------------
   ACTION QUEUE
   ------------------------------------------------------------ */

.action-list {
    padding: 0 14px 14px;
}

.action-item {
    margin-top: 10px;
    padding: 15px 16px;

    border: 1px solid #e4e7ec;
    border-radius: 11px;

    background: #ffffff;

    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.action-item:hover {
    border-color: #cfd5dd;

    background: #ffffff;

    box-shadow:
        0 3px 10px rgba(16, 24, 40, 0.035);
}

.action-title {
    color: #101828;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.action-description {
    margin-top: 5px;

    color: #667085;

    font-size: 11px;
    line-height: 1.5;
}


/* ------------------------------------------------------------
   INSIGHTS
   ------------------------------------------------------------ */

.insight-list {
    padding:
        0
        18px
        8px;
}

.insight-row {
    min-height: 60px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid #eaecf0;
}

.insight-row:last-child {
    border-bottom: 0;
}

.insight-row strong {
    display: block;

    color: #101828;

    font-size: 14px;
    font-weight: 700;
}

.insight-row span:not(.insight-icon) {
    color: #667085;

    font-size: 10px;
    line-height: 1.35;
}


/* ------------------------------------------------------------
   RESULTS
   ------------------------------------------------------------ */

.result-panel {
    padding:
        16px
        18px;
}

.result-row {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eaecf0;

    color: #667085;

    font-size: 11px;
}

.result-row strong {
    color: #101828;

    font-size: 12px;
}

.result-money {
    margin-top: 14px;
    padding: 14px;

    border-radius: 10px;

    background: #ecf9f1;
}

.result-money span {
    color: #667085;

    font-size: 10px;
}

.result-money strong {
    display: block;

    margin-top: 6px;

    color: #168447;

    font-size: 18px;
    font-weight: 700;
}

.result-money small {
    display: block;

    margin-top: 5px;

    color: #7a8b82;

    font-size: 9px;
    line-height: 1.35;
}


/* ------------------------------------------------------------
   LARGE DESKTOP
   ------------------------------------------------------------ */

@media (min-width: 1700px) {
    .content {
        max-width: 1720px;
    }

    .dashboard-grid {
        grid-template-columns:
            minmax(0, 2.15fr)
            minmax(320px, 0.68fr);
    }
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 1180px) {
    .content {
        padding-left: 24px;
        padding-right: 24px;
    }

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


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 780px) {
    .content {
        padding:
            18px
            16px
            44px;
    }

    .topbar {
        padding:
            10px
            16px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-score {
        justify-content: flex-start;
    }
}

/* ============================================================
   DASHBOARD VISUAL V1.2
   Scale & Readability
   ============================================================ */


/* ------------------------------------------------------------
   WORKSPACE SCALE
   ------------------------------------------------------------ */

.content {
    max-width: none;

    padding:
        24px
        40px
        64px;
}

#dashboard {
    width: 100%;
}


/* ------------------------------------------------------------
   HERO READABILITY
   ------------------------------------------------------------ */

.hero {
    min-height: 144px;

    padding:
        26px
        30px;
}

.hero-title,
.hero h2 {
    font-size: 29px;
}

.hero-description,
.hero p {
    font-size: 14px;
}

.hero-score > span {
    font-size: 42px;
}

.hero-score small {
    font-size: 11px;
}


/* ------------------------------------------------------------
   KPI READABILITY
   ------------------------------------------------------------ */

.kpi-card {
    min-height: 118px;

    padding:
        17px
        20px;
}

.kpi-label {
    font-size: 12px;
}

.kpi-value {
    font-size: 28px;
}

.kpi-caption {
    font-size: 11px;
}


/* ------------------------------------------------------------
   MAIN CONTENT PROPORTIONS
   ------------------------------------------------------------ */

.dashboard-grid {
    grid-template-columns:
        minmax(0, 2.25fr)
        minmax(330px, 0.75fr);

    gap: 16px;
}


/* ------------------------------------------------------------
   PANEL TYPOGRAPHY
   ------------------------------------------------------------ */

.panel-header {
    padding:
        16px
        20px;
}

.panel-header h3,
.result-panel h3 {
    font-size: 16px;
}

.section-eyebrow {
    font-size: 10px;
}


/* ------------------------------------------------------------
   ACTION CARDS
   ------------------------------------------------------------ */

.action-list {
    padding:
        0
        16px
        16px;
}

.action-item {
    padding:
        16px
        18px;
}

.action-title {
    font-size: 14px;
}

.action-description {
    font-size: 12px;
}

.action-item small {
    font-size: 10px;
}


/* ------------------------------------------------------------
   RIGHT COLUMN
   ------------------------------------------------------------ */

.insight-list {
    padding:
        0
        20px
        10px;
}

.insight-row {
    min-height: 64px;
}

.insight-row strong {
    font-size: 15px;
}

.insight-row span:not(.insight-icon) {
    font-size: 11px;
}

.result-panel {
    padding:
        18px
        20px;
}

.result-row {
    min-height: 44px;

    font-size: 12px;
}

.result-row strong {
    font-size: 13px;
}

.result-money {
    padding: 16px;
}

.result-money span {
    font-size: 11px;
}

.result-money strong {
    font-size: 20px;
}

.result-money small {
    font-size: 10px;
}


/* ------------------------------------------------------------
   VERY LARGE DESKTOP
   ------------------------------------------------------------ */

@media (min-width: 1600px) {
    .content {
        padding-left: 48px;
        padding-right: 48px;
    }

    .dashboard-grid {
        grid-template-columns:
            minmax(0, 2.35fr)
            minmax(340px, 0.72fr);
    }
}


/* ------------------------------------------------------------
   NORMAL LAPTOP
   ------------------------------------------------------------ */

@media (max-width: 1360px) {
    .content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .dashboard-grid {
        grid-template-columns:
            minmax(0, 1.8fr)
            minmax(300px, 0.8fr);
    }
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}