/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700&display=swap'); */

/* Paystub generator base styles */
.paystub-generator {
	--psg-primary: #1e3a8a;
	--psg-primary-light: #e8f0ff;
	--psg-primary-soft: #f5f8ff;
	--psg-border: #cbd5f5;
	border: none;
	padding: 0;
	background: #fff;
/* 	max-width: 1200px; */
	margin: 0 auto;
/* 	font-family: 'Inter', Arial, sans-serif; */
}

.paystub-generator button,
.paystub-generator input,
.paystub-generator select,
.paystub-generator textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	text-transform: none;
	box-shadow: none;
}

.paystub-generator button:focus,
.paystub-generator input:focus,
.paystub-generator select:focus,
.paystub-generator textarea:focus {
	outline-color: #1e3a8a;
	outline-width: 3px;
	outline-style: double;
	box-shadow: none;
	border-color: #1e3a8a !important;
}

.paystub-generator .psg-step {
	background: transparent;
	box-shadow: none;
}

.paystub-generator .psg-step:hover,
.paystub-generator .psg-step:focus,
.paystub-generator .psg-step:focus-visible {
	background: transparent;
	box-shadow: none;
}

.psg-steps {
	display: flex;
	gap: 5px;
	justify-content: space-between;
	position: relative;
	padding: 0;
	max-width: 548px;
	margin: 0 auto 40px;
}

#steps .psg-step,
.paystub-generator .psg-steps > .psg-step {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 8px;
	background: transparent;
	border: none;
	padding: 0;
	min-width: 87px;
	width: 87px;
	max-width: 87px;
}
.psg-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-family: var(--e-global-typography-afab46b-font-family), Sans-serif;
	font-size: var(--e-global-typography-afab46b-font-size);
	font-weight: var(--e-global-typography-afab46b-font-weight);
	text-decoration: var(--e-global-typography-afab46b-text-decoration);
	line-height: var(--e-global-typography-afab46b-line-height);
	color: var(--e-global-color-74684ce);
	
	background: #B2BCCD;
}

.psg-step--active .psg-step-number,
.psg-step--completed .psg-step-number {
	background: var( --e-global-color-secondary );
}

.psg-step-label {
	font-family: var(--e-global-typography-d290980-font-family), Sans-serif;
	font-size: var(--e-global-typography-d290980-font-size);
	font-weight: var(--e-global-typography-d290980-font-weight);
	text-decoration: var(--e-global-typography-d290980-text-decoration);
	line-height: var(--e-global-typography-d290980-line-height);
	color: var(--e-global-color-text);
	
	display: block;
	white-space: normal; /* text was not breaking into lines */
}

.psg-steps::before {
	content: '';
	position: absolute;
	top: 15.5px;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: calc(100% - 80px);
	height: 1px;
	background: #B2BCCD;
	z-index: 0;
}

.psg-step {
	position: relative;
	z-index: 1;
}

.psg-step--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.psg-step-header {
	display: none;
}

.psg-template-label {
	font-family: var(--e-global-typography-a247177-font-family), Sans-serif;
	font-size: var(--e-global-typography-a247177-font-size);
	font-weight: var(--e-global-typography-a247177-font-weight);
	text-decoration: var(--e-global-typography-a247177-text-decoration);
	line-height: var(--e-global-typography-a247177-line-height);
	letter-spacing: var(--e-global-typography-a247177-letter-spacing);
	color: var(--e-global-color-text);
}

.psg-template-select select,
.psg-preview-select select {
	padding: 4px 6px;
	border: none;
	background: transparent;
	font-family: var(--e-global-typography-9421962-font-family), Sans-serif;
	font-size: var(--e-global-typography-9421962-font-size);
	font-weight: var(--e-global-typography-9421962-font-weight);
	text-decoration: var(--e-global-typography-9421962-text-decoration);
	line-height: var(--e-global-typography-9421962-line-height);
	color: var(--e-global-color-primary);
}
.psg-template-select,
.psg-preview-select {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	border: 1px solid var(--psg-primary);
	border-radius: 8px;
	padding: 4px 8px;
	max-width: 152px;
}

/* .psg-preview-select {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 2px solid #22c55e;
	border-radius: 8px;
	padding: 6px 10px;
	color: #22c55e;
	font-weight: 600;
	font-size: 14px;
}

.psg-preview-select select {
	border: none;
	background: transparent;
	color: #22c55e;
	font-weight: 600;
	font-size: 14px;
	padding: 0;
	appearance: none;
} */

.paystub-generator[data-current-step="1"] .psg-steps::after,
.paystub-generator[data-current-step="2"] .psg-steps::after,
.paystub-generator[data-current-step="3"] .psg-steps::after,
.paystub-generator[data-current-step="4"] .psg-steps::after,
.paystub-generator[data-current-step="5"] .psg-steps::after,
.paystub-generator[data-current-step="6"] .psg-steps::after{
	content: '';
	position: absolute;
	top: 15.5px;
	left: 40px;
	height: 1px;
	background: var(--e-global-color-secondary);
	z-index: 0;
}

.paystub-generator[data-current-step="1"] .psg-steps::after {
	width: 0%;
}

.paystub-generator[data-current-step="2"] .psg-steps::after {
	width: 17%;
}

.paystub-generator[data-current-step="3"] .psg-steps::after {
	width: 34%;
}

.paystub-generator[data-current-step="4"] .psg-steps::after {
	width: 51%;
}

.paystub-generator[data-current-step="5"] .psg-steps::after{
	width: 68%;
}
.paystub-generator[data-current-step="6"] .psg-steps::after {
	width: 85%;
}

.psg-body {
	display: grid;
	grid-template-columns: minmax(0, 640px) minmax(0, 360px);
	gap: 34px;
	justify-content: center;
	align-items: flex-start;
}

.paystub-generator[data-current-step="2"] .psg-body,
.paystub-generator[data-current-step="3"] .psg-body {
	grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
	gap: 28px;
}

.psg-generator-hero {
	text-align: center;
	margin: 0 auto 24px;
	max-width: 860px;
	padding: 0 12px;
}

.psg-generator-hero__headline {
	margin: 0 0 12px;
	font-size: clamp(1.25rem, 2.4vw, 1.85rem);
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
}

.psg-generator-hero__subline {
	margin: 0;
	font-size: 1.05rem;
	color: #475569;
}

.paystub-generator[data-current-step="2"] .psg-preview .psg-sidebar-preview-frame,
.paystub-generator[data-current-step="3"] .psg-preview .psg-sidebar-preview-frame {
	width: min(100%, 460px);
	height: 640px;
	min-height: 640px;
	cursor: zoom-in;
}

