.sample-form-print {
    flex-shrink: 0; padding: 10px 16px; border: 1px solid #214785;
    border-radius: 6px; background: #214785; color: #fff; font: inherit; cursor: pointer;
}
.sample-form-print:hover { background: #183866; }
.sample-form-print:disabled { opacity: .6; cursor: wait; }
.sample-form-status { max-width: 1100px; margin: 0 auto 12px; color: #52657d; }
.sample-form-status:empty { display: none; }
.sample-document-viewport { max-width: 1100px; margin: 0 auto; overflow: auto; }
.sample-document {
    position: relative; container-type: inline-size;
    width: 100%; min-width: 794px; aspect-ratio: 595 / 842;
    margin: 0; padding: 0; border: 0; background: #fff;
    color: #000; font-family: Arial, Helvetica, sans-serif;
}
.sample-document[aria-busy="true"] { visibility: hidden; }
.sample-document--section-a { aspect-ratio: 595 / 310; }
.sample-customer-page { margin: 0; padding: 24px; background: #f3f6fb; color: #25334b; font: 14px 'Segoe UI', Arial, sans-serif; }
.sample-customer-content { max-width: 1100px; margin: 0 auto; }
.sample-customer-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sample-customer-toolbar h1 { margin: 0; color: #214785; font-size: 26px; font-weight: 700; }
.sample-template { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sample-document .sample-field { position: absolute; display: block; margin: 0; padding: 0; }
.sample-document .sample-field :is(input, select, textarea),
.sample-document .sample-print-value {
    display: block; box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0;
    margin: 0; padding: 0 .12cqw; border: 1px solid #666; border-radius: 0;
    background-color: #fff; color: #000; font: 1.235cqw/1 Arial, Helvetica, sans-serif;
    box-shadow: none;
}
.sample-document .sample-field :is(input, select, textarea):hover { outline: 1px solid #b3c7e0; }
.sample-document .sample-field :is(input, select, textarea):focus-visible { outline: 2px solid #557fbb; outline-offset: 0; }
.sample-document input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #000; }
.sample-document input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.sample-document input::-webkit-inner-spin-button,
.sample-document input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.sample-document select { appearance: none; cursor: pointer; }
.sample-document input[type="checkbox"] { appearance: none; border: 0; cursor: pointer; }
.sample-document input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: auto 90%;
}
.sample-document textarea { resize: none; line-height: 1.25 !important; padding: .3cqw .12cqw !important; }
.sample-document input[type="date"], .sample-document input[type="time"] { color-scheme: light; }
.sample-document input::-webkit-calendar-picker-indicator { width: 1.2cqw; height: 1.2cqw; margin: 0; padding: 0; }
.sample-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center;
    padding: 0 calc(1px + .12cqw); pointer-events: none;
    color: #777; font: 1.235cqw/1 Arial, Helvetica, sans-serif;
    white-space: nowrap; overflow: hidden;
}
.sample-placeholder-centered { justify-content: center; }
.sample-field:focus-within .sample-placeholder,
.sample-field[data-has-value] .sample-placeholder { display: none; }
.sample-field:not([data-has-value]):not(:focus-within) input:is([type="date"], [type="time"])::-webkit-datetime-edit { color: transparent; }
.sample-print-value { display: none !important; }
.sample-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media screen and (max-width: 600px) {
    .sample-customer-page { padding: 12px; }
}
@media print {
    @page { size: A4 portrait; margin: 0; }
    html, body { width: 210mm; height: 297mm; min-height: 0; margin: 0; padding: 0; background: #fff; }
    .sample-form-status { display: none !important; }
    .sample-customer-page { padding: 0; }
    .sample-customer-toolbar { display: none !important; }
    .sample-customer-content { width: 210mm; max-width: none; margin: 0; }
    .sample-placeholder { display: none !important; }
    .sample-document-viewport { width: 210mm; max-width: none; margin: 0; padding: 0; overflow: visible; }
    .sample-document { width: 210mm; height: 297mm; min-width: 0; aspect-ratio: auto; break-inside: avoid; }
    .sample-document--section-a { height: calc(210mm * 310 / 595); }
    .sample-document .sample-field :is(input, select, textarea) { outline: none; }
    .sample-print-ready .sample-field :is(input:not([type="checkbox"]), select, textarea) { display: none !important; }
    .sample-print-ready .sample-print-value { display: flex !important; align-items: center; overflow: hidden; white-space: nowrap; }
    .sample-document input[type="checkbox"] { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
