/* EPAY_1099_C_FINAL_CREATE_V2
   One scoped design layer matching the finalized 1099-DIV/OID create pages. */
.c1099-main,
#pdfModal {
    --c1099-navy:#062b45;
    --c1099-teal:#1a9ba8;
    --c1099-teal-dark:#158793;
    --c1099-border:#d7e3e8;
    --c1099-surface:#f6f9fb;
    --c1099-muted:#667d89;
}
.c1099-main {
    padding:28px 0 64px;
    background:#fff;
}
.c1099-main *,
#pdfModal * { box-sizing:border-box; }
.c1099-main > .container { margin:0 auto; width:100%; max-width:1220px; min-width:0; padding-left:12px; padding-right:12px; box-sizing:border-box; margin-left:auto; margin-right:auto; }
.c1099-layout-row { overflow:visible; }
.c1099-form-column,
.c1099-preview-column { min-width:0; }

@media (min-width:1200px) {
    .c1099-layout-row {
    }
    .c1099-layout-row > .c1099-form-column,
    .c1099-layout-row > .c1099-preview-column {
        width:100%;
        max-width:none;
        padding:0;
    }
}
@media (min-width:992px) and (max-width:1199.98px) {
    .c1099-layout-row {
    }
    .c1099-layout-row > .c1099-form-column,
    .c1099-layout-row > .c1099-preview-column {
        width:100%;
        max-width:none;
        padding:0;
    }
}

#pdfForm > .mb-4 {
    --c1099-field-gap:18px;
    --c1099-label-gap:7px;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:var(--c1099-field-gap);
    margin:0 0 24px;
    padding:24px 26px;
    border:1px solid var(--c1099-border);
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 30px rgba(2,48,71,.07);
}
#pdfForm .form-section-title {
    display:flex;
    align-items:center;
    margin:0;
    padding:0 0 14px;
    border-bottom:2px solid #e8eef1;
    color:var(--c1099-navy);
    font-size:1.35rem;
    font-weight:800;
    line-height:1.35;
}
#pdfForm .form-main,
#pdfForm .form-main-checkbox {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:var(--c1099-label-gap,7px);
    width:100%;
    min-width:0;
    margin:0;
}
#pdfForm .row {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:18px;
    row-gap:var(--c1099-field-gap,18px);
    margin:0;
}
#pdfForm .row > [class*="col-"] {
    width:100%;
    max-width:none;
    padding:0;
}
#pdfForm .row > [class*="col-"] > .form-main {
    height:100%;
    justify-content:end;
}
#pdfForm label {
    display:block;
    margin:0;
    color:var(--c1099-navy);
    font-size:.84rem;
    font-weight:600;
    line-height:1.38;
}
#pdfForm .field-optional {
    color:#6b7f8b;
    font-size:.76rem;
    font-weight:500;
    white-space:nowrap;
}
#pdfForm .form-control,
#pdfForm .form-select {
    width:100%;
    min-width:0;
    height:44px;
    min-height:44px;
    padding:9px 12px;
    border:1px solid #cfdbe1;
    border-radius:9px;
    background:var(--c1099-surface);
    color:var(--c1099-navy);
    font-size:.9rem;
    line-height:1.35;
    box-shadow:none;
}
#pdfForm .form-control:focus,
#pdfForm .form-select:focus {
    border-color:var(--c1099-teal);
    background:#fff;
    outline:0;
    box-shadow:0 0 0 3px rgba(26,155,168,.14);
}
#pdfForm .icon-select::after,
#pdfForm .icon-select i,
#pdfForm .icon-input i { display:none; }
#pdfForm .input-group {
    display:flex;
    flex-wrap:nowrap;
    width:100%;
}
#pdfForm .input-group-text {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
    padding:0 11px;
    border:1px solid #cfdbe1;
    border-right:0;
    border-radius:9px 0 0 9px;
    background:#eef3f5;
    color:var(--c1099-navy);
}
#pdfForm .input-group .form-control { border-radius:0 9px 9px 0; }

