
/* 表格排序箭头容器：控制箭头位置 */
.layui-table-sort {
    width: 10px;
    height: 20px;
    margin-left: 5px;
    cursor: pointer!important;
    position: relative; /* 确保箭头绝对定位生效 */
}
/* 箭头基础样式：三角形（由border实现） */
.layui-edge {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-width: 6px;
    border-style: dashed;
    border-color: transparent;
    overflow: hidden;
}
/* 排序升序箭头（向下的三角形） */
.layui-table-sort .layui-table-sort-asc {
    position: absolute;
    left: 5px;
    top: 3px;
    border-top: none;
    border-bottom-style: solid;
    border-bottom-color: #b2b2b2;
}
.layui-table-sort .layui-table-sort-asc:hover {
    border-bottom-color: #5f5f5f; /* hover时加深颜色 */
}
/* 排序降序箭头（向上的三角形） */
.layui-table-sort .layui-table-sort-desc {
    position: absolute;
    left: 5px;
    bottom: 5px;
    border-bottom: none;
    border-top-style: solid;
    border-top-color: #b2b2b2;
}
.layui-table-sort .layui-table-sort-desc:hover {
    border-top-color: #5f5f5f; /* hover时加深颜色 */
}
/* 已选中排序状态：箭头颜色变黑 */
.layui-table-sort[lay-sort=asc] .layui-table-sort-asc {
    border-bottom-color: #000;
}
.layui-table-sort[lay-sort=desc] .layui-table-sort-desc {
    border-top-color: #000;
}
/* 分页控件容器：确保箭头排版正常 */
.layui-laypage {
    display: inline-block;
    vertical-align: middle;
    margin: 10px 0;
    font-size: 0;
}
/* 分页箭头基础样式 */
.layui-laypage a, .layui-laypage span {
    display: inline-block;
    vertical-align: middle;
    padding: 0 15px;
    height: 28px;
    line-height: 28px;
    margin: 0 -1px 5px 0;
    background-color: #fff;
    color: #333;
    font-size: 12px;
}
/* 上一页/下一页箭头：字体图标（依赖layui-icon字体，需确保原有layui.css已加载） */
.layui-laypage-prev em, .layui-laypage-next em {
    font-family: Sim sun;
    font-size: 16px;
}
/* 箭头hover效果 */
.layui-laypage a:hover {
    color: #16baaa; /* 与原有layui.css主色保持一致，避免冲突 */
}
/* 选项卡滚动箭头容器 */
.layui-tabs-scroll {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}
/* 左右滚动箭头 */
.layui-tabs-bar .layui-icon {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 40px;
    height: 100%;
    line-height: 40px;
    border: 1px solid #eee;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 2px 0 5px 0 rgba(0,0,0,.06);
}
.layui-tabs-bar .layui-icon-next {
    left: auto;
    right: 0;
    box-shadow: -2px 0 5px 0 rgba(0,0,0,.06);
}
/* 箭头hover效果 */
.layui-tabs-bar .layui-icon:hover {
    border-color: #16baaa;
}



/* 强制让选项卡容器允许水平滚动 */

.layui-tabs {
    overflow-x: auto !important; /* 允许水平滚动，!important 强制覆盖 */
    white-space: nowrap !important; /* 标签不换行 */
}



/* 强制显示左右箭头（即使容器宽度足够） */
.layui-tabs .layui-tabs-control {
    display: block !important; /* 强制显示箭头 */
}

/* 选项卡容器宽度限制 */
.tabs-container {
    position: relative; /* 为子元素绝对定位提供参考 */
    width: 80%;
    overflow: hidden;
    margin: auto;
    padding-left: 60px; /* 给“项目：”预留左侧空间，避免与箭头重叠 */
  }


.tabs-container::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  pointer-events: none;
}

.tabs-container::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 5px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1001;
  pointer-events: none;
}

.tabs-container:hover::before,
.tabs-container:hover::after {
  opacity: 1;
  visibility: visible;
}
  
  .project-label-wrapper {
    position: absolute;
    left: 10px; /* 调整左侧距离，使其在左箭头左侧合适位置 */
    top: 0;
    height: 40px; /* 与选项卡头部高度一致 */
    line-height: 40px; /* 垂直居中文字 */
    z-index: 10; /* 确保在选项卡上层显示 */
  }
  
  .project-label-text {
    font-size: 18px;
    color: #333;
  }

