/* Embedded Arial fonts - Ensuring 100% Arial usage on quote.palopay.com.au */

@font-face {
    font-family: 'Arial';
    src: url('./fonts/Arial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block; /* Ensures font loads before text is displayed */
}

@font-face {
    font-family: 'Arial';
    src: url('./fonts/Arial-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

/* Override all font declarations to use Arial */
* {
    font-family: Arial, sans-serif !important;
}

/* Aggressive overrides to ensure NO other fonts can be used */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video,
input, textarea, select, button, option {
    font-family: Arial, sans-serif !important;
}

/* Prevent any font substitution */
@supports (font-synthesis: none) {
    * {
        font-synthesis: none !important;
    }
}

/* Specific overrides for common elements */
body, 
h1, h2, h3, h4, h5, h6,
p, span, div,
input, textarea, select, button,
table, th, td,
.quote-table,
.form-control,
.btn {
    font-family: Arial, sans-serif !important;
}

/* Allow icon fonts (Font Awesome) to override the Arial lock */
.fa,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands,
.fas,
.far,
.fal,
.fad,
.fab,
.fat {
    font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
    font-weight: var(--fa-style, 900) !important;
    font-style: normal !important;
}

/* Ensure print media also uses Arial while preserving icon fonts */
@media print {
    * {
        font-family: Arial, sans-serif !important;
    }

    .fa,
    .fa-solid,
    .fa-regular,
    .fa-light,
    .fa-thin,
    .fa-duotone,
    .fa-brands,
    .fas,
    .far,
    .fal,
    .fad,
    .fab,
    .fat {
        font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
        font-weight: var(--fa-style, 900) !important;
        font-style: normal !important;
    }
}
