@font-face {
    font-family: "Vazirmatn";
    src: url("/vazir.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*,
body,
html,
h1,h2,h3,h4,h5,h6,
.MuiTypography-root,
.MuiButton-root,
.MuiInputBase-root,
.MuiTableCell-root,
.MuiTab-root,
.MuiBadge-root,
.MuiFormLabel-root,
.MuiMenuItem-root,
.MuiListItemText-root {
    font-family: "Vazirmatn", "Lato", sans-serif !important;
}

/* html, body {
    direction: rtl !important;
    text-align: right !important;
}

div, p, span, label {
    direction: rtl !important;
    text-align: right !important;
}

input, textarea, select {
    direction: rtl !important;
    text-align: right !important;
}

.MuiInputBase-root,
.MuiFormLabel-root,
.MuiInputLabel-root {
    direction: rtl !important;
    text-align: right !important;
}

.mantine-Input-input,
.mantine-TextInput-input,
.mantine-Select-input {
    direction: rtl !important;
    text-align: right !important;
}

.mantine-DateInput-input,
.mantine-DatePickerInput-input {
    direction: rtl !important;
    text-align: right !important;
}

table td,
table th {
    direction: rtl !important;
    text-align: right !important;
    padding: 6px 10px !important;
}

/* عنوان کارت‌ها و Dashboard title */
.Card-title,
.DashboardHeader-title,
.MuiTypography-h4,
.MuiTypography-h5,
.MuiTypography-h6 {
    direction: rtl !important;
    text-align: right !important;
}

/* منوهای popup و dropdown */
.MuiMenuItem-root,
.MuiListItemText-root {
    direction: rtl !important;
    text-align: right !important;
}

/* ردیف‌های sidebar و navigation */
.LeftNav,
.LeftNav-item,
.nav-header {
    direction: rtl !important;
    text-align: right !important;
}

/*‌ فیکس جهت فلش‌ها (چون در متابیس LTR هستند) */
.MuiSvgIcon-root {
    transform: scaleX(-1); /* آیکون برعکس */
}

/* بعضی آیکون‌ها نباید برعکس شوند → برمی‌گردانیم */
.MuiCheckbox-root .MuiSvgIcon-root,
.MuiRadio-root .MuiSvgIcon-root,
.MuiChip-deleteIcon,
.MuiAutocomplete-popupIndicator {
    transform: none !important;
}

/* مودال و پاپ‌آپ‌ها */
.Modal,
.mantine-Modal-root {
    direction: rtl !important;
    text-align: right !important;
}

/* Tabs */
.MuiTab-root {
    direction: rtl !important;
    text-align: right !important;
}

/* Tooltip ها */
.MuiTooltip-tooltip {
    direction: rtl !important;
    text-align: right !important;
}

/* Button group align */
.MuiButton-root {
    direction: rtl !important;
    text-align: center !important;
} */