/* PDF_form: full-width viewer with top header (no builder sidebar) */

html,
body {
    height: 100%;
    margin: 0;
}

/* Embedded preview on Form View (settings page) */
.pdf-form-preview-embed.pdf-form-page,
.pdf-form-preview-embed {
    height: auto !important;
    min-height: 0 !important;
    max-height: 720px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    flex-direction: column;
}

/* Scroll lives on the PDF body only — root stays compact (no empty space below). */
.pdf-form-preview-embed .pdf-form-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 720px;
    overflow: auto;
    padding: 0;
    background: #e9ecef;
}

.pdf-form-preview-embed #viewer {
    min-height: 0;
    height: auto;
    background: transparent !important;
    border: none !important;
    overflow: visible;
    padding: 0 0 1.25rem;
}

/* Each PDF page sits as a white sheet on gray — clear gap between pages */
.pdf-form-preview-embed .builder-pdf-page-section,
.pdf-form-page .builder-pdf-page-section {
    position: relative;
    margin: 1.25rem auto 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 160px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pdf-form-preview-embed #builderPdfPageStack,
.pdf-form-page #builderPdfPageStack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding-bottom: 0.5rem;
}

.pdf-form-preview-embed #builderPdfPageStack canvas.pdf-page,
.pdf-form-page #builderPdfPageStack canvas.pdf-page {
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 0;
    background: #fff;
    max-width: 100%;
    width: auto;
    height: auto;
}

.form-preview-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdf-form-page {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #e9ecef;
}

.pdf-form-page:not(.pdf-form-preview-embed) {
    max-height: 100%;
    overflow: hidden;
}

.pdf-form-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: #7386d5;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pdf-form-header h1 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.pdf-form-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background: #e9ecef;
}

.pdf-form-body .builder-viewer-wrap {
    flex: 1;
    min-height: 0;
    min-width: 0;
    background: #e9ecef;
}

.pdf-form-page #viewer {
    background: #e9ecef;
    min-width: 0;
}

/* Fixed View History panel (sticks to viewport top-right while scrolling PDF pages) */
.pdf-form-history-panel {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    z-index: 1050;
    width: min(280px, calc(100vw - 1.5rem));
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.pdf-form-history-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    border: 0;
    background: #7386d5;
    color: #fff;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.pdf-form-history-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.pdf-form-history-chevron {
    transition: transform 0.15s ease;
}

.pdf-form-history-panel.is-collapsed .pdf-form-history-chevron {
    transform: rotate(-90deg);
}

.pdf-form-history-panel.is-collapsed .pdf-form-history-body {
    display: none;
}

.pdf-form-history-body {
    max-height: min(420px, calc(100vh - 7rem));
    overflow-y: auto;
    padding: 0.5rem 0.65rem 0.65rem;
    background: #fff;
}

.pdf-form-history-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.4rem;
}

.pdf-form-history-empty {
    font-size: 0.85rem;
    padding: 0.35rem 0;
}

.pdf-form-history-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.45rem;
    background: #f8f9fa;
}

.pdf-form-history-item:last-child {
    margin-bottom: 0;
}

.pdf-form-history-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.25;
}

.pdf-form-history-item-meta {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.3;
}

.pdf-form-history-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

@media (max-width: 576px) {
    .pdf-form-history-panel {
        top: auto;
        bottom: 0.75rem;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
    }
}

/* Progressive PDF page load: section shell + per-page progress bar */
.pdf-form-page .builder-page-loading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 200px;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pdf-form-page .builder-pdf-page-section.builder-pdf-page-ready .builder-page-loading {
    display: none;
}

.pdf-form-page .builder-page-loading-progress {
    height: 0.65rem;
}

/* Fixed layout from JSON — not a drag surface (overrides builder.css .field { cursor: move }) */
.pdf-form-page .field {
    cursor: default;
}

/*
 * Fillable inputs: no shell border (keeps the PDF readable). Guidance is via placeholder only.
 * Focus/active also stay borderless — caret / typed text only.
 * Dropdown keeps a visible border so it reads as a select (blank options must stay blank).
 */
