/* Elitech Korea - Whale Font Awesome 안정화 패치
   목적: Pretendard/기타 폰트 강제 CSS가 아이콘 폰트를 덮어쓰지 못하게 하고,
   FA4/FA6 클래스명을 현재 로컬 FA5 폰트에 맞춰 호환 처리합니다. */

@font-face{
  font-family:"FontAwesome";
  src:url("../html/css_js/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"),
      url("../html/css_js/fontawesome/webfonts/fa-solid-900.woff") format("woff"),
      url("../html/css_js/fontawesome/webfonts/fa-solid-900.ttf") format("truetype");
  font-weight:900;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:"Font Awesome 5 Free";
  src:url("../html/css_js/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"),
      url("../html/css_js/fontawesome/webfonts/fa-solid-900.woff") format("woff"),
      url("../html/css_js/fontawesome/webfonts/fa-solid-900.ttf") format("truetype");
  font-weight:900;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:"Font Awesome 5 Free";
  src:url("../html/css_js/fontawesome/webfonts/fa-regular-400.woff2") format("woff2"),
      url("../html/css_js/fontawesome/webfonts/fa-regular-400.woff") format("woff"),
      url("../html/css_js/fontawesome/webfonts/fa-regular-400.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:"Font Awesome 5 Brands";
  src:url("../html/css_js/fontawesome/webfonts/fa-brands-400.woff2") format("woff2"),
      url("../html/css_js/fontawesome/webfonts/fa-brands-400.woff") format("woff"),
      url("../html/css_js/fontawesome/webfonts/fa-brands-400.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:block;
}

/* 아이콘 요소 자체 고정 */
html body i.fa,
html body span.fa,
html body em.fa,
html body .fa,
html body .fas,
html body .fa-solid,
html body [class~="fa"],
html body [class~="fas"],
html body [class~="fa-solid"]{
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:900 !important;
  font-style:normal !important;
  font-variant:normal !important;
  text-rendering:auto !important;
  line-height:1 !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
html body .far,
html body .fa-regular,
html body [class~="far"],
html body [class~="fa-regular"]{
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:400 !important;
  font-style:normal !important;
}
html body .fab,
html body .fa-brands,
html body [class~="fab"],
html body [class~="fa-brands"]{
  font-family:"Font Awesome 5 Brands" !important;
  font-weight:400 !important;
  font-style:normal !important;
}

/* before에 실제 아이콘 폰트 강제. content는 기존 all.css 값을 최대한 유지 */
html body .fa::before,
html body .fas::before,
html body .fa-solid::before,
html body [class~="fa"]::before,
html body [class~="fas"]::before,
html body [class~="fa-solid"]::before{
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:900 !important;
  font-style:normal !important;
  font-variant:normal !important;
  text-rendering:auto !important;
  line-height:1 !important;
  letter-spacing:normal !important;
  text-transform:none !important;
}
html body .far::before,
html body .fa-regular::before,
html body [class~="far"]::before,
html body [class~="fa-regular"]::before{
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:400 !important;
}
html body .fab::before,
html body .fa-brands::before,
html body [class~="fab"]::before,
html body [class~="fa-brands"]::before{
  font-family:"Font Awesome 5 Brands" !important;
  font-weight:400 !important;
}

/* FA6 -> 현재 로컬 FA5 호환 */
html body .fa-circle-check::before{content:"\f058" !important;}
html body .fa-circle-xmark::before{content:"\f057" !important;}
html body .fa-xmark::before{content:"\f00d" !important;}
html body .fa-house::before{content:"\f015" !important;}
html body .fa-magnifying-glass::before{content:"\f002" !important;}
html body .fa-phone-flip::before{content:"\f879" !important;}
html body .fa-location-dot::before{content:"\f3c5" !important;}
html body .fa-envelope-open-text::before{content:"\f658" !important;}

/* FA4 old alias -> 현재 로컬 FA5 호환 */
html body .fa-circle-o::before{content:"\f111" !important;font-weight:400 !important;}
html body .fa-clock-o::before{content:"\f017" !important;font-weight:400 !important;}
html body .fa-bell-o::before{content:"\f0f3" !important;font-weight:400 !important;}
html body .fa-envelope-o::before{content:"\f0e0" !important;font-weight:400 !important;}
html body .fa-folder-o::before{content:"\f07b" !important;font-weight:400 !important;}
html body .fa-heart-o::before{content:"\f004" !important;font-weight:400 !important;}
html body .fa-star-o::before{content:"\f005" !important;font-weight:400 !important;}
html body .fa-smile-o::before{content:"\f118" !important;font-weight:400 !important;}
html body .fa-user-circle-o::before{content:"\f2bd" !important;font-weight:400 !important;}
html body .fa-question-circle-o::before{content:"\f059" !important;font-weight:400 !important;}
html body .fa-thumbs-o-up::before{content:"\f164" !important;font-weight:400 !important;}
html body .fa-thumbs-o-down::before{content:"\f165" !important;font-weight:400 !important;}
html body .fa-commenting::before{content:"\f4ad" !important;}
html body .fa-commenting-o::before{content:"\f4ad" !important;font-weight:400 !important;}
html body .fa-files-o::before{content:"\f0c5" !important;font-weight:400 !important;}
html body .fa-picture-o::before{content:"\f03e" !important;font-weight:400 !important;}
html body .fa-pencil::before{content:"\f303" !important;}
html body .fa-pencil-square-o::before{content:"\f044" !important;font-weight:400 !important;}
html body .fa-share-square-o::before{content:"\f14d" !important;font-weight:400 !important;}
html body .fa-trash-o::before{content:"\f2ed" !important;font-weight:400 !important;}
html body .fa-cloud-upload::before{content:"\f382" !important;}
html body .fa-sign-out::before{content:"\f2f5" !important;}
html body .fa-thumb-tack::before{content:"\f08d" !important;}
html body .fa-ticket::before{content:"\f3ff" !important;}
html body .fa-arrows::before{content:"\f0b2" !important;}

/* 헤더/슬라이더/버튼에서 자주 쓰는 기본 아이콘 보정 */
html body .fa-search::before{content:"\f002" !important;}
html body .fa-bars::before{content:"\f0c9" !important;}
html body .fa-times::before{content:"\f00d" !important;}
html body .fa-close::before{content:"\f00d" !important;}
html body .fa-home::before{content:"\f015" !important;}
html body .fa-angle-right::before{content:"\f105" !important;}
html body .fa-angle-left::before{content:"\f104" !important;}
html body .fa-angle-down::before{content:"\f107" !important;}
html body .fa-angle-up::before{content:"\f106" !important;}
html body .fa-chevron-right::before{content:"\f054" !important;}
html body .fa-chevron-left::before{content:"\f053" !important;}
html body .fa-chevron-down::before{content:"\f078" !important;}
html body .fa-chevron-up::before{content:"\f077" !important;}
html body .fa-phone::before{content:"\f095" !important;}
html body .fa-envelope::before{content:"\f0e0" !important;}
html body .fa-map-marker::before{content:"\f041" !important;}
html body .fa-map-marker-alt::before{content:"\f3c5" !important;}

/* v4: iCold 카드 '장치개요' 아이콘 직접 보정 */
html body .fa-desktop::before{content:"\f108" !important;font-family:"Font Awesome 5 Free","FontAwesome" !important;font-weight:900 !important;}
html body .fa-database::before{content:"\f1c0" !important;font-family:"Font Awesome 5 Free","FontAwesome" !important;font-weight:900 !important;}
html body .fa-bell::before{content:"\f0f3" !important;font-family:"Font Awesome 5 Free","FontAwesome" !important;font-weight:900 !important;}

/* v5: 잘못 분리된 class="fa fa- dashboard" 호환 처리 */
html body .fa-dashboard::before,
html body .fa-tachometer::before,
html body .fa-tachometer-alt::before,
html body .fa[class~="dashboard"]::before,
html body [class~="fa-"][class~="dashboard"]::before{
  content:"\f0e4" !important;
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:900 !important;
}
