@charset "UTF-8";
/* ===========================
   Background Utilities
   - 全站共用背景色工具
   =========================== */
.bg-primary {
  background-color: #285EE4;
  color: #fff;
}

.bg-primary-dark {
  background-color: #2E4A8F;
  color: #fff;
}

.bg_warning {
  border: 1px solid #E4B849;
  background-color: #E4B849;
}

.border-0 {
  border: 0 !important;
}

.border-top-0 {
  border-top: 0 !important;
}

.border-right-0 {
  border-right: 0 !important;
}

.border-bottom-0 {
  border-bottom: 0 !important;
}

.border-left-0 {
  border-left: 0 !important;
}

.border-right-divider {
  border-right: 1px solid #eee;
  padding-right: 20px;
}
@media (min-width: 992px) {
  .border-right-divider {
    border-right: 1px solid #eee;
    padding-right: 0;
  }
}
@media (max-width: 768px) {
  .border-right-divider {
    border-right: 0;
  }
}

.d-block {
  display: block !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-inline {
  display: inline !important;
}

.d-none {
  display: none !important;
}

/* ==============================
   通用圓角 Utilities
   - 可用於所有元件（卡片、圖片、表單、區塊…）
   - 命名方式 radius-* 避免與按鈕混淆
   ============================== */
.radius-0 {
  border-radius: 0 !important;
}

.radius-xs {
  border-radius: 4px !important;
}

.radius-sm {
  border-radius: 6px !important;
}

.radius-md {
  border-radius: 8px !important;
}

.radius-lg {
  border-radius: 12px !important;
}

.radius-xl {
  border-radius: 16px !important;
}

.radius-2xl {
  border-radius: 20px !important;
}

/* 膠囊（Pill） */
.radius-pill {
  border-radius: 9999px !important;
}

.rounded-full {
  border-radius: 999px !important;
}

/* 正圓（適用於正方形元素） */
.radius-full {
  border-radius: 50% !important;
}

/* 僅上方圓角 (Top-Left & Top-Right) */
.radius-t-xs {
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
}

.radius-t-md {
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.radius-t-xl {
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

.radius-t-2xl {
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}

.size-xs {
  width: 70px;
}

.size-sm {
  width: 100px;
}

.size-md {
  width: 160px;
}

.size-lg {
  width: 220px;
}

.size-xl {
  width: 311px;
}

.size-full {
  width: 100%;
}

@media (max-width: 1024px) {
  .size-sm {
    width: 72px;
  }
  .size-md {
    width: 140px;
  }
  .size-lg {
    width: 200px;
  }
  .size-xl {
    width: 280px;
  }
}
@media (max-width: 768px) {
  .size-sm {
    width: 64px;
  }
  .size-md {
    width: 120px;
  }
  .size-lg {
    width: 180px;
  }
  .size-xl {
    width: 240px;
  }
}
.p-0 {
  padding: 0 !important;
}

.p-4 {
  padding: 4px;
}

.p-8 {
  padding: 8px;
}

.p-16 {
  padding: 16px;
}

.p-24 {
  padding: 24px;
}

.m-0 {
  margin: 0 !important;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mr-5 {
  margin-right: 5px;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.t-0 {
  top: 0;
}

.r-0 {
  right: 0;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.gap-lg {
  gap: 24px;
}

.gap-5 {
  gap: 5px;
}

.gap-10 {
  gap: 10px;
}

.gap-25 {
  gap: 25px;
}

.d-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-direction-column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.justify-content-between {
  -webkit-box-pack: justify !important;
      -ms-flex-pack: justify !important;
          justify-content: space-between !important;
}

.justify-content-left {
  -webkit-box-pack: start !important;
      -ms-flex-pack: start !important;
          justify-content: start !important;
}

.justify-content-start {
  -webkit-box-pack: start !important;
      -ms-flex-pack: start !important;
          justify-content: start !important;
}

.justify-content-center {
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
}

.justify-content-right {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: end !important;
}

.justify-content-end {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: end !important;
}

.align-items-start {
  -webkit-box-align: start !important;
      -ms-flex-align: start !important;
          align-items: flex-start !important;
}

.align-items-center {
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
}

.ml-auto {
  margin-left: auto !important;
}

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

@media (min-width: 1024px) {
  .jc-desktop-start {
    -webkit-box-pack: start !important;
        -ms-flex-pack: start !important;
            justify-content: flex-start !important;
  }
}

@media (min-width: 1024px) {
  .jc-desktop-end {
    -webkit-box-pack: end !important;
        -ms-flex-pack: end !important;
            justify-content: flex-end !important;
  }
}

@media (min-width: 1024px) {
  .jc-desktop-center {
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
}

@media (min-width: 1024px) {
  .jc-desktop-between {
    -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
            justify-content: space-between !important;
  }
}

@media (min-width: 1024px) {
  .jc-desktop-around {
    -ms-flex-pack: distribute !important;
        justify-content: space-around !important;
  }
}

@media (min-width: 1024px) {
  .jc-desktop-evenly {
    -webkit-box-pack: space-evenly !important;
        -ms-flex-pack: space-evenly !important;
            justify-content: space-evenly !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .jc-tablet-start {
    -webkit-box-pack: start !important;
        -ms-flex-pack: start !important;
            justify-content: flex-start !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .jc-tablet-end {
    -webkit-box-pack: end !important;
        -ms-flex-pack: end !important;
            justify-content: flex-end !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .jc-tablet-center {
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .jc-tablet-between {
    -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
            justify-content: space-between !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .jc-tablet-around {
    -ms-flex-pack: distribute !important;
        justify-content: space-around !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .jc-tablet-evenly {
    -webkit-box-pack: space-evenly !important;
        -ms-flex-pack: space-evenly !important;
            justify-content: space-evenly !important;
  }
}

@media (max-width: 767px) {
  .jc-mobile-start {
    -webkit-box-pack: start !important;
        -ms-flex-pack: start !important;
            justify-content: flex-start !important;
  }
}

@media (max-width: 767px) {
  .jc-mobile-end {
    -webkit-box-pack: end !important;
        -ms-flex-pack: end !important;
            justify-content: flex-end !important;
  }
}

@media (max-width: 767px) {
  .jc-mobile-center {
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
}

@media (max-width: 767px) {
  .jc-mobile-between {
    -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
            justify-content: space-between !important;
  }
}

@media (max-width: 767px) {
  .jc-mobile-around {
    -ms-flex-pack: distribute !important;
        justify-content: space-around !important;
  }
}

@media (max-width: 767px) {
  .jc-mobile-evenly {
    -webkit-box-pack: space-evenly !important;
        -ms-flex-pack: space-evenly !important;
            justify-content: space-evenly !important;
  }
}

/* ----------------------------------------------------------
   RWD 按鈕排列方向（明確寫法）
   ---------------------------------------------------------- */
/* 桌機：橫向排列 */
@media (min-width: 1024px) {
  .flexdir-desktop-row {
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
            flex-direction: row !important;
  }
}

/* 桌機：縱向排列（比較少用） */
@media (min-width: 1024px) {
  .flexdir-desktop-column {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
  }
}

/* 平板：橫向排列 */
@media (min-width: 768px) and (max-width: 1023px) {
  .flexdir-tablet-row {
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
            flex-direction: row !important;
  }
}

/* 平板：縱向排列 */
@media (min-width: 768px) and (max-width: 1023px) {
  .flexdir-tablet-column {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
  }
}

/* 手機：橫向排列 */
@media (max-width: 767px) {
  .flexdir-mobile-row {
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
            flex-direction: row !important;
  }
}

/* 手機：縱向排列 */
@media (max-width: 767px) {
  .flexdir-mobile-column {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
  }
}

.w-35 {
  width: 35% !important;
}

.w-80 {
  width: 80% !important;
}

.w-100 {
  width: 100% !important;
}

.w-400 {
  width: 400px !important;
}

@media (max-width: 1024px) {
  .w-400 {
    width: 100%;
  }
}
.cursor-pointer {
  cursor: pointer;
}

#showDiv {
  position: fixed;
  z-index: 9999;
  display: none;
  max-width: 300px;
  padding: 8px 12px;
  line-height: 1.5;
  background: #fff;
  color: #2E4A8F;
  font-weight: bold;
  border: 2px solid #2E4A8F;
  border-radius: 8px;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  word-break: break-word;
}

button {
  cursor: pointer;
  font-family: noto sans tc, sans-serif;
}

.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 5px;
  padding: 4px 16px;
  font-weight: bold;
  border: none;
  line-height: 1.5;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
}
.btn .loading-icon {
  display: none;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
}
.btn.is-loading {
  pointer-events: none;
}
.btn.is-loading .btn-text,
.btn.is-loading .btn-icon {
  display: none;
}
.btn.is-loading .loading-icon {
  display: inline-block;
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.btn:disabled, .btn[disabled] {
  background-color: #C6C6C6;
  border: 1px solid #C6C6C6 !important;
  color: #999999;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  cursor: not-allowed;
}
.btn:disabled:hover, .btn[disabled]:hover {
  background-color: #C6C6C6 !important;
  border: 1px solid #C6C6C6 !important;
  color: #999999 !important;
  cursor: not-allowed !important;
}
.btn:disabled:not(.btn-disabled-light):hover, .btn[disabled]:not(.btn-disabled-light):hover {
  background-color: #C6C6C6 !important;
  color: #999999 !important;
  cursor: not-allowed !important;
}
.btn.btn-disabled-light:disabled, .btn.btn-disabled-light[disabled] {
  background-color: #C6C6C6;
  border-color: #C6C6C6;
  color: #999999;
  cursor: not-allowed !important;
}
.btn .svg-icon {
  min-width: 16px;
}
.btn .svg-icon path {
  fill: #285EE4;
  -webkit-transition: fill 0.3s;
  transition: fill 0.3s;
}
.btn .svg-icon.is-danger path {
  fill: #FF0000;
}
.btn:hover .svg-icon path {
  fill: #fff;
}
.btn:active .svg-icon path {
  fill: #fff;
}
.btn.size-xs {
  width: 60px;
}
.btn.size-sm {
  width: 120px;
}
.btn.size-md {
  width: 150px;
}
.btn.size-lg {
  width: 220px;
}
.btn.size-xl {
  width: 320px;
}
.btn.size-full {
  width: 100%;
}
.btn.text-xs {
  font-size: 14px;
}
.btn.text-sm {
  font-size: 16px;
}
.btn.text-md {
  font-size: 18px;
}
.btn.text-lg {
  font-size: 20px;
}
@media (max-width: 1600px) {
  .btn.size-sm {
    width: 110px;
  }
  .btn.size-md {
    width: 140px;
  }
  .btn.size-lg {
    width: 200px;
  }
  .btn.size-xl {
    width: 280px;
  }
  .btn.text-xs {
    font-size: 13px;
  }
  .btn.text-sm {
    font-size: 15px;
  }
  .btn.text-md {
    font-size: 16px;
  }
  .btn.text-lg {
    font-size: 18px;
  }
}
.btn {
  /* ============================================
  // RWD：大型筆電 / 平板橫向（max-width: 1024px）
  // ============================================ */
}
@media (max-width: 1024px) {
  .btn.size-sm {
    width: 80px;
  }
  .btn.size-md {
    width: 120px;
  }
  .btn.size-lg {
    width: 160px;
  }
  .btn.size-xl {
    width: 240px;
  }
  .btn.text-xs {
    font-size: 12px;
  }
  .btn.text-sm {
    font-size: 14px;
  }
  .btn.text-md {
    font-size: 15px;
  }
  .btn.text-lg {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .btn.size-sm {
    width: 72px;
  }
  .btn.size-md {
    width: 110px;
  }
  .btn.size-lg {
    width: 150px;
  }
  .btn.size-xl {
    width: 100%;
  }
  .btn.text-xs {
    font-size: 12px;
  }
  .btn.text-sm {
    font-size: 13px;
  }
  .btn.text-md {
    font-size: 14px;
  }
  .btn.text-lg {
    font-size: 16px;
  }
}

.btn_group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px;
}
.btn_group .group_title {
  font-size: 24px;
}
.btn_group.right {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}
.btn_group.left {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}
.btn_group.center {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.btn_group.vertical {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.btn-divider {
  position: relative;
}
.btn-divider::after {
  content: "";
  position: absolute;
  top: 25%;
  right: -15px;
  height: 50%;
  width: 2px;
  background-color: #d0d0d0;
}
@media (max-width: 768px) {
  .btn-divider::after {
    display: none;
  }
}

.btn_with_icon {
  background-color: transparent;
  border: 0;
}
.btn_with_icon:disabled {
  opacity: 0.3;
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
  cursor: not-allowed;
}

.btn_icon_close {
  background-color: transparent;
  border: 0;
}

.btn_simple {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: #000;
  font-weight: normal;
}

.button_with_help {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.button_with_help .help_icon {
  margin-left: 8px;
}
.button_with_help .i_info_p {
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  color: #285EE4;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.button_with_help .i_info_p::before {
  content: url(/static/v2/images/components/info/info_qm2_v1.svg);
  width: 17px;
  height: 17px;
  margin-right: 4px;
  cursor: pointer;
}
.button_with_help .i_info_p {
  margin-right: 8px;
}

.text_with_help {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.text_with_help .help_icon {
  margin-right: 8px;
}
.text_with_help .i_info_p {
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  color: #285EE4;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.text_with_help .i_info_p::before {
  content: url(/static/v2/images/components/info/info_qm2_v1.svg);
  width: 17px;
  height: 17px;
  margin-right: 4px;
  cursor: pointer;
}
.text_with_help .i_info_p {
  margin-right: 8px;
}

.icon_with_help {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.icon_with_help .i_info_p {
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  color: #285EE4;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.icon_with_help .i_info_p::before {
  content: url(/static/v2/images/components/info/info_qm2_v1.svg);
  width: 17px;
  height: 17px;
  margin-right: 4px;
  cursor: pointer;
}
.icon_with_help .i_info_p {
  margin-right: 8px;
}

.icon_button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 4px;
  color: #fff;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.11);
  -webkit-transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}
.icon_button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.icon_button:active {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid #fff;
}
.icon_button:focus {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid #fff;
}

.icon-left {
  margin-right: 5px;
}

.icon-right {
  margin-left: 5px;
}

.btn-square {
  border-radius: 4px !important;
}

.btn-rounded-sm {
  border-radius: 8px !important;
}

.btn-rounded-8 {
  border-radius: 8px;
}

.btn-rounded-12 {
  border-radius: 12px;
}

.btn-rounded-20 {
  border-radius: 20px;
}

.btn-normal {
  font-weight: normal !important;
}

.btn-flat {
  height: unset !important;
  padding: 2px 10px !important;
}

.btn-flat-0 {
  height: unset !important;
  padding: 0 15px !important;
}

@media (max-width: 480px) {
  .btn-flat {
    padding: 2px 10px;
  }
}
.switch_btn {
  position: relative;
  display: inline-block;
}
.switch_btn input {
  display: none;
}
.switch_btn input:checked + label {
  background: #285EE4;
}
.switch_btn input:checked + label .switch_dot {
  -webkit-transform: translateX(102px);
          transform: translateX(102px);
}
.switch_btn input:checked + label .switch_text::before {
  content: attr(data-on);
}
.switch_btn label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 130px;
  height: 30px;
  font-size: 12px;
  background-color: #c6c6c6;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  color: #fff;
  font-weight: 500;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
.switch_btn label .switch_text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.switch_btn label .switch_text::before {
  content: attr(data-off);
  white-space: nowrap;
}
.switch_btn label .switch_dot {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.switch_btn_sm {
  position: relative;
  display: inline-block;
}
.switch_btn_sm input {
  display: none;
}
.switch_btn_sm input:checked + label {
  background: #285EE4;
}
.switch_btn_sm input:checked + label .switch_dot {
  -webkit-transform: translateX(20px);
          transform: translateX(20px);
}
.switch_btn_sm input:checked + label .switch_text::before {
  content: attr(data-on);
}
.switch_btn_sm label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 44px;
  height: 24px;
  font-size: 11px;
  background-color: #c6c6c6;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
.switch_btn_sm label .switch_text::before {
  content: attr(data-off);
  white-space: nowrap;
  padding-left: 10px;
}
.switch_btn_sm label .switch_dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}
.switch_btn_sm.is-disabled {
  opacity: 0.9;
  cursor: not-allowed;
}
.switch_btn_sm.is-disabled label {
  cursor: not-allowed;
  background-color: #999999;
}
.switch_btn_sm.is-disabled input:checked + label {
  background-color: #DBDBDB;
}
.switch_btn_sm.is-disabled .switch_dot {
  background-color: #DBDBDB;
}

.btn-primary {
  background-color: #285ee4;
  border: 1px solid #285ee4;
  color: #fff;
}
.btn-primary:hover {
  background-color: #395CB3;
  border: 1px solid #395CB3;
  color: #fff;
}
.btn-primary:hover a {
  color: #fff;
}
.btn-primary:active {
  background-color: #2E4A8F;
  border: 1px solid #2E4A8F;
}

.btn-danger {
  background-color: #DF0F0F;
  border: 1px solid #DF0F0F;
  color: #fff;
}
.btn-danger:hover {
  background-color: #DF0F0F;
  border: 1px solid #DF0F0F;
  color: #fff;
}
.btn-danger:hover a {
  color: #fff;
}
.btn-danger:active {
  background-color: #2E4A8F;
  border: 1px solid #2E4A8F;
}

.btn-warning {
  background-color: #E4B849;
  border: 1px solid #E4B849;
  color: #fff;
}

.btn-gray {
  background-color: #ECECEC;
  border: 1px solid transparent;
  color: #999999;
}

.btn-brown {
  background-color: #F9F6E3;
  border: 1px solid #7E5A00;
  color: #7E5A00;
}

.btn-outline-primary {
  background-color: #fff;
  border: 1px solid #285ee4;
  color: #285ee4;
}
.btn-outline-primary a {
  color: #285ee4;
}
.btn-outline-primary:hover {
  background-color: #395CB3;
  border: 1px solid #395CB3;
  color: #fff;
}
.btn-outline-primary:hover a {
  color: #fff;
}
.btn-outline-primary:active {
  background-color: #2E4A8F;
  border: 1px solid #2E4A8F;
  color: #fff;
}
.btn-outline-primary:active a {
  color: #fff;
}

.btn-outline-success {
  color: #048080;
  background-color: #fff;
  border: 1px solid #048080;
}
.btn-outline-success:hover {
  background-color: #e6f2f2;
  color: #048080;
}

.btn-outline-seagreen {
  color: #359b9b;
  background-color: #fff;
  border: 1px solid #359b9b;
}
.btn-outline-seagreen:hover {
  background-color: #ebf5f5;
  color: #359b9b;
}

.btn-outline-warning {
  color: #E4B849;
  background-color: #fff;
  border: 1px solid #E4B849;
}
.btn-outline-warning:hover {
  background-color: #E4B849;
  color: #fff;
}

.btn-outline-danger {
  color: #FF0000;
  background-color: #fff;
  border: 1px solid #FF0000;
}
.btn-outline-danger:hover {
  background-color: #FF0000;
  color: #fff;
}

[class*=btn-outline-]:hover img {
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
  -webkit-transition: -webkit-filter 0.2s ease;
  transition: -webkit-filter 0.2s ease;
  transition: filter 0.2s ease;
  transition: filter 0.2s ease, -webkit-filter 0.2s ease;
  /* 增加平滑感 */
}

/* 預設也給 img 一個 transition，這樣移開時也會平滑變回原色 */
[class*=btn-outline-] img {
  -webkit-transition: -webkit-filter 0.2s ease;
  transition: -webkit-filter 0.2s ease;
  transition: filter 0.2s ease;
  transition: filter 0.2s ease, -webkit-filter 0.2s ease;
}

.btn-primary-shadow {
  -webkit-box-shadow: 0 3px 6px 0 rgba(40, 94, 228, 0.25);
          box-shadow: 0 3px 6px 0 rgba(40, 94, 228, 0.25);
}

.btn-success-shadow {
  -webkit-box-shadow: 2px 2px 2px 0 rgba(53, 155, 155, 0.2);
          box-shadow: 2px 2px 2px 0 rgba(53, 155, 155, 0.2);
}

.btn-warning-shadow {
  -webkit-box-shadow: 2px 2px 2px 0 rgba(228, 184, 73, 0.2);
          box-shadow: 2px 2px 2px 0 rgba(228, 184, 73, 0.2);
}

.btn-danger-shadow {
  -webkit-box-shadow: 2px 4px 10px rgba(255, 35, 35, 0.25);
          box-shadow: 2px 4px 10px rgba(255, 35, 35, 0.25);
}

.btn-light-shadow {
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}

.btn-spacing-sm {
  letter-spacing: 0.5rem;
}

.btn-spacing-md {
  letter-spacing: 1rem;
}

.btn-spacing-lg {
  letter-spacing: 2rem;
}

.guide_group {
  margin: 0;
}
.guide_group .guide_btn .button-decor {
  position: absolute;
  inset: 0;
  background-color: #285ee4;
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
  z-index: 0;
}
.guide_group .guide_btn .button__icon {
  width: 48px;
  height: 40px;
  background-color: #285ee4;
  display: grid;
  place-items: center;
}

@media (max-width: 1024px) {
  .input_with_btn {
    width: 100%;
  }
}
.u-card {
  background-color: #ffffff;
  border-radius: 16px;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  padding: 20px;
}
.u-card .card-title {
  font-size: 20px;
  font-weight: bold;
}
.u-card.info-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
  height: 100%;
  text-align: center;
}
.u-card.info-box .card-title {
  font-size: 20px;
  font-weight: bold;
  color: #383838;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.u-card.info-box .card-title .icon-right {
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}
.u-card.info-box .card-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin-top: 20px;
}
.u-card.info-box {
  /* 單個統計項目 */
}
.u-card.info-box .stat-item {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.u-card.info-box .stat-item .stat-value {
  font-size: 20px;
  color: #383838;
  margin-bottom: 4px;
  line-height: 1.2;
}
.u-card.info-box .stat-item .stat-value.text-alert {
  color: red;
}
.u-card.info-box .stat-item .stat-label {
  font-size: 16px;
  color: #000;
  white-space: nowrap;
}
.u-card.info-box {
  /* 垂直分隔線 */
}
.u-card.info-box .stat-divider {
  width: 1px;
  height: 20px;
  background-color: #C6C6C6;
  margin: 0 10px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.card-title-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.u-info-card {
  background-color: #f5f8ff;
  border: 1px solid #e4eaf7;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.u-info-card .u-info-card-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.u-info-card .u-info-card-row:first-child {
  padding-top: 0;
}
.u-info-card .u-info-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.u-info-card .u-info-card-label {
  width: 90px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.u-info-card .u-info-card-label .required {
  color: #ef4444;
  margin-left: 4px;
}
.u-info-card .u-info-card-value {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}
.u-info-card .u-info-card-value .input-group {
  width: 100%;
}

@media (max-width: 767.98px) {
  .u-info-card-value {
    width: 100% !important;
  }
  .u-info-card-row,
  .info-row {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
    -webkit-box-align: start !important;
        -ms-flex-align: start !important;
            align-items: flex-start !important;
    gap: 10px;
  }
  .u-info-card-label,
  .info-label {
    width: 100% !important;
  }
}
.aside-card {
  border: 2px solid #285EE4;
  background-color: #fff;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}
.aside-card .title-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #285EE4;
  padding: 10px;
  margin: 0;
  border-radius: 10px 10px 0 0;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}
.aside-card .body-section {
  padding: 20px 15px;
}
.aside-card .card-section .section-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 20px;
}
.aside-card .card-section .section-header .title {
  font-size: 24px;
  font-weight: bold;
  color: #285EE4;
}
.aside-card .card-section .section-header .subtitle {
  font-size: 20px;
  font-weight: bold;
  color: #285EE4;
}
.aside-card .card-section .detail-list .data-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  list-style: none;
}
.aside-card .card-section .detail-list .data-item:not(:last-child) {
  margin-bottom: 20px;
}
.aside-card .card-section .detail-list .data-item .highlight {
  font-size: 20px;
  font-weight: bold;
  color: #285EE4;
  margin-right: 10px;
}

@media (max-width: 767.98px) {
  .info-box .card-body {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .info-box .stat-divider {
    display: none;
  }
  .info-box .stat-item {
    min-width: 33.33%;
    margin-bottom: 10px;
  }
}
.chk_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
}
.chk_box .chk_box_item {
  position: relative;
}
.chk_box .chk_box_item:not(:first-child) {
  padding-left: 16px;
}
.chk_box .chk_box_item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  height: 50%;
  width: 1px;
  background-color: #d0d0d0;
}

/* ==============================
   元件樣式：Checkbox
   ------------------------------
   - 自訂 checkbox 基礎樣式
   - 支援勾選、disabled、select_all 狀態
   ============================== */
.custom_checkbox_wrapper,
.custom_radio_wrapper {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}
.custom_checkbox_wrapper:has(input:checked),
.custom_radio_wrapper:has(input:checked) {
  background-color: unset !important;
}
.custom_checkbox_wrapper:has(input:disabled),
.custom_radio_wrapper:has(input:disabled) {
  cursor: not-allowed;
}

.custom_checkbox,
.custom_radio {
  width: 24px;
  height: 24px;
  border: 1px solid #285EE4;
  background-color: #ffffff;
  position: relative;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-right: 5px;
}

.custom_checkbox {
  border-radius: 2px;
}

.custom_radio {
  border-radius: 50%;
}

.custom_checkbox_wrapper.is-alert .custom_checkbox {
  border-width: 2px;
  border-color: red;
}
.custom_checkbox_wrapper.is-alert input[type=checkbox]:checked + .custom_checkbox {
  background-color: #285EE4;
  border-color: #285EE4;
  border-width: 1px;
}

input[type=checkbox]:checked + .custom_checkbox {
  background-color: #285EE4;
}
input[type=checkbox]:checked + .custom_checkbox::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

input[type=radio]:checked + .custom_radio {
  border-color: #285EE4;
}
input[type=radio]:checked + .custom_radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: #285EE4;
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

input:disabled + .custom_checkbox,
input:disabled + .custom_radio {
  border-color: #C6C6C6;
  background-color: transparent !important;
  cursor: not-allowed;
}
input:disabled[type=checkbox] + .custom_checkbox::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background-color: #C6C6C6;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  border: none;
}
input:disabled[type=radio] + .custom_radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: #C6C6C6;
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  display: block;
}

.is-locked-check input:disabled + .custom_checkbox {
  border-color: #C6C6C6;
  background-color: #C6C6C6 !important;
  cursor: not-allowed;
  position: relative;
}
.is-locked-check input:disabled + .custom_checkbox::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  display: block;
  width: 5px;
  height: 10px;
  border: solid #999999;
  border-width: 0 3px 3px 0;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
  background-color: transparent !important;
}

/* ==============================
   場景 A：chk_box（圓角 pill 風格）
   ============================== */
.chk_box {
  margin-bottom: 0;
  height: 36px;
}
.chk_box .custom_checkbox_wrapper {
  font-size: 18px;
  background-color: #fff;
  border-radius: 999px;
  border: 2px solid transparent;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  padding: 4px 16px 4px 44px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  -webkit-transition: background-color 0.3s, color 0.3s, border 0.3s;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}
.chk_box .custom_checkbox_wrapper:hover {
  border: 2px solid #285EE4;
}
.chk_box .custom_checkbox_wrapper {
  /* 勾選時整個 label 背景變藍，文字變白 */
}
.chk_box .custom_checkbox_wrapper:has(input[type=checkbox]:checked) {
  background-color: #285EE4;
  color: #fff;
}
.chk_box .custom_checkbox_wrapper:has(input[type=checkbox]:checked) .custom_checkbox {
  background-color: #285EE4;
  border-color: #fff;
  border-radius: 4px;
}
.chk_box .custom_checkbox_wrapper .custom_checkbox {
  position: absolute;
  left: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

/* ==============================
   場景 B：col_checkbox
   - select_all 在 active 時 → 白底藍勾勾
   ============================== */
.col_checkbox.active .custom_checkbox.select_all, .col-checkbox.active .custom_checkbox.select_all {
  background-color: #fff !important;
}
.col_checkbox.active .custom_checkbox.select_all::after, .col-checkbox.active .custom_checkbox.select_all::after {
  border-color: #285EE4 !important;
  -webkit-transform: scale(1) rotate(45deg);
          transform: scale(1) rotate(45deg);
  opacity: 1;
}

/* ==============================
   場景 C：column_selector（浮動下拉選單）
   ============================== */
.column_selector_wrapper {
  width: 0%;
  min-width: 50px !important;
  max-width: 50px !important;
  position: sticky;
  right: 0 !important;
  z-index: 30;
  background: #285EE4;
  overflow: visible;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}

.column_selector_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.column_selector_menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 10000;
  background: #fff;
  border: 2px solid #2E4A8F;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  max-width: 250px;
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
      -ms-flex-direction: column !important;
          flex-direction: column !important;
}
.column_selector_menu .column_selector_content {
  display: block;
  overflow: auto;
  min-height: 100px;
  max-height: 400px !important;
}
.column_selector_menu .custom_checkbox_wrapper {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 15px;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
}
.column_selector_menu .custom_checkbox_wrapper:hover {
  background-color: #f5f8ff;
}
.column_selector_menu .custom_checkbox_wrapper:has(input:checked) {
  background-color: #BACBF6 !important;
}
.column_selector_menu .custom_checkbox_wrapper {
  /* 處理文字過長變省略號 */
}
.column_selector_menu .custom_checkbox_wrapper span {
  font-size: 16px;
  color: #383838;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.column_selector_menu .custom_checkbox_wrapper .custom_checkbox {
  margin-right: 10px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.column_selector_menu .column_selector_footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border-top: 2px solid #2E4A8F;
}
.column_selector_menu:not(.show) {
  display: none !important;
}
.column_selector_menu.show {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 1001;
  min-width: 160px;
  margin-top: 8px;
  background: #ffffff;
  border: 2px solid #285EE4;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.custom-dropdown-menu.size-md {
  min-width: 240px;
}
.custom-dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.custom-dropdown-menu ul li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  padding: 8px 16px;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.custom-dropdown-menu ul li.dropdown-menu-title {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  color: #6A6A6A;
  text-align: left !important;
  padding: 12px 16px;
}
.custom-dropdown-menu ul li.dropdown-menu-title .icon {
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.custom-dropdown-menu ul li.dropdown-menu-title .icon.rotate-180 {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.custom-dropdown-menu ul li:hover {
  background-color: #F5F8FF;
  color: #285EE4;
}
.custom-dropdown-menu ul li:not(:last-child) {
  border-bottom: 0.5px solid #BACBF6;
}

/* ==============================
   基礎通用元件樣式 (element.scss)
   ============================== */
input[type=text],
input[type=password],
input[type=email],
input[type=number],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #C6C6C6;
  outline: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  vertical-align: middle;
  max-height: 36px;
  line-height: normal;
  -webkit-transition: border 0.3s ease-in-out;
  transition: border 0.3s ease-in-out;
  cursor: pointer;
}
input[type=text]:hover,
input[type=password]:hover,
input[type=email]:hover,
input[type=number]:hover,
input[type=tel]:hover,
select:hover,
textarea:hover {
  border: 1px solid #285EE4;
}
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=tel]:focus,
select:focus,
textarea:focus {
  border-color: #1B48B8;
}
input[type=text]::-webkit-input-placeholder, input[type=password]::-webkit-input-placeholder, input[type=email]::-webkit-input-placeholder, input[type=number]::-webkit-input-placeholder, input[type=tel]::-webkit-input-placeholder, select::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: #B4B4B4;
}
input[type=text]::-moz-placeholder, input[type=password]::-moz-placeholder, input[type=email]::-moz-placeholder, input[type=number]::-moz-placeholder, input[type=tel]::-moz-placeholder, select::-moz-placeholder, textarea::-moz-placeholder {
  color: #B4B4B4;
}
input[type=text]:-ms-input-placeholder, input[type=password]:-ms-input-placeholder, input[type=email]:-ms-input-placeholder, input[type=number]:-ms-input-placeholder, input[type=tel]:-ms-input-placeholder, select:-ms-input-placeholder, textarea:-ms-input-placeholder {
  color: #B4B4B4;
}
input[type=text]::-ms-input-placeholder, input[type=password]::-ms-input-placeholder, input[type=email]::-ms-input-placeholder, input[type=number]::-ms-input-placeholder, input[type=tel]::-ms-input-placeholder, select::-ms-input-placeholder, textarea::-ms-input-placeholder {
  color: #B4B4B4;
}
input[type=text]::placeholder,
input[type=password]::placeholder,
input[type=email]::placeholder,
input[type=number]::placeholder,
input[type=tel]::placeholder,
select::placeholder,
textarea::placeholder {
  color: #B4B4B4;
}
input[type=text].size-xs,
input[type=password].size-xs,
input[type=email].size-xs,
input[type=number].size-xs,
input[type=tel].size-xs,
select.size-xs,
textarea.size-xs {
  max-width: 60px;
}
input[type=text].size-sm,
input[type=password].size-sm,
input[type=email].size-sm,
input[type=number].size-sm,
input[type=tel].size-sm,
select.size-sm,
textarea.size-sm {
  height: 36px;
  min-width: 80px;
  padding: 6px 10px;
}
input[type=text].size-md,
input[type=password].size-md,
input[type=email].size-md,
input[type=number].size-md,
input[type=tel].size-md,
select.size-md,
textarea.size-md {
  height: 40px;
  min-width: 160px;
}
input[type=text].size-lg,
input[type=password].size-lg,
input[type=email].size-lg,
input[type=number].size-lg,
input[type=tel].size-lg,
select.size-lg,
textarea.size-lg {
  height: 40px;
  min-width: 220px;
}
input[type=text].size-xl,
input[type=password].size-xl,
input[type=email].size-xl,
input[type=number].size-xl,
input[type=tel].size-xl,
select.size-xl,
textarea.size-xl {
  height: 40px;
  min-width: 310px;
}
input[type=text].rounded-full,
input[type=password].rounded-full,
input[type=email].rounded-full,
input[type=number].rounded-full,
input[type=tel].rounded-full,
select.rounded-full,
textarea.rounded-full {
  border-radius: 999px;
}
input[type=text].rounded-square,
input[type=password].rounded-square,
input[type=email].rounded-square,
input[type=number].rounded-square,
input[type=tel].rounded-square,
select.rounded-square,
textarea.rounded-square {
  border-radius: 4px;
}
input[type=text]:disabled,
input[type=password]:disabled,
input[type=email]:disabled,
input[type=number]:disabled,
input[type=tel]:disabled,
select:disabled,
textarea:disabled {
  background-color: #DBDBDB !important;
  color: #000000;
  border: 1px solid #C6C6C6;
  cursor: not-allowed;
}
@media (max-width: 1024px) {
  input[type=text].size-sm,
  input[type=password].size-sm,
  input[type=email].size-sm,
  input[type=number].size-sm,
  input[type=tel].size-sm,
  select.size-sm,
  textarea.size-sm {
    height: 34px;
    min-width: 72px;
  }
  input[type=text].size-md,
  input[type=password].size-md,
  input[type=email].size-md,
  input[type=number].size-md,
  input[type=tel].size-md,
  select.size-md,
  textarea.size-md {
    height: 38px;
    min-width: 140px;
  }
}
@media (max-width: 768px) {
  input[type=text],
  input[type=password],
  input[type=email],
  input[type=number],
  input[type=tel],
  select,
  textarea {
    font-size: 15px;
    padding: 8px;
    width: 100% !important;
    min-width: auto !important;
  }
}

input[type=checkbox],
input[type=radio] {
  display: none;
}

/* 隱藏原生箭頭 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* 容器 */
.number-box {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  border-radius: 4px;
  height: 36px;
  overflow: hidden;
  position: relative;
}

/* 輸入框 */
.number-input {
  width: 50px;
  border: none;
  text-align: center;
  outline: none;
}

/* 箭頭群組 */
.arrow-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 22px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

/* 箭頭按鈕 */
.arrow-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 50%;
  background: #F3F3F3;
  border: none;
  cursor: pointer;
  font-size: 8px;
  padding: 0;
  margin: 2px;
}

.arrow-btn.up {
  border-bottom: 3px solid #fff;
}

.arrow-btn:hover {
  background: #e5e5e5;
}

textarea {
  max-height: unset !important;
  resize: vertical;
}

/* ==============================
   FORM ELEMENTS
   自訂表單元件樣式總覽
   ============================== */
/* ------------------------------
   分隔線 (HR)
   ------------------------------ */
hr {
  height: 1px;
  margin: 15px 0;
  border: none;
  color: transparent;
  background-color: #C6C6C6;
  width: 100%;
}
hr.light {
  background-color: #EFEFEF;
}

.hr-space-lg {
  margin: 40px 0 25px 0;
}

.hr-space-md {
  margin: 28px 0 24px 0;
}

.hr-space-sm {
  margin: 20px 0 13px 0;
}

.hr-space-none {
  margin: 0;
}

.hr-dashed-divider {
  border: 1px dashed #d1d5db;
}

.hr-divider {
  border-top: 1px solid #efefef;
}

.hr-divider-primary {
  border-top: 1px solid #285EE4;
}

/* 中小裝置才顯示的 hr */
.hr-rwd-only {
  display: none;
}

@media (max-width: 1024px) {
  .hr-rwd-only {
    display: block;
  }
}
a.link-plain {
  color: #007bff;
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
a.link-plain:hover {
  text-decoration: underline;
  color: #0056b3;
}
a.link-plain:active {
  color: #004085;
}

.u-link {
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  cursor: pointer;
}
.u-link.is-blue-line {
  color: #285EE4;
  text-decoration: underline;
}
.u-link.is-blue-line:hover {
  color: #1e4bb8;
}
.u-link.is-blue {
  color: #285EE4;
}
.u-link.is-blue:hover {
  color: #1e4bb8;
  text-decoration: underline;
}
.u-link.is-black {
  color: #000;
}
.u-link.is-black:hover {
  text-decoration: none;
}

.ul-default {
  list-style-type: circle;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul li ul {
  padding-left: 24px;
  margin-top: 4px;
  list-style: none;
}
ul li ul li {
  position: relative;
  padding-left: 12px;
}
ul li ul li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.inquire-data {
  width: 100%;
  min-width: 311px;
  margin-bottom: 24px;
}
.inquire-data .action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 16px !important;
  margin-top: 24px;
}
.inquire-data .action button {
  margin: 0 !important;
}

.inquire-data-row {
  padding: 24px 16px;
  border: 2px solid #658ae6;
  border-radius: 15px;
}
.inquire-data-row > legend {
  font-size: 24px;
  font-weight: 500;
  margin-left: 16px;
  padding: 8px;
}
.inquire-data-row .flex {
  display: unset;
}
.inquire-data-row .input_control {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.inquire-data-row .input_control label {
  display: inline-block;
  margin-bottom: 8px;
}
.inquire-data-row .input_control .input_group label {
  display: block;
}
.inquire-data-row .input_control .select_group .dropdown-container .dropdown {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  z-index: 100;
  overflow-y: auto;
  width: 100%;
}
.inquire-data-row .input_control .select_group .dropdown-container .dropdown.active {
  max-height: 200px;
  border-radius: 8px;
  display: block;
}
.inquire-data-row .input_control .sc-datepicker {
  -webkit-box-shadow: unset;
          box-shadow: unset;
}
.inquire-data-row .form_group label {
  font-size: 16px;
}

.search_conditions {
  margin-bottom: 40px;
}

.data_filter_menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  min-width: 200px;
}

.hidden-data-cell {
  display: none !important;
}

.filter-column {
  position: relative;
}

.filter-actions-block {
  border-top: 1px solid #e0e0e0;
  padding: 8px 15px;
  text-align: right;
}
.filter-actions-block .btn {
  margin-left: 8px;
}

body.filter-menu-open {
  overflow: hidden !important;
}

.filter_menu {
  position: fixed;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: #fff;
  margin-top: -2px;
  border: 2px solid #2E4A8F;
  border-radius: 8px;
  z-index: 999;
  max-height: 60vh;
  min-height: 120px;
  min-width: 250px;
  overflow-y: auto;
}
.filter_menu .filter_content {
  display: block;
  overflow: auto;
  min-height: unset;
  height: auto;
  max-height: 400px !important;
}
.filter_menu .filter_content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  resize: none;
}
.filter_menu .filter_content ul li {
  background-color: #fff;
  color: #000;
}
.filter_menu .filter_content ul li label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.filter_menu .filter_content ul li label input {
  margin-right: 6px;
}
.filter_menu .filter_content ul::-webkit-scrollbar {
  width: 5px;
}
.filter_menu .filter_content ul::-webkit-scrollbar-thumb {
  background-color: #285ee4;
  border-radius: 10px;
}
.filter_menu .filter_menu_footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border-top: 2px solid #2E4A8F;
}
.filter_menu .custom_checkbox_wrapper {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
}
.filter_menu .custom_checkbox_wrapper:has(input:checked) {
  background-color: #BACBF6 !important;
}
.filter_menu .custom_checkbox_wrapper .custom_checkbox {
  margin-right: 10px;
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .filter_content {
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  .filter_menu {
    min-width: unset;
  }
}
form .form_sec .section_title {
  font-size: 24px;
  margin-bottom: 30px;
}

.form_group label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 8px;
  line-height: 1;
  white-space: nowrap;
  font-size: 18px;
}
.form_group label.with_border {
  gap: 8px;
}
.form_group label.with_border::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: #285EE4;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.form_group input,
.form_group select,
.form_group textarea {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #C6C6C6;
  -webkit-transition: border-color 0.3s;
  transition: border-color 0.3s;
  outline: none;
}
.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
  border-color: #1B48B8;
  outline: none;
}
.form_group.horizontal_group label,
.form_group .label_header label,
.form_group .label_bottom label {
  margin-bottom: 0;
}
.form_group.horizontal_group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.form_group.horizontal_group label {
  display: inline-block;
  text-align: justify;
  -moz-text-align-last: justify;
       text-align-last: justify;
}
.form_group.horizontal_group input[type=checkbox] {
  width: 20px;
  height: 20px;
}
.form_group .label_header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 10px;
}
.form_group .label_bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  margin-top: 10px;
}
.form_group .horizontal_group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.form_group .horizontal_group label {
  margin-bottom: 0;
}
.form_group .input_row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.form_group .input_row .select_box {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 140px;
          flex: 0 0 140px;
}
.form_group .input_row .input_box {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.form_group .radio_group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
}
.form_group .dateRange .layui-input {
  text-align: left;
  min-width: 220px !important;
}
.form_group .timeRange {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}
.form_group .error_message {
  display: none;
}
.form_group .switch_btn,
.form_group .switch_btn_sm {
  margin-left: 20px;
}
.form_group .upload_icon_wrapper {
  display: inline-block;
  cursor: pointer;
}
.form_group .upload_icon_wrapper .upload_input {
  display: none;
}
.form_group .upload_icon_wrapper .upload_icon {
  width: 70px;
  height: 70px;
  margin-top: 15px;
}
.form_group .upload_icon_wrapper.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}
.form_group .preview_wrapper {
  position: relative;
  display: inline-block;
}
.form_group .preview_wrapper .preview_img {
  width: 70px;
  height: 70px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #285EE4;
  border-radius: 8px;
  margin-left: 10px;
}
.form_group .preview_wrapper .delete_btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4d4f;
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  cursor: pointer;
  line-height: 18px;
}
.form_group .text-xs {
  font-size: 14px;
}
.form_group .text-sm {
  font-size: 16px;
}
.form_group .text-md {
  font-size: 18px;
}
.form_group .text-lg {
  font-size: 20px;
}

.form_control.is-invalid {
  border: 2px solid #FF0000;
}

.form-control-wrapper {
  position: relative;
  width: 100%;
}
.form-control-wrapper:has(.is-invalid) {
  -webkit-animation: shake 0.2s ease-in-out;
          animation: shake 0.2s ease-in-out;
}

.badge-required {
  position: absolute;
  top: -20px;
  right: 0;
  z-index: 5;
  color: #FF2323;
  font-size: 16px;
  white-space: nowrap;
}

.form_item_wrapper {
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.form_item_wrapper .item_content {
  background-color: #fff;
  border-radius: 15px 15px 0 0;
  padding: 15px;
}
.form_item_wrapper .item_content .form_group label {
  font-size: 18px;
}
.form_item_wrapper .item_header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #285EE4;
  border-radius: 15px 15px 0 0;
  -webkit-box-shadow: inset 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: inset 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  padding: 0 15px;
  min-height: 40px;
}
.form_item_wrapper .item_header .title {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}
.form_item_wrapper .item_header .tab-link .tabs .tab-btn {
  padding-right: 0;
  padding: 8px;
  border-bottom: 3px solid transparent;
}
.form_item_wrapper .item_header .tab-link .tabs .tab-btn.active {
  border-bottom: 3px solid #fff;
}
.form_item_wrapper .item_header .tab-link .tabs .tab-btn.active a {
  color: #fff;
}
.form_item_wrapper .item_header .tab-link .tabs .tab-btn:not(:last-child)::after {
  display: none;
}
.form_item_wrapper .item_header .tab-link .tabs .tab-btn a {
  font-size: 20px;
  font-weight: bold;
  color: #2E4A8F;
  margin-right: 0;
}
.form_item_wrapper .item_header .tab-link .tabs .tab-btn a:hover {
  border-bottom: 0;
}
.form_item_wrapper .item_body {
  position: relative;
  background-color: #fff;
  padding: 20px 15px;
}
.form_item_wrapper .item_body .form_group.horizontal_group label {
  font-size: 18px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 90px;
          flex: 0 0 90px;
  width: 90px;
}
.form_item_wrapper a {
  color: #285EE4;
}

.form_sec .title_sec {
  font-size: 24px;
  margin-bottom: 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
@media (max-width: 1024px) {
  .form_sec .title_sec {
    margin-bottom: 20px;
  }
}

.form_footer_action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  margin-top: 25px;
}
.form_footer_action.right {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
}
.form_footer_action.center {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

@media (max-width: 1024px) {
  .form_item_wrapper .item_body .form_group label {
    font-size: 18px;
  }
  .form_item_wrapper .item_content .form_group label {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .form_item_wrapper .item_body .form_group label {
    font-size: 16px;
  }
  .form_item_wrapper .item_content .form_group label {
    font-size: 16px;
  }
}
.form_row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.form_row .flex-grow-7 {
  -webkit-box-flex: 7;
      -ms-flex: 7;
          flex: 7;
}
.form_row .flex-grow-3 {
  -webkit-box-flex: 3;
      -ms-flex: 3;
          flex: 3;
}
.form_row label {
  margin-bottom: 0;
}

.form_row_between {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.form_row_between label {
  margin-bottom: 0;
}

.form_action {
  margin-top: 24px;
}

.required_data {
  color: red;
}

.has_shadow {
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  background-color: #fff;
}
.has_shadow:focus {
  -webkit-box-shadow: 0 0 0 2px rgba(40, 94, 228, 0.4);
          box-shadow: 0 0 0 2px rgba(40, 94, 228, 0.4);
}

.section-primary {
  background-color: #285EE4;
  color: #fff;
  padding: 8px;
}

.section-secondary {
  background-color: #2E4A8F;
  color: #fff;
  padding: 8px;
}

.inline_flex {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.link_inline {
  font-size: 14px;
  color: #285EE4;
  text-decoration: underline;
  cursor: pointer;
}
.link_inline:hover {
  color: #1B48B8;
  text-decoration: none;
}
.link_inline:active {
  color: #163991;
}

/* form_group的底部間距輔助類別 */
.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-25 {
  margin-bottom: 25px;
}

.mb-32 {
  margin-bottom: 32px;
}

.select_group {
  width: 311px;
  margin-right: 8px;
  position: relative;
  -moz-text-align-last: left;
       text-align-last: left;
}
.select_group select:focus {
  border-color: #285EE4;
  outline: none;
}
.select_group .dropdown-container .dropdown ul li label.chk-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 0;
}

.input_with_btn {
  position: relative;
  display: inline-block;
}
.input_with_btn input {
  padding-right: 60px;
}
.input_with_btn .edit_btn {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  height: 38px !important;
  padding: 0 10px;
  color: #285EE4;
  font-size: 14px;
  background-color: #fff;
  border: 2px solid #285EE4;
  border-radius: 4px;
  cursor: pointer;
}

.input_with_icon {
  position: relative;
  display: block;
  width: 100%;
}
.input_with_icon .icon {
  position: absolute;
  right: 3px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.input_with_icon .clickable-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
.input_with_icon::after {
  content: "";
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  right: 5px;
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  display: none;
  -webkit-transition: background-image 0.3s ease;
  transition: background-image 0.3s ease;
}
.input_with_icon.arrow_right::after {
  display: block;
  background-image: url("/static/v2/images/components/btn_type/btn_right_arrow_b_36.svg");
}
.input_with_icon.arrow_right.disabled::after {
  background-image: url("/static/v2/images/components/btn_type/btn_right_arrow_g_36.svg");
}
.input_with_icon.icon_calendar::after {
  display: block;
  background-image: url("/static/v2/images/components/btn_type/date_b_30.svg");
}
.input_with_icon.icon_calendar.disabled::after {
  background-image: url("/static/v2/images/components/btn_type/date_g_30.svg");
}

.input-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}

.row.position-relative {
  position: relative;
}

.divider_vertical {
  position: absolute;
  top: 70px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(to bottom, #C6C6C6, #C6C6C6 8px, transparent 5px, transparent 15px);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.divider_horizontal {
  height: 1px;
  background: repeating-linear-gradient(to right, #C6C6C6, #C6C6C6 8px, transparent 5px, transparent 15px);
  margin: 20px 0;
}

.tab-link {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  cursor: pointer;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.tab-link .tabs {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.tab-link .tabs .tab-btn {
  text-align: center;
  padding: 0 16px;
  position: relative;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  letter-spacing: 4px;
  white-space: nowrap;
}
.tab-link .tabs .tab-btn:first-child {
  padding-left: 0;
}
.tab-link .tabs .tab-btn:last-child {
  padding-right: 0;
}
.tab-link .tabs .tab-btn:not(:last-child)::after {
  content: "";
  position: absolute;
  height: 18px;
  width: 2px;
  background: #e0e0e0;
  top: 50%;
  right: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.tab-link .tabs .tab-btn.active a {
  color: #285EE4;
}
.tab-link .tabs .tab-btn a {
  font-size: 24px;
  font-weight: bold;
  color: #dbdbdb;
  display: block;
  text-decoration: none;
}

@media (max-width: 768px) {
  .tab-link {
    padding: 0 16px;
  }
  .tab-link .tabs .tab-btn {
    padding: 10px;
  }
}
.upload_outter {
  padding: 30px 0 0;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.upload_outter .upload {
  margin-right: 10px;
  padding-top: 12px;
  display: block;
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.upload_outter .upload:active {
  -webkit-transform: scale(0.98);
          transform: scale(0.98);
}
.upload_outter .upload > a {
  height: 72px;
  width: 72px;
  display: block;
  background-image: url(../images/upx_b.png);
  background-position: center;
  background-repeat: no-repeat;
}
.upload_outter .upload > a img {
  display: none;
}
.upload_outter .upload img {
  height: 66px;
}
.upload_outter .mcs-horizontal-pics {
  max-width: 215px;
  margin-left: 0;
}
.upload_outter .mcs-horizontal-pics .hitem > img {
  height: 66px;
}

.input-field-upload .upload_outter {
  padding: 0;
}

.selected-file-wrapper {
  margin-bottom: 10px;
}
.selected-file-wrapper .file-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  border: 1px solid #285EE4;
  border-radius: 8px;
  color: #285EE4;
  padding: 8px 10px;
  cursor: pointer;
  background-color: #fff;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.selected-file-wrapper .file-info:hover {
  background-color: #f8faff;
}
.selected-file-wrapper .file-info:hover .file-name {
  white-space: normal;
  word-break: break-all;
  text-overflow: clip;
  overflow: visible;
}
.selected-file-wrapper .file-info .file-name {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  font-size: 14px;
  margin-right: 8px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-file-wrapper .file-info .btn_with_icon {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-top: 1px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: none;
  border: none;
  padding: 0;
}
.selected-file-wrapper .file-info .btn_with_icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.filter_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 30px;
  margin-bottom: 0;
  position: relative;
}
.filter_content input:not([type=checkbox]):not([type=radio]),
.filter_content select,
.filter_content textarea {
  height: 36px;
  padding: 0 10px;
}
.filter_content .filter_item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.filter_content .filter_item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  height: 14px;
  width: 1.5px;
  background-color: #d0d0d0;
}
.filter_content .filter_item:last-of-type::after {
  display: none;
}

.add_content .item_body .item_main .input_control .input_group #orders_date,
.add_content .item_body .item_main .input_control .input_group #should_pay_date {
  background-image: url(/static/v2/images/components/btn_type/date_b_30.svg);
  background-repeat: no-repeat;
  background-position: right 5px center;
}

.record_search {
  position: relative;
  margin-bottom: 0;
}
.record_search button {
  border: 0;
  position: absolute;
  top: 0;
  right: 5px;
  background-color: transparent;
  z-index: 0;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.record_search input,
.record_search select,
.record_search textarea {
  padding: 0;
}

@media (max-width: 1279.98px) {
  .divider_vertical,
  .divider_horizontal {
    display: none;
  }
}
/* 螢幕小於 1024px (平板) */
@media (max-width: 1024px) {
  .filter_content {
    gap: 10px;
  }
  .filter_content .filter_item {
    padding: 0 10px;
  }
  .filter_content .filter_item::after {
    display: none;
  }
  .radio_group .radio_item label .custom_radio {
    width: 18px;
    height: 18px;
    border-width: 1.5px;
  }
  .radio_group .radio_item label .custom_radio::after {
    width: 10px;
    height: 10px;
  }
  .custom_radio_wrapper .custom_radio {
    width: 18px;
    height: 18px;
    border-width: 1.5px;
  }
  .custom_radio_wrapper .custom_radio::after {
    top: 22%;
    left: 22%;
    width: 10px;
    height: 10px;
  }
}
/* 螢幕小於 768px (手機) */
@media (max-width: 768px) {
  .filter_content .filter_item {
    padding: 0;
    width: 100%;
  }
  .custom_checkbox_wrapper {
    width: 100% !important;
  }
  .custom_checkbox_wrapper .custom_checkbox {
    width: 20px !important;
    height: 20px !important;
  }
  .custom_checkbox_wrapper .custom_checkbox:not(.disabled)::after {
    content: "";
    top: 2px !important;
    left: 5px !important;
    width: 5px !important;
    height: 8px !important;
  }
  .select_wrapper {
    width: 100%;
  }
  .tab-link .tabs .tab-btn a {
    font-size: 18px;
  }
  .form_action {
    width: 100%;
  }
  .form_action .btn_group .btn {
    width: 100%;
  }
}
.fa_icon {
  margin-left: 5px;
  cursor: pointer;
}
.fa_icon.icon_blue {
  color: #285EE4;
}
.fa_icon.icon_brown {
  color: #E4B849;
}
.fa_icon.icon_red {
  color: #E74C3C;
}

.text_with_icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.icon-blue {
  color: #285EE4;
}

.icon-red {
  color: #E74C3C;
}

.input-wrapper {
  position: relative;
  width: 100%;
}
.input-wrapper .input-clear-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #AFB0AF;
  font-size: 16px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.input-wrapper .input-clear-btn:hover {
  color: #285ee4;
}
.input-wrapper .input-clear-btn img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}
.input-wrapper .input-clear-btn img:hover {
  opacity: 0.9;
}

body.modal-open {
  overflow: hidden;
}

.u-modal-overlay {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100vh - 100px);
  z-index: 3000;
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}
.u-modal-overlay.is-light {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}
.u-modal-overlay.is-light .u-modal-container {
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.u-modal-overlay.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.u-modal-container {
  background-color: #fff;
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  max-height: 80vh;
  -webkit-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
          box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.u-modal-container.u-modal-static {
  height: auto;
  max-height: 90vh;
}
.u-modal-container.u-modal-static .u-modal-body {
  overflow-y: hidden;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}
.u-modal-container.u-modal-status {
  width: 180px;
  height: 180px;
  min-width: 180px;
  max-width: 180px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.u-modal-container.u-modal-status .u-modal-header,
.u-modal-container.u-modal-status .u-modal-footer {
  display: none;
}
.u-modal-container.u-modal-status .u-modal-body {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  overflow: hidden;
  padding: 0;
}
.u-modal-container.u-modal-status .u-modal-body .status-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  color: #285EE4;
  font-size: 18px;
}
.u-modal-container.u-modal-card .u-modal-header {
  background-color: #285EE4;
  padding: 10px 15px;
  position: relative;
}
.u-modal-container.u-modal-card .u-modal-header .u-modal-title {
  color: #fff;
  font-size: 20px;
  font-weight: normal;
}
.u-modal-container.u-modal-card .u-modal-header .u-modal-close {
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  opacity: 0.7;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  font-size: 20px;
}
.u-modal-container.u-modal-card .u-modal-header .u-modal-close img {
  max-width: 35px;
}
.u-modal-container.u-modal-card .u-modal-header .u-modal-close:hover {
  opacity: 1;
  background-color: transparent;
}
.u-modal-container.u-modal-card .u-modal-body {
  padding: 24px;
}
.u-modal-container.u-modal-card .u-modal-footer {
  padding: 15px;
  border-top: 1px solid #e5e7eb;
  -webkit-box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
          box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}
.u-modal-container.u-modal-entry {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.u-modal-container.u-modal-entry .u-modal-header {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.u-modal-container.u-modal-entry .u-modal-header .u-modal-title {
  font-size: 32px;
  color: #383838;
}
.u-modal-container.u-modal-entry .u-modal-body .u-entry-intro {
  margin-bottom: 20px;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}
.u-modal-container.u-modal-entry .u-modal-body .u-entry-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
  padding: 15px 0;
  margin-bottom: 20px;
}
.u-modal-container.u-modal-entry .u-modal-body .u-entry-actions .u-action-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.u-modal-container.u-modal-data {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.u-modal-container.u-modal-data .u-modal-header {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background-color: #fff;
}
.u-modal-container.u-modal-data .u-modal-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 0;
}
.u-modal-container.u-modal-data .u-modal-body .u-modal-content {
  min-width: 100%;
}
.u-modal-container.u-modal-data .u-modal-footer {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background-color: #fff;
  -webkit-box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
          box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}
.u-modal-container.u-modal-data > form,
.u-modal-container.u-modal-data form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: hidden;
  height: 100%;
  width: 100%;
}
@media (max-width: 1024px) {
  .u-modal-container.u-modal-entry .u-modal-header {
    padding: 16px;
  }
  .u-modal-container.u-modal-entry .u-modal-header .u-modal-title {
    font-size: 24px;
  }
  .u-modal-container.u-modal-entry .u-modal-header .u-modal-close img {
    max-width: 30px;
  }
  .u-modal-container.u-modal-entry .u-modal-body {
    padding: 0 16px 16px;
  }
  .u-modal-container.u-modal-entry .u-modal-body .u-entry-intro {
    margin-bottom: 16px;
  }
  .u-modal-container.u-modal-entry .u-modal-body .u-entry-actions {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
  }
  .u-modal-container.u-modal-entry .u-modal-body .u-entry-actions .u-action-item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .u-modal-container.u-modal-entry .u-modal-body .u-entry-actions .u-action-item .u-action-label {
    font-size: 14px;
  }
  .u-modal-container.u-modal-entry .u-modal-body .u-entry-actions .btn {
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: 40px;
  }
}
.u-modal-container.allow-dropdown {
  overflow: visible !important;
}
.u-modal-container.allow-dropdown .u-modal-body {
  overflow: visible !important;
}
.u-modal-container .tab-link {
  padding: 0 24px;
}
.u-modal-container.u-modal-size-xs {
  max-width: 370px;
}
.u-modal-container.u-modal-size-sm {
  max-width: 470px;
}
.u-modal-container.u-modal-size-md {
  max-width: 750px;
}
.u-modal-container.u-modal-size-lg {
  max-width: 1100px;
}
.u-modal-container.u-modal-size-full {
  width: calc(100vw - 80px);
  max-width: 1840px;
  height: calc(100vh - 200px);
}
@media (max-width: 1024px) {
  .u-modal-container.u-modal-size-full {
    width: 95%;
    max-width: none;
    height: calc(100vh - 170px);
  }
}

.u-modal-hero {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-top: 24px;
}
.u-modal-hero img {
  max-width: 60px;
}

.u-modal-header {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.u-modal-header.is-left {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}
.u-modal-header.is-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.u-modal-header.is-column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 16px;
}
.u-modal-header.is-column .u-header-left-group {
  width: 100%;
}
.u-modal-header.is-column .input-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}
.u-modal-header.is-column .input-group .input_with_icon {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  position: relative;
}
.u-modal-header.is-column .input-group .input_with_icon .icon {
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  cursor: pointer;
}
.u-modal-header .u-header-left-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.u-modal-header .u-header-right-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.u-modal-header .u-modal-title {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  color: #1a202c;
}
.u-modal-header .u-modal-title.is-primary {
  color: #285ee4;
}
.u-modal-header .u-modal-subtitle {
  font-size: 24px;
  margin-top: 10px;
}
.u-modal-header .u-modal-remarktitle {
  font-size: 18px;
  margin-top: 15px;
}
.u-modal-header .u-modal-close {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: transparent;
  border: 0;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
}
.u-modal-header .u-modal-close:hover {
  background-color: #E6EDFF;
}
.u-modal-header .u-modal-close:active {
  background-color: #BACBF6;
}

.u-modal-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 0 25px;
  background-color: #fff;
  -webkit-overflow-scrolling: touch;
}
.u-modal-body .u-modal-message {
  font-size: 18px;
  text-align: center;
  line-height: 1.5;
}
.u-modal-body .u-modal-message.is-left {
  text-align: left;
}
.u-modal-body .u-modal-message p {
  line-height: 1.5;
  margin-bottom: 8px;
}
.u-modal-body .u-modal-message p:last-child {
  margin-bottom: 0;
}
.u-modal-body .u-modal-message ul li {
  line-height: 1.6;
  margin-bottom: 8px;
}
.u-modal-body .u-modal-message ul li:last-child {
  margin-bottom: 0;
}
.u-modal-body .u-modal-message a {
  color: #0052D9;
  text-decoration: underline;
}
.u-modal-body .u-modal-content {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.u-modal-body .u-modal-content .u-content-section .section-header {
  margin-bottom: 15px;
}
.u-modal-body .u-modal-content .u-content-section .section-header .section-title {
  font-size: 24px;
  font-weight: bold;
}

.u-modal-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding: 24px;
}
.u-modal-footer.has-divider {
  position: relative;
}
.u-modal-footer.has-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 0.5px;
  background-color: #C6C6C6;
}

.u-btn-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 20px;
  width: 100%;
}
.u-btn-group.is-left {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}
.u-btn-group.is-right {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}
.u-btn-group.is-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.u-tip-message {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}

@media (max-width: 1024px) {
  .u-modal-header {
    padding: 16px;
  }
  .u-modal-header .u-modal-title {
    font-size: 24px;
  }
  .u-modal-footer {
    padding: 16px;
  }
  .u-btn-group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .u-btn-group .btn,
  .u-btn-group button,
  .u-btn-group a {
    width: 100%;
    max-width: none;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: 40px;
  }
}
@media (max-width: 767px) {
  .u-modal-header.is-column .input-group {
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .u-modal-header.is-column .u-header-left-group {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}
.import-file-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 70%;
}
.import-file-form .file-drop-zone {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  gap: 10px;
  border: 2px dashed #DCDCDC;
  border-radius: 15px;
  padding: 35px 25px;
  cursor: pointer;
}
.import-file-form .file-drop-zone img.dropzone-icon {
  opacity: 0.7;
  -o-object-fit: contain;
     object-fit: contain;
  max-height: 180px;
}
.import-file-form .file-drop-zone .file-drop-content {
  line-height: 1.5;
}
.import-file-form .file-drop-zone .file-drop-content .file-drop-instruction {
  margin: 0;
  font-size: 40px;
  font-weight: bold;
  color: #383838;
}
.import-file-form .file-drop-zone .file-drop-content .file-type-info {
  font-size: 24px;
  font-weight: bold;
  color: #383838;
}
.import-file-form .file-drop-zone .file-drop-content .text-alert {
  color: red;
  font-weight: bold;
}
.import-file-form .file-info {
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
}
.import-file-form .file-info.visible {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.import-file-form .file-info .file-info-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #E6EDFF;
  border-radius: 8px;
  padding: 20px 25px;
  font-size: 32px;
  min-width: 680px;
}
.import-file-form .file-info .file-info-content .icon_delete {
  color: #285EE4;
  width: 24px;
  height: 24px;
}
.import-file-form .upload-result {
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .import-file-form {
    height: unset;
  }
  .import-file-form .file-drop-zone {
    padding: 40px 20px;
  }
  .import-file-form .file-drop-zone .file-drop-content .file-drop-instruction {
    font-size: 24px;
  }
  .import-file-form .file-drop-zone .file-drop-content .file-type-info {
    font-size: 20px;
  }
  .import-file-form .file-info {
    display: none;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 40px;
  }
  .import-file-form .file-info .file-info-content {
    padding: 15px 25px;
    font-size: 20px;
    min-width: unset;
  }
}
@-webkit-keyframes uModalFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes uModalFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes bounceIn {
  0% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0;
  }
  50% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
  70% {
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes bounceIn {
  0% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0;
  }
  50% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
  70% {
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.loading-icon {
  display: inline-block;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
}

.modal-backdrop-inside-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-top: 100px;
  z-index: 2000;
}
.modal-backdrop-inside-dark.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.modal-backdrop-inside-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-top: 100px;
  z-index: 2000;
}
.modal-backdrop-inside-light.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.modal-backdrop-inside-light.active .alert_box img {
  -webkit-animation: bounceIn 0.6s ease;
          animation: bounceIn 0.6s ease;
}

.modal-inside {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: #fff;
  border-radius: 16px;
  height: calc(100vh - 200px);
  width: calc(100vw - 80px);
  max-width: 1840px;
  overflow-y: auto !important;
  margin-top: 100px;
  overflow: hidden;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
          box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  margin: 50px 0;
}
.modal-inside .modal_title {
  padding: 20px 25px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.modal-inside .modal_content .content_panel {
  background-color: #F1F4FE;
  padding: 15px 20px;
  border-radius: 8px;
}
.modal-inside .modal_content .content_card {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #EFF3FE;
  line-height: 2;
}
.modal-inside .modal_footer {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
  padding: 20px;
  -webkit-box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
          box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}
.modal-inside .sc-search_content {
  width: 100%;
  max-width: 311px;
}
.modal-inside .sc-search_content .record_search {
  position: relative;
}
.modal-inside .sc-search_content .record_search input {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  padding: 4px 15px;
  overflow: hidden;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.modal-inside .sc-search_content .record_search button {
  border: 0;
  right: 10px;
  top: 0;
  position: absolute;
  background-color: transparent;
  z-index: 0;
  cursor: pointer;
}
.modal-inside .search_btn > img {
  position: absolute;
  top: 0;
  right: 0;
}
.modal-inside .close-btn {
  cursor: pointer;
}
.modal-inside.no-limit {
  width: auto;
  height: auto;
  overflow: hidden;
}
.modal-inside.no-limit .modal_standard {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.modal-inside.no-limit .modal_content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
}
.modal-inside.modal-scrolling-content {
  max-height: 80vh;
  height: 100%;
  overflow: hidden;
  min-width: 400px;
  max-width: 1200px;
}
.modal-inside.modal-scrolling-content .modal_standard {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.modal-inside.modal-scrolling-content .modal_standard .modal_content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.modal-inside.modal-scrolling-content .modal_standard .modal_content .data_table {
  width: 100%;
}
@media (max-width: 768px) {
  .modal-inside.modal-scrolling-content {
    width: 90%;
    min-width: unset;
    max-height: 90vh;
  }
}
.modal-inside.size-lg {
  width: 90%;
  max-width: 1200px;
}
.modal-inside.size-md {
  width: 50%;
  max-width: 680px;
}
.modal-inside.size-sm {
  width: 35%;
  max-width: 450px;
}
.modal-inside.size-xs {
  width: 25%;
  max-width: 350px;
}
@media (max-width: 1279.98px) {
  .modal-inside.size-md {
    width: 70%;
  }
  .modal-inside.size-sm {
    width: 50%;
  }
  .modal-inside.size-xs {
    width: 40%;
  }
}
@media (max-width: 768px) {
  .modal-inside {
    width: calc(100vw - 30px);
    margin: 15px;
  }
  .modal-inside.size-lg, .modal-inside.size-md, .modal-inside.size-sm, .modal-inside.size-xs {
    width: 95%;
    max-width: none;
  }
}

.modal_standard {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  border-radius: 20px;
}
.modal_standard .modal_title {
  padding: 20px 25px;
  position: relative;
}
.modal_standard .modal_title .title {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.modal_standard .modal_title .title .title_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.modal_standard .modal_title .title .title_content h3 {
  color: #383838;
  font-size: 32px;
  font-weight: bold;
}
.modal_standard .modal_title .title .title_content .remark {
  margin-left: 15px;
  font-weight: bold;
}
.modal_standard .modal_title .title .title_content .remark.normal {
  font-weight: normal;
}
.modal_standard .modal_title .title .title_content #closeViewBtn {
  color: red;
  margin-left: 15px;
  font-size: 18px;
  font-weight: bold;
}
.modal_standard .modal_title .title .btn_icon_close {
  position: absolute;
  right: 5px;
  top: 5px;
}
.modal_standard .modal_title .title .btn_icon_close img {
  width: 35px;
  height: 35px;
}
.modal_standard .modal_title .title .link {
  display: inline-block;
  font-size: 18px;
  font-weight: normal;
  color: #0052D9;
  margin-left: 15px;
  text-decoration: underline;
}
.modal_standard .modal_title .subtitle_info {
  margin-top: 15px;
}
.modal_standard .modal_title .description {
  margin-top: 10px;
  line-height: 1.5;
}
.modal_standard .modal_content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: center;
  overflow-y: auto;
}
.modal_standard .modal_footer {
  padding: 20px;
}
.modal_standard .modal_footer .form_action {
  margin: 0;
}
.modal_standard .modal_actions {
  margin-top: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 24px;
}

.modal_card {
  border-radius: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.modal_card .modal_title {
  padding: 10px 15px;
  margin-bottom: 0;
  background-color: #285EE4;
  position: relative;
  border-radius: 8px 8px 0 0;
}
.modal_card .modal_title .title .title_content h3 {
  color: #fff;
  font-size: 20px;
  font-weight: normal;
}
.modal_card .modal_title .title .btn_icon_close {
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
}
.modal_card .modal_title .title .btn_icon_close img {
  width: 35px;
  height: 35px;
}
.modal_card .modal_content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 20px 15px;
  background-color: #fff;
}
.modal_card .modal_content .message {
  padding: 10px;
  font-size: 18px;
  line-height: 1.5;
}
.modal_card .modal_content .message ul li:not(:first-child) {
  margin-top: 16px;
}
.modal_card .modal_content .message p:not(:first-child) {
  margin-top: 15px;
}
.modal_card .modal_content .message a {
  color: #285EE4;
  text-decoration: underline;
}
.modal_card .modal_content .form_group label {
  font-size: 20px;
}
.modal_card .modal_footer {
  margin-top: auto;
  padding: 15px;
}

.modal_dialog {
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  min-height: 180px;
  min-width: 180px;
}
.modal_dialog.size-md {
  min-width: 350px;
}
.modal_dialog.size-lg {
  min-width: 560px;
}
.modal_dialog a {
  color: #285EE4;
  text-decoration: underline;
}
.modal_dialog img {
  margin-bottom: 15px;
}
.modal_dialog button img {
  margin-bottom: 0;
}
.modal_dialog .modal_title {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  text-align: center;
  padding: 0;
  padding: 20px;
}
.modal_dialog .modal_content {
  font-size: 20px;
  font-weight: normal;
  line-height: 1.5;
  color: #000;
  letter-spacing: 1px;
  overflow-y: unset !important;
  padding: 0 20px;
}
.modal_dialog .modal_content .message {
  font-size: 20px;
  line-height: 1.5;
}
.modal_dialog .modal_content .message ul li:not(:first-child) {
  margin-top: 16px;
}
.modal_dialog .modal_content .message p:not(:first-child) {
  margin-top: 15px;
}
.modal_dialog .modal_content .form_group label {
  font-size: 20px;
}
.modal_dialog .modal_footer {
  width: 100%;
  border-top: 0;
  padding: 0;
  -webkit-box-shadow: unset;
          box-shadow: unset;
  padding: 20px;
}
.modal_dialog .modal_footer .alert_option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #000;
  font-weight: normal;
  margin-top: 8px;
}
.modal_dialog .modal_footer .alert_option input[type=checkbox] {
  width: 16px;
  height: 16px;
}
.modal_dialog .modal_footer .btn_group {
  width: 100%;
}
.modal_dialog .modal_footer .btn_group .btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  width: auto;
}

.alert_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #fff;
  color: #285EE4;
  padding: 25px 20px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 90%;
  margin: 0 auto;
  min-width: 280px;
  max-width: 320px;
}
.alert_box.size-md {
  max-width: 350px;
}
.alert_box.size-lg {
  max-width: 500px;
}
.alert_box a {
  color: #285EE4;
  text-decoration: underline;
}
.alert_box img {
  margin-bottom: 15px;
}
.alert_box button img {
  margin-bottom: 0;
}
.alert_box .title {
  font-size: 32px;
  font-weight: bold;
  color: #285EE4;
  margin-bottom: 15px;
}
.alert_box .title.black {
  color: #000;
}
.alert_box .content {
  font-size: 20px;
  font-weight: normal;
  line-height: 1.5;
  color: #000;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
.alert_box .footer {
  width: 100%;
}
.alert_box .footer .alert_option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #000;
  font-weight: normal;
  margin-top: 8px;
}
.alert_box .footer .alert_option input[type=checkbox] {
  width: 16px;
  height: 16px;
}
.alert_box .footer .btn_group {
  width: 100%;
}

.loading_box,
.update_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #fff;
  color: #285EE4;
  padding: 25px 15px;
  border-radius: 20px;
  font-weight: bold;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  height: 180px;
  width: 180px;
}
.loading_box a,
.update_box a {
  color: #285EE4;
  text-decoration: underline;
}
.loading_box img,
.update_box img {
  margin-bottom: 15px;
}
.loading_box button img,
.update_box button img {
  margin-bottom: 0;
}
.loading_box .title,
.update_box .title {
  font-size: 32px;
  font-weight: bold;
  color: #285EE4;
  margin-bottom: 15px;
}
.loading_box .title.black,
.update_box .title.black {
  color: #000;
}
.loading_box .content,
.update_box .content {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  color: #285EE4;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
.loading_box .footer,
.update_box .footer {
  width: 100%;
}
.loading_box .footer .alert_option,
.update_box .footer .alert_option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #000;
  font-weight: normal;
  margin-top: 8px;
}
.loading_box .footer .alert_option input[type=checkbox],
.update_box .footer .alert_option input[type=checkbox] {
  width: 16px;
  height: 16px;
}
.loading_box .footer .btn_group,
.update_box .footer .btn_group {
  width: 100%;
}
.loading_box .footer .btn_group .btn,
.update_box .footer .btn_group .btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  width: auto;
}

.modal_actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
}

#payment-modal {
  display: none;
}

#receivable-modal {
  display: none;
}

#transfer_modal .modal_footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
}
#transfer_modal .amount_summary {
  width: 300px;
  margin-bottom: 25px;
}
#transfer_modal .amount_summary .summary_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 8px;
}
#transfer_modal .amount_summary .summary_item .fa-circle-exclamation {
  color: #E4B849;
}