.paystub-generator[data-current-step="2"] .psg-sidebar-preview-frame .psg-template,
.paystub-generator[data-current-step="3"] .psg-sidebar-preview-frame .psg-template {
	transform: scale(0.54);
}

.psg-preview-lightbox .psg-modal__content {
	width: min(760px, 96vw);
	max-height: 90vh;
	overflow: auto;
}

.psg-preview-lightbox__frame {
	position: relative;
	min-height: 360px;
	max-height: calc(90vh - 120px);
	overflow: auto;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 12px;
}

.psg-preview-lightbox__frame .psg-template {
	transform: scale(0.88) !important;
	transform-origin: top left;
	width: 780px !important;
	position: relative !important;
	top: 0 !important;
}

.paystub-generator[data-current-step="1"] .psg-body {
	grid-template-columns: 1fr;
}

.paystub-generator[data-current-step="1"] .psg-preview {
	display: none;
}

.paystub-generator[data-current-step="4"] .psg-body,
.paystub-generator[data-current-step="5"] .psg-body,
.paystub-generator[data-current-step="6"] .psg-body {
	grid-template-columns: 1fr;
	justify-content: center;
}

.paystub-generator[data-current-step="4"] .psg-preview,
.paystub-generator[data-current-step="5"] .psg-preview,
.paystub-generator[data-current-step="6"] .psg-preview {
	display: none;
}

.psg-panel {
	display: none;
}

.psg-panel--active {
	display: block;
}

.paystub-generator [data-step="1"] {
	text-align: center;
}

.paystub-generator [data-step="1"] .psg-template-select {
	max-width: min(360px, 94vw);
}

.psg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.psg-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psg-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.psg-grid--compact {
	gap: 12px;
}

.psg-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: #131620;
}

.psg-field--full {
	grid-column: 1 / -1;
}

.psg-field span {
	font-family: var(--e-global-typography-d290980-font-family), Sans-serif;
	font-size: var(--e-global-typography-d290980-font-size);
	font-weight: var(--e-global-typography-d290980-font-weight);
	text-decoration: var(--e-global-typography-d290980-text-decoration);
	line-height: var(--e-global-typography-d290980-line-height);
	color: var(--e-global-color-text);
}

.psg-field input,
.psg-field select {
	padding: 10px 12px;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px;
	font-size: 14px;
	height: 44px;
	background: #f8fafc;
	font-weight: 600;
}

.psg-grid input.psg-field-error,
.psg-grid select.psg-field-error {
	border-color: #dc2626;
	background: #fef2f2;
}

.psg-error {
	background: #fee2e2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 8px 12px;
	margin-bottom: 12px;
	font-size: 13px;
}

.psg-field-message {
	color: #b91c1c;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

.psg-table {
	margin-top: 24px;
}

.psg-table-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 8px 0;
}

.psg-table--earnings .psg-table-row {
	grid-template-columns: repeat(6, minmax(0, 1fr)) 28px;
}

.psg-table--deductions .psg-table-row {
	grid-template-columns: repeat(4, minmax(0, 1fr)) 28px;
}

.psg-table--deductions .psg-table-row--summary {
	grid-template-columns: 1fr repeat(3, minmax(0, 1fr)) 28px;
}

.psg-table--deductions .psg-row-remove-placeholder {
	width: 28px;
	display: block;
}

.psg-table--deductions {
	margin-top: 16px;
}

.psg-table-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.psg-info-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var( --e-global-color-primary, var(--psg-primary) );
	color: var(--e-global-color-74684ce, #ffffff);
	font-size: 12px;
	font-weight: 600;
	cursor: help;
	position: relative;
	vertical-align: middle;
}

.psg-info-bubble:hover::after,
.psg-info-bubble:focus::after {
	content: attr(data-psg-tooltip);
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(100% + 8px);
	background: #1f2937;
	color: #fff;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	padding: 8px 10px;
	border-radius: 6px;
	white-space: normal;
	max-width: 240px;
	width: max-content;
	z-index: 100;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	pointer-events: none;
}

.psg-info-bubble--header {
	width: 16px;
	height: 16px;
	font-size: 10px;
	margin-left: 4px;
}

.psg-table-row--head {
	font-weight: 600;
}

.psg-table-body .psg-table-row {
	align-items: center;
}

body .psg-row-remove {
	height: 24px;
	width: 24px;
	text-align: center;
	border-radius: 50%;
	border: 0;
	padding: 0;
	font-size: 14px;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}

body .psg-row-remove:hover {
	background: var( --e-global-color-accent );
}

.psg-table-body .psg-table-row:first-child .psg-row-remove {
	display: none;
}

.psg-button {
	background: #e5e7eb;
/* 	border: 1px solid #d1d5db; */
	border: 0;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
}

.psg-button--primary {
	background: var( --e-global-color-primary );
	color: #fff;
	border-color: var( --e-global-color-primary );
}

.paystub-generator .psg-button--primary,
.paystub-generator .psg-use-template {
	color: #fff;
}

.paystub-generator .psg-button--primary:hover,
.paystub-generator .psg-use-template:hover {
	background: var( --e-global-color-secondary );
	border-color: var( --e-global-color-secondary );
	color: #fff;
}

.psg-button--dark {
	background: #0f172a !important;
	color: #fff;
	border-color: #0f172a;
}

.paystub-generator .psg-button--dark {
	color: #fff;
}

.paystub-generator .psg-button--dark:hover {
	background: #0b1220;
	border-color: #0b1220;
	color: #fff;
}

.psg-button--outline {
	background: #fff;
	color: var(--psg-primary);
	border-color: var(--psg-primary);
}

.psg-preview {
	padding-left: 0;
	position: sticky;
	top: 24px;
	align-self: flex-start;
}

.psg-preview-controls {
	display: none;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	font-weight: 600;
	color: #111827;
}

.paystub-generator[data-current-step="2"] .psg-preview-controls,
.paystub-generator[data-current-step="3"] .psg-preview-controls {
	display: flex;
}

.psg-preview-frame {
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 8px;
	overflow: hidden;
	width: 350px;
	height: 500px;
	min-height: 500px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	margin: 0 auto;
}

.psg-preview-frame .psg-preview-disclaimer {
	flex-shrink: 0;
	margin: -4px -4px 8px -4px;
	padding: 6px 12px;
	font-size: 11px;
}

