
.hidden {
    display: none !important;
}
.form-control-p {
    padding-top: calc(.375rem + 1px);
    padding-bottom: calc(.375rem + 1px);
    font-weight: 400!important;
    max-width: unset;
    line-height: 1.5;
    height: 40px;
}
textarea {
    resize: none;
}
#process_diagram_show_1, #process_diagram_show_2, #site_layout_show, .no_img_preview {
    min-height: 200px;
    /* border: 1px dashed #ccc; */
    padding: 10px;
    background-color: #f8f9fa;
}
.process_diagram_div {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}
.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.loading.disable {
    display: none;
}
/* 新增的圖片樣式 */
.attachment-thumbnail {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}
/* 表單狀態徽章樣式 */
.form-status-badge-red {
    background-color: #FFF8F5;
    color: #CC3802;
    width: 100%;
    font-size: 1.2em;
    padding: 12px 24px;
    border-radius: 0.5rem;
    display: inline-block;
    font-weight: 500;
    text-align: left;
    margin-bottom: 2rem;
}
.form-status-badge-green {
    background-color: #E9FEFF;
    color: #015669;
    width: 100%;
    font-size: 1.2em;
    padding: 12px 24px;
    border-radius: 0.5rem;
    display: inline-block;
    font-weight: 500;
    text-align: left;
    margin-bottom: 2rem;
}

body.ui-body .owl-carousel#owl_gallery .pic {
    padding-bottom: 75%;
  }
  body.ui-body .owl-carousel#owl_thumb {
    margin-top: 15px;
  }
  body.ui-body .owl-carousel#owl_thumb .pic {
    padding-bottom: 100%;
    cursor: pointer;
  }
  body.ui-body .owl-carousel#owl_thumb .owl-item {
    padding-right: 15px;
    opacity: 0.5;
  }
  body.ui-body .owl-carousel#owl_thumb .owl-item.current {
    opacity: 1;
  }
  body.ui-body .owl-carousel#owl_thumb .owl-nav {
    display: none;
  }
  body.ui-body .owl-carousel#owl_project .pic {
    padding-bottom: 50%;
  }
  body.ui-body .owl-carousel#owl_project .owl-nav > * {
    top: calc(50% - 40px);
  }


  body.ui-body .nav-tabs button.nav-link.active {
    background: #0C7B95;
    color: #DCFEFF;
  }
  body.ui-body .nav-tabs-sub {
    background: #0C7B95;
    position: relative;
  }
  body.ui-body .nav-tabs-sub button.nav-link.active {
    background: #0C7B95;
    color: #fff;
  }

  body.ui-body header.ui-header {
    padding-top: 0px;
    font-size: 1.2em;
  }

  /*供應商專頁*/
.supplier-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 100px;
    background-color: #fff;
}

.wrapper.bg-light.angled:after,
.wrapper.bg-light.angled:before {
    border-color: var(--bs-light)
}

.wrapper.angled.upper-end:before {
    border-left-color: transparent !important;
    border-right-width: 100vw;
    border-top-width: 4rem;
    top: -4rem
}
.wrapper.angled.lower-end:after {
    border-left-color: transparent !important;
    border-right-width: 100vw;
    border-bottom-width: 4rem;
    bottom: -4rem
}
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: -.01rem;
    border-radius: 100%;
    height: 68px;
    width: 68px;
}
/* mark */
.lift {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    transform: translateY(0);
    transition: all .3s ease
}

.lift:hover {
    transform: translateY(-.4rem);
    box-shadow: 0 .25rem 1.25rem rgba(52, 63, 82, .1)
}

.rounded-circle {
    border-radius: 50% !important;
    height: 90px;
    width: 70px;
}

.statement {
    padding:  0 300px;
    @media screen and (max-width: 1200px) {
        padding: 0 50px;
    }
    @media screen and (max-width: 600px) {
        padding: 0 30px;
    }
}
.statement-pass {
    padding:  0 150px;
    @media screen and (max-width: 1200px) {
        padding: 0 50px;
    }
    @media screen and (max-width: 600px) {
        padding: 0 30px;
    }
}

body.ui-body .card-news .title.title-font {
    font-size: 1.35em;
    height: 50px;
  }

/* news-detail */
body.ui-body .breadcrumb.news-detail {
    padding: 15px 0;
    margin-bottom: 0px;
    font-size: 1.2em;
    padding-top: 0px;
  }

.customer-h1 {
    font-size: 2.25em;
    color: #1a5769;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.customer-h2 {
    font-size: 1.5em;
    color: #1a5769;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e8903f;
}

.font-size-13 {
  font-size: 1em;
}
.font-size-17 {
  font-size: 1.3em;
}

body.ui-body section.area-index-event button.nav-link::after {
  border: none;
}

