/* ========= 共用 Modal 基本 ========= */
/*顯示modal/天標退下層*/
.fixed-top {
  z-index: 999 !important;
}
.modal-dialog {
  z-index: 1050 !important;
}
.modal-backdrop {
  z-index: 998 !important;
}
.modal {
  position: fixed;
  inset: 0;
  display: none; /* 預設隱藏 */
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.is-open {
  display: flex; /* 顯示時用 flex 置中 */
}

.btn-open-modal {
  cursor: pointer;
  color: #007bff;
  text-decoration: underline;
}
.btn-open-modal {
  padding: 8px 16px;
  background: #3498db;
  color: #fff;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
}

/* 半透明背景 */
.modal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
}

/* 內容樣式框 */
.modal_dialog {
  position: relative;
  max-width: 900px;
  width: 90%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1550;
  font-size: 14px;
}

/* 關閉按鈕 */
.modal_close {
  color: #fff;
  position: absolute;
  right: 0;
  top: -3.3rem;
  z-index: 99;
  font-size: 3rem;
  border: none;
  background: transparent;
  cursor: pointer;
}
.modal_close:hover,
.modal_close:active,
.modal_close:focus,
.modal_close:focus-visible {
  border: none;
  outline: none !important;
}

/* 顯示內容區塊 */
.modal_content {
  height: 75vh;
  overflow-y: scroll;
  margin-top: 1.4rem;
  line-height: 1.6;
  color: #555;
  padding: 1rem 2rem;
}

/* 上/下方的藍色色塊 */
.modal_top {
  position: relative;
  width: 100%;
  background: #83d1f7;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 10px 24px 12px;
  z-index: 1;
}
.modal_bottom {
  position: relative;
  width: 100%;
  background: #83d1f7;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 12px 24px 10px;
  z-index: 1;
}

/**************************************************/
/* 共用 標題設定*/
/**************************************************/
.modal h3 {
  color: #434343;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 1.5rem;
}
.modal h3 img {
  width: 20px;
}
.modal h3 b {
  padding-top: 2.5px;
}

/**************************************************/
/* 共用 頁籤設定*/
/**************************************************/
#modal_page ul {
  width: 90%;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  padding-inline-start: 0;
}
#modal_page ul li {
  display: flex;
  width: 35px;
  height: 35px;
}
#modal_page ul li a {
  font-size: 14px;
  font-weight: bold;
  color: #707070;
  width: 100%;
  height: 100%;
  padding: 7px;
  border-radius: 7px;
  text-align: center;
}
#modal_page ul li a:hover,
#modal_page ul li a:active,
#modal_page ul li a.active {
  color: #fff !important;
  background: #3498db !important;
}

/**************************************************/
/*各頁設定-
  發獎記錄-明細*/
/**************************************************/

/*********** 查詢區塊 ********/
.log_top {
  display: flex;
  flex-direction: column;
  width: 60%;
  margin: 0 auto;
  margin-bottom: 1rem;
}
.log_top_user {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
}
.log_top select {
  color: #949494;
  padding: 7px 10px;
  margin-bottom: 1rem;
  border: 1px solid #b7b7b7 !important;
  border-radius: 5px;
}
.log_top select:focus-visible,
.log_top select:focus {
  outline: auto 1px #83d1f7;
}
.log_top select.col-6 {
  flex: auto;
}

/*獎勵表格*/
.log_content {
  margin-top: 1rem;
}
.log_content table {
  width: 90%;
  margin: auto;
  border: 1px solid #b7b7b7;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.log_content tbody {
  width: 100%;
}
.log_content tbody td {
  font-size: 13.3px;
  border: 1px solid #b7b7b7;
  padding: 5px 7px;
  line-height: 20px;
  font-weight: 600;
  color: #707070;
}
.log_content tbody td.th {
  text-align: center;
  font-weight: 800;
}

