/* ===== Modern System Font: Noto Sans Lao (ໄຟລ໌ໃນເຄື່ອງ) =====
   ເມື່ອກ່ອນດຶງຈາກ Google Fonts (@import + display=swap): ຂໍ້ຄວາມແຕ້ມດ້ວຍຟອນສຳຮອງກ່ອນ ແລ້ວປ່ຽນ
   ເປັນ Noto ຕອນມັນມາຮອດ — ຖັນ nowrap ກວ້າງຂຶ້ນ, ຕາຕະລາງຢືດໄປຂວາ (ກະຕຸກ) ທຸກເທື່ອທີ່ເຂົ້າໜ້າ.
   ຕອນນີ້ໃຊ້ໄຟລ໌ໃນ assets/fonts (preload ໃນ layouts/header.php) + font-display: block —
   ຂໍ້ຄວາມແຕ້ມອອກມາດ້ວຍຟອນສຸດທ້າຍເລີຍ ບໍ່ປ່ຽນຂະໜາດ. ນ້ຳໜັກ 100–500 = Regular, 600–900 = Bold. */
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSansLao-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: block;
  unicode-range: U+0E80-0EFF, U+200C-200D, U+20AD, U+25CC;  /* U+20AD = ₭ */
}
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSansLao-Bold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: block;
  unicode-range: U+0E80-0EFF, U+200C-200D, U+20AD, U+25CC;  /* U+20AD = ₭ */
}
/* ຕົວເລກ / ອັກສອນລາຕິນ (ລາຄາ, ບາໂຄ້ດ) — Noto Sans ຄືກັບທີ່ Google ສົ່ງມາໃຫ້ກັບ Noto Sans Lao */
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSans-Latin-400.woff2') format('woff2');
  font-weight: 100 500;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSans-Latin-700.woff2') format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body, *,
.content-wrapper, .main-header, .main-sidebar, .sidebar,
.card, .modal, .table, .btn, .nav-link, input, select, textarea, button {
  font-family: 'Noto Sans Lao', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Keep FontAwesome icon glyphs intact — the blanket rule above also hits <i class="fas ...">
   itself, and since ::before has no font-family of its own it would inherit Noto Sans Lao
   instead of the icon font, turning every icon into a blank box. */
.fa, .fas, .far, .fal, .fad,
.fa::before, .fas::before, .far::before, .fal::before, .fad::before,
.fa::after, .fas::after, .far::after, .fal::after, .fad::after {
  font-family: "Font Awesome 5 Free" !important;
}
.fab,
.fab::before,
.fab::after {
  font-family: "Font Awesome 5 Brands" !important;
}

/* Fallback local font-face mapping for offline environments. This has to be the real Noto
   Sans Lao, not the Looped variant (a visibly different typeface) — kitchen/counter tickets
   load this family FIRST regardless of network status (see LAN_TICKET_FONT in
   pos_checkout_js.php), so pointing it at Looped here made every kitchen ticket print in the
   wrong font even when online. */
@font-face {
  font-family: 'Noto Sans Lao Local';
  src: url('../fonts/NotoSansLao-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Lao Local';
  src: url('../fonts/NotoSansLao-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