#ex8_modal .modal_title_content {
  padding: 24px 16px 0 16px !important;
}
#ex8_modal .modal_title_content .title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#ex8_modal .modal_title_content .title h3 {
  font-size: 32px;
  font-weight: bold;
  color: #383838;
  letter-spacing: 1px;
  margin-right: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  position: relative;
  margin-bottom: 24px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
#ex8_modal .modal_title_content .title h3 .link {
  display: inline-block;
  font-size: 18px;
  font-weight: normal;
  color: #0052d9;
  margin-left: 8px;
  margin-top: 8px;
}
#ex8_modal .modal_title_content .title .sc-search_content .record_search {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 2px solid transparent;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  background: #fff;
  padding: 0px 36px 0px 16px;
  position: relative;
  overflow: hidden;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
#ex8_modal .action {
  max-width: 100%;
}

#ex9_modal {
  width: 100%;
  padding: 24px;
}
#ex9_modal .subtitle_info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}
#ex9_modal .subtitle_info .tab-link {
  padding-bottom: 8px;
  margin-bottom: 10px;
  line-height: 36px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow-x: auto;
  cursor: pointer;
}
#ex9_modal .subtitle_info .tab-link .tabs {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#ex9_modal .subtitle_info .tab-link .tabs li {
  text-align: center;
  padding-right: 16px;
  position: relative;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  letter-spacing: 4px;
  white-space: nowrap;
}
#ex9_modal .subtitle_info .tab-link .tabs li:not(:first-child) {
  padding-left: 16px;
}
#ex9_modal .subtitle_info .tab-link .tabs li:not(:last-child)::after {
  content: "";
  position: absolute;
  height: 18px;
  width: 2px;
  background: #e0e0e0;
  top: 50%;
  right: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
