/* 1099-MISC create-page primitives.
   Main component styling lives in the scoped FINAL 1099-MISC DESIGN block below. */
.required::after {
    content: " *";
    color: #111827;
}

.eminfo {
    margin: 0;
    padding: 8px 0 0;
    color: #627783;
    font-size: .84rem;
    line-height: 1.55;
    text-align: justify;
    text-justify: inter-word;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 30px;
    background: #cbd5db;
    transition: background-color .2s ease;
}

.slider::before {
    position: absolute;
    bottom: 3px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform .2s ease;
}

.switch input:checked + .slider {
    background: #0097b2;
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.switch input:focus-visible + .slider {
    outline: 3px solid rgba(0, 151, 178, .2);
    outline-offset: 2px;
}

.loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, .78);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5edf0;
    border-top-color: #0097b2;
    border-radius: 50%;
    animation: misc-spin .8s linear infinite;
}

@keyframes misc-spin {
    to { transform: rotate(360deg); }
}

#miscFormErrors {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #b33b32;
    border-radius: 9px;
    background: #fff7f6;
    color: #842029;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
}

#miscFormErrors[hidden] {
    display: none;
}

#miscFormErrors ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

#pdfForm .is-invalid {
    border-color: #b33b32;
    box-shadow: 0 0 0 3px rgba(179, 59, 50, .12);
}

/* =========================================================
   FINAL 1099-MISC DESIGN
   Matches W2, W4, and Form 941.
========================================================= */

.misc-hero,
.misc-main {
    --misc-navy: #023047;
    --misc-teal: #0097b2;
    --misc-orange: #f97316;
    --misc-border: #d9e3e8;
    --misc-surface: #f6f9fb;
    --misc-muted: #627783;
}

.misc-hero *,
.misc-main * {
    box-sizing: border-box;
}

.misc-hero > .container,
.misc-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;
}

/* Hero */
.misc-hero {
    position: relative;
    min-height: 354px;
    overflow: hidden;
    padding: 55px 0 46px;
    background: linear-gradient(
        90deg,
        #fffaf7 0%,
        #ffffff 39%,
        #eef3f5 55%,
        #c8d7dc 73%,
        #155a70 100%
    );
}

.misc-hero::before,
.misc-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.misc-hero::before {
    left: -72px;
    bottom: -112px;
    width: 180px;
    height: 180px;
    background: #fde7d7;
}

.misc-hero::after {
    top: -106px;
    right: -58px;
    width: 188px;
    height: 188px;
    background: rgba(43, 125, 145, .48);
}

.misc-hero > .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1220px;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.misc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.misc-hero__content {
    width: 100%;
    max-width: 560px;
}

.misc-hero h1 {
    width: 100%;
    max-width: 560px;
    margin: 0 0 14px;
    color: var(--misc-navy);
    font-size: clamp(2.15rem, 3vw, 2.36rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.025em;
}

.misc-hero__description {
    width: 100%;
    max-width: 550px;
    margin: 0 0 27px;
    color: #31566a;
    font-size: 1.02rem;
    line-height: 1.9;
}

.misc-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 198px;
    min-height: 53px;
    padding: 13px 24px;
    border: 2px solid var(--misc-orange);
    border-radius: 13px;
    background: var(--misc-orange);
    color: #06283a !important;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 13px 25px rgba(249, 115, 22, .22);
}

.misc-hero__steps-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    min-height: 249px;
    margin-left: auto;
    padding: 43px 30px 29px;
    border: 1px solid #d7e1e6;
    border-radius: 25px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 45px rgba(2, 48, 71, .11);
}

.misc-hero__badge {
    position: absolute;
    top: -16px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 17px;
    border-radius: 999px;
    background: var(--misc-navy);
    color: #ffffff;
    font-size: .82rem;
    font-weight: 800;
}

.misc-hero__steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.misc-hero__step {
    min-width: 0;
    text-align: center;
}

.misc-hero__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    margin-bottom: 11px;
    border-radius: 50%;
    background: var(--misc-navy);
    color: #ffffff;
    font-size: .76rem;
    font-weight: 800;
}

.misc-hero__step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 12px;
    border: 2px solid var(--misc-orange);
    border-radius: 50%;
    background: var(--misc-navy);
}

.misc-hero__step-icon svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.misc-hero__step h3 {
    margin: 0 0 6px;
    color: var(--misc-navy);
    font-size: .98rem;
    font-weight: 800;
}

.misc-hero__step p {
    margin: 0;
    color: #5e7080;
    font-size: .78rem;
    line-height: 1.45;
    white-space: nowrap;
}