.layui-tabs-header {
/*    display: flex; comment out so the list can be displayed from beginning*/
    justify-content: center; 
    align-items: center;     
    height: 40px;           
}

/* 核心：通过父级 ID + 标签选择器，确保所有 li 都匹配 */
#demoTabs-hash .layui-tabs-header li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important; /* 让标签横向排列 */
}

#demoTabs-hash .layui-tabs-header li.custom-tab-style {
    border: 1px solid #4284F3 !important;
    border-radius: 4px !important;
    padding: 3px 20px !important; 
    font-size: 15px !important;   
    margin: 0 10px !important;
    box-shadow: 0 2px 0 #4284F3 !important;
    box-sizing: border-box !important;
    background-color: #4284F3 !important;
    color: white !important;
}

#demoTabs-hash .layui-tabs-header li.custom-tab-style.layui-this {
    background: #4284F3 !important;
    color: white !important;
    box-shadow: 0 2px 0 #4284F3 !important;
}

#demoTabs-hash .layui-tabs-header li.custom-tab-style > a {
    color: inherit !important;
    font-weight: 500 !important;
    font-size: inherit !important; 
}

#demoTabs-hash .layui-tabs-header li.custom-tab-style.layui-this > a {
    color: white !important;
}

.layui-padding-1 {
  padding: 4px!important
}

.layui-padding-2 {
  padding: 8px!important
}

.layui-padding-3 {
  padding: 16px!important
}

.layui-padding-4 {
  padding: 32px!important
}

.layui-padding-5 {
  padding: 48px!important
}

.layui-margin-1 {
  margin: 4px!important
}

.layui-margin-2 {
  margin: 8px!important
}

.layui-margin-3 {
  margin: 16px!important
}

.layui-margin-4 {
  margin: 32px!important
}

.layui-margin-5 {
  margin: 48px!important
}

.layui-colla-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  margin-top: -7px;
  font-size: 14px;
  line-height: normal;
  transition: all .2s
}

.layui-colla-item.layui-show>.layui-colla-title .layui-colla-icon {
  transform: rotate(90deg)
}

.layui-colla-item.layui-show>.layui-colla-content {
  display: block
}

.layui-card-body,.layui-card-header {
  position: relative;
  padding: 10px 15px
}

.layui-auxiliar-moving {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: 0 0;
  z-index: 9999999999;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none
}

.layui-scrollbar-hide {
  overflow: hidden!important
}

/*
.layui-bg-green {
  background-color: #16baaa!important;
  color: #fff!important
}

.layui-border-blue {
  border-width: 1px;
  border-style: solid;
  border-color: #1e9fff!important;

  color: #1e9fff!important
}

*/

.layui-select-panel-wrap {
  position: absolute;
  z-index: 99999999
}

.layui-select-panel-wrap dl {
  position: relative;
  display: block;
  top: 0
}

.layui-form-checkbox[lay-skin=none] *,.layui-form-radio[lay-skin=none] * {
  box-sizing: border-box
}

.layui-form-checkbox[lay-skin=none],.layui-form-radio[lay-skin=none] {
  position: relative;
  min-height: 20px;
  margin: 0;
  padding: 0;
  height: auto;
  line-height: normal
}

.layui-form-checkbox[lay-skin=none]>div,.layui-form-radio[lay-skin=none]>div {
  position: relative;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 10;
  color: inherit;
  background-color: inherit
}

.layui-form-checkbox[lay-skin=none]>i,.layui-form-radio[lay-skin=none]>i {
  display: none
}

.layui-form-checkbox[lay-skin=none].layui-checkbox-disabled>div,.layui-form-radio[lay-skin=none].layui-radio-disabled>div {
  cursor: not-allowed
}

.layui-form-checkbox[lay-skin=tag].layui-form-checked.layui-checkbox-disabled>i {
  color: #c2c2c2
}

