/**
 * Smart Connect — forced UI font (same on every machine)
 * Place: /css/fonts/helvetica/*.woff (+ Thai Sarabun all weights)
 */
@font-face {
  font-family: 'Helvetica';
  src: url('/css/fonts/helvetica/helvetica-light-587ebe5a59211.woff') format('woff'),
       url('/css/fonts/helvetica/helvetica-light-587ebe5a59211.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/css/fonts/helvetica/Helvetica.woff') format('woff'),
       url('/css/fonts/helvetica/Helvetica.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/css/fonts/helvetica/Helvetica.woff') format('woff'),
       url('/css/fonts/helvetica/Helvetica.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/css/fonts/helvetica/Helvetica-Bold.woff') format('woff'),
       url('/css/fonts/helvetica/Helvetica-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/css/fonts/helvetica/Helvetica-Bold.woff') format('woff'),
       url('/css/fonts/helvetica/Helvetica-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/css/fonts/helvetica/Helvetica-Oblique.woff') format('woff'),
       url('/css/fonts/helvetica/Helvetica-Oblique.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('/css/fonts/helvetica/Helvetica-BoldOblique.woff') format('woff'),
       url('/css/fonts/helvetica/Helvetica-BoldOblique.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/css/fonts/Sarabun/Sarabun-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/css/fonts/Sarabun/Sarabun-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/css/fonts/Sarabun/Sarabun-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/css/fonts/Sarabun/Sarabun-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/css/fonts/Sarabun/Sarabun-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

@font-face {
  font-family: 'Sarabun';
  src: url('/css/fonts/Sarabun/Sarabun-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}

html,
body,
#root,
#app,
#__next {
  font-family: Helvetica, Sarabun, Arial, sans-serif !important;
}

body,
button,
.btn,
input,
select,
textarea,
table,
th,
td,
div,
span,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
label,
li,
.modal,
.swal2-popup {
  font-family: Helvetica, Sarabun, Arial, sans-serif !important;
}

/* Keep icon fonts intact — do NOT inherit Helvetica */
.fa,
.fas,
.far,
.fal,
.fab,
.fad,
.fa-solid,
.fa-regular,
.fa-brands,
i.fa,
i.fas,
i.far,
i.fab,
i[class*='fa-'],
span[class*='fa-'] {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 5 Free', FontAwesome !important;
}

.fa-brands,
.fab,
i.fa-brands,
i.fab {
  font-family: 'Font Awesome 6 Brands', 'Font Awesome 5 Brands' !important;
  font-weight: 400 !important;
}

.material-icons,
.material-symbols-outlined,
.material-symbols-rounded,
.material-symbols-sharp {
  font-family: 'Material Icons', 'Material Symbols Outlined', 'Material Symbols Rounded' !important;
}

svg {
  font-family: inherit !important;
}
