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

.nhalc-calculator * { box-sizing: border-box; }
.nhalc-intro { color: #6c6c6c; font-size: 18px; font-weight: 600; margin: 0 0 26px; }
.nhalc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.nhalc-panel { min-width: 0; }
.nhalc-field { margin-bottom: 13px; }
.nhalc-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }

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

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

.nhalc-input-prefix { display: flex; align-items: center; border: 1px solid var(--nhalc-border); border-radius: 4px; background: #fff; }
.nhalc-input-prefix span { color: #555; padding-left: 11px; }
.nhalc-input-prefix input { border: 0; box-shadow: none; }
.nhalc-split { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.nhalc-date-fields { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }

.nhalc-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 15px 0 8px; }
.nhalc-checkbox input { height: 16px; margin: 0; width: 16px; }
.nhalc-note { color: #666; font-size: 12px; line-height: 1.45; margin-bottom: 8px; }
.nhalc-error { color: #a51d1d; font-size: 14px; font-weight: 600; min-height: 20px; }
.nhalc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

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

.nhalc-button-primary { background: var(--nhalc-green); border-color: var(--nhalc-green); color: #fff; }
.nhalc-button-primary:hover, .nhalc-button-primary:focus { background: #265e2b; }
.nhalc-button-secondary { background: #f2f2f2; color: #333; }
.nhalc-result-banner { background: var(--nhalc-green); border-radius: 4px; color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 10px; padding: 12px; }
.nhalc-table-wrap { overflow-x: auto; width: 100%; }
.nhalc-calculator table { border-collapse: collapse; font-size: 14px; margin: 0; width: 100%; }
.nhalc-calculator th { background: var(--nhalc-blue); color: #fff; font-weight: 700; text-align: right; }
.nhalc-calculator th:first-child, .nhalc-calculator td:first-child { text-align: left; }
.nhalc-calculator th, .nhalc-calculator td { border: 1px solid #dfe2e5; padding: 10px; text-align: right; }
.nhalc-calculator tbody tr:nth-child(even) { background: var(--nhalc-soft); }
.nhalc-summary-table td:last-child { font-weight: 600; }

.nhalc-breakdown { border: 1px solid var(--nhalc-border); border-radius: 4px; display: grid; gap: 10px; margin-top: 14px; padding: 15px; }
.nhalc-breakdown > div { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; }
.nhalc-dot { border-radius: 50%; display: block; height: 11px; width: 11px; }
.nhalc-dot-principal { background: var(--nhalc-blue); }
.nhalc-dot-interest { background: #d88c2f; }
.nhalc-schedule { margin-top: 40px; }
.nhalc-schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; }
.nhalc-schedule-heading h2 { font-size: 27px; margin: 0; }
.nhalc-tabs { display: flex; gap: 4px; }
.nhalc-tabs button { background: #eee; border: 1px solid #ccc; border-radius: 3px; cursor: pointer; font-size: 13px; padding: 8px 10px; }
.nhalc-tabs button.is-active { background: var(--nhalc-blue); border-color: var(--nhalc-blue); color: #fff; }

@media (max-width: 767px) {
	.nhalc-grid { grid-template-columns: 1fr; }
	.nhalc-results-panel { margin-top: 12px; }
	.nhalc-schedule-heading { align-items: flex-start; flex-direction: column; }
	.nhalc-tabs { width: 100%; }
	.nhalc-tabs button { flex: 1; }
}

@media print {
	body * { visibility: hidden; }
	.nhalc-calculator, .nhalc-calculator * { visibility: visible; }
	.nhalc-calculator { left: 0; position: absolute; top: 0; width: 100%; }
	.nhalc-input-panel, .nhalc-actions, .nhalc-tabs { display: none; }
	.nhalc-grid { display: block; }
}