#ex9_modal .subtitle_info .tab-link .tabs li a {
  font-size: 24px;
  font-weight: bold;
  color: #dbdbdb;
}
#ex9_modal .subtitle_info .tab-link .tabs li a.active {
  color: #285ee4;
}
#ex9_modal .tb_container {
  padding-left: 0 !important;
  padding-top: 0 !important;
  width: 44px !important;
  top: 2px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
#ex9_modal .action {
  width: 100%;
  padding: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
#ex9_modal table tr th.all-check,
#ex9_modal table tr td.tb-checkbox {
  width: 64px;
  max-width: 64px;
}
#ex9_modal table .tb-type {
  width: 112px;
  min-width: 112px;
}
#ex9_modal table .tb-company_title {
  width: 176px;
  max-width: 176px;
  min-width: 176px;
}
#ex9_modal table .td_business_no {
  width: 136px;
  min-width: 136px;
}
#ex9_modal table .tb-name {
  width: 176px;
  max-width: 176px;
  min-width: 176px;
}
#ex9_modal table .tb-tel {
  width: 136px;
  min-width: 136px;
}
#ex9_modal table .tb-email {
  width: 280px;
  min-width: 280px;
}
@media screen and (max-width: 450px) {
  #ex9_modal .sc-search_content {
    width: 100%;
  }
}

