/* ============================================================================
   mw-print-preview.css — layout for the DtPrintPreview dialog. Prefix: mw-pp-*
   Loaded in App.razor via Assets["mw-print-preview.css"].

   Layout mirrors the native print dialog: large paper preview on the LEFT, a
   settings column on the RIGHT. (The paper-sheet styling that lives *inside* the
   preview iframe is in mw-print.css under the "Preview sheet" section.)
   ============================================================================ */

.mw-pp-root {
    display: flex;
    align-items: stretch;
    height: 80vh;
    max-height: 80vh;
}

/* --- Left: paper preview -------------------------------------------------- */
.mw-pp-preview {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
    background: #e9e9ee;
    overflow: hidden;
}

.mw-pp-frame-host {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

/* The iframe element itself (created by mw-print.ts). */
.mw-print-preview-frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: 0;
    background: #e9e9ee;
}

/* Floating view-only zoom controls, bottom-center of the preview. */
.mw-pp-zoombar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--mud-palette-surface, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mw-pp-zoom-label {
    min-width: 46px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- Right: settings panel ------------------------------------------------ */
.mw-pp-settings {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--mud-palette-divider, #e0e0e0);
}

.mw-pp-settings-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mw-pp-scale-field {
    display: flex;
    flex-direction: column;
}

.mw-pp-group-label {
    margin-top: 4px;
    opacity: 0.7;
}
