.dashboard-page {
    padding-top: 25px;
}
.dashboard-page .page-heading {
    margin-bottom: 18px;
}
.dashboard-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dashboard-filter select {
    height: 32px;
    padding: 0 28px 0 10px;
    color: var(--text-secondary);
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    font-size: 12px;
}
.dashboard-note {
    color: var(--text-muted);
    font-size: 12px;
}
.dashboard-metrics {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.dashboard-metric {
    min-height: 92px;
    padding: 16px 18px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    cursor: pointer;
}
.dashboard-metric:hover {
    border-color: #b9d4ff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
.dashboard-metric > i {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 16px;
}
.dashboard-metric:nth-child(1) > i {
    color: var(--brand);
    background: var(--brand-soft);
}
.dashboard-metric:nth-child(2) > i {
    color: var(--success);
    background: var(--success-soft);
}
.dashboard-metric:nth-child(3) > i {
    color: var(--purple);
    background: var(--purple-soft);
}
.dashboard-metric:nth-child(4) > i {
    color: var(--warning);
    background: var(--warning-soft);
}
.dashboard-metric span {
    display: block;
}
.dashboard-metric small,
.dashboard-metric em {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}
.dashboard-metric strong {
    display: block;
    margin: 3px 0;
    color: var(--text);
    font-size: 24px;
    line-height: 27px;
}
.dashboard-metric em {
    color: var(--success);
    font-size: 12px;
}
.dashboard-panels {
    display: grid;
    grid-template-columns: minmax(570px, 1.55fr) minmax(350px, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.dashboard-panels.bottom {
    grid-template-columns: minmax(570px, 1.45fr) minmax(360px, 1fr);
}
.chart-toolbar {
    height: 30px;
    padding: 11px 20px 0;
    display: flex;
    align-items: center;
    gap: 18px;
}
.legend {
    color: var(--text-secondary);
    font-size: 12px;
}
.legend i {
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    display: inline-block;
}
.legend-blue {
    background: var(--brand);
}
.legend-purple {
    background: var(--purple);
}
.chart-unit {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
}
.line-chart {
    position: relative;
    height: 224px;
    margin: 0 20px;
    padding: 17px 0 25px 32px;
}
.line-chart svg {
    position: absolute;
    inset: 17px 0 25px 32px;
    width: calc(100% - 32px);
    height: calc(100% - 42px);
    overflow: visible;
}
.grid-line {
    position: absolute;
    left: 32px;
    right: 0;
    height: 1px;
    background: #edf0f4;
}
.g1 {
    top: 21px;
}
.g2 {
    top: 61px;
}
.g3 {
    top: 101px;
}
.g4 {
    top: 141px;
}
.g5 {
    top: 181px;
}
.y-label {
    position: absolute;
    left: 0;
    color: #9aa1ad;
    font-size: 12px;
}
.y-1 {
    top: 14px;
}
.y-2 {
    top: 54px;
}
.y-3 {
    top: 94px;
}
.y-4 {
    top: 134px;
}
.y-5 {
    top: 174px;
}
.line-blue {
    fill: none;
    stroke: var(--brand);
    stroke-width: 3;
}
.line-purple {
    fill: none;
    stroke: var(--purple);
    stroke-width: 3;
}
.area-fill {
    fill: rgb(0 82 217 / 8%);
}
.points-blue {
    fill: #fff;
    stroke: var(--brand);
    stroke-width: 2;
}
.x-labels {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 32px;
    display: flex;
    justify-content: space-between;
    color: #9aa1ad;
    font-size: 12px;
}
.donut-wrap {
    height: 254px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
}
.donut {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: conic-gradient(
        var(--brand) 0 37.8%,
        var(--purple) 37.8% 63.3%,
        var(--warning) 63.3% 79.9%,
        var(--cyan) 79.9% 92.2%,
        #c9ced6 92.2%
    );
    display: grid;
    place-items: center;
}
.donut::before {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface);
    content: '';
    grid-area: 1/1;
}
.donut > div {
    z-index: 1;
    grid-area: 1/1;
    text-align: center;
}
.donut strong,
.donut span {
    display: block;
}
.donut strong {
    font-size: 21px;
}
.donut span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}
.category-list {
    width: 190px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-list li {
    min-height: 29px;
    display: grid;
    grid-template-columns: 10px 1fr auto 40px;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}
.category-list li > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.cat-blue {
    background: var(--brand);
}
.cat-purple {
    background: var(--purple);
}
.cat-orange {
    background: var(--warning);
}
.cat-cyan {
    background: var(--cyan);
}
.cat-gray {
    background: #c9ced6;
}
.category-list strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
}
.category-list small {
    color: var(--text-muted);
    text-align: right;
    font-size: 12px;
}
.more-button {
    width: 27px;
    height: 27px;
    color: var(--text-muted);
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}
.more-button:hover {
    color: var(--brand);
    background: var(--brand-soft);
}
.governance-grid {
    padding: 18px 20px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.governance-grid a {
    min-height: 104px;
    padding: 14px 12px;
    color: var(--text-secondary);
    border: 1px solid var(--line-light);
    border-radius: 7px;
    background: #fafbfc;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
    cursor: pointer;
}
.governance-grid a:hover {
    border-color: #b9d4ff;
    background: #f8fbff;
}
.governance-grid a > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}
.governance-grid a > i {
    margin-top: 4px;
    color: #b0b5bd;
    font-size: 12px;
}
.governance-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 12px;
}
.icon-warning {
    color: var(--warning);
    background: var(--warning-soft);
}
.icon-danger {
    color: var(--danger);
    background: var(--danger-soft);
}
.icon-purple {
    color: var(--purple);
    background: var(--purple-soft);
}
.icon-cyan {
    color: var(--cyan);
    background: var(--cyan-soft);
}
.governance-grid strong,
.governance-grid small {
    display: block;
}
.governance-grid strong {
    font-size: 22px;
    line-height: 25px;
}
.governance-grid small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}
.status-live {
    color: var(--success);
    font-size: 12px;
}
.status-live i {
    margin-right: 4px;
}
.update-body {
    padding: 11px 20px 8px;
}
.update-body div {
    min-height: 32px;
    border-bottom: 1px solid var(--line-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}
.update-body div:last-child {
    border-bottom: 0;
}
.update-body span {
    color: var(--text-muted);
}
.update-body strong {
    font-weight: 500;
}
.data-tip {
    margin: 6px 20px 18px;
    padding: 9px 10px;
    color: #5077a6;
    border-radius: 5px;
    background: #f3f8ff;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 1.5;
}
.data-tip i {
    margin-top: 2px;
    color: var(--brand);
}
@media (max-width: 1300px) {
    .main-content {
        padding-right: 24px;
        padding-left: 24px;
    }
    .dashboard-metrics {
        gap: 10px;
    }
    .dashboard-panels {
        grid-template-columns: minmax(530px, 1.5fr) minmax(320px, 1fr);
    }
    .donut-wrap {
        gap: 14px;
    }
    .governance-grid {
        gap: 8px;
    }
}