body.ui-body section.area-index-case .card .pic {
  padding-bottom: 0;
}
body.ui-body header.ui-header nav ul li.has-sub.active {
  background-color: #FFFFFF;
}
body.ui-body header.ui-header nav ul li.has-sub.active > a {
  color: #015669 !important;
}

body.ui-body header.ui-header nav ul li.has-sub:hover{
  background-color: #FFFFFF;
}
body.ui-body header.ui-header nav ul li.has-sub:hover > a {
  color: #015669 !important;
  opacity: 0.8;
}
body.ui-body header.ui-header nav ul li:hover, body.ui-body header.ui-header nav ul li.active {
  background: #fff;
}
body.ui-body header.ui-header nav ul li:hover a, body.ui-body header.ui-header nav ul li.active a {
  color: #015669;
  opacity: 0.8;
}

body.ui-body section.area-index-event button.nav-link.active::after {
  background: #FFFFFF;
}

body.ui-body .nav-tabs-lg button.nav-link::after {
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* body.ui-body .nav-tabs button.nav-link:hover {
  background: #0C7B95;
  color: #fff;
} */
body.ui-body .nav-tabs-lg button.nav-link:hover::after {
  transform: scaleX(1);
  background: #FFFFFF;
}

body.ui-body .nav-tabs-lg button.nav-link.active::after {
  transform: scaleX(1);
  background: #FFFFFF;
}

.hidden {
  display: none !important;
}

body.ui-body footer.ui-footer .copyright-area a.btn-aa {
  display: block;
  width: 88px;
}

/* 讓 sub-menu 在 hover 狀態時顯示 */
body.ui-body header.ui-header nav ul li.has-sub:hover .sub-menu {
  display: block;
}

/* 確保 sub-menu 默認隱藏 */
body.ui-body header.ui-header nav ul li.has-sub .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background-color: #0C7B95;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 10px 0;
  min-width: 200px;
  max-width: 250px; /* 限制最大寬度 */
  
  /* 手機版樣式調整 */
  @media screen and (max-width: 768px) {
    position: fixed; /* 改為 fixed 定位 */
    left: 10px; /* 左邊留一點邊距 */
    right: 10px; /* 右邊留一點邊距 */
    max-width: none; /* 移除最大寬度限制 */
    width: auto; /* 自動寬度 */
    top: auto; /* 重置 top */
    transform: none; /* 移除可能的變形 */
  }
}

/* hover 時箭頭旋轉效果 */
body.ui-body header.ui-header nav ul li.has-sub:hover i.fa-caret-down {
  transform: rotate(180deg);
}

/* 改進 sub-menu 內部的樣式 - 修改為上下排列 */
body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* 改為垂直排列 */
}

body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li {
  padding: 0;
  width: 100%; /* 讓每個項目佔滿整個寬度 */
  white-space: nowrap; /* 防止文字換行 */
  
  /* 手機版調整 */
  @media screen and (max-width: 768px) {
    white-space: normal; /* 手機版允許文字換行 */
  }
}

body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li a {
  display: block;
  padding: 8px 15px;
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s ease;
  /* border-bottom: 1px solid #eee; 添加分隔線 */
  
  /* 手機版縮小 padding */
  @media screen and (max-width: 768px) {
    padding: 6px 12px; /* 縮小上下 padding */
  }
}

body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li:last-child a {
  border-bottom: none; /* 最後一個項目不需要底部邊框 */
}

/* 移除可能的 after 元素干擾 */
body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li a::after {
  display: none !important;
}

body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li a:hover::after {
  display: none !important;
}

/* 確保子選單項目 hover 時完整覆蓋整個區域 */
body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li a:hover {
  background-color: #f5f5f5 !important;
  color: #015669 !important;
  text-decoration: none;
  width: 100%; /* 確保寬度 100% */
  box-sizing: border-box; /* 確保 padding 計算在內 */
  /* border-bottom: 1px solid #eee; */
}

body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li:last-child a:hover {
  border-bottom: none; /* 最後一個項目不需要底部邊框 */
}

body.ui-body section.mainview-index .text {
    margin-top: 0px;
    padding: 50px 20px;
}

body.ui-body header.ui-header nav a.logo img {
    height: 50px;
}


body.ui-body header.ui-header nav ul li.has-sub .sub-menu ul li a {
  display: block;
  padding: 12px 15px; /* 統一 padding 值 */
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s ease;
  
  /* 手機版縮小 padding */
  @media screen and (max-width: 768px) {
    padding: 8px 12px;
  }
}

/* 防止 sub-menu 造成水平卷軸 */
@media screen and (max-width: 768px) {
  body.ui-body header.ui-header {
    overflow-x: hidden; /* 防止水平溢出 */
  }
  
  body.ui-body header.ui-header nav {
    overflow-x: hidden; /* 防止水平溢出 */
  }
  
  /* 確保 sub-menu 不會造成頁面溢出 */
  body.ui-body header.ui-header nav ul li.has-sub .sub-menu {
    box-sizing: border-box; /* 確保 padding 和 border 計算在內 */
    overflow-x: hidden; /* 防止內容溢出 */
  }
}



