@import url('https://fonts.googleapis.com/css2?family=Monomaniac+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=VT323&display=swap');

body{
    font-family: "Inter", sans-serif;
}
:root {
    --page-width: 1140;
    --page-max-width: 1140px;
    --page-padding: 48px;
    --muted: #555;
    --input-bg: rgba(255, 255, 255, 0.9);
    --clr-txt: rgb(125, 125, 125);
    --txt-blue: rgb(0, 117, 178);
    --vt: "VT323", monospace;
}
.form-top-panel select{
    width: 20rem
}
button.generate-btn {
    background-color: #1A73E8 !important;
}
:root {
    --page-width: 1140px;
    --page-max-width: 1140px;
    --page-padding: 48px;
    --muted: #555;
    --input-bg: rgba(255, 255, 255, 0.9);
}
.page div{
    font-family: 'Monomaniac One', cursive;
}
.page input{
    font-family: 'VT323', monospace;
}

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

.page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 16px; /* same as scrollbar height */
    overflow-x: auto;
}

.page-wrapper::before::-webkit-scrollbar {
    height: 8px;
}

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

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

.page-wrapper::before::-webkit-scrollbar-thumb:hover {
    background: #5a6fd1;
}

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

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

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

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

/* Classic template page */
.page {
    width: var(--page-width) !important;
    max-width: var(--page-max-width);
    margin: 0 auto;
    background: url("../../images/paystubbg/modern4-template-watermark.jpg");
    background-size: calc(var(--page-width) - 4px) 705px;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding: 0px 54px;
    height: 705px;
    border: 1px solid #ddd;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .page {
        max-width: 640px !important;
        background-size: calc(640px - 4px) 532px;
        padding: 32px 16px 16px 16px; /* adjust padding for mobile */
    }
}


.company-header-table{
    width: 100%;
    display: table;
    vertical-align: bottom;
    padding-top: 10px;
    height: 64px !important;
}
.company-header-cell{
    display: table-cell;
    vertical-align: middle;
}

.company-header-cell:nth-child(1){
    width: 611px;
}
.company-header-cell:nth-child(2){
    width: 419px;
    vertical-align: top;
    text-align: end;
}

.company-header-title{
    font-family: Inter !important;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    color: rgb(147, 149, 152);
    text-align: end;
    line-height: 1;
}
.company-header-input-container{
    max-height: 22px;
    margin-bottom: 1px;
}

.company-header-input{
    border: 1px solid rgb(221, 222, 231);
    background-color: rgb(255, 249, 196);
    width: 90%;
    outline: none;
    max-height: 22px;
    font-size: 20px;
    text-align: center;
}

.company-header-detail-table{
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.company-header-detail-row{
    display: table-row;
}

.template-info-cell{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    height: 24px;
    line-height: 1;
}

.template-info-header-cell{
    font-size: 23px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Monomaniac One', cursive;
}

/* column widths */
.template-info-cell:nth-child(1){ width:128px; }
.template-info-cell:nth-child(2){ width:119px; }
.template-info-cell:nth-child(3){ width:216px; }
.template-info-cell:nth-child(4){ width:148px; }

/* inputs */
.template-info-cell input{
    width: 95%;
    box-sizing: border-box;
    font-size: 18px;
    text-align: center;
}

.template-info-cell input{
    border: 1px solid rgb(221, 222, 231);
    background-color: rgb(255, 249, 196);
}

#reporting-period{
    /*font-size: 14px*/
}

.pay-details-table{
    display: table;
    padding-top: 6px;
}
.pay-detail-row{
    display: table-row;
    height: 24px;
    text-transform: uppercase;
}
.pay-detail-cell{
    display: table-cell;
    vertical-align: middle;
    padding: 0px 5px;
    line-height: 1;
}
.pay-header{
    color: #ffffff;
    font-weight: 500;
    font-size: 23px;
}

