@import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');

.page-header {
    width: 100%;
    min-height: 10rem;
    background: #6078db;
    display: flex;
    align-items: center;
    justify-content: center;

    h1 {
        color: #fff;
        font-size: 3rem;
        font-weight: bold;
    }
}

/* Wrapper for horizontal scroll */
.w2-form-wrapper {
    width: 100%;
    overflow-x: auto; /* horizontal scroll */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    padding-bottom: 16px; /* space for scrollbar */
}

/* Custom horizontal scrollbar */
.w2-form-wrapper::-webkit-scrollbar {
    height: 8px; /* scrollbar height */
}

.w2-form-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.w2-form-wrapper::-webkit-scrollbar-thumb {
    background: #6b82d9;
    border-radius: 4px;
}

.w2-form-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5a6fd1;
}

/* W2 Form container */
.w2-form-container {
    padding: 67px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 8px 0px,
    rgba(0, 0, 0, 0.14) 0px 3px 4px 0px,
    rgba(0, 0, 0, 0.2) 0px 3px 3px 0px;
    box-sizing: border-box;
}

/* W2 Form */
.w2-form {
    background-image: url('../../images/w2/copy-1.jpg');
    background-size: 1034px 550px;
    width: 1034px; /* fixed width to match background */
    min-width: 1034px; /* prevent shrinking on mobile */
    background-position: left top;
    background-repeat: no-repeat;
    font-family: sans-serif;
    font-size: 13px;
    min-height: 1068px;
    color: rgb(28, 28, 28);
    box-sizing: border-box;
    margin-inline: auto;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .w2-form {
        width: 1034px !important;
        min-width: 1034px !important;
        background-size: 1034px 550px;
    }

    .w2-form-container {
        padding: 27px;
    }

    .page-header {
        min-height: 8rem;

        h1 {
            font-size: 2.2rem;
        }
    }
}


.w2-header-row {
    display: table;
    height: 44px;
}

.w2-header-item {
    vertical-align: middle;
}

.w2-header-item:nth-child(1) {
    display: table-cell;
    width: 221px;
    text-align: center;
    font-family: "OCR A";
    font-size: 18px;
    padding-top: 4px;
}

.w2-header-item:nth-child(2) {
    display: table-cell;
    width: 248px;
    text-align: center;
}

.w2-header-item:nth-child(3) {
    display: table-cell;
    width: 564px;
    padding-left: 16px;
}

.omb-number {
    font-weight: bold;
}

.w2-row-two-item > div {
    width: 100%;
}

.yellow-input {
    border: 1px solid rgb(124, 199, 65);
    background-color: rgb(255, 249, 196);
    width: 90%;
    outline: none;
}

.w2-row-item-label {
    font-size: 13px;
    font-family: sans-serif;
}

.w2-row-item-label > span {
    font-weight: 600;
}

div:has( > .yellow-input) {
    padding-top: 2px;
}

.w2-row-two {
    height: 44px;
}

.w2-row {
    display: table;
    padding-left: 10px;
}

.w2-row > div:nth-child(1) {
    display: table-cell;
    width: 565px;
    vertical-align: top;
}

.w2-row > div:nth-child(2) {
    display: table-cell;
    width: 234px;
}

.w2-row > div:nth-child(3) {
    display: table-cell;
    width: 234px;
}

.w2-row-item {
    padding-top: 1px;
}

.w2-row-three-col > div {
    display: block;
}

.w2-row-three-col {
    padding-top: 1px;
}

.w-row-three-col > div:nth-child(1),
.w-row- {
    height: 44px;
}

.w-row-three-col > div:nth-child(2) {
    height: 44px;
}

.w-row-three-col > div:nth-child(3) {
    height: 42px;
}

.employee-details {
    width: 100%;
}

.employee-name-wrapper > div {
    display: table-cell;
}

.employee-name-wrapper > div:nth-child(1) {
    width: 268px;
}

.employee-name-wrapper > div:nth-child(2) {
    width: 263px
}

.employee-name-wrapper > div:nth-child(3) {
    width: auto;
}

