/* The picture state of an export frame (docs/dashboards.md#expand-and-image-export): the script adds .png-exporting while it captures. */

.png-exporting [data-export-exclude] {
    visibility: hidden !important;
}

.png-exporting [data-export-expand] {
    max-height: none !important;
    overflow: visible !important;
}

.png-exporting .dashboard-widget-card {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
}

/* The card and the footer read as one rounded card: an outline element draws the edge, and the card's own border stays as invisible space so nothing resizes. */
.export-frame.png-exporting {
    position: relative;
    overflow: hidden;
    border-radius: var(--fa-radius);
}

.export-frame.png-exporting > .export-frame-outline {
    display: block;
    position: absolute;
    inset: 0;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--fa-radius);
    pointer-events: none;
}

.export-frame.png-exporting .dashboard-widget-card {
    border-color: transparent;
    border-radius: 0;
    box-shadow: none;
}