/*表格-達成金額*/
.log_content tbody .pay {
  width: 8%;
  text-align: center;
}
/*表格-序號*/
.log_content tbody .number {
  width: 10%;
  text-align: center;
}
.log_content tbody .number .item-btn-copy {
  color: #fff;
  width: 30px !important;
  height: 20px !important;
  display: block;
  margin: auto;
}

/*表格-獎項*/
.log_content tbody .items {
  width: 20%;
}
/*表格-獎項 特別贈與*/
.log_content tbody .items span {
  display: block;
  font-weight: 600;
  color: peru;
}
/*表格-領取的伺服器/角色*/
.log_content tbody .uder_info {
  width: 8%;
  text-align: center;
}
/*表格-領取/發送日期時間*/
.log_content tbody .date_time {
  width: 5%;
  text-align: center;
}

/*表格-下方 查無資訊的文字/備註*/
.log_content p.small {
  width: 90%;
  margin: auto;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.log_content ul {
  list-style: none;
}
.log_content ul li::marker {
  margin-right: 2px !important;
}

/**************************************************/
/*各頁設定
  發獎記錄-序號驗證
  領取獎勵-序號驗證*/
/**************************************************/
#lognb_verify_Modal .modal_content,
#getnb_verify_Modal .modal_content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/*遊戲密碼-驗證*/
/* 容器位置 */
.getNB_modal {
  position: relative;
  display: flex;
  flex-direction: column;
}
.form-gameid {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 55%;
  margin: 1rem auto 0rem auto;
}

.form-password {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 55%;
  margin: 2rem auto 0rem auto;
}
.form-password h4 {
  justify-content: flex-start;
  width: 40%;
  margin-top: 0;
}

.form-password .input-group {
  position: relative;
}
.form-password .form-control {
  padding: 0.375rem 0.75rem;
}
.form-password .input-group > .form-password .form-control:not(:last-child) {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.form-password .input-group button {
  position: absolute;
  right: 0;
  z-index: 9999;
  border: none;
  width: 30px;
  height: 38px;
}
.form-password .input-group button:hover {
  color: #3498db;
  background-color: transparent !important;
}
.form-password .input-group button:focus-visible,
.form-password .input-group button:focus,
.form-password .input-group button:active,
.form-password .input-group button.active {
  background: transparent !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.getNB_modal ul {
  width: 55%;
  list-style-type: none;
  padding-inline-start: 0;
  margin: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/**************************************************/
/*各頁設定-
  領取獎勵-虛寶
  領取獎勵-序號*/
/**************************************************/
.get_modal .modal_content {
  display: grid;
  align-content: space-evenly;
  justify-content: center;
  justify-items: center;
  overflow: hidden;
}

.get_modal .modal_content h4 {
  color: #434343;
}

.get_modal .modal_content p {
  margin-bottom: 0;
}

.get_modal .modal_content a {
}

/**************************************************/
/*各頁設定-
  序號/虛寶頁共用-活動須知*/
/**************************************************/

/* ----------------------- 整個捲軸區域 ----------------------- */
.modal_content::-webkit-scrollbar {
  width: 3.5px; /* 捲軸寬度 */
}
/* 捲軸背景 */ /* 軌道底色 */
.modal_content::-webkit-scrollbar-track {
  background: #f0f0f0;
}
/* 捲軸滑塊 */ /* 滑塊顏色 */
.modal_content::-webkit-scrollbar-thumb {
  background: #c0c0c0;
}
/* 滑塊 hover 時 */
.modal_content::-webkit-scrollbar-thumb:hover {
  background: #9c9c9c;
}
/* ----------------------- 整個捲軸區域 ----------------------- */

#noticeModal .modal_content {
  overflow-y: scroll;
  padding: 0rem 2rem 1rem 1rem;
}

#noticeModal ul {
  list-style-type: none;
}

#noticeModal h6 {
  color: #333;
}

/* PM-欄位 */
.pm_block {
  height: 37vh;
  overflow-y: scroll;
}

.pm_block::-webkit-scrollbar {
  width: 8px; /* 捲軸寬度 */
}
.pm_block::-webkit-scrollbar-track {
  background: #f0f0f0; /* 捲軸背景 */ /* 軌道底色 */
  border-radius: 4px;
}
.pm_block::-webkit-scrollbar-thumb {
  background: #83d1f7; /* 捲軸滑塊 */ /* 滑塊顏色 */
  border-radius: 4px;
}
.pm_block::-webkit-scrollbar-thumb:hover {
  background: #3498db; /* 滑塊 hover 時 */
}

.pm_block .block_1,
.pm_block .block_2 {
  padding-inline-start: 40px;
}

.pm_block table {
  width: 95%;
  margin-bottom: 1rem;
}

.pm_block table td {
  border: 1px solid #b7b7b7;
  padding: 3px 7px;
}

.pm_block table td.pay {
  text-align: center;
  width: 13%;
}

.pm_block table ul {
  padding-inline-start: 0;
  margin-bottom: 0;
}

.pm_block .block_2 ul li {
  list-style: decimal;
}

/* WEB-欄位(網頁部) */
.web_block {
  margin-top: 1rem;
  font-size: 11.5px;
}
.web_block ul li {
  list-style: inside;
}

/*同意規約勾選區*/
.agree-block {
  padding-inline-start: 40px;
  margin-top: 0.5rem;
  font-size: 14px;
  color: #707070;
}

.agree-label {
  display: flex;
  align-items: center;
  gap: 0px;
}

.agree-label input[type='checkbox'] {
  transform: scale(1.1);
}

/* .agree-error {
  margin-top: 4px;
  font-size: 13px;
  color: #ff6262;
  display: none; 
} */

.agree-error.show {
  display: block;
}

.agree-block button {
  display: block;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  /*活動須知*/
  .pm_block {
    height: 43vh;
  }
  .agree-label {
    margin-bottom: 1rem;
  }

  /*領獎-modal*/
  .get_modal .modal_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .get_modal .modal_content h1 {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .get_modal .modal_content p {
    margin-top: 1rem;
  }
  .form-gameid,
  .form-password,
  .getNB_modal ul {
    width: 80%;
  }
  .form-password h4 {
    width: 35%;
  }
}

@media (max-width: 769px) {
  .modal_close {
    top: -3.5rem;
  }
}

@media (max-width: 576px) {
  .modal_content {
    margin-top: 1rem;
    height: 65vh;
    padding: 1rem 1.5rem;
  }

  /*領取序號系列*/
  .form-gameid,
  .form-password,
  .getNB_modal ul {
    width: 100%;
  }
  .form-password {
    align-items: center;
  }
  .form-password .form-control {
    font-size: 12.5px;
  }
  .get_modal h4 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form-gameid h4,
  .form-password h4 {
    font-size: 14px !important;
  }

  .get_modal .modal_content p {
    text-align: justify !important;
    margin-top: 0.5rem;
  }

  /*活動須知*/
  #noticeModal .modal_content {
    padding: 0rem 1rem 1rem 1rem;
  }
  #noticeModal ul,
  .pm_block .block_1,
  .pm_block .block_2,
  #noticeModal .agree-block {
    padding-inline-start: 10px;
  }
  .pm_block .block_1 table td ul,
  .pm_block .block_2 table td ul {
    padding-inline-start: 0 !important;
  }

  /*發獎記錄系列*/
  .log_top {
    width: 100%;
  }
  .log_top select,
  .log_top select option {
    font-size: 14px;
  }

  .log_top_user {
    flex-direction: column;
    gap: 0;
  }
  .log_top_user select {
    max-width: 100%;
  }

  .log_content table {
    margin: 0;
    width: 100%;
  }
  .log_content table td {
    font-size: 12px;
  }
  .log_content table td.date_time {
    width: 10%;
    word-break: break-word;
  }
  .log_content table td br {
    display: none;
  }

  /*表格-下方 查無資訊的文字/備註*/
  .log_content ul {
    padding-inline-start: 0;
  }

  #modal_page {
    margin-top: 1rem;
  }
}
