header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  transition: .1s;
}

.main-header {
  background-color: #fff;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 75%;
}

.header-btn {
  font-size: 18px;
  padding: 8px 7px;
  border: none;
  background-color: transparent;
  margin: 0 25px;
  transition: .3s;
  cursor: pointer;
}

.header-btn:hover {
  background-color: rgb(62, 62, 62);
  color: rgb(220, 220, 220);
}

.header-btn.active {
  background-color: rgb(62, 62, 62);
  color: rgb(220, 220, 220);
}

.search {
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.front-banner-section {
  width: 100%;
  height: 380px;
  margin-top: 85px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("../images/front-banner-bg.png");
  background-size: cover;
  background-position: center;
}

.section-1 {
  transform: translateY(-50px);
  margin-bottom: 50px;
}

.section-1-btn {
  width: 300px;
  height: 300px;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 30px;
}

.section-1-btn img {
  transition: .2s ease-in;
}

.section-1-btn:hover img {
  transform: scale(1.05);
}

.coming-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000078;
  z-index: 22;
  font-size: 24px;
  color: white;
}

.banner-section {
  width: 100%;
  height: 280px;
  margin-top: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("../images/banner.png");
  background-size: cover;
  background-position: center;
}

/* Banner Navigation Styles */
.banner-nav {
  width: 86.5%; /* 恢復原本寬度保持靠左位置 */
  bottom: 15px;
  gap: 20px;
}

/* Home Section (Fixed) */
.nav-home-section {
  flex-shrink: 0;
}

.nav-btn {
  border: none;
  background-color: transparent;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-size: 18px;
  border-radius: 50px;
  padding: 5px 15px 5px 10px;
  transition: .3s;
  white-space: nowrap;
}

.nav-btn:hover {
  background-color: #121D39;
}

.home-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Divider */
.nav-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Pagination Section */
.nav-pagination-section {
  flex: none; /* 改為固定寬度而不是 flex: 1 */
  width: 670px; /* 增加寬度配合項目容器調整 */
  gap: 15px;
}

.nav-items-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  max-width: 585px; /* 增加一點寬度確保按鈕完全顯示 */
}

.nav-items-wrapper {
  display: flex;
  gap: 15px;
  transform: translateX(0);
  transition: transform 0.3s ease;
  will-change: transform;
}

.nav-item {
  flex-shrink: 0;
  min-width: 130px; /* 減少寬度，去掉多餘空間 */
}

/* Navigation Controls */
.nav-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-control-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.nav-control-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.nav-control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-control-btn:active:not(:disabled) {
  transform: scale(0.95);
}

/* Active state for navigation items */
.nav-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .nav-pagination-section {
    width: 600px;
  }
  
  .nav-items-container {
    max-width: 520px;
  }
}

@media screen and (max-width: 768px) {
  .banner-nav {
    width: 95%; /* 手機版使用更多空間 */
    gap: 10px;
  }
  
  .nav-pagination-section {
    width: 400px;
  }
  
  .nav-items-container {
    max-width: 300px;
  }
  
  .nav-item {
    min-width: 120px;
    font-size: 16px;
  }
  
  .nav-btn {
    font-size: 16px;
    padding: 4px 12px 4px 8px;
  }
  
  .nav-control-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .banner-nav {
    width: 95%;
    flex-direction: column; /* 手機小螢幕時垂直排列 */
    align-items: flex-start;
    gap: 8px;
  }
  
  .nav-pagination-section {
    width: 100%;
  }
  
  .nav-divider {
    display: none; /* 垂直排列時隱藏分隔線 */
  }
}

.banner-title {
  padding-top: .5em;
  padding-left: 7%;
  color: #ffffffe6;
  font-size: 36px;
  letter-spacing: 24px;
}

.banner-info button {
  border: none;
  background-color: transparent;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-size: 18px;
}

.form-wrap {
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
}

.form-title {
  letter-spacing: 2px;
}

.triangle-icon {
  position: absolute;
  width: 30px;
  height: 15px;
  background-color: #545E7A;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  bottom: -.4rem;
  left: 2rem;
}

.signal-btn-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}

.signal-btn {
  border: none;
  padding: 7px 0;
  background-color: rgb(152, 152, 152);
  color: white;
  font-size: 18px;
  transition: .3s;
}

.signal-btn.active {
  background-color: #545E7A;
  cursor: default;
}

.signal-btn:hover {
  background-color: #545E7A;
}

.mandatory-tag::before {
  content: '＊ ';
  color: rgba(255, 0, 0, 0.8);
}

.conditional-tag::before {
  content: '＊ ';
  color: rgba(0, 42, 255, 0.8);
}

.optional-tag::before {
  content: '＊ ';
  color: rgba(166, 166, 166, 0.8);
}

