/*
 * LinsGeek ERP —— 页头主导航的「更多」模块（配合 57-nav-more.js，说明见那边）
 * 回滚：删除 57-nav-more.css + 57-nav-more.js。
 */

/* 原「发票」导航项：排到最后，显示的文字换成「更多」（原文字还在 DOM 里，只是不显示） */
#app header.bg-main > div > ul > li.lg-more-li { order: 1; }
/* 字号设成 0 之后这个 span 的高度会塌掉（悬停底色只剩一小条），所以改成 inline-block，
   由 ::after 撑出和其他导航项一样的高度（文字 26px + 上下 5px 内边距 = 36px） */
#app header.bg-main > div > ul > li > .lg-more-trig {
  display: inline-block; font-size: 0 !important; line-height: 0; margin: -5px 0; vertical-align: top;
}
#app header.bg-main > div > ul > li > .lg-more-trig::after {
  content: attr(data-lg-more); display: inline-block; font-size: 18px; line-height: 26px; vertical-align: top;
}

/* 原「知虾」导航项：收进「更多」的下拉，页头上不再单独显示 */
#app header.bg-main > div > ul > li.lg-more-hidden { display: none !important; }

/* 下拉里的「知虾」入口不是链接，手型光标要自己给 */
.el-popover .lg-more-col ul a { cursor: pointer; }

/* ---------- 「更多」重排后的面板（57-nav-more.js 的 ensureMega）：原来的栏不显示，换成四大类 ---------- */
.el-popover.lg-mm-on > .flex { display: none !important; }
.lg-mm { display: flex; align-items: flex-start; }
.lg-mm-col { min-width: 176px; padding: 6px 4px; animation: lg-dd-col .28s cubic-bezier(.2, .85, .3, 1) both; }
.lg-mm-col + .lg-mm-col { margin-left: 6px; padding-left: 10px; border-left: 1px solid #f0f3f5; }
.lg-mm-col:nth-child(2) { animation-delay: .03s; }
.lg-mm-col:nth-child(3) { animation-delay: .06s; }
.lg-mm-col:nth-child(n+4) { animation-delay: .09s; }
.lg-mm-h { margin: 0 0 2px; padding: 4px 10px; font-size: 13px; font-weight: 700; color: #0d7b6d; white-space: nowrap; }
.lg-mm-sub { margin: 8px 0 2px; padding: 0 10px; font-size: 11.5px; font-weight: 600; color: #94a0ae; white-space: nowrap; }
.lg-mm-h + .lg-mm-sub { margin-top: 2px; }
.lg-mm ul { list-style: none; margin: 0; padding: 0; }
.lg-mm-a { display: block; padding: 7px 10px; border-radius: 8px; color: #1f2a37; font-size: 14px; line-height: 1.35; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.lg-mm-a:hover, .lg-mm-a:focus-visible { background: #eef7f5; color: #0d7b6d; outline: none; }
.lg-mm-a:active { background: #dff0ec; }
.lg-mm-a.cur { background: #f1f9f7; color: #0d7b6d; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .lg-mm-col { animation: none !important; } }
