/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
html,
body,
#root,
#app,
app {
  height: 100%;
}
.colorWeak {
  filter: invert(80%);
}
.ant-layout {
  min-height: 100vh;
}
canvas {
  display: block;
}
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul,
ol {
  list-style: none;
}
.action {
  cursor: pointer;
}
@media (max-width: 480px) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
  }
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > th,
  .ant-table-thead > tr > td,
  .ant-table-tbody > tr > td {
    white-space: pre;
  }
  .ant-table-thead > tr > th > span,
  .ant-table-tbody > tr > th > span,
  .ant-table-thead > tr > td > span,
  .ant-table-tbody > tr > td > span {
    display: block;
  }
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}


/* ��ť��ɫ��ʽ */
.button-green.ant-btn {
    background: #52c41a !important;
    border-color: #52c41a !important;
    color: #fff !important;
}

.button-blue.ant-btn {
    background: #1677ff !important;
    border-color: #1677ff !important;
    color: #fff !important;
}

.button-cyan.ant-btn {
    background: #13c2c2 !important;
    border-color: #13c2c2 !important;
    color: #fff !important;
}

.button-purple.ant-btn {
    background: #722ed1 !important;
    border-color: #722ed1 !important;
    color: #fff !important;
}

.button-orange.ant-btn {
    background: #fa8c16 !important;
    border-color: #fa8c16 !important;
    color: #fff !important;
}

.button-pink.ant-btn {
    background: #eb2f96 !important;
    border-color: #eb2f96 !important;
    color: #fff !important;
}

.button-yellow.ant-btn {
    background: #faad14 !important;
    border-color: #faad14 !important;
    color: #fff !important;
}

.button-gray.ant-btn {
    background: #595959 !important;
    border-color: #595959 !important;
    color: #fff !important;
}

.button-indigo.ant-btn {
    background: #2f54eb !important;
    border-color: #2f54eb !important;
    color: #fff !important;
}

/* ===== 顶部菜单栏（方案四 · 浅色极简：白底 + 灰字 + 蓝色选中下划线）===== */
/* 整个 header 背景 = 白色，图标/文字 = 灰，底部一根 1px 细线与第二行分隔
   (不用模糊阴影:阴影画在 header 盒外,会被第二行右侧白色方格盖住,且看起来是一条粗线) */
.ant-pro-global-header {
    background-color: #fff !important;
    color: #5a6472 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e8eaf0 !important;
}
.ant-pro-global-header .anticon,
.ant-pro-global-header span,
.ant-pro-global-header a,
.ant-pro-global-header .ant-avatar {
    color: #5a6472 !important;
}

/* 顶栏左侧内容(横向一级菜单)放在 .ant-space 里,渲染为 inline-flex,默认基线对齐会把
   无基线的 ul 菜单整排按"底边贴基线"下沉约 30px,溢出 48px 头帽压到内容区;
   vertical-align: top 让它贴顶(右侧 Space 为 block 级 flex,天然贴顶,不受影响) */
.ant-pro-global-header .ant-space {
    vertical-align: top;
}

/* 顶部菜单容器：透明背景（透出 header 白色），无整体下划线 */
.ant-menu.ant-menu-horizontal {
    background: transparent !important;
    border-bottom: none !important;
}

/* 一级菜单项：与顶栏同高(HeaderHeight=48)，左右内边距 20px，无背景块、无圆角 */
.ant-menu.ant-menu-horizontal .ant-menu-item,
.ant-menu.ant-menu-horizontal .ant-menu-submenu-title {
    position: relative !important;
    top: 0 !important;                       /* 压过 antd 的 top:1px，指示条贴顶栏底边 */
    color: #5a6472 !important;
    height: 48px !important;
    line-height: 48px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border-radius: 0 !important;
    transition: color 0.2s !important;
}
/* 菜单项文字跟随菜单项颜色（顶栏通用 span 规则的例外） */
.ant-menu.ant-menu-horizontal .ant-menu-item .ant-menu-title-content {
    color: inherit !important;
}

/* 悬浮：仅文字变蓝，无底色、无下划线 */
.ant-menu.ant-menu-horizontal .ant-menu-item:hover,
.ant-menu.ant-menu-horizontal .ant-menu-submenu-title:hover {
    background-color: transparent !important;
    color: #1677ff !important;
}

