/* Site-wide Vazir webfont. Files are hosted with the app (no external CDN). */
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir-300.woff2") format("woff2"),
         url("../fonts/vazir-300.woff") format("woff");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir-400.woff2") format("woff2"),
         url("../fonts/vazir-400.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir-500.woff2") format("woff2"),
         url("../fonts/vazir-500.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir-700.woff2") format("woff2"),
         url("../fonts/vazir-700.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Loaded last on the common master and the standalone print page.
   Preserve specialized icon fonts while overriding legacy Tahoma/Nazanin
   declarations, including hard-coded form and grid font shorthands. */
:root {
    --ui-font: "Vazir", Tahoma, Arial, sans-serif;
}
html,
body:not(.ui-fastreport-page),
body:not(.ui-fastreport-page) :not(svg):not(path):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.glyphicon):not(.material-icons):not([class^="fa-"]):not([class*=" fa-"]):not([class^="icon-"]):not([class*=" icon-"]) {
    font-family: var(--ui-font) !important;
}
/* FastReport generates positioned text with its own font metrics.
   Keep Vazir in the print page toolbar, without forcing it over report cells. */
body.ui-fastreport-page,
body.ui-fastreport-page .print-bar,
body.ui-fastreport-page .print-bar :not(svg):not(path):not(i) {
    font-family: var(--ui-font) !important;
}