@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
body{
    font-family: "Inter", sans-serif;
}
:root {
    --page-width: 1140px;
    --page-max-width: 1140px;
    --page-padding: 48px;
    --muted: #555;
    --input-bg: rgba(255, 255, 255, 0.9);
    --clr-txt: #1C1C1C;
    --page-height: 1475px;
}
.form-top-panel select{
    width: 20rem
}
button.generate-btn {
    background-color: #1A73E8 !important;
}

/* 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/classic2-template-watermark.png");
    background-size: calc(var(--page-width) - 4px) var(--page-height);
    background-position: left bottom;
    background-repeat: no-repeat;
    padding: 37px 59px 0px 64px;
    height: var(--page-height);
    border: 1px solid #ddd;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    line-height: 1;
}

/* 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;
    height: 155px;
}
.company-header-cell{
    display: table-cell;
    vertical-align: middle;
}
.company-header-cell:nth-child(1){
    width: 509px;
    padding-bottom: 10px;
}
.company-header-cell:nth-child(2){
    text-align: end;
    width: 507px;
    vertical-align: top;
}
.paystub-number-container{
    height: 40px ;
}
.paystub-number{
    background-color: transparent;
    width: 65px;
    font-size: 14px;
    border: 1px solid rgb(221, 222, 231);
    text-align: end;
    font-weight: bold;
}

.company-header-title{
    font-size: 31px !important;
    padding-top: 40px !important;
    font-weight: bold;
    letter-spacing: 3px;
}

.company-header-input-container{
    height: 28px;
}

.company-header-input{
    border: 1px solid rgb(221, 222, 231);
    background-color: rgb(255, 249, 196);
    width: 90%;
    outline: none;
    font-size: 18px;
    font-weight: bold;
    color: rgb(28, 28, 28);
}
.company-header-input::placeholder{
    color: #757575;
}
.company-address{
    font-size: 16px;
}
.template-info-table{
    display: table;
}
.template-info-row{
    display:table-row;
    width: 100%;
    height: 148px;
    font-size: 13px;
}
.template-info-row.header-row{
    height: 47px;
    font-size: 17px;
    font-weight: bold;
}
.template-info-row.body-row .template-info-cell{
    padding-top: 8px;
}
.template-info-header-cell input{
    width: 80%;
    background: transparent;
    border: 1px solid rgb(124, 199, 65);
    max-width: 120px;
}
.template-info-cell:nth-child(1) input{
    text-align: left;
}

.template-info-cell:nth-child(1){
    padding-left: 14px !important;
    display: table-cell;
    width: 360px;
}
.template-info-cell:nth-child(2){
    display: table-cell;
    text-align: center;
    width: 151px;
}
.template-info-cell:nth-child(3){
    display: table-cell;
    text-align: center;
    width:  195px;
}
.template-info-cell:nth-child(4){
    display: table-cell;
    text-align: center;
    width:  150px;
}
.template-info-cell:nth-child(5){
    display: table-cell;
    text-align: center;
    width:  160px;
}
.template-info-header-cell{
    color: #000;
    vertical-align: middle;
    text-transform: uppercase;
}
.template-info-row.body-row input{
    border: 1px solid rgb(221, 222, 231);
    background-color: rgb(255, 249, 196);
    outline: none;
    width: 90%;
    text-align: center;
}
.employee-info-input{
    width: 90%;
}
.pay-details-table{
    display: table;
}
.pay-detail-row{
    display: table-row;
    height: 47px;
    text-transform: uppercase;
}
.pay-detail-cell{
    display: table-cell;
    vertical-align: middle;
    font-size: 17px;
    font-weight: bold;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(1){
    text-align: left;
    width: 227px;
    padding-left: 12px;

}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(2){
    width:  95px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(3){
    width:  84px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(4){
    width:  159px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(5){
    width:  215px;
    text-align: left;
    padding-left: 12px;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(6){
    width:  110px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(7){
    text-align: center;
    width:  126px;
}
.pay-details-container-table{
    display: table;
    height: 506px;
}
.pay-details-container-table > div:nth-child(1){
    display: table-cell;
    width: 565px;
}
.pay-details-container-table > div:nth-child(2){
    display: table-cell;
    width: 451px;
}
.income-table{
    display: table;
    padding-top: 20px;
}
.income-row{
    display: table-row;
}
.income-cell{
    display: table-cell;
    font-weight: bold;
}
.income-cell input{
    border: 1px solid rgb(124, 199, 65);
    background-color: rgb(255, 249, 196);
    width: 90%
}
.income-cell:nth-child(1){
    width: 227px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 17px;
    padding-left: 14px;
}
.income-cell:nth-child(2){
    width: 95px;
    text-align: center;
}
.income-cell:nth-child(3){
    width: 84px;
    text-align: center;
}
.income-cell:nth-child(4){
    width: 159px;
    text-align: center;
}

.deductions-table{
    display: table;
    padding-top: 20px;
}
.deduction-row{
    display: table-row;
    height: 40px;
}
.deduction-cell{
    display: table-cell;
    font-weight: bold;
}

.deduction-cell:nth-child(1) {
    width: 215px;
    text-transform: capitalize;
    padding-left: 14px;
}
.deduction-cell:nth-child(2){
    width: 110px;
    text-align: center;
}
.deduction-cell:nth-child(3){
    width: 126px;
    text-align: center;
}
.pay-summary-table{
    display: table;
}
.pay-summary-row{
    display: table-row;
}
.pay-summary-row:nth-child(1){
    height: 47px;
}
.pay-summary-row:nth-child(2){
    height: 37px;
}
.pay-summary-cell{
    display: table-cell;
    width: 169.5px;
    text-align: center;
    vertical-align: middle;
}

.pay-summary-label{
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
}
.pay-summary-value{
    font-size: 16px;
    font-weight: bold;
}

.check-wrapper{
    padding-top: 29px;
    height: 448px;
    display: table;
}
.check-left{
    display: table-cell;
    width: 583px;
    padding-left: 14px;
    padding-top: 170px;
}

.check-left-content{
    display: table;
    grid-template-columns: 17% 83%;
    grid-template-rows: 30px auto;
}
.check-left-row{
    display: table-row;
}
.check-left-row:nth-child(1){
    height: 30px;
}
.check-left-row:nth-child(2){
    height: auto;
}
.check-left-row > div{
    display: table-cell;
}
.check-left-row > div:nth-child(1){
    width: 17%;
}
.check-left-row > div:nth-child(2){
    width: 83%;
}

.check-left-label{
    font-size: 24px !important;
    font-weight: bold;
}
.check-amount-label{
    font-size: 23px !important;
    text-transform: uppercase;
}
.check-amount{
    text-transform: uppercase;
    font-size: 20px !important;
    font-weight: bold;
}

.check-to-text{
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

.check-right{
    display: table-cell;
    width: 433px;
    padding-top: 14px;
    vertical-align: top;
}

.check-right-top{
    display: table;
}
.check-right-top-row{
    display: table-row;
}
.check-right-top-row:nth-child(1){
    height: 49px;
}
.check-right-top-row:nth-child(2){
    height: 39px;
}
.check-right-top-cell{
    display: table-cell;
    width: 215px;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}
.not-check-wrapper{
    padding-top: 25px;
    padding-right: 3px;
    display: table;
    grid-template-rows: 16px 41px;
    width: 298px;
    text-align: center;
    margin-left: auto;
}
.not-check-row{
    display: table-row;
}
.not-check-row:nth-child(1){
    height: 16px;
}
.not-check-row:nth-child(2){
    height: 41px;
}
.not-check-row > div{
    display: table-cell;
    vertical-align: middle;
}
.not-check{
    text-transform: uppercase;
    font-size: 15px !important;
    font-weight: bold;
}
.direct-deposit{
    font-size: 22px !important;
    font-weight: bold;
}
.non-negotiable{
    padding-right: 2px;
    padding-top: 88px;
    width: 395px;
    margin-left: auto;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}


