/* PAGE: 기부내역조회 */
.donation_list .sub_whiteBox_title {
  margin-bottom: 57px;
}

.donation_list .sub_whiteBox_title span {
  color: #d12121;
}

.donation_list form > div {
  font-size: 1.375rem;
}

.donation_list form .primary-bgc {
  color: #fff;
  width: 17rem;
  height: 61px;
  padding: 13px 0;
  border-radius: 30px 0px 0px 0px;
}

.donation_list .input_wrap {
  width: 100%;
  border-top: 2px solid #19408d;
}

.donation_list .input_wrap > div {
  border-bottom: 1px solid #e2e2e2;
  gap: 1rem;
}

.donation_list .input_wrap label {
  font-size: 1.375rem;
  background: #eff4f6;
  width: 17rem;
  height: 5rem;
}

.donation_list form input[type="text"],
input[type="password"],
textarea,
.phone_inputBox {
  font-size: 1.2rem;
  width: calc(100% - 17rem);
  height: 50px;
  border: 0;
  padding: 7px 16px;
  max-width: 39.325rem;
  /* background-color: #f8f8f8; */
}

.phone_inputBox {
  padding: 0;
  display: flex;
  gap: 1rem;
  background-color: #fff;
}

.donation_list form input[type="text"].phone_input {
  width: 100%;
}
.verification_wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: none !important;
}
.verification_wrapper .verification_row {
  border-bottom: 1px solid #e2e2e2;
  gap: 1rem;
}
.verification_wrapper .verification_notice {
  margin: 0;
  padding-right: 0.25rem;
  font-size: 1rem;
  text-align: right;
}
.verification_inputBox {
  flex-grow: 1;
  gap: 5px;
}

.donation_list form input[type="text"] #verification_code {
  flex-grow: 1;
}
.verification_inputBox #verification_code {
  width: 100%;
}

/* 버튼 활성화 스타일 추가 */
#contractBtn.active,
#transferBtn.active,
#manualBtn.active {
  color: #fff; /* 글자색도 변경 */
  border: none;
  background-color: #19408d; /* 원하는 색상으로 변경 */
}

.donation_list .input_wrap > div button {
  font-size: 1rem;
  height: 45px !important;
  border: 1px solid #666;
  padding: 10px 14px;
  background-color: #fff;
  border-radius: 6px;
  flex-shrink: 0;
  transition: ease 0.2s;
}

.donation_list .input_wrap > div > button:hover {
  color: #fff;
  background-color: #666;
}

.donation_list form .sky_btn {
  margin: 100px auto 0 auto;
}

.text-section h1 {
  margin-top: 20px;
}

.donation_list_detail .text-section .text-box p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  word-break: keep-all;
}