/* 选中项：蓝色加粗文字，无底色、无阴影 */
.ant-menu.ant-menu-horizontal .ant-menu-item-selected {
    background-color: transparent !important;
    color: #1677ff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* 选中指示条:已去掉(顶部粗线不要了,底边也不留)
   display:none 同时压过 antd 自带的 2px 蓝色 hover/选中下划线 */
.ant-menu.ant-menu-horizontal .ant-menu-item::after {
    display: none !important;
}

/* 侧边栏菜单项高度35px，间距1px */
.ant-pro-sider .ant-menu-item,
.ant-pro-sider .ant-menu-submenu-title { height: 30px !important; line-height: 30px !important; margin-left: 4px !important; margin-right: 4px !important; }
.ant-pro-sider .ant-menu-item:not(:last-child),
.ant-pro-sider .ant-menu-submenu-title:not(:last-child) { margin-bottom: 0.5px !important; }
.ant-pro-sider .ant-menu-item:active,
.ant-pro-sider .ant-menu-submenu-title:active { outline: 2px solid #1F75CB; outline-offset: 1px; border-radius: 6px; }
/* 覆盖 AntDesign 的 width:calc(100%+1px)，配合 margin 防止右侧溢出侧边栏 */
.ant-pro-sider .ant-menu-inline .ant-menu-item,
.ant-pro-sider .ant-menu-inline .ant-menu-submenu-title { width: calc(100% - 9px) !important; }

/* 菜单文字对齐：有图标14px，无图标40px */
.ant-pro-sider .ant-menu-inline .ant-menu-item,
.ant-pro-sider .ant-menu-inline .ant-menu-submenu-title { padding-left: 10px !important; }
.ant-pro-sider .ant-menu-item,
.ant-pro-sider .ant-menu-submenu-title { padding-inline: 0px !important; }
.ant-pro-sider .ant-menu-item:not(:has(.anticon)):not(:has(.ant-menu-item-icon)),
.ant-pro-sider .ant-menu-item:not(:has(.anticon)):not(:has(.ant-menu-item-icon)),
.ant-pro-sider .ant-menu-submenu-title:not(:has(.anticon)):not(:has(.ant-menu-item-icon)) { padding-left: 30px !important; }

/* 带图标的菜单图标右边距 */
.ant-pro-sider .ant-menu-item .anticon,
.ant-pro-sider .ant-menu-submenu-title .anticon { margin-inline-end: 2px !important; margin-right: 2px !important; }

/* 二级菜单（levelid='2'，位于 .ant-menu-root > .ant-menu-submenu > .ant-menu-sub 内）不显示图标，文字左移到图标位置 */
.ant-pro-sider .ant-menu-root > .ant-menu-submenu > .ant-menu-sub > .ant-menu-item > .anticon,
.ant-pro-sider .ant-menu-root > .ant-menu-submenu > .ant-menu-sub > .ant-menu-item > .ant-menu-item-icon,
.ant-pro-sider .ant-menu-root > .ant-menu-submenu > .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title > .anticon,
.ant-pro-sider .ant-menu-root > .ant-menu-submenu > .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title > .ant-menu-item-icon {
    display: none !important;
}

/* 三级菜单（levelid='3'）及子菜单 图标+文字整体向右缩进20px */
/* 三级菜单标题（如"基础数据管理"，位于1层 .ant-menu-sub 内）：10px + 20px */
.ant-pro-sider .ant-menu-sub .ant-menu-submenu-title { padding-left: 20px !important; }
/* 三级菜单的子菜单（页面叶子，位于2层 .ant-menu-sub 内）：30px + 20px */
.ant-pro-sider .ant-menu-sub .ant-menu-sub .ant-menu-item { padding-left: 40px !important; }
.ant-pro-sider .ant-menu-item .ant-menu-item-icon + span,
.ant-pro-sider .ant-menu-submenu-title .ant-menu-item-icon + span,
.ant-pro-sider .ant-menu-item .anticon + span,
.ant-pro-sider .ant-menu-submenu-title .anticon + span { margin-left: 0px !important; }

/* 二级菜单（levelid='2'，侧边栏树顶层）：主题色深色值（选中项保持原高亮色）*/
.layout-index-shell .ant-pro-sider-menu > .ant-menu-item:not(.ant-menu-item-selected),
.layout-index-shell .ant-pro-sider-menu > .ant-menu-submenu > .ant-menu-submenu-title {
    color: var(--logo-bg) !important;
}
/* 三级菜单（levelid='3'，位于一层 .ant-menu-sub 内）：黑色（选中项保持原高亮色）*/
.layout-index-shell .ant-pro-sider-menu .ant-menu-sub > .ant-menu-item:not(.ant-menu-item-selected),
.layout-index-shell .ant-pro-sider-menu .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title {
    color: #000000 !important;
}
/* 子菜单标题图标跟随文字色 */
.layout-index-shell .ant-pro-sider-menu > .ant-menu-submenu > .ant-menu-submenu-title > .anticon,
.layout-index-shell .ant-pro-sider-menu .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title > .anticon {
    color: inherit !important;
}
/* 子菜单标题展开箭头：二级主题色、三级黑色 */
.layout-index-shell .ant-pro-sider-menu > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow,
.layout-index-shell .ant-pro-sider-menu > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
.layout-index-shell .ant-pro-sider-menu > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
    color: var(--logo-bg) !important;
    background-color: var(--logo-bg) !important;
}
.layout-index-shell .ant-pro-sider-menu .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow,
.layout-index-shell .ant-pro-sider-menu .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,
.layout-index-shell .ant-pro-sider-menu .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
    color: #000000 !important;
    background-color: #000000 !important;
}
/* 收缩态弹出式子菜单中的子菜单标题：黑色 */
.layout-index-shell .ant-menu-submenu-popup .ant-menu .ant-menu-submenu-title {
    color: #000000 !important;
}

