.document-measurement {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin-top: 5px;
    color: #344c65;
    font-size: 0.72rem;
    line-height: 1.35;
}

.document-measurement-note {
    width: 100%;
    margin: 0;
}

.document-title,
.document-patient,
.report-export-details dd {
    overflow-wrap: anywhere;
}

.report-export-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(33rem, calc(100% - 1.5rem));
    max-height: calc(100% - 1.5rem);
    overflow: auto;
    padding: 1.25rem;
    color: var(--text-dark);
    background: white;
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.report-export-dialog::backdrop {
    background: rgb(15 23 42 / 65%);
}

.report-export-dialog h2 {
    margin-bottom: 0.5rem;
    color: #16548d;
    font-size: 1.2rem;
}

.report-export-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.25rem 1rem;
    margin: 0.85rem 0;
    font-size: 0.875rem;
}

.report-export-details dt {
    font-weight: 600;
}

.report-export-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.report-export-images figure {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.report-export-images img {
    display: block;
    width: 100%;
    height: clamp(5rem, 24vh, 10rem);
    object-fit: contain;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    border: 1px solid #c7d6e5;
    background: #f2f7fb;
}

.report-export-help {
    margin: 0.2rem 0 0.8rem 1.5rem;
    font-size: 0.8rem;
    color: #3d5268;
}

.report-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.report-export-actions .btn {
    width: auto;
    min-height: 2.75rem;
}

.report-export-stage {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: -1;
    pointer-events: none;
}

.preview-canvas.report-export-sheet {
    position: relative !important;
    width: var(--report-width) !important;
    min-width: var(--report-width) !important;
    max-width: var(--report-width) !important;
    height: var(--report-height) !important;
    min-height: var(--report-height) !important;
    max-height: var(--report-height) !important;
    transform: none !important;
    margin: 0 !important;
    padding: 16mm !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden;
}

.report-export-sheet .document-info {
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 1em !important;
}

.report-export-sheet .comparison-canvas {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

@media (max-width: 480px) {
    .report-export-actions .btn {
        flex: 1;
    }
}