/* nav 移除底線 */
body.ui-body header.ui-header nav > ul > li a::after {
  content: "";
  display: none; /* 修改為 none 以移除底線 */
  height: 1px;
  width: 0px;
  background: #fff;
  position: absolute;
  bottom: 20px;
  left: 10px;
  transition: all ease-in-out 0.3s;
}

body.ui-body header.ui-header nav > ul > li a:hover::after {
  width: 0; /* 修改為 0 以防止寬度擴展 */
}

@media screen and (max-width: 768px) {
body.ui-body header.ui-header nav ul, body.ui-body header.ui-header nav .tool {
    display: none;
    width: calc(100%);
  }
}



body.ui-body .nav-tabs button.nav-link {
  color: #F8F8F8;
  border: 1px solid #ddd;
}

body.ui-body .nav-tabs {
  border-bottom: 1px solid #dee2e6;
}
.img-cover {
    width: auto;
    height: 250px;
    object-fit: cover;
}

/* 無障礙 */
body.ui-body .form-check-custom input:focus + .icon {
    border: 2px dashed #0800ee !important;
    /* outline: 2px dashed #0800ee !important;  */
    /* outline-offset: 2px;   */
}
.btn-nav-carousel:focus {
  border: 2px dashed #0800ee !important;
    /* outline: 2px dashed #0800ee !important;  */
}

/* Owl Carousel 導航按鈕鍵盤焦點樣式 */
.owl-card2 .owl-nav button.owl-prev:focus,
.owl-card2 .owl-nav button.owl-next:focus,
.owl-card .owl-nav button.owl-prev:focus,
.owl-card .owl-nav button.owl-next:focus {
    border: 2px dashed #0800ee !important;
    outline: 2px dashed #0800ee !important;
    outline-offset: 2px;
}

/* 確保按鈕可以接收鍵盤焦點的基本樣式 */
.owl-card2 .owl-nav button.owl-prev,
.owl-card2 .owl-nav button.owl-next,
.owl-card .owl-nav button.owl-prev,
.owl-card .owl-nav button.owl-next {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* hover 狀態樣式 */
.owl-card2 .owl-nav button.owl-prev:hover,
.owl-card2 .owl-nav button.owl-next:hover,
.owl-card .owl-nav button.owl-prev:hover,
.owl-card .owl-nav button.owl-next:hover {
    transform: scale(1.05);
}


body.ui-body .nav-tabs button.nav-link:focus {
  border: 2px dashed #0800ee !important;
}

a.service-box.bg-image1:focus {
  border: 2px dashed #0800ee !important;
  outline: 2px dashed #0800ee !important;
}
a.service-box.bg-image2:focus {
  border: 2px dashed #0800ee !important;
  outline: 2px dashed #0800ee !important;
}

/* .owl-carousel.owl-drag .owl-item.active a .news-card {
  border: 2px dashed #0800ee !important;
} */

.card a:focus, .card a.link:focus {
  border: 2px dashed #0800ee !important;
}

/* a, a.link {border: 2px dashed #0800ee !important;} */
/* a:focus, a.link:focus {border: 2px dashed #0800ee !important;} */

.edm-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.edm-form .logo {
    margin-bottom: 10px;
}

/* 圖片容器限制寬度 */
.content-image-container {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    margin: 1rem 0;
    text-align: left;
    box-sizing: border-box;
}

/* 容器內的圖片樣式 */
.content-image-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* 響應式斷點 */
@media (max-width: 768px) {
    .content-image-container {
        margin: 0.5rem 0;
    }
    
    .article-con img {
        margin: 0.5rem auto;
    }
}

body.ui-body .article-con h2 {
    border-left: 4px solid #0D7B95;
    padding-left: 15px;
    margin-top: 60px;
    font-size: 1.5em;
}

.owl-card2 .owl-nav button,
.owl-card .owl-nav button {
    background: #015669 !important;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 10px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.owl-card2 .owl-nav,
.owl-card .owl-nav {
    margin-top: 0px;
    text-align: center;
}


/* body.ui-body header.ui-header nav ul li:hover, body.ui-body header.ui-header nav ul li.active {
  background: #FFFFFF;
} */
/* .nav-main-menu {
    width: 80%;
} */

/* body.ui-body header.ui-header {
    height: 130px;
  }

@media screen and (min-width: 991px) {
  body.ui-body header.ui-header nav ul li.has-sub:hover::before {
    top: 100px;
  }
}

body.ui-body header.ui-header nav ul li .sub-menu {
    top: 100px;
  } */