/* Calculatoare de credit (rată) — stil consistent cu celelalte calculatoare. */
.ccr-calc {
	max-width: 640px;
	background: #fff;
	border: 1px solid #d8e1ec;
	border-left: 4px solid #1a6e37;
	border-radius: 10px;
	padding: 1.4rem 1.5rem;
	margin: 1.2rem 0;
}
.ccr-sub { margin: 0 0 1.1rem; color: #33424f; }
.ccr-form { margin: 0; }

.ccr-field { border: 0; margin: 0 0 1.1rem; padding: 0; }
.ccr-field > label,
.ccr-field legend { display: block; font-weight: 600; margin-bottom: .45rem; color: #1d2327; }

.ccr-field input[type="number"],
.ccr-field select {
	width: 100%;
	box-sizing: border-box;
	font-size: 1.1rem;
	padding: .6rem .7rem;
	border: 1px solid #b9c4d0;
	border-radius: 6px;
}
.ccr-field--inline { display: flex; gap: 1rem; }
.ccr-field--inline > div:first-child { flex: 1 1 auto; }
.ccr-field--inline > div:last-child { flex: 0 0 9rem; }
.ccr-help { color: #50575e; font-size: .9rem; margin: .35rem 0 0; }

.ccr-actions { margin: .4rem 0 1.2rem; }
.ccr-btn {
	background: #1a6e37; color: #fff; border: 0; border-radius: 6px;
	font-size: 1.05rem; font-weight: 700; padding: .7rem 1.4rem; cursor: pointer;
}
.ccr-btn:hover { background: #14572b; }

.ccr-calc input:focus-visible,
.ccr-calc select:focus-visible,
.ccr-btn:focus-visible { outline: 3px solid #0d4f93; outline-offset: 2px; }

.ccr-result { border-top: 1px solid #e1e8f0; padding-top: 1rem; }
.ccr-result-title { font-size: 1.1rem; margin: 0 0 .6rem; color: #1d2327; }
.ccr-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ccr-metric {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 1rem; padding: .5rem .7rem; border-radius: 6px; background: #f6f8fb;
}
.ccr-metric[hidden] { display: none; }
.ccr-metric-label { color: #33424f; }
.ccr-metric-value { font-weight: 700; font-size: 1.15rem; color: #0d3a6b; white-space: nowrap; }
.ccr-metric--total { background: #eaf4ec; }
.ccr-metric--total .ccr-metric-value { color: #1a6e37; font-size: 1.4rem; }

/* Accesibilitate: text doar pentru cititorul de ecran. */
.ccr-sr-only {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Grafic de rambursare. */
.ccr-amort { margin-top: 1.4rem; }
.ccr-amort h3 { font-size: 1.1rem; margin: 0 0 .6rem; }
.ccr-amort-nav { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.ccr-amort-period { color: #33424f; font-weight: 600; }
.ccr-btn--sec { background: #e7eef7; color: #0d3a6b; padding: .5rem 1rem; font-size: .95rem; }
.ccr-btn--sec:hover { background: #d2e0f0; }
.ccr-btn--sec:disabled { opacity: .45; cursor: not-allowed; }

.ccr-table-scroll { overflow-x: auto; border: 1px solid #e1e8f0; border-radius: 8px; }
.ccr-amort-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px; }
.ccr-amort-table th, .ccr-amort-table td { padding: .5rem .7rem; text-align: right; border-bottom: 1px solid #eef2f7; }
.ccr-amort-table th:first-child, .ccr-amort-table td:first-child { text-align: left; }
.ccr-amort-table thead th { background: #f6f8fb; color: #1d2327; position: sticky; top: 0; }
.ccr-amort-table tbody tr:nth-child(odd) { background: #fbfcfe; }

.ccr-note { color: #50575e; font-size: .88rem; margin: 1rem 0 0; }

@media (max-width: 480px) {
	.ccr-metric { flex-direction: column; align-items: flex-start; gap: .15rem; }
	.ccr-field--inline { flex-direction: column; gap: 1.1rem; }
}
