/*
 * Persian Suite — Default System Font (Vazirmatn / Vazir)
 *
 * Applies local Vazirmatn (Vazir) as the default typeface across the entire PerfexCRM
 * interface: Admin area, Customer portal, Login/Auth screens, External forms, Modals,
 * Inputs/Forms, DataTables, FullCalendar, and Datepickers — regardless of active theme.
 *
 * Uses Farsi-digit cuts (vazirmatn-fd-*.woff2) in RTL mode and the variable cut
 * (vazirmatn-var.woff2) in LTR mode. Icon fonts and monospace code blocks are preserved.
 */

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

@font-face {
  font-family: "Vazir";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/vazirmatn-var.woff2") format("woff2");
}

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

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

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

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

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

:root {
  --ps-vazir-font: "Vazirmatn", "Vazir", "Inter", Tahoma, sans-serif;
  --ps-vazir-font-rtl: "Vazirmatn FD", "Vazirmatn", "Vazir", Tahoma, sans-serif;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, a, li, dt, dd, label, legend, caption,
table, th, td,
input, button, select, textarea, optgroup,
.form-control,
.btn,
.bootstrap-select,
.bootstrap-select .dropdown-toggle,
.bootstrap-select .filter-option,
.dropdown-menu,
.panel,
.modal,
.tooltip,
.popover,
.nav,
.navbar,
.sidebar,
.dataTables_wrapper,
.fc,
.xdsoft_datetimepicker,
.alert,
.label,
.badge,
.sweet-alert,
.swal2-popup,
.select2-container,
.mce-content-body {
  font-family: var(--ps-vazir-font);
}

html[dir="rtl"],
html[dir="rtl"] body,
body.rtl,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl p, body.rtl a, body.rtl li, body.rtl label, body.rtl legend,
body.rtl table, body.rtl th, body.rtl td,
body.rtl input, body.rtl button, body.rtl select, body.rtl textarea, body.rtl optgroup,
body.rtl .form-control,
body.rtl .btn,
body.rtl .bootstrap-select,
body.rtl .bootstrap-select .dropdown-toggle,
body.rtl .bootstrap-select .filter-option,
body.rtl .dropdown-menu,
body.rtl .panel,
body.rtl .modal,
body.rtl .tooltip,
body.rtl .popover,
body.rtl .nav,
body.rtl .navbar,
body.rtl .sidebar,
body.rtl .dataTables_wrapper,
body.rtl .fc,
body.rtl .xdsoft_datetimepicker,
body.rtl .alert,
body.rtl .label,
body.rtl .badge,
body.rtl .sweet-alert,
body.rtl .swal2-popup,
body.rtl .select2-container,
body.rtl .mce-content-body {
  font-family: var(--ps-vazir-font-rtl);
}

/* Preserve icon fonts */
.fa,
.fas,
.far,
.fal,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-duotone,
.fa-brands,
.fa-classic,
.glyphicon,
[class^="icon-"],
[class*=" icon-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", "Glyphicons Halflings" !important;
}

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

/* Preserve monospace blocks */
code,
pre,
kbd,
samp {
  font-family: Consolas, "Courier New", monospace;
}
