/* LINE Seed Sans TH: ฟอนต์ต้นฉบับและใบอนุญาตดู SOURCE.txt / OFL.txt */
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("LINESeedSansTH_W_Th.woff2") format("woff2"),
    url("LINESeedSansTH_W_Th.woff") format("woff");
  font-style: normal;
  font-weight: 250;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("LINESeedSansTH_W_Rg.woff2") format("woff2"),
    url("LINESeedSansTH_W_Rg.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("LINESeedSansTH_W_Bd.woff2") format("woff2"),
    url("LINESeedSansTH_W_Bd.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("LINESeedSansTH_W_XBd.woff2") format("woff2"),
    url("LINESeedSansTH_W_XBd.woff") format("woff");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("LINESeedSansTH_W_He.woff2") format("woff2"),
    url("LINESeedSansTH_W_He.woff") format("woff");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* ต้องมี marker บน html: DataTables คัดลอก CSS แต่ไม่คัดลอก marker ไปหน้าพิมพ์ */
@media screen {
  html[data-web-font="line-seed"] {
    --app-web-font: "LINE Seed Sans TH", sans-serif;
    --bs-font-sans-serif: var(--app-web-font);
    --bs-body-font-family: var(--app-web-font);
    --font-body: var(--app-web-font);
    --font-display: var(--app-web-font);
  }

  html[data-web-font="line-seed"] body,
  html[data-web-font="line-seed"] :where(button, input, optgroup, select, textarea, .tooltip, .popover) {
    font-family: var(--app-web-font);
  }

  /* เปลี่ยนเฉพาะการแสดง SVG บนจอ: attributes เดิมยังใช้ใน print และ SVG/PNG export */
  html[data-web-font="line-seed"] .apexcharts-canvas text,
  html[data-web-font="line-seed"] .apexcharts-legend-text,
  html[data-web-font="line-seed"] .apexcharts-tooltip,
  html[data-web-font="line-seed"] .apexcharts-tooltip-title,
  html[data-web-font="line-seed"] .apexcharts-tooltip-text {
    font-family: var(--app-web-font) !important;
  }
}
