/* ==========================================================================
   RiskSystem Local Web Fonts (สอดคล้องกับ hrd3.0)
   Loaded from front/fonts/ (100% Offline Compatible)
   ========================================================================== */

/* Google Sans Regular */
@font-face {
  font-family: "Google Sans";
  src: url("./Google_Sans/static/GoogleSans-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Google Sans Medium */
@font-face {
  font-family: "Google Sans";
  src: url("./Google_Sans/static/GoogleSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* Google Sans SemiBold */
@font-face {
  font-family: "Google Sans";
  src: url("./Google_Sans/static/GoogleSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* Google Sans Bold */
@font-face {
  font-family: "Google Sans";
  src: url("./Google_Sans/static/GoogleSans-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* Google Sans Italic */
@font-face {
  font-family: "Google Sans";
  src: url("./Google_Sans/static/GoogleSans-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

/* Google Sans Bold Italic */
@font-face {
  font-family: "Google Sans";
  src: url("./Google_Sans/static/GoogleSans-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

/* FC Mittraphap Rounded */
@font-face {
  font-family: "FC Mittraphap Rounded";
  src: url("./FC Mittraphap Rounded/FC Mittraphap Rounded [Non-commercial].ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Global Font Application (ตามรูปแบบมาตรฐาน hrd3.0) */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div:not(.fa):not([class*="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not(.ion):not([class*="ion-"]),
span:not(.fa):not([class*="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not(.ion):not([class*="ion-"]),
a:not(.fa):not([class*="fa-"]):not(.glyphicon):not([class*="glyphicon-"]):not(.ion):not([class*="ion-"]):not(.sidebar-toggle),
input,
button:not(.sidebar-toggle),
select,
textarea,
table,
td,
th,
text,
tspan,
label,
.content-wrapper,
.main-header,
.main-sidebar,
.sidebar,
.sidebar-menu,
.treeview-menu,
.box,
.box-title,
.box-header,
.panel,
.panel-title,
.modal,
.modal-title,
.modal-content,
.modal-body,
.form-control,
.btn:not(.fa):not([class*="fa-"]),
.dataTables_wrapper,
.table,
.swal-modal,
.swal-title,
.swal-text,
.swal-button,
.swal2-popup,
.swal2-title,
.swal2-content,
.swal2-html-container,
.ui-widget {
  font-family: "Google Sans", "FC Mittraphap Rounded", sans-serif !important;
}

/* ==========================================================================
   Preserve Icon Fonts (ป้องกัน Google Sans ทับ FontAwesome / Glyphicons / Ionicons)
   ========================================================================== */
.fa,
.fa:before,
.fa:after,
span.fa,
i.fa,
a.fa,
[class^="fa-"],
[class*=" fa-"],
[class^="fa-"]:before,
[class*=" fa-"]:before,
[class^="fa-"]:after,
[class*=" fa-"]:after,
.sidebar-toggle,
.sidebar-toggle:before,
.sidebar-toggle:after,
.main-header .sidebar-toggle,
.main-header .sidebar-toggle:before,
.main-header .sidebar-toggle:after {
  font-family: FontAwesome !important;
}

.glyphicon,
.glyphicon:before,
.glyphicon:after,
span.glyphicon,
i.glyphicon,
[class^="glyphicon-"],
[class*=" glyphicon-"],
[class^="glyphicon-"]:before,
[class*=" glyphicon-"]:before,
[class^="glyphicon-"]:after,
[class*=" glyphicon-"]:after {
  font-family: "Glyphicons Halflings" !important;
}

.ion,
.ionicons,
.ion:before,
.ion:after,
span.ion,
i.ion,
[class^="ion-"],
[class*=" ion-"],
[class^="ion-"]:before,
[class*=" ion-"]:before,
[class^="ion-"]:after,
[class*=" ion-"]:after {
  font-family: "Ionicons" !important;
}

