/* GatePassWeb typography is intentionally kept in one late-loaded stylesheet. */
@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn/Vazirmatn-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Estedad";
    src: url("/fonts/Estedad/Estedad-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Estedad";
    src: url("/fonts/Estedad/Estedad-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Estedad";
    src: url("/fonts/Estedad/Estedad-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Estedad";
    src: url("/fonts/Estedad/Estedad-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("/fonts/IRANSansWeb/IRANSansWeb_Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("/fonts/IRANSansWeb/IRANSansWeb.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("/fonts/IRANSansWeb/IRANSansWeb_Medium.woff2") format("woff2");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("/fonts/IRANSansWeb/IRANSansWeb_Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "YekanBakh";
    src: url("/fonts/YekanBakh/fonnts.com-YekanBakh-Regular.ttf") format("truetype");
    font-weight: 300 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "YekanBakh";
    src: url("/fonts/YekanBakh/fonnts.com-YekanBakh-Bold.ttf") format("truetype");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --gatepassweb-font: "Vazirmatn", Tahoma, Arial, sans-serif;
    --dashboard-font-family: var(--gatepassweb-font);
    --dashboard-ui-font-size: calc(.875rem * var(--dashboard-font-scale, 1));
    --dashboard-ui-small-font-size: calc(.8125rem * var(--dashboard-font-scale, 1));
    --dashboard-ui-line-height: 1.75;
}

html[data-font="estedad"] {
    --gatepassweb-font: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
}

html[data-font="iransans"] {
    --gatepassweb-font: "IRANSansWeb", "Vazirmatn", Tahoma, Arial, sans-serif;
}

html[data-font="yekanbakh"] {
    --gatepassweb-font: "YekanBakh", "Vazirmatn", Tahoma, Arial, sans-serif;
}

html[data-font="system"] {
    --gatepassweb-font: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
}

html,
body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn,
.table,
.card,
.navbar,
.dropdown-menu,
.modal,
.offcanvas,
.popover,
.tooltip,
.select2-container,
.select2-dropdown,
.swal2-popup {
    font-family: var(--gatepassweb-font) !important;
}

body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn,
.dropdown-menu,
.select2-container,
.select2-dropdown,
.table,
.modal,
.swal2-popup {
    font-size: var(--dashboard-ui-font-size);
    line-height: var(--dashboard-ui-line-height);
}

.form-control-sm,
.form-select-sm,
.btn-sm,
.small,
small,
.form-text,
.standard-grid-pager,
.pagination,
.page-link,
.badge {
    font-size: var(--dashboard-ui-small-font-size) !important;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.modal-title {
    line-height: 1.55;
}

/* Never replace glyph fonts with the Persian text font. */
.fa,
.fas,
.far,
.fab,
[class^="fa-"],
[class*=" fa-"],
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
    line-height: 1;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
}

code,
kbd,
pre,
samp {
    font-family: Consolas, "Courier New", monospace !important;
}