.preview-modal-size {
  max-width: 90%;
  max-height: 90vh;
  overflow: hidden;
}

.preview-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 24px;
  gap: 20px;
}
.preview-container .image-wrapper {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: auto;
  max-height: 65vh;
}
.preview-container .image-wrapper .preview-content {
  max-width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 4px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.preview-container .btn_group .btn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.zoom-modal-custom .preview-container {
  position: relative;
  background: #fff;
}
.zoom-modal-custom .zoom-toolbar {
  position: absolute;
  top: 40px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff;
  padding: 5px 15px;
  border-radius: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}
.zoom-modal-custom .zoom-toolbar .zoom-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.zoom-modal-custom .zoom-toolbar .zoom-btn:hover {
  color: #285ee4;
}
.zoom-modal-custom .zoom-toolbar .zoom-text {
  color: #fff;
  font-size: 14px;
  min-width: 45px;
  text-align: center;
}
.zoom-modal-custom .zoomable-area {
  position: relative;
  width: 100%;
  height: 70vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: hidden;
  background: #000;
}
.zoom-modal-custom .zoom-content-img {
  max-width: 90%;
  max-height: 90%;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-user-drag: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.payment-amount-wrapper {
  position: relative;
  display: inline-block;
}
.payment-amount-wrapper .paid-link {
  color: #285ee4;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}
.payment-amount-wrapper .paid-link:hover {
  color: rgb(21.3657024793, 64.097107438, 170.1342975207);
}
.payment-amount-wrapper .amount-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 150px;
  padding: 8px;
  background-color: #ffffff;
  border: 3px solid #285EE4;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 100;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  pointer-events: none;
}
.payment-amount-wrapper .amount-tooltip img {
  max-width: 100%;
  height: auto;
  display: block;
}
.payment-amount-wrapper:hover .amount-tooltip {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  .modal-inside .modal_title .title .title_content {
    margin-bottom: 10px;
  }
  .modal-inside .modal_title .title .title_content h3 {
    font-size: 24px;
  }
  .modal-inside .modal_title .title .title_content .link {
    font-size: 14px;
    margin-left: 10px;
  }
  .modal-inside .sc-search_content {
    max-width: unset;
  }
  .modal-inside .modal_footer .btn_group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .modal-inside .modal_footer .btn_group .btn {
    width: 100% !important;
  }
  .modal_standard .modal_title {
    padding: 15px;
  }
  .modal_standard .modal_content .import-file-form {
    padding: 15px;
  }
  .modal_standard .modal_content .import-file-form .file-drop-zone .file-drop-content .file-drop-instruction {
    font-size: 20px;
  }
  .modal_standard .modal_content .import-file-form .file-drop-zone .file-info .file-info-content {
    font-size: 16px;
    min-width: unset;
    max-width: 90%;
  }
  .modal_card .modal_title .title .title_content {
    margin-bottom: 0;
  }
  .alert_box .footer {
    width: 100%;
  }
  .alert_box .footer .btn_group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  #transfer_modal .amount_summary .summary_item {
    font-size: 14px;
  }
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.1);
  /* 半透明白色 */
  backdrop-filter: blur(5px);
  z-index: 9;
  display: none;
}

.custom_popover {
  display: none;
  position: fixed;
  min-width: 220px;
  max-width: 480px;
  width: auto;
  background: #fff;
  border: 2px solid;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  word-wrap: break-word;
  white-space: normal;
}
.custom_popover .popover_arrow {
  position: absolute;
  width: 0;
  height: 0;
  display: block;
}
.custom_popover .popover_header {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  padding: 8px 15px;
  color: #fff;
}
.custom_popover .popover_body {
  font-size: 14px;
  line-height: 1.5;
  padding: 15px;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
}
.custom_popover.popover_blue {
  border-color: #285EE4;
}
.custom_popover.popover_blue .popover_header {
  background-color: #285EE4;
}
.custom_popover.popover_blue.arrow-top .popover_arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #285EE4;
  top: -8px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.custom_popover.popover_blue.arrow-bottom .popover_arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #285EE4;
  bottom: -8px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.custom_popover.popover_blue.arrow-left .popover_arrow {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #285EE4;
  top: 50%;
  left: -8px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.custom_popover.popover_blue.arrow-right .popover_arrow {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #285EE4;
  top: 50%;
  right: -8px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.custom_popover.popover_brown {
  border-color: #E4B849;
}
.custom_popover.popover_brown .popover_header {
  background-color: #E4B849;
}
.custom_popover.popover_brown.arrow-top .popover_arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #E4B849;
  top: -8px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.custom_popover.popover_brown.arrow-bottom .popover_arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #E4B849;
  bottom: -8px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.custom_popover.popover_brown.arrow-left .popover_arrow {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #E4B849;
  top: 50%;
  left: -8px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.custom_popover.popover_brown.arrow-right .popover_arrow {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #E4B849;
  top: 50%;
  right: -8px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
@media (max-width: 480px) {
  .custom_popover {
    max-width: 90vw;
    left: 50% !important;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
  }
  .custom_popover .popover_arrow {
    display: none;
  }
}

.popover-anchor {
  position: relative;
  display: inline-block;
}
.popover-anchor .custom_popover.confirm_end {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border-radius: 20px;
  border: 2px solid transparent;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  text-align: center;
  z-index: 9999;
}
.popover-anchor .custom_popover.confirm_end .popover_header {
  background-color: transparent;
  color: #285EE4;
  font-size: 28px;
  margin: 15px 0;
  padding: 0;
}
.popover-anchor .custom_popover.confirm_end .popover_body {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #000;
  padding: 0;
}
.popover-anchor .custom_popover.confirm_end .popover_actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
}
.popover-anchor .custom_popover.confirm_end .popover_actions button {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.popover-anchor .custom_popover.confirm_end .popover_arrow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}

.progress-text {
  font-size: 16px;
  color: #3D3D3D;
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  background: #285ee4;
  -webkit-transition: width 0.4s ease;
  transition: width 0.4s ease;
}

.stepper-container .stepper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  position: relative;
}
.stepper-container .step-item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.stepper-container .step-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #DBDBDB;
  /* 預設灰色 */
  top: 4px;
  left: -50%;
  z-index: -1;
}
.stepper-container .line-segment {
  position: absolute;
  width: 80%;
  height: 1px;
  background-color: #DBDBDB;
  top: 4px;
  left: -40%;
  z-index: 1;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.stepper-container .step-item.active .line-segment {
  background-color: #285EE4;
}
.stepper-container .step-circle {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border: 1px solid #DBDBDB;
  border-radius: 50%;
  margin-bottom: 15px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.stepper-container .step-label {
  font-size: 18px;
  color: #BEBEBE;
}
.stepper-container .step-item.active .step-label {
  color: #285ee4;
}
.stepper-container .step-item.active .step-circle {
  background-color: #285ee4;
  border-color: #285ee4;
}
.stepper-container .step-item.active .step-line {
  background-color: #285ee4;
}

.progress-btn {
  position: relative;
  overflow: hidden;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.progress-btn:disabled {
  cursor: not-allowed;
  color: #fff;
  background-color: #C6C6C6;
}
.progress-btn:disabled:hover {
  color: #fff !important;
}

.progress-info {
  font-size: 16px;
  color: #999999;
  text-align: center;
}

.purchase {
  position: relative;
  margin: 0 20px 0 10px;
}
.purchase::after {
  content: "";
  width: 1px;
  height: 32px;
  background: #ecedf0;
  position: absolute;
  top: 50%;
  right: -15px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.purchase {
  /* --- 購買按鈕樣式 --- */
}
.purchase #purchaseBtn {
  min-width: 120px;
  min-height: 36px;
  background-color: #FFE607;
  color: #285ee4;
  font-weight: bold;
  border-radius: 4px;
  border: none;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  /* 關鍵：必須隱藏溢出，流光才不會跑出按鈕外 */
  overflow: hidden;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  /* --- 流光效果開始 --- */
}
.purchase #purchaseBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  /* 初始位置：隱藏在左側 */
  width: 50%;
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), color-stop(50%, rgba(255, 255, 255, 0.5)), to(rgba(255, 255, 255, 0)));
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  -webkit-transform: skewX(-25deg);
          transform: skewX(-25deg);
  /* 讓光線斜斜的比較好看 */
  -webkit-animation: purchase-shine 3s infinite;
          animation: purchase-shine 3s infinite;
  /* 每3秒循環一次 */
}
.purchase #purchaseBtn {
  /* --- 流光效果結束 --- */
}
.purchase #purchaseBtn .icon {
  max-height: 15px;
  position: absolute;
  right: 15px;
  z-index: 2;
  /* 確保圖示在光線上方 */
}
.purchase #purchaseBtn:hover {
  -webkit-filter: brightness(1.05);
          filter: brightness(1.05);
  /* 懸停時稍微變亮 */
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.purchase {
  /* 定義流光動畫 */
}
@-webkit-keyframes purchase-shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  /* 快速閃過 */
  100% {
    left: 100%;
  }
  /* 剩下的時間停留，直到下一個循環 */
}
@keyframes purchase-shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  /* 快速閃過 */
  100% {
    left: 100%;
  }
  /* 剩下的時間停留，直到下一個循環 */
}
.purchase {
  /* 下拉選單容器 */
}
.purchase #dropdownMenu {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 2px solid #FFE607;
  border-radius: 8px;
  margin-top: 5px;
  z-index: 1000;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  overflow: hidden;
}
.purchase #dropdownMenu.show {
  display: block;
  -webkit-animation: dropdown-slide-in 0.25s ease-out forwards;
          animation: dropdown-slide-in 0.25s ease-out forwards;
}
.purchase .dropdown-item {
  padding: 10px 12px;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.purchase .dropdown-item a {
  color: #285ee4;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.purchase .dropdown-item {
  /* --- 選項專屬閃光：跟購買按鈕配套 --- */
}
.purchase .dropdown-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 255, 255, 0.4)), to(transparent));
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  -webkit-transform: skewX(-20deg);
          transform: skewX(-20deg);
}
.purchase .dropdown-item:hover {
  background-color: #FFFBD9;
}
.purchase .dropdown-item:hover::after {
  left: 150%;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.purchase .dropdown-item:hover a {
  display: inline-block;
}
.purchase .dropdown-item:not(:last-child) {
  border-bottom: 2px solid #FFE607;
}
.purchase {
  /* 展開動畫：從上方輕微滑入並淡入 */
}
@-webkit-keyframes dropdown-slide-in {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes dropdown-slide-in {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
.purchase {
  /* 展開動畫 */
}
@-webkit-keyframes dropdown-fade-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@media (max-width: 1024px) {
  .purchase #dropdownMenu {
    right: 0;
  }
  .purchase .dropdown-item {
    font-size: 16px;
  }
}
@media (max-width: 576px) {
  .purchase #purchaseBtn {
    min-width: 80px;
  }
  .purchase #purchaseBtn .icon {
    max-height: 10px;
    position: absolute;
    right: 8px;
  }
}
@media (max-width: 480px) {
  .purchase #purchaseBtn {
    min-width: 65px;
  }
  .purchase #purchaseBtn .icon {
    max-height: 5px;
    right: 5px;
  }
}

@media (max-width: 1024px) {
  .purchase {
    margin: 0;
  }
  .purchase::after {
    display: none;
  }
}
/* ==============================
   自訂 Radio 元件樣式
   ============================== */
/* ------------------------------
   Radio Group（多個選項排列）
   ------------------------------ */
.radio_group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
}
.radio_group.vertical {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start !important;
      -ms-flex-align: start !important;
          align-items: start !important;
}
.radio_group .radio_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  /* 隱藏原生 radio */
}
.radio_group .radio_item input[type=radio] {
  display: none;
  /* 勾選狀態 → 顯示圓點 */
}
.radio_group .radio_item input[type=radio]:checked + label .custom_radio::after {
  -webkit-transform: scale(1);
          transform: scale(1);
}
.radio_group .radio_item label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  margin: 0;
}
.radio_group .radio_item .custom_radio {
  width: 24px;
  height: 24px;
  border: 2px solid #285EE4;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.radio_group .radio_item .custom_radio::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 12px;
  height: 12px;
  background: #285EE4;
  border-radius: 50%;
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

/* ------------------------------
   單一自訂 Radio（表格或特殊場景）
   ------------------------------ */
.custom_radio_wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.custom_radio_wrapper input[type=radio] {
  display: none;
}
.custom_radio_wrapper input[type=radio]:checked + .custom_radio::after {
  -webkit-transform: scale(1);
          transform: scale(1);
  opacity: 1;
}
.custom_radio_wrapper .custom_radio {
  width: 24px;
  height: 24px;
  border: 2px solid #285EE4;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.custom_radio_wrapper .custom_radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -6px;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: #285EE4;
  border-radius: 50%;
  -webkit-transform: scale(0);
          transform: scale(0);
  opacity: 0;
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transition: transform 0.2s ease, opacity 0.2s ease, -webkit-transform 0.2s ease;
}

/* ------------------------------
   Disabled 狀態
   ------------------------------ */
.radio_item.disabled,
.custom_radio_wrapper.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.radio_item.disabled .custom_radio,
.custom_radio_wrapper.disabled .custom_radio {
  border-color: #C6C6C6;
  background-color: #DBDBDB;
}
.radio_item.disabled .custom_radio::after,
.custom_radio_wrapper.disabled .custom_radio::after {
  background-color: #999999;
}

/* 原生 disabled radio */
input[type=radio][disabled] + .custom_radio {
  cursor: not-allowed;
  border-color: #C6C6C6;
  background-color: #DBDBDB;
}

input[type=radio][disabled]:checked + .custom_radio::after {
  background-color: #999999;
  -webkit-transform: scale(1);
          transform: scale(1);
}

.calendar_table th,
.calendar_table td {
  height: unset;
  max-height: unset;
}
.calendar_table tbody tr {
  vertical-align: top;
}
.calendar_table .date-header {
  width: 210px;
}

.shift-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
}
.shift-actions .shift-actions-add .btn-divider::after {
  right: -25px;
  background-color: #285EE4;
}

#btn-delete.is-active {
  background-color: #FF0000;
  color: #fff;
  cursor: pointer;
}

.employee-name {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 2;
  cursor: text;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: table-cell;
}

.employee-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
  font-size: 14px;
}
.employee-content .total-work-hour {
  display: inline-block;
  padding: 2px 16px;
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
  background-color: #285EE4;
  color: white;
}

.shift-cell-td {
  display: table-cell;
  vertical-align: top;
  padding: 4px 2px !important;
}
.shift-cell-td > .shift-items-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
}

.shift-cell-container .custom_checkbox_wrapper .custom_checkbox,
.shift-badge-container .custom_checkbox_wrapper .custom_checkbox {
  border-radius: 4px;
}

.shift-label {
  font-size: 14px;
}

.shift-time {
  font-size: 12px;
}

.shift-cell-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 1px solid #C6C6C6;
  background-color: #F7F8FA;
  padding: 10px 8px;
  border-radius: 8px;
  min-height: 50px;
  width: 100%;
  cursor: pointer;
}
.shift-cell-container:has(input.shift-cell:disabled) {
  background-color: #C6C6C6;
  cursor: not-allowed;
}
.shift-cell-container:has(input.shift-cell:disabled) .custom_checkbox_wrapper .custom_checkbox {
  background-color: #C6C6C6 !important;
  border-color: #999999 !important;
  cursor: not-allowed;
}

.shift-badge-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
}
.shift-badge-container .shift-badge {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: 8px;
  min-height: 50px;
  width: 100%;
  cursor: pointer;
  /* disabled 狀態 */
}
.shift-badge-container .shift-badge:has(input.shift-badge-checkbox:disabled) {
  background-color: #C6C6C6 !important;
  cursor: not-allowed;
}
.shift-badge-container .shift-badge:has(input.shift-badge-checkbox:disabled) .shift-label {
  color: #999999 !important;
}
.shift-badge-container .shift-badge:has(input.shift-badge-checkbox:disabled) .shift-time {
  color: #999999 !important;
}
.shift-badge-container .shift-badge:has(input.shift-badge-checkbox:disabled) .custom_checkbox_wrapper .custom_checkbox {
  background-color: #C6C6C6 !important;
  border-color: #999999 !important;
  cursor: not-allowed;
}
.shift-badge-container .shift-badge {
  /* 休息日 */
}
.shift-badge-container .shift-badge.shift-rest {
  background-color: #3ac5c5;
  color: #fff;
}
.shift-badge-container .shift-badge.shift-rest .custom_checkbox_wrapper .custom_checkbox {
  background-color: #3ac5c5;
  border: 2px solid #fff;
}
.shift-badge-container .shift-badge {
  /* 例假日 */
}
.shift-badge-container .shift-badge.shift-weekend {
  background-color: #6d9817;
  color: #fff;
}
.shift-badge-container .shift-badge.shift-weekend .custom_checkbox_wrapper .custom_checkbox {
  background-color: #6d9817;
  border: 2px solid #fff;
}
.shift-badge-container .shift-badge {
  /* 國定假日 */
}
.shift-badge-container .shift-badge.shift-holiday {
  background-color: #285ee4;
  color: #fff;
}
.shift-badge-container .shift-badge.shift-holiday .custom_checkbox_wrapper .custom_checkbox {
  background-color: #285ee4;
  border: 2px solid #fff;
}

#editShiftModal .form_group label {
  margin-bottom: 15px;
}
#editShiftModal .radio_group label {
  margin-bottom: 0;
}
#editShiftModal .radio_group.vertical {
  gap: 15px !important;
}

.overtime_section {
  margin-top: 20px;
  font-size: 20px;
}
.overtime_section .overtime_rows {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
.overtime_section .overtime_rows .overtime_field {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.overtime_section .overtime_rows .overtime_field label {
  margin-bottom: 0 !important;
}
.overtime_section .overtime_rows .overtime_field input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-size: 20px;
}

@media (max-width: 767px) {
  .overtime_section .overtime_rows {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
  }
}
.shifts-container .shift-item {
  border: 1px solid #DBDBDB;
  border-radius: 8px;
  padding: 15px;
  font-size: 20px;
}
.shifts-container .shift-item:not(:last-child) {
  margin-bottom: 15px;
}
.shifts-container .shift-item .shift-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.shifts-container .shift-item .shift-header .shift-header-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
}
.shifts-container .shift-item .shift-header .shift-header-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 30px;
}
.shifts-container .shift-item .shift-header .shift-header-actions .collapse-btn img {
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.shifts-container .shift-item .shift-header .shift-header-actions .collapse-btn.collapsed img {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.shifts-container .shift-item .shift-body {
  margin-top: 25px;
}
.shifts-container .shift-item .shift-body.collapsed {
  display: none;
}
.shifts-container .shift-item .shift-body .form_group:not(:last-child) {
  margin-bottom: 28px;
}

#overtime-alert-modal {
  display: none;
}
#overtime-alert-modal.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#overtime-alert-modal .overtime-alert-preference {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 15px;
}
#overtime-alert-modal .overtime-alert-preference .custom_checkbox_wrapper {
  margin-right: 10px;
}

.shift-day-active {
  background-color: #FFE8B8;
  color: #000;
}

.shift-evening-active {
  background-color: #FFD37A;
  color: #000;
}

.shift-night-active {
  background-color: #EC9E00;
  color: #000;
}

.shift-day {
  background: #ffe8b8;
}

.shift-evening {
  background: #ffd37a;
}

.shift-night {
  background: #ec9e00;
}

/* 休息日 */
.shift-rest {
  background-color: #3ac5c5;
  color: #fff;
}

/* 例假日 */
.shift-weekend {
  background-color: #6d9817;
  color: #fff;
}

/* 國定假日 */
.shift-holiday {
  background-color: #285ee4;
  color: #fff;
}

