.ep-dash-wrap {
    overflow-x: auto;
    max-width: 100%;
}
.ep-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.ep-dash-table th {
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #4b5a50;
    background: #f3f8f1;
    padding: 8px 10px;
    border-bottom: 1px solid #e4e9e3;
    white-space: nowrap;
}
.ep-dash-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e4e9e3;
    vertical-align: middle;
}
.ep-dash-table .ep-num {
    text-align: center;
}
.ep-dash-table a {
    color: var(--primary-700, #00843d);
    font-weight: 600;
}
.ep-dash-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-align: left;
    color: inherit;
}
.ep-dash-toggle:focus-visible {
    outline: 2px solid #00843d;
    outline-offset: 2px;
}
.ep-dash-caret {
    width: 14px;
    height: 14px;
    flex: none;
}
.ep-dash-sub > td {
    background: #f7fbf6;
    padding: 16px 14px 20px 18px;
}
.ep-dash-inner {
    background: #fff;
    border: 1px solid #e4e9e3;
}
.ep-dash-total td {
    font-weight: 700;
    background: #f3f8f1;
}
.ep-dash-summary > .fi-section-content-ctn > .fi-section-content {
    padding: 0;
}
.ep-dash-summary .ep-dash-wrap {
    border-radius: 0 0 1rem 1rem;
}
.ep-dash-summary .ep-dash-table:not(.ep-dash-inner) > * > tr > :first-child {
    padding-inline-start: 1.5rem;
}
.ep-dash-summary .ep-dash-table:not(.ep-dash-inner) > * > tr > :last-child {
    padding-inline-end: 1.5rem;
}
.ep-dash-summary .ep-dash-table:not(.ep-dash-inner) > tbody > tr:last-child > td {
    border-bottom: 0;
}
.ep-dash-detail > .fi-section-content-ctn > .fi-section-content {
    padding: 0;
}
.ep-dash-detail .ep-dash-wrap {
    border-radius: 0 0 1rem 1rem;
}
.ep-dash-detail .ep-dash-tabs {
    padding-inline: 1.5rem;
}
/* Buttons lie on the header, so the title leaves room (#176). */
.ep-share-chart {
    position: relative;
    container-type: inline-size;
    --ep-chart-tools-width: calc(var(--ep-chart-tools, 5) * 41px + 1px);
}
.ep-share-chart .ep-report-chart-switch {
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
}
.ep-share-chart .ep-report-chart-switch button {
    justify-content: center;
    width: 40px;
    padding-inline: 0;
}
.ep-share-chart .fi-section > .fi-section-header {
    padding-inline-end: calc(var(--ep-chart-tools-width) + 28px);
}
.ep-share-chart .fi-section-header-heading {
    overflow-wrap: anywhere;
}
/* Narrow card: title first, buttons under it, as on a phone. */
@container (max-width: 439px) {
    .ep-share-chart .fi-section > .fi-section-header {
        padding-top: 17px;
        padding-bottom: 65px;
        padding-inline-end: 20px;
    }
    .ep-share-chart .ep-report-chart-switch {
        top: calc(var(--ep-chart-head, 104px) - 55px);
        right: auto;
        left: 20px;
    }
}
/* Phone: title first, buttons under it on the left (#216). */
@media (max-width: 639.98px) {
    .ep-share-chart .fi-section > .fi-section-header {
        padding-top: 17px;
        padding-bottom: 65px;
        padding-inline-end: 20px;
    }
    .ep-share-chart .ep-report-chart-switch {
        top: calc(var(--ep-chart-head, 104px) - 55px);
        right: auto;
        left: 20px;
    }
    .ep-share-chart .ep-report-chart-switch button {
        width: 36px;
        height: 36px;
    }
    .ep-share-chart .ep-report-chart-switch button .fi-icon {
        width: 18px;
        height: 18px;
    }
}
@media print {
    .ep-share-chart .fi-section > .fi-section-header {
        padding-top: 17px;
        padding-bottom: 17px;
        padding-inline-end: 20px;
    }
}
/* Bar chart's box, so the cards line up. */
.ep-share-chart svg.map {
    aspect-ratio: 1;
    max-height: 360px;
}