.psg-preview-frame > [data-preview] {
	flex: 1;
	min-height: 0;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.psg-preview-frame .psg-template {
	transform: scale(0.425);
	transform-origin: top left;
	width: 780px;
	position: absolute;
	max-height: 1400px;
	top: 0;
}

.paystub-generator[data-current-step="5"] .psg-review-preview.psg-preview-frame {
/* 	width: 900px; */
	height: auto;
	min-height: 520px;
	padding: 16px;
}
.paystub-generator[data-current-step="5"] .psg-review-preview.psg-preview-frame.psg-preview-frame--long-blue,
.paystub-generator[data-current-step="5"] .psg-review-preview.psg-preview-frame.psg-preview-frame--adp-blue {
	height: 1100px;
}

.paystub-generator[data-current-step="5"] .psg-review-preview.psg-preview-frame.psg-preview-frame--adp-blue  .psg-template__logo img{
	height: 50px;
}
.paystub-generator[data-current-step="5"] .psg-review-preview.psg-preview-frame .psg-preview-disclaimer {
	margin: 0;
}

/* .paystub-generator[data-current-step="5"] .psg-review-preview.psg-preview-frame .psg-template {
	transform: scale(1);
	height: 100%;
} */

[data-preview].is-preview-loading {
	position: relative;
}

[data-preview].is-preview-loading > :not(.psg-preview-loader) {
	opacity: 0.35;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.psg-preview-loader {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	height: 3px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
}

.psg-preview-loader__bar {
	width: 40%;
	height: 100%;
	background: var( --e-global-color-primary );
	border-radius: 3px;
	animation: psg-loader-slide 1s ease-in-out infinite;
}

@keyframes psg-loader-slide {
	0% { transform: translateX(-100%); }
	50% { transform: translateX(150%); }
	100% { transform: translateX(350%); }
}

.psg-field-note {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #475569;
	margin: 12px 0;
}

.psg-field-note--row {
	margin-top: 8px;
	margin-bottom: 16px;
}

.psg-field-note-box {
	width: 140px;
	height: 36px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
}

.psg-template-grid {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: center;
}

.psg-template-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
	justify-content: center;
	flex-direction: row;
}

.psg-upload--button {
	border: none;
	background: var(--e-global-color-text);
	font-family: var(--e-global-typography-7021fa7-font-family), Sans-serif;
	font-size: var(--e-global-typography-7021fa7-font-size);
	font-weight: var(--e-global-typography-7021fa7-font-weight);
	text-decoration: var(--e-global-typography-7021fa7-text-decoration);
	line-height: var(--e-global-typography-7021fa7-line-height);
	color: var(--e-global-color-74684ce);
	padding: 12px 20px;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.paystub-generator [data-step="1"] .psg-upload--button {
	font-family: var(--e-global-typography-7021fa7-font-family), Sans-serif;
	font-size: var(--e-global-typography-7021fa7-font-size);
	font-weight: var(--e-global-typography-7021fa7-font-weight);
	text-decoration: var(--e-global-typography-7021fa7-text-decoration);
	line-height: var(--e-global-typography-7021fa7-line-height);
	color: var(--e-global-color-74684ce);
	
	margin-bottom: 40px;
}
.paystub-generator [data-step="1"] .psg-upload--button:after{
	content: '';
	height: 20px;
	width: 20px;
	background: url('../images/cloud-upload.svg')
}

.paystub-generator [data-step="1"] .psg-upload--button span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.psg-upload--button input {
	display: none;
}

.psg-upload-preview {
	display: none;
	align-items: center;
	gap: 10px;
	justify-content: center;
	margin: -8px auto 16px;
}

.psg-upload-preview.is-visible {
	display: flex;
}

.psg-upload-preview img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 1px solid #e5e7eb;
}

.psg-upload-preview--compact {
	margin: 0;
}

.psg-upload-clear {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: var(--e-global-color-text);
	color: var(--e-global-color-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.psg-upload-clear:before {
	content: 'X';
	font-size: 12px;
	line-height: 100%;
	color: white;
	position: absolute;
}

.psg-upload-clear:hover {
	background: var(--e-global-color-text);
	color: var(--e-global-color-text);
}

.psg-use-template {
	margin-top: 16px;
	padding: 10px 20px;
	border-radius: 12px;
	font-weight: 700;
	min-width: 180px;
	align-self: center;
}

.paystub-generator [data-step="1"] .psg-upload--button,
.paystub-generator [data-step="1"] .psg-use-template {
	margin-left: auto;
	margin-right: auto;
}

.paystub-generator [data-step="1"] .psg-use-template {
	display: block;
	text-align: center;
	margin-top: 40px;
}

.psg-template-carousel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
/* 	max-width: 950px; */
	max-width: 100vw;
	overflow: hidden;
	margin: 0 auto;
}

.psg-template-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	flex-wrap: nowrap;
	overflow: hidden;
}

.psg-carousel-nav {
	width: 48px;
	height: 48px;
	border-radius: 50% !important;
	border: 2px solid var(--psg-primary, #1e3a8a);
	background-color: var(--psg-primary, #1e3a8a) !important;
	color: #fff !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9;
	padding: 0 !important;
	font-size: 28px !important;
	font-weight: 600;
	line-height: 1;
}
.psg-carousel-nav:hover {
	background-color: #172554 !important;
	border-color: #172554;
	color: #fff !important;
}
.psg-carousel-prev {
	left: 0;
}
.psg-carousel-prev:focus,
.psg-carousel-next:focus {
	color: #fff;
}
.psg-carousel-prev:hover,
.psg-carousel-next:hover {
	color: #fff !important;
}

.psg-carousel-next {
	right: 0;
}

@media (min-width: 1040px) {
	.psg-template-carousel {
		overflow: visible;
	}
	.psg-carousel-prev {
		left: -16px;
	}

	.psg-carousel-next {
		right: -16px;
	}
	.paystub-generator[data-current-step="5"] .psg-review-preview.psg-preview-frame .psg-template {
		transform: scale(1);
		height: 100%;
	}
}

#steps .psg-template-card,
.paystub-generator .psg-template-card {
	border: 1px solid var(--e-global-color-d6a060c);
	padding: 0;
	cursor: pointer;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
/* 	width: 280px; */
	width: 29%;
/* 	height: 440px; */
	height: clamp(320px, calc(176px + 24vw), 440px);
	opacity: 0.8;
	overflow: hidden;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
}
#steps .psg-template-card--active,
.paystub-generator .psg-template-card--active {
	border: 3px solid var(--e-global-color-accent);
/* 	width: 360px; */
	width: 39%;
/* 	height: 550px; */
	height: clamp(420px, calc(264px + 26vw), 550px);
	opacity: 1;
}
.psg-template-card img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.psg-template-card__preview {
	width: 100%;
	flex: 1;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	position: relative;
}

.psg-template-card__label {
	padding: 8px 10px;
	font-family: var(--e-global-typography-7021fa7-font-family), Sans-serif;
	font-size: var(--e-global-typography-7021fa7-font-size);
	font-weight: var(--e-global-typography-7021fa7-font-weight);
	text-decoration: var(--e-global-typography-7021fa7-text-decoration);
	line-height: var(--e-global-typography-7021fa7-line-height);
	color: var(--e-global-color-text);
	text-align: center;
	background: var(--e-global-color-15b2cd2);
	border-top: 1px solid var(--e-global-color-7d4903d);
	white-space: normal;
	overflow: visible;
	word-break: break-word;
}

.psg-template-card__preview-inner {
	transform: scale(0.42);
	transform-origin: top center;
	width: 760px;
	min-height: 900px;
	pointer-events: none;
	margin: 0 auto;
}

.psg-template-card--active .psg-template-card__preview-inner {
	transform: scale(0.5);
}

.psg-template-card__preview-inner.is-loading,
.psg-template-card__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 12px;
	color: #64748b;
}

.psg-template-card__preview-inner .psg-template {
	margin: 0;
}

.psg-preview-frame::after,
.psg-template-card__preview::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 260px;
	height: 60px;
	background-image: url('../images/logo-paystub.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	opacity: 0.10;
	transform: translate(-50%, -50%) rotate(-30deg);
	pointer-events: none;
	z-index: 2;
}

.psg-template-card--active .psg-template-card__label {
	font-size: 14px;
	color: var(--psg-primary);
}


.psg-table-body input {
	width: 100%;
	padding: 6px;
	border: 1px solid #d1d5db;
	font-weight: 600;
}

.psg-table--earnings input[readonly],
.psg-table--deductions input[readonly] {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #64748b;
}

.psg-field--with-info span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.psg-earning-total-row input {
	font-weight: 600;
	background: #f1f5f9;
}

.psg-table--earnings [data-add-earning],
.psg-table--deductions [data-add-deduction] {
	margin-top: 12px;
	background: var( --e-global-color-primary );
	color: #fff;
	border-color: var( --e-global-color-primary );
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 10px;
}

.psg-step-title {
	font-family: var(--e-global-typography-a247177-font-family), Sans-serif;
	font-size: var(--e-global-typography-a247177-font-size);
	font-weight: var(--e-global-typography-a247177-font-weight);
	text-decoration: var(--e-global-typography-a247177-text-decoration);
	line-height: var(--e-global-typography-a247177-line-height);
	letter-spacing: var(--e-global-typography-a247177-letter-spacing);
	color: var(--e-global-color-text);
	
	margin-bottom: 16px;
}

.psg-panel-card {
	background: #fff;
	padding: 24px;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 8px 12px rgba(15, 23, 42, 0.05);
}

.psg-card {
	position: relative;
}

.psg-step-tag {
	display: none;
	position: absolute;
	left: -18px;
	top: 24px;
	background: #22c55e;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	transform: rotate(-45deg);
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
}

.psg-panel-card--tight {
	max-width: 625px;
	margin: 0 auto;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.psg-panel-card--wide {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.psg-panel-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
	gap: 8px;
/* 	max-width: 900px; */
	margin-left: auto;
	margin-right: auto;
}

.psg-panel-actions .psg-button {
	font-family: var(--e-global-typography-7021fa7-font-family), Sans-serif;
	font-size: var(--e-global-typography-7021fa7-font-size);
	font-weight: var(--e-global-typography-7021fa7-font-weight);
	text-decoration: var(--e-global-typography-7021fa7-text-decoration);
	line-height: var(--e-global-typography-7021fa7-line-height);
	color: var(--e-global-color-74684ce);
	
	
}

.psg-checkout-status {
	min-height: 18px;
	margin: 6px 0 8px;
	font-size: 12px;
	color: #ef4444;
	text-align: center;
}

.psg-checkout-pay.is-loading {
	opacity: 0.7;
	cursor: wait;
}

.psg-panel-actions .psg-button--primary::after {
	content: '→';
	margin-left: 10px;
	font-weight: 700;
}

.psg-panel-actions .psg-button--dark::before {
	content: '←';
	margin-right: 10px;
	font-weight: 700;
}

.psg-panel-actions--single {
	justify-content: flex-start;
}

.psg-paystub-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var( --e-global-color-primary );
	color: #fff;
	padding: 10px 16px;
	border-radius: 10px;
	margin: 16px 0 8px;
	font-weight: 600;
}

.psg-paystub-toggle {
	background: transparent;
	border: none;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.psg-paystub-accordions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 20px 0 0;
}

.psg-accordion-item {
	border-radius: 10px;
	overflow: hidden;
}

.psg-paystub-accordion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 1px solid var( --e-global-color-primary );
	color: var(--e-global-color-74684ce);
	background: var( --e-global-color-primary );
	text-align: left;
	text-wrap: auto;
	transition: background 0.15s ease, border-radius 0.15s ease;
}

.psg-paystub-accordion:hover {
	color: var(--e-global-color-74684ce);
	background: var( --e-global-color-primary );
}

.psg-paystub-accordion:focus {
	color: var(--e-global-color-74684ce);
	background: var( --e-global-color-primary );
}

.psg-paystub-accordion.is-expanded {
	background: var( --e-global-color-primary );
	border-radius: 10px 10px 0 0;
	color:#fff;
}

.psg-paystub-accordion__label {
	flex: 1;
	font-size: 14px;
	letter-spacing: 0.01em;
}

.psg-paystub-accordion__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	opacity: 0.95;
	white-space: nowrap;
}

