body {
  background-color: #f5f5f5 !important;
}
.main-header-container .header-link {
  color: #81191a !important;
  font-size: 20px !important;
  font-weight: 600;
}
.main-header-container .header-link #g-username {
  font-size: 16px !important;
}
.main-header-container .header-link #g-role {
  margin-top: 2px;
  color: #676c70 !important;
}
.main-header-container .header-link #g-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.main-header-container .main-header-dropdown {
  transform: translate(-12px, 71px) !important;
}
.main-header-container .header-element.header-fullscreen {
  margin-right: 6px;
  background: #fff;
  border-radius: 10px;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
}
.main-header-container
  .header-element.header-fullscreen
  .header-link-icon:hover {
  background-color: rgba(0, 0, 0, 0);
}
.animated-arrow span {
  color: #000 !important;
}
.animated-arrow span:after,
.animated-arrow span:before,
.animated-arrow span:after,
.animated-arrow span::after {
  background-color: #000 !important;
}
/* 自定义菜单样式 - 白底主题 */

/* 侧边栏整体容器 */
.app-sidebar {
  background-color: #ffffff !important;
  width: 220px;
  font-size: 14px;
}

.app-sidebar .main-sidebar {
  box-shadow: none !important;
}
.app-sidebar .main-sidebar-header {
  background-color: #ffffff !important;
  width: 220px;
  padding-top: 25px !important;
  height: auto !important;
}
.app-sidebar .main-sidebar-header .header-logo img {
  filter: none;
  height: 2.5rem !important;
}
.app-sidebar .side-menu__label {
  color: #81191a !important;
}
.main-menu > .slide.active .side-menu__label {
  color: #81191a !important;
}
/* 主侧边栏区域 */
.main-sidebar {
  background-color: #ffffff !important;
  padding: 28px 20px;
}

/* 主菜单容器 */
.main-menu-container {
  background-color: #ffffff !important;
}

/* 一级菜单项 */
.side-menu__item {
  color: #81191a !important;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* 一级菜单图标 */
.side-menu__icon {
  color: #81191a !important;
  font-size: 20px !important;
  margin-right: 12px;
}

/* 一级菜单未选中状态 */
.main-menu > .slide > .side-menu__item {
  color: #81191a !important;
}

/* 一级菜单选中状态 */
.main-menu > .slide.active > .side-menu__item {
  position: relative;
  background-color: #f5f5f5 !important;
  color: #81191a !important;
}
.main-menu > .slide.active > .side-menu__item:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 16px;
  width: 4px;
  background-color: #81191a;
  border-radius: 2px;
}

.app-sidebar .slide-menu.child1 .side-menu__item:before,
.app-sidebar .slide-menu.child2 .side-menu__item:before,
.app-sidebar .slide-menu.child3 .side-menu__item:before {
  display: none;
}

/* 下拉按钮 - 黑色 */
.side-menu__angle {
  color: #000000 !important;
  font-size: 18px !important;
}

/* 子菜单容器 */
.slide-menu {
  background-color: #ffffff;
  padding-left: 16px;
}
.app-sidebar .slide {
  padding: 0;
}
.app-sidebar .slide-menu.child1 li,
.app-sidebar .slide-menu.child2 li,
.app-sidebar .slide-menu.child3 li {
  padding-left: 1rem !important;
}
/* 子菜单项 */
.slide-menu .side-menu__item {
  color: #676c70 !important;
  font-size: 14px;
  padding: 10px 16px 10px 0;
  border-radius: 8px;
  font-weight: normal;
}

/* 子菜单选中状态 */
.slide-menu .side-menu__item.active,
.slide-menu .side-menu__item:hover {
  color: #81191a !important;
  font-weight: 600;
}
.slide-menu .side-menu__item.active::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  height: 5px;
  width: 5px;
  background-color: #81191a;
  border-radius: 2px;
}

/* 隐藏slide-left和slide-right导航按钮 */
.slide-left,
.slide-right {
  display: none;
}

/* 菜单标签 */
.side-menu__label {
  font-size: 14px;
  font-weight: 500;
}

/* 子菜单标题 */
.side-menu__label1 a {
  color: #676c70 !important;
  font-size: 12px;
  font-weight: 500;
}

/* 一级菜单hover状态 */
.main-menu > .slide > .side-menu__item:hover {
  background-color: #f5f5f5 !important;
}

/* 下拉按钮 - 添加过渡和旋转效果 */
.side-menu__angle {
  transition: transform 0.3s ease;
}

/* 展开状态下箭头旋转 */
.slide.has-sub.open > .side-menu__item .side-menu__angle {
  transform: rotate(90deg);
}

/* 子菜单容器 - 默认隐藏 */
.slide-menu {
  display: none;
}

/* 展开时显示子菜单 */
.slide.has-sub.open > .slide-menu {
  display: block;
}

/* 确保子菜单展开/收起动画正常 */
.slide.has-sub {
  display: grid;
}

.slide.has-sub.open {
  display: grid;
}
.app-header {
  max-width: 100%;
  height: 3.75rem;
  z-index: 100;
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  background: #F5F5F5 !important;
  -webkit-border-after: 1px solid rgba(0, 0, 0, 0);
  border-block-end: 1px solid rgba(0, 0, 0, 0);
  transition: all 0.1s ease;
  padding-top: 20px !important;
}
.main-content{
  padding: 0!important;
}
@media (max-width: 991.98px) {
  .main-content {
    -webkit-padding-before: 3rem !important;
    padding-block-start: 3rem !important;
    min-height: calc(100vh - 3rem) !important;
    overflow-y: auto;
  }
  [data-toggled="close"] .app-sidebar {
    transition: all 0.3s ease;
    transform: translateX(-220px);
  }
}
@media (min-width: 992px) {
  .app-header {
    -webkit-padding-start: 220px;
    padding-inline-start: 220px;
  }
  .app-content {
    min-height: calc(100vh - 3.75rem);
    -webkit-margin-after: 0;
    margin-block-end: 0;
    -webkit-margin-before: 3.75rem;
    margin-block-start: 3.75rem;
    -webkit-margin-start: 220px;
    margin-inline-start: 220px;
    transition: all 50ms ease;
  }
}