.title-tag::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 15px;
  margin-right: 10px;
  transform: translateY(2px);
  background-color: #121D39;
}

.upload-btn {
  border: none;
  padding: 5px 10px;
  background-color: #545E7A;
  color: white;
  font-size: 18px;
  transition: .3s;
  cursor: pointer;
}
.upload-custom-btn {
  border: none;
  padding: 5px 10px;
  background-color: #545E7A;
  color: white;
  font-size: 18px;
  transition: .3s;
  cursor: pointer;
}
#iconPreview {
  margin-top: 10px;
  border-radius: 5px;
}
.sign-photo-wrap {
  width: 240px;
  height: 240px;
}

.signal-select-wrap {
  outline: 1px solid #ced4da;
  max-height: 350px;
  overflow-y: scroll;
  /* background-color: #f1f1f1; */
}

.no-sign {
  height: 90px;
}

.signal-select {
  cursor: pointer;
  border-radius: 4px;
  height: 85px;
}

.signal-select span {
  white-space: wrap;
}

/* .signal-select:hover{
  outline: 2px solid #545E7A;
} */
.signal-select.active {
  outline: 2px solid #545E7A;
  border-radius: 4px;
}

.signal-select.active::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 18px;
  height: 18px;
  background-color: #545E7A;
  border-radius: 0 0 0 4px;
}

.signal-select.active::after {
  content: '\2713';
  position: absolute;
  top: -2px;
  right: 2px;
  font-size: 14px;
  color: white;
}

.vehicle-checkbox-wrap {
  outline: 1px solid #ced4da;
  /* max-height: 350px; */
  /* overflow-y: scroll; */
  /* background-color: #f1f1f1; */
}

.vehicle-checkbox-wrap span {
  white-space: inherit;
}

.checkmark-wrap-container {
  top: 0;
  width: 40px;
  left: 10px;
  overflow: hidden;
}

.checkmark-wrap {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  height: 100%;
}

.checkmark-wrap input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0%;
  height: 20px;
  width: 20px;
  background-color: lightgray;
  transform: translateY(-50%);
}

.checkmark-wrap:hover input~.checkmark {
  background-color: #ccc;
}

.checkmark-wrap input:checked~.checkmark {
  background-color: #545E7A;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkmark-wrap input:checked~.checkmark:after {
  display: block;
}

.checkmark-wrap .checkmark:after {
  left: 7px;
  top: 5px;
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(35deg);
  -ms-transform: rotate(35deg);
  transform: rotate(35deg);
}

.checkmark-wrap input:disabled~.checkmark {
  background-color: #757575;
  cursor: not-allowed;
}

.add {
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 50%;
  text-indent: -12em;
  transition: color .25s;
  position: relative;
  overflow: hidden;
  background-color: #545E7A;
  cursor: pointer;
}

.add:hover {
  color: white;
  background-color: #121D39;
}

.add:before,
.add:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
}

.add:before {
  width: 20px;
  border-top: 4px solid;
  margin: -2px 0 0 -10px;
}

.add:after {
  height: 20px;
  border-left: 4px solid;
  margin: -10px 0 0 -2px;
}

.reduce {
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 50%;
  text-indent: -12em;
  transition: color .25s;
  position: relative;
  overflow: hidden;
  background-color: rgb(244, 69, 69);
  cursor: pointer;
  transform: translateY(6px) scale(.9);
}

.reduce:hover {
  color: white;
  background-color: rgb(198, 52, 52);
}

.reduce:before,
.reduce:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
}

.reduce:before {
  width: 20px;
  border-top: 4px solid;
  margin: -2px 0 0 -10px;
}

.exit {
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 50%;
  text-indent: -12em;
  transition: color .25s;
  position: relative;
  overflow: hidden;
  background-color: rgb(244, 69, 69);
  cursor: pointer;
  transform: rotate(45deg);
}

.exit:hover {
  /* color: white; */
  background-color: rgb(198, 52, 52);
}

.exit:before,
.exit:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
}

.exit:before {
  width: 20px;
  border-top: 4px solid;
  margin: -2px 0 0 -10px;
}

.exit:after {
  height: 20px;
  border-left: 4px solid;
  margin: -10px 0 0 -2px;
}

.impact-lane-code span.checkmark{
  display: inline-block !important;
}

.lane-all-clock {
  display: flex;
  height: 28px;
  left: 140px;
}

.lane-bg-wrap {
  width: 640px;
  height: 180px;
}

.lane-bg-wrap img {
  top: 0;
  left: 0;
  z-index: 1;
}

.lane-bg-wrap .checkbox-wrap {
  padding-left: 63px;
  top: 36px;
  left: 0;
  height: 48px;
  /* background: #0000005f; */
  z-index: 2;
}

.lane-bg-wrap .checkbox-wrap .checkmark-wrap-container {
  margin-right: 14px;
}

