/**
 * ERP 业务区与 Zono/BS5 的衔接：表格、旧版 Yii 表单、侧栏 Font Awesome 图标尺寸等。
 */

/* 品牌文字（替代 ZONO 图片） */
body.erp-zono-theme .erp-zono-brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

body.erp-zono-theme .erp-zono-brand:hover {
  color: var(--theme-default, #2b5f60);
}

body.erp-zono-theme .erp-zono-brand-text {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: #1f2f3e;
  letter-spacing: 0.02em;
}

body.erp-zono-theme.dark-only .erp-zono-brand-text,
body.erp-zono-theme .dark-only .erp-zono-brand-text {
  color: #f2f3f7;
}

/* 品牌 + 侧栏开关：同一行横向排列（左文案 / 右按钮） */
body.erp-zono-theme .erp-zono-brand-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem;
  box-sizing: border-box;
}

body.erp-zono-theme .erp-zono-brand-row .logo-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}

body.erp-zono-theme .erp-zono-brand-row .toggle-sidebar {
  flex-shrink: 0;
}

/* 顶栏蓝区：宽度随公司名收缩，左右与文字对齐 */
body.erp-zono-theme .page-header .header-logo-wrapper {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 0.65rem !important;
  padding-right: 0.35rem !important;
}

body.erp-zono-theme .page-header .header-logo-wrapper .logo-wrapper {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

body.erp-zono-theme .page-header .header-logo-wrapper .erp-zono-brand {
  width: auto;
}

body.erp-zono-theme .page-header .header-logo-wrapper .erp-zono-brand-text {
  max-width: none;
  white-space: nowrap;
  word-break: keep-all;
}

@media (max-width: 1199.98px) {
  body.erp-zono-theme .page-header .header-logo-wrapper .erp-zono-brand-text {
    white-space: normal;
    max-width: min(100%, 10.5rem);
  }
}

@media (min-width: 1200px) {
  body.erp-zono-theme .page-header .header-logo-wrapper .erp-zono-brand-text {
    font-size: 1.05rem;
  }
}

body.erp-zono-theme .page-header .header-logo-wrapper .toggle-sidebar {
  flex-shrink: 0;
  margin-left: 0;
}

/* 顶栏绿区：整体高度压缩 */
body.erp-zono-theme .page-header {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  min-height: 0 !important;
}

body.erp-zono-theme .page-header .header-wrapper {
  min-height: 0 !important;
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  align-items: center !important;
}

/* 顶栏右侧避免出现与渐变不一致的色块（material-type 等会给 nav-right 定宽 40%～50%，空区易显底色） */
body.erp-zono-theme #pageWrapper .page-header .header-wrapper,
body.erp-zono-theme #pageWrapper .page-header .header-logo-wrapper,
body.erp-zono-theme #pageWrapper .page-header .nav-right,
body.erp-zono-theme #pageWrapper .page-header .nav-right > ul,
body.erp-zono-theme #pageWrapper .page-header .nav-right .nav-menus,
body.erp-zono-theme #pageWrapper .page-header .nav-right .nav-menus > li {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.erp-zono-theme #pageWrapper .page-header .nav-right {
  width: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
}

/* 覆盖 Zono：material-type + compact 时 nav-right 宽 50% 等 */
body.erp-zono-theme #pageWrapper.material-type .page-header .header-wrapper .nav-right,
body.erp-zono-theme #pageWrapper.material-icon .page-header .header-wrapper .nav-right {
  width: auto !important;
  max-width: 100% !important;
}

/* 侧栏收起为图标条时，去掉 Zono 为模板预留的过大右内边距，避免顶栏右侧「空一块」 */
body.erp-zono-theme #pageWrapper.compact-wrapper .page-header.close_icon {
  padding-right: 0 !important;
}