#pdfForm label.checkbox_sty {
    display:flex;
    align-items:flex-start;
    gap:10px;
    width:100%;
    min-height:44px;
    padding:11px 12px;
    border:1px solid #dce5e9;
    border-radius:10px;
    background:#fbfdfe;
    color:#294b5b;
    cursor:pointer;
}
#pdfForm label.checkbox_sty input[type="checkbox"] {
    flex:0 0 auto;
    width:18px;
    height:18px;
    margin:1px 0 0;
    accent-color:var(--c1099-teal);
}
#pdfForm label.checkbox_sty span {
    font-size:.84rem;
    font-weight:600;
    line-height:1.45;
}
#pdfForm label.checkbox_sty:focus-within {
    border-color:var(--c1099-teal);
    box-shadow:0 0 0 3px rgba(26,155,168,.14);
}
#pdfForm .eminfo {
    margin:0;
    color:var(--c1099-muted);
    font-size:.78rem;
    line-height:1.5;
    text-align:justify;
    text-justify:inter-word;
}
#pdfForm .form-control.is-invalid,
#pdfForm .form-select.is-invalid {
    border-color:#b42318;
    background:#fff;
}
#pdfForm .form-control.is-invalid:focus,
#pdfForm .form-select.is-invalid:focus {
    box-shadow:0 0 0 3px rgba(180,35,24,.15);
}
.c1099-form-errors {
    margin:0 0 16px;
    padding:12px 14px;
    border:1px solid #efbcbc;
    border-radius:10px;
    background:#fff3f3;
    color:#8f2525;
    font-size:.84rem;
    line-height:1.5;
}
.c1099-form-errors ul { margin:6px 0 0; padding-left:20px; }

.c1099-preview-column {
    position:sticky;
    top:96px;
    align-self:flex-start;
    height:fit-content;
}
.c1099-preview-card {
    position:relative;
    width:100%;
    padding:12px;
    border:1px solid var(--c1099-border);
    border-radius:18px;
    background:#fff;
    box-shadow:0 14px 36px rgba(2,48,71,.1);
}
.c1099-preview-heading { margin:0 0 16px; text-align:center; }
.c1099-preview-heading h2 {
    margin:0 0 5px;
    color:var(--c1099-navy);
    font-size:1.2rem;
    font-weight:800;
    line-height:1.35;
}
.c1099-preview-heading p {
    margin:0;
    color:var(--c1099-muted);
    font-size:.82rem;
    line-height:1.5;
}
.c1099-year-badge {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:8px;
    padding:5px 10px;
    border:1px solid #c9dbe3;
    border-radius:999px;
    background:#eef8fa;
    color:var(--c1099-navy);
    font-size:.78rem;
    font-weight:700;
}
#iframeWrapper {
    position:relative;
    width:100%;
    max-width:100%;
    height:clamp(560px,calc(100vh - 220px),940px);
    min-height:560px;
    max-height:940px;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    border:1px solid #cfdbe1;
    border-radius:10px;
    background:#fff;
}
#iframeWrapper iframe {
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    height:100%;
    border:0;
    background:#fff;
}
#pdfViewer.c1099-preview-hidden { display:none; }

