/*
 * Points the theme and its plugins at the one text font, --am-font, which
 * application/views/defaults/fonts.php sets from
 * application/helpers/font_helper.php.
 *
 * The theme bundles (style.bundle.css, plugins.bundle.css) are vendor builds
 * that name Poppins directly. These rules override them instead of editing
 * the bundles, and use a leading `html` so they win whether this file loads
 * before or after them.
 */

/* Bootstrap and the theme read these variables. */
html:root {
    --bs-font-sans-serif: var(--am-font);
    --bs-body-font-family: var(--am-font);
}

html body {
    font-family: var(--am-font);
}

/* Plugins that name Poppins in plugins.bundle.css. */
html .daterangepicker,
html .ql-toolbar,
html .leaflet-container .leaflet-popup-content-wrapper .leaflet-popup-content,
html table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
html table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    font-family: var(--am-font);
}

html .apexcharts-legend-text,
html .apexcharts-text,
html .apexcharts-title-text {
    font-family: var(--am-font) !important;
}

/* ag-Grid's Alpine themes bring their own system font stack. */
html .ag-theme-alpine,
html .ag-theme-alpine-dark {
    font-family: var(--am-font);
}