/* 平板：>=768px */
@media (min-width: 768px) {
  .shift-badge-container .shift-badge {
    gap: 8px;
    padding: 8px;
  }
}
/* 桌機：>=1024px */
@media (min-width: 1024px) {
  .shift-badge-container .shift-badge {
    gap: 8px;
  }
}
/* 大螢幕：>=1500px */
@media (min-width: 1500px) {
  .employee-name {
    padding: 15px !important;
  }
  .employee-name .employee-content {
    font-size: 18px;
    -webkit-box-orient: unset;
    -webkit-box-direction: unset;
        -ms-flex-direction: unset;
            flex-direction: unset;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .employee-name .employee-content .total-work-hour {
    font-size: 18px;
  }
  .shift-badge-container .shift-badge {
    gap: 5px;
  }
}
@media (min-width: 1920px) {
  .shift-label {
    font-size: 20px;
  }
}
/* ==============================
   SELECT ELEMENTS
   自訂 Select 元件樣式
   ============================== */
/* ------------------------------
   select_wrapper：包裹 select 的外層
   ------------------------------ */
.select_wrapper {
  position: relative;
  min-width: 220px;
}
.select_wrapper.no-limit {
  min-width: auto;
}
.select_wrapper select {
  width: 100%;
  padding: 8px 36px 8px 12px;
  color: #000;
  font-size: 16px;
  border: 1px solid #C6C6C6;
  border-radius: 8px;
  background-color: #fff;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  outline: none;
  -webkit-transition: border-color 0.3s;
  transition: border-color 0.3s;
}
.select_wrapper select:focus {
  border-color: #285EE4;
}
.select_wrapper select:invalid, .select_wrapper select[value=""], .select_wrapper select:has(option[value=""]:checked) {
  color: #BEBEBE;
}
.select_wrapper select option {
  color: #000;
}
.select_wrapper select::-webkit-input-placeholder {
  color: #999999;
  opacity: 1;
}
.select_wrapper select::-moz-placeholder {
  color: #999999;
  opacity: 1;
}
.select_wrapper select:-ms-input-placeholder {
  color: #999999;
  opacity: 1;
}
.select_wrapper select::-ms-input-placeholder {
  color: #999999;
  opacity: 1;
}
.select_wrapper select::placeholder {
  color: #999999;
  opacity: 1;
}
.select_wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #285EE4;
  border-bottom: 2px solid #285EE4;
  -webkit-transform: translateY(-50%) rotate(45deg);
          transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.select_wrapper.disabled select {
  background-color: #DBDBDB;
  color: #000;
  border-color: #C6C6C6;
  cursor: not-allowed;
}
.select_wrapper.disabled::after {
  background-image: url("../images/components/icon/ic_arrow-down_g.svg");
}
.select_wrapper.custom_multiselect .dropdown_btn {
  width: 100%;
  padding: 5px 36px 5px 12px;
  border: 1px solid #C6C6C6;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  text-align: left;
  position: relative;
  outline: none;
  -webkit-transition: border-color 0.3s;
  transition: border-color 0.3s;
  height: 36px;
  line-height: 1;
}
.select_wrapper.custom_multiselect .dropdown_btn:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 20px;
  height: 10px;
  pointer-events: none;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-image: url("../images/components/icon/ic_arrow-down_b.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
.select_wrapper.custom_multiselect .dropdown_menu {
  display: none;
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #C6C6C6;
  border-radius: 8px;
  background: #fff;
  margin-top: 2px;
  z-index: 999;
}
.select_wrapper.custom_multiselect .dropdown_menu label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 12px;
  margin-bottom: 0;
  cursor: pointer;
}
.select_wrapper.custom_multiselect .dropdown_menu label input {
  margin-right: 8px;
}
.select_wrapper.custom_multiselect .dropdown_menu label:hover {
  background-color: #ECECEC;
}
.select_wrapper.custom_multiselect.disabled .dropdown_btn {
  background-color: #DBDBDB;
  cursor: not-allowed;
}
.select_wrapper.custom_multiselect.disabled .dropdown_menu {
  pointer-events: none;
  opacity: 0.6;
}

/* =================== 自定義下拉選單 (Custom Select) =================== */
.custom-select {
  position: relative;
  font-family: Arial, sans-serif;
  width: 100%;
}
.custom-select:has(.select-arrow-active) {
  border-color: transparent;
}
.custom-select.is-invalid .select-selected {
  border: 2px solid #FF0000;
}
.custom-select.is-ellipsis {
  min-width: 0;
}
.custom-select.is-ellipsis .select-selected {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  min-width: 0;
  padding: 0 35px 0 12px;
}
.custom-select.is-ellipsis .select-selected .select-text {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.custom-select.open_filter input.search-items {
  display: block;
}
.custom-select select {
  display: none;
}
.custom-select .select-selected {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 36px 10px 16px;
  font-size: 16px;
  line-height: 1;
  color: #000;
  background-color: #fff;
  border: 1px solid #C6C6C6;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.custom-select .select-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-image: url("/static/v2/images/components/btn_type/slk_down_b.svg");
  background-repeat: no-repeat;
  background-position: center;
}
.custom-select .select-selected.select-arrow-active, .custom-select.select_changed .custom-select .select-selected {
  color: #000;
}
.custom-select .select-selected.select-arrow-active {
  z-index: 1001;
  border: 2px solid #658ae6;
}
.custom-select .select-selected.select-arrow-active::after {
  -webkit-transform: translateY(-50%) rotate(180deg);
          transform: translateY(-50%) rotate(180deg);
}
.custom-select .select-selected.select-arrow-active:not(.is-upward) {
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #658ae6;
}
.custom-select .select-selected.select-arrow-active.is-upward {
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.custom-select .select-items {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  background-color: #fff;
  border: 2px solid #658ae6;
  -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
          box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.custom-select .select-items:not(.is-upward) {
  top: 100%;
  border-top: none;
  border-radius: 0 0 8px 8px;
}
.custom-select .select-items[style*="bottom: 100%"] {
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.custom-select .select-items .search-items_content {
  height: 40px;
  padding: 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.custom-select .select-items div {
  padding: 10px 16px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  border-bottom: 1px solid #658ae6 !important;
}
.custom-select .select-items div:last-child {
  border-bottom: none !important;
}
.custom-select .select-items div:hover, .custom-select .select-items div.same-as-selected {
  background-color: #f0f4ff;
  color: #285EE4;
}
.custom-select .select-items {
  /* 捲軸樣式 */
}
.custom-select .select-items::-webkit-scrollbar {
  width: 6px;
}
.custom-select .select-items::-webkit-scrollbar-thumb {
  background: #c6c6c6;
  border-radius: 10px;
}
.custom-select .select-hide {
  display: none;
}
.custom-select div[title=""]:not(:has(.search-items)) {
  display: none !important;
}
.custom-select div:has(> .search-items) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #fff;
  min-height: 45px;
  padding: 5px !important;
}
.custom-select div:has(> .search-items) input.search-items {
  display: block;
  z-index: 2;
  width: calc(100% - 15px) !important;
  border: 1px solid #767676 !important;
  border-radius: 20px;
  background: #fff;
  height: 32px;
  font-size: 16px;
  top: unset;
  left: unset;
}
.custom-select div[title]:not([title=""]) {
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.custom-select div[title]:not([title=""]):hover {
  background-color: #f5f5f5;
}
.custom-select.size-xs {
  width: 70px;
}
.custom-select.size-sm {
  width: 100px;
}
.custom-select.size-md {
  width: 160px;
}
.custom-select.size-lg {
  width: 220px;
}
.custom-select.size-xl {
  width: 311px;
}
.custom-select.size-full {
  width: 100%;
}

/* 專門處理長文字省略的擴充類別 */
.custom-select.is-ellipsis {
  width: 100%;
  min-width: 0;
}
.custom-select.is-ellipsis .select-selected {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  /* 關鍵：必須設定 min-width 為 0，否則 flex 項目會撐開容器 */
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 35px;
}
.custom-select.is-ellipsis {
  /* 下拉選項也同步處理，維持美觀 */
}
.custom-select.is-ellipsis .select-items div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select_changed .select-selected {
  color: #000;
}

.select-selected-readonly {
  background: #E7E6E6;
  cursor: not-allowed;
  pointer-events: none;
}

#Drop-Down ul:nth-child(1) > li > a.is-invalid {
  border: 2px solid #FF0000 !important;
}

/* Modal 特殊處理 */
.modal-inside.allow-dropdown {
  overflow: visible !important;
}
.modal-inside.allow-dropdown .modal_dialog,
.modal-inside.allow-dropdown .modal_content {
  overflow: visible !important;
}

.slide_panel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: fixed;
  top: 100px;
  left: 120px;
  width: calc(100vw - 120px);
  max-width: 500px;
  height: calc(100vh - 100px);
  background-color: #f8f9fa;
  -webkit-box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
          box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  padding: 20px;
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.slide_panel.active {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
.slide_panel.slide_left {
  left: 120px;
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
}
.slide_panel.slide_left.active {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
.slide_panel.slide_right {
  right: 0;
  left: auto;
  -webkit-transform: translateX(100%);
          transform: translateX(100%);
}
.slide_panel.slide_right.active {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
.slide_panel .note {
  font-size: 16px;
  font-weight: normal;
  margin-left: 8px;
}
.slide_panel .title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}
.slide_panel .content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 5px;
}
.slide_panel .content .tab_header .tab_btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
}
.slide_panel .content .tab_header .tab_btn .tab_btn_item {
  position: relative;
  border: 0;
  font-size: 24px;
  font-weight: bold;
  background-color: transparent;
  color: #dbdbdb;
}
.slide_panel .content .tab_header .tab_btn .tab_btn_item.active {
  color: #285ee4;
}
.slide_panel .content .tab_header .tab_btn .tab_btn_item:not(:first-child) {
  padding-left: 16px;
}
.slide_panel .content .tab_header .tab_btn .tab_btn_item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  height: 50%;
  width: 1px;
  background-color: #d0d0d0;
}
.slide_panel .content .tab_header hr {
  margin: 15px 0 30px;
}
.slide_panel .content .tab_content .section_label {
  font-size: 24px;
  border-left: 2px solid #285ee4;
  padding: 0 8px;
  margin-bottom: 15px;
}
.slide_panel .content .tab_content .tab_pane {
  display: none;
}
.slide_panel .content .tab_content .tab_pane.active {
  display: block;
}
.slide_panel .content .tab_content .tab_pane .form_group {
  margin-bottom: 1.5rem;
}
.slide_panel .content .tab_content .tab_pane .form_group label {
  display: block;
  margin-bottom: 15px;
}
.slide_panel .content .tab_content .tab_pane .form_group input,
.slide_panel .content .tab_content .tab_pane .form_group select,
.slide_panel .content .tab_content .tab_pane .form_group textarea {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  border-radius: 8px;
  border: 2px solid #285ee4;
  -webkit-transition: border-color 0.3s;
  transition: border-color 0.3s;
  outline: none;
}
.slide_panel .content .tab_content .tab_pane .form_group input:focus,
.slide_panel .content .tab_content .tab_pane .form_group select:focus,
.slide_panel .content .tab_content .tab_pane .form_group textarea:focus {
  border-color: #1849c1;
  outline: none;
}
.slide_panel .content .tab_content .tab_pane .form_group input[type=checkbox], .slide_panel .content .tab_content .tab_pane .form_group input[type=radio],
.slide_panel .content .tab_content .tab_pane .form_group select[type=checkbox],
.slide_panel .content .tab_content .tab_pane .form_group select[type=radio],
.slide_panel .content .tab_content .tab_pane .form_group textarea[type=checkbox],
.slide_panel .content .tab_content .tab_pane .form_group textarea[type=radio] {
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
  cursor: pointer;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  padding: 10px;
  font-size: 18px;
  color: #285ee4;
  border-radius: 8px;
  border: 2px solid #285ee4;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  outline: none;
  cursor: pointer;
  position: relative;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item:not(:last-child) {
  margin-bottom: 25px;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item input[type=checkbox] {
  opacity: 0;
  position: absolute;
  left: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 2;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item input[type=checkbox]:checked + label::before {
  background-color: #285ee4;
  border-color: #fff;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item input[type=checkbox]:checked + label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(45deg);
          transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item label {
  margin-bottom: 0;
  padding-left: 40px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  position: relative;
  line-height: 1.2;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #285ee4;
  border-radius: 3px;
  background-color: #fff;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-transition: background-color 0.3s, border-color 0.3s;
  transition: background-color 0.3s, border-color 0.3s;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item.is-checked {
  background-color: #285ee4;
  border-color: #285ee4;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item.is-checked label {
  color: #fff;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item.is-checked label::before {
  background-color: #285ee4;
  border-color: #fff;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item.is-checked label::after {
  border-color: #fff;
}
.slide_panel .content .tab_content .tab_pane .form_group .checkbox_item.is-checked .fa_icon {
  color: #fff;
}
.slide_panel .content .tab_content hr {
  margin: 40px 0 32px;
}
.slide_panel .tab_actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  position: sticky;
  bottom: 0;
  left: 0;
  background-color: #f8f9fa;
}
.slide_panel .tab_actions .btn {
  min-width: 150px;
}
.slide_panel .tab_actions .btn:not(:last-child) {
  margin-right: 15px;
}

.my-components h2 {
  font-size: 35px;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 40px;
}
.my-components h3 {
  font-size: 20px;
  color: #6a6a6a;
  font-weight: bold;
  margin-bottom: 16px;
}

.sc-components {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  width: 100%;
}
.sc-components .item_list {
  margin-bottom: 32px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.sc-components .item_list.item_list_100w {
  width: 100%;
}
.sc-components .item_list > .item_ul_group {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  margin-bottom: 16px;
  position: relative;
}
.sc-components .item_list > .item_ul_group .group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.sc-components .item_list > .item_ul_group.dividing_line {
  padding-right: 24px;
}
.sc-components .item_list > .item_ul_group.dividing_line::after {
  content: "";
  position: absolute;
  bottom: 48px;
  right: 20px;
  width: 2px;
  height: 110px;
  background: #ccc;
}
.sc-components .item_list ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.sc-components .item_list ul li {
  width: 150px;
  height: 150px;
  margin-right: 24px;
  margin-bottom: 24px;
}
.sc-components .item_list ul li .sc_item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: unset;
      -ms-flex-pack: unset;
          justify-content: unset;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 2px solid #285ee4;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.sc-components .item_list ul li .sc_item.sc_item_warning {
  border-color: #e4b849;
}
.sc-components .item_list ul li .sc_item img {
  width: 100%;
  height: 95px;
  -webkit-transition: -webkit-filter 0.2s ease;
  transition: -webkit-filter 0.2s ease;
  transition: filter 0.2s ease;
  transition: filter 0.2s ease, -webkit-filter 0.2s ease;
}
.sc-components .item_list ul li .sc_item span.item_sr_title {
  font-size: 18px;
  font-weight: normal;
  margin: 8px 0 16px;
}
.sc-components .item_list ul li .sc_item span.item_multi_title {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.1;
}
.sc-components .item_list ul li:hover .sc_item img, .sc-components .item_list ul li.active .sc_item img {
  -webkit-filter: brightness(0) invert(100%);
          filter: brightness(0) invert(100%);
}
.sc-components .item_list.item_comment ul li {
  margin-bottom: 36px;
  text-align: center;
}
.sc-components .item_list.item_comment ul li > p {
  margin-top: 8px;
  font-size: 18px;
  color: #285ee4;
}
.sc-components .item_list .div_remark {
  color: #285ee4;
  font-size: 18px;
  margin-top: -12px;
}
.sc-components .component_dividing_line {
  position: relative;
  padding-right: 32px;
}
.sc-components .component_dividing_line::after {
  content: "";
  position: absolute;
  bottom: 40px;
  right: 28px;
  width: 2px;
  height: 110px;
  background: #ccc;
}
@media screen and (max-width: 1277px) {
  .sc-components .dividing_line::after {
    display: none;
    padding-right: 0;
  }
}
@media screen and (max-width: 600px) {
  .sc-components .item_list ul li {
    margin: 8px;
  }
  .sc-components .item_list .div_remark {
    margin: 8px;
  }
  .sc-components .item_list > .item_ul_group .dividing_line {
    padding-right: 0;
  }
}

.status-tab-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}
.status-tab-group .status-tab-item {
  position: relative;
  width: 100%;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.status-tab-group .status-tab-item label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 5px 20px;
  margin-bottom: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.status-tab-group .status-tab-item .tab_btn_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.status-tab-group .status-tab-item .check {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 15px;
  height: 15px;
  z-index: 1;
}
.status-tab-group .status-tab-item .svg-icon path {
  fill: #C6C6C6;
  -webkit-transition: fill 0.3s;
  transition: fill 0.3s;
}
.status-tab-group .status-tab-item .label-text {
  color: #BEBEBE;
  font-size: 14px;
}
.status-tab-group .status-tab-item.active {
  border: 1px solid #285EE4;
  background-color: #F0F4FF;
}
.status-tab-group .status-tab-item.active .svg-icon path {
  fill: #285EE4;
}
.status-tab-group .status-tab-item.active .label-text {
  color: #285EE4;
}
.status-tab-group .status-tab-item:hover:not(.active) {
  background-color: #F5F7FA;
}
.status-tab-group .status-tab-item:hover:not(.active) .svg-icon path {
  fill: #999;
}
.status-tab-group .status-tab-item input[disabled] + label {
  cursor: not-allowed !important;
  background-color: #DBDBDB !important;
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
}
.status-tab-group .status-tab-item input[disabled] + label * {
  pointer-events: none;
}
.status-tab-group .status-tab-item input[disabled] + label:hover .svg-icon path {
  fill: #C6C6C6;
}

.u-table-container {
  border: 1px solid #e2e8f0;
  background-color: #fff;
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 80vh;
}

.u-table-scroll {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.u-table-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.u-table-scroll::-webkit-scrollbar-thumb {
  background: #285EE4;
  border-radius: 10px;
}

.u-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  color: #334155;
  min-width: 1000px;
}
.u-table.is-compact {
  min-width: auto;
}
.u-table.is-layout-fixed {
  table-layout: fixed;
}
.u-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #285EE4;
  color: #ffffff;
  padding: 8px 16px;
  text-align: center;
  white-space: nowrap;
}
.u-table thead th.col-checkbox {
  width: 60px;
}
.u-table thead th.col-checkbox .custom_checkbox {
  margin: 0;
}
.u-table tbody tr {
  background-color: #fff;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.u-table tbody tr:hover td {
  background-color: #f8faff;
}
.u-table tbody tr.is-error td {
  background-color: #fff1f0;
}
.u-table tbody tr td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  white-space: nowrap;
}
.u-table tbody tr td .u-table-input {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 6px 10px;
}
.u-table tbody tr td .u-table-input:focus {
  border-color: #285EE4;
  outline: none;
}
.u-table tbody tr td.col-checkbox {
  width: 60px;
}
.u-table tbody tr td.col-checkbox .custom_checkbox {
  margin-right: 0;
}
.u-table tbody tr:last-child td {
  border-bottom: none;
}

.u-table-striped tbody tr:nth-child(odd) {
  background-color: #fcfcfc !important;
}
.u-table-striped tbody tr:nth-child(even) {
  background-color: #f6f6f6 !important;
}
.u-table-striped tbody tr:hover {
  background-color: #f0f4ff;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}
table tr {
  color: #000;
}
table th,
table td {
  padding: 0 8px;
  height: 44px;
  max-height: 44px;
  text-align: center;
  vertical-align: middle;
}
table th {
  font-size: 18px;
  font-weight: normal;
  line-height: 1.5;
  color: #fff;
  border: none;
  white-space: nowrap;
}
table th.text-right {
  text-align: right;
}
table th.text-center {
  text-align: center;
}
table th.text-left {
  text-align: left;
}
table th.table_title {
  letter-spacing: 16px;
}
table th .fa-sort {
  cursor: pointer;
}
@media (max-width: 1024px) {
  table th {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  table th {
    font-size: 14px;
  }
}
table td {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
}
table td a {
  color: #0052D9;
  text-decoration: underline;
}
table td select {
  width: auto;
  min-width: 130px;
}
table td span.text-alert {
  display: block;
}
table td.tb-itemname {
  text-align: left;
}
table td.tb-subtotal {
  text-align: right !important;
}
table td.tb-percent {
  text-align: right !important;
}
table td.tb_amount {
  text-align: right !important;
}
table td.tb_showdiv {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1024px) {
  table td {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  table td {
    font-size: 14px;
  }
}
table.primary_table th {
  background-color: #285EE4;
}
table.secondary_table th {
  background-color: #2E4A8F;
}
table.accent_table th {
  background-color: #F29423;
}

table.table-sm th,
table.table-sm td {
  height: 36px;
  max-height: 36px;
  font-size: 16px;
}

table.table-xs th,
table.table-xs td {
  height: 28px;
  max-height: 28px;
}

.table_responsive {
  overflow: auto;
}
.table_responsive.fixhead thead th {
  position: sticky !important;
  top: 0;
  z-index: 10;
  background-color: #285EE4;
}
.table_responsive.fixhead th.col_checkbox,
.table_responsive.fixhead th.col_radio {
  position: sticky !important;
  left: 0;
  top: 0;
  z-index: 40 !important;
  background-color: #285EE4 !important;
}
.table_responsive.fixhead th.column_selector_wrapper {
  position: sticky !important;
  right: 0 !important;
  top: 0;
  z-index: 110 !important;
}
.table_responsive.fixhead .data_table td.col_checkbox,
.table_responsive.fixhead .data_table td.col_radio {
  position: sticky !important;
  left: 0;
  z-index: 9 !important;
  background-color: #fff;
  -webkit-box-shadow: 2px 0 5px -2px rgba(0, 0, 0, 0.1);
          box-shadow: 2px 0 5px -2px rgba(0, 0, 0, 0.1);
}
.table_responsive.fixhead .data_table td.column_selector_wrapper {
  position: sticky !important;
  right: 0;
  z-index: 9 !important;
  background-color: #fff !important;
  -webkit-box-shadow: -2px 0 5px -2px rgba(0, 0, 0, 0.1);
          box-shadow: -2px 0 5px -2px rgba(0, 0, 0, 0.1);
}
.table_responsive.fixhead .column_selector_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
}

.table-container {
  background: #fff;
  border-radius: 16px 16px 0 0;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  position: relative;
  min-height: auto;
  /* 桌機 */
}
.table-container .content_item {
  padding: 0 15px;
}
.table-container .table_header {
  padding: 18px 25px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.table-container .table_header .item-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}
.table-container .table_header .item-group .item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.table-container .table_header .item-group .item .title {
  margin-right: 5px;
  color: #285EE4;
}
.table-container .table_header .item-group .item:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 20px;
  background-color: #C6C6C6;
  margin-left: 20px;
}
.table-container .table_header .item {
  font-size: 20px;
}
.table-container .table_header .form_row .form_group .custom-select .select-selected {
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}
.table-container .table_content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-bottom: 10px;
}
.table-container .table_content .highlight {
  background-color: #F29423;
}
.table-container .table_content.table-fit-height .table_responsive {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  overflow-y: hidden;
  max-height: none;
}
.table-container .table_content.table-scroll .table_responsive {
  overflow-y: auto;
}
.table-container .table_content.table-scroll .table_responsive .data_table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.table-container .table_footer_btn {
  position: absolute;
  bottom: 5%;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
  z-index: 10;
}

/* ---僅在大尺寸桌機螢幕（垂直空間充足）時才給予固定最小高度 --- */
@media screen and (min-height: 850px) {
  .table-container {
    min-height: 450px !important;
  }
}
.tableFixHead {
  min-height: 450px;
  background-color: #fff;
}
@media (max-width: 767px) {
  .tableFixHead {
    overflow: scroll;
  }
}

.data_table.no-limit {
  min-width: auto !important;
  width: auto !important;
}
.data_table th,
.data_table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.data_table .row-selected {
  background-color: #E6EDFF !important;
}
.data_table th.sort_th {
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.data_table th.sort_th:hover {
  background-color: #395CB3 !important;
}
.data_table th.sort_th.is-sorted {
  background-color: #2E4A8F !important;
}
.data_table th.filter_th {
  cursor: default;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.data_table th.filter_th:has(.filter_icon:hover) {
  background-color: #395CB3 !important;
}
.data_table th.filter_th.is-filtered {
  background-color: #2E4A8F !important;
  color: #fff;
}
.data_table th.filter_th .filter_icon {
  cursor: pointer;
}
.data_table td {
  word-break: break-word;
  overflow-wrap: break-word;
}
.data_table tr.header-level {
  background-color: #fff !important;
  color: #383838;
}
.data_table tr.header-level td {
  color: #285EE4;
  text-align: left !important;
  padding: 0 20px;
}
.data_table tr.header-level td:first-child {
  position: relative;
}
.data_table tr.header-level:hover {
  background-color: #DBDBDB;
  cursor: pointer;
}
.data_table tr.header-level.active {
  background-color: #bebebe;
}
.data_table tr.header-level.has-sub td:first-child::after {
  content: "";
  width: 44px;
  height: 44px;
  position: absolute;
  top: 0;
  margin-left: 16px;
  background-image: url(../../../static/v2/images/tb_down_b.svg);
  cursor: pointer;
  -webkit-transform: scale(0.95) rotate(0deg);
          transform: scale(0.95) rotate(0deg);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.data_table tr.header-level.has-sub.open td:first-child::after {
  -webkit-transform: scale(0.95) rotate(180deg);
          transform: scale(0.95) rotate(180deg);
}
.data_table tr.header-level:not(.has-sub) td:first-child {
  padding-left: 24px;
}
.data_table tr.sub-level {
  display: table-row;
}
.data_table tr.sub-level.collapsed {
  display: none;
}
.data_table tr.footer-level {
  background-color: #ececec;
}
.data_table tr.footer-level td.tb-itemname {
  padding: 0 20px;
}
.data_table tr.calculate-level {
  background-color: #2E4A8F;
  color: #fff;
}
.data_table tr.calculate-level td.tb-itemname {
  padding: 0 20px;
}
.data_table .column_data th {
  background-color: #ECECEC;
  color: #000;
}
.data_table .col_checkbox,
.data_table .col_radio {
  width: 44px;
}
.data_table .col_checkbox .custom_checkbox_wrapper,
.data_table .col_radio .custom_checkbox_wrapper {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.data_table .col_checkbox.active,
.data_table .col_radio.active {
  background-color: #2E4A8F;
}
.data_table .col-xs {
  width: 80px;
}
.data_table .col-sm {
  width: 128px;
}
.data_table .col-md {
  width: 144px;
}
.data_table .col-lg {
  width: 176px;
}
.data_table .col-xl {
  width: 213px;
}
.data_table .col_singleActive {
  width: 100px;
}
.data_table .col_range {
  width: 200px;
}
.data_table.text-sm th,
.data_table.text-sm td {
  font-size: 16px;
}
@media (max-width: 768px) {
  .data_table {
    min-width: unset;
  }
  .data_table th,
  .data_table td {
    white-space: nowrap;
  }
}

.item_table td {
  text-align: left;
}

.category-item-container span {
  text-align: left;
}

.nodata_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background-color: #fff;
  margin: 0 !important;
  padding: 40px 0;
}

/* min-width 專用 class */
.min_w1000 {
  min-width: 1000px;
}

.min_w1500 {
  min-width: 1500px;
}

.min_w2000 {
  min-width: 2000px;
}

.min_w2500 {
  min-width: 2500px;
}

.min_w3000 {
  min-width: 3000px;
}

.min_w3500 {
  min-width: 3500px;
}

.optional-cell {
  cursor: pointer;
}
.optional-cell input,
.optional-cell select {
  background-color: #fff;
  border: 1px solid #DBDBDB;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.optional-cell input:focus,
.optional-cell select:focus {
  border: 2px solid #285EE4;
  outline: none;
}

.required-cell {
  cursor: pointer;
}
.required-cell input {
  width: unset;
}
.required-cell input,
.required-cell select {
  background-color: #fff;
  border: 2px solid #FF0000;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.required-cell input:focus,
.required-cell select:focus {
  border: 2px solid #FF0000;
  outline: none;
}

.numeric {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

th.tb-item {
  min-width: 120px;
}

td.tb-amount {
  text-align: right !important;
}

.error-border {
  border: 1px solid red;
}

.error-msg {
  color: red;
  font-size: 12px;
  margin-top: 2px;
}

.table_striped tbody tr:nth-child(odd) {
  background-color: #fcfcfc;
}
.table_striped tbody tr:nth-child(odd) td.col_checkbox,
.table_striped tbody tr:nth-child(odd) td.col_radio,
.table_striped tbody tr:nth-child(odd) td.column_selector_wrapper {
  background-color: #fcfcfc !important;
}
.table_striped tbody tr:nth-child(even) {
  background-color: #f6f6f6;
}
.table_striped tbody tr:nth-child(even) td.col_checkbox,
.table_striped tbody tr:nth-child(even) td.col_radio,
.table_striped tbody tr:nth-child(even) td.column_selector_wrapper {
  background-color: #f6f6f6 !important;
}
.table_striped tbody tr.selected,
.table_striped tbody tr.row-selected {
  background-color: #E6EDFF !important;
}
.table_striped tbody tr.selected td.col_checkbox,
.table_striped tbody tr.selected td.col_radio,
.table_striped tbody tr.selected td.column_selector_wrapper,
.table_striped tbody tr.row-selected td.col_checkbox,
.table_striped tbody tr.row-selected td.col_radio,
.table_striped tbody tr.row-selected td.column_selector_wrapper {
  background-color: #E6EDFF !important;
}
.table_striped tbody tr:hover:not(.selected):not(.row-selected) {
  background-color: #f0f4ff;
}
.table_striped tbody tr:hover:not(.selected):not(.row-selected) td.col_checkbox,
.table_striped tbody tr:hover:not(.selected):not(.row-selected) td.col_radio,
.table_striped tbody tr:hover:not(.selected):not(.row-selected) td.column_selector_wrapper {
  background-color: #f0f4ff !important;
}

.table_responsive.fixhead td.col_checkbox,
.table_responsive.fixhead td.col_radio,
.table_responsive.fixhead td.column_selector_wrapper {
  position: sticky !important;
  z-index: 9;
  background-color: #fff;
}

.table_lined {
  border-collapse: collapse;
  width: 100%;
}
.table_lined tr {
  border-bottom: 1px solid #EFEFEF;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
.table_lined tr:last-child {
  border-bottom: none;
}
.table_lined tr:hover {
  background-color: #f9f9f9;
}
.table_lined th,
.table_lined td {
  padding: 8px;
}
.table_lined .table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .table_lined .table-container {
    display: block;
  }
  .table_lined table {
    width: 100%;
  }
}

.table_noborder {
  width: 100%;
  border-collapse: collapse;
}
.table_noborder th,
.table_noborder td {
  border: none;
  text-align: left;
  color: #000;
}
.table_noborder td:last-child,
.table_noborder th:last-child {
  text-align: right;
}

/* 固定 header */
.table_fixed_header thead th {
  position: sticky;
  top: 0;
  background-color: #285EE4;
  color: #fff;
  z-index: 10;
}
.table_fixed_header thead th:first-child {
  left: 0;
  z-index: 20 !important;
}
.table_fixed_header thead th:last-child {
  right: 0;
  z-index: 20 !important;
}

/* 固定 body 內第一欄 + 最後一欄 */
.table_fixed_col th:first-child {
  position: sticky;
  left: 0;
  z-index: 5 !important;
}
.table_fixed_col td:first-child {
  position: sticky;
  left: 0;
  background-color: inherit;
  z-index: 5 !important;
}
.table_fixed_col th:last-child {
  position: sticky;
  right: 0;
  z-index: 5 !important;
  min-width: 50px;
}
.table_fixed_col td:last-child {
  position: sticky;
  right: 0;
  min-width: 50px;
  background-color: inherit;
}

.table_compact th,
.table_compact td {
  padding: 0 !important;
}

.th-bordered th {
  border: 1px solid #fff;
}

.table-minh-300 {
  min-height: 300px;
  max-height: 60vh;
  overflow-y: auto;
}

.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin-top: 16px;
}
.pagination .spacer {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.pagination .action {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.pagination .action .prev {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid #b8b8b8;
  margin-right: 15px;
}
.pagination .action .next {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #b8b8b8;
  margin-left: 15px;
}
.pagination .action ul {
  border-radius: 7px;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.pagination .action ul li {
  background: #fff;
}
.pagination .action ul li a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-align: center;
  height: 28px;
  width: 40px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 17px;
  color: #646464;
}
.pagination .action ul li a.active {
  background: #285EE4;
  color: #fff;
}
.pagination .info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  font-size: 15px;
  color: #767676;
}
.pagination .info .total_page {
  margin-right: 20px;
}

.table_actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.editable-table td input,
.editable-table td select {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  height: 32px;
  outline: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.editable-table td.required-cell input,
.editable-table td.required-cell select {
  border: 2px solid red;
  color: red;
}
.editable-table td.required-cell input:hover,
.editable-table td.required-cell select:hover {
  border: 2px solid #d0021b;
  -webkit-box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
          box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}
.editable-table td.required-cell input:focus,
.editable-table td.required-cell select:focus {
  border: 2px solid #d0021b;
  -webkit-box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
          box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}
.editable-table td.required-cell input::-webkit-input-placeholder, .editable-table td.required-cell select::-webkit-input-placeholder {
  color: red;
  opacity: 1;
}
.editable-table td.required-cell input::-moz-placeholder, .editable-table td.required-cell select::-moz-placeholder {
  color: red;
  opacity: 1;
}
.editable-table td.required-cell input:-ms-input-placeholder, .editable-table td.required-cell select:-ms-input-placeholder {
  color: red;
  opacity: 1;
}
.editable-table td.required-cell input::-ms-input-placeholder, .editable-table td.required-cell select::-ms-input-placeholder {
  color: red;
  opacity: 1;
}
.editable-table td.required-cell input::placeholder,
.editable-table td.required-cell select::placeholder {
  color: red;
  opacity: 1;
}
.editable-table td.required-cell select option[value=""][disabled] {
  color: red;
}
.editable-table td.required-cell select option {
  color: #333333;
  background-color: #ffffff;
}
.editable-table td.optional-cell input,
.editable-table td.optional-cell select {
  border: 1px solid #DBDBDB;
  color: #333;
}
.editable-table td.optional-cell input:focus,
.editable-table td.optional-cell select:focus {
  -webkit-box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
          box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}
.editable-table td.optional-cell input::-webkit-input-placeholder, .editable-table td.optional-cell select::-webkit-input-placeholder {
  color: #C6C6C6;
  opacity: 1;
}
.editable-table td.optional-cell input::-moz-placeholder, .editable-table td.optional-cell select::-moz-placeholder {
  color: #C6C6C6;
  opacity: 1;
}
.editable-table td.optional-cell input:-ms-input-placeholder, .editable-table td.optional-cell select:-ms-input-placeholder {
  color: #C6C6C6;
  opacity: 1;
}
.editable-table td.optional-cell input::-ms-input-placeholder, .editable-table td.optional-cell select::-ms-input-placeholder {
  color: #C6C6C6;
  opacity: 1;
}
.editable-table td.optional-cell input::placeholder,
.editable-table td.optional-cell select::placeholder {
  color: #C6C6C6;
  opacity: 1;
}
.editable-table td.optional-cell select option[value=""][disabled] {
  color: #C6C6C6;
}

@media (max-width: 1024px) {
  table th,
  table td {
    padding: 4px;
  }
  .table-container .table_header {
    gap: 10px;
  }
  .table-container .table_header .datepicker-outter {
    line-height: 2;
  }
  .table-container .table_header .sc-datepicker {
    margin: 0 !important;
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  .table-container .table_header .btn {
    display: block;
    width: 100%;
    min-height: 40px;
  }
}
@media (max-width: 768px) {
  .table-container .table_header {
    padding: 10px 15px;
  }
  .data_table td img {
    max-width: 24px;
  }
  .table-minh-mobile {
    min-height: 300px;
  }
}
.balance-sheet-page {
  max-width: 1408px;
}
.balance-sheet-page .table_content {
  height: calc(100vh - 300px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.balance-sheet-page .table_content .table_responsive {
  height: unset;
}
.balance-sheet-page .table_content .table_group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  height: 100%;
}
.balance-sheet-page .table_content .table_main {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 50%;
          flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.balance-sheet-page .table_content .table_main .table_wrapper {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  overflow-x: auto;
}
.balance-sheet-page .table_content .table_main .data_table {
  width: 100%;
  border-collapse: collapse;
}
.balance-sheet-page .table_content .table_main .data_table thead tr th {
  position: sticky;
  z-index: 10;
}
.balance-sheet-page .table_content .table_main .data_table thead tr:first-child th {
  top: 0;
  z-index: 12;
  height: 44px;
  border-bottom: 1px solid #ccc;
}
.balance-sheet-page .table_content .table_main .data_table thead tr:nth-child(2) th {
  top: 44px;
  z-index: 11;
  background-color: #ECECEC;
  height: 36px;
  border-bottom: 1px solid #ccc;
}
.balance-sheet-page .table_content .table_main .data_table.secondary_table thead tr:first-child th {
  background-color: #2E4A8F;
  color: #fff;
}
.balance-sheet-page .table_content .table_main .data_table.accent_table thead tr:first-child th {
  background-color: #F29423;
  color: #fff;
}
.balance-sheet-page .table_content .table_main .data_table tbody tr.calculate-level {
  background-color: transparent;
}
.balance-sheet-page .table_content .table_main .data_table tbody tr.calculate-level td {
  position: sticky;
  bottom: 0;
  z-index: 9;
  background-color: transparent;
}
.balance-sheet-page .table_content .table_main .data_table tbody tr.calculate-level.left td {
  background-color: #2E4A8F;
  color: #fff;
}
.balance-sheet-page .table_content .table_main .data_table tbody tr.calculate-level.right td {
  background-color: #F29423;
  color: #fff;
}
@media (max-width: 1024px) {
  .balance-sheet-page .table_content .table_main {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    width: 680px;
  }
  .balance-sheet-page .table_content .table_group {
    min-width: -webkit-fit-content;
    min-width: -moz-fit-content;
    min-width: fit-content;
  }
  .balance-sheet-page .table_content .table_responsive {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

.table_header:has(.select-arrow-active, .open_filter) {
  position: relative;
  z-index: 100 !important;
}
.table_header:has(.select-arrow-active, .open_filter) + .table_responsive,
.table_header:has(.select-arrow-active, .open_filter) + form .table_responsive {
  position: relative;
  z-index: 1 !important;
}

.more-count-link {
  position: relative;
  font-weight: bold;
  text-decoration: underline !important;
  font-size: 18px;
}
.more-count-link:hover {
  text-decoration: underline !important;
}

.invoice-popover {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 2px solid #285ee4;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 150px;
}
.invoice-popover .popover-item {
  padding: 6px 24px;
  border-bottom: 1px solid #BACBF6;
}
.invoice-popover .popover-item:last-child {
  border-bottom: none;
}

.col-w-2 {
  width: 2%;
}

.col-w-4 {
  width: 4%;
}

.col-w-5 {
  width: 5%;
}

.col-w-6 {
  width: 6%;
}

.col-w-8 {
  width: 8%;
}

.col-w-10 {
  width: 10%;
}

.col-w-15 {
  width: 15%;
}

.col-w-20 {
  width: 20%;
}

.col-w-25 {
  width: 25%;
}

.col-w-30 {
  width: 30%;
}

.col-w-33 {
  width: 33.3333%;
}

.col-w-35 {
  width: 35%;
}

.col-w-40 {
  width: 40%;
}

.col-w-45 {
  width: 45%;
}

.col-w-50 {
  width: 50%;
}

.col-w-60 {
  width: 60%;
}

.col-w-66 {
  width: 66.6667%;
}

.col-w-70 {
  width: 70%;
}

.col-w-75 {
  width: 75%;
}

.col-w-80 {
  width: 80%;
}

.col-w-90 {
  width: 90%;
}

.col-w-100 {
  width: 100%;
}

.i_info {
  content: "";
  background-image: url(../../images/components/info/info_qm2_v1.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: block;
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-left: 5px;
}
.i_info.shiftPerson {
  background-image: url(../../../v2/images/components/icon/ic_tag.svg);
}
.i_info.is-red {
  background-image: url(../../../v2/images/components/icon/ic_alert.svg);
}

.tippy-box {
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}

.tippy-box[data-theme~=red] {
  background-color: red;
  border: 2px solid red;
  color: #fff;
}
.tippy-box[data-theme~=red] .tippy-arrow {
  color: red;
}
.tippy-box[data-theme~=red] .tippy-arrow::before {
  border-bottom-color: red;
}

.table-container {
  position: relative;
  /* 操作工具列主體 */
}
.table-container .table_action_toolbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 75px;
  background-color: #ffffff;
  border: 2px solid #285EE4;
  border-radius: 16px 16px 0 0;
  z-index: 110;
  padding: 8px 24px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}
.table-container .table_action_toolbar .left_actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.table-container .table_action_toolbar .left_actions .selected_count {
  color: #285EE4;
  font-size: 16px;
  margin-left: 16px;
}
.table-container .table_action_toolbar .more_action_container {
  position: relative;
}
.table-container .table_action_toolbar .more_action_container .action_dropdown_menu {
  position: fixed !important;
  background-color: #fff;
  border: 2px solid #285EE4;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  z-index: 9999;
  list-style: none;
}
.table-container .table_action_toolbar .more_action_container .action_dropdown_menu li {
  padding: 8px 20px;
  font-size: 20px;
  text-align: center;
  color: #383838;
  cursor: pointer;
  white-space: nowrap;
}
.table-container .table_action_toolbar .more_action_container .action_dropdown_menu li:hover {
  background-color: #f5f8ff;
  color: #285ee4;
}
.table-container .table_action_toolbar .more_action_container .action_dropdown_menu li:not(:last-child) {
  border-bottom: 1px solid #285EE4;
}
.table-container .table_action_toolbar .more_action_container .action_dropdown_menu li:first-child {
  border-radius: 8px 8px 0 0;
}
.table-container .table_action_toolbar .more_action_container .action_dropdown_menu li:last-child {
  border-radius: 0 0 8px 8px;
}
.table-container .table_header {
  position: relative;
  z-index: 10;
  min-height: 75px;
}

.action-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 10px;
}
.action-toolbar .custom_checkbox_wrapper {
  width: unset !important;
}

@media (max-width: 1279px) {
  .table-container .table_action_toolbar {
    min-height: 82px;
  }
}
@media (max-width: 992px) {
  .table-container .table_action_toolbar {
    top: -10px;
    padding: 8px 12px;
  }
  .table-container .left_actions {
    font-size: 14px;
  }
  .table-container .btn_group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    max-width: 100%;
  }
  .table-container .btn_group button {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    padding: 4px 8px;
    font-size: 14px;
  }
  .action_dropdown_menu {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    -webkit-transform: translate(-50%, -50%) !important;
            transform: translate(-50%, -50%) !important;
    width: 80% !important;
    min-width: unset !important;
    -webkit-box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5) !important;
            box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5) !important;
  }
}
@media (max-width: 598px) {
  .table-container .table_action_toolbar {
    min-height: 105px;
    max-height: 105px;
  }
}
.color-primary {
  color: #285EE4;
}

.view-only-mode {
  pointer-events: auto;
}
.view-only-mode input,
.view-only-mode select,
.view-only-mode textarea {
  pointer-events: none;
  background-color: #DBDBDB !important;
}
.view-only-mode .custom-select .select-selected {
  pointer-events: none;
  background-color: #DBDBDB !important;
}
.view-only-mode .radio_group {
  pointer-events: none;
}
.view-only-mode .radio_group .radio_item {
  opacity: 0.8;
  cursor: not-allowed;
}
.view-only-mode .radio_group .radio_item input[type=radio]:not(:checked) + label .custom_radio {
  background-color: #f0f0f0;
  border-color: #ddd;
}
.view-only-mode .radio_group .radio_item input[type=radio]:checked + label .custom_radio {
  -webkit-filter: grayscale(1);
          filter: grayscale(1);
}
.view-only-mode .delete-icon,
.view-only-mode .required_data,
.view-only-mode .action-row,
.view-only-mode .action-toolbar,
.view-only-mode .form_action .btn-primary {
  display: none !important;
}
.view-only-mode .type_select.status-tab-group {
  pointer-events: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}
.view-only-mode .type_select.status-tab-group .status-tab-item {
  cursor: not-allowed;
  border: 1px solid #E0E0E0;
}
.view-only-mode .type_select.status-tab-group .status-tab-item:not(.active) {
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
  background-color: #f9f9f9 !important;
}
.view-only-mode .type_select.status-tab-group .status-tab-item:not(.active) .svg-icon path {
  fill: #BEBEBE !important;
}
.view-only-mode .type_select.status-tab-group .status-tab-item.active {
  opacity: 1;
  background-color: #fff !important;
  border: 2px solid #000 !important;
}
.view-only-mode .type_select.status-tab-group .status-tab-item.active .svg-icon path {
  fill: #000 !important;
}
.view-only-mode .type_select.status-tab-group .status-tab-item.active .label-text {
  color: #000 !important;
}
.view-only-mode .type_select.status-tab-group .status-tab-item.active img.check {
  display: block !important;
  -webkit-filter: brightness(0);
          filter: brightness(0);
}
.view-only-mode .type_select.status-tab-group .status-tab-item label {
  cursor: default;
}
.view-only-mode .title_action_wrapper {
  pointer-events: auto !important;
  display: block !important;
  opacity: 1 !important;
}
.view-only-mode .title_action_wrapper .btn_group {
  pointer-events: auto !important;
}
.view-only-mode .title_action_wrapper .btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
}
.view-only-mode .title_action_wrapper .btn .svg-icon {
  -webkit-filter: none !important;
          filter: none !important;
}
.view-only-mode button.btn-outline-primary {
  pointer-events: none;
  opacity: 0.6;
}
.view-only-mode .back,
.view-only-mode .guide_btn {
  pointer-events: auto !important;
  opacity: 1 !important;
}
.view-only-mode input,
.view-only-mode textarea {
  cursor: default;
}
.view-only-mode .custom_checkbox_wrapper {
  pointer-events: none;
  cursor: default;
}
.view-only-mode .custom_checkbox_wrapper .custom_checkbox {
  background-color: #DBDBDB !important;
  border-color: #BEBEBE !important;
}
.view-only-mode .custom_checkbox_wrapper .custom_checkbox::after {
  border-color: #666 !important;
}
.view-only-mode .custom_checkbox_wrapper .select_all {
  display: none !important;
}
.view-only-mode .item-header-row .col-check {
  visibility: hidden;
}
.view-only-mode .item-row.row-selected {
  background-color: #F0F4FF !important;
}
.view-only-mode .item-row.row-selected .col-discount.is-selected {
  color: #666 !important;
}
.view-only-mode .modal-backdrop-inside-dark {
  pointer-events: auto !important;
}
.view-only-mode .modal-backdrop-inside-dark .modal-inside {
  pointer-events: auto !important;
}
.view-only-mode .modal-backdrop-inside-dark .modal-inside input,
.view-only-mode .modal-backdrop-inside-dark .modal-inside select,
.view-only-mode .modal-backdrop-inside-dark .modal-inside textarea {
  pointer-events: auto !important;
  background-color: #fff !important;
  cursor: pointer;
}
.view-only-mode .modal-backdrop-inside-dark .modal-inside .custom-select {
  pointer-events: auto !important;
}

/* 預設：桌機大螢幕（設計稿字級） */
.text-xs {
  font-size: 14px !important;
}

.text-sm {
  font-size: 16px !important;
}

.text-md {
  font-size: 18px;
}

.text-lg {
  font-size: 20px;
}

.text-xl {
  font-size: 24px;
}

/* Tablet (1600px 以下) */
@media (max-width: 1600px) {
  .text-xs {
    font-size: 13px;
  }
  .text-sm {
    font-size: 15px;
  }
  .text-md {
    font-size: 17px;
  }
  .text-lg {
    font-size: 16px;
  }
  .text-xl {
    font-size: 22px;
  }
}
/* Mobile (768px 以下) */
@media (max-width: 768px) {
  .text-xs {
    font-size: 12px;
  }
  .text-sm {
    font-size: 14px;
  }
  .text-md {
    font-size: 15px;
  }
  .text-lg {
    font-size: 16px;
  }
  .text-xl {
    font-size: 20px;
  }
}
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-primary {
  color: #285EE4;
}

.text-alert {
  color: red;
}

.text-danger {
  color: red;
  font-weight: bold;
}

.text-white {
  color: #fff !important;
}

.text-gray {
  color: #6A6A6A;
}

.text-bold {
  font-weight: bold;
}

.text-emphasis {
  color: #285EE4 !important;
  text-decoration: underline;
}

.text-emphasis-red {
  color: red !important;
  text-decoration: underline;
}

.text-income {
  color: #285EE4 !important;
}

.text-expense {
  color: red !important;
}

.text-spaced-xl {
  letter-spacing: 15px;
}

.text-spaced-lg {
  letter-spacing: 10px;
}

.text-spaced-md {
  letter-spacing: 5px;
}

.text-spaced-sm {
  letter-spacing: 2px;
}

.text-note {
  font-size: 16px;
  line-height: 1.5;
  display: block;
}
.text-note a {
  color: #287BDB;
  text-decoration: underline;
}

.text-link {
  color: #287BDB;
  text-decoration: underline;
}

.text-link-alert {
  color: red;
  text-decoration: underline;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 30px;
}

.custom-tooltip {
  position: relative;
}
.custom-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 50%;
  left: 0;
  padding: 8px 12px;
  background-color: #fff;
  color: #333;
  border: 1px solid #4a90e2;
  border-radius: 8px;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  z-index: 9999;
  font-size: 16px;
  pointer-events: none;
}
.custom-tooltip:hover::after:empty, .custom-tooltip:hover::after[data-tip=""], .custom-tooltip:hover::after[data-tip=null] {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

.preview-wrap .preview-content {
  padding: 16px;
  padding: 16px;
  background-color: #fff;
}
.preview-wrap .preview-content .uploader {
  background-color: #F7F8FA;
  padding: 15px;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23C6C6C6' stroke-width='3' stroke-dasharray='8%2c 12' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
  border-radius: 8px;
}
.preview-wrap .preview-content .uploader .uploader-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 8px;
  padding: 50px 0;
}
.preview-wrap .preview-content .uploader .uploader-wrapper .uploader-icon {
  max-width: 80px;
  margin-bottom: 32px;
}
.preview-wrap .preview-content .uploader .uploader-wrapper .uploader-text {
  margin-top: 15px;
  text-align: center;
}
.preview-wrap .preview-content .uploader .uploader-wrapper .uploader-text .uploader-instruction {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}
.preview-wrap .preview-content .uploader-ai-notice {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.preview-wrap .preview-content .uploader-ai-notice .uploader-ai-icon {
  margin-right: 8px;
}
.preview-wrap .preview-content .uploader-file-info {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.preview-wrap .preview-content .uploader-file-info .file-item {
  padding: 20px;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.preview-wrap .preview-content .uploader-file-info .file-preview-thumbnail {
  width: 100%;
  max-width: 400px;
  min-height: 300px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 20px;
}
.preview-wrap .preview-content .uploader-file-info .file-preview-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text {
  width: 100%;
  text-align: center;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text .file-name {
  display: none;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text .preview-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 15px;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text .btn-reupload,
.preview-wrap .preview-content .uploader-file-info .file-info-text .btn-delete {
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text .btn-reupload {
  border: 1px solid #3b82f6;
  color: #3b82f6;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text .btn-reupload:hover {
  background: #f0f7ff;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text .btn-delete {
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
}
.preview-wrap .preview-content .uploader-file-info .file-info-text .btn-delete:hover {
  background: #fff1f0;
}

.img-preview-column {
  position: relative;
  overflow: visible !important;
  text-align: center;
  vertical-align: middle;
  padding: 0 10px;
  width: 60px;
}
.img-preview-column .img-preview-wrapper {
  display: inline-block;
  cursor: pointer;
}
.img-preview-column .img-preview-wrapper:hover .img-tooltip {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
}
.img-preview-column .img-preview-wrapper .mini-icon {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.img-preview-column .img-preview-wrapper .mini-icon:hover {
  -webkit-transform: scale(1.15);
          transform: scale(1.15);
}
.img-preview-column .img-preview-wrapper .img-tooltip {
  position: absolute;
  right: -30%;
  width: 200px;
  background: #ffffff;
  border: 1px solid #285EE4;
  border-radius: 8px;
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
}
.img-preview-column .img-preview-wrapper .img-tooltip .tooltip-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.img-preview-column .img-preview-wrapper .img-tooltip .tooltip-inner .preview-img {
  width: 100% !important;
  height: auto !important;
  min-height: 100px;
  border-radius: 4px;
  display: block;
  background: #f8f9fa;
  -o-object-fit: contain;
     object-fit: contain;
}

/* === 基本排版結構 === */
.grid-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
  width: calc(100% + 20px);
}
.grid-row > [class^=col-] {
  padding-left: 10px;
  padding-right: 10px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.grid-row {
  /* --- 縮短間距 (總間距 10px) --- */
}
.grid-row.grid-gap-sm {
  margin-left: -5px;
  margin-right: -5px;
  width: calc(100% + 10px);
}
.grid-row.grid-gap-sm > [class^=col-] {
  padding-left: 5px;
  padding-right: 5px;
}
.grid-row {
  /* --- 有分隔線 --- */
}
.grid-row.has-divider {
  position: relative;
}
@media (min-width: 1024px) {
  .grid-row.has-divider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.5px;
    background-color: #DBDBDB;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    z-index: 1;
  }
}

@media (max-width: 1024px) {
  .grid-row {
    gap: 15px;
  }
}
/* === 小裝置（<768px） === */
.col-1 {
  width: 8.3333%;
}

.col-2 {
  width: 16.6667%;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.3333%;
}

.col-5 {
  width: 41.6667%;
}

.col-6 {
  width: 50%;
}

.col-7 {
  width: 58.3333%;
}

.col-8 {
  width: 66.6667%;
}

.col-9 {
  width: 75%;
}

.col-10 {
  width: 83.3333%;
}

.col-11 {
  width: 91.6667%;
}

.col-12 {
  width: 100%;
}

/* === 平板以上（>= 768px） === */
@media (min-width: 768px) {
  .col-md-1 {
    width: 8.3333%;
  }
  .col-md-2 {
    width: 16.6667%;
  }
  .col-md-3 {
    width: 25%;
  }
  .col-md-4 {
    width: 33.3333%;
  }
  .col-md-5 {
    width: 41.6667%;
  }
  .col-md-6 {
    width: 50%;
  }
  .col-md-7 {
    width: 58.3333%;
  }
  .col-md-8 {
    width: 66.6667%;
  }
  .col-md-9 {
    width: 75%;
  }
  .col-md-10 {
    width: 83.3333%;
  }
  .col-md-11 {
    width: 91.6667%;
  }
  .col-md-12 {
    width: 100%;
  }
}
/* === 桌機以上（>= 1024px） === */
@media (min-width: 1024px) {
  .col-lg-1 {
    width: 8.3333%;
  }
  .col-lg-2 {
    width: 16.6667%;
  }
  .col-lg-3 {
    width: 25%;
  }
  .col-lg-4 {
    width: 33.3333%;
  }
  .col-lg-5 {
    width: 41.6667%;
  }
  .col-lg-6 {
    width: 50%;
  }
  .col-lg-7 {
    width: 58.3333%;
  }
  .col-lg-8 {
    width: 66.6667%;
  }
  .col-lg-9 {
    width: 75%;
  }
  .col-lg-10 {
    width: 83.3333%;
  }
  .col-lg-11 {
    width: 91.6667%;
  }
  .col-lg-12 {
    width: 100%;
  }
}
/* === 超大螢幕以上（>= 1280px） === */
@media (min-width: 1280px) {
  .col-xl-1 {
    width: 8.3333%;
  }
  .col-xl-2 {
    width: 16.6667%;
  }
  .col-xl-3 {
    width: 25%;
  }
  .col-xl-4 {
    width: 33.3333%;
  }
  .col-xl-5 {
    width: 41.6667%;
  }
  .col-xl-6 {
    width: 50%;
  }
  .col-xl-7 {
    width: 58.3333%;
  }
  .col-xl-8 {
    width: 66.6667%;
  }
  .col-xl-9 {
    width: 75%;
  }
  .col-xl-10 {
    width: 83.3333%;
  }
  .col-xl-11 {
    width: 91.6667%;
  }
  .col-xl-12 {
    width: 100%;
  }
}
@media (min-width: 1600px) {
  .main-wrapper {
    max-width: 1980px;
  }
  .main-wrapper.full-width {
    max-width: none;
  }
  .col-xxl-1 {
    width: 8.3333%;
  }
  .col-xxl-2 {
    width: 16.6667%;
  }
  .col-xxl-3 {
    width: 25%;
  }
  .col-xxl-4 {
    width: 33.3333%;
  }
  .col-xxl-5 {
    width: 41.6667%;
  }
  .col-xxl-6 {
    width: 50%;
  }
  .col-xxl-7 {
    width: 58.3333%;
  }
  .col-xxl-8 {
    width: 66.6667%;
  }
  .col-xxl-9 {
    width: 75%;
  }
  .col-xxl-10 {
    width: 83.3333%;
  }
  .col-xxl-11 {
    width: 91.6667%;
  }
  .col-xxl-12 {
    width: 100%;
  }
}
/* 全域背景變暗 */
#guide-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
}

/* 導覽遮罩本體 */
.guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  z-index: 9999;
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 15px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background-color: rgba(46, 74, 143, 0.9);
  border: 2px solid #285EE4;
  -webkit-box-shadow: 2px 2px 10px #285EE4;
          box-shadow: 2px 2px 10px #285EE4;
  text-align: left;
  pointer-events: auto;
}
.guide-overlay .guide-content .title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
}
.guide-overlay .guide-content .content {
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.guide-overlay .guide-action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 10px;
}
.guide-overlay .guide-action .guide-ok-btn {
  background-color: #fff;
  color: #285EE4;
  border: none;
  padding: 2px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
}

[v-cloak] {
  display: none;
}

.main-content {
  padding: 40px;
}
.main-content .data_content {
  max-width: unset;
}

.page_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
}
.page_container .contents {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  overflow: auto;
}

.main_content_wrapper {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  overflow: hidden;
}

.main_wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  width: 100%;
}

.main_content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  position: relative;
  background-color: #F7F8FA;
  width: 100%;
  min-width: 343px;
  min-height: calc(100vh - 100px);
  padding: 30px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media (max-width: 1024px) {
  .main_content {
    padding: 20px !important;
  }
}
@media (max-width: 768px) {
  .main_content {
    padding: 16px !important;
  }
}

/**
 * PROJECT: Dashboard UI
 * MODULE:  Main Content Layout & Header
 * DESC:    包含主標題區塊、側邊欄列表以及內容顯示區
 * ---------------------------------------------------------
 */
/* ========== main_title 上區塊主標題 ========== */
.main_title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 24px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #000;
}
.main_title .main_title_content {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.main_title .main_title_content .title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.main_title .main_title_content .title_action_wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 30px;
}
.main_title .main_title_content .title_action_wrapper .btn-divider::after {
  right: -10px;
}
.main_title .main_title_content .title_action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px;
}
.main_title .main_title_content .action {
  width: unset;
  max-width: unset;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
}
.main_title .main_title_content .custom-select .select-selected {
  border: 0;
}
.main_title .main_title_content .dateRange input.layui-input {
  border: 0;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}
.main_title .main_title_content .group {
  gap: 16px;
}
.main_title .main_title_content .group .btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px 16px;
  height: unset;
  max-height: 40px;
}
.main_title .main_title_content .group .action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  gap: 16px;
}
.main_title .main_title_content .guide_nav {
  height: 182px;
  background-color: #fff;
  border: 4px solid #285ee4;
  border-radius: 20px;
  position: absolute;
  z-index: 101;
  top: 48px;
  right: 0 !important;
  display: none;
  padding: 16px;
}
.main_title .main_title_content .guide_nav.active {
  display: block;
}
.main_title .main_title_content .guide_nav ul li .btn {
  height: unset;
  max-height: unset;
}
.main_title .main_title_content .guide_nav ul li .btn img {
  display: block;
}
.main_title .row_wrap {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.main_title h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  white-space: nowrap;
  margin: 0;
}
.main_title h3 .title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
}
.main_title h3 a.back {
  width: 47px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  margin-right: 8px;
  border-radius: 50%;
  position: unset;
  top: 0;
}
.main_title h3 a.back:hover {
  background-color: #E0E7F8;
}
.main_title h3 a.back:active {
  background-color: #E0E7F8;
}
.main_title h3 a.back img {
  display: block;
  position: unset;
  height: 47px;
  width: 47px;
  z-index: 2;
}
.main_title.mb-lg {
  margin-bottom: 45px;
}

.content_layout {
  width: 100%;
  height: 100vh;
}
.content_layout .main_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  width: 100%;
  padding: 0;
}
.content_layout .main_content .content_sidebar {
  min-width: 400px;
  background-color: #fff;
  padding: 40px 20px;
  height: calc(100vh - 80px);
  overflow: auto;
}
.content_layout .main_content .content_sidebar .title {
  font-size: 28px;
  font-weight: bold;
}
.content_layout .main_content .content_sidebar .content .category_item .title_sec {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 10px;
}
.content_layout .main_content .content_sidebar .content .category_item .title_sec .title {
  font-size: 16px;
}
.content_layout .main_content .content_sidebar .content .category_item .title_sec .btn {
  border-radius: 8px;
  padding: 3px 18px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item {
  border: 1px solid #DBDBDB;
  border-radius: 8px;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item.active {
  border: 2px solid #285EE4;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item.active .fa-check-circle {
  color: #285EE4;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item:not(:last-child) {
  margin-bottom: 24px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .title_sec {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 15px;
  margin-bottom: 0;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .title_sec .item_data {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .title_sec .item_data .title {
  font-size: 20px;
  margin-right: 5px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .title_sec .item_data .default {
  border: 1px solid #285EE4;
  border-radius: 999px;
  color: #285EE4;
  padding: 3px 8px;
  font-size: 12px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .title_sec .selected_icon {
  color: #DBDBDB;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .content_sec {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 15px;
  padding-top: 0;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .content_sec .title {
  font-size: 16px;
  font-weight: normal;
  padding-right: 10px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .content_sec .detail {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border-left: 1px solid #000;
  padding-left: 10px;
  gap: 8px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .footer_sec {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: transparent;
  border-top: 1px solid #DBDBDB;
  color: #285EE4;
  padding: 15px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .footer_sec .unit {
  font-size: 18px;
}
.content_layout .main_content .content_sidebar .content .category_item .content_sec .card_item .footer_sec .amount {
  font-size: 28px;
}
.content_layout .main_content .content_detail {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 40px;
}

/* ========== aside 側邊攔 ========== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.cursor-pointer {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px) {
  .cursor-pointer:active {
    background-color: rgba(40, 94, 228, 0.1);
    -webkit-transition: background-color 0.1s ease;
    transition: background-color 0.1s ease;
  }
}

.overflow-escape {
  overflow: visible;
}

.action-bar-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 20px;
}

.main_title h3 {
  font-size: 32px;
}

.back {
  -webkit-transition: 0.3s;
  transition: 0.3s;
  border-radius: 50%;
  position: unset;
  top: 0;
}
.back:hover {
  background-color: #E0E7F8;
}
.back:active {
  background-color: #BACBF6;
}
.back img {
  display: block;
  position: unset;
  height: 44px;
  width: 44px;
  z-index: 2;
}

.u-search-wrapper .u-search-box {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  height: 40px;
}
.u-search-wrapper .u-search-box .u-search-input {
  width: 100%;
  height: 100%;
  padding: 8px 44px 8px 16px;
  font-size: 16px;
  background-color: #FFF;
  border: 0;
  border-radius: 8px;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: 2px 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 2px 3px 6px 0 rgba(0, 0, 0, 0.16);
}
.u-search-wrapper .u-search-box .u-search-input::-webkit-input-placeholder {
  font-size: 16px;
  color: #C6C6C6;
}
.u-search-wrapper .u-search-box .u-search-input::-moz-placeholder {
  font-size: 16px;
  color: #C6C6C6;
}
.u-search-wrapper .u-search-box .u-search-input:-ms-input-placeholder {
  font-size: 16px;
  color: #C6C6C6;
}
.u-search-wrapper .u-search-box .u-search-input::-ms-input-placeholder {
  font-size: 16px;
  color: #C6C6C6;
}
.u-search-wrapper .u-search-box .u-search-input::placeholder {
  font-size: 16px;
  color: #C6C6C6;
}
.u-search-wrapper .u-search-box .u-search-input:focus {
  outline: none;
  border-color: #285ee4;
  -webkit-box-shadow: 0 0 0 3px rgba(40, 94, 228, 0.1);
          box-shadow: 0 0 0 3px rgba(40, 94, 228, 0.1);
}
.u-search-wrapper .u-search-box .u-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.u-search-wrapper .u-search-box .u-search-btn:hover {
  opacity: 0.7;
}
.u-search-wrapper .u-search-box .u-search-btn:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.u-search-wrapper .u-search-box .u-search-btn img {
  display: block;
}

@media (max-width: 768px) {
  .u-search-box {
    margin-top: 10px;
  }
}
@media (max-width: 1279.98px) {
  .slide_panel.slide_left {
    left: 0;
  }
}
@media (max-width: 1024px) {
  .content_layout {
    height: auto;
  }
  .content_layout .main_content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .content_layout .main_content .content_sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
    overflow-y: auto;
    border-right: none;
    border-bottom: 1px solid #DBDBDB;
    padding: 20px;
  }
  .content_layout .main_content .content_detail {
    width: 100%;
    height: auto;
    padding: 20px;
  }
  .main_title h3 {
    font-size: 30px;
  }
  .main_title .main_title_content {
    gap: 15px;
  }
  .main_title .main_title_content .title {
    gap: 15px;
  }
  .main_title .main_title_content .title_action {
    gap: 10px;
  }
  .main_title .main_title_content .title_action_wrapper {
    gap: 16px;
  }
  .slide_panel.slide_left {
    left: 0;
  }
  .slide_panel.active {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    width: 100% !important;
  }
  .slide_panel .content .tab_header .tab_btn .tab_btn_item {
    font-size: 20px;
  }
  .custom_popover .popover_header {
    font-size: 14px;
    line-height: 1.5;
  }
}
@media (max-width: 768px) {
  .main-content {
    padding: 16px !important;
  }
  .sc-data-content {
    margin-top: 24px;
    gap: 10px;
  }
  .inquire-data-row {
    padding: 15px;
  }
  .search_conditions {
    margin-bottom: 20px;
  }
}
.layui-input {
  width: 300px;
  height: 40px;
  text-align: center;
  color: #285EE4;
  background: #fff;
  border-radius: 20px;
  padding: 0 13px;
  margin-bottom: 0;
  letter-spacing: 1px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 2px solid transparent;
}

.layui-laydate .layui-this {
  background-color: #285EE4 !important;
}
.layui-laydate .layui-this > div {
  background-color: #285EE4 !important;
}

.layui-laydate-footer span:hover {
  color: #285EE4;
}

.form_group .layui-input {
  width: 100%;
  color: #000;
}
.form_group .layui-input:hover {
  border: 1px solid #285EE4 !important;
}

.yearpicker-container {
  top: 40px;
}

/* ===== Loading 卡片核心樣式 ===== */
.loading-card {
  width: 180px;
  height: 180px;
  background-color: #ffffff;
  border-radius: 24px;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  /* 用於內部絕對定位與內容排列 */
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: hidden;
  font-family: "Microsoft JhengHei", Arial, sans-serif;
}

/* ===== 雲朵動畫區域設定 ===== */
.animation-container {
  width: 100px;
  height: 100px;
  margin-top: 8px; /* 稍微往下推，視覺平衡 */
}

/* 雲朵本體顏色 (淺藍) */
.cloud-path {
  fill: #285EE4;
}

/* 水滴顏色 (深藍) - 文字動畫也會用到此顏色 */
.drop {
  fill: #285EE4;
}

/* ===== 水滴跳動動畫關鍵影格 ===== */
/* 設定基準點在 translateY(8px) 以拉開與雲朵的距離 */
@-webkit-keyframes bounceDrop {
  /* 0%, 80%, 100% 是靜止狀態 (在低點) */
  0%, 80%, 100% {
    -webkit-transform: translateY(12px);
            transform: translateY(12px);
    opacity: 0.5;
  }
  /* 40% 是跳到最高點的狀態 (回到原位) */
  40% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    opacity: 1;
  }
}
@keyframes bounceDrop {
  /* 0%, 80%, 100% 是靜止狀態 (在低點) */
  0%, 80%, 100% {
    -webkit-transform: translateY(12px);
            transform: translateY(12px);
    opacity: 0.5;
  }
  /* 40% 是跳到最高點的狀態 (回到原位) */
  40% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    opacity: 1;
  }
}
/* 應用水滴動畫與延遲 */
.drop {
  -webkit-animation: bounceDrop 1.2s ease-in-out infinite;
          animation: bounceDrop 1.2s ease-in-out infinite;
}

.drop-1 {
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
}

.drop-2 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}

.drop-3 {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

/* ===== 文字動畫設定 ===== */
.loading-text-container {
  position: absolute;
  bottom: 16px; /* 需求：距離卡片底部 16px */
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* 文字本體設定 */
.animated-text {
  position: relative;
  font-size: 20px; /* 需求文字大小 */
  font-weight: 600; /* 字體加粗 */
  letter-spacing: 1px;
  /* 底層文字顏色 (淺灰色，未讀取狀態) */
  color: #d1d9e6;
  white-space: nowrap; /* 確保不換行 */
}

/* 利用偽元素複製一份文字在上方，用於製作動畫層 */
.animated-text::after {
  content: attr(data-text); /* 抓取 HTML 中的 data-text 內容 */
  position: absolute;
  left: 0;
  top: 0;
  /* 上層文字顏色 (使用水滴的深藍色) */
  color: #285EE4;
  overflow: hidden;
  /* 【修改重點】加入 'alternate' 參數。
     讓動畫播放方式變成「去程 -> 回程 -> 去程...」循環，
     創造平滑連續的效果，消除斷點感。
  */
  -webkit-animation: textFillAnim 1.2s ease-in-out infinite alternate;
          animation: textFillAnim 1.2s ease-in-out infinite alternate;
}

/* 文字填充動畫關鍵影格 (利用 clip-path 裁切) */
@-webkit-keyframes textFillAnim {
  /* 因為有了 alternate，只需要定義起點(全空)和終點(全滿) */
  0% {
    clip-path: inset(0 100% 0 0); /* 初始狀態：完全從右側裁切掉 (隱藏) */
  }
  100% {
    clip-path: inset(0 0 0 0); /* 結束狀態：完全顯示 (不裁切) */
  }
}
@keyframes textFillAnim {
  /* 因為有了 alternate，只需要定義起點(全空)和終點(全滿) */
  0% {
    clip-path: inset(0 100% 0 0); /* 初始狀態：完全從右側裁切掉 (隱藏) */
  }
  100% {
    clip-path: inset(0 0 0 0); /* 結束狀態：完全顯示 (不裁切) */
  }
}
input[name=daterange] {
  cursor: pointer;
}

.datepicker-outter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  min-width: 311px;
  gap: 5px;
}
.datepicker-outter .title {
  font-size: 20px;
  width: unset;
  margin-right: 8px;
}
.datepicker-outter {
  /*日期選擇器文字顏色及文字大小設定*/
}
.datepicker-outter .sc-datepicker {
  height: 32px;
  border-radius: 8px;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}
.datepicker-outter .sc-datepicker input {
  width: 100%;
  height: 100%;
  background-color: #fff;
  color: #285EE4;
  text-align: center;
  font-size: 16px;
  line-height: 16px;
  outline: none;
  padding: 0 26px;
  letter-spacing: 1px;
  border: none;
  max-height: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
}

.datepicker_group .sc-datepicker {
  background: transparent !important;
}
.datepicker_group .sc-datepicker input {
  height: 36px;
  color: #000 !important;
  background-color: #fff;
  font-size: 16px;
  border: 1px solid #c6c6c6;
}
.datepicker_group .sc-datepicker input:focus {
  border-color: #1B48B8;
}

.dateRange {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-width: 220px;
}

.sc-data-content,
.sc-data_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.sc-data-content .title,
.sc-data_content .title {
  width: unset;
}

.account_add .main_title .main_title_content .action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 16px;
}

.invoice_list .main_title .main_title_content .title {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.invoice_list .main_title .action > .group {
  gap: 0;
}
.invoice_list .main_title .action > .group + .group {
  margin-left: 0;
}
.invoice_list .sc_title_content .tabs .tab-btn {
  padding: 0;
}
.invoice_list .sc_title_content .tabs .tab-btn::after {
  content: none;
  position: static;
  height: auto;
  width: auto;
  background: none;
  top: auto;
  right: auto;
  -webkit-transform: none;
          transform: none;
}
.invoice_list .sc_title_content .tabs a {
  font-size: unset;
  font-weight: bold;
  color: #285ee4;
  padding: 0 16px;
}
.invoice_list .sc_title_content .tabs a.active {
  color: #fff;
  background: #285ee4;
}

.invoice-preview-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.invoice-preview-wrapper .img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}
.invoice-preview-wrapper .logo-overlay-container {
  position: absolute;
  top: 12px;
  left: 47px;
  width: 240px;
  height: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  pointer-events: none;
}
@media (max-width: 991.98px) {
  .invoice-preview-wrapper .logo-overlay-container {
    top: 2%;
    left: 6%;
    width: 160px;
    height: auto;
    aspect-ratio: 240/80;
  }
}
@media (max-width: 575.98px) {
  .invoice-preview-wrapper .logo-overlay-container {
    top: 2%;
    left: 6%;
    width: 35%;
    max-width: 100px;
    aspect-ratio: 240/80;
  }
}
.invoice-preview-wrapper .logo-overlay-container #logoOverlay {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: fill;
     object-fit: fill;
  display: none;
}
.invoice-preview-wrapper .logo-overlay-container .logo-placeholder {
  width: 100%;
  height: 100%;
  border: 2px dashed #DBDBDB;
  border-radius: 6px;
  background-color: #F7F8FA;
  color: #DBDBDB;
  font-size: 40px;
  font-weight: bold;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
@media (max-width: 991.98px) {
  .invoice-preview-wrapper .logo-overlay-container .logo-placeholder {
    font-size: 20px;
  }
}
@media (max-width: 575.98px) {
  .invoice-preview-wrapper .logo-overlay-container .logo-placeholder {
    font-size: 16px;
  }
}

.invoice_set .tab-link {
  position: absolute;
  top: 0;
  left: 232px;
}

.taxcatg_area .tab-link .tabs {
  position: unset;
  display: unset;
  -webkit-box-align: unset;
      -ms-flex-align: unset;
          align-items: unset;
}
.taxcatg_area .tab-link .tabs .tab-content {
  position: unset;
}

.split-panel-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
.split-panel-layout .form_item_wrapper {
  border-radius: 15px 15px 0 0;
}

.invoice-info-panel {
  position: sticky;
  top: 20px;
  padding-right: 15px;
  margin-right: -15px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -ms-flex-item-align: start;
      align-self: flex-start;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-right: 1px solid transparent;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}
.invoice-info-panel.no-scrollbar {
  overflow-y: hidden !important;
}
.invoice-info-panel::-webkit-scrollbar {
  width: 5px;
}
.invoice-info-panel::-webkit-scrollbar-thumb {
  background-color: #285EE4;
  border-radius: 10px;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
.invoice-info-panel::-webkit-scrollbar-track {
  background-color: transparent;
}
@media (max-width: 991px) {
  .invoice-info-panel {
    position: static;
    padding-right: 0;
    margin-right: 0;
    max-height: none;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid #DBDBDB;
  }
}

.purchase-detail-panel,
.discount-detail-panel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -ms-flex-item-align: start;
      align-self: flex-start;
  height: 100%;
  min-height: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.purchase-detail-panel .detail-content,
.discount-detail-panel .detail-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 0;
}
.purchase-detail-panel .detail-content .title_sec,
.discount-detail-panel .detail-content .title_sec {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.purchase-detail-panel .detail-content .purchase-items-container,
.purchase-detail-panel .detail-content .discount-items-container,
.discount-detail-panel .detail-content .purchase-items-container,
.discount-detail-panel .detail-content .discount-items-container {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto !important;
  min-height: 0;
  padding-bottom: 10px;
}
.purchase-detail-panel .detail-content .error-notice-wrapper,
.discount-detail-panel .detail-content .error-notice-wrapper {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.purchase-detail-panel .detail-content .error-notice-wrapper .error-text,
.discount-detail-panel .detail-content .error-notice-wrapper .error-text {
  color: #FF0000;
  font-size: 16px;
  display: block;
  text-align: right;
  margin: 10px 0;
}
.purchase-detail-panel .purchase-summary-container,
.purchase-detail-panel .discount-summary-container,
.discount-detail-panel .purchase-summary-container,
.discount-detail-panel .discount-summary-container {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-top: auto;
  padding: 15px 0;
  border-top: 1px solid #DBDBDB;
  background-color: #fff;
}
.purchase-detail-panel .purchase-summary-container .summary-row,
.purchase-detail-panel .discount-summary-container .summary-row,
.discount-detail-panel .purchase-summary-container .summary-row,
.discount-detail-panel .discount-summary-container .summary-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  width: 100%;
  font-size: 20px;
  color: #000;
}
.purchase-detail-panel .purchase-summary-container .summary-row .summary-label,
.purchase-detail-panel .discount-summary-container .summary-row .summary-label,
.discount-detail-panel .purchase-summary-container .summary-row .summary-label,
.discount-detail-panel .discount-summary-container .summary-row .summary-label {
  width: 140px;
  text-align: left;
}
.purchase-detail-panel .purchase-summary-container .summary-row .summary-value,
.purchase-detail-panel .discount-summary-container .summary-row .summary-value,
.discount-detail-panel .purchase-summary-container .summary-row .summary-value,
.discount-detail-panel .discount-summary-container .summary-row .summary-value {
  width: 120px;
  text-align: right;
  font-weight: 500;
}
.purchase-detail-panel .purchase-summary-container .summary-row.grand-total .summary-label,
.purchase-detail-panel .purchase-summary-container .summary-row.grand-total .summary-value,
.purchase-detail-panel .discount-summary-container .summary-row.grand-total .summary-label,
.purchase-detail-panel .discount-summary-container .summary-row.grand-total .summary-value,
.discount-detail-panel .purchase-summary-container .summary-row.grand-total .summary-label,
.discount-detail-panel .purchase-summary-container .summary-row.grand-total .summary-value,
.discount-detail-panel .discount-summary-container .summary-row.grand-total .summary-label,
.discount-detail-panel .discount-summary-container .summary-row.grand-total .summary-value {
  color: #285EE4;
  font-size: 24px;
  font-weight: bold;
}
.purchase-detail-panel .purchase-summary-container .summary-row:not(:last-child),
.purchase-detail-panel .discount-summary-container .summary-row:not(:last-child),
.discount-detail-panel .purchase-summary-container .summary-row:not(:last-child),
.discount-detail-panel .discount-summary-container .summary-row:not(:last-child) {
  margin-bottom: 12px;
}

.purchase-detail-panel .item-card {
  border: 1px solid #285EE4;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.purchase-detail-panel .item-card .item-card-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 8px;
}
.purchase-detail-panel .item-card .input-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.purchase-detail-panel .item-card .input-group label {
  font-size: 20px;
  margin-bottom: 6px;
}
.purchase-detail-panel .item-card .input-group input {
  min-height: 36px;
  font-size: 16px;
}
.purchase-detail-panel .item-card .amount-text {
  font-size: 20px;
  min-height: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.purchase-detail-panel .item-card .delete-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  cursor: pointer;
}
.purchase-detail-panel .action-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  margin-top: 10px;
}
.purchase-detail-panel .width-sm {
  width: 80px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.purchase-detail-panel .width-md {
  width: 120px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.purchase-detail-panel .flex-grow {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 150px;
}

.discount-detail-panel .discount-items-container {
  font-size: 14px;
}
.discount-detail-panel .discount-items-container .col-check {
  width: 50px;
  text-align: center;
}
.discount-detail-panel .discount-items-container .col-name {
  -webkit-box-flex: 2;
      -ms-flex: 2;
          flex: 2;
  min-width: 150px;
  padding: 0 10px;
}

.discount-detail-panel .discount-items-container .col-name > div{
  font-size: 12px;
  color: #FF0000;
  padding-top: 4px;
}

.discount-detail-panel .discount-items-container .col-qty {
  width: 100px;
  padding: 0 5px;
}
.discount-detail-panel .discount-items-container .col-price {
  width: 120px;
  padding: 0 5px;
}
.discount-detail-panel .discount-items-container .col-total {
  width: 120px;
  text-align: right;
  padding: 0 10px;
}
.discount-detail-panel .discount-items-container .col-discount {
  width: 140px;
  text-align: right;
  padding: 0 10px;
}
.discount-detail-panel .discount-items-container .item-header-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-width: 700px;
  padding: 12px 0;
  border-bottom: 1px solid #DBDBDB;
  color: #000;
  font-size: 20px;
}
.discount-detail-panel .discount-items-container .item-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-width: 700px;
  padding: 10px 0;
  font-size: 16px;
}
.discount-detail-panel .discount-items-container .item-row:hover {
  background-color: #fafafa;
}
.discount-detail-panel .discount-items-container .item-row.row-selected {
  background-color: #E6EDFF !important;
}
.discount-detail-panel .discount-items-container .item-row input {
  min-height: 36px;
}
.discount-detail-panel .discount-items-container .item-row input:focus {
  border-color: #285ee4;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
          box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}
.discount-detail-panel .discount-items-container .item-row input.input-error {
  border-color: #FF0000;
}
.discount-detail-panel .discount-items-container .item-row .col-discount.is-selected {
  color: #285EE4;
  font-weight: bold;
  font-size: 20px;
}
.discount-detail-panel .discount-items-container .item-row .col-discount.is-error {
  color: #FF0000;
  font-weight: bold;
  font-size: 20px;
}

.allowance-status-container {
  position: relative;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 50;
}

.allowance_history_card {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 100;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #285EE4;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 500px;
}
.allowance_history_card .card_header {
  padding: 10px 15px;
  border-bottom: 1px solid #E6EDFF;
}
.allowance_history_card .card_header .title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}
.allowance_history_card .history_table {
  width: 100%;
  border-collapse: collapse;
}
.allowance_history_card .history_table tr:not(:last-child) {
  border-bottom: 1px solid #E6EDFF;
}
.allowance_history_card .history_table th,
.allowance_history_card .history_table td {
  height: unset;
  padding: 1px 15px;
  text-align: left;
}
.allowance_history_card .history_table th {
  color: #000;
  font-weight: bold;
  border-bottom: 1px solid #E6EDFF;
}
.allowance_history_card .history_table .text-link {
  color: #285EE4;
  text-decoration: underline;
  cursor: pointer;
}
.allowance_history_card.is-mobile {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
.allowance_history_card.is-mobile::before {
  display: none;
}

.resend-notice-modal {
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.resend-notice-modal .modal-inside {
  width: min(100%, 430px);
}
.resend-notice-modal .modal-inside.size-xs {
  max-width: unset;
  max-height: unset;
}
.resend-notice-modal .modal_dialog {
  padding: 28px 24px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 20px 48px rgba(26, 64, 143, 0.18);
}
.resend-notice-modal .modal_title .title_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.resend-notice-modal .modal_title .title_content h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #285EE4;
}
.resend-notice-modal .modal_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef4ff 0%, #e3edff 100%);
  color: #6d92ff;
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.resend-notice-modal .u-modal-header {
    flex-direction: column;
}
.resend-notice-modal .modal_content {
  padding: 0;
}
.resend-notice-modal .u-modal-content .fas {
  color: #285EE4;
}
.resend-notice-modal .message {
  margin-bottom: 16px;
  text-align: center;
}
.resend-notice-modal .message p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #000000;
}
.resend-notice-modal .info_card {
  padding: 16px;
  border: 1px solid #e4eaf7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.resend-notice-modal .info_row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
}
.resend-notice-modal .info_row + .info_row {
  border-top: 1px dashed #d7dfef;
}
.resend-notice-modal .info_label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #000000;
}
.resend-notice-modal .info_value {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #2b2f3a;
  word-break: break-word;
}
.resend-notice-modal .info_value.input_value {
  width: 100%;
}
.resend-notice-modal .info_value.input_value .form-control {
  height: 44px;
  padding: 10px 40px 10px 12px;
  border: 1px solid #9cb8ff;
  border-radius: 10px;
  background: #ffffff;
  font-size: 15px;
  color: #2b2f3a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 0 3px rgba(40, 94, 228, 0.08);
}
.resend-notice-modal .info_value.input_value .input_wrapper.active .form-control,
.resend-notice-modal .info_value.input_value .input_wrapper:focus-within .form-control {
  border-color: #7ea2ff;
  background: #fdfefe;
  box-shadow: 0 0 0 4px rgba(40, 94, 228, 0.14);
}
.resend-notice-modal .input_wrapper {
  position: relative;
}
.resend-notice-modal .input_clear {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: #b7becd;
  color: #ffffff;
  font-size: 9px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.resend-notice-modal .input_clear:hover {
  background: #8b95a8;
}
.resend-notice-modal .input_clear:focus {
  outline: none;
}
.resend-notice-modal .input_wrapper.active .input_clear,
.resend-notice-modal .input_wrapper:focus-within .input_clear {
  background: #285EE4;
}
.resend-notice-modal .resend_hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  color: #000000;
  font-size: 14px;
  line-height: 1;
}
.resend-notice-modal .resend_hint i {
  color: #285EE4;
}
.resend-notice-modal .modal_footer {
  padding-top: 22px;
}
.resend-notice-modal .modal_footer .btn_group {
  gap: 16px;
}
.resend-notice-modal .modal_footer .btn-outline-primary {
  border-color: #7ea2ff;
  color: #285EE4;
  background: #ffffff;
  box-shadow: none;
}
.resend-notice-modal .modal_footer .btn-primary {
  border: none;
  background: linear-gradient(90deg, #2d65ef 0%, #2555d9 100%);
  box-shadow: 0 8px 16px rgba(40, 94, 228, 0.25);
}

@media (max-width: 1024px) {
  .split-panel-layout {
    height: 100% !important;
  }
  .split-panel-layout .contents {
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
  }
  .purchase-detail-panel .item-card,
  .discount-detail-panel .item-card {
    position: relative;
    padding-top: 30px;
    padding-bottom: 16px;
  }
  .purchase-detail-panel .item-card .delete-icon,
  .discount-detail-panel .item-card .delete-icon {
    top: 10px;
    right: 10px;
    -webkit-transform: none;
            transform: none;
    z-index: 10;
  }
  .purchase-detail-panel .item-card .item-card-row,
  .discount-detail-panel .item-card .item-card-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    padding-bottom: 0;
  }
  .purchase-detail-panel .item-card .item-card-row .input-group,
  .discount-detail-panel .item-card .item-card-row .input-group {
    width: 100% !important;
    gap: 0;
  }
  .purchase-detail-panel .item-card .item-card-row .input-group label,
  .discount-detail-panel .item-card .item-card-row .input-group label {
    font-size: 16px;
  }
  .purchase-detail-panel .purchase-summary-container .summary-row,
  .purchase-detail-panel .discount-summary-container .summary-row,
  .discount-detail-panel .purchase-summary-container .summary-row,
  .discount-detail-panel .discount-summary-container .summary-row {
    font-size: 18px;
  }
  .purchase-detail-panel .purchase-summary-container .summary-row.grand-total .summary-label,
  .purchase-detail-panel .purchase-summary-container .summary-row.grand-total .summary-value,
  .purchase-detail-panel .discount-summary-container .summary-row.grand-total .summary-label,
  .purchase-detail-panel .discount-summary-container .summary-row.grand-total .summary-value,
  .discount-detail-panel .purchase-summary-container .summary-row.grand-total .summary-label,
  .discount-detail-panel .purchase-summary-container .summary-row.grand-total .summary-value,
  .discount-detail-panel .discount-summary-container .summary-row.grand-total .summary-label,
  .discount-detail-panel .discount-summary-container .summary-row.grand-total .summary-value {
    font-size: 22px;
  }
}
@media (max-width: 768px) {
  .purchase-detail-panel .item-card,
  .discount-detail-panel .item-card {
    position: relative;
    padding-top: 30px;
    padding-bottom: 16px;
  }
  .purchase-detail-panel .item-card .delete-icon,
  .discount-detail-panel .item-card .delete-icon {
    top: 10px;
    right: 10px;
    -webkit-transform: none;
            transform: none;
    z-index: 10;
  }
  .purchase-detail-panel .item-card .item-card-row,
  .discount-detail-panel .item-card .item-card-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    padding-bottom: 0;
  }
  .purchase-detail-panel .item-card .item-card-row .input-group,
  .discount-detail-panel .item-card .item-card-row .input-group {
    width: 100% !important;
    gap: 0;
  }
  .purchase-detail-panel .item-card .item-card-row .input-group label,
  .discount-detail-panel .item-card .item-card-row .input-group label {
    font-size: 16px;
  }
  .purchase-detail-panel .purchase-summary-container .summary-row,
  .purchase-detail-panel .discount-summary-container .summary-row,
  .discount-detail-panel .purchase-summary-container .summary-row,
  .discount-detail-panel .discount-summary-container .summary-row {
    font-size: 18px;
  }
  .resend-notice-modal .modal_dialog {
    padding: 24px 18px 18px;
    border-radius: 20px;
  }
  .resend-notice-modal .info_row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .resend-notice-modal .modal_footer .btn_group {
    gap: 12px;
  }
  .purchase-detail-panel .purchase-summary-container .summary-row.grand-total .summary-label,
  .purchase-detail-panel .purchase-summary-container .summary-row.grand-total .summary-value,
  .purchase-detail-panel .discount-summary-container .summary-row.grand-total .summary-label,
  .purchase-detail-panel .discount-summary-container .summary-row.grand-total .summary-value,
  .discount-detail-panel .purchase-summary-container .summary-row.grand-total .summary-label,
  .discount-detail-panel .purchase-summary-container .summary-row.grand-total .summary-value,
  .discount-detail-panel .discount-summary-container .summary-row.grand-total .summary-label,
  .discount-detail-panel .discount-summary-container .summary-row.grand-total .summary-value {
    font-size: 20px;
  }
}
.voucher-detail-panel .voucher-items-container {
  font-size: 16px;
  max-width: 800px;
}
.voucher-detail-panel .voucher-items-container .col-invoice {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0 10px;
}
.voucher-detail-panel .voucher-items-container .col-total {
  width: 120px;
  text-align: right;
  padding: 0 10px;
}
.voucher-detail-panel .voucher-items-container .item-header-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #DBDBDB;
}
.voucher-detail-panel .voucher-items-container .item-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.voucher-detail-panel .voucher-items-container .item-row:hover {
  background-color: #fafafa;
}
.voucher-detail-panel .voucher-items-container .item-row .link-text {
  color: #285ee4;
  text-decoration: underline;
}
.voucher-detail-panel .voucher-items-container .action-row {
  padding: 15px 0;
}
.voucher-detail-panel .voucher-items-container .action-row .btn-add-voucher {
  background: white;
  border: 1px solid #285ee4;
  color: #285ee4;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.voucher-detail-panel .voucher-items-container .action-row .btn-add-voucher:hover {
  background-color: #f0f4ff;
}
.voucher-detail-panel .voucher-items-container .item-footer-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 15px 0;
  font-size: 18px;
  font-weight: bold;
}
@media (max-width: 700px) {
  .voucher-detail-panel .voucher-items-container .item-header-row {
    display: none;
  }
  .voucher-detail-panel .voucher-items-container .item-row {
    padding: 15px 5px;
  }
  .voucher-detail-panel .voucher-items-container .item-footer-row {
    font-size: 20px;
  }
}

.object_mgmt_add .carrier_area .tab-link {
  display: block;
}
.object_mgmt_add .carrier_area .tab-link .tabs {
  display: block;
}

#object_mgmt .main_title_content .guide_group {
  margin-right: 0;
}
#object_mgmt .main_title_content .btn_action {
  gap: 48px;
}
#object_mgmt .main_title_content .btn_action > .btn_group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0;
  margin-bottom: 8px;
  position: relative;
}
#object_mgmt .main_title_content .btn_action > .btn_group:first-child {
  padding-left: 0;
}
#object_mgmt .main_title_content .btn_action > .btn_group .btn + .btn {
  margin-left: 0;
}
#object_mgmt .main_title_content .btn_action > .btn_group + .btn_group::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background-color: #dbdbdb;
}

.receiver_info_container {
  position: relative;
  display: inline-block;
}
.receiver_info_container .receiver_detail_card {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  -webkit-transform: translate(-50%, -50%) !important;
          transform: translate(-50%, -50%) !important;
  z-index: 9999 !important;
  background: #fff;
  border: 2px solid #285EE4;
  border-radius: 16px;
  -webkit-box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
          box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  min-width: 350px;
  max-height: 85vh;
  overflow-y: auto;
  display: block;
}
@media (max-width: 768px) {
  .receiver_info_container .receiver_detail_card {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    -webkit-transform: translate(-50%, -50%) !important;
            transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 320px;
    max-height: 80vh;
    overflow-y: auto;
  }
}
.receiver_info_container .receiver_detail_card .detail_table {
  width: 100%;
  border-collapse: collapse;
}
.receiver_info_container .receiver_detail_card .detail_table th,
.receiver_info_container .receiver_detail_card .detail_table td {
  background-color: #fff;
  padding: 5px 12px;
  border-bottom: 2px solid #BACBF6;
  font-size: 16px;
  text-align: left;
  line-height: 1;
  height: 32px;
}
.receiver_info_container .receiver_detail_card .detail_table th {
  color: #000;
  width: 90px;
  font-weight: bold;
  border-right: 2px solid #BACBF6;
  white-space: nowrap;
}
.receiver_info_container .receiver_detail_card .detail_table td {
  color: #000;
  word-break: break-all;
}
.receiver_info_container .receiver_detail_card .detail_table .copy_flex .ic_copy {
  position: absolute;
  right: 12px;
}
.receiver_info_container .receiver_detail_card .edit_link_bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #285EE4;
  font-size: 16px;
  color: #fff;
  padding: 5px 15px;
  text-decoration: none;
  font-size: 16px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
  margin-top: -1px;
  border-radius: 0 0 14px 14px;
}
.receiver_info_container .receiver_detail_card .edit_link_bar:hover {
  background: #1E46B3;
  color: #fff;
}

/* --- 佈局解鎖與 Sticky 核心邏輯 --- */
.sticky-support,
.sticky-support .main,
.sticky-support .main_content,
.sticky-support .contents {
  overflow: visible !important;
  height: auto !important;
  display: block;
  width: 100%;
}
.sticky-support .table-container.is-sticky-mode .table-sticky-panel {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  z-index: 10;
}
.sticky-support .table-container.is-sticky-mode .table-sticky-panel .table_action_toolbar,
.sticky-support .table-container.is-sticky-mode .table-sticky-panel .table_header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.sticky-support .table-container.is-sticky-mode .table_responsive.fixhead {
  position: sticky;
  top: 175px;
  height: calc(100vh - 255px);
  max-height: calc(100vh - 200px);
  overflow: auto !important;
  border-top: none;
  background: #ffffff;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.sticky-support .table-container.is-sticky-mode .table_responsive.fixhead .data_table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}
.sticky-support .table-container.is-sticky-mode .table_responsive.fixhead .data_table thead th {
  position: sticky !important;
  top: 0 !important;
  background-color: #285EE4;
  color: #ffffff;
  z-index: 100;
  height: 44px;
  white-space: nowrap;
}
.sticky-support .table-container.is-sticky-mode .table_responsive.fixhead .data_table thead th.col_checkbox {
  left: 0;
  z-index: 110 !important;
}
.sticky-support .table-container.is-sticky-mode .table_responsive.fixhead .data_table tbody td.col_checkbox {
  position: sticky !important;
  left: 0;
  z-index: 10;
}
.sticky-support .table-container.is-sticky-mode .filter_menu {
  margin-top: 10px;
}
@media screen and (max-width: 768px) {
  .sticky-support .table-container.is-sticky-mode .table_responsive.fixhead {
    height: calc(100vh - 400px);
  }
}
@media screen and (max-width: 1024px) {
  .sticky-support {
    padding-left: 0 !important;
  }
}

.toolbar-fade-enter-active,
.toolbar-fade-leave-active {
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.toolbar-fade-enter,
.toolbar-fade-leave-to {
  opacity: 0;
}

.app-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  width: 100%;
}

/* 右側內容區主包裝 */
.main-wrapper {
  width: 100%;
  min-height: calc(100vh - 100px);
  padding: 40px;
  background-color: #f4f7f9;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: visible !important;
}

.title-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 24px;
  gap: 15px;
}
.title-section .title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.title-section .title h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  white-space: nowrap;
  margin: 0;
}
.title-section .title h3 .title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
}
.title-section .title h3 a.back {
  width: 47px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  margin-right: 8px;
  border-radius: 50%;
  position: unset;
  top: 0;
}
.title-section .title h3 a.back:hover {
  background-color: #E0E7F8;
}
.title-section .title h3 a.back:active {
  background-color: #E0E7F8;
}
.title-section .title h3 a.back img {
  display: block;
  position: unset;
  height: 47px;
  width: 47px;
  z-index: 2;
}
.title-section .title .sc-teaching_guide {
  margin: 0;
}
.title-section .title-action-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 30px;
}
.title-section .title-action-wrapper .title-action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px;
}
.title-section .title-action-wrapper .btn-divider::after {
  right: -40px;
}
.title-section .guide_nav {
  height: 182px;
  background-color: #fff;
  border: 4px solid #285ee4;
  border-radius: 20px;
  position: absolute;
  z-index: 101;
  top: 48px;
  right: 0 !important;
  display: none;
  padding: 16px;
}
.title-section .guide_nav.active {
  display: block;
}
.title-section .guide_nav ul li .btn {
  height: unset;
  max-height: unset;
}
.title-section .guide_nav ul li .btn img {
  display: block;
}

