.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/img/login.png') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.2;

  z-index: -1;

}

.btn-link {
  color: #ffffff !important
}
.btn-link:hover {
  color: #a6a6a6 !important
}

.btn-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8ba6ce;
  border: none;
  color: white;;
}

.btn-circle .bi {
  font-size: 0.8rem;
}

.btn-circle:hover {
  background-color: #787a7d;
  color: white;
}


.form-floating {
  position: relative;
}
.form-floating input {
   /* height: 52px !important;  
  min-height: 52px !important;    */
  padding-top: 1em !important;
}
.form-floating label {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 40%;
  transition: all 0.2s ease;
  pointer-events: none;
  background: white;
  padding: 0 5px;
}
.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 1.1em;
  color: #495057;
}
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 1.1em;
  color: #495057;
}
.clear-icon {
  position: absolute;
  top: 50%; 
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #ccc;
}
.clear-icon:hover {
  color: #000;
}


/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent background */
  z-index: 1060; /* Higher than any other element */
  display: none; /* Hide by default */
  justify-content: center;
  align-items: center;
}

#loadingSpinner {
  top: 50%;
  left: 50%;
  position: absolute;
}

/* Toast */
/* 設定 .toast 容器的樣式 */
#toastContainer {
  position: fixed;
  top: 70px; /* 讓 toast 出現在網頁中間上方 */
  left: 50%; 
  transform: translateX(-50%); /* 置中顯示 */
  z-index: 1250; /* 確保 toast 在最上層顯示 */
  width: auto; /* 設定寬度，可以根據需求調整 */
}

/* 設定 .toast 的初始狀態 */
.toast {
  opacity: 0;
  transform: translateY(-20px); /* 初始位置向上移動 */
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-family: 'Poppins', sans-serif;
}

.toast-body{
  background-color: #ffffff;
  color: #000000;
}

/* 顯示時的效果 */
.toast.show {
  opacity: 1;
  transform: translateY(0); /* 向下移動到正確位置 */
}

/* 隱藏時的效果 */
.toast.fade-out {
  opacity: 0;
  transform: translateY(-20px); /* 向上移動消失 */
  transition: opacity 1s ease, transform 1s ease; /* 確保有過渡效果 */
}

.fade-out {
  transition: opacity 1s ease-out; /* 只有消失時才有過渡效果 */
  opacity: 0;
}

.hsntable {
  margin-top: 0px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px; 
  font-family: "Poppins", sans-serif;
 
}

.tabledialog thead tr th{
  background-color: #e2f0d9;
  color: rgb(127, 121, 121); 
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 10px; 
  overflow: hidden;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1); 
  text-align: center;
border-bottom: 2px solid #0f6015;
white-space: nowrap;

}

.hsntable thead tr td{
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0); 
 
}
.hsntable thead tr th{
  background-color: #e2f0d9;
  color: rgb(127, 121, 121); 
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 10px; 
  overflow: hidden;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1); 
  text-align: center;
border-bottom: 2px solid #0f6015;
border-left: 1px solid rgba(15, 96, 21, 0.2);
white-space: nowrap;

}

.hsntable thead tr th a{
  color: rgb(127, 121, 121); 
}


.hsntable tfoot tr td{
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0); 
}

.hsntable tbody tr:nth-child(odd) td {
  background-color: rgb(255, 255, 255);
  color: black; 
}

.hsntable tbody tr:nth-child(even) td {
  background-color: white;
  color: black; 
}

.hsntable tbody tr td {
 padding: 10px 10px 0 10px ;
}

.hsntable tbody tr td button{
  margin-bottom: 5px;
 }
 


.hsntable th, .hsntable td {
  border: 0px solid black;
}




.hsntable tbody td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.hsntable tbody td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}


.hsntable tbody tr td span.oval {
  background-color: rgb(212, 215, 216); /* 設定背景顏色 */
  border-radius: 10px;                   /* 設定邊框圓角來達成圓角矩形 */
  text-align: center;                    /* 文字置中 */
  align-items: center;                   /* Flex 布局中的垂直置中 */
  justify-content: center;               /* Flex 布局中的水平置中 */
  padding: 1px 10px;                    /* 上下 10px, 左右 20px 的內邊距 */
  display: inline-flex;                  /* 設定為 inline-flex，讓 span 的寬度隨內容調整 */
}

.hsntable tbody tr {

  margin-bottom: 10px; 
  border-radius: 15px; 
  overflow: hidden;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1); 
}

.hsntable tbody tr td span.linkspan {
  color: #018bfd;
  text-decoration: underline;
  cursor: pointer;
} 

.no-data {
  text-align: center;
  margin: 20px;
  color: #888;
}
.no-data i {
  font-size: 48px;
  margin-bottom: 10px;
}
.no-data p {
  font-size: 18px;
  margin-top: 0;
}


.btn {
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
  transition: box-shadow 0.3s ease;  */
  background-color: #86bb24 !important;
  border-color: #86bb24 !important;
}

.btn-red {
  color: #ffffff;
  background-color: #b20202 !important;
  border-color: #b20202 !important;
}

.btn-gray {
  color: #ffffff;
  background-color: #9d9d9d !important;
  border-color: #9d9d9d !important;
}

.btn:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* 更强的阴影效果 */
}

