.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.page-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 防止页面其他部分溢出 */
}

.content-wrapper {
    flex-grow: 1;
    overflow-y: auto;   /* 当内容过长时显示滚动条 */
    
    /* 以下内容当显示具体内容时的样式 */
    margin-top: 8px;
    margin-bottom: 7px;
    margin-left: 0px;
    margin-right: 6px;
    border-radius: 5px;
    background-color: white;
}

.heard-color {
    color: white;
}

.heard-height {
    height: 44px;
}

.topmenu-btn {
    width: 100px;
    height: 65px;
    position: relative;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 5px;
    background-color: #f5f6f7;
    color: #665e5e;
    outline: none;
}

.topmenu-btn .bi {
    font-size: 24px;
}

.topmenu-btn.active {
    background-color: #007bff;
    color: white;
}

/* 基础尖角样式 */
.topmenu-btn.active::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    z-index: 1031;
    /* 确保尖角在按钮之上显示 */
}

/* 尖角位于顶部 */
.topmenu-btn.top-active.active::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #007bff;
    border-top: none;
}

/* 尖角位于底部 */
.topmenu-btn.bottom-active.active::before {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #007bff;
    border-bottom: none;
}

/* 尖角位于左侧 */
.topmenu-btn.left-active.active::before {
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    border-right-color: #007bff;
    border-left: none;
}

/* 尖角位于右侧 */
.topmenu-btn.right-active.active::before {
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-left-color: #007bff;
    border-right: none;
}

.submenu-btn {
    width: 100px;
    /* height: 65px; */
    position: relative;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 5px;
    /* background-color: #f8f9fa; */
    /* background-color: #dce1e7; */
    background-color: #f5f6f7;
    outline: none;
    /* 移除默认的焦点边框 */
    min-height: 65px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    padding-left: 5px;
    padding-right: 5px;
    color: #665e5e;
}

.submenu-btn .bi {
    font-size: 24px;
}

.submenu-btn.active {
    background-color: #007bff;
    color: white;
}

/* 基础尖角样式 */
.submenu-btn.active::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    z-index: 1031;
    /* 确保尖角在按钮之上显示 */
}

/* 尖角位于顶部 */
.submenu-btn.top-active.active::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #007bff;
    border-top: none;
}

/* 尖角位于底部 */
.submenu-btn.bottom-active.active::before {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #007bff;
    border-bottom: none;
}

/* 尖角位于左侧 */
.submenu-btn.left-active.active::before {
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    border-right-color: #007bff;
    border-left: none;
}

/* 尖角位于右侧 */
.submenu-btn.right-active.active::before {
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-left-color: #007bff;
    border-right: none;
}

/* 左侧边栏样式 */
.fixed-sidebar {
    position: fixed;
    top: 124px;
    /* 考虑到顶部导航栏的高度 */
    left: 0;
    bottom: 0;
    width: 125px;
    /* 可根据需要调整宽度 */
    background-color: #e5e5e5;
    /* background-color: #b4bcbd; */
    border-right: 1px solid #ddd;
    padding-top: 10px;
    z-index: 1030;
    /* 确保它在其他内容之上 */
    overflow-x: hidden;
    overflow-y: auto;
    /* 当内容超出时允许内部滚动 */
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* 按钮之间的间距 */
}

.sidebar-btn {
    width: 66px;
    text-align: center;
    padding: 10px;
    border-radius: 0;
    border: none;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.sidebar-btn:hover {
    background-color: #e9ecef;
}

.sidebar-btn i {
    font-size: 20px;
}

.sidebar-btn span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

/* 确保 #zeroMainContent 的内容不会被侧边栏遮挡 */
#zeroMainContent {
    padding-left: 120px;
    /* 为侧边栏留出空间 */
}

#fullscreenWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

#fullscreenElement {
    width: 300px;
    height: 200px;
    background-color: lightblue;
    text-align: center;
    line-height: 200px;
    font-size: 20px;
}

#toggleFullscreen {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.toggleFullscreenBtn {
    background-color: white;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.toggleFullscreenBtn:hover {
    color: white;
    background-color: #007bff;
}

.toggleFullscreenBtn i {
    font-size: 38px;
    margin-top: 5px;
    margin-right: 0px;
    transition: transform 0.3s ease;
}

.toggleFullscreenBtn.fullscreen i {
    transform: rotate(180deg);
}

#loginUser {
    margin-right: 10px;
}

#toggleFullscreen {
    margin-top: 37px;
}

.mr-10 {
    margin-right: 64px !important;
}

.scroll-A-container {
    white-space: nowrap; /* 防止内容换行 */
}

/* 隐藏滚动条，但仍然可以滚动 */
.scroll-A-container::-webkit-scrollbar {
    height: 5px;
    background-color: transparent;
}

/* 滚动条轨道 */
.scroll-A-container::-webkit-scrollbar-track {
    background-color: transparent;
}

/* 滚动条滑块 */
.scroll-A-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* 默认颜色 */
    border-radius: 15px;
}
/* 当鼠标悬停时更改滚动条滑块的颜色 */
.scroll-A-container:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4); /* 不透明的颜色 */
}

/* 定义 button 的基本样式 */
.language-button {
    text-decoration: none;
    border: none;
    cursor: pointer;
    font: inherit; /* 继承父元素字体 */
    padding: 0;
    margin: 0;
    outline: none; /* 移除默认的聚焦边框 */
    display: block;
    text-align: left; /* 确保文本左对齐 */
    background-color: #262e3e;
    color: gray;
    font-weight: 700;
}