.psg-accordion-chevron {
	transition: transform 0.2s ease;
}

.psg-paystub-accordion.is-expanded .psg-accordion-chevron {
	transform: rotate(180deg);
}

.psg-paystub-accordion-body {
	display: none;
	border-left: 2px solid var( --e-global-color-primary );
	border-right: 2px solid var( --e-global-color-primary );
	border-bottom: 2px solid var( --e-global-color-primary );
	border-radius: 0 0 10px 10px;
	padding: 16px;
	background: #fff;
	font-size: 12px;
}

.psg-paystub-accordion-body.is-visible {
	display: block;
}

.psg-paystub-accordion-body .psg-field span,
.psg-paystub-accordion-body .psg-field input,
.psg-paystub-accordion-body .psg-field select {
	font-size: 12px;
}

.psg-paystub-accordion-body .psg-table-row--head span,
.psg-paystub-accordion-body .psg-table-body input,
.psg-paystub-accordion-body .psg-table-body .psg-table-row,
.psg-paystub-accordion-body .psg-summary-row,
.psg-paystub-accordion-body .psg-field-note {
	font-size: 12px;
}

.psg-paystub-accordion-body .psg-table-body input {
	padding: 4px 6px;
}

.psg-paystub-accordion-body .psg-table-row {
	padding: 4px 0;
}

