/*!
 * FA6 兼容补丁（fa6-compat.css）
 * 用途：修复 Font Awesome 4.7.0 升级 6.7.2 后，style.min.css 中依赖 FA4 字形别名的规则。
 * 原理：同时声明 --fa 变量（FA6 的 content 来源）与 content（FA4 回退时同样生效），
 *       因此本文件在 FA6 与 FA4（版本回退）两种环境下均可正常工作，回退时无需改动本文件。
 * 背景：FA6 中 .fa 基础类的渲染机制为 content: var(--fa)，
 *       若元素仅有非图标类（如菜单箭头 <span class="fa arrow">），--fa 未定义导致图标消失，
 *       需在此显式补充 --fa 值（码点与 FA4 完全一致）。
 */

/* ---- 侧边栏菜单折叠箭头（metisMenu，index.html / index-topnav.html 中 <span class="fa arrow">） ----
 * 注：style.min.css 在本文件之后加载且已有 .fa.arrow:before{content:"\f104"} 规则（字面值在 FA4/FA6 下均正确），
 * 此处用 !important 确保 FA6 下 font-weight 与 --fa 生效（.fa 无图标类时 --fa 未定义会导致字形丢失） */
.fa.arrow { --fa: "\f104"; font-weight: 900 !important; }
.fa.arrow:before { content: "\f104" !important; }
.active > a > .fa.arrow { --fa: "\f107"; }
.active > a > .fa.arrow:before { content: "\f107" !important; }

/* ---- ibox 面板折叠图标（.ibox.collapsed 时由 style.min.css 覆盖 content，此处补 --fa 双保险） ---- */
.ibox.collapsed .fa.fa-chevron-up { --fa: "\f078"; }
.ibox.collapsed .fa.fa-chevron-down { --fa: "\f077"; }

/* ---- style.min.css 中声明 font-family:FontAwesome 的规则，补字重确保 FA6 下渲染 solid 字形 ---- */
.glyphicon.fa,
#nestable2 .dd-item > button,
#toast-container > .toast:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    font-weight: 900;
}

/* ---- FA4 有而 FA6 已移除别名、但项目仍可能用到的图标（防御性补充） ---- */
/* fa-arrow：FA4 的箭头图标（FA5 起移除），仅保留兼容定义，正常业务不使用 */
.fa.fa-arrow { --fa: "\f061"; }
