.nhlc-calculator {
	--nhlc-green: #2f7135;
	--nhlc-blue: #316b96;
	--nhlc-border: #d3d3d3;
	--nhlc-soft: #f4f5f7;
	--nhlc-text: #222;
	color: var(--nhlc-text);
	font-family: inherit;
	max-width: 1180px;
	margin: 0 auto;
}

.nhlc-calculator * {
	box-sizing: border-box;
}

.nhlc-intro {
	color: #6c6c6c;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 26px;
}

.nhlc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.nhlc-panel {
	min-width: 0;
}

.nhlc-field {
	margin-bottom: 13px;
}

.nhlc-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
}

.nhlc-calculator input,
.nhlc-calculator select {
	background: #fff;
	border: 1px solid var(--nhlc-border);
	border-radius: 4px;
	color: var(--nhlc-text);
	font-family: inherit;
	font-size: 15px;
	height: 40px;
	padding: 7px 10px;
	width: 100%;
}

.nhlc-calculator input:focus,
.nhlc-calculator select:focus {
	border-color: var(--nhlc-blue);
	box-shadow: 0 0 0 2px rgba(49, 107, 150, 0.16);
	outline: none;
}

.nhlc-input-prefix {
	display: flex;
	align-items: center;
	border: 1px solid var(--nhlc-border);
	border-radius: 4px;
	background: #fff;
}

.nhlc-input-prefix span {
	color: #555;
	padding-left: 11px;
}

.nhlc-input-prefix input {
	border: 0;
	box-shadow: none;
}

.nhlc-split,
.nhlc-date-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px;
	gap: 10px;
}

.nhlc-date-fields {
	grid-template-columns: 100px minmax(0, 1fr);
}

.nhlc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.nhlc-button {
	border: 1px solid #bdbdbd;
	border-radius: 4px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 18px;
}

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

.nhlc-button-primary:hover,
.nhlc-button-primary:focus {
	background: #265e2b;
}

.nhlc-button-secondary {
	background: #f2f2f2;
	color: #333;
}

.nhlc-error {
	color: #a51d1d;
	font-size: 14px;
	font-weight: 600;
	min-height: 20px;
}

.nhlc-result-banner {
	background: var(--nhlc-green);
	border-radius: 4px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 10px;
	padding: 12px;
}

.nhlc-table-wrap {
	overflow-x: auto;
	width: 100%;
}

.nhlc-calculator table {
	border-collapse: collapse;
	font-size: 14px;
	margin: 0;
	width: 100%;
}

.nhlc-calculator th {
	background: var(--nhlc-blue);
	color: #fff;
	font-weight: 700;
	text-align: right;
}

.nhlc-calculator th:first-child,
.nhlc-calculator td:first-child {
	text-align: left;
}

.nhlc-calculator th,
.nhlc-calculator td {
	border: 1px solid #dfe2e5;
	padding: 10px;
	text-align: right;
}

.nhlc-calculator tbody tr:nth-child(even) {
	background: var(--nhlc-soft);
}

.nhlc-summary-table td:last-child {
	font-weight: 600;
}

.nhlc-breakdown {
	border: 1px solid var(--nhlc-border);
	border-radius: 4px;
	display: grid;
	gap: 10px;
	margin-top: 14px;
	padding: 15px;
}

.nhlc-breakdown > div {
	display: grid;
	grid-template-columns: 14px 1fr auto;
	align-items: center;
	gap: 8px;
}

.nhlc-dot {
	border-radius: 50%;
	display: block;
	height: 11px;
	width: 11px;
}

.nhlc-dot-principal {
	background: var(--nhlc-blue);
}

.nhlc-dot-interest {
	background: #d88c2f;
}

.nhlc-schedule {
	margin-top: 40px;
}

.nhlc-schedule-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-bottom: 12px;
}

.nhlc-schedule-heading h2 {
	font-size: 27px;
	margin: 0;
}

.nhlc-tabs {
	display: flex;
	gap: 4px;
}

.nhlc-tabs button {
	background: #eee;
	border: 1px solid #ccc;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	padding: 8px 10px;
}

.nhlc-tabs button.is-active {
	background: var(--nhlc-blue);
	border-color: var(--nhlc-blue);
	color: #fff;
}

@media (max-width: 767px) {
	.nhlc-grid {
		grid-template-columns: 1fr;
	}

	.nhlc-results-panel {
		margin-top: 12px;
	}

	.nhlc-schedule-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.nhlc-tabs {
		width: 100%;
	}

	.nhlc-tabs button {
		flex: 1;
	}
}

@media print {
	body * {
		visibility: hidden;
	}

	.nhlc-calculator,
	.nhlc-calculator * {
		visibility: visible;
	}

	.nhlc-calculator {
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
	}

	.nhlc-input-panel,
	.nhlc-actions,
	.nhlc-tabs {
		display: none;
	}

	.nhlc-grid {
		display: block;
	}
}

