@charset "UTF-8";

.loan-page {
  max-width: 1100px;
}

.loan-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #e9edf3;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.loan-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.loan-field-full {
  grid-column: 1 / -1;
}

.loan-field .utility-input {
  height: 52px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.loan-field .utility-input:focus {
  border-color: #9db8ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
  background: #fff;
  outline: none;
}

.loan-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.loan-quick-btn,
.loan-table-action-btn {
  border: 1px solid #d9e2ef;
  background: #f8fbff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loan-quick-btn:hover,
.loan-table-action-btn:hover {
  background: #eef5ff;
  border-color: #bfd2f6;
  transform: translateY(-1px);
}

.loan-btn-row {
  margin-top: 22px;
  margin-bottom: 26px;
}

.loan-btn-row .utility-btn {
  min-width: 132px;
}

.loan-result-box {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #e9edf3;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.loan-result-placeholder {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #6b7280;
}

.loan-result-placeholder-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f6fb;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.loan-result-placeholder p,
.loan-result-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
}

.loan-result-message {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.loan-summary-item {
  padding: 20px 18px;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.loan-summary-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.loan-summary-value {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  word-break: keep-all;
}

.loan-subinfo {
  margin-top: 18px;
  padding: 22px 20px;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  background: #ffffff;
}

.loan-subinfo-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.loan-subinfo-list {
  display: grid;
  gap: 10px;
}

.loan-subinfo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.loan-subinfo-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.loan-subinfo-label {
  font-size: 14px;
  color: #6b7280;
}

.loan-subinfo-value {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  text-align: right;
}

.loan-table-wrap {
  margin-top: 18px;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.loan-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fbff;
}

.loan-table-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loan-table-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.loan-table-caption {
  font-size: 13px;
  color: #64748b;
}

.loan-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loan-table-scroll {
  overflow-x: auto;
}

.loan-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.loan-table th,
.loan-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  font-size: 14px;
  color: #334155;
  white-space: nowrap;
}

.loan-table th {
  background: #fcfdff;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.loan-table th:first-child,
.loan-table td:first-child {
  text-align: center;
}

.loan-table tbody tr:hover {
  background: #fafcff;
}

.loan-table-note {
  padding: 14px 20px 18px;
  font-size: 13px;
  color: #64748b;
  background: #fff;
}

@media (max-width: 860px) {
  .loan-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .loan-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .loan-field-full {
    grid-column: auto;
  }

  .loan-summary {
    grid-template-columns: 1fr;
  }

  .loan-summary-value {
    font-size: 22px;
  }

  .loan-table-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .loan-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .loan-result-box {
    padding: 18px;
    border-radius: 16px;
  }

  .loan-btn-row .utility-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .loan-subinfo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .loan-subinfo-value {
    text-align: left;
  }

  .loan-quick-btn,
  .loan-table-action-btn {
    font-size: 12px;
    padding: 8px 12px;
  }
}