@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: 1140;
    --page-max-width: 1140px;
    --page-padding: 48px;
    --muted: #555;
    --input-bg: rgba(255, 255, 255, 0.9);
    --clr-txt: #1C1C1C;
}
.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);
    --clr-txt: #1C1C1C;
}

/* 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/classic-template-watermark.png");
    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;
}
.company-header-cell:nth-child(1){
    width: 677px;
    padding-bottom: 10px;
}
.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;
}

.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;
}
.template-info-row{
    display:table-row;
    width: 100%;
}
.template-info-row.header-row{
    height: 35px;
}
.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;
    display: table-cell;
    width: 412px;
}
.template-info-cell:nth-child(2){
    display: table-cell;
    text-align: center;
    width:  138px;
}
.template-info-cell:nth-child(3){
    display: table-cell;
    text-align: center;
    width: 274px;
}
.template-info-cell:nth-child(4){
    display: table-cell;
    text-align: center;
    width: 137px;
}
.template-info-cell:nth-child(5){
    display: table-cell;
    text-align: center;
    width:  137px;
}
.template-info-header-cell{
    color: #ffffff;
    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-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: 293px;
}
.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;
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: 400;
    color: #404040;
}
.pay-summary-value{
    font-size: 16px;
}
