.dashboard-area-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(.75rem, 1.5vw, 1.5rem);
    padding-right: clamp(.75rem, 1.5vw, 1.5rem);
}

.dashboard-area-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-eyebrow {
    color: #5b6472;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-subtitle,
.dashboard-panel-note,
.dashboard-kpi-note {
    color: #5f6b7a;
}

.dashboard-region-filter {
    min-width: min(24rem, 100%);
}

.dashboard-phase-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: .75rem;
}

.dashboard-phase {
    border: 1px solid #d8dde6;
    border-radius: .5rem;
    background: #fff;
    padding: .8rem .9rem;
    min-height: 6.25rem;
}

.dashboard-phase.is-current {
    border-width: 2px;
}

.dashboard-phase-name {
    font-weight: 700;
}

.dashboard-phase-state {
    margin-top: .25rem;
    font-size: .95rem;
}

.dashboard-phase-date {
    margin-top: .2rem;
    color: #657081;
    font-size: .82rem;
}

.dashboard-phase-open {
    border-color: #198754;
    background: #f3fbf6;
}

.dashboard-phase-paused {
    border-color: #b7791f;
    background: #fff8e1;
}

.dashboard-phase-closed {
    border-color: #8993a4;
    background: #f7f8fa;
}

.dashboard-phase-missing {
    border-color: #c75d5d;
    background: #fff5f5;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: .75rem;
}

.dashboard-kpi,
.dashboard-panel {
    border: 1px solid #d8dde6;
    border-radius: .5rem;
    background: #fff;
}

.dashboard-kpi {
    display: grid;
    gap: .2rem;
    min-height: 7rem;
    padding: .9rem 1rem;
}

.dashboard-kpi-label {
    color: #5b6472;
    font-size: .8rem;
    font-weight: 700;
}

.dashboard-kpi-value {
    font-size: 1.65rem;
    line-height: 1.1;
}

.dashboard-kpi-link {
    font-size: .88rem;
}

.dashboard-panel {
    padding: 1rem;
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
}

.dashboard-panel-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.dashboard-program-table th,
.dashboard-program-table td,
.dashboard-region-table th,
.dashboard-region-table td {
    vertical-align: top;
}

.dashboard-program-code {
    color: #0d6efd;
    font-size: .8rem;
    font-weight: 800;
}

.dashboard-program-title {
    max-width: 46rem;
    font-weight: 700;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    border-radius: 999px;
    padding: .28rem .65rem;
    font-size: .78rem;
    font-weight: 700;
}

.dashboard-status-ok {
    background: #d1e7dd;
    color: #0f5132;
}

.dashboard-status-warn {
    background: #fff3cd;
    color: #664d03;
}

.dashboard-status-ko {
    background: #f8d7da;
    color: #842029;
}

.dashboard-missing-list {
    margin: 0;
    padding-left: 1rem;
    font-size: .86rem;
}

.dashboard-missing-list li + li {
    margin-top: .1rem;
}

.dashboard-message {
    display: grid;
    gap: .2rem;
    border-top: 1px solid #e5e9f0;
    color: inherit;
    padding: .75rem 0;
    text-decoration: none;
}

.dashboard-message:first-of-type {
    border-top: 0;
}

.dashboard-message span,
.dashboard-message small,
.dashboard-empty {
    color: #5f6b7a;
}

.dashboard-panel-link {
    flex: 0 0 auto;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-activity-list {
    margin-top: .75rem;
}

.dashboard-activity {
    display: grid;
    grid-template-columns: .75rem minmax(0, 1fr);
    gap: .65rem;
    position: relative;
    padding: .45rem 0 .65rem;
}

.dashboard-activity + .dashboard-activity {
    border-top: 1px solid #e5e9f0;
}

.dashboard-activity-marker {
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
    margin-top: .35rem;
    background: #8993a4;
}

.dashboard-activity-ok {
    background: #198754;
}

.dashboard-activity-warn {
    background: #b7791f;
}

.dashboard-activity-ko {
    background: #dc3545;
}

.dashboard-activity-neutral {
    background: #0f6cbd;
}

.dashboard-activity-body {
    min-width: 0;
}

.dashboard-activity-topline {
    display: flex;
    justify-content: space-between;
    gap: .65rem;
    color: #1f2937;
    font-size: .86rem;
}

.dashboard-activity-topline strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-activity-topline span,
.dashboard-activity-meta {
    color: #5f6b7a;
    font-size: .76rem;
}

.dashboard-activity p {
    margin: .15rem 0 .25rem;
    color: #344054;
    font-size: .84rem;
    line-height: 1.3;
}

.dashboard-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.dashboard-mini-progress {
    width: 7.5rem;
    height: .28rem;
    margin-top: .25rem;
}

.dashboard-region-compact-table td {
    vertical-align: middle;
}

.dashboard-progress-cell {
    min-width: 14rem;
}

.dashboard-progress-line {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.dashboard-progress-percent {
    min-width: 3.25rem;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-progress-track {
    flex: 1 1 auto;
    height: .5rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ebf2;
}

.dashboard-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: #198754;
}

.dashboard-region-metric {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-region-checklist {
    display: grid;
    gap: .28rem;
    min-width: 13rem;
}

.dashboard-region-checklist-compact {
    min-width: 10.5rem;
}

.dashboard-region-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid #d8dde6;
    border-radius: .45rem;
    background: #f8fafc;
    color: #344054;
    padding: .28rem .45rem;
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-region-check strong {
    color: #1f2937;
    font-weight: 800;
}

.dashboard-region-check-ok {
    border-color: #b7e0c7;
    background: #f3fbf6;
}

.dashboard-region-check-warn {
    border-color: #f0d589;
    background: #fff8e1;
}

.dashboard-region-check-ko {
    border-color: #f1b8bd;
    background: #fff5f5;
}

.dashboard-region-check-neutral {
    border-color: #d8dde6;
    background: #f7f8fa;
}

.dashboard-actions {
    display: grid;
    gap: .65rem;
    margin-top: .75rem;
}

.dashboard-action {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border: 1px solid #d8dde6;
    border-radius: .5rem;
    color: inherit;
    padding: .75rem;
    text-decoration: none;
}

.dashboard-action i {
    font-size: 1.2rem;
}

.dashboard-action small {
    display: block;
    color: #5f6b7a;
    line-height: 1.25;
}

.dashboard-action-primary {
    border-left: 4px solid #0d6efd;
}

.dashboard-action-info {
    border-left: 4px solid #0f6cbd;
}

.dashboard-action-success {
    border-left: 4px solid #198754;
}

@media (max-width: 767.98px) {
    .dashboard-area-page {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .dashboard-area-header,
    .dashboard-panel-header {
        display: block;
    }

    .dashboard-region-filter,
    .dashboard-panel-header .btn {
        margin-top: .75rem;
    }

    .dashboard-title {
        font-size: 1.45rem;
    }

    .dashboard-region-check {
        white-space: normal;
    }

    .dashboard-progress-cell {
        min-width: 11rem;
    }
}
