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

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

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

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

.nhic-input-prefix { display: flex; align-items: center; border: 1px solid var(--nhic-border); border-radius: 4px; background: #fff; }
.nhic-input-prefix span { color: #555; padding-left: 11px; }
.nhic-input-prefix input { border: 0; box-shadow: none; }
.nhic-split { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.nhic-error { color: #a51d1d; font-size: 14px; font-weight: 600; min-height: 20px; }
.nhic-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

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

.nhic-button-primary { background: var(--nhic-green); border-color: var(--nhic-green); color: #fff; }
.nhic-button-primary:hover, .nhic-button-primary:focus { background: #265e2b; }
.nhic-button-secondary { background: #f2f2f2; color: #333; }
.nhic-result-banner { background: var(--nhic-green); border-radius: 4px; color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 10px; padding: 12px; }
.nhic-table-wrap { overflow-x: auto; width: 100%; }
.nhic-calculator table { border-collapse: collapse; font-size: 14px; margin: 0; width: 100%; }
.nhic-calculator th { background: var(--nhic-blue); color: #fff; font-weight: 700; text-align: right; }
.nhic-calculator th:first-child, .nhic-calculator td:first-child { text-align: left; }
.nhic-calculator th, .nhic-calculator td { border: 1px solid #dfe2e5; padding: 10px; text-align: right; }
.nhic-calculator tbody tr:nth-child(even) { background: var(--nhic-soft); }
.nhic-summary-table td:last-child { font-weight: 600; }
.nhic-breakdown { border: 1px solid var(--nhic-border); border-radius: 4px; display: grid; gap: 10px; margin-top: 14px; padding: 15px; }
.nhic-breakdown > div { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; }
.nhic-dot { border-radius: 50%; display: block; height: 11px; width: 11px; }
.nhic-dot-deposits { background: var(--nhic-blue); }
.nhic-dot-interest { background: #d88c2f; }
.nhic-schedule { margin-top: 40px; }
.nhic-schedule h2 { font-size: 27px; margin: 0 0 12px; }

@media (max-width: 767px) {
	.nhic-grid { grid-template-columns: 1fr; }
	.nhic-results-panel { margin-top: 12px; }
}

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