.psg-paystub-accordion-body .psg-summary-row {
	padding: 6px 12px;
}

.psg-paystub-accordion-body .psg-grid--three {
	gap: 12px;
}

.psg-paystub-accordion-body .psg-table {
	margin-top: 12px;
}

.psg-paystub-accordion-body .psg-table--deductions {
	margin-top: 12px;
}

.psg-paystub-accordion-body .psg-button {
	padding: 6px 14px;
	font-size: 12px;
}

.psg-paystub-accordion-body .psg-field-note {
	margin: 8px 0;
	font-size: 10px;
}

.psg-toggle-group {
	display: flex;
	gap: 8px;
}

.psg-toggle {
	background: transparent !important;
	font-size: 14px;
	font-weight: 500;
	color: var(--e-global-color-text) !important;
	cursor: pointer;
	padding: 5px !important;
	border: 0 !important;
	display: flex;
	align-items: center;
	gap: 5px;
}
/* .psg-toggle:hover {
	color: #c36 !important;
} */

.psg-toggle:before {
	content: '';
	height: 16px;
	width: 16px;
	background: url('/wp-content/uploads/2026/01/list-icon-bullet.svg') no-repeat center / cover;
	filter: brightness(0);
}
.psg-toggle.is-active:before {
	filter: brightness(1);
}
.psg-toggle.is-active {
	color: var(--e-global-color-secondary) !important;
}

.psg-summary-table {
	margin-top: 16px;
	border: 1px solid #e4e7f0;
	border-radius: 8px;
	overflow: hidden;
}

.psg-summary-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid #e4e7f0;
	font-size: 12px;
	font-weight: 600;
	color: #131620;
}

.psg-summary-row--head {
	background: #f8fafc;
	font-size: 12px;
	font-weight: 600;
}

.psg-summary-row:last-child {
	border-bottom: none;
}

.psg-summary-row--net {
	background: #f0f7ff;
	font-size: 14px;
	font-weight: 700;
	color: #1a56db;
}

.psg-table-row--summary {
	font-weight: 700;
	border-top: 2px solid #e5e7eb;
	padding-top: 10px;
	margin-top: 10px;
	padding: 10px 0 !important;
}

.psg-table-row--summary .psg-table-row__label {
	font-weight: 700;
}

.psg-review-controls {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
/* 	max-width: 625px; */
	margin-left: auto;
	margin-right: auto;
}

.psg-review-controls--row {
/* 	max-width: 900px; */
}

.psg-review-control {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-family: 'Manrope', 'Inter', sans-serif;
	font-weight: 600;
	width: 30%;
	width: 33%;
}

.psg-review-control--right {
	align-items: flex-end;
}

.psg-select-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--psg-primary);
	border-radius: 8px;
	padding: 8px 12px;
	background: #fff;
	color: var(--psg-primary);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.psg-select-button select {
	border: none;
	background: transparent;
	color: var(--psg-primary);
	font-weight: 600;
	font-size: 14px;
	padding: 0;
/* 	appearance: none; */
	min-width: 100px;
}

.psg-select-button--select {
	gap: 6px;
	max-width: 209px;
}

.psg-upload--ghost {
	border: 1px solid #e2e8f0;
	background: var(--e-global-color-text);
	color: var(--e-global-color-74684ce);
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.psg-upload--ghost:after {
	content: '';
	height: 20px;
	width: 20px;
	background: url('../images/cloud-upload.svg');
}

.psg-upload--ghost input {
	display: none;
}

.psg-advanced-lock {
	font-size: 12px;
	color: #64748b;
}

.psg-select-caret {
	display: none;
	width: 6px;
	height: 6px;
	border-right: 2px solid var(--psg-primary);
	border-bottom: 2px solid var(--psg-primary);
	transform: rotate(45deg);
}

.psg-review-preview {
/* 	max-width: 900px; */
	margin: 0 auto 16px;
}

.psg-review-preview.psg-preview-frame {
	width: 100%;
	min-height: 520px;
	height: auto;
}

.psg-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.psg-modal.is-open {
	display: flex;
}

.psg-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.psg-modal__content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	width: min(560px, 92vw);
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
	z-index: 1;
}

.psg-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.psg-modal__header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.psg-modal__close {
	border: none;
	background: var( --e-global-color-accent );
	color: white !important;
	padding: 4px 12px !important;
	border-radius: 6px;
}

.psg-modal__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.psg-modal__options .psg-modal__option {
	border: 0;
	background: var(--e-global-color-secondary);
	color: white;
	padding: 8px 14px;
	border-radius: 10px;
	cursor: pointer;
}

.psg-modal__options .psg-modal__option.is-active {
	background: #1e3a8a;
	color: #fff;
	border-color: #1e3a8a;
}

.psg-modal__form {
	border-top: 1px solid #e5e7eb;
	padding-top: 16px;
	display: none;
	gap: 12px;
}

.psg-modal__form.is-active {
	display: grid;
}

.psg-toggle-group--modal {
	background: #f8fafc;
	border-radius: 999px;
	padding: 4px;
	display: inline-flex;
	gap: 6px;
}

.psg-modal__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

.psg-checkout-minimal {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: stretch;
	max-width: 420px;
	margin: 0 auto;
}

.psg-checkout-summary {
	border: 1px solid #e4e7f0;
	border-radius: 12px;
	padding: 24px;
	background: #fff;
}

.psg-checkout-title {
	font-family: 'Manrope', 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 16px;
}

.psg-checkout-pay {
	width: 100%;
	background: var(--e-global-color-accent);
}

.psg-summary-lines {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #131620;
}

.psg-summary-line,
.psg-summary-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.psg-summary-divider {
	height: 1px;
	background: #e4e7f0;
}

.psg-summary-total {
	font-family: 'Manrope', 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 600;
}

