/* ===== Mortgage calculation table ===== */

.mortgage_table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  text-align: center;
}

/* Table headers */
.mortgage_table th {
  background-color: #f2f4f8;
  border: 1px solid #bfc6d1;
  padding: 10px 8px;
  font-weight: 600;
  line-height: 1.25;
}

/* Table cells */
.mortgage_table td {
  border: 1px solid #c9ced6;
  padding: 8px 6px;
}

/* First column (period) */
.mortgage_table td:first-child,
.mortgage_table th:first-child {
  font-weight: 600;
  background-color: #fafbfc;
}

/* Zebra striping */
.mortgage_table tr:nth-child(even) td {
  background-color: #fbfcfe;
}

/* Row hover effect */
.mortgage_table tr:hover td {
  background-color: #eef3ff;
}

/* Total row styling (optional) */
.mortgage_table .mortgage_table_total td {
  font-weight: 700;
  background-color: #e8edf7;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .mortgage_table {
    font-size: 14px;
  }

  .mortgage_table th,
  .mortgage_table td {
    padding: 6px 4px;
  }
}
