@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');
@font-face {
    font-family: courier;
    src: url('../../fonts/Courier Prime.ttf') format('truetype');
}
@font-face {
    font-family: courier-bold;
    src: url('../../fonts/Courier Prime Bold.ttf') format('truetype');
}
@font-face {
    font-family: courier-italic;
    src: url('../../fonts/Courier Prime Italic.ttf') format('truetype');
}

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);
}
.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);
}

/* 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/modern.jpg");
    background-size: calc(var(--page-width) - 4px) 532px;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding: 63px 21px 15px 20px;
    height: 596px;
    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;
}
.company-header-cell{
    display: table-cell;
    vertical-align: middle;
}
.paystub-number{
    max-width: 63px;
    min-width: 80px;
    max-height: 25px;
    background-color: transparent;
    margin-left: 5px;
    color: rgb(125, 125, 125);
    margin-right: 12px;
    border: 1px solid rgb(124, 199, 65);
}
.company-header-cell:nth-child(1){
    width: 677px;
}
.company-header-cell:nth-child(2){
    vertical-align: bottom;
    text-align: end;
    width: 421px;
}

.company-header-title{
    padding: 0px 2% 2% 0px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--txt-blue);
}

.company-header-input{
    border: 1px solid rgb(221, 222, 231);
    background-color: rgb(255, 249, 196);
    width: 90%;
    outline: none;
}

.input-company-name{
    font-size: 21px !important;
}
.input-company-address{
    font-size: 16px !important;
}

.template-info-table{
    display: table;
    margin-top: 5px;

}
.template-info-row{
    display:table-row;
    width: 100%;
}
.template-info-row.header-row{
    height: 27px;
    font-weight: 600;
    font-size: 14px;
}
.employee-name-label{
    font-size: 18px;
}
.template-info-cell{
    vertical-align: middle;
}
.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){
    padding-left: 16px !important;
    text-align: center;
    display: table-cell;
    width: 422px;
}
.template-info-cell:nth-child(2){
    display: table-cell;
    text-align: center;
    width:  142px;
}
.template-info-cell:nth-child(3){
    display: table-cell;
    text-align: center;
    width: 256px;
}
.template-info-cell:nth-child(4){
    display: table-cell;
    text-align: center;
    width: 134px;
}
.template-info-cell:nth-child(5){
    display: table-cell;
    text-align: center;
    width:  138px;
}
.template-info-header-cell{
    color: var(--txt-blue);
    vertical-align: middle;
    text-transform: uppercase;
}
.template-info-row.body-row{
    height: 45px;
    font-size: 13px !important;
}
.template-info-row.body-row input{
    border: 1px solid rgb(221, 222, 231);
    background-color: rgb(255, 249, 196);
    outline: none;
    width: 90%;

}
.employee-info-input{
    width: 90%;
}
.pay-details-table{
    display: table;
}
.pay-detail-row{
    display: table-row;
    height: 28px;
    text-transform: uppercase;
}
.pay-detail-cell{
    display: table-cell;
    vertical-align: middle;
}
.pay-header{
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(1){
    text-align: left;
    width: 185px;
    padding-left: 12px;

}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(2){
    width: 99px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(3){
    width: 99px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(4){
    width: 166px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(5){
    width: 261px ;
    text-align: left;
    padding-left: 12px;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(6){
    width: 139px;
    text-align: center;
}
.pay-detail-row.pay-header .pay-detail-cell:nth-child(7){
    text-align: center;
    width: 149px;
}
.pay-details-container-table{
    display: table;
    height: 160px;
}
.pay-details-container-table > div:nth-child(1){
    display: table-cell;
    width: 550px;
}
.pay-details-container-table > div:nth-child(2){
    display: table-cell;
    width: 548px;
}
.income-table{
    display: table;
    padding: 10px 12px 0px 10px;
}
.income-row{
    display: table-row;
}
.income-cell{
    display: table-cell;
}
.income-cell input{
    border: 1px solid rgb(124, 199, 65);
    background-color: rgb(255, 249, 196);
    width: 90%
}
.income-cell:nth-child(1){
    width: 182px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
}
.income-cell:nth-child(2){
    width: 99px;
    text-align: center;
}
.income-cell:nth-child(3){
    width: 99px;
    text-align: center;
}
.income-cell:nth-child(4){
    width: 159px;
    text-align: center;
}

.deductions-table{
    display: table;
    padding: 10px 12px 0px 10px;
}
.deduction-row{
    display: table-row;
}
.deduction-cell{
    display: table-cell;
}

.deduction-cell:nth-child(1) {
    width: 260px;
    text-transform: uppercase;
}
.deduction-cell:nth-child(2){
    width: 129px;
    text-align: center;
}
.deduction-cell:nth-child(3){
    width: 148px;
    text-align: center;
}
.pay-summary-table{
    display: table;
    padding: 0 12px;
}
.pay-summary-row{
    display: table-row;
}
.pay-summary-cell{
    display: table-cell;
    width: 181px;
    text-align: center;
}

.pay-summary-label{
    text-transform: uppercase;
    margin-bottom: 2px;
    height: 26px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}
.pay-summary-value{
    font-size: 16px;
    height: 41px;
    vertical-align: middle;
}

.income-cell, .deduction-cell,
.pay-summary-value{
    font-family: 'courier';
    color: rgb(125, 125, 125);
    font-size: 17px !important;
}

.template-info-table input,
.pay-details-container-table input{
    font-family: 'courier';
}

.check-wrapper{
    height: 115px;
    margin-top: 22px;
    display: table;
}
.check-left{
    display: table-cell;
    width: 699px;
}
.check-right{
    display: table-cell;
    width: 393px;
}
.check-left-content{
    padding-top: 31px;
    padding-left: 31px;
    grid-template-rows: 37px 43px;
}
.check-left-content > div:nth-child(1){
    height: 31px;
}
.check-left-content > div:nth-child(2){
    height: 33px;
}

.check-amount-row{
    display: table;
    width: 100%;
}
.check-amount-row > div{
    display: table-cell;
    vertical-align: middle;
}
.check-amount-row > div:nth-child(1){
    width: 159px;
}
.check-amount-row > div:nth-child(2){
    width: 511px;
}
.check-amount-label{
    color: var(--txt-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 21px !important;
    padding-left: 8px !important;
}

.check-amount{
    color: var(--clr-txt) !important;
    text-transform: uppercase;
    font-family: courier;
    font-size: 19px !important;
    padding-left: 12px !important;
}

.check-to-row{
    display: table;
    width: 100%;
}
.check-to-row > div{
    display: table-cell;
    vertical-align: middle;
}
.check-to-row > div:nth-child(1){
    width: 159px;
}
.check-to-row > div:nth-child(2){
    width: 511px;
}

.check-to-label{
    font-weight: 300;
    color: rgb(0, 117, 178);
    text-transform: uppercase;
    font-size: 14px !important;
    padding-left: 8px !important;
}

.check-to-details{
    padding-top: 2px;
    padding-left: 12px !important;
}
.check-to-name,
.check-to-address{
    font-size: 12px !important;
    line-height: 15px;
    color: var(--clr-txt);
}

.check-right{
    vertical-align: top;
}

.check-right-top{
    display: table;
    padding-left: 28px;
    padding-top: 1px;
    grid-template-rows: 21px 21px;
    grid-template-columns: 169px 169px;
}
.check-right-top-row{
    height: 21px;
    display: table-row;
}
.check-right-top-cell{
    display: table-cell;
    width: 169px;
    text-align: center;
}

.check-right-top-label{
    color: var(--txt-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px !important;
}
.check-right-top-value{
    font-size: 13px;
    font-family: courier;
    color: var(--clr-txt);
}

.check-right-text{
    margin-top: -10px;
    padding-left: 5px;
}
.check-right-text >div:nth-child(1){
    height: 12px;
}
.check-right-text >div:nth-child(2){
    height: 18px;
}
.check-right-text div:nth-child(3){
    height: 29px;
}

.not-check{
    text-transform: uppercase;
    color: var(--txt-blue);
    font-size: 12px !important;
    text-align: center;
}
.non-negotiable{
    text-transform: uppercase;
    font-size: 16px !important;
    color: var(--clr-txt);
    text-align: center;
    line-height: 20px;
    font-weight: bold;
}

.void{
    text-transform: uppercase;
    color: var(--txt-blue);
    font-size: 17px !important;
    font-weight: bold;
    text-align: center;
}
