/* ============================================================
   예상변제금 문의현황
============================================================ */
.repay-status-page {
  width: 100%;
  padding: 30px 0 50px;
  box-sizing: border-box;
}

.repay-status-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.repay-status-card {
  width: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
}

.repay-status-card-header {
  padding: 18px 22px;
  box-sizing: border-box;
  background: #fafbfc;
  border-bottom: 1px solid #e4e7ec;
}

.repay-status-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.repay-status-card-title strong {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.repay-status-card-title span {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.5;
}

.repay-status-card-body,
.board-list {
  width: 100%;
  box-sizing: border-box;
}

.board-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 목록 왼쪽 선택 바 */
.repay-status-item {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 17px 20px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  cursor: pointer;
  outline: none;
  transition:
    background-color .18s ease,
    color .18s ease;
}

.repay-status-item:last-child {
  border-bottom: 0;
}

.repay-status-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 3px;
  height: 0;
  background: #2684ff;
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height .18s ease;
  pointer-events: none;
}

.repay-status-item:hover {
  background: #f7faff;
}

.repay-status-item:hover::before,
.repay-status-item:focus-visible::before {
  height: 65%;
}

.repay-status-item:hover .repay-status-item-top {
  color: #1d4ed8;
}

.repay-status-item:hover .repay-status-item-bottom {
  color: #475569;
}

.repay-status-item:focus-visible {
  background: #f7faff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.board-item-top {
  margin-bottom: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: color .18s ease;
}

.board-item-bottom {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.repay-status-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}

.repay-confirm-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  color: #175cd3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
  background: #eff8ff;
  border: 1px solid #d1e9ff;
  border-radius: 5px;
}

.repay-status-loading {
  min-height: 180px;
  padding: 35px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  box-sizing: border-box;
  border: 3px solid #e5e7eb;
  border-top-color: #2684ff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 페이징 */
#repayPaging {
  width: 100%;
  margin: 0;
  padding: 20px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #eef0f3;
}

#repayPaging .page-number-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#repayPaging .page-btn,
#repayPaging .page-number-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
}

#repayPaging .page-btn {
  min-width: 38px;
}

#repayPaging .page-number-btn.active {
  color: #fff;
  font-weight: 700;
  background: #2684ff;
  border-color: #2684ff;
  cursor: default;
}

#repayPaging .page-btn:not(:disabled):hover,
#repayPaging .page-number-btn:not(.active):hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

#repayPaging .page-btn:disabled {
  color: #b8c0cc;
  background: #f8fafc;
  border-color: #e4e7ec;
  cursor: default;
}

/* 비밀번호 모달 */
.pw-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  z-index: 99999;
  transition: opacity .2s ease;
}

.pw-modal.show {
  display: flex !important;
  opacity: 1;
}

.pw-modal-box {
  width: 100%;
  max-width: 360px;
  padding: 26px 24px 22px;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

.pw-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.pw-desc {
  margin: 0 0 18px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.pw-input {
  width: 100%;
  height: 44px;
  margin: 0 0 16px;
  padding: 0 12px;
  box-sizing: border-box;
  color: #344054;
  font-size: 14px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  outline: none;
}

.pw-input:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, .08);
}