.c1099-preview-actions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    width:100%;
    max-width:580px;
    margin:30px auto 8px;
}
.c1099-preview-button,
.c1099-submit-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:44px;
    min-height:44px;
    padding:8px 12px;
    border-radius:10px;
    font-size:.88rem;
    font-weight:800;
    line-height:1.25;
    text-align:center;
    white-space:nowrap;
    cursor:pointer;
}
.c1099-preview-button {
    border:1px solid var(--c1099-navy);
    background:#fff;
    color:var(--c1099-navy);
}
.c1099-preview-button:hover,
.c1099-preview-button:focus { background:#f7fafc; }
.c1099-preview-button:disabled { cursor:not-allowed; opacity:.55; }
.c1099-preview-button:focus-visible,
.c1099-submit-button:focus-visible {
    outline:3px solid rgba(26,155,168,.28);
    outline-offset:2px;
}
.c1099-submit-button {
    border:0;
    background:var(--c1099-teal);
    color:#fff;
}
.c1099-submit-button:hover,
.c1099-submit-button:focus {
    background:var(--c1099-teal-dark);
    color:#fff;
}
.c1099-submit-button:disabled { cursor:progress; opacity:.68; }
#c1099FormBuilder .loader-overlay {
    position:absolute;
    inset:0;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.72);
}
#c1099FormBuilder .spinner {
    width:48px;
    height:48px;
    border:5px solid #e8eff2;
    border-top-color:var(--c1099-teal);
    border-radius:50%;
    animation:c1099Spin .9s linear infinite;
}
@keyframes c1099Spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) {
    #c1099FormBuilder .spinner { animation-duration:3s; }
}

html.c1099-preview-open,
body.c1099-preview-open { overflow:hidden; }
#pdfModal.modal-overlay {
    position:fixed;
    inset:0;
    z-index:2147483647;
    display:none;
    align-items:center;
    justify-content:center;
    padding:clamp(16px,4vw,40px);
    margin:0;
    overflow:auto;
    isolation:isolate;
    background:rgba(2,48,71,.72);
}
#pdfModal .c1099-modal-content {
    position:relative;
    z-index:1;
    display:block;
    width:min(960px,75vw,calc((100dvh - 64px) * 17 / 11));
    height:auto;
    aspect-ratio:17 / 11;
    margin:auto;
    padding:6px;
    overflow:visible;
    border:1px solid #cfdbe1;
    border-radius:12px;
    background:#edf2f5;
    box-shadow:0 16px 42px rgba(0,18,27,.24);
}
#pdfModal #modalPdf {
    display:block;
    width:100%;
    height:100%;
    min-height:0;
    overflow:auto;
    border:0;
    border-radius:8px;
    outline:0;
    background:#fff;
}
#pdfModal .close-btn {
    position:absolute;
    top:-16px;
    right:-16px;
    z-index:10;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    padding:0;
    border:2px solid #fff;
    border-radius:50%;
    background:#009bb5;
    color:#fff;
    font-size:26px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 5px 16px rgba(0,18,27,.24);
}
#pdfModal .close-btn:hover,
#pdfModal .close-btn:focus-visible {
    background:#007f96;
    outline:3px solid rgba(0,155,181,.28);
    outline-offset:2px;
}
@media (max-width:991.98px) {
    .c1099-preview-column { position:static; top:auto; height:auto; }
    #iframeWrapper { height:clamp(540px,72dvh,760px); min-height:0; max-height:760px; }
}
@media (max-width:767.98px) {
    .c1099-main { padding-top:24px; padding-bottom:44px; }
    #pdfForm > .mb-4 { padding:20px; border-radius:14px; }
    #pdfForm .row { grid-template-columns:minmax(0,1fr); }
    .c1099-preview-card { padding:10px; border-radius:14px; }
    #iframeWrapper { height:clamp(460px,70dvh,640px); min-height:0; max-height:640px; }
}
@media (max-width:575.98px) {
    .c1099-main > .container {
        width:100%;
        max-width:1220px;
        min-width:0;
        padding-left:12px;
        padding-right:12px;
        box-sizing:border-box;
        margin-left:auto;
        margin-right:auto; }
    #pdfForm > .mb-4 { padding:16px; }
    .c1099-preview-card { padding:8px; }
    #iframeWrapper { height:clamp(420px,68dvh,560px); min-height:0; max-height:560px; }
    #pdfModal.modal-overlay { padding:16px; }
    #pdfModal .c1099-modal-content {
        width:100%;
        max-width:100%;
        aspect-ratio:auto;
        height:calc(100dvh - 32px);
    }
    #pdfModal .close-btn { top:6px; right:6px; }
}

@media (max-width:479.98px) {
    .c1099-preview-actions {
        grid-template-columns:minmax(0,1fr);
        max-width:100%;
    }
    .c1099-preview-button,
    .c1099-submit-button {
        white-space:normal;
    }
}