.donation_list_detail .text-section h1 {
  font-size: 2.125rem;
  font-weight: normal;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.donation_list_detail .total-section {
  height: 250px;
  padding: 30px;
  background-color: #f1f4f7;
}

.donation_list_detail .total-section .total-box {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.donation_list_detail .total-section .total-box .bolder {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.75rem;
  display: block;
  margin-bottom: 15px;
}

.donation_list_detail .total-section .total-box .total-between {
  display: flex;
  justify-content: space-between;
  /* margin-top: 20px; */
}

.donation_list_detail .total-section .total-box .progress {
  width: 654px;
  height: 25px;
  border: 5px solid #d8d9da;
  background-color: #333;
  border-radius: 15px;
}

.donation_list_detail .total-section .total-box span {
  color: #333359;
  font-size: 1.25rem;
  letter-spacing: 0px;
}

/* font-color */
.color_red {
  color: #fc6059 !important;
}

.detail-scroll-wrapper {
  width: 100%;
  overflow-x: scroll;
}
.donation_list_detail .detail-total-box {
  width: 1140px;
  margin-top: 2rem;
}

.donation_list_detail .detail-total {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.donation_list_detail .detail-section {
  width: 100%;
  border-collapse: collapse;
}

.donation_list_detail .detail-section thead {
  height: 50px;
  background-color: #f1f4f7;
  border-top: 2px solid #888;
  border-bottom: 1px solid #888;
}

.donation_list_detail .detail-section th {
  border-left: 1px solid #ddd;
  /* 셀 간 구분을 위한 테두리 */
}

.donation_list_detail .detail-section td {
  border-left: 1px solid #ddd;
  /* 셀 간 구분을 위한 테두리 */
  border-bottom: 1px solid #ddd;
}

/* 첫 번째 셀의 왼쪽과 위쪽에 선을 없애기 위한 스타일 */
.donation_list_detail .detail-section th:first-child,
.donation_list_detail .detail-section td:first-child {
  border-left: none;
}

.donation_list_detail .detail-section th:first-child {
  border-top: none;
}

.donation_list_detail .detail-section thead th {
  font-size: 0.9375rem;
  font-weight: normal;
  width: fit-content;
}
.donation_list_detail .detail-section thead th:nth-child(2) {
  width: 100px;
}
.donation_list_detail .detail-section thead th:nth-child(3) {
  width: 120px;
}
.donation_list_detail .detail-section td {
  text-align: center;
  height: 50px;
}

.donation_list__btns_section {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.donation_list__left {
  & > button {
    width: 100px;
  }
}
.donation_list__left,
.donation_list__right {
  display: flex;
  gap: 1rem; /* 버튼 사이 간격, 필요시 조정 */

  & > button.white_btn {
    font-size: 1rem;
  }
}

/* 이체 목록 */
.transfer-list-wrapper {
  width: 100%;
  overflow-x: scroll;
}

.transfer-list-wrapper .transfer-total-box {
  width: 1140px;
  margin-top: 2rem;
}

.transfer-list-wrapper .transfer-total {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.transfer-list-wrapper .transfer-list {
  width: 100%;
  border-collapse: collapse;
}
.transfer-list-wrapper .transfer-list thead {
  height: 50px;
  background-color: #f1f4f7;
  border-top: 2px solid #888;
  border-bottom: 1px solid #888;
}
.transfer-list-wrapper .transfer-list th {
  border-left: 1px solid #ddd;
  /* 셀 간 구분을 위한 테두리 */
}
.transfer-list-wrapper .transfer-list td {
  border-left: 1px solid #ddd;
  /* 셀 간 구분을 위한 테두리 */
  border-bottom: 1px solid #ddd;
}
/* 첫 번째 셀의 왼쪽과 위쪽에 선을 없애기 위한 스타일 */
.transfer-list-wrapper .transfer-list th:first-child,
.transfer-list-wrapper .transfer-list td:first-child {
  border-left: none;
}
.transfer-list-wrapper .transfer-list th:first-child {
  border-top: none;
}
.transfer-list-wrapper .transfer-list thead th {
  font-size: 0.9375rem;
  font-weight: normal;
  width: fit-content;
}
.transfer-list-wrapper .transfer-list thead th:nth-child(2) {
  width: 100px;
}
.transfer-list-wrapper .transfer-list thead th:nth-child(3) {
  width: 120px;
}
.transfer-list-wrapper .transfer-list td {
  text-align: center;
  height: 50px;
}

/* 수기 목록 */
.manual-list-wrapper {
  width: 100%;
  overflow-x: scroll;
}

.manual-list-wrapper .manual-total-box {
  width: 1140px;
  margin-top: 2rem;
}

.manual-list-wrapper .manual-total {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.manual-list-wrapper .manual-list {
  width: 100%;
  border-collapse: collapse;
}
.manual-list-wrapper .manual-list thead {
  height: 50px;
  background-color: #f1f4f7;
  border-top: 2px solid #888;
  border-bottom: 1px solid #888;
}
.manual-list-wrapper .manual-list th {
  border-left: 1px solid #ddd;
  /* 셀 간 구분을 위한 테두리 */
}
.manual-list-wrapper .manual-list td {
  border-left: 1px solid #ddd;
  /* 셀 간 구분을 위한 테두리 */
  border-bottom: 1px solid #ddd;
}
/* 첫 번째 셀의 왼쪽과 위쪽에 선을 없애기 위한 스타일 */
.manual-list-wrapper .manual-list th:first-child,
.manual-list-wrapper .manual-list td:first-child {
  border-left: none;
}
.manual-list-wrapper .manual-list th:first-child {
  border-top: none;
}
.manual-list-wrapper .manual-list thead th {
  font-size: 0.9375rem;
  font-weight: normal;
  width: fit-content;
}
.manual-list-wrapper .manual-list thead th:nth-child(2) {
  width: 100px;
}
.manual-list-wrapper .manual-list thead th:nth-child(3) {
  width: 120px;
}
.manual-list-wrapper .manual-list td {
  text-align: center;
  height: 50px;
}

/* 기부내역 조회 Modal */
/* 영수증 발급 모달 전용 스타일 */
/* 영수증 발급 모달 스타일 */
#receiptModal.modal {
  background: rgba(0, 0, 0, 0.4);
  width: 100vw;
  height: 100vh;
  display: none;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

#receiptModal .modal-content {
  background: #fff;
  width: 500px;
  margin: 0;
  padding: 32px 32px 24px 32px;
  display: flex;
  align-items: stretch;
  position: relative;
  border-radius: 10px;
  min-height: 320px;
  max-height: 90vh;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  overflow-y: auto;
}

#receiptModal .close-modal {
  color: #888;
  font-size: 22px;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
#receiptModal .close-modal:hover {
  color: #222;
}

/* 약정정보 수정 모달 스타일 */
#contractEditModal.modal {
  background: rgba(0, 0, 0, 0.4);
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

#contractEditModal .modal-content {
  background: #fff;
  width: 600px;
  margin: 0;
  padding: 32px 32px 24px 32px;
  display: flex;
  align-items: stretch;
  position: relative;
  border-radius: 10px;
  min-height: 400px;
  max-height: 90vh;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  overflow-y: auto;
  overflow-x: visible;
}

#contractEditModal .close-modal-contract {
  color: #888;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10001;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  background: transparent;
}

#contractEditModal .close-modal-contract:hover,
#contractEditModal .close-modal-contract:focus {
  color: #222;
  outline: none;
}

#contractEditModal h2 {
  color: #19408d;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

#contractEditModal .tbl_head01 {
  margin-top: 20px;
}