.pw-btn-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pw-btn {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.pw-ok {
  color: #fff;
  background: #2684ff;
}

.pw-ok:hover {
  background: #1d4ed8;
}

.pw-cancel {
  color: #475467;
  background: #f2f4f7;
}

.pw-cancel:hover {
  background: #e4e7ec;
}

/* 하단 CTA */
.repay-status-footer {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e4e7ec;
}

.repay-footer-home {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.repay-footer-home:hover {
  color: #2684ff;
}

.repay-footer-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.repay-footer-action span {
  color: #667085;
  font-size: 12px;
}

.repay-calc-cta {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: #2684ff;
  border: 1px solid #2684ff;
  border-radius: 8px;
  text-decoration: none;
}

.repay-calc-cta:hover {
  color: #fff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

@media (max-width: 768px) {
  .repay-status-page {
    padding: 24px 0 42px;
  }

  .repay-status-container {
    padding: 0 14px;
    box-sizing: border-box;
  }

  .repay-status-card-header {
    padding: 16px 18px;
  }

  .repay-status-card-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .repay-status-item {
    padding: 15px 18px;
  }

  .repay-status-item:active {
    background: #f7faff;
  }

  .repay-status-item:active::before {
    height: 65%;
  }

  .repay-status-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .repay-footer-action {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .repay-calc-cta {
    width: 100%;
    min-height: 44px;
  }

  .repay-footer-home {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .repay-status-page {
    padding: 20px 0 36px;
  }

  .repay-status-container {
    padding: 0;
  }

  .repay-status-card {
    border-radius: 10px;
  }

  .repay-status-card-header {
    padding: 14px 16px;
  }

  .repay-status-card-title strong {
    font-size: 13px;
  }

  .repay-status-card-title span {
    font-size: 11px;
  }

  .repay-status-item {
    padding: 14px 16px;
  }

  .board-item-top {
    font-size: 13px;
  }

  .board-item-bottom {
    gap: 3px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .repay-confirm-status {
    padding: 2px 6px;
    font-size: 10px;
  }

  #repayPaging {
    padding: 16px 8px;
    gap: 4px;
  }

  #repayPaging .page-number-group {
    gap: 4px;
  }

  #repayPaging .page-btn {
    min-width: 36px;
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  #repayPaging .page-number-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  .pw-modal {
    padding: 14px;
  }

  .pw-modal-box {
    padding: 22px 18px 18px;
  }

  .pw-title {
    font-size: 17px;
  }

  .pw-desc {
    font-size: 12px;
  }

  .pw-input {
    height: 42px;
    font-size: 13px;
  }
}

/* ============================================================
   회생·파산 문의현황 전용
   예상변제금 문의현황 공통 스타일 위에 필요한 부분만 추가
============================================================ */
#consultStatusList {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

#consultStatusList .consult-status-item {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 17px 20px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  cursor: pointer;
  outline: none;
  transition: background-color .18s ease, color .18s ease;
}

#consultStatusList .consult-status-item:last-child {
  border-bottom: 0;
}

#consultStatusList .consult-status-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 3px;
  height: 0;
  background: #2684ff;
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height .18s ease;
  pointer-events: none;
}

#consultStatusList .consult-status-item:hover,
#consultStatusList .consult-status-item:focus-visible {
  background: #f7faff;
}

#consultStatusList .consult-status-item:hover::before,
#consultStatusList .consult-status-item:focus-visible::before {
  height: 65%;
}

#consultStatusList .consult-status-item:hover .consult-content {
  color: #1d4ed8;
}

.consult-status-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.consult-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .18s ease;
}

.consult-status-item-bottom {
  display: flex;
  align-items: center;
  gap: 4px;
}

.consult-status-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}

.consult-status-loading,
.consult-status-empty {
  min-height: 180px;
  padding: 35px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
  list-style: none;
}

/* 예상변제금 문의현황과 동일한 페이징 */
#consultPaging {
  width: 100%;
  margin: 0;
  padding: 20px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #eef0f3;
}

#consultPaging .page-number-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#consultPaging .page-btn,
#consultPaging .page-number-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#consultPaging .page-btn {
  min-width: 38px;
}

#consultPaging .page-number-btn.active {
  color: #fff;
  font-weight: 700;
  background: #2684ff;
  border-color: #2684ff;
  cursor: default;
}

#consultPaging .page-btn:not(:disabled):hover,
#consultPaging .page-number-btn:not(.active):hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

#consultPaging .page-btn:disabled {
  color: #b8c0cc;
  background: #f8fafc;
  border-color: #e4e7ec;
  cursor: default;
}

@media (max-width: 768px) {
  #consultStatusList .consult-status-item {
    padding: 15px 18px;
  }

  #consultStatusList .consult-status-item:active {
    background: #f7faff;
  }

  #consultStatusList .consult-status-item:active::before {
    height: 65%;
  }
}

@media (max-width: 480px) {
  #consultStatusList .consult-status-item {
    padding: 14px 16px;
  }

  .consult-status-item-top {
    gap: 6px;
    font-size: 13px;
  }

  .consult-status-item-bottom {
    gap: 3px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
  }

  #consultPaging {
    padding: 16px 8px;
    gap: 4px;
  }

  #consultPaging .page-number-group {
    gap: 4px;
  }

  #consultPaging .page-btn {
    min-width: 36px;
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  #consultPaging .page-number-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }
}