/* Responsive 1099 PDF page renderer.
   PDF.js renders each generated page to the exact available width, so the
   preview never requires horizontal scrolling and the page ratio is preserved. */
#iframeWrapper {
    overflow-x: hidden !important;
    overflow-y: hidden;
}
.epay-1099-pdf-pages {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #eef3f5;
}
.epay-1099-pdf-pages--modal {
    height: 100%;
    padding: 10px;
    border-radius: 8px;
}
.epay-1099-pdf-page {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(2, 48, 71, .10);
}
.epay-1099-pdf-page:last-child {
    margin-bottom: 0;
}
.epay-1099-pdf-page canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0;
}
.epay-1099-pdf-page::before {
    content: "ePaystubs";
    position: absolute;
    left: 50%;
    z-index: 2;
    width: max-content;
    max-width: 90%;
    transform: translate(-50%, -50%) rotate(-28deg);
    color: rgba(2, 48, 71, .16);
    font-family: "Open Sans", sans-serif;
    font-size: clamp(24px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .03em;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.epay-1099-pdf-page::before { top:50%; }
#pdfViewer.epay-1099-pdfjs-active,
#modalPdf.epay-1099-pdfjs-active {
    display: none !important;
}
@media (max-width: 575.98px) {
    .epay-1099-pdf-pages { padding: 5px; }
    .epay-1099-pdf-pages--modal { padding: 5px; }
    .epay-1099-pdf-page { margin-bottom: 7px; }
    .epay-1099-pdf-page::before {
        font-size: clamp(22px, 8vw, 36px);
    }
}

/* Shared 1099 mobile/tablet preview hardening. Desktop proportions remain unchanged. */
@media (max-width:991.98px) {
    #iframeWrapper {
        width:100%;
        max-width:100%;
        height:clamp(540px,72dvh,760px);
        min-height:0;
        max-height:760px;
        overflow:auto;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
    }
    #iframeWrapper iframe {
        width:100%;
        max-width:100%;
        min-width:0;
        height:100%;
    }
    #pdfModal { padding:16px; }
    #pdfModal [role="dialog"] {
        width:min(720px,calc(100vw - 32px));
        max-width:100%;
        height:calc(100dvh - 32px);
        max-height:900px;
        aspect-ratio:auto;
    }
    #pdfModal .close-btn { top:8px; right:8px; }
}
@media (max-width:767.98px) {
    #iframeWrapper {
        height:clamp(460px,70dvh,640px);
        min-height:0;
        max-height:640px;
    }
    #pdfModal {
        align-items:stretch;
        padding:12px;
    }
    #pdfModal [role="dialog"] {
        width:100%;
        max-width:100%;
        height:calc(100dvh - 24px);
        max-height:none;
        margin:auto;
        padding:4px;
        border-radius:10px;
    }
    #pdfModal iframe { border-radius:7px; }
    #pdfModal .close-btn {
        top:8px;
        right:8px;
        width:38px;
        height:38px;
        font-size:24px;
    }
}
@media (max-width:575.98px) {
    #iframeWrapper {
        height:clamp(420px,68dvh,560px);
        min-height:0;
        max-height:560px;
    }
}
.c1099-hero .tax1099-w2-intro ol,
.c1099-hero .tax1099-w2-intro li {
    font-size:13px;
    text-align:left;
}
/* Container layout verified against Form 941; page-scoped, 2026-11-01. */
.c1099-layout-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,13fr);gap:24px;margin:0;width:100%;min-width:0;align-items:start;box-sizing:border-box}
.c1099-layout-row > *{width:100%;max-width:none;min-width:0;padding-left:0;padding-right:0;margin:0;box-sizing:border-box}
@media(min-width:992px) and (max-width:1199.98px){.c1099-layout-row{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:22px}}
@media(max-width:991.98px){.c1099-layout-row{grid-template-columns:minmax(0,1fr);gap:24px}}