.misc-hero__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 23px;
}

.misc-hero__connector span {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--misc-orange) 0 48%, var(--misc-teal) 48% 100%);
}

/* Main layout */
.misc-main {
    padding: 40px 0 64px;
    overflow: visible;
    background: #ffffff;
}

.misc-layout-row {
    overflow: visible;
}

.misc-form-column,
.misc-preview-column {
    min-width: 0;
}

/* Main form/preview proportions.
   Use an exact 30:70 split on desktop instead of Bootstrap's 4/8 approximation. */
@media (min-width: 1200px) {
    .misc-layout-row {
    }

    .misc-layout-row > .misc-form-column,
    .misc-layout-row > .misc-preview-column {
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }
}

/* Give smaller desktop/laptop screens a little more form room before stacking. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .misc-layout-row {
    }

    .misc-layout-row > .misc-form-column,
    .misc-layout-row > .misc-preview-column {
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }
}

/* Form section cards */
#pdfForm > .mb-4 {
    --misc-field-gap: 16px;
    --misc-label-gap: 7px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--misc-field-gap);
    margin: 0 0 24px !important;
    padding: 24px;
    overflow: visible;
    border: 1px solid var(--misc-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(2, 48, 71, .07);
}

#pdfForm .form-section-title {
    display: flex;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 2px solid #e8eef1;
    color: var(--misc-navy);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
}

#pdfForm .form-main,
#pdfForm .form-main-checkbox {
    width: 100%;
}

#pdfForm .form-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--misc-label-gap, 7px);
    align-content: start;
}

#pdfForm .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
    margin: 0;
}

#pdfForm .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* Keep paired address/contact inputs on the same baseline even when one label
   wraps onto two lines at narrower form widths. */
#pdfForm .row > [class*="col-"] > .form-main {
    height: 100%;
    justify-content: end;
}

#pdfForm .row > [class*="col-"] > .form-main > label {
    display: flex;
    align-items: flex-end;
    min-height: 0;
}

/* Account Number is paired with FATCA in the recipient grid. Give FATCA the
   same label-space offset so the bordered control starts on the same line. */
#pdfForm .fatca-wrapper > .form-main-checkbox {
    padding-top: 25px;
}

#pdfForm .fatca-wrapper .checkbox_sty {
    margin: 0;
}

#pdfForm .form-main.mt-3,
#pdfForm .form-main-checkbox.mt-3,
#pdfForm .form-main > .mt-3 {
    margin-top: 0 !important;
}

#pdfForm label {
    display: block;
    margin: 0;
    color: var(--misc-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
}

#pdfForm .form-control,
#pdfForm .form-select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfdbe1;
    border-radius: 9px;
    background: var(--misc-surface);
    color: var(--misc-navy);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    box-shadow: none;
}

#pdfForm .form-control:focus,
#pdfForm .form-select:focus {
    border-color: var(--misc-teal);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 151, 178, .14);
}

#pdfForm .icon-select::after,
#pdfForm .icon-select i,
#pdfForm .icon-input i {
    display: none !important;
}

#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: 46px;
    min-height: 46px;
    padding: 0 11px;
    border: 1px solid #cfdbe1;
    border-right: 0;
    border-radius: 9px 0 0 9px;
    background: #eef3f5;
    color: var(--misc-navy);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

#pdfForm .input-group .form-control {
    border-radius: 0 9px 9px 0;
}

#pdfForm .input-group .form-control:only-child {
    border-radius: 9px;
}

#pdfForm .checkbox_sty,
#pdfForm .checkbox_recipients_sty {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #dce5e9;
    border-radius: 10px;
    background: #fbfdfe;
}

#pdfForm .checkbox_sty input[type="checkbox"],
#pdfForm .checkbox_recipients_sty input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--misc-teal);
}

#pdfForm .checkbox_sty label,
#pdfForm .checkbox_recipients_sty label {
    margin: 0;
}

#pdfForm .checkbox_sty span,
#pdfForm .checkbox_recipients_sty span {
    color: #294b5b;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
}

#pdfForm .toggle-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #dce5e9;
    border-radius: 10px;
    background: #fbfdfe;
}

#pdfForm .toggle-container > label {
    margin: 0;
}

/* Sticky preview */
.misc-preview-column {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    height: fit-content;
}

