﻿@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir/Vazir.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


body, html {
    font-family: 'Vazir', sans-serif;
    direction: rtl;
}
.mud-typography, .mud-button-label, .mud-input {
    font-family: 'Vazir', sans-serif;
}
.mud-chart
{
    display:contents;
}
.text-center
{
    text-align:center;
}
@media (max-width: 600px) {
    .mud-layout
    {
        overflow:auto;
    }
    .bottom-nav .menu-link .mud-icon-root {
        font-size: 22px !important; /* سایز کوچکتر برای موبایل */
    }

    .bottom-nav .menu-link .mud-caption {
        font-size: 0.7rem !important; /* متن کوچک‌تر */
    }

    .mud-table .mud-table-row {
        height: 36px !important; /* پیش‌فرض حدود 52px هست */
    }

    .mud-table .mud-table-cell {
        padding: 4px 5px !important;
    }
    .bt-nv .mud-nav-link
    {
        padding-left:8px;
        padding-right:8px;
    }
    .bt-nv .mud-grid-item {
        padding-left: 5px;
    }
    .mud-icon-button {
        padding: 2px !important;
        min-width: 22px !important;
        width: 22px !important;
        height: 22px !important;
    }

        .mud-icon-button svg {
            font-size: 18px !important;
        }
}
/* site.css */
.action-cell {
    text-align: left; /* یا right بسته به سلیقه */
    padding: 0 4px !important;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end; /* یا flex-start */
    align-items: center;
    gap: 4px; /* فاصله بین دکمه‌ها */
}

@media (max-width: 600px) {
    .mud-table-cell.actions-cell {
        width: 1%;
        white-space: nowrap;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 4px;
        padding-inline: 4px !important;
    }
    .action-buttons {
        justify-content: center; /* وسط بیاد تو موبایل */
        gap: 2px;
    }

    .mud-icon-button {
        width: 28px !important;
        height: 28px !important;
    }

        .mud-icon-button svg {
            font-size: 18px !important;
        }
}

/* مخصوص MudTable در حالت RTL */
.mud-table .mud-table-cell {
    justify-content: flex-start !important; /* محتوا از سمت راست شروع بشه */
    text-align: right !important;
    direction: rtl !important; /* متن راست‌چین */
}

/* برای اطمینان در حالت موبایل */
@media (max-width: 768px) {
    .mud-table .mud-table-row {
        flex-direction: row !important; /* جلوگیری از برعکس شدن ستون‌ها */
    }

    .mud-table .mud-table-cell {
        justify-content: flex-start !important;
    }

        .mud-table .mud-table-cell:last-child {
            justify-content: flex-end !important; /* دکمه‌ها بیان سمت چپ در RTL */
        }
}
