.payoff-wrapper {
  max-width: 1050px;
  margin: 0 auto;
  padding: 36px 16px 80px;
}

.payoff-results {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #d8c7a0;
}

.payoff-results h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #10233c;
}

.payoff-results-intro {
  margin: 8px 0 0;
  max-width: 620px;
  color: #4b5d74;
  font-size: 0.95rem;
  line-height: 1.45;
}

.payoff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
}

.payoff-card-item {
  background: #fff;
  border: 1px solid #d8c7a0;
  border-radius: 12px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payoff-period {
  margin: 0;
  color: #10233c;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.payoff-meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.payoff-meta-row {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #ece3cf;
}

.payoff-meta-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.payoff-meta-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6c7d92;
}

.payoff-meta-value {
  margin: 0;
  color: #10233c;
  font-size: 1rem;
  font-weight: 700;
}

.payoff-amount {
  font-size: 1.4rem;
  line-height: 1.1;
}

.payoff-date {
  color: #24405f;
}

.payoff-table-wrap {
  margin-top: 18px;
}

.payoff-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d7b15f;
  border-radius: 10px;
  overflow: hidden;
}

.payoff-table th,
.payoff-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee0b5;
  text-align: left;
}

.payoff-table th {
  background: #fbf7ef;
  color: #0b1f33;
  font-weight: 700;
}

.payoff-table tfoot th {
  background: #f7f0de;
}

.payoff-wrapper .tt-table {
  table-layout: fixed;
}

.payoff-wrapper .tt-table th,
.payoff-wrapper .tt-table td {
  padding: 8px;
}

.payoff-wrapper .tt-table th {
  font-size: 13px;
}

.payoff-wrapper .tt-table th:nth-child(1),
.payoff-wrapper .tt-table td:nth-child(1) { width: 15%; }

.payoff-wrapper .tt-table th:nth-child(2),
.payoff-wrapper .tt-table td:nth-child(2) { width: 13%; }

.payoff-wrapper .tt-table th:nth-child(3),
.payoff-wrapper .tt-table td:nth-child(3) { width: 8%; }

.payoff-wrapper .tt-table th:nth-child(4),
.payoff-wrapper .tt-table td:nth-child(4) { width: 13%; }

.payoff-wrapper .tt-table th:nth-child(5),
.payoff-wrapper .tt-table td:nth-child(5) { width: 13%; }

.payoff-wrapper .tt-table th:nth-child(6),
.payoff-wrapper .tt-table td:nth-child(6) { width: 14%; }

.payoff-wrapper .tt-table th:nth-child(7),
.payoff-wrapper .tt-table td:nth-child(7) { width: 10%; }

.payoff-wrapper .tt-table th:nth-child(8),
.payoff-wrapper .tt-table td:nth-child(8) { width: 4%; }

.payoff-wrapper .tt-table .stacked-header {
  font-size: 13px;
}

.payoff-wrapper .tt-table td input {
  min-width: 0;
}

.payoff-wrapper .csed-cell input.csed {
  min-width: 0;
}

.payoff-wrapper .delete-col {
  text-align: center;
}

.payoff-wrapper .delete-col .delete-row {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #b9452a;
}

.payoff-notice {
  padding: 18px;
}

.payoff-notice .dp-lead {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.payoff-notice .dp-defs {
  margin: 8px 0 12px;
  margin-left: 0;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .payoff-cards {
    grid-template-columns: 1fr;
  }

  .payoff-card,
  .payoff-results {
    padding: 16px;
  }

  .payoff-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .payoff-amount {
    font-size: 1.8rem;
  }
}