/* 侧边栏收缩后宽度40px */
/*.ant-pro-sider.ant-layout-sider-collapsed { flex: 0 0 40px !important; max-width: 40px !important; min-width: 40px !important; width: 40px !important; }*/


/* 侧边栏收缩后宽度48px */
.ant-pro-sider.ant-layout-sider-collapsed {
    flex: 0 0 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    width: 48px !important;
}

/* 折叠后主容器 padding-left 对齐 40px Sider(BasicLayout 按默认 48px 计算会留 8-10px 间隙) */
.layout-index-shell .ant-pro-sider.ant-layout-sider-collapsed ~ .ant-layout { padding-left: 40px !important; }
/* 折叠后 logo 区压缩:高度 40px 与菜单项一致,32px logo 居中;标题隐藏
   (实测折叠后 logo 区高 92px 造成菜单与 Header 之间大空隙) */
.ant-pro-sider.ant-layout-sider-collapsed .ant-pro-sider-logo {
    height: 40px !important;
    padding: 4px !important;
    justify-content: center !important;
}
.ant-pro-sider.ant-layout-sider-collapsed .ant-pro-sider-logo h1 { display: none !important; }
/* 折叠后菜单项图标居中:适配 40px 宽度(padding 0 calc(50% - 7px) → 内容区 14px) */
.ant-pro-sider.ant-layout-sider-collapsed .ant-menu-inline-collapsed { width: 40px !important; }
.ant-pro-sider.ant-layout-sider-collapsed .ant-menu-inline-collapsed > .ant-menu-item,
.ant-pro-sider.ant-layout-sider-collapsed .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title { padding: 0 calc(50% - 7px) !important; }
/* 折叠兜底:菜单组件未收到折叠状态(无 inline-collapsed 类)时,强制菜单项收缩为 40px 图标列
   用 overflow:hidden 裁切文字(不用 display:none,避免误伤图标元素) */
.layout-index-shell .ant-pro-sider.ant-layout-sider-collapsed .ant-pro-sider-menu .ant-menu-submenu,
.layout-index-shell .ant-pro-sider.ant-layout-sider-collapsed .ant-pro-sider-menu .ant-menu-item,
.layout-index-shell .ant-pro-sider.ant-layout-sider-collapsed .ant-pro-sider-menu .ant-menu-submenu-title {
    width: 40px !important;
    max-width: 40px !important;
    padding: 0 calc(50% - 7px) !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* ---- 标签栏：移除自定义箭头，恢复默认渐变阴影 ---- */
.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap,
.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap {
    overflow: hidden !important;
}

/* ===== 减小页面上下外边距和内边距 ===== */

/* 主内容区外边距：上下 8px，左右 20px */
.ant-pro-basicLayout-content {
    margin: 8px 20px !important;
}

/* 标签页导航底部间距从 16px 减小到 4px */
.ant-tabs-nav {
    margin-bottom: 4px !important;
}

/* 卡片内边距从 24px 减小到 12px */
.ant-card-body {
    padding: 12px !important;
}

/* 面包屑导航底部间距减小 */
.ant-breadcrumb {
    margin-bottom: 4px !important;
}

/* 页面头部内边距减小 */
.ant-page-header {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* 表单区域底部间距减小 */
.ant-form {
    margin-bottom: 4px !important;
}

/* 表格上方间距 */
.ant-table-wrapper {
    margin-top: 4px !important;
}
