/*
 * 数制云工单 | H5 左侧菜单直接加载样式 | v3 (2026-09-15)
 * This PUBLIC asset is linked by index.html. It does not enter the Less
 * inline-import chain or the theme-color extraction pipeline.
 * Scope: sidebar and its teleported collapsed submenu only.
 * No business templates, route definitions, permissions or event handlers change.
 * Light page with an independently configured DARK menu is explicitly supported.
 * A genuine html[data-theme="dark"] is intentionally untouched.
 * Probe: getComputedStyle(document.querySelector('.jeecg-layout-sideBar'))
 *        .getPropertyValue('--szy-sidebar-style-version').trim()
 * Expected: szy-sidebar-v3-20260915
 */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar {
  --szy-sidebar-style-version: szy-sidebar-v3-20260915;
  /* Neutralize the old dark-menu variables locally, never globally. */
  --sider-dark-bg-color: #fff;
  --sider-dark-darken-bg-color: #efefff;
  --sider-dark-lighten-bg-color: #fff;
  background: #fff !important;
  border-right: 1px solid #e9edf4;
  box-shadow: none !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .ant-layout-sider-children,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .scrollbar__view,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-scrollbar {
  background: #fff !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover {
  --sider-dark-bg-color: #fff;
  --sider-dark-darken-bg-color: #efefff;
  --sider-dark-lighten-bg-color: #fff;
}

/* Sidebar fidelity correction, based on the supplied H5/style.css.
 * Light page + dark MENU configuration is valid in this project: scope by
 * html[data-theme], not by the menu's -dark / .dark classes. Keep the original
 * routes, permissions, component templates, active state and event handlers.
 */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  line-height: normal;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar > .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-app-logo {
  flex-shrink: 0;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-app-logo {
  justify-content: flex-start;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar > .ant-layout-sider-children > .scroll-container,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar > .ant-layout-sider-children > .jeecg-scrollbar {
  flex: 1 1 0;
  min-height: 0;
  height: auto !important;
  background: #fff !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-simple-menu,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-basic-menu {
  padding: 0 13px !important;
  border: 0;
  background: #fff !important;
}
/* Reset EVERY painted layer, including the actual SimpleMenu wrappers. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-simple-menu__parent,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-simple-menu__children,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu-title,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0;
  color: #6d7890 !important;
  line-height: normal !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
}
/* H5 .nav-group: margins belong to the group, not its title. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu {
  margin: 6px 0 4px !important;
  padding: 0;
  list-style: none;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu-title,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item.jeecg-simple-menu__parent {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 13px 12px !important;
  color: #59657b !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: normal !important;
  border-radius: 0;
}
/* A first-level direct route is retained, styled as a peer of group titles. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item.jeecg-simple-menu__parent {
  margin: 6px 0 4px !important;
  border-radius: 7px;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-simple-menu-sub-title {
  min-width: 0;
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-simple-menu__parent > .jeecg-menu-submenu-title > .anticon,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item.jeecg-simple-menu__parent > .anticon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  font-size: 18px !important;
  color: inherit !important;
}
/* Replace only the decorative arrow with H5's exact glyph / orientation. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu-title > .jeecg-menu-submenu-title-icon {
  display: none !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu-title::after {
  content: '';
  position: static;
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  align-self: center;
  margin: 0 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='%2359657b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform .15s;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-opened > .jeecg-menu-submenu-title::after {
  transform: rotate(90deg);
}
/* H5 .nav-child is text-only: do not retain the old 16px icon + 8px margin. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item.jeecg-simple-menu__children {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0;
  width: 100%;
  min-height: 0;
  height: auto !important;
  margin: 3px 0 !important;
  padding: 11px 12px 11px 43px !important;
  font-size: 13px !important;
  font-weight: 400;
  line-height: normal !important;
  border-radius: 7px;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-simple-menu__children > .anticon,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-simple-menu__children > .jeecg-menu-submenu-title > .anticon {
  display: none !important;
}
/* Keep deeper existing business-menu levels readable without flattening them. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-menu-submenu-has-parent-submenu > .jeecg-menu-submenu-title {
  padding-left: 43px !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-menu-submenu-has-parent-submenu > .jeecg-menu > .jeecg-menu-item {
  padding-left: 63px !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-menu-submenu-has-parent-submenu .jeecg-menu-submenu-has-parent-submenu > .jeecg-menu > .jeecg-menu-item {
  padding-left: 83px !important;
}
/* Active classes also exist on ANCESTOR li nodes. Only leaf rows get a marker. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu::before,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu::after,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item::before {
  content: none !important;
  display: none !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu-title:hover {
  background: transparent !important;
  color: #59657b !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item:not(.jeecg-menu-item-disabled):hover {
  background: #f7f8fc !important;
  color: #6d7890 !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item.jeecg-simple-menu__parent:not(.jeecg-menu-item-disabled):hover {
  color: #59657b !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu .jeecg-menu-item.jeecg-menu-item-active,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu .jeecg-menu-item.jeecg-menu-item-active:hover,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu .jeecg-menu-item.jeecg-menu-item-selected,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu .jeecg-menu-item.jeecg-menu-item-selected:hover {
  position: relative;
  background: #efefff !important;
  color: #302cbd !important;
  font-weight: 600;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item.jeecg-menu-item-active::after,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-item.jeecg-menu-item-selected::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 0;
  width: 3px;
  height: 16px;
  border: 0 !important;
  border-radius: 4px;
  background: #302cbd;
  opacity: 1;
  transform: translateY(-50%) !important;
}
/* Preserve the original compact mode; never hide its first-level icons. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-simple-menu {
  padding: 0 7px !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-menu-item,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-menu-submenu-title {
  justify-content: center;
  gap: 0;
  min-height: 44px;
  padding: 12px 0 !important;
  border-radius: 7px;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-menu-submenu-title::after {
  content: none;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-menu-submenu-popup,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-menu-tooltip {
  padding: 0;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-menu-submenu-active,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-menu-submenu-active:hover {
  background: #efefff !important;
  color: #302cbd !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .ant-layout-sider-trigger {
  color: #7a859b !important;
  background: #fff !important;
  border-top: 1px solid #e9edf4;
}
/* The existing collapsed submenu is teleported outside the sidebar DOM. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .ant-popover-inner,
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-menu {
  background: #fff !important;
  color: #6d7890 !important;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  line-height: normal;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .ant-popover-inner {
  border: 1px solid #e9edf4;
  border-radius: 7px;
  overflow: hidden;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-menu-item,
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-menu-submenu-title {
  background: transparent !important;
  color: #6d7890 !important;
  padding: 11px 12px;
  line-height: normal;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-menu-item > .anticon {
  display: none !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-simple-menu-sub-title {
  margin-left: 0 !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-menu-item:hover {
  background: #f7f8fc !important;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-menu .jeecg-menu-item.jeecg-menu-item-active,
html#htmlRoot:not([data-theme="dark"]) .jeecg-menu-menu-popover .jeecg-menu .jeecg-menu-item.jeecg-menu-item-selected {
  color: #302cbd !important;
  background: #efefff !important;
  font-weight: 600;
}
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu .jeecg-menu-item-disabled,
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu-disabled > .jeecg-menu-submenu-title {
  color: #a8afbf !important;
  cursor: not-allowed;
}
@media (max-width: 1250px) {
  html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-app-logo {
    padding: 0 14px !important;
  }
  html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar:not(.ant-layout-sider-collapsed) .jeecg-app-logo > img {
    width: 181px !important;
    height: 181px !important;
  }
}
/* The original compact logo is white artwork for a dark rail. Give that
 * unchanged image a brand-colored tile when the rail is white. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar.ant-layout-sider-collapsed .jeecg-app-logo > img {
  flex: 0 0 32px;
  width: 32px !important;
  height: 32px !important;
  padding: 5px;
  object-fit: contain;
  border-radius: 7px;
  background: #302cbd;
}

/* v9: title, icon and arrow use the same vertical center. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-menu-submenu-title { align-items:center; line-height:20px !important; }
html#htmlRoot:not([data-theme="dark"]) .jeecg-layout-sideBar .jeecg-simple-menu-sub-title { display:block; line-height:20px !important; }
