/* body { */
/* background: #f4f6f9; */
/* color: #2f3947; */
/* font-family: "Inter", sans-serif; */
/* min-width: 320px; */
/* } */

.dashboard-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.dashboard-page-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-load-error {
    display: none;
}

.dashboard-section-caption,
.dashboard-filter-toolbar .btn,
.dashboard-table thead th,
.dashboard-table tbody td,
.dashboard-status-list,
.dashboard-deadline-copy,
.dashboard-footer-meta,
.dashboard-kpi-card .text-muted,
.dashboard-kpi-card p {
    font-size: 12px;
}

.dashboard-summary-strip {
    margin-bottom: 20px;
}

.dashboard-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #313a46;
    font-size: 12px;
    font-weight: 600;
}

    .dashboard-summary-chip.bad {
        background: rgba(255, 77, 79, 0.12);
        color: #d63939;
    }

    .dashboard-summary-chip.good {
        background: rgba(82, 196, 26, 0.14);
        color: #0d9f62;
    }

    .dashboard-summary-chip.info {
        background: rgba(0, 97, 150, 0.12);
        color: #006196;
    }

    .dashboard-summary-chip.warn {
        background: rgba(250, 173, 20, 0.16);
        color: #b7791f;
    }

.dashboard-kpi-row > [class*="col-"] {
    margin-bottom: 16px;
}

.dashboard-kpi-card {
    height: 100%;
}

.dashboard-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.dashboard-kpi-title {
    flex: 1 1 auto;
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.1;
}

.dashboard-kpi-value {
    display: block;
    margin: 1px 0 4px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dashboard-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 0.875rem;
    background: #eef2f7;
}

    .dashboard-kpi-icon i {
        display: block;
        font-size: 22px;
        line-height: 1;
    }

[id^="kpiValue"] {
    font-size: 28px !important;
    line-height: 1.15;
}

.dashboard-kpi-card p {
    line-height: 1.35;
}

.dashboard-kpi-card .dashboard-mini-progress {
    margin-top: 6px;
}

.dashboard-kpi-icon.dashboard-kpi-icon-primary {
    background: rgba(0, 97, 150, 0.12);
    color: #006196;
}

.dashboard-kpi-icon.dashboard-kpi-icon-success {
    background: rgba(13, 159, 98, 0.12);
    color: #0d9f62;
}

.dashboard-kpi-icon.dashboard-kpi-icon-warning {
    background: rgba(212, 134, 10, 0.12);
    color: #d4860a;
}

.dashboard-kpi-icon.dashboard-kpi-icon-danger {
    background: rgba(255, 77, 79, 0.12);
    color: #ff4d4f;
}

.dashboard-mini-progress {
    height: 4px;
    margin-top: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

    .dashboard-mini-progress > span {
        display: block;
        height: 100%;
        border-radius: inherit;
    }

.dashboard-header-title {
    margin-bottom: 4px;
    color: #313a46;
    font-size: 16px;
    font-weight: 600;
}

.dashboard-section-caption {
    margin-bottom: 16px;
    color: #8391a2;
}

.dashboard-chart-box {
    position: relative;
    height: 320px;
}

.dashboard-chart-box-lg {
    height: 420px;
}

.dashboard-chart-box-sm {
    height: 280px;
}

.dashboard-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 12px;
}

.dashboard-legend-swatch {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 2px;
}

.dashboard-progress-list-row {
    margin-bottom: 14px;
}

.dashboard-progress-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.dashboard-progress-name {
    padding-right: 8px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
}

.dashboard-progress-meta {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-progress.progress-xs {
    height: 6px;
    background: #eef2f7;
}

.dashboard-sector-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dashboard-sector-title {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-sector-buttons {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
}

    .dashboard-sector-buttons .btn {
        margin: 0 4px 8px;
    }

.dashboard-status-list {
    max-height: 460px;
    overflow: auto;
    padding-right: 4px;
}

.dashboard-status-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

    .dashboard-status-item:last-child {
        border-bottom: 0;
    }

.dashboard-status-item-name {
    flex: 1 1 auto;
    color: #313a46;
    line-height: 1.45;
}

.dashboard-badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

    .dashboard-badge-status.bad,
    .dashboard-data-badge.bad {
        background: rgba(255, 77, 79, 0.12);
        color: #d63939;
    }

    .dashboard-badge-status.good,
    .dashboard-data-badge.good {
        background: rgba(82, 196, 26, 0.14);
        color: #0d9f62;
    }

    .dashboard-badge-status.info,
    .dashboard-data-badge.info {
        background: rgba(0, 97, 150, 0.12);
        color: #006196;
    }

    .dashboard-badge-status.warn,
    .dashboard-data-badge.warn {
        background: rgba(250, 173, 20, 0.16);
        color: #b7791f;
    }

.dashboard-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

    .dashboard-filter-toolbar .form-control,
    .dashboard-filter-toolbar .btn {
        margin-right: 8px;
        margin-bottom: 8px;
    }

.dashboard-search-input {
    max-width: 420px;
}

.dashboard-table thead th {
    white-space: nowrap;
    border-top: 0;
    border-bottom-width: 1px;
    color: #8391a2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.dashboard-table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
}

.dashboard-table-parent {
    cursor: pointer;
    background: #fafbfd;
}

.dashboard-table-org {
    color: #313a46;
    font-weight: 600;
    line-height: 1.45;
}

.dashboard-table-measure {
    padding-left: 28px !important;
    color: #5f6d7b;
    line-height: 1.45;
}

.dashboard-chevron {
    display: inline-block;
    width: 14px;
    color: #98a6b3;
    transition: transform 0.15s ease;
}

    .dashboard-chevron::before {
        content: "\203A";
        display: inline-block;
        font-size: 14px;
        line-height: 1;
    }

    .dashboard-chevron.open {
        transform: rotate(90deg);
    }

.dashboard-deadline-card {
    height: 100%;
}

.dashboard-deadline-date {
    margin-bottom: 8px;
    color: #98a6b3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-deadline-title {
    margin-bottom: 8px;
    color: #313a46;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.dashboard-deadline-copy {
    margin-bottom: 0;
    color: #5f6d7b;
    line-height: 1.6;
}

.dashboard-deadline-alert {
    background: rgba(224, 170, 122, 0.18);
}

    .dashboard-deadline-alert .dashboard-deadline-date,
    .dashboard-deadline-alert .dashboard-countdown-value {
        color: var(--mfsand);
    }

.dashboard-countdown-value {
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

[id^="typeMetric"]:not(#typeMetricRow) {
    margin-bottom: 8px;
    color: var(--primary) !important;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-type-metric p {
    color: #5f6d7b !important;
}

.dashboard-footer-meta {
    color: #8391a2;
}

.dashboard-data-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .dashboard-shell {
        padding: 18px 12px 32px;
    }

    .dashboard-page-title {
        font-size: 24px;
    }

    .dashboard-kpi-title {
        font-size: 12px;
    }

    .dashboard-countdown-value,
    [id^="typeMetric"]:not(#typeMetricRow) {
        font-size: 24px;
    }
}