.misc-preview-card {
    position: relative;
    top: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 12px;
    border: 1px solid var(--misc-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(2, 48, 71, .1);
}

.misc-preview-heading {
    margin: 0 0 16px;
    text-align: center;
}

.misc-preview-heading h2 {
    margin: 0 0 5px;
    color: var(--misc-navy);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
}

.misc-preview-heading p {
    margin: 0;
    color: var(--misc-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.misc-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(--misc-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;
    padding: 0;
    border: 1px solid #cfdbe1;
    border-radius: 10px;
    background: #ffffff;
}

#iframeWrapper iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    background: #ffffff;
}


#pdfViewer.misc-preview-hidden {
    display: none;
}


.misc-preview-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 580px;
    margin: 30px auto 8px;
}

.misc-preview-button,
.misc-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.misc-preview-button {
    position: static;
    transform: none;
    border: 1px solid #7895a8;
    background: #eaf2f6;
    color: var(--misc-navy);
    box-shadow: 0 1px 3px rgba(15, 50, 71, .14);
}

.misc-preview-button:hover,
.misc-preview-button:focus {
    border-color: var(--misc-navy);
    background: #dceaf1;
    transform: translateY(-1px);
}

.misc-preview-button:disabled {
    border-color: #a8bac6;
    background: #edf2f5;
    color: #5e7483;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
    transform: none;
}

.misc-submit-button {
    border: 1px solid #168894;
    background: #1a9ba8;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 50, 71, .18);
}

.misc-submit-button:hover,
.misc-submit-button:focus {
    background: #158793;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

#iframeWrapper:hover .preview-btn {
    display: inline-flex;
}

/* Full preview: use the finalized W-2 modal shell; the multi-page PDF scrolls inside it. */
html.misc-preview-open, body.misc-preview-open { overflow: hidden; }
#pdfModal { position: fixed; inset: 0; z-index: 2147483647; display: none; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 28px); margin: 0; overflow: auto; isolation: isolate; background: rgba(6,43,69,.42); }
#pdfModal .misc-modal-content { position: relative; z-index: 1; box-sizing: border-box; width: min(960px, 75vw, calc((100dvh - 56px) * 17 / 11)); height: auto; aspect-ratio: 17 / 11; margin: auto; padding: 0; overflow: hidden; border: 1px solid #d6e1e6; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(0,18,27,.16); }
#pdfModal #modalPdf { display: block; width: 100%; height: 100%; min-height: 0; overflow: auto; border: 0; border-radius: 7px; outline: 0; background: #fff; }
#pdfModal .close-btn { position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #d6e1e6; border-radius: 7px; background: #fff; color: #17384d; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,18,27,.14); }
#pdfModal .close-btn:hover, #pdfModal .close-btn:focus-visible { border-color: #9fb5c1; background: #f4f8fa; color: #062b45; outline: 2px solid rgba(0,155,181,.22); outline-offset: 1px; }

@media (max-width: 1199.98px) {
    .misc-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }

    #iframeWrapper {
        height: clamp(500px, calc(100vh - 230px), 820px);
        min-height: 500px;
        max-height: 820px;
    }
}

@media (max-width: 991.98px) {
    .misc-hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .misc-hero__content {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .misc-hero__description {
        margin-right: auto;
        margin-left: auto;
    }

    .misc-hero__steps-card {
        width: min(720px, 100%);
        margin: 18px auto 0;
    }

    .misc-preview-column {
        position: static;
        top: auto;
        align-self: auto;
        height: auto;
    }

    .misc-preview-card {
        margin-top: 8px;
    }

    #iframeWrapper { height:clamp(540px,72dvh,760px); min-height:0; max-height:760px; }
}



/* Keep paired payer/recipient controls aligned when their labels wrap. */
@media (min-width: 768px) {
    #pdfForm .row > [class*="col-"] > .form-main > label {
        display: block;
        min-height: 38px;
    }

    #pdfForm .row > [class*="col-"] > .form-main > label.required::after {
        display: inline;
        margin-left: 2px;
    }

    #pdfForm .row .misc-single-line-label {
        white-space: normal;
    }

    #pdfForm .row .form-select {
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    #pdfForm .row { grid-template-columns: minmax(0, 1fr); }

    #pdfForm .row > [class*="col-"] > .form-main > label {
        min-height: 0;
    }

    #pdfForm .fatca-wrapper > .form-main-checkbox {
        padding-top: 0;
    }

    .misc-main {
        padding-top: 28px;
        padding-bottom: 44px;
    }

    #pdfForm > .mb-4 {
        padding: 16px;
        border-radius: 14px;
    }

    .misc-preview-card {
        padding: 10px;
        border-radius: 14px;
    }

    #pdfForm .form-section-title {
        font-size: 1.18rem;
    }

    #iframeWrapper { height:clamp(460px,70dvh,640px); min-height:0; max-height:640px; }

}

