/* ---------- page-header 背景，撑满全屏 ---------- */
.page-header { 
  background-color: #2e3a59;
  margin: 0;
  padding: 0;
  height: 100px;
}

/* ---------- 内部容器：限制 1200px，并居中 ---------- */
.page-header .inner-header {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
  transform: translateY(20px);
}

.inner-header nav .navbar-collapse {
  max-width: 800px;      /* 根据需求调整 */
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-header .inner-header > nav .container {
  width: 100%;      /* 让内部 container 撑满这 300px */
  margin: 0;        /* 去掉左右 auto-margin */
  padding: 0;
  transform: translateY(20px);
}
/* 去掉 container-fluid 后的标题区 */
.page-header .title-container {
  flex: 1 0 auto;    /* 等同于 grow:1, shrink:0, basis:auto */
  margin: 0 16px;    /* 左右留点空隙 */
  min-width: 0;
}

/* ---------- Logo 区域 ---------- */

.page-header .navbar-brand{
  /* transform: translateX(-100px); */
}

.page-header .logo {
  width: 80px;
  height: 80px;
  transform: translateY(-30px);
}

/* ---------- 标题区 ---------- */
.title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-title {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}
.tagline {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  margin: 0;
  opacity: 0.9;
  line-height: 1.2;
}

/* ---------- 主导航区 ---------- */
.navbar-default {
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
}
.navbar-default .navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent
}
.navbar-default .navbar-nav > li > a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 16px;
  text-decoration: none;
  transition: border-bottom 0.5s ease;
  border-bottom: 2px solid transparent;
}
.navbar-default .navbar-nav > li > a:hover{
  color: #3fc1c9
}
.navbar-default .navbar-nav > li > a:active,
.navbar-default .navbar-nav > li > a:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  outline: none; /* 去掉默认聚焦轮廓 */
}

/* 3. 当前激活的菜单项：白色下划线持久高亮 */
.navbar-default .navbar-nav > li.active > a {
  color: #fff;
  border-bottom: 2px solid #fff;
  background: transparent !important;
}


/* ---------- 其余：tab-content / footer 不变 ---------- */
.tab-content { padding: 50px 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.well.text-center {
  background-color: #f5f5f5;
  margin: 0;
  padding: 12px;
  border-radius: 0;
  font-size: 16px;
  color: #555;
}



body {
    background-color: #F5F5F5;
}

.bg-defualt {
    background-color: #F5F5F5;
}
.media-heading {
    padding: 5px;
}

h4.media-heading,
.media-body>p {
    font-weight: 700;
}

div.datatables {
    margin-top: 5px;
    margin-bottom: 15px;
}

#searchPanelList>li {
    padding-top: 5px;
    padding-bottom: 5px;
    /* margin-top: 5px; */
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #F5F5F5;
}

#searchPanelList>li>a {
    color: black;
    font-size: medium;
}

#searchPanelList>li.active {
    background-color: #39CCCC !important;
}

#searchPanelList>li.active>a {
    color: #F5F5F5;
    background-color: #39CCCC !important;
}

#searchPanelList>li>a:hover {
    background-color: transparent !important;
}



#batchPanelList>li {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #F5F5F5;
}

#batchPanelList>li>a {
    color: black;
    font-size: medium;
}

#batchPanelList>li.active {
    background-color: #39CCCC !important;
}
#batchPanelList>li.active>a {
    color: #F5F5F5;
    background-color: #39CCCC !important;
}

#batchPanelList>li>a:hover {
    background-color: transparent !important;
}

hr {
    -moz-border-bottom-colors: none;
    -moz-border-image: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: #EEEEEE -moz-use-text-color #FFFFFF;
    border-style: solid none;
    border-width: 1px 0;
    margin: 5px 0;
}

/* 按钮容器样式 */
/* #bttn-branch {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#bttn-branch .col-sm-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
} */

