/* Standard Classic Longform – matches reference design */
.psg-template--long-blue {
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	color: #262626;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 20px;
}

/* Header: company left, date right */
.psg-template--long-blue .psg-template__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.psg-template--long-blue .psg-template__company-name {
	font-size: 24px;
	font-weight: 700;
}

.psg-template--long-blue .psg-template__company-line {
	font-size: 12px;
	line-height: 1.4;
}

.psg-template--long-blue .psg-template__date {
	font-size: 14px;
}

/* Payment band: single light blue bar, amount in words left + amount right inside */
.psg-template--long-blue .psg-template__check {
	margin-bottom: 16px;
}

.psg-template--long-blue .psg-template__check-amount-bar {
	background: #D8E3F7;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.psg-template--long-blue .psg-template__check-amount-text {
	font-size: 15px;
	font-weight: 600;
	flex: 1;
}

.psg-template--long-blue .psg-template__check-amount-value {
	font-size: 22px;
	font-weight: 700;
}

.psg-template--long-blue .psg-template__check-note {
	font-size: 12px;
    color: #262626;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}

.psg-template--long-blue .psg-template__check-payee {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 12px;
	font-size: 14px;
	margin-top: 12px;
}

.psg-template--long-blue .psg-template__check-label {
	color: #6b7280;
	font-size: 13px;
}

.psg-template--long-blue .psg-template__check-payee-name {
	font-weight: 700;
}

.psg-template--long-blue .psg-template__check-payee-address {
	font-size: 12px;
}

.psg-template--long-blue .psg-template__section-title {
	font-weight: 700;
	margin-top: 12px;
	margin-bottom: 8px;
	font-size: 13px;
}

.psg-template--long-blue .psg-template__company-block {
	font-size: 12px;
	line-height: 1.4;
	margin-bottom: 16px;
	width:70%;
	display: inline-block;
}

.psg-template--long-blue .psg-template__statement-title {
	text-align: right;
    font-weight: 700;
    color: #264fab;
    font-size: 18px;
    width: 29%;
    display: inline-block;
    vertical-align: top;
}

/* Table headers – dark blue */
.psg-template--long-blue .psg-template__statement-bar,
.psg-template--long-blue .psg-template__bar {
	background: #264fab;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: left;
}

.psg-template--long-blue .psg-template__table {
	width: 100%;
	border-collapse: collapse;
}

.psg-template--long-blue .psg-template__table td,
.psg-template--long-blue .psg-template__table th {
	padding: 10px 12px;
	font-size: 11px;
	border: none;
	vertical-align: top;
	text-align: center;
}

.psg-template--long-blue .psg-template__table thead th {
	background: #264fab;
	color: #fff;
	text-transform: none;
	text-align: center;
}
.psg-template--long-blue .align-left{
	text-align: left !important;
}
.psg-template--long-blue .psg-template__table--statement {
	margin-bottom: 12px;
}

.psg-template--long-blue .psg-template__statement-row td {
	background: #fff;
}

.psg-template--long-blue .psg-template__table--longform {
	margin-top: 12px;
}

.psg-template--long-blue .psg-template__table--longform tr:not(.last-calculation-row) td{
	background-color: #fff;
	text-align: center;
}

.psg-template--long-blue .psg-template__table--longform tr:not(.last-calculation-row) td.psg-template__cell--muted {
	background: #F0F2F1;
	text-align: left;
}

/* Additional info – employee / SSN / dates table */
.psg-template--long-blue .additional-info {
	overflow: hidden;
}

.psg-template--long-blue .additional-info > div > div > div {
	vertical-align: middle;
}

/* Gross totals row – aligns with main-calculations columns */
.psg-template--long-blue .gross-totals {
	margin-top: 0;
	border-top: 1px solid #e5e7eb;
}

/* Main calculations – earnings/deductions column layout */
.psg-template--long-blue .main-calculations {
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	display: block;
}

.psg-template--long-blue .main-calculations::after {
	content: '';
	display: table;
	clear: both;
}

.psg-template--long-blue .main-calculations > div {
	box-sizing: border-box;
}

.psg-template--long-blue .main-calculations > div > div {
	padding: 0 0 5px 0;
    min-height: 24px;
    line-height: 1;
}

/* Gross totals – dark blue label + light gray value cells */
.psg-template--long-blue .psg-template__table--totals {
	margin-top: 12px;
}

.psg-template--long-blue .psg-template__totals-row td {
	padding: 8px 12px;
	font-size: 11px;
	border: none;
	text-align: center;
}

.psg-template--long-blue .psg-template__totals-label {
	background: #264fab;
	color: #fff;
	width: 18%;
	font-weight: 700;
}

.psg-template--long-blue .psg-template__totals-value {
	background: #D8E3F7;
	color: #262626;
	font-weight: 700;
	text-align: right;
}

/* Summary boxes – dark blue left / light gray right */
.psg-template--long-blue .psg-template__table--summary {
	margin-top: 10px;
	max-width: 300px;
	margin-left: auto;
	margin-block-end: 8px;
}
table.psg-template__table.psg-template__table--summary.summary-first{
	margin-top: 40px;
}
.psg-template--long-blue .psg-template__table--summary tr{
	margin: 10px 0;
}

.psg-template--long-blue .psg-template__summary-label {
	background: #264fab;
	color: #fff;
	padding: 8px 12px;
	text-align: center;
	font-weight: 700;
	font-size: 11px;
	width: 50%;
}

.psg-template--long-blue .psg-template__summary-value {
	background: #f3f3f3;
	color: #262626;
	padding: 8px 12px;
	text-align: center;
	font-weight: 700;
	font-size: 11px;
	background-color: #D8E3F7;
}
