/*
 * LinsGeek ERP —— 语言切换挪进头像账号下拉（配合 58-header-lang.js，说明见那边）
 * 回滚：删除 58-header-lang.css + 58-header-lang.js。
 */

/* 页头右侧的语言图标：账号下拉里的入口加好之后才收起 */
body.lg-lang-moved #app header > ul > li:has(> [class*="icon-qiehuanyuyan"]) { display: none !important; }

/* 账号下拉：新加的一行排在"退出登录"（带分隔线的那条）上面 */
.el-popover > ul.py-main:has(> li.lg-lang-row) { display: flex; flex-direction: column; }
.el-popover > ul.py-main > li.lg-lang-row { order: 1; }
.el-popover > ul.py-main:has(> li.lg-lang-row) > li.border-t { order: 2; }

.el-popover > ul.py-main > li.lg-lang-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: default;
}
/* 整行不可点（可点的是右边的按钮），不跟着其他行做整行高亮 */
.el-popover:has(> ul.py-main) > ul.py-main > li.lg-lang-row:hover,
.el-popover:has(> ul.py-main) > ul.py-main > li.lg-lang-row:active { background: transparent; color: #1f2a37; }
.el-popover:has(> ul.py-main) > ul.py-main > li.lg-lang-row:hover .iconfont { color: #94a0ae; }

.lg-lang-row .lg-lang-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #eef1f4; }
.lg-lang-row .lg-lang-seg button {
  min-width: 40px; padding: 3px 10px; border: 0; border-radius: 6px; background: transparent;
  font-size: 12px; line-height: 18px; color: #5b6675; cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.lg-lang-row .lg-lang-seg button:hover { color: #0d7b6d; }
.lg-lang-row .lg-lang-seg button.is-on {
  background: #fff; color: #0d7b6d; font-weight: 600; cursor: default;
  box-shadow: 0 1px 2px rgba(15, 35, 52, .12);
}
.lg-lang-row .lg-lang-seg button:focus-visible { outline: 2px solid #0d7b6d; outline-offset: 1px; }