.pdf-form-page .field.field-text-shell,
.pdf-form-page .field.field-textarea-shell,
.pdf-form-page .field.field-date-shell,
.pdf-form-page .field.field-time-shell {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box;
}

/* Auto-detected fields: use saved cell / line width (no builder default minimums). */
.pdf-form-page .field[data-exact-dimensions="1"].field-text-shell,
.pdf-form-page .field[data-exact-dimensions="1"].field-textarea-shell,
.pdf-form-page .field[data-exact-dimensions="1"].field-image-wrap,
.pdf-form-page .field[data-exact-width-only="1"].field-text-shell,
.pdf-form-page .field[data-exact-width-only="1"].field-textarea-shell {
    min-width: 0 !important;
}

.pdf-form-page .field[data-exact-dimensions="1"].field-text-shell,
.pdf-form-page .field[data-exact-dimensions="1"].field-textarea-shell,
.pdf-form-page .field[data-exact-dimensions="1"].field-image-wrap {
    min-height: 0 !important;
}

.pdf-form-page .field[data-exact-dimensions="1"] .field-image-pad {
    min-height: 0 !important;
}

/* Dropdown only: always show a select box (even when default option is blank). */
.pdf-form-page .field.field-dropdown-wrap {
    border: 1px solid #6c757d !important;
    box-shadow: none !important;
    background: #fff !important;
    box-sizing: border-box;
    min-height: 32px;
    padding: 0 !important;
    border-radius: 0.25rem;
}