.map-btn {
  border: none;
  padding: 5px 40px;
  background-color: #545E7A;
  color: white;
  font-size: 18px;
  transition: .3s;
  cursor: pointer;
}

.submit-btn {
  border: none;
  width: 150px;
  height: 40px;
  background-color: #545E7A;
  color: white;
  font-size: 18px;
  transition: .3s;
  cursor: pointer;
}

.save-btn {
  border: none;
  width: 150px;
  height: 40px;
  background-color: #545E7A;
  color: white;
  font-size: 18px;
  transition: .3s;
  cursor: pointer;
}

.input-gray input {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.float-tools-container {
  padding: 15px;
  position: fixed;
  width: 180px;
  height: 375px;
  right: 35px;
  bottom: 35px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
}

.float-tools-container div {
  cursor: pointer;
}

.large-title-tag {
  font-size: 18px;
  border-left: 5px solid #121D39;
}

.field-wrap {
  position: relative;
}

.err-msg {
  position: absolute;
  width: 100%;
  left: 0px;
  top: 65px;
  display: none;
  align-items: start;
  color: red;
}

.err-msg>i {
  transform: translateY(1.5px);
}
.err-msg.column{
  top:90px;
}
.err-msg.sign-photo {
  left: 235px;
  bottom: 7px;
}

.err-msg.lonlat {
  left: 103px;
  top: 37px;
}

.err-msg.lane {
  left: 146px;
  top: 37px;
}
.err-msg.cnode-lonlat,
.err-msg.center-lonlat
{
  left: 153px;
  top: 37px;
}
.err-msg.s-lonlat{
  left: 139px;
  top: 37px;
}
.err-msg.e-lonlat{
  left: 132px;
  top: 37px;
}
#FacilityVehiclesErrorMsg,
#FacilityTimesErrorMsg {
  display: none;
  color: red;
}

.err-msg span {
  font-size: 12px;
  max-width: 100%;
  /* overflow: hidden;
  text-overflow: ellipsis; */
  text-wrap: wrap;
  word-break: break-all;
}

#FacilityVehiclesErrorMsg span,
#FacilityTimesErrorMsg span {
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-page-btn {
  border: none;
  cursor: pointer;
  width: 130px;
  height: 38px;
  background-color: #e9993e;
  color: white;
  font-size: 18px;
  transition: .3s;
  margin: 0 0 0 40px;
}

.list-page-btn:hover {
  background-color: #c68235;
  color: white;
}

.date-icon-wrap {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #757575;
}

.draft-search,
.formal-search,
.plan-search {
  margin-bottom: 30px;
}

.close-tag {
  transform: scale(1.3);
  cursor: pointer;
}

