
.amortization-wrapper {
  margin-top: 20px;
  overflow-x: auto;
}

.amortization-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.amortization-table th,
.amortization-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: right;
}

.amortization-table th {
  background-color: #f7f8fa;
  font-weight: 600;
}

.amortization-summary {
  margin-top: 15px;
  background: #f8f8f8;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.amortization-summary h4 {
  margin-top: 0;
  color: #111750;
}


.amortization-wrapper {
    margin-top: 25px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.amortization-table th {
    background: #2C2E8A;
    color: #fff;
    text-align: right;
    padding: 8px;
    position: sticky;
    top: 0;
}

.amortization-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.amortization-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


.inline-loan-calculator-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}

.inline-loan-calculator {
    background: var(--bg);
    color: var(--txt);
    padding: 20px;
    border-radius: 16px;
    width: var(--width);
    max-width: 95%;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: auto;
}

.inline-loan-calculator label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.inline-loan-calculator input[type=range],
.inline-loan-calculator input[type=number] {
    width: 100%;
    background: var(--field);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    box-sizing: border-box;
}

.inline-loan-calculator span {
    font-size: 0.9em;
    margin-top: 3px;
    color: #222;
    font-weight: 500;
}

.inline-loan-calculator button {
    background: var(--btn);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.2s ease;
}
.inline-loan-calculator button:hover {
    background: var(--btnhover);
}

.inline-loan-calculator .result {
    margin-top: 10px;
    background: var(--field);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
}