.pay-detail-row.pay-header .pay-detail-cell:nth-child(1){
    text-align: left;
    width: 247px;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(2){
    width: 363px;
    text-align: left;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(3){
    width: 121px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(4){
    width: 122px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(5){
    width: 178px;
    text-align: center;
}

.pay-details-container-table{
    height: 218px;
}

.income-table{
    display: table;
    padding-top: 5px;
}
.income-row{
    display: table-row;
}
.income-cell{
    display: table-cell;
    font-family: 'VT323', monospace !important;
    font-size: 26px;
    padding: 0 5px;
}
.income-cell input{
    border: 1px solid rgb(124, 199, 65);
    background-color: rgb(255, 249, 196);
    width: 90%;
    height: 22px;
    font-size: 20px
}
.income-cell:nth-child(1){
    width: 247px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    padding-left: 12px;
    text-align: left;
}
.income-cell:nth-child(2){
    width: 363px;
    text-align: left;
}
.income-cell:nth-child(3){
    width: 121px;
    text-align: center;
}
.income-cell:nth-child(4){
    width: 122px;
    text-align: center;
}
.income-cell:nth-child(5){
    width: 178px;
    text-align: center;
}
.employee-detail-row{
    margin-bottom: 8px;
}

.pay-deductions-container-table{
    display: table;
    height: 145px;
    padding-top: 6px;
}
.pay-deductions-row{
    display: table-row;
}
.pay-deductions-cell{
    display: table-cell;
    vertical-align: top;
}
.pay-deductions-cell:nth-child(1){
    width: 418px;
}
.pay-deductions-cell:nth-child(2){
    width: 300px;
}
.pay-deductions-cell:nth-child(3){
    width: 305px;
}
.pay-deductions-cell textarea{
    width: 417px;
    height: 176px;
    background-color: transparent;
    border: none;
    resize: none;
    font-size: 17px;
    color: rgb(147, 149, 152);
    padding: 5px;
    outline: none;
}
.pay-deductions-cell textarea:focus{
    outline: none;
}

.template-info-table input,
.pay-details-container-table input{
    font-family: var(--vt);
    line-height: 1;
}

.deductions-container{
    padding-left: 14px;
}

.deduction-table{
    display: table;
    width: 100%;
}

.deduction-title{
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-size: 18px !important;
    line-height: 1;
}

.deduction-row{
    display: table-row;
}

.body-row .deduction-cell{
    display: table-cell;
    line-height: 1;
}
.body-row .deduction-cell:nth-child(1){
    width: 70%
}
.body-row .deduction-cell:nth-child(2){
    width: 30%;
    text-align: end;
}

.deduction-label{
    font-size: 16px !important;
    font-weight: 500;
}
.deduction-value{
    font-family: var(--vt) !important;
    font-size: 24px !important;
}

.ytd-container{
    padding-left: 22px;
}

.ytd-table{
    display: table;
    width: 100%;
}

.ytd-title{
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-size: 18px !important;
    line-height: 1;
}

.ytd-row{
    display: table-row;
}

.body-row .ytd-cell{
    display: table-cell;
    line-height: 1;
}
.body-row .ytd-cell:nth-child(1){
    width: 70%
}
.body-row .ytd-cell:nth-child(2){
    width: 30%;
    text-align: end;
}

.ytd-label{
    font-size: 16px !important;
    font-weight: 500;
}
.ytd-value{
    font-family: var(--vt) !important;
    font-size: 24px !important;
}

.pay-footer-wrapper{
    padding-top: 8px;
    height: 53px;
    display: table;
    color: rgb(147, 149, 152);
}
.pay-footer-wrapper > div{
    display: table-cell;
}
.pay-footer-wrapper > div:nth-child(1){
    width: 725px;
}
.pay-footer-wrapper > div:nth-child(2){
    width: 290px;
    padding-left: 17px;
    vertical-align: middle;
}
.pay-company-address-wrapper{
    display: table;
    width: 100%;
    font-size: 20px !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
    height: 100%;
}
.pay-company-address-wrapper > div{
    display: table-cell;
}
.pay-company-address-wrapper > div:nth-child(1){
    width: 25%;
}
.pay-company-address-wrapper > div:nth-child(2){
    width: 75%;
    vertical-align: middle;
    text-align: end;
}
.pay-company-address-wrapper input{
    font-family: 'Monomaniac One', cursive;
    border: 1px solid rgb(221, 222, 231);
    background-color: rgb(255, 249, 196);
    width: 62%;
    outline: none;
    font-size: 20px;
}
.pay-net-wrapper{
    display: table;
    width: 100%;
}
.pay-net-wrapper > div{
    display: table-cell;
    width: 50%;
}
.pay-net-wrapper > div:nth-child(2){
    text-align: end;
}
.net-label{
    font-size: 28px;
    line-height: 1;
}
.net-value{
    font-size: 28px;
    font-family: var(--vt) !important;
    color: #000;
}

.bottom-text{
    letter-spacing: 1px;
    font-size: 12px;
    height: 23px;
    padding-top: 2px;
    color: rgb(147, 149, 152);
    text-align: center;
}

.check-wrapper{
    width: 100%;
    padding-top: 11px;
    height: 114px;
    display: table;
}

.check-top-row{
    width: 100%;
    text-align: end;
    padding-right: 10px;
    font-size: 18px;
    color: rgb(147, 149, 152);
}
.check-dot{
    margin-top: -11px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
}

.check-date{
    color: #000000;
}
.check-number{
    font-size: 26px !important;
    height: 24px !important;
    padding-left: 4px !important;
    border: 1px solid rgb(124, 199, 65);
    background-color: rgb(255, 249, 196);
    width: 63px;
    line-height: 1;
    color: #000;
}
.check-pay-details{
    padding-left: 5px;
}
.check-amount-row{
    display: table;
    line-height: 1;
}
.check-amount-row > div{
    display: table-cell;
    width: auto;
}
.check-amount-label{
    font-family: Inter, sans-serif !important;
    font-weight: 700;
    font-size: 32px !important;
    color:  rgb(147, 149, 152);
}
.check-amount{
    font-family: var(--vt) !important;
    color: rgb(0, 0, 0);
    font-size: 26px !important;
    padding-left: 40px !important;
    vertical-align: middle;
}
.check-to-row{
    display: table;
    width: 100%;
}
.check-to-row > div{
    display: table-cell;
}
.check-to-row > div:nth-child(1){
    width: 15%;
    color: rgb(147, 149, 152);
    text-transform: uppercase;
}
.check-to-row > div:nth-child(2){
    width: 85%;
    font-family: var(--vt) !important;
}