.title-action-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 30px;
}
.title-action-wrapper .title-action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px;
}
.title-action-wrapper .btn-divider::after {
  right: -40px;
}

.content-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: calc(100vh - 250px);
  overflow: hidden;
  background-color: #fff;
  border-radius: 16px;
}
.content-section .content-header {
  padding: 20px 25px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.content-section .content-header .filter_content {
  margin-top: 10px;
}
.content-section .content-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #285EE4 #f1f1f1;
}
.content-section .content-body::-webkit-scrollbar {
  width: 4px;
}
.content-section .content-body::-webkit-scrollbar-track {
  background: #F1F1F1;
  border-radius: 10px;
}
.content-section .content-body::-webkit-scrollbar-thumb {
  background-color: #285EE4;
  border-radius: 10px;
}
.content-section .content-body::-webkit-scrollbar-thumb:hover {
  background-color: rgb(24.2107438017, 72.632231405, 192.7892561983);
}
.content-section.no-limit {
  height: auto;
  min-height: calc(100vh - 250px);
  overflow: visible;
}
.content-section.no-limit .content-body {
  overflow-y: visible;
  height: auto;
}

.row-selected {
  background-color: #E6EDFF;
}

/* ==========================================================================
   1. 基礎 Grid 佈局結構 (由 Vue 接管寬度，此處僅定義行為)
   ========================================================================== */