/* 基础按钮样式 */
button.medam-branch {
    background-color: #F5F5F5 !important;
    transition: all 0.3s ease;
    position: relative;
    width: 90%;
    min-height: 50px;
    white-space: normal;
    line-height: 1.2;
    padding: 5px 10px;
    /* 添加变换中心点设置 */
    transform-origin: center center;
    margin: 0 auto;
    margin-left: 10px;
    margin-top: 10px;
}

/* 活跃状态按钮样式 */
button.medam-branch:hover,
button.medam-branch.active {
    background-color: #39CCCC !important;
    color: #fff !important;
    /* 使用 transform:scale 代替width */
    transform: scale(1.2);
    z-index: 2;
    font-weight: bold;
}

/* 非活跃状态按钮样式 */
button.medam-branch:not(.active) {
    transform: scale(0.9);
    opacity: 0.8;
}

/* 移除焦点轮廓 */
button:focus {
    outline: none !important;
}

.datatables input[type="checkbox"],
.datatables input[type="radio"] {
    zoom: 1.5;
}

ul.pager>li>a,
ul.pager>li>a:visited,
ul.pager>li>a:hover,
ul.pager>li>a:active {
    background-color: teal;
    color: #fff;
}

.ribbon {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
  }
.ribbon {
    --f: .5em; /* control the folded part*/
    --r: .8em; /* control the ribbon shape */

    position: absolute;
    top: 5px;
    left: calc(1*var(--f));
    padding-inline: .25em;
    line-height: 1.8;
    background: #FF851B;
    border-bottom: var(--f) solid #0005;
    border-right: var(--r) solid #0000;
    clip-path: 
      polygon(0 0,0 calc(100% - var(--f)),var(--f) 100%,
        var(--f) calc(100% - var(--f)),100% calc(100% - var(--f)),
        calc(100% - var(--r)) calc(50% - var(--f)/2),100% 0);
}

.ribbon2 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
  }
.ribbon2 {
  --f: .5em; /* control the folded part */
  
  position: absolute;
  top: 0;
  right: 15px;
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
  transform-origin: 0% 100%;
  background-color: #BD1550; /* the main color  */
}

.img-container:hover,
.img-container-active {
    background-color: #D1EFED;
}
  .sidebar {
    position: fixed;
    left: 0;
    width: 250px;
    height: 100%;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 15px;
    border-right: 1px solid #ddd;
    transition: top 0.1s ease; /* 添加平滑过渡效果 */
}
.sidebar a.active {
    font-weight: bold;
    color: #007bff;
    background-color: #e9ecef;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}
    /* 导航菜单基础样式 */
    .sidebar .nav-pills {
        margin: 0;
        padding: 0;
    }

    .sidebar .nav-pills li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sidebar .nav-pills li a {
        display: block;
        padding: 8px 15px;
        color: #555;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .sidebar .nav-pills li a:hover {
        color: #333;
        background-color: #e9ecef;
    }


    /* 二级导航样式 */
    .sidebar .nav-pills .nav-pills > li > a {
        padding-left: 30px;
    }

    /* 三级导航样式 */
    .sidebar .nav-pills .nav-pills .nav-pills > li > a {
        padding-left: 50px;
    }

    /* 四级导航样式 */
    .sidebar .nav-pills .nav-pills .nav-pills .nav-pills > li > a {
        padding-left: 70px;
    }

    /* 活动状态样式 */
    .sidebar .nav-pills li a.active {
        font-weight: bold;
        color: #1d419c;
        background-color: #e9ecef;
        border-left: 4px solid #1d419c;
    }

    /* 移除默认的导航样式 */
    .sidebar .nav-pills > li > a,
    .sidebar .nav-pills .nav-pills > li > a,
    .sidebar .nav-pills .nav-pills .nav-pills > li > a,
    .sidebar .nav-pills .nav-pills .nav-pills .nav-pills > li > a {
        margin: 0;
        border-radius: 0;
    }