    .badge-style {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-3px);
        background-color: var(--mud-palette-dark);
        color: var(--mud-palette-white);
        border-radius: 3px;
        font-weight: 500;
        font-size: 0.75rem;
        min-width: 24px;
        height: 24px;
    }

    .card-link-reset {
        display: block;
        min-width: 0;
        width: 100%;
        text-decoration: none;
    }

    .card-link-reset > .mud-card {
        width: 100%;
        height: 100%;
    }

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

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

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


.dashboard-charts {
    margin: 24px 0;
    padding: 24px 0;
    font-size: 16px;
    color: #212529;
}

.dashboard-chart-summary {
    display: flex;
    flex-wrap: wrap;
}

    .dashboard-chart-summary-totals {
        margin-left: auto;
    }

.dashboard-chart-hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.dashboard-chart-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
    line-height: 24px;
}

.dashboard-chart-row-spacious {
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.dashboard-chart-main {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
}

.dashboard-chart-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .dashboard-chart-heading strong {
        font-weight: 700;
    }

.dashboard-chart-total {
    color: #6c757d;
}

.dashboard-chart-track {
    height: 16px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.dashboard-chart-bar {
    height: 100%;
    transition: width .6s ease;
}

.dashboard-chart-side {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    justify-content: flex-end;
    text-align: center;
}

.dashboard-chart-stat:first-child {
    padding-right: 16px;
}

.dashboard-chart-stat-label,
.dashboard-chart-stat-value {
    display: block;
}

.dashboard-chart-dot {
    display: inline-block;
    width: .75em;
    height: .75em;
    border-radius: 50%;
}

@media (max-width: 767.98px) {
    .dashboard-chart-main,
    .dashboard-chart-side {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .dashboard-chart-summary-totals {
        margin-left: 0;
    }
}

.mud-table-cell.text-center,
.mud-table-cell:has(.mud-table-sort-label.text-center) {
    text-align: center;
}

/* MudGrid's spacing class applies a negative top margin that pulls the grid
   over the tab bar and swallows clicks meant for the Patient Details tab. */
.mud-grid.fac-details-grid {
    margin-top: 0;
}

.mud-table-head .mud-table-cell:has(.mud-table-sort-label.text-center) {
    position: relative;
}

.mud-table-head .mud-table-sort-label.text-center .mud-table-sort-label-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.dashboard-page-header .mud-typography-h3 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
    color: #212529;
}

.dashboard-page-header {
    margin-top: 1rem;
}

.dashboard-scope-name {
    display: inline;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.2;
    color: #212529;
}

.dashboard-page-header .mud-button-root,
.dashboard-fac-activate .mud-button-root {
    min-width: 0;
    height: auto;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: normal;
    text-transform: uppercase;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12), 0 3px 1px -2px rgba(0, 0, 0, .2);
}

.dashboard-page-header .mud-button-outlined {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #212529;
}

    .dashboard-page-header .mud-button-outlined:hover {
        background-color: #e2e6ea;
        border-color: #dae0e5;
    }

.dashboard-page-header .mud-button-filled,
.dashboard-fac-activate .mud-button-filled {
    background-color: #e5412d;
    color: #ffffff;
}

    .dashboard-page-header .mud-button-filled:hover,
    .dashboard-fac-activate .mud-button-filled:hover {
        background-color: #cc1000;
    }

.dashboard-page-header .mud-button-filled,
.dashboard-fac-activate .mud-button-filled {
    border: 1px solid transparent;
}

.dashboard-page-header .mud-button-root .mud-icon-root {
    font-size: 16px;
    margin-right: 4px;
}