.board-sticky-header {
  border-radius: 16px 16px 0 0;
}

.sticky-thead {
  background: #285ee4;
  color: #fff;
}

.sticky-thead,
.sticky-tr {
  display: inline-grid;
  min-width: 1660px;
  width: 100%;
}
.sticky-thead .board-th.is-spaced,
.sticky-thead .board-td.is-spaced,
.sticky-tr .board-th.is-spaced,
.sticky-tr .board-td.is-spaced {
  padding-right: 55px !important;
  position: relative;
}

.sticky-tr:hover {
  background-color: #E6EDFF;
}
.sticky-tr.active {
  background-color: #E6EDFF;
}

.sticky-tbody {
  background: #fff;
}

.board-th {
  min-height: 44px;
}

.board-th,
.board-td {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 5px;
  min-height: 44px;
}
.board-th.col_checkbox .custom_checkbox_wrapper,
.board-td.col_checkbox .custom_checkbox_wrapper {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.board-th.col_checkbox .custom_checkbox,
.board-td.col_checkbox .custom_checkbox {
  margin-right: 0;
}
.board-th.numeric,
.board-td.numeric {
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: flex-end !important;
  text-align: right !important;
}
.board-th.tb_showdiv,
.board-td.tb_showdiv {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 32px;
  text-align: center;
}

.board-th {
  font-size: 18px;
  background-color: #285EE4;
}
.board-th.sort_th {
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.board-th.sort_th:hover {
  background-color: #395CB3 !important;
}
.board-th.sort_th.is-sorted {
  background-color: #2E4A8F !important;
}
.board-th.filter_th {
  cursor: default;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.board-th.filter_th:has(.filter_icon:hover) {
  background-color: #395CB3 !important;
}
.board-th.filter_th.is-filtered {
  background-color: #2E4A8F !important;
  color: #fff;
}
.board-th.filter_th .filter_icon {
  cursor: pointer;
}

.board-td {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.board-td.tb_showdiv {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  line-height: 32px;
  min-width: 0;
}
.board-td .custom_checkbox_wrapper .custom_checkbox {
  margin: 0;
}

/* ==========================================================================
   2. 左側固定欄位 (Radio)
   ========================================================================== */
.board-th.col_radio,
.board-td.col_radio {
  position: sticky !important;
  left: 0;
  width: 50px;
  min-width: 50px;
  z-index: 45;
  background-color: inherit;
}

.sticky-thead .board-th.col_radio {
  background-color: #285EE4 !important;
  z-index: 55;
}

/* ==========================================================================
   3. 固定欄位 (表格第一欄 / 表格最後一欄 / 齒輪 / Selector)
   ========================================================================== */
.sticky-thead .board-th:first-child,
.sticky-tr .board-td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 45;
  background-color: inherit;
}

.board-th:first-child.no-limit,
.board-td:first-child.no-limit {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  background-color: transparent !important;
}

.sticky-tbody .sticky-tr .board-td:last-child {
  position: sticky !important;
  right: 0 !important;
  width: 50px;
  min-width: 50px;
  z-index: 45;
  background-color: inherit;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.sticky-tbody .sticky-tr .board-td:last-child.no-limit {
  width: auto !important;
  min-width: auto !important;
  position: static !important;
}

.sticky-thead .column_selector_wrapper {
  position: sticky !important;
  right: 0 !important;
  z-index: 100;
  background-color: #285EE4 !important;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

/* ==========================================================================
   4. 數據列表美化 (交錯層色與 Hover)
   ========================================================================== */
.sticky-tbody .sticky-tr {
  -webkit-transition: none !important;
  transition: none !important;
}
.sticky-tbody .sticky-tr:nth-child(odd) {
  background-color: #fcfcfc;
}
.sticky-tbody .sticky-tr:nth-child(even) {
  background-color: #f6f6f6;
}
.sticky-tbody .sticky-tr:hover {
  background-color: #f0f4ff !important;
}
.sticky-tbody .sticky-tr:hover .board-td {
  background-color: transparent !important;
}
.sticky-tbody .sticky-tr.row-selected {
  background-color: #E6EDFF !important;
}

.table-container.sticky-data-table {
  width: 100%;
  position: relative;
  overflow: visible !important;
}
.table-container.sticky-data-table .board-sticky-header {
  position: sticky;
  top: 100px;
  z-index: 1000;
  background: #fff;
}

/* ==========================================================================
   5. 捲軸容器控制
   ========================================================================== */
.header-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-touch-action: pan-y;
      touch-action: pan-y;
}
.header-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
.header-scroll-wrapper {
  scrollbar-width: none;
}

.body-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}
.body-scroll-wrapper .sticky-tbody {
  min-width: -webkit-min-content;
  min-width: -moz-min-content;
  min-width: min-content;
}

.body-scroll-wrapper::-webkit-scrollbar {
  height: 5px;
}

.body-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #285EE4;
  border-radius: 5px;
}

.discount-items-container input.allowance-finished-input {
    background-color: #e7e6e6;
    color: #000;
    cursor: not-allowed;
}

.discount-items-container input.allowance-finished-input:focus {
    border: 1px solid #c6c6c6;
}

.system-update-notice-modal {
    top: 0;
    height: 100vh;
    z-index: 5000;
    background-color: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
}

.system-update-notice-modal .u-modal-container {
    width: min(100%, 532px);
    max-width: 532px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.26);
}

.system-update-notice-modal .u-modal-hero {
    padding-top: 26px;
}

.system-update-notice-modal .modal_icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eaf1ff;
    color: #285ee4;
}