@media (max-width: 575.98px) {
    .misc-hero > .container,
    .misc-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;
    }

    .misc-hero {
        min-height: 0;
        padding: 42px 0 38px;
    }

    .misc-hero__cta {
        width: 100%;
    }

    .misc-hero__steps-card {
        min-height: 0;
        padding: 42px 20px 24px;
    }

    .misc-hero__badge {
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .misc-hero__steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .misc-hero__connector {
        min-height: 20px;
        padding: 0;
    }

    .misc-hero__connector span {
        width: 4px;
        height: 22px;
        background: linear-gradient(180deg, var(--misc-orange) 0 48%, var(--misc-teal) 48% 100%);
    }

    .misc-hero__step p {
        white-space: normal;
    }

    #pdfForm > .mb-4 {
        padding: 16px;
    }

    .misc-preview-card {
        padding: 8px;
    }

    #iframeWrapper { height:clamp(420px,68dvh,560px); min-height:0; max-height:560px; }
}

@media (max-width: 479.98px) {
    .misc-preview-actions {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
    }

    .misc-preview-button,
    .misc-submit-button {
        white-space: normal;
    }
}
/* W-2 create-header final specificity alignment. */
.misc-hero .misc-hero__content { width: 100%; max-width: 820px; margin: 0 auto; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center; }
#epay-create-h1-force-a { width: 100%; max-width: none; margin: 0 0 10px; padding: 0; color: #062b45; font-family: "Open Sans", sans-serif; font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -.8px; text-align: center; }
.misc-hero #epay-create-h1-force-a + .misc-header-description { width: 100%; max-width: 760px; margin: 0 auto 20px; padding: 0; color: #17384d; font-family: "Open Sans", sans-serif; font-size: 17px; font-weight: 400; line-height: 1.65; text-align: center; }
.misc-hero #epay-create-h1-force-a ~ .misc-header-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 260px; min-height: 54px; margin: 0 auto; padding: 14px 26px; border: 0; border-radius: 8px; background: #1a9ba8; color: #fff; font-family: "Open Sans", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: none; }
.misc-hero #epay-create-h1-force-a ~ .misc-header-cta:hover, .misc-hero #epay-create-h1-force-a ~ .misc-header-cta:focus { background: #158793; color: #fff; text-decoration: none; }
.misc-hero .tax1099-w2-intro ol,
.misc-hero .tax1099-w2-intro li {
    font-size: 13px;
    text-align: left;
}
@media (max-width: 767.98px) { .misc-hero #epay-create-h1-force-a + .misc-header-description { margin-bottom: 18px; font-size: 16px; } .misc-hero #epay-create-h1-force-a ~ .misc-header-cta { width: 100%; min-width: 0; } }
@media (max-width: 575.98px) {
    .misc-hero #epay-create-h1-force-a { font-size: 20px; line-height: 1.18; letter-spacing: -.2px; text-align: left; }
    .misc-hero #epay-create-h1-force-a + .misc-header-description { font-size: 11px; line-height: 1.45; text-align: left; }
    .misc-hero .tax1099-w2-intro { text-align: left; }
    .misc-hero .tax1099-w2-intro ol { padding-left: 18px; }
    .misc-hero .tax1099-w2-intro ol,
    .misc-hero .tax1099-w2-intro li { font-size: 10.5px; line-height: 1.45; text-align: left; }
}

.misc-field-help {
    margin: 0;
    color: #667d89;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
}
.field-optional {
    color: #6b7f8b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
#pdfForm label.misc-single-line-label {
    flex-wrap: nowrap;
    white-space: nowrap;
}
.misc-mini-label {
    display: block;
    margin: 0 0 5px;
    color: #566f7d;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}
.misc-ttoc-field {
    min-width: 0;
}
.misc-ttoc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.misc-2026-only[hidden] { display: none; }

@media (max-width: 575.98px) {
    .misc-ttoc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 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: 6px;
    border-radius: 7px;
    background: #f7f9fa;
}
.epay-1099-pdf-page {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e8ec;
    box-shadow: none;
}
.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: 0; border-radius: 0; }
    .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:0;
    }
    #pdfModal [role="dialog"] {
        width:100%;
        max-width:100%;
        height:100dvh;
        max-height:none;
        margin:0;
        padding:0;
        border-radius:0;
    }
    #pdfModal iframe { border-radius:0; }
    #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;
    }
}
/* Container layout verified against Form 941; page-scoped, 2026-11-01. */
.misc-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}
.misc-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){.misc-layout-row{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:22px}}
@media(max-width:991.98px){.misc-layout-row{grid-template-columns:minmax(0,1fr);gap:24px}}