.pdf-form-page .field.field-text-shell:focus-within,
.pdf-form-page .field.field-textarea-shell:focus-within,
.pdf-form-page .field.field-date-shell:focus-within,
.pdf-form-page .field.field-time-shell:focus-within,
.pdf-form-page .field.field-text-shell.field-selected,
.pdf-form-page .field.field-textarea-shell.field-selected,
.pdf-form-page .field.field-date-shell.field-selected,
.pdf-form-page .field.field-time-shell.field-selected {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.pdf-form-page .field.field-dropdown-wrap:focus-within,
.pdf-form-page .field.field-dropdown-wrap.field-selected {
    border: 1px solid #495057 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pdf-form-page .field-text-input,
.pdf-form-page .field-textarea-input,
.pdf-form-page .field-date-input,
.pdf-form-page .field-time-input {
    cursor: text;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.pdf-form-page .field-dropdown-select {
    cursor: pointer !important;
    width: 100%;
    min-height: 30px;
    height: 100%;
    margin: 0;
    padding: 0.15rem 2rem 0.15rem 0.4rem !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 12px 10px !important;
    appearance: none;
    -webkit-appearance: none;
    color: #212529;
}

.pdf-form-page .field-text-input:focus,
.pdf-form-page .field-textarea-input:focus,
.pdf-form-page .field-date-input:focus,
.pdf-form-page .field-time-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.pdf-form-page .field-dropdown-select:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: #fff !important;
}

.pdf-form-page .field-text-input::placeholder,
.pdf-form-page .field-textarea-input::placeholder {
    color: rgba(108, 117, 125, 0.85);
    opacity: 1;
}

/* PDF form only: fixed box from layout — no user-resize handle (builder may differ). */
.pdf-form-page .field-textarea-input {
    resize: none;
    min-height: 3rem;
    line-height: 1.35;
}

/*
 * Label on PDF form: no dashed “builder” border; padding aligned with generated PDF
 * (run_generate: 2px border + 5px shell + ~8px horizontal cell margin around text).
 */
.pdf-form-page .field.field-label-wrap {
    border: none !important;
    box-shadow: none !important;
    /* ~7px frame + 8px cMargin horizontally; ~4px vertical input pad + shell */
    padding: 6px 15px !important;
    min-height: 0;
    cursor: default;
}

.pdf-form-page .field.field-label-wrap.field-selected {
    border: none !important;
    box-shadow: none !important;
}

/* Label = static caption (not an editable control like text inputs) */
.pdf-form-page .field-label-text {
    cursor: default;
    line-height: 1.35;
    color: inherit;
    display: block;
    padding: 0;
}

.pdf-form-page .field.field-calculation-wrap {
    border: none !important;
    box-shadow: none !important;
    padding: 6px 15px !important;
    min-height: 0;
    cursor: default;
}

.pdf-form-page .field.field-calculation-wrap.field-selected {
    border: none !important;
    box-shadow: none !important;
}

.pdf-form-page .field-calculation-preview {
    cursor: default;
    line-height: 1.35;
    color: var(--bs-secondary-color, #6c757d);
    display: block;
    padding: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pdf-form-page .field.field-series-wrap {
    border: none !important;
    box-shadow: none !important;
    padding: 6px 15px !important;
    min-height: 0;
    cursor: default;
}

.pdf-form-page .field.field-series-wrap.field-selected {
    border: none !important;
    box-shadow: none !important;
}

.pdf-form-page .field-series-preview {
    cursor: default;
    line-height: 1.35;
    color: inherit;
    display: block;
    padding: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
}

.pdf-form-page .field.field-hyperlink-wrap {
    border: none !important;
    box-shadow: none !important;
    padding: 6px 15px !important;
    min-height: 0;
    cursor: pointer;
}

.pdf-form-page .field.field-hyperlink-wrap.field-selected {
    border: none !important;
    box-shadow: none !important;
}

.pdf-form-page .field-hyperlink-preview {
    cursor: pointer;
    line-height: 1.35;
    color: #0d6efd;
    text-decoration: underline;
    display: block;
    padding: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
}

.pdf-form-page .field.field-attachment-wrap {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 80px;
    min-height: 32px;
    cursor: default;
    background: transparent !important;
    z-index: 2;
    overflow: visible;
    box-sizing: border-box;
    position: absolute;
}

/* Match builder: blue outline button with label (builder.css sets pointer-events:none for canvas). */
.pdf-form-page .field-attachment-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    border: 1px solid #0d6efd !important;
    color: #0d6efd !important;
    background: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    box-shadow: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.pdf-form-page .field-attachment-btn:hover:not(:disabled) {
    background: #0d6efd !important;
    color: #fff !important;
}

.pdf-form-page .field-attachment-btn:disabled {
    opacity: 0.7;
    cursor: wait !important;
}

.pdf-form-page .field.field-attachment-wrap.has-attachment-file .field-attachment-btn {
    border-color: #198754 !important;
    color: #198754 !important;
}

.pdf-form-page .field.field-attachment-wrap.has-attachment-file .field-attachment-btn:hover:not(:disabled) {
    background: #198754 !important;
    color: #fff !important;
}

.pdf-form-page .field-attachment-file-name {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #198754;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.pdf-form-attachment-dialog-overlay,
.pdf-form-attachment-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}

.pdf-form-attachment-dialog-card,
.pdf-form-attachment-processing-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    padding: 1.15rem 1.25rem 1.2rem;
}

.pdf-form-attachment-processing-card {
    width: min(340px, 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.pdf-form-attachment-processing-msg {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.45;
}

.pdf-form-attachment-dialog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.45rem;
}

.pdf-form-attachment-dialog-hint {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.pdf-form-attachment-dialog-ext {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.85rem;
}

.pdf-form-attachment-dialog-file-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.pdf-form-attachment-dialog-filename {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-form-attachment-dialog-filename.is-selected {
    color: #0f172a;
    font-weight: 600;
}

.pdf-form-attachment-dialog-error {
    color: #b02a37;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

.pdf-form-attachment-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.pdf-form-page .field-checkbox-input,
.pdf-form-page .field-radio-input,
.pdf-form-page .field-signature-canvas {
    cursor: pointer;
}

/* Radio: control fills the overlay so clicks use native grouping (builder keeps a smaller control). */
.pdf-form-page .field.field-radio-wrap .field-radio-input {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    flex: 1 1 auto;
}

/* Keep "Sign here" on one line; Text Signature / Clear can cover it when narrow. */
.pdf-form-page .field-signature-header {
    position: relative;
    height: 1.5rem;
    min-height: 1.5rem;
    max-height: 1.5rem;
    overflow: hidden;
}

.pdf-form-page .field-signature-label {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding-right: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    pointer-events: none;
    z-index: 0;
    line-height: 1.25;
}

.pdf-form-page .field-signature-actions {
    position: relative;
    z-index: 1;
    margin-left: auto;
    padding-left: 0.25rem;
    background: rgba(255, 255, 255, 0.92);
}

.pdf-form-page .field-signature-pad.field-signature-pad--locked {
    opacity: 0.45;
    filter: grayscale(0.35);
}

.pdf-form-page .field-signature-canvas[aria-disabled="true"] {
    cursor: not-allowed;
}

.pdf-form-page .field.field-text-shell--locked {
    opacity: 0.6;
}

.pdf-form-page .field.field-text-shell--locked .field-text-input {
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.04);
}

.pdf-form-page .field.field-assign-email--locked {
    opacity: 0.6;
}

.pdf-form-page .field.field-assign-email--locked .field-text-input,
.pdf-form-page .field.field-assign-email--locked .field-textarea-input,
.pdf-form-page .field.field-assign-email--locked .field-date-input,
.pdf-form-page .field.field-assign-email--locked .field-time-input,
.pdf-form-page .field.field-assign-email--locked .field-dropdown-select,
.pdf-form-page .field.field-assign-email--locked .field-checkbox-input,
.pdf-form-page .field.field-assign-email--locked .field-radio-input,
.pdf-form-page .field.field-assign-email--locked .field-attachment-btn,
.pdf-form-page .field.field-assign-email--locked .field-image-upload-btn {
    cursor: not-allowed;
    pointer-events: none;
}

/* Initials picker toolbar shown beside the active initials textbox */
.pdf-form-initials-toolbar {
    position: fixed;
    z-index: 2000;
    min-width: 280px;
    max-width: 380px;
}

.pdf-form-initials-toolbar[hidden] {
    display: none !important;
}

/* Strict 3-column × 4-row grid: every font tile gets the same width. */
.pdf-form-initials-font-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    max-height: 260px;
    overflow-y: auto;
}

.pdf-form-initials-font-btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0.3rem 0.4rem;
    gap: 0.05rem;
    line-height: 1.1;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.pdf-form-initials-font-btn.active {
    background-color: var(--bs-secondary-bg, #e2e6ea);
    border-color: var(--bs-primary, #0d6efd);
}

.pdf-form-initials-font-sample {
    font-size: 1.4rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pdf-form-initials-font-name {
    font-size: 0.85rem;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pdf-form-initials-copy-grid {
    max-height: 140px;
    overflow-y: auto;
}

.pdf-form-initials-copy-btn {
    font-size: 1.1rem;
    line-height: 1.15;
    min-width: 60px;
    padding: 0.25rem 0.6rem;
}

.pdf-form-initials-empty {
    padding: 0.25rem 0;
}

/* Signature reuse: prior text chips (above Font style) + first-draw modal */
.pdf-form-sig-reuse-text-grid {
    max-height: 120px;
    overflow-y: auto;
}

.pdf-form-sig-reuse-text-btn {
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-form-sig-reuse-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pdf-form-sig-reuse-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 18px;
}

.pdf-form-sig-reuse-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.pdf-form-sig-reuse-help {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.pdf-form-sig-reuse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
}

.pdf-form-sig-reuse-thumb {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem;
    text-align: left;
}

.pdf-form-sig-reuse-thumb img {
    width: 100%;
    height: 72px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 4px;
}

.pdf-form-sig-reuse-cap {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Image field: header + pad (logo/seal); image scales inside pad */
.pdf-form-page .field.field-image-wrap {
    z-index: 1;
    border: 1px solid var(--bs-border-color, #dee2e6) !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.92);
    box-sizing: border-box;
}

.pdf-form-page .field-image-pad {
    position: relative;
    flex: 1 1 auto;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.5);
}

.pdf-form-page .field-image-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.pdf-form-page .field-image-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