#contractEditModal .tbl_head01 table {
  width: 100%;
  border-collapse: collapse;
}

#contractEditModal .tbl_head01 th {
  text-align: left;
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  width: 150px;
  font-weight: 500;
  color: #333;
}

#contractEditModal .tbl_head01 td {
  padding: 12px;
  border: 1px solid #dee2e6;
}

#contractEditModal .tbl_head01 .frm_input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

#contractEditModal .tbl_head01 .frm_input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* 주소검색 버튼 - 다른 스타일과 충돌 방지 */
#contractEditModal #contract-search-address-btn {
  padding: 8px 15px;
  background-color: #19408d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  width: auto;
  min-width: auto;
  max-width: none;
}

#contractEditModal #contract-search-address-btn:hover {
  background-color: #0d2d5c;
}

/* 기타 버튼 */
#contractEditModal form button[type="button"]:not(#contract-search-address-btn):not(.contract-edit-cancel-btn) {
  padding: 8px 15px;
  background-color: #19408d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  width: auto;
  min-width: auto;
}

#contractEditModal form button[type="button"]:not(#contract-search-address-btn):not(.contract-edit-cancel-btn):hover {
  background-color: #0d2d5c;
}

/* 저장/취소 버튼 공통 스타일 */
#contractEditModal .contract-edit-save-btn,
#contractEditModal .contract-edit-cancel-btn,
#contractEditModal form button[type="submit"].contract-edit-save-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  width: 80px;
  height: 36px;
  min-width: 80px;
  max-width: 80px;
  box-sizing: border-box;
  line-height: 1.2;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
}