.psg-hidden-field {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	height: 0;
	width: 0;
}

@media (max-width: 960px) {
	.psg-body {
		grid-template-columns: 1fr;
	}

	.paystub-generator[data-current-step="2"] .psg-body,
	.paystub-generator[data-current-step="3"] .psg-body {
		grid-template-columns: 1fr;
	}

	.paystub-generator[data-current-step="2"] .psg-preview .psg-sidebar-preview-frame,
	.paystub-generator[data-current-step="3"] .psg-preview .psg-sidebar-preview-frame {
		width: 100%;
		max-width: 460px;
		height: 520px;
		min-height: 520px;
		margin-left: auto;
		margin-right: auto;
	}

	.paystub-generator[data-current-step="2"] .psg-sidebar-preview-frame .psg-template,
	.paystub-generator[data-current-step="3"] .psg-sidebar-preview-frame .psg-template {
		transform: scale(0.44);
	}

	.psg-preview {
		border-left: none;
		padding-left: 0;
	}

	.psg-review-controls {
		flex-direction: column;
		align-items: flex-start;
	}

	.psg-review-control--right {
		align-items: flex-start;
	}
}

.psg-preview-disclaimer {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	color: #92400e;
	font-size: 12px;
	line-height: 1.4;
	padding: 8px 12px;
	margin-bottom: 8px;
	border-radius: 6px;
	text-align: center;
	position: relative;
	z-index: 5;
}

.psg-preview-disclaimer strong {
	font-weight: 700;
}

/* Admin tax table manager */
.psg-tax-admin .psg-tax-admin__filters {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin: 12px 0 16px;
}

.psg-tax-admin .psg-tax-admin__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 170px;
}

.psg-tax-admin .psg-tax-admin__field label {
	font-size: 12px;
	font-weight: 600;
	color: #1f2937;
}

.psg-tax-admin .psg-tax-admin__field input,
.psg-tax-admin .psg-tax-admin__field select {
	width: 100%;
}

.psg-tax-admin .psg-tax-admin__field--sm {
	min-width: 120px;
}

.psg-tax-admin .psg-tax-admin__field--inline {
	min-width: 200px;
}

.psg-tax-admin .psg-tax-admin__field--checkbox {
	min-width: 120px;
	justify-content: flex-end;
}

.psg-tax-admin .psg-tax-admin__field--checkbox input[type='checkbox'] {
	width: 18px;
	height: 18px;
}

.psg-tax-admin .psg-tax-admin__hint {
	margin: 8px 0 16px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	color: #334155;
	font-size: 12px;
}

.psg-tax-admin .psg-tax-admin__section {
	margin: 18px 0 22px;
}

.psg-tax-admin .psg-tax-admin__section h3 {
	margin-bottom: 10px;
}

.psg-tax-admin .psg-tax-admin__state-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.psg-tax-admin .psg-tax-admin__state-group {
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.psg-tax-admin .psg-tax-admin__state-group-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	cursor: pointer;
	background: #f8fafc;
	font-weight: 600;
}

.psg-tax-admin .psg-tax-admin__state-group-summary::-webkit-details-marker {
	display: none;
}

.psg-tax-admin .psg-tax-admin__state-group[open] .psg-tax-admin__state-group-summary {
	background: #eff6ff;
	border-bottom: 1px solid #dbe3ef;
}

.psg-tax-admin .psg-tax-admin__state-code {
	font-size: 13px;
	color: #0f172a;
	letter-spacing: 0.02em;
}

.psg-tax-admin .psg-tax-admin__state-name {
	font-weight: 500;
	color: #475569;
	letter-spacing: normal;
}

.psg-tax-admin .psg-tax-admin__state-count {
	font-size: 12px;
	color: #475569;
}

.psg-tax-admin .psg-tax-admin__state-group-content {
	padding: 12px;
}

.psg-tax-admin .psg-tax-admin__state-add {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed #dbe3ef;
}

.psg-tax-admin .psg-tax-admin__state-add h4 {
	margin: 0 0 10px;
	font-size: 13px;
}

.psg-tax-admin .psg-tax-admin__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.psg-tax-admin .psg-tax-admin__card {
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	padding: 12px;
	background: #ffffff;
}

.psg-tax-admin .psg-tax-admin__card.is-new {
	border-style: dashed;
	background: #fbfdff;
}