body {
  font-family: "Poppins", sans-serif;
}



/*===================

=====================*/


:root {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #f6f9ff;
  color: #444444;
}

a {
  color: #4154f1;
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main-content {
  margin-top: 20px;
  padding: 20px 10px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main-content {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Card */
.card {
  margin-bottom: 0px;
  margin-top: 30px;
  margin-right: 0px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 20px 30px rgba(45, 45, 47, 0.1);
}

.card-header, .card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  display: flex;
  align-items: center;
  padding: 20px 0 15px 0px;
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  font-family: "Poppins", sans-serif;
}

.card-title i {
  margin-right: 10px;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0px 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}


.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 170px;
  }
}

.logo img {
  max-height: 40px;
  margin-left: 40px;
}

.logo span {
  font-size: 30px;
  font-weight: 700;
  color: #012970;
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #ffffff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #012970;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}



.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}



.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  padding-right: 20px; /* 調整這個數值來移動日曆圖示 */
  
}
input:required:focus:invalid {
  border: 2px solid red;
  outline: none; /* 移除預設的藍色 outline */
}
select:required:focus:invalid {
  border: 2px solid red;
  outline: none; /* 移除預設的藍色 outline */
}

/* Collapse Toggle Button 縮放查詢區*/
    .toggle-collapse-btn {
        background-color: transparent;
        border: none;
        padding: 0.25rem;
        font-size: 1.25rem;
        color: #6c757d;
        transition: color 0.2s ease;
    }

    .toggle-collapse-btn:hover {
        color: #000;
        cursor: pointer;
    }

    .toggle-collapse-btn:focus {
        box-shadow: none;
    }

    /* 讓按鈕浮在 H5 右上角 */
    .collapse-toggle-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    /* 原本畫面上的style */

    .w90p {
        width: 90% !important;
    }
    .w80p {
        width: 80% !important;
    }
    .w45p {
        width: 45% !important;
    }
    .w150{
        width: 150px !important;
    }
    .w200{
        width: 200px !important;
    }
    .h60p {
        height: 60% !important;
    }
    .h60  {
        height: 60px !important;
    }
    .h100{
        height: 100px !important;
    }
    .h150{
        height: 150px !important;
    }
    .hauto {
        height: auto !important;
    }
    .mb20 {
        margin-bottom: 20px  !important;
    }
    .mb10 {
        margin-bottom: 10px !important;
    }
    .mb0{
        margin-bottom: 0px !important;
    }
    .mr8 {
        margin-right: 8px !important;
    } 
    .mr20 {
        margin-right: 20px !important;
    }
    .mt0{
        margin-top: 0px !important;
    }
    .mt10 {
        margin-top: 10px !important;
    }
    .ml5 {
        margin-left: 5px !important;
    }
    

    .pr15 {
        padding-right: 15px !important;
    }
    .pl10 {
        padding-left: 10px !important;
    }
    .pl20p {
        padding-left: 20% !important;
    }

    .pl30p {
        padding-left: 30% !important;
    }
    .pl40p {
        padding-left: 40% !important;
    }

    .s-gridview{
        width: 100% !important;
        overflow-x: auto !important;
    }

    .s-img-captcha{
      height: 70% !important;
      width:70% !important;
    }
      .s-img-captcha7050{
      height: 70% !important;
      width:50% !important;
    }
    .s-img-captcha5050{
      height: 50% !important;
      width:50% !important;
    }

    .max-width40p {
      max-width: 40% !important;
    }
    .max-width80p {
      max-width: 80% !important;
    }

    .max-width150 {
      max-width: 150px !important;
    }
    .max-width700 {
      max-width: 700px !important;
    }
    .s-header-container {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      position: relative !important;      
    }
    .s-home-button {
      position: absolute !important;
      right: 0 !important;
    }
    .text-left {
      text-align: left !important;
    }
    .text-center {
      text-align: center !important;
    }
    .v-middle {
      vertical-align: middle !important;
    }

    .font-bold {
      font-weight: bold !important;
    } 
    .font-size1rem {
      font-size: 1rem !important;
    }

    .color-red {
      color: red !important;
    }

    .s-hide{
      display: none ;
    }

    .s-linepay-img {
      width: 24px !important;
      height: 24px !important;
    }

    .s-apply-img {
      width: 90px !important;
      height: auto !important;
      margin-bottom: 10px !important;
    }
    .flex15 {
      flex: 1 1 15% !important;
    }
    .flex70 {
      flex: 1 1 70% !important;
    }
    .color-86bb24{
      color: #86bb24 !important;
    }
    .momologo {
      width: 200px !important;
      height: auto !important;
    }
    .custlinkimg {
     max-width: 100px !important;
     max-height: 100px !important;
     margin-left: 150px !important;
    }
    .custlinkdelbtn {
      margin-left: 100px !important;
      display:inline !important;
      text-align: top !important;
    }
    .custlinkfile{
      color:rgba(var(--bs-body-color-rgb),.65); transform: scale(.85) translateY(-.5rem) translateX(.15rem);position: absolute; top: -1rem; left: 0; background: white; padding: 0 0.25rem; z-index: 10;
    }

    .s-ovindex-div {
      position: absolute; top: 10px; right: 10px;
    }