.upload-empty-message {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.draft-empty-message {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.formal-empty-message {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.upload-page-btn {
  border: none;
  cursor: pointer;
  padding: 0px 20px;
  background-color: #e9993e;
  color: white;
  transition: .3s;
}

.upload-page-btn:hover {
  background-color: #c68235;
  color: white;
}

.upload-dark-btn {
  padding: 0px 20px;
  cursor: pointer;
  background-color: #474747;
  color: white;
  border: none;
  transition: .3s;
}

.upload-dark-btn:hover {
  background-color: #5f5f5f;
}

/* 影響車道代碼 */
.normal-lane-bg {
  max-width: 720px;
  height: 250px;
  display: flex;
  background-color: #414146;
}

.shoulder-lane-bg {
  max-width: 840px;
  height: 250px;
  display: flex;
  background-color: #414146;
}

.dash-border-right {
  background-image: none, none, repeating-linear-gradient(180deg, #fff, #fff 15px, transparent 15px, transparent 30px, #fff 30px), none;
  background-size: 1.3px 100%, 100% 1.3px, 1.3px 100%, 100% 1.3px;
  background-position: 0 0, 0 0, 100% 0, 0 100%;
  background-repeat: no-repeat;
}

.direction-block {
  width: 50px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  writing-mode: vertical-lr;
  font-size: 14px;
  position: relative;
  background-color: #000;
  color: #e9e9e9;
  border-right: 5px solid #414146;
}

.separator-block {
  width: 50px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  writing-mode: vertical-lr;
  font-size: 14px;
  position: relative;
  background-color: #e9e9e9;
  border-right: 5px solid #414146;
}

.separator-block span {
  letter-spacing: 2px;
  font-weight: 800;
  font-size: 16px;
  color: #414146;
}

.normal-single-lane-wrap {
  width: calc(100% - 55px);
  border-left: 3px solid #e9e9e9;
  border-right: 3px solid #e9e9e9;
}

.normal-single-lane {
  width: 16.66%;
  height: 100%;
}

.shoulder-lane-bg>.left-block,
.shoulder-lane-bg>.right-block {
  width: calc(50% - 25px);
}

.shoulder-single-lane-wrap {
  width: 100%;
}

.shoulder-single-lane {
  width: 12.5%;
  height: 100%;
}

.left-rs-shoulder,
.left-ls-shoulder,
.right-rs-shoulder,
.right-ls-shoulder {
  padding-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12.5%;
  height: 100%;
  writing-mode: vertical-lr;
  letter-spacing: 2px;
}

.left-rs-shoulder {
  border-right: 3px solid #e9e9e9;
}

.left-ls-shoulder {
  border-left: 3px solid #f6c744;
  border-right: 1.5px solid #67ccb2;
}

.right-ls-shoulder {
  border-left: 1.5px solid #67ccb2;
  border-right: 3px solid #f6c744;
}

.right-rs-shoulder {
  border-left: 3px solid #e9e9e9;
}

.text-horizontal {
  writing-mode: horizontal-tb;
}

.text-vertical {
  writing-mode: vertical-lr;
}

.arrow-top {
  width: 20px;
  height: 40px;
  position: relative;
}

.arrow-top:before {
  content: "";
  position: absolute;
  border-top: 12px solid #f6c744;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid transparent;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.arrow-top::after {
  content: "";
  position: absolute;
  background-color: #f6c744;
  width: 30%;
  height: 50%;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow-bottom {
  width: 20px;
  height: 40px;
  position: relative;
}

.arrow-bottom:before {
  content: "";
  position: absolute;
  border-top: 8px solid #f6c744;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid transparent;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow-bottom::after {
  content: "";
  position: absolute;
  background-color: #f6c744;
  width: 30%;
  height: 70%;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* 影響車道代碼 */


/* @media screen and (max-width: 1680px) {
  .draft-search, .finished-search {
    margin-bottom: 170px;
  }
} */
@media screen and (max-width: 1550px) {
  .float-tools-container {
    bottom: 5px;
    right: 5px;
  }
}

@media screen and (max-width: 1440px) {
  .banner-title {
    padding-left: 4%;
  }
}
@media screen and (max-width: 1470px) {
  .table-wrap {
    overflow-x: scroll;
  }
  .user-list-tbody tr td{
    text-wrap: nowrap!important;
    max-width: none!important;
    height: 35px!important;
  }
  .shoulder-lane-bg {
    transform: scale(.9) translateX(-5.5%);
  }
}
.table-wrap {
  overflow-y: scroll;
}
.page-btn-list {
  height: 320px;
}

@media (max-width: 1600px) {
  .page-btn-list {
    height: 640px;
  }
}
.user-list-thead tr th div{
  cursor: pointer;
}
.user-list-thead tr th div > i {
  color: rgba(188, 188, 188, 0.8);
}

.user-list-thead tr th div.active > i {
  color: #142345;
}

.user-list-thead tr th div:hover > i {
  color: #142345;
}
.user-list-tbody{
  width: 100%;
}
.user-list-tbody tr {
  width: 100%;
  min-height: 35px;
  max-height: 70px;
  /* line-height: 35px; */
}
.user-list-tbody tr td{
  max-width: 165px;
  text-wrap: wrap;
  height: 70px;
  word-break: break-word;
  white-space: normal;
  /* line-height: 35px; */
}
.total-search-wrap .search {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 50%;
  left: 5px;
  transform: translateY(-50%) scale(.75);

  cursor: default;
}

#wSignalContainer:focus,#pSignalContainer:focus,#iSignalContainer:focus,#aSignalContainer:focus, #cSignalContainer:focus {
  border: 1px solid rgb(64, 226, 255);
}

.custom-dropdown-btn-left{
  width: 97.5px!important;
  height: 38px;
  color: white;
  border: none;
  background-color: #e9993e;
  cursor: pointer;
}
.custom-dropdown-btn-right{
  width: 32.5px!important;
  height: 38px;
  color: white;
  border: none;
  background-color: #e9993e;
  cursor: pointer;
  border-left: .5px solid white;
}
.custom-dropdown-btn-left:hover,.custom-dropdown-btn-right:hover{
  background-color: #c68235;
}
.dropdown-toggle::after{
  margin-left: 0;
}
.custom-dropdown-item{
  display: flex;
  align-items: center;
  height: 38px;
  padding-left: 25px;
  cursor: pointer;
}
.custom-dropdown-item:hover{
  background-color: #b4b4b46b;
}

#normalRoadName + .select2-container .select2-selection--multiple {
  background-color: #f1f1f1!important;
  padding-bottom: 5px!important;
  border: 1px solid #ced4da!important;
}
#highwayRoadName + .select2-container .select2-selection--multiple {
  background-color: #f1f1f1!important;
  padding-bottom: 0!important;
  border: 1px solid #ced4da!important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
  margin-bottom: 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0!important;
}
.select2-selection.select2-selection--multiple{
  display: flex;
}