/* 저장 버튼 색상 */
#contractEditModal .contract-edit-save-btn,
#contractEditModal form button[type="submit"].contract-edit-save-btn {
  background-color: #19408d;
  color: #fff;
}

#contractEditModal .contract-edit-save-btn:hover,
#contractEditModal form button[type="submit"].contract-edit-save-btn:hover {
  background-color: #0d2d5c;
}

/* 취소 버튼 색상 */
#contractEditModal .contract-edit-cancel-btn {
  background-color: #dc3545;
  color: #fff;
}

#contractEditModal .contract-edit-cancel-btn:hover {
  background-color: #c82333;
}

/* 수정 버튼 작은 크기 */
.contract-edit-btn {
  padding: 3px 10px !important;
  font-size: 0.75rem !important;
  min-width: 50px !important;
  height: 28px !important;
  line-height: 1.2 !important;
}

#receiptModal h2 {
  color: #19408d;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 22px;
}

#receiptModal form > div {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

#receiptModal label {
  color: #333;
  font-size: 1rem;
  margin-bottom: 5px;
}

#receiptModal input[type="text"] {
  color: #333;
  font-size: 1rem;
  background: #f8f8f8;
  height: 40px;
  border: 1px solid #cacaca;
  padding: 0 10px;
  border-radius: 6px;
}

#receiptModal #modal-address[disabled] {
  color: #aaa;
  background: #f0f0f0;
}

#search-address-btn {
  color: #fff;
  font-size: 0.97rem;
  background: #19408d;
  height: 40px;
  border: none;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  align-self: flex-end;
}
#receiptModal #search-address-btn:hover {
  background: #009fe3;
}

#receiptModal form > div:nth-child(3) {
  margin-bottom: 8px;
}

#receiptModal button[type="submit"] {
  color: #fff;
  font-size: 1.07rem;
  font-weight: 600;
  background: #19408d;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 6px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
#receiptModal button[type="submit"]:hover {
  background: #009fe3;
}

/* 미디어쿼리 */
@media (max-width: 1024px) {
  .donation_list form .primary-bgc,
  .donation_list .input_wrap label {
    font-size: 1.3rem;
    width: 14rem;
  }
}

@media (max-width: 768px) {
  /* 기부내역조회 */
  .donation_list .input_wrap > div {
    border: 0;
    align-items: start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1.375rem;
  }

  .verification_wrapper .verification_row {
    flex-direction: column;
    align-items: flex-start;
    border: 0;
    margin-bottom: 0.25rem;
  }
  .verification_inputBox {
    width: 100%;
    gap: 5px;
  }

  .donation_list form input[type="text"] #verification_code {
    width: 100%;
    flex-grow: 1;
  }
  .verification_inputBox #verification_code {
    width: 100%;
  }

  .donation_list .input_wrap label {
    height: fit-content;
    padding: 10px 0;
    justify-content: flex-start;
    background-color: #fff;
  }

  .donation_list form input[type="text"],
  input[type="password"],
  textarea,
  .phone_inputBox {
    width: 100%;
    max-width: inherit;
  }

  .donation_list form .sky_btn {
    margin: 3rem auto 0 auto;
  }
}

@media (max-width: 480px) {
  .donation_list .sub_whiteBox_title {
    line-height: 1.8rem;
    margin-bottom: 2rem;
  }

  .donation_list form .primary-bgc {
    font-size: 1.125rem;
    width: 10rem;
    height: fit-content;
    border-radius: 20px 0 0 0;
  }

  .donation_list .input_wrap label {
    font-size: 1.125rem;
  }
  .donation_list .input_wrap input {
    font-size: 1rem;
  }
  .donation_list form input[type="text"],
  input[type="password"],
  textarea,
  .phone_inputBox {
    font-size: 1rem;
  }
  .donation_list_detail .text-section h1 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
  }
  .phone_inputBox {
    height: fit-content;
    /* flex-direction: column; */
  }

  .donation_list form input[type="text"].phone_input {
    font-size: 1rem;
    width: 100%;
  }
}

