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

.payoff-results {
  margin-top: 28px;
}

.payoff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.payoff-card-item {
  background: #f9f4e7;
  border: 1px solid #e8d7a1;
  border-radius: 10px;
  padding: 14px;
}

.payoff-card-item h3 {
  margin: 0 0 8px;
  color: #0b1f33;
}

.payoff-card-item p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.payoff-card-item p span {
  font-weight: 600;
  color: #364c66;
}

.payoff-date {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}

.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-card,
  .payoff-results {
    padding: 16px;
  }
}