.psg-tax-admin .psg-tax-admin__card-head,
.psg-tax-admin .psg-tax-admin__card-body {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.psg-tax-admin .psg-tax-admin__card-body {
	margin-top: 10px;
}
.psg-paystub-accordion__toggle {
	text-indent: -99999px;
}

@media (max-width: 1200px) {
	.psg-tax-admin .psg-tax-admin__card-head,
	.psg-tax-admin .psg-tax-admin__card-body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.psg-step-label {
		display: none;
	}
	#steps .psg-step,
	.paystub-generator .psg-steps > .psg-step {
		width: auto;
		min-width: auto;
	}
	.psg-steps::before {
		width: 100%;
	}
	.paystub-generator .psg-steps::after{
		left: 10px !important
	}
	.paystub-generator[data-current-step="2"] .psg-steps::after {
		width: 19%;
	}
	.paystub-generator[data-current-step="3"] .psg-steps::after {
		width: 38%;
	}
	.paystub-generator[data-current-step="4"] .psg-steps::after {
		width: 57%;
	}
	.paystub-generator[data-current-step="5"] .psg-steps::after {
		width: 76%;
	}
	.paystub-generator[data-current-step="6"] .psg-steps::after {
		width: 95%;
	}
	#steps .psg-template-card--active,
	.paystub-generator .psg-template-card--active {
		width: 65%;
	}
	.psg-grid--two {
		grid-template-columns: 1fr;
	}
	.psg-panel-card {
		padding: 12px;
	}
	.psg-paystub-accordion-body {
		padding: 10px;
	}
	body .psg-row-remove {
		height: 16px;
		width: 16px;
	}
	.psg-panel--active {
		max-width: calc( 100vw - 48px);
	}
}
@media (max-width: 767px) {
	.psg-grid--three {
		grid-template-columns: 1fr;
	}
	.psg-paystub-accordion-body .psg-field-note {
		flex-direction: column;
		align-items: flex-start;
	}
	.psg-review-control {
		width: 100%;
	}
}

/* —— Step 4 Salary (PayStubHero parity) —— */
.psg-salary-top-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

.psg-paystub-count-notice {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #0f172a;
}

.psg-paystub-count-notice strong {
	color: var(--psg-primary, #1e3a8a);
}

.psg-salary-top-grid .psg-field--full {
	grid-column: 1 / -1;
}

.psg-field--stub-count {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.psg-field-note-box {
	width: 48px;
	height: 32px;
	border: 2px solid var(--psg-primary, #1e3a8a);
	border-radius: 8px;
	background: #fff;
	flex-shrink: 0;
}

.psg-salary-step .psg-input--editable,
.psg-paystub-accordion-body .psg-input--editable {
	border: 1px solid var(--psg-primary, #1e3a8a);
	background: #fff !important;
	color: #0f172a;
}

.psg-salary-step .psg-input--computed,
.psg-paystub-accordion-body .psg-input--computed,
.psg-salary-step .psg-table-row--auto input,
.psg-paystub-accordion-body .psg-table-row--auto input {
	background: #f1f5f9 !important;
	border-color: #e2e8f0 !important;
	color: #64748b !important;
	cursor: default;
}

.psg-cell-computed {
	display: block;
	padding: 6px 4px;
	font-size: 14px;
	color: #64748b;
	text-align: left;
}

.psg-table-row--highlight {
	/* box-shadow: inset 0 0 0 2px var(--psg-primary, #1e3a8a);
	border-radius: 6px; */
}

.psg-lock-icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 4px;
	vertical-align: middle;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e3a8a'%3E%3Cpath d='M12 17a2 2 0 100-4 2 2 0 000 4zm6-7V9a6 6 0 10-12 0v2H6v10h12V10h-2zm-2 0H8V9a4 4 0 118 0v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.paystub-generator .psg-earning-popover {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
}

.paystub-generator .psg-earning-popover.is-open {
	display: flex;
}

.paystub-generator .psg-earning-popover__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
}

.paystub-generator .psg-earning-popover__panel {
	position: relative;
	z-index: 1;
	width: min(480px, 100%);
	max-height: 85vh;
	overflow: auto;
	background: #fff;
	border-radius: 16px 16px 0 0;
	padding: 24px 24px 28px;
	box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.paystub-generator .psg-earning-popover__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.paystub-generator .psg-earning-popover__header h3 {
	margin: 0;
	padding-right: 8px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #0f172a;
}

.paystub-generator .psg-earning-popover__close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -4px -4px 0 0;
	padding: 0 !important;
	border: none;
	border-radius: 8px;
	background: #f1f5f9;
	color: #475569 !important;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.paystub-generator .psg-earning-popover__close:hover,
.paystub-generator .psg-earning-popover__close:focus-visible {
	background: #e2e8f0;
	color: #0f172a !important;
	outline: none;
}

.paystub-generator .psg-earning-popover__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 0;
}

.paystub-generator .psg-earning-popover__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #0f172a !important;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	box-shadow: none;
}

.paystub-generator .psg-earning-popover__chip:hover {
	border-color: var(--psg-primary, #1e3a8a);
	background: #f8fafc;
}

.paystub-generator .psg-earning-popover__chip:focus-visible {
	outline: 2px solid var(--psg-primary, #1e3a8a);
	outline-offset: 2px;
}

.paystub-generator .psg-earning-popover__chip.is-active {
	border-color: var(--psg-primary, #1e3a8a);
	background: var(--psg-primary, #1e3a8a);
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.paystub-generator .psg-earning-popover__form {
	display: none;
	gap: 16px;
	border-top: 1px solid #e5e7eb;
	margin-top: 20px;
	padding-top: 20px;
}

.paystub-generator .psg-earning-popover__form.is-active {
	display: grid;
}

.paystub-generator .psg-earning-popover__actions {
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 420px) {
	.paystub-generator .psg-earning-popover__options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.psg-modal--legacy {
	display: none !important;
}

.psg-table-row--summary .psg-cell-computed,
.psg-table-row--summary [data-gross-current],
.psg-table-row--summary [data-gross-prior],
.psg-table-row--summary [data-gross-ytd] {
	font-weight: 600;
	color: #0f172a;
}

@media (min-width: 768px) {
	.psg-table--earnings .psg-earning-mobile-wrap {
		display: contents;
	}

	.psg-table--earnings .psg-earning-mobile-label {
		display: none;
	}
}

/* Tablet: hide YTD columns (shown again at desktop) */
@media (max-width: 1199px) {
	.psg-table--earnings .psg-table-row--head span:nth-child(5),
	.psg-table--earnings .psg-table-row--head span:nth-child(6),
	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary) > .psg-col-prior,
	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary) > .psg-col-ytd,
	.psg-table--earnings .psg-table-row--summary > span:nth-child(5),
	.psg-table--earnings .psg-table-row--summary > span:nth-child(6) {
		display: none !important;
	}
}

/* Tablet */
@media (min-width: 768px) {
	.psg-salary-top-grid {
		grid-template-columns: 1fr 1fr minmax(240px, 32%);
		grid-template-rows: auto auto;
		align-items: start;
	}

	.psg-salary-top-grid .psg-field--employment {
		grid-column: 1;
		grid-row: 1;
	}

	.psg-salary-top-grid .psg-field--payment-type {
		grid-column: 2;
		grid-row: 1;
	}

	.psg-salary-top-grid .psg-field--tax-state {
		grid-column: 1;
		grid-row: 2;
	}

	.psg-salary-top-grid .psg-field--pay-frequency {
		grid-column: 2;
		grid-row: 2;
	}

	.psg-salary-top-grid .psg-field--stub-count {
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: stretch;
	}

	.paystub-generator .psg-earning-popover {
		align-items: center;
		padding: 24px;
	}

	.paystub-generator .psg-earning-popover__panel {
		border-radius: 16px;
		padding: 28px 32px 32px;
	}
}

/* Desktop */
@media (min-width: 1200px) {
	.psg-table--earnings .psg-table-row--head span:nth-child(5),
	.psg-table--earnings .psg-table-row:not(.psg-table-row--head) > .psg-col-prior,
	.psg-table--earnings .psg-table-row:not(.psg-table-row--head) > .psg-col-ytd,
	.psg-table--earnings .psg-table-row--summary > span:nth-child(5),
	.psg-table--earnings .psg-table-row--summary > span:nth-child(6) {
		display: block;
	}

	.psg-table--earnings .psg-table-row--head span:nth-child(4),
	.psg-table--earnings .psg-table-row:not(.psg-table-row--head) > .psg-col-total,
	.psg-table--earnings .psg-table-row--summary > span:nth-child(4) {
		display: block;
	}
}

/* Mobile Step 4 */
@media (max-width: 767px) {
	.paystub-generator[data-current-step="4"] .psg-summary-table {
		display: block !important;
		margin-top: 4px;
	}

	.paystub-generator[data-current-step="4"] .psg-summary-row--head {
		display: none !important;
	}

	.paystub-generator[data-current-step="4"] .psg-summary-row {
		grid-template-columns: 1fr auto;
	}

	.paystub-generator[data-current-step="4"] .psg-summary-row > span:nth-child(3),
	.paystub-generator[data-current-step="4"] .psg-summary-row > span:nth-child(4) {
		display: none !important;
	}

	.paystub-generator[data-current-step="4"] .psg-field-note {
		display: none !important;
	}

	.psg-mobile-section-title {
		display: block;
		margin: 0 0 12px;
		font-size: 1rem;
		font-weight: 700;
		color: #0f172a;
	}

	.paystub-generator[data-current-step="4"] .psg-deductions-block {
		display: block !important;
	}

	.paystub-generator[data-current-step="4"] .psg-deductions-block .psg-table-row--head,
	.paystub-generator[data-current-step="4"] .psg-deductions-block [data-deductions-total-row],
	.paystub-generator[data-current-step="4"] .psg-deductions-block .psg-table-row--auto {
		display: none !important;
	}

	/* Custom (user-added) deductions show as simple cards with an X to delete */
	.psg-table--deductions .psg-table-body .psg-table-row:not(.psg-table-row--auto) {
		display: grid;
		grid-template-columns: 1fr;
		gap: 6px;
		position: relative;
		padding: 12px 12px 12px 36px;
		margin-bottom: 10px;
		border: none;
		border-radius: 0;
		border-bottom: 1px solid #e5e7eb;
		background: transparent;
	}

	.psg-table--deductions .psg-table-body .psg-table-row:not(.psg-table-row--auto) > input[name="deductions_prior_ytd"],
	.psg-table--deductions .psg-table-body .psg-table-row:not(.psg-table-row--auto) > input[name="deductions_ytd"] {
		display: none !important;
	}

	.psg-table--deductions .psg-table-body .psg-table-row:not(.psg-table-row--auto) > input {
		width: 100%;
	}

	.psg-table--deductions .psg-table-body .psg-table-row:not(.psg-table-row--auto) > .psg-row-remove {
		display: flex !important;
		position: absolute;
		left: 4px;
		top: 14px;
		width: 22px;
		height: 22px;
		font-size: 13px;
		color: #94a3b8;
		background: transparent;
		border: 1px solid #cbd5e1;
		justify-content: center;
		line-height: 1;
	}

	.psg-table--earnings .psg-table-row--head {
		display: none !important;
	}

	.psg-table--earnings .psg-table-row--summary,
	.psg-table--earnings .psg-earning-total-row {
		display: none !important;
	}

	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary):not(.psg-table-row--head):not(.psg-earning-total-row) {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px 12px;
		position: relative;
		padding: 12px 12px 12px 36px;
		margin-bottom: 10px;
		border: none;
		border-radius: 0;
		border-bottom: 1px solid #e5e7eb;
		background: transparent;
	}

	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary) > input[name="earnings_description"] {
		display: none !important;
	}

	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary) > .psg-col-total,
	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary) > .psg-col-prior,
	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary) > .psg-col-ytd {
		display: none !important;
	}

	.psg-table--earnings .psg-earning-mobile-label {
		display: block;
		font-size: 11px;
		font-weight: 600;
		text-transform: uppercase;
		color: #64748b;
		margin-bottom: 4px;
	}

	.psg-table--earnings .psg-earning-mobile-wrap {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.psg-table--earnings .psg-earning-mobile-wrap input {
		width: 100%;
	}

	.psg-table--earnings .psg-earning-mobile-wrap.psg-col-rate,
	.psg-table--earnings .psg-earning-mobile-wrap.psg-col-hours {
		display: flex;
		flex-direction: column;
	}

	.psg-table--earnings .psg-table-row:not(.psg-table-row--summary) > .psg-row-remove {
		display: flex !important;
		position: absolute;
		left: 4px;
		top: 14px;
		width: 22px;
		height: 22px;
		font-size: 13px;
		color: #94a3b8;
		background: transparent;
		border: 1px solid #cbd5e1;
		justify-content: center;
		line-height: 1;
	}

	.psg-table-body .psg-table-row:first-child > .psg-row-remove {
		display: none !important;
	}

	.paystub-generator[data-current-step="4"] .psg-table-actions .psg-button,
	.paystub-generator[data-current-step="4"] .psg-table-actions .psg-button--outline {
		background: var( --e-global-color-primary, var(--psg-primary) );
		color: var(--e-global-color-74684ce, #ffffff);
		border: 1px solid var( --e-global-color-primary, var(--psg-primary) );
		font-size: 13px;
		padding: 8px 16px;
	}

	.paystub-generator[data-current-step="4"] .psg-table-actions .psg-info-bubble {
		background: var( --e-global-color-primary, var(--psg-primary) );
		color: var(--e-global-color-74684ce, #ffffff);
		border: 0;
	}

	.psg-hide-hours > .psg-col-hours {
		display: none !important;
	}

	.psg-hide-hours > .psg-col-rate {
		grid-column: 1 / -1;
	}

	.psg-row--rate-only > .psg-col-hours {
		display: none !important;
	}

	.psg-row--rate-only > .psg-col-rate {
		grid-column: 1 / -1;
	}

	.psg-mobile-section-title {
		display: block !important;
		margin-block-start: 20px !important;
        margin-block-end: 0;
	}

	/* Point 7: only the first paystub shows Add Earnings/Deductions and the
	   added earning rows. Additional stubs only edit their base pay fields. */
	.paystub-generator[data-current-step="4"].psg-stub-not-first .psg-table-actions,
	.paystub-generator[data-current-step="4"].psg-stub-not-first .psg-deductions-block,
	.paystub-generator[data-current-step="4"].psg-stub-not-first .psg-mobile-section-title--deductions,
	.paystub-generator[data-current-step="4"].psg-stub-not-first .psg-table--earnings .psg-table-body .psg-table-row[data-earning-type] {
		display: none !important;
	}
}

.psg-form button,
.psg-form button:hover,
.psg-form button:focus {
	color: var(--e-global-color-74684ce, #ffffff);
	background: var( --e-global-color-primary, var(--psg-primary) );
}

.psg-mobile-section-title {
	display: none;
}