/* 模拟 a 标签的 hover 效果 */
.language-button:hover {
    text-decoration: none;
    color: white; /* 更深的颜色模拟链接悬停效果 */
    font-weight: 700;
}

/* 模拟 a 标签的 active 效果 */
.language-button:active {
    color: white;
    font-weight: 700;
}

/* 如果需要激活状态下的样式（例如语言切换后） */
.language-button.active {
    font-weight: bold;
    color: white;
    font-weight: 700;
}

.menuicon { 
    margin-top: -3px; 
    margin-bottom: -5px;
}

.inset-line {
    width: 100%; /* 横线宽度 */
    height: 2px; /* 横线高度 */
    border-bottom: 2px solid #e5e5e5; /* 创建实线下划线 */
    box-shadow: 0 4px 6px -2px rgba(127, 126, 126, 0.2); /* 添加阴影以模拟下凹效果 */
    margin: 10px 0; /* 设置上下间距 */
}

.btnSelected {
	background-color: green;
	color: white;
}

.btnSelected:hover {
    background-color: green;
	color: white;
}

.dropdown-item-group {
    display: flex;
    flex-wrap: wrap;
    padding: 0.25rem 0.5rem;
  }
.group-row {
    width: 100%;
    display: flex;
    margin-bottom: 0.5rem;
}
.group-row > span {
    flex: 1; /* 均匀分布 */
    min-width: calc(20% - 10px); /* 每个span元素至少占用20%宽度减去一些间距 */
    max-width: calc(20% - 0px); /* 最大宽度为20%减去一些间距 */
    padding: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box; /* 确保padding和border不会增加元素的实际宽度 */
}
.group-row > span:hover {
    background-color: #e9ecef; 
}
/* 清除最后一个row的下边距 */
.dropdown-item-group > .group-row:last-child {
    margin-bottom: 0;
}

/*加载蒙版css*/
.waiting{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: #ffffff;
    top: 0px;
    left: 0px;
    z-index: 100;
    opacity: 0.5;
}
/*等待进度大css*/
.waiting .hasAsider{
    width: 485px;
    height: 215px;
    background-image: url("../images/loading-4.gif");
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    /* left: 230px; */
    left: 0px;
    margin: auto;
}

.waiting .noAsider{
    width: 485px;
    height: 215px;
    background-image: url("../images/loading-4.gif");
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    margin: auto;
}

.todoEquId {
    position: relative;
    display: inline-block;
    font-size: 15px;
    min-width: 110px;
    max-width: 110px;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
}

.todo-delete-btn {
    display: none;
    position: absolute;
    top: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    background-color: transparent;
    color: red;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 25px;
    line-height: 15px;
    text-align: center;
    padding: 0;
    z-index: 1000;
}

.todoEquId:hover .todo-delete-btn {
    display: block;
}

.repeated-id {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 15px;
    height: 15px;
    background-color: red;
    color: white;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    padding: 0;
    z-index: 1000;
}

.span-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #317dff;
    color: white;
    border-radius: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    width: auto;
    padding-left: 5px;
    padding-right: 5px;
    z-index: 1000;
    font-size: 16px;
  }

  .findResult-th {
    border-color: #eeeeee;
    font-size: 14px !important;
    text-align: center;
    text-transform: none !important;
    font-family: initial;
    background-color: white !important;
  }

  /* 确保表格容器有固定高度和滚动 */
.dataTables_scrollBody {
    max-height: none !important;
    overflow-x: auto !important;
    border: none !important;
}

/* 分页控件固定在底部 */
.dataTables_wrapper .dataTables_paginate {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    z-index: 100;
}

/* 水平滚动条样式调整 */
.dataTables_scrollBody::-webkit-scrollbar {
    height: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* 底部容器（包含分页和信息） */
.dataTables_wrapper .bottom-wrapper {
    background: white; /* 白色背景 */
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 10px;
    padding-right: 10px;
    border-top: 1px solid #eee; /* 顶部边框（可选） */
    position: sticky; /* 固定在底部 */
    bottom: 0;
    z-index: 100; /* 确保在最上层 */
    display: flex;
    justify-content: space-between; /* 分页和信息左右分布 */
    align-items: center;
}

/* 信息文本样式 */
.dataTables_info {
    color: #666;
    padding: 0px !important;
    padding-left: 10px !important;
    margin-left: 0px !important;
}

.dataTables_length {
    margin-top: 0px !important;
    margin-right: 15px !important;
}

/* 分页按钮样式 */
.dataTables_paginate {
    margin: 0;
    padding-bottom: 5px !important;
    margin-right: 0px !important;
}

/* 分页按钮悬停效果 */
.dataTables_paginate .paginate_button {
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    color: #333;
}

.dataTables_paginate .paginate_button:hover {
    background: #e0e0e0;
}

.dataTables_paginate .paginate_button.current {
    background: #337ab7;
    color: white;
    border-color: #2e6da4;
}

.dataTable thead th {
    /* border-bottom: none !important; */
    border-bottom: 1px solid #eee !important;
}

.portfolioFilter a {
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    color: #333333;
    font-weight: 600;
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 5px;
}
.portfolioFilter a:hover {
    color:#028000;
}
.portfolioFilter a.current {
    color: #028000;
}