.system-update-notice-modal .modal_icon svg {
    width: 34px;
    height: 34px;
}

.system-update-notice-modal .notice-signal {
    position: absolute;
    top: 3px;
    right: -22px;
    width: 26px;
    height: 32px;
}

#systemUpdateNotice3Modal .modal_icon {
    width: 118px;
    height: 90px;
    border-radius: 0;
    background: transparent;
}

#systemUpdateNotice3Modal .modal_icon svg {
    width: 118px;
    height: 90px;
}

.system-update-notice-modal .u-modal-header {
    flex-direction: column;
    padding: 17px 24px 12px;
}

.system-update-notice-modal .u-modal-title {
    color: #111827;
    font-size: 28px;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
}

.system-update-notice-modal .notice-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 4px 14px;
    border-radius: 6px;
    background: #edf4ff;
    color: #285ee4;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.system-update-notice-modal .notice-time svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.system-update-notice-modal .u-modal-body {
    padding: 0 36px;
    overflow: visible;
}

.system-update-notice-modal .u-modal-message {
    color: #374151;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0;
}

.system-update-notice-modal .u-modal-message p {
    margin: 0;
}

.system-update-notice-modal .u-modal-message p + p {
    margin-top: 12px;
}

.system-update-notice-modal .u-modal-footer {
    padding: 22px 48px 26px;
}

.system-update-notice-modal .u-btn-group {
    gap: 20px;
}

.system-update-notice-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 162px;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.system-update-notice-modal .btn-outline-primary {
    border-color: #285ee4;
    background: #ffffff;
    color: #285ee4;
    box-shadow: 0 3px 8px rgba(40, 94, 228, 0.14);
}

.system-update-notice-modal .btn-primary {
    gap: 9px;
    background: #285ee4;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(40, 94, 228, 0.28);
}

.system-update-notice-modal .google-calendar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 5px;
    background: #ffffff;
}

.system-update-notice-modal .google-calendar-icon svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .system-update-notice-modal {
        padding: 16px;
    }

    .system-update-notice-modal .u-modal-container {
        max-height: calc(100vh - 32px);
    }

    .system-update-notice-modal .u-modal-title {
        font-size: 24px;
    }

    .system-update-notice-modal .notice-time {
        font-size: 20px;
    }

    .system-update-notice-modal .u-modal-body {
        padding: 0 24px;
    }

    .system-update-notice-modal .u-modal-message {
        font-size: 16px;
    }

    .system-update-notice-modal .u-modal-footer {
        padding: 20px 24px 24px;
    }

    .system-update-notice-modal .u-btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .system-update-notice-modal .btn {
        width: 100%;
    }
}

/* 平板裝置 (1025px 以下) ----------------- */
@media (max-width: 1025px) {
  .main-wrapper {
    margin-left: 0;
    width: 100%;
    padding: 16px;
  }
}
/* 手機裝置 (768px 以下) ------------------ */
@media (max-width: 768px) {
  .title-section .sc-data-content {
    margin-top: 0;
  }
  .title-section .title-action-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 30px;
  }
  .title-section .title-action-wrapper .title-action {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 16px;
  }
  .title-section .title-action-wrapper .title-action .btn,
  .title-section .title-action-wrapper .title-action .button_with_help {
    width: 100%;
    min-height: 40px;
  }
  .content-section .content-header {
    padding: 15px;
  }
  .content-section .content-header .filter_content {
    margin-top: 10px;
  }
}