﻿@font-face {
    font-family: 'Yekan';
    src: url('/Fonts/Yekan.woff') format('woff'), url('/Fonts/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── متن‌ها با فونت یکان ───────────────────────────── */
html body,
html body * {
    font-family: 'Yekan', Tahoma, 'Segoe UI', sans-serif !important;
}

/* ── آیکون‌ها و SVG ها فونت خودشان را نگه می‌دارند ────
   این قوانین specificity بالاتری از html body * دارند (کلاس / attribute بالاتر از تایپ),
   پس همیشه برنده می‌شوند و فونت آیکون (نه یکان) روی آیکون‌ها اعمال می‌شود.
   در انتهای استک 'Yekan' قرار دارد تا اگر عنصری متنی هم باشد متنش یکان بماند. */
[class*='icon'],
[class*='fa-'],
[class*='glyphicon'],
[class*='bi-'],
body i,
body svg {
    font-family: "Devexpress-Viewer-Icons", "DXIcons", "dxre-icons", "dxicons", "Font Awesome 6 Free", FontAwesome, "Glyphicons Halflings", "bootstrap-icons", 'Yekan', Tahoma, sans-serif !important;
}

/* pseudo-element آیکون‌ها همیشه فونت آیکون خودشان را می‌گیرند */
i::before,
i::after,
[class*='icon']::before,
[class*='icon']::after,
[class*='fa-']::before,
[class*='fa-']::after,
[class*='glyphicon']::before,
[class*='glyphicon']::after,
[class*='bi-']::before,
[class*='bi-']::after {
    font-family: "Devexpress-Viewer-Icons", "DXIcons", "dxre-icons", "dxicons", "Font Awesome 6 Free", FontAwesome, "Glyphicons Halflings", "bootstrap-icons", 'Yekan', Tahoma, sans-serif !important;
}