.w2-row-five-col {
    padding-top: 1px;
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.w2-row-five-col > div,
.employee-details > div {
    display: table-row;
}

.w2-row-five-col > div:nth-child(1),
.employee-details > div:nth-child(1) {
    height: 44px;
}

.w2-row-five-col > div:nth-child(2),
.employee-details > div:nth-child(2) {
    height: 44px;
}

.w2-row-five-col > div:nth-child(3),
.employee-details > div:nth-child(3) {
    height: 44px;
}

.w2-row-five-col > div:nth-child(4),
.employee-details > div:nth-child(4) {
    height: 44px;
}

.w2-row-five-col > div:nth-child(5),
.employee-details > div:nth-child(5) {
    height: 23px;
}

.w2-code-row {
    display: table;
    grid-template-columns: 88px 139px;
}

.w2-code-row > div {
    display: table-cell;
}

.w2-code-row > div:nth-child(1) {
    width: 88px;
}

.w2-code-row > div:nth-child(2) {
    width: 139px;
}

.w2-code-row-item {
    vertical-align: top;
}

.w2-code-row-item:last-child {
    vertical-align: bottom;
}

.w2-code-label-wrapper {
    display: table;
    width: 100%;
}

.w2-code-label-wrapper > div {
    display: table-cell;
    vertical-align: middle;
}

.w2-code-label-wrapper > div:first-child {
    width: 15px; /* label width */
}

.w2-code-label {
    -webkit-text-orientation: upright;
    text-orientation: upright;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    letter-spacing: -5px;
    font-size: 10px !important;
}

.w2-row-item-label {
    font-size: 12px;
}

.w2-code-row-item label {
    display: block;
    line-height: 0.75rem;
}

.w2-row-five-col > div > div {
    padding-top: 1px;
    display: table-cell;
    vertical-align: top;
}


/*.w2-code-option {*/
/*    appearance: none;*/
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    background-image: none !important;*/
/*    font-size: 12px;*/
/*    height: 18px;*/
/*    line-height: 1.2;*/
/*    padding: 0px 2px 2px 2px !important;*/
/*    box-sizing: border-box;*/
/*    border: 1px solid rgb(124, 199, 65);*/
/*    background-color: rgb(255, 249, 196);*/
/*    border-radius: 0;*/
/*    font-family: inherit;*/
/*    max-width: 35px;*/
/*    width: fit-content;*/
/*}*/


/*.w2-code-option:focus {*/
/*    border-color: #6078db;*/
/*    outline: none;*/
/*    box-shadow: 0 0 0 2px rgba(96, 120, 219, 0.25);*/
/*}*/

/*.w2-code-option::after {*/
/*    content: attr(data-display);*/
/*}*/

/* wrapper controls size */
.w2-code-option-wrapper {
    position: relative;
    display: inline-block;
    width: fit-content;
    height: 22px;
}

/* visible value */
.w2-code-display {
    display: inline-block;
    min-width: 28px; /* enough for [Code] */
    padding: 0 4px;
    height: 22px;
    line-height: 18px;
    font-size: 12px;
    text-align: center;

    background-color: rgb(255, 249, 196);
    border: 1px solid rgb(124, 199, 65);
    box-sizing: border-box;
    font-family: inherit;

    pointer-events: none;
    white-space: nowrap;
}

/* invisible select on top */
.w2-code-option {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* focus ring */
.w2-code-option:focus + .w2-code-display,
.w2-code-option-wrapper:has(.w2-code-option:focus) .w2-code-display {
    border-color: #6078db;
    box-shadow: 0 0 0 2px rgba(96, 120, 219, 0.25);
}

.w2-row-six {
    display: table;
    height: 40px;
    padding-left: 3px;
    margin-top: -6px;
    padding-top: 2px;
}

.w2-row-seven {
    display: table;
    height: 45px;
}

.w2-row-six > div {
    display: table-cell;
}

.w2-row-six > div:nth-child(1),
.w2-row-seven > div:nth-child(1) {
    width: 56px !important;
}

.w2-row-six > div:nth-child(2),
.w2-row-seven > div:nth-child(2) {
    width: 248px !important;
}

.w2-row-six > div:nth-child(3),
.w2-row-seven > div:nth-child(3) {
    width: 165px !important;
}

.w2-row-six > div:nth-child(4),
.w2-row-seven > div:nth-child(4) {
    width: 151px !important;
}

.w2-row-six > div:nth-child(5),
.w2-row-seven > div:nth-child(5) {
    width: 165px !important;
}

.w2-row-six > div:nth-child(6),
.w2-row-seven > div:nth-child(6) {
    width: 151px !important;
}

.w2-row-six > div:nth-child(7),
.w2-row-seven > div:nth-child(7) {
    width: 97px !important;
}

.w2-footer-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.w2-footer-row-item {
    display: table-cell;
    vertical-align: top;
}

.w2-footer-row-item:not(:last-child) {
    /*padding-right: 16px;*/
}

.w2-footer-label {
    white-space: nowrap;
}

.w2-footer-small {
    font-weight: 500;
    font-size: 12px;
    vertical-align: bottom;
}

.w2-footer-large {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    vertical-align: bottom;
}

.w2-footer-bold {
    font-size: 32px;
    font-weight: 800;
}

.w2-footer-copy-name {
    font-family: sans-serif;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
}

.w2-footer-year-wrapper {
    text-align: center;
}

.w2-footer-year {
    font-family: "OCR A";
    font-size: 46px;
    font-weight: 500;
    max-width: 120px;
    text-align: center;
}

.w2-footer-department {
    font-size: 12px;
    font-family: sans-serif;
}

.w2-footer-row-item:nth-child(1),
.w2-footer-row-item:nth-child(3) {
    padding-top: 10px;
}

/* Outer wrapper: label + options in one line */
.w2-plan-wrapper {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.w2-plan-wrapper > label {
    display: table-cell;
    vertical-align: top;
    width: 20px; /* width for the "13" label */
}

/* Options wrapper: acts like a row of table cells */
.w2-plan-options-wrapper {
    display: table-cell;
    vertical-align: middle;
}

/* Each plan option: table cell for horizontal distribution */
.w2-plan-option-container {
    display: table-cell;
    text-align: left; /* center stack */
    vertical-align: top;
    padding-right: 10px; /* space between plan options */
}

/* Stack label above checkbox */
.w2-plan-option-container .w2-plan-label {
    display: block;
}

.w2-plan-option-container .w2-plan-checkbox {
    display: block;
}

.w2-plan-label {
    font-size: 10px;
}
