.summary-report-media { --feature-preview-width: 695px; }

.summary-report-preview {
    box-sizing: border-box;
    container-type: inline-size;
    width: 100%;
    aspect-ratio: 740 / 415;
    overflow: hidden;
    border-radius: 8px;
    background: #ededed;
    box-shadow: 0 8px 20px rgb(32 46 65 / 16%);
    outline: 1px solid #cbd5e1;
}

.summary-report__window {
    --u: calc(100cqw / 740);
    height: 100%;
    color: #090909;
    font: 400 calc(14 * var(--u)) / 1.15 "Segoe UI", Tahoma, sans-serif;
    text-align: left;
    white-space: nowrap;
}

.summary-report__titlebar,
.summary-report__menu {
    display: flex;
    align-items: center;
    padding-inline: calc(10 * var(--u));
}

.summary-report__titlebar {
    height: calc(23 * var(--u));
    background: #f3f1f0;
    font-size: calc(12 * var(--u));
}

.summary-report__titlebar > span { margin-left: auto; font-size: calc(20 * var(--u)); }
.summary-report__menu { gap: calc(20 * var(--u)); height: calc(33 * var(--u)); }

.summary-report__body {
    display: grid;
    grid-template-columns: calc(209 * var(--u)) minmax(0, 1fr);
    gap: calc(11 * var(--u));
    padding: calc(13 * var(--u)) calc(12 * var(--u)) 0;
}

.summary-report__cash {
    margin-top: calc(7 * var(--u));
    padding: calc(44 * var(--u)) calc(20 * var(--u)) 0 0;
    border-right: calc(2 * var(--u)) solid #ccc;
}

.summary-report__cash-metric {
    display: grid;
    justify-items: center;
    gap: calc(12 * var(--u));
    margin-bottom: calc(13 * var(--u));
}

.summary-report__cash-metric::after {
    width: calc(100 * var(--u));
    height: calc(2 * var(--u));
    margin-top: calc(7 * var(--u));
    background: #c8c8c8;
    content: '';
}

.summary-report__period,
.summary-report__ranges {
    display: flex;
    align-items: center;
    gap: calc(7 * var(--u));
    margin-left: calc(4 * var(--u));
    font-size: calc(12 * var(--u));
}

.summary-report__date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(150 * var(--u));
    height: calc(24 * var(--u));
    padding-left: calc(5 * var(--u));
    box-sizing: border-box;
    border: calc(1 * var(--u)) solid #888;
    background: #fff;
}

.summary-report__date > span {
    display: grid;
    place-items: center;
    align-self: stretch;
    width: calc(20 * var(--u));
    border-left: calc(1 * var(--u)) solid #aaa;
    background: #e4f7fd;
}

.summary-report__ranges { height: calc(19 * var(--u)); margin-left: calc(17 * var(--u)); }
.summary-report__link { color: #2222e8; text-decoration: underline; text-underline-offset: .22em; }
.summary-report__number { font-variant-numeric: tabular-nums; }
.summary-report__cash-metric > .summary-report__number,
.summary-report__metrics > div > .summary-report__number { font-size: calc(24 * var(--u)); }

.summary-report__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: calc(6 * var(--u)) 0 calc(10 * var(--u));
    border-bottom: calc(2 * var(--u)) solid #ccc;
    text-align: center;
}

.summary-report__metrics > div { display: grid; gap: calc(3 * var(--u)); }
.summary-report__metrics > div + div { border-left: calc(1 * var(--u)) solid #bbb; }

.summary-report__breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(12 * var(--u));
    margin-top: calc(11 * var(--u));
}

.summary-report__breakdown > div + div {
    padding-left: calc(12 * var(--u));
    border-left: calc(1 * var(--u)) solid #bbb;
}

.summary-report__heading { display: block; margin-bottom: calc(4 * var(--u)); text-align: center; }
.summary-report__rows { margin: 0; }
.summary-report__rows > div,
.summary-report__links { display: flex; justify-content: space-between; align-items: center; height: calc(24 * var(--u)); }
.summary-report__rows dd { margin: 0; }
