/* ==========================================================================
   Dashboard font — Cairo (self-hosted variable font, weights 200–1000)
   Load this file LAST in every dashboard layout so it wins over theme fonts.
   Icon fonts are untouched: they set font-family on their own classes.
   ========================================================================== */

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/Cairo-Variable.ttf") format("truetype-variations"),
         url("../fonts/Cairo/Cairo-Variable.ttf") format("truetype");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

/* Country flag emoji (Windows has no flag glyphs). unicode-range = only flag code points use it,
   and the file is downloaded only when a flag is actually rendered. */
@font-face {
    font-family: "Twemoji Country Flags";
    src: url("../lib/country-flag-emoji-polyfill/dist/TwemojiCountryFlags.woff2") format("woff2");
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    font-display: swap;
}

:root {
    --app-font: "Twemoji Country Flags", "Cairo", Tahoma, Arial, sans-serif;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, a, label, small, strong, b, th, td, li, dt, dd, legend, blockquote,
input, button, select, textarea, optgroup,
.tooltip,
.popover,
.dropdown-menu,
.modal,
.nav-tabs a,
.page-title,
.pricing-column .plan-title,
.pricing-column .plan-price,
.kanban-box .kanban-detail h4,
.select2-container,
.select2-results,
.nice-select,
.bootstrap-datetimepicker-widget,
.dataTables_wrapper,
#toast-container,
.swal2-popup,
.sweet-alert,
.custombox-content {
    font-family: var(--app-font);
}