.layui-form-checkbox[lay-skin=tag].layui-form-checked.layui-checkbox-disabled:hover>i {
  color: #c2c2c2!important
}


.layui-table-expanded {
  height: 95px
}

.layui-table-expanded .layui-table-cell,.layui-table-view .layui-table[lay-size=lg] .layui-table-expanded .layui-table-cell,.layui-table-view .layui-table[lay-size=sm] .layui-table-expanded .layui-table-cell {
  height: auto;
  max-height: 94px;
  white-space: normal;
  text-overflow: clip
}

.layui-table-cell-c {
  position: absolute;
  bottom: -10px;
  right: 50%;
  margin-right: -9px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  cursor: pointer;
  text-align: center;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  z-index: 1000;
  transition: .3s all;
  font-size: 14px
}

.layui-table-cell-c:hover {
  border-color: #16b777
}

.layui-table-expanded td:hover .layui-table-cell {
  overflow: auto
}

.layui-table-main>.layui-table>tbody>tr:last-child>td>.layui-table-cell-c {
  bottom: 0
}

.layui-tabs {
  position: relative
}

.layui-tabs.layui-hide-v {
  overflow: hidden
}

.layui-tabs-header {
  position: relative;
  left: 0;
  height: 40px;
  padding: 0!important;
  white-space: nowrap;
  font-size: 0;
  -webkit-transition: all .16s;
  transition: all .16s
}

.layui-tabs-header:after,.layui-tabs-scroll:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  border-bottom: 1px solid #eee
}

.layui-tabs-header li {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  line-height: 40px;
  margin: 0!important;
  padding: 0 16px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  -webkit-transition: all .16s;
  transition: all .16s
}

.layui-tabs-header li:first-child {
  margin-left: 0
}

.layui-tabs-header li a {
  display: block;
  padding: 0 16px;
  margin: 0 -16px;
  color: inherit
}

.layui-tabs-header li a:hover {
  text-decoration: none
}

.layui-tabs-header .layui-this,.layui-tabs-header li:hover {
  color: #16baaa
}

.layui-tabs-header .layui-this:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-bottom: 3px solid #16baaa;
  box-sizing: border-box;
  pointer-events: none
}

.layui-tabs-header .layui-badge,.layui-tabs-header .layui-badge-dot {
  left: 5px;
  top: -1px
}

.layui-tabs-scroll {
  position: relative;
  overflow: hidden;
  padding: 0 40px
}

.layui-tabs-scroll .layui-tabs-header:after {
  display: none;
  content: none;
  border: 0
}

.layui-tabs-bar .layui-icon {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 40px;
  height: 100%;
  line-height: 40px;
  border: 1px solid #eee;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 2px 0 5px 0 rgb(0 0 0 / 6%)
}

.layui-tabs-bar .layui-icon-next {
  left: auto;
  right: 0;
  box-shadow: -2px 0 5px 0 rgb(0 0 0 / 6%)
}

.layui-tabs-header li .layui-tabs-close {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 18px;
  margin-left: 8px;
  top: 0;
  text-align: center;
  font-size: 12px;
  color: #959595;
  border-radius: 50%;
  font-weight: 700;
  -webkit-transition: all .16s;
  transition: all .16s
}

.layui-tabs-header li .layui-tabs-close:hover {
  background-color: #ff5722;
  color: #fff
}

.layui-tabs-header li[lay-closable=false] .layui-tabs-close {
  display: none
}

.layui-tabs-body {
  padding: 16px 0
}

.layui-tabs-item {
  display: none
}

.layui-tabs-card>.layui-tabs-header .layui-this {
  background-color: #fff
}

.layui-tabs-card>.layui-tabs-header .layui-this:after {
  border: 1px solid #eee;
  border-bottom-color: #fff;
  border-radius: 2px 2px 0 0
}

.layui-tabs-card>.layui-tabs-header li:first-child.layui-this:after {
  margin-left: -1px
}

  margin-right: -1px
}

.layui-tabs-card.layui-panel>.layui-tabs-header .layui-this:after {
  border-top: 0;
  border-radius: 0
}

.layui-tabs-card.layui-panel>.layui-tabs-body {
  padding: 16px
}