body.erp-zono-theme .page-header .right-header .nav-menus {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.erp-zono-theme .page-header .right-header .nav-menus > li {
  padding-top: 0.1rem !important;
  padding-bottom: 0.1rem !important;
}

body.erp-zono-theme .page-header .right-header .nav-menus .btn-sm {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  line-height: 1.2;
}

body.erp-zono-theme .page-header .profile-nav .profile-media {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.erp-zono-theme .page-header .profile-nav .profile-media img {
  width: 32px !important;
  height: 32px !important;
}

body.erp-zono-theme .page-header .profile-nav .user p {
  margin-bottom: 0 !important;
  line-height: 1.2;
}

body.erp-zono-theme .page-header .profile-nav .user span {
  line-height: 1.2;
}

body.erp-zono-theme .page-header .notification-box svg {
  width: 22px;
  height: 22px;
}

/* 顶栏：点击放大镜后搜索框向左滑出（按钮在右，输入框向左展开） */
body.erp-zono-theme .erp-zono-header-search {
  position: relative;
}

body.erp-zono-theme .erp-zono-header-search-form {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: none;
  transition: max-width 0.3s ease, opacity 0.22s ease, margin 0.3s ease;
}

body.erp-zono-theme .erp-zono-header-search.is-open .erp-zono-header-search-form {
  max-width: min(260px, 46vw);
  opacity: 1;
  margin-right: 0.35rem;
}

body.erp-zono-theme .erp-zono-header-search-input {
  width: min(260px, 46vw);
  min-width: 0;
}

/* 工作台：标语 + 销售地图用深色字（Zono 下卡片常为浅底） */
body.erp-zono-theme .erp-zono-dashboard .dashboard-quote-card {
  background: #fff !important;
  border: 1px solid rgba(82, 82, 108, 0.12);
}

body.erp-zono-theme .erp-zono-dashboard .dashboard-quote-card .dashboard-quote-text,
body.erp-zono-theme .erp-zono-dashboard .dashboard-sales-map-title {
  color: #111827 !important;
  text-shadow: none !important;
}

body.erp-zono-theme .erp-zono-dashboard .dashboard-sales-map-desc {
  color: #374151 !important;
  text-shadow: none !important;
}

body.erp-zono-theme .erp-zono-dashboard .dashboard-sales-map-card {
  background: #fff !important;
  border: 1px solid rgba(82, 82, 108, 0.12);
}

body.erp-zono-theme .erp-zono-dashboard .dashboard-sales-map-card .sales-map-icon-wrap {
  background: rgba(43, 95, 96, 0.12);
  color: var(--theme-default, #2b5f60) !important;
  text-shadow: none !important;
}

body.erp-zono-theme .erp-zono-dashboard .dashboard-quote-card .dashboard-quote-text .fa-fire {
  color: #c2410c;
}

/* 侧栏顶：品牌与折叠图标同一行，左文右钮（占满侧栏顶宽） */
body.erp-zono-theme .sidebar-wrapper .logo-wrapper {
  padding-top: 0.35rem !important;
  padding-bottom: 0.3rem !important;
  min-height: 0 !important;
}

/* 侧栏顶行：块级 + 清浮动，使品牌 float 生效（flex 子项上 float 无效） */
body.erp-zono-theme .sidebar-wrapper .logo-wrapper .erp-zono-brand-row {
  display: block;
  width: 100%;
  overflow: hidden;
}

body.erp-zono-theme .sidebar-wrapper .erp-zono-brand-row > .erp-zono-brand {
  display: block;
  width: 120px;
  float: left;
  margin-top: 20px;
  min-width: 0;
}

body.erp-zono-theme .sidebar-wrapper .erp-zono-brand-row .toggle-sidebar {
  float: right;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.erp-zono-theme .sidebar-wrapper .erp-zono-brand-row .toggle-sidebar .sidebar-toggle {
  display: block;
  vertical-align: middle;
}

body.erp-zono-theme .sidebar-wrapper .erp-zono-brand-row .erp-zono-brand-text {
  font-size: 0.95rem;
  max-width: 9.5rem;
  white-space: normal;
  word-break: keep-all;
}

/* 「功能菜单」标题上移、收紧 */
body.erp-zono-theme .sidebar-wrapper .sidebar-main-title {
  margin-top: 0.1rem !important;
  margin-bottom: 0.15rem !important;
  padding-top: 0 !important;
}

body.erp-zono-theme .sidebar-wrapper .sidebar-main-title h6 {
  margin-bottom: 0 !important;
  padding: 0.15rem 0 0.2rem !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.04em;
}

/* 一级菜单项更紧凑；link-nav 用 flex，待办徽章单独靠右（与二级定位规则分开）
 * 排除仅图标侧栏（close_icon），否则与 Zono 的 12px 留白规则打架，且易与顶区元素叠在一起 */
body.erp-zono-theme .sidebar-wrapper:not(.close_icon) .sidebar-links > li.sidebar-list > a.sidebar-link,
body.erp-zono-theme .sidebar-wrapper:not(.close_icon) .sidebar-links > li > a.sidebar-link.link-nav {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  min-height: 0 !important;
}

body.erp-zono-theme .sidebar-wrapper .sidebar-links > li > a.sidebar-link.link-nav {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  gap: 0.35rem;
}

body.erp-zono-theme .sidebar-wrapper .sidebar-links > li > a.sidebar-link.link-nav > span:not(.badge) {
  flex: 1 1 auto;
  min-width: 0;
}

body.erp-zono-theme .sidebar-wrapper .sidebar-submenu li a {
  padding-top: 0.28rem !important;
  padding-bottom: 0.28rem !important;
  font-size: 0.875rem;
}

/* 凡已展开的父级，箭头旋转为向下（不限于当前页） */
body.erp-zono-theme .sidebar-wrapper li.sidebar-list.erp-submenu-expanded > a.sidebar-title .erp-sidebar-chevron i {
  transform: rotate(90deg);
  opacity: 0.72;
}

body.erp-zono-theme .erp-zono-icon-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto;
  border-radius: 10px;
  background: var(--theme-default, #2b5f60);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
}

body.erp-zono-theme .erp-zono-icon-brand:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

body.erp-zono-theme .toggle-sidebar {
  cursor: pointer;
}

body.erp-zono-theme .sidebar-list .sidebar-link .erp-zono-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  min-width: 1.5rem;
  margin-right: 0.5rem;
  font-size: 1rem;
  line-height: 1;
}

/* 有子菜单的一级项：右侧「>」，隐藏 Zono 重复的 according-menu */
body.erp-zono-theme .sidebar-wrapper a.sidebar-title.erp-has-children {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0.25rem;
}

body.erp-zono-theme .sidebar-wrapper a.sidebar-title.erp-has-children .according-menu {
  display: none !important;
}

body.erp-zono-theme .sidebar-wrapper a.sidebar-title.erp-has-children .erp-sidebar-title-text {
  flex: 1 1 auto;
  min-width: 0;
}

body.erp-zono-theme .sidebar-wrapper a.sidebar-title.erp-has-children .erp-sidebar-chevron {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 0.35rem;
  opacity: 0.55;
  font-size: 0.85rem;
  line-height: 1;
}

body.erp-zono-theme .sidebar-wrapper a.sidebar-title.erp-has-children .erp-sidebar-chevron i {
  display: block;
  transition: transform 0.2s ease;
}

body.erp-zono-theme .sidebar-wrapper a.sidebar-title.erp-has-children.active .erp-sidebar-chevron i {
  transform: rotate(90deg);
  opacity: 0.82;
}

body.erp-zono-theme .sidebar-submenu li a {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  gap: 0.35rem;
}

/* 二级：文案与数字紧挨，不占满行、不拉到与一级徽章同一竖线 */
body.erp-zono-theme .sidebar-wrapper .sidebar-submenu .erp-sidebar-item-text {
  flex: 0 1 auto;
  min-width: 0;
}

body.erp-zono-theme .erp-zono-badge {
  font-size: 0.7rem;
  padding: 0.2em 0.55em;
  background-color: var(--theme-default, #2b5f60) !important;
  color: #fff !important;
  font-weight: 600;
}

/*
 * 侧栏待办数字：一级 / 二级拆成两段（覆盖 Zono 里 li.sidebar-list .badge 的合并规则），可分别改 right、top。
 * 选择器链路对齐模板：.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper … .simplebar-content
 */
body.erp-zono-theme .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.sidebar-link.link-nav,
body.erp-zono-theme .page-wrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.sidebar-link.link-nav {
  position: relative;
}

body.erp-zono-theme .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.sidebar-link.link-nav .badge,
body.erp-zono-theme .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.sidebar-link.link-nav .erp-zono-badge,
body.erp-zono-theme .page-wrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.sidebar-link.link-nav .badge,
body.erp-zono-theme .page-wrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.sidebar-link.link-nav .erp-zono-badge {
  border-radius: 10px;
  font-family: Roboto, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  padding: 0.45em 0.8em 0.33em;
  position: absolute;
  right: 50px;
  top: 13.5px;
  z-index: 1;
  margin-left: 0 !important;
}

body.erp-zono-theme .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list .sidebar-submenu li a,
body.erp-zono-theme .page-wrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list .sidebar-submenu li a {
  position: relative;
}

body.erp-zono-theme .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list .sidebar-submenu li a .badge,
body.erp-zono-theme .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list .sidebar-submenu li a .erp-zono-badge,
body.erp-zono-theme .page-wrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list .sidebar-submenu li a .badge,
body.erp-zono-theme .page-wrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-list .sidebar-submenu li a .erp-zono-badge {
  border-radius: 10px;
  font-family: Roboto, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  padding: 0.45em 0.8em 0.33em;
  position: absolute;
  right: 16px;
  top: 8.5px;
  z-index: 1;
  margin-left: 0 !important;
}

/* 模板图钉：ERP 菜单未接钉住逻辑，窄栏下悬停会冒出与图标重叠 */
body.erp-zono-theme .sidebar-wrapper .sidebar-list > i.fa-thumb-tack {
  display: none !important;
}

/*
 * Zono 在 compact-wrapper 里把 .back-btn 设为 display:block，特异性压过
 * @media (min-width:576px){.sidebar-wrapper .back-btn{display:none}}，桌面端仍会多出一行 Logo，
 * 与 logo-icon-wrapper「光」和首项菜单叠在一起。
 */
@media (min-width: 576px) {
  body.erp-zono-theme .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .back-btn,
  body.erp-zono-theme .page-wrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .back-btn {
    display: none !important;
  }
}

/*
 * =============================================================================
 * 固定宽度「图标轨」：.close_icon（窄屏/悬停拉宽）与 #pageWrapper.compact-sidebar（桌面仅图标 + 刷新）
 * 此前大量规则只写 .close_icon，compact-sidebar 下无该类，样式全部未命中。
 * 角标/文案隐藏仅用 .simplebar-content > li.sidebar-list > a，避免误伤飞盘子菜单内链接。
 * =============================================================================
 */

body.erp-zono-theme .sidebar-wrapper.close_icon .erp-sidebar-chevron,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .erp-sidebar-chevron {
  display: none !important;
}

/* 未悬停 / 桌面仅图标：窄轨、内容区水平居中 */
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover),
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper {
  border-right: 1px solid rgba(82, 82, 108, 0.1) !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) > div,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper > div {
  width: 100% !important;
  max-width: 4.75rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .logo-icon-wrapper,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .logo-icon-wrapper {
  display: block !important;
  padding: 0.65rem 0 0.45rem !important;
  margin: 0 0 0.35rem !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(82, 82, 108, 0.08) !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .logo-icon-wrapper .erp-zono-icon-brand,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .logo-icon-wrapper .erp-zono-icon-brand {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 顶标：浅色底 + 主题字色，避免整块实心 teal */
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .erp-zono-icon-brand,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .erp-zono-icon-brand {
  width: 2.5rem !important;
  height: 2.5rem !important;
  font-size: 0.95rem !important;
  border-radius: 0.65rem !important;
  background: rgba(43, 95, 96, 0.12) !important;
  color: var(--theme-default, #2b5f60) !important;
  border: none !important;
  box-shadow: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .erp-zono-icon-brand:hover,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .erp-zono-icon-brand:hover {
  background: rgba(43, 95, 96, 0.2) !important;
  filter: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) #sidebar-menu.sidebar-nav-wrap,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-wrapper,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-mask,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-content-wrapper,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper #sidebar-menu.sidebar-nav-wrap,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-mask,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* 用 grid + justify-items:center，比 flex+max-width:86px 更稳，图标始终落在轨心 */
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content {
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  row-gap: 0.3rem !important;
  width: 100% !important;
  padding: 0.15rem 0 1rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  list-style: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-content > li.sidebar-list,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-content > li.sidebar-list {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 单格：固定正方形 hit-area，彻底去掉通栏底与底边框 */
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-links > li.sidebar-list > a.sidebar-link,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-links > li > a.sidebar-link.link-nav,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-links > li > a.sidebar-title,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-links > li.sidebar-list > a.sidebar-link,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-links > li > a.sidebar-link.link-nav,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-links > li > a.sidebar-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 0.65rem !important;
  background: transparent !important;
  color: rgba(31, 47, 62, 0.72) !important;
  box-shadow: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-links > li.sidebar-list > a.sidebar-link:hover,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-links > li > a.sidebar-link.link-nav:hover,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-links > li > a.sidebar-title:hover,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-links > li.sidebar-list > a.sidebar-link:hover,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-links > li > a.sidebar-link.link-nav:hover,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-links > li > a.sidebar-title:hover {
  background: rgba(82, 82, 108, 0.09) !important;
  color: var(--theme-default, #2b5f60) !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-link.link-nav.active,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-link.link-nav.active {
  background: rgba(43, 95, 96, 0.16) !important;
  color: var(--theme-default, #2b5f60) !important;
  box-shadow: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-link.link-nav.active .erp-zono-menu-icon,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-link.link-nav.active .erp-zono-menu-icon {
  color: var(--theme-default, #2b5f60) !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) li.sidebar-list.erp-submenu-expanded > a.sidebar-title,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper li.sidebar-list.erp-submenu-expanded > a.sidebar-title {
  background: rgba(82, 82, 108, 0.09) !important;
  color: rgba(31, 47, 62, 0.82) !important;
  box-shadow: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) li.sidebar-list.erp-submenu-expanded > a.sidebar-title.active,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper li.sidebar-list.erp-submenu-expanded > a.sidebar-title.active {
  background: rgba(43, 95, 96, 0.16) !important;
  color: var(--theme-default, #2b5f60) !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-list .sidebar-link .erp-zono-menu-icon,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-list .sidebar-link .erp-zono-menu-icon {
  width: 1.35rem !important;
  min-width: 1.35rem !important;
  margin: 0 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.link-nav > span:not(.badge):not(.erp-zono-badge),
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a.link-nav > span:not(.badge):not(.erp-zono-badge) {
  display: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a .erp-sidebar-title-text,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a .erp-sidebar-title-text {
  display: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a .badge,
body.erp-zono-theme .sidebar-wrapper.close_icon:not(:hover) .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a .erp-zono-badge,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a .badge,
body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content > li.sidebar-list > a .erp-zono-badge {
  display: none !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* 悬停拉出宽侧栏：恢复文案、角标与 Zono 式通栏高亮 */
body.erp-zono-theme .sidebar-wrapper.close_icon:hover > div {
  max-width: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .logo-icon-wrapper {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .erp-zono-icon-brand {
  width: 2.5rem !important;
  height: 2.5rem !important;
  font-size: 1rem !important;
  border-radius: 10px !important;
  background: var(--theme-default, #2b5f60) !important;
  color: #fff !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-main .sidebar-links .simplebar-content-wrapper .simplebar-content {
  display: block !important;
  row-gap: unset !important;
  justify-items: unset !important;
  padding: 0 !important;
  text-align: left !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-main .sidebar-links .simplebar-content > li.sidebar-list {
  width: auto !important;
  max-width: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-links > li.sidebar-list > a.sidebar-link,
body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-links > li > a.sidebar-link.link-nav,
body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-links > li > a.sidebar-title {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0.5rem 0.75rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  justify-content: flex-start !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-links a.link-nav > span:not(.badge):not(.erp-zono-badge),
body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-links a .erp-sidebar-title-text {
  display: inline !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-list .sidebar-link .erp-zono-menu-icon {
  margin-right: 0.5rem !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-links a .badge,
body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-links a .erp-zono-badge {
  display: inline-block !important;
  position: absolute !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover .sidebar-link.link-nav.active {
  background-color: rgba(43, 94, 96, 0.08) !important;
  box-shadow: inset 3px 0 0 var(--theme-default, #2b5f60) !important;
}

body.erp-zono-theme .sidebar-wrapper.close_icon:hover li.sidebar-list.erp-submenu-expanded > a.sidebar-title {
  border-radius: 8px !important;
}

/* 与模板一致：展开的一级项浅灰底、圆角 */
body.erp-zono-theme .sidebar-wrapper li.sidebar-list.erp-submenu-expanded > a.sidebar-title {
  background-color: rgba(82, 82, 108, 0.08);
  border-radius: 8px;
}

body.erp-zono-theme .sidebar-wrapper li.sidebar-list.erp-submenu-expanded > a.sidebar-title.active {
  color: var(--theme-default, #2b5f60);
}

/* 去掉 Zono 模板在子菜单 ul 上的 ::before/::after 竖线（原 width:2px 连接线） */
body.erp-zono-theme .sidebar-wrapper ul.sidebar-submenu::before,
body.erp-zono-theme .sidebar-wrapper ul.sidebar-submenu::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 当前子项：左侧主题色竖条 + 浅底 */
body.erp-zono-theme .sidebar-wrapper .sidebar-submenu li a.active {
  color: var(--theme-default, #2b5f60) !important;
  font-weight: 600;
  background-color: rgba(43, 94, 96, 0.08) !important;
  border-bottom: none !important;
  box-shadow: inset 3px 0 0 var(--theme-default, #2b5f60) !important;
}

body.erp-zono-theme .sidebar-wrapper .sidebar-submenu li a.active .erp-zono-menu-icon {
  color: var(--theme-default, #2b5f60);
}

/* 无子菜单的一级项：左侧竖条表示当前页 */
body.erp-zono-theme .sidebar-wrapper .sidebar-link.link-nav.active {
  color: var(--theme-default, #2b5f60) !important;
  font-weight: 600;
  background-color: rgba(43, 94, 96, 0.08) !important;
  border-bottom: none !important;
  box-shadow: inset 3px 0 0 var(--theme-default, #2b5f60) !important;
}

body.erp-zono-theme .sidebar-wrapper .sidebar-link.link-nav.active .erp-zono-menu-icon {
  color: var(--theme-default, #2b5f60);
}

/*
 * 图标侧栏（compact-sidebar / 桌面切换「仅图标」）：Zono 子菜单为 position:fixed 且 z-index:-1，
 * 会叠到正文下面或层级错乱；提高 z-index，并从顶栏下方开始铺高，避免「悬空一块白」观感。
 */
body.erp-zono-theme #pageWrapper.compact-sidebar .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links li .sidebar-submenu {
  z-index: 1040 !important;
  top: 0 !important;
  padding-top: 72px !important;
  box-sizing: border-box !important;
  height: 100vh !important;
}

body.erp-zono-theme #pageWrapper.compact-sidebar .sidebar-wrapper .sidebar-submenu li a.active {
  background-color: rgba(43, 94, 96, 0.1) !important;
  color: var(--theme-default, #2b5f60) !important;
  border-bottom: none !important;
  box-shadow: inset 3px 0 0 var(--theme-default, #2b5f60) !important;
}

body.erp-zono-theme .erp-zono-page-content .table {
  --bs-table-bg: transparent;
}

/*
 * 产品列表（product-list-table）：库里的 color 写在 tr 的 style 上。
 * BS5 给每个 td/th 单独设 --bs-table-bg / hover 态，会盖住 tr 的背景，Zono 下看起来像「颜色丢了」。
 * 有 data-product-color 时让单元格继承 tr 的计算背景（内联 + !important 仍在 tr 上）。
 */
body.erp-zono-theme .erp-zono-page-content .product-list-table > :not(caption) > tbody > tr[data-product-color]:not([data-product-color=""]) > * {
  background-color: inherit !important;
}

body.erp-zono-theme .erp-zono-page-content .product-list-table.table-hover > :not(caption) > tbody > tr[data-product-color]:not([data-product-color=""]):hover > * {
  background-color: inherit !important;
}

/* 成品成本列表：扁平线框表，与采购 GridView 边框/表头一致 */
body.erp-zono-theme .product-cost-index table.erp-flat-data-table.table.table-bordered > :not(caption) > * > * {
  border-color: rgba(82, 82, 108, 0.12) !important;
}

body.erp-zono-theme .product-cost-index table.erp-flat-data-table.table thead th {
  background: rgba(82, 82, 108, 0.06) !important;
  color: var(--bs-heading-color, #1f2f3e) !important;
}

body.erp-zono-theme .erp-zono-page-content .content-header.page-header-bar,
body.erp-zono-theme .erp-zono-page-content section.content-header {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

body.erp-zono-theme .erp-zono-page-content .page-title {
  margin-bottom: 1rem;
}

/* 页眉：压扁高度，覆盖 Zono .page-title 的大 margin/padding（如 margin:30px、padding:18px!important） */
body.erp-zono-theme .page-body .container-fluid > .page-title.erp-zono-page-header {
  margin: 0 0 0.5rem !important;
  padding: 0.25rem 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.erp-zono-theme .page-body .container-fluid > .page-title.erp-zono-page-header .erp-zono-page-header-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bs-heading-color, #1f2f3e);
}

body.erp-zono-theme .erp-zono-breadcrumb-nav .erp-zono-breadcrumb {
  flex-wrap: wrap;
  row-gap: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

body.erp-zono-theme .erp-zono-breadcrumb .breadcrumb-item,
body.erp-zono-theme .erp-zono-breadcrumb .breadcrumb-item a {
  color: rgba(82, 82, 108, 0.85);
}

body.erp-zono-theme .erp-zono-breadcrumb .breadcrumb-item.active {
  color: var(--bs-heading-color, #1f2f3e);
  font-weight: 600;
}

body.erp-zono-theme .erp-zono-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(82, 82, 108, 0.45);
}

body.erp-zono-theme .modal .close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.6;
}

body.erp-zono-theme .modal .close:hover {
  opacity: 1;
}

/*
 * 主布局：视口高度内主栏铺满，页脚贴底（短内容时不再在页脚与窗口底之间留白）。
 * 长内容时整页照常向下滚动，页脚仍在内容末尾。
 */
body.erp-zono-theme #pageWrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.erp-zono-theme #pageWrapper > .page-body-wrapper {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}

body.erp-zono-theme #pageWrapper .page-body-wrapper > .page-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
}

body.erp-zono-theme #pageWrapper .page-body > .container-fluid {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

body.erp-zono-theme #pageWrapper .page-body .container-fluid > .page-title.erp-zono-page-header {
  flex-shrink: 0;
}

body.erp-zono-theme #pageWrapper .page-body .container-fluid > .erp-zono-page-content {
  flex: 0 1 auto;
  width: 100%;
}

body.erp-zono-theme #pageWrapper .page-body .container-fluid > footer.footer.erp-zono-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/*
 * 左侧栏：Zono 为 position:fixed + height:auto，仅随菜单内容增高，底部会露出主区底色。
 * 用 top～bottom 拉满视口，内层 flex 把菜单区占满剩余高度（配合 #simple-bar 的 SimpleBar）。
 */
body.erp-zono-theme .page-body-wrapper > div.sidebar-wrapper {
  bottom: 0 !important;
  height: auto !important;
  max-height: none !important;
}

body.erp-zono-theme .page-body-wrapper > div.sidebar-wrapper > div {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

body.erp-zono-theme .page-body-wrapper > div.sidebar-wrapper nav.sidebar-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.erp-zono-theme .page-body-wrapper > div.sidebar-wrapper .sidebar-nav-wrap#sidebar-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body.erp-zono-theme .page-body-wrapper > div.sidebar-wrapper .sidebar-main .sidebar-links {
  height: 100% !important;
  max-height: none !important;
}

/* 页脚：放在主内容 container-fluid 内，左缘与正文一致（贴侧栏右侧）、高度压扁、左对齐（覆盖 Zono 居中） */
body.erp-zono-theme .page-body-wrapper .page-body footer.footer.erp-zono-footer,
body.erp-zono-theme footer.footer.erp-zono-footer {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.25rem 0 !important;
  box-shadow: none !important;
  background-color: #fff;
  border-top: 1px solid rgba(82, 82, 108, 0.12);
}

body.erp-zono-theme footer.footer.erp-zono-footer .erp-zono-footer-copy,
body.erp-zono-theme footer.footer.erp-zono-footer .erp-zono-footer-slogan {
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: left !important;
}

body.erp-zono-theme footer.footer.erp-zono-footer .erp-zono-footer-row {
  text-align: left;
  justify-content: flex-start;
}

body.erp-zono-theme footer.footer.erp-zono-footer .erp-zono-footer-row > [class^="col-"] {
  text-align: left !important;
}

body.erp-zono-theme footer.footer.erp-zono-footer p {
  text-align: left !important;
}

/* ---------- 列表页「搜索筛选」：与 Zono 卡片/表单一致，覆盖组件内联蓝灰渐变风 ---------- */
body.erp-zono-theme .search-filter-bar .search-filter-card {
  background: #fff !important;
  border: 1px solid rgba(82, 82, 108, 0.12) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  box-shadow: 0 1px 2px rgba(82, 82, 108, 0.06) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.erp-zono-theme .search-filter-bar .search-filter-card:hover {
  box-shadow: 0 2px 8px rgba(82, 82, 108, 0.08) !important;
}

body.erp-zono-theme .search-filter-bar .search-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(82, 82, 108, 0.85);
  margin-bottom: 0.35rem;
  text-transform: none;
  letter-spacing: 0;
}

body.erp-zono-theme .search-filter-bar .search-filter-label i {
  color: var(--theme-default, #2b5f60);
  font-size: 0.75rem;
}

body.erp-zono-theme .search-filter-bar .search-input,
body.erp-zono-theme .search-filter-bar .search-date-input {
  border: 1px solid rgba(82, 82, 108, 0.2) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 0.45rem 0.65rem !important;
  font-size: 0.875rem !important;
  color: #1f2f3e;
  background: #fff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.erp-zono-theme .search-filter-bar .search-select {
  border: 1px solid rgba(82, 82, 108, 0.2) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 0.45rem 0.65rem !important;
  font-size: 0.875rem !important;
  color: #1f2f3e;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* 仅「关键词」带搜索图标占位；客户点选等无 wrapper 的 .search-input 保持对称内边距 */
body.erp-zono-theme .search-filter-bar .search-input-wrapper .search-input {
  padding-left: 2.25rem !important;
}

body.erp-zono-theme .search-filter-bar .search-input-wrapper::before {
  left: 0.75rem;
  color: rgba(82, 82, 108, 0.45);
  font-size: 0.8rem;
}

body.erp-zono-theme .search-filter-bar .search-select {
  max-width: 100% !important;
  padding-right: 2rem !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2352566c' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.65rem center !important;
  background-size: 12px !important;
}

body.erp-zono-theme .search-filter-bar .search-input:focus,
body.erp-zono-theme .search-filter-bar .search-select:focus,
body.erp-zono-theme .search-filter-bar .search-date-input:focus {
  outline: none !important;
  border-color: var(--theme-default, #2b5f60) !important;
  box-shadow: 0 0 0 2px rgba(43, 95, 96, 0.15) !important;
}

body.erp-zono-theme .search-filter-bar .search-select:hover,
body.erp-zono-theme .search-filter-bar .search-input:hover,
body.erp-zono-theme .search-filter-bar .search-date-input:hover {
  border-color: rgba(82, 82, 108, 0.35) !important;
}

body.erp-zono-theme .search-filter-bar .date-separator {
  color: rgba(82, 82, 108, 0.5);
}

body.erp-zono-theme .search-filter-bar .btn-search {
  background: var(--theme-default, #2b5f60) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600;
  color: #fff !important;
  box-shadow: none !important;
  transition: background 0.15s ease, opacity 0.15s ease;
}

body.erp-zono-theme .search-filter-bar .btn-search:hover {
  background: #245251 !important;
  transform: none !important;
  box-shadow: none !important;
}

body.erp-zono-theme .search-filter-bar .btn-search:active {
  opacity: 0.92;
  transform: none !important;
}

body.erp-zono-theme .search-filter-bar .btn-reset {
  width: 2.375rem !important;
  height: 2.375rem !important;
  border: 1px solid rgba(82, 82, 108, 0.2) !important;
  border-radius: 6px !important;
  color: rgba(82, 82, 108, 0.75) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.erp-zono-theme .search-filter-bar .btn-reset:hover {
  color: #c62828 !important;
  border-color: rgba(198, 40, 40, 0.35) !important;
  background: rgba(198, 40, 40, 0.06) !important;
  transform: none !important;
}

/* 紧凑模式（折叠筛选） */
body.erp-zono-theme .search-filter-bar--compact .search-filter-compact {
  border: 1px solid rgba(82, 82, 108, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(82, 82, 108, 0.06) !important;
}

body.erp-zono-theme .search-filter-bar--compact .search-filter-compact .card-body {
  padding: 0.65rem 0.75rem !important;
}

body.erp-zono-theme .search-filter-bar--compact .search-filter-compact-more > summary {
  color: rgba(82, 82, 108, 0.75) !important;
  font-weight: 500;
}

/* 卡片内简易筛选条（审批、通知等） */
body.erp-zono-theme .erp-zono-page-content .filter-bar {
  padding: 0.5rem 0.65rem;
  background: rgba(242, 243, 247, 0.6);
  border: 1px solid rgba(82, 82, 108, 0.1);
  border-radius: 8px;
}
