﻿
.my-box {
    border: 1px dashed #bbbaba;
    border-radius: 8px;
    /*border: 1px dashed #e6e6e8;*/
    padding: 1rem;
    cursor: pointer;
}

    .my-box.active {
        border: 1px solid #e6e6e8 !important;
        border-color: var(--bs-primary) !important;
        box-shadow: 0 -2px 0 #e79031 inset;
    }


    .my-box:hover {
        border-color: #a5a5a5; /* کمی تیره‌تر از قبل */
        background-color: #fafafa; /* روشن‌تر */
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }








/*
.nav-tabs.quick-nav-tabs {
    border: 0 !important;
    overflow-x: auto
}

    .nav-tabs.quick-nav-tabs .nav-link {
        border: 1px dashed #e6e6e8
    }

        .nav-tabs.quick-nav-tabs .nav-link.active {
            border: 1px solid #e6e6e8
        }

@media(min-width: 768px) {
    .nav-tabs.quick-nav-tabs .nav-link {
        height: 100px !important;
        width: 100px !important;
        border-radius: .375rem
    }
}

@media(max-width: 767.98px) {
    .nav-tabs.quick-nav-tabs .nav-link {
        border: 0 !important;
        padding: 0
    }
}

.nav-tabs.quick-nav-tabs .nav-link.active {
    border-color: #e79031;
    box-shadow: none !important
}

    .nav-tabs.quick-nav-tabs .nav-link.active .badge {
        background-color: rgba(115,103,240,.16) !important;
        color: #e79031 !important
    }

@media(max-width: 767.98px) {
    .nav-tabs.quick-nav-tabs .nav-link .tab-widget-title {
        display: none
    }
}

*/



/* خود باکس‌ها – شبیه کارت‌های گزارشات روزانه */
/*.quick-box {
    border: 1px solid #e6e6e8;
    border-radius: 0.75rem;
    background-color: #ffffff;
    padding: 1.1rem 1.4rem;
    min-height: 86px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}*/

    /* افکت هاور مثل تصویر */
    /*.quick-box:hover {
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
        border-color: #c7d2fe;
        transform: translateY(-2px);
    }*/

/* نقطه‌ی کوچک بالای هر باکس */
/*.quick-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: #111827;
}*/

/* متن عنوان داخل باکس */
/*.quick-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444050;
}*/

/* آیکن سمت چپ – دایره رنگی مثل تصویر */
/*.quick-box .badge {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    background-color: rgba(115, 103, 240, 0.08);*/ /* رنگ ملایم */
/*}*/

/* اگر خواستی در هاور آیکن هم پررنگ‌تر شود */
/*.quick-box:hover .badge {
    background-color: rgba(115, 103, 240, 0.16);
}*/

/* لینک‌ها مثل متن عادی باشند */
/*.quick-box a,
.quick-box .quick-title {
    text-decoration: none;
}*/

     
            
            /* به UL اجازه بدهد ردیف جدید بسازد */
        /*.quick-access {
    gap: 16px;
    display: flex;
    flex-wrap: wrap;
}*/
        /* هر کارت */
        /*.quick-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    min-width: 180px;
    min-height: 110px;
    background: #fff !important;*/
        /* حذف استایل تب‌های Vuexy */
        /*color: inherit !important;
    box-shadow: none !important;
}*/
        /* Hover کارت */
        /*.quick-card:hover {
        border-color: #c7d2fe !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
        transform: translateY(-2px);
    }*/
        /* حذف استایل active تب */
        /*.quick-card.active {
        background: #fff !important;
        border-color: #e5e7eb !important;
        box-shadow: none !important;
    }*/
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

















        
        
 .icon-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }



    .img-container {
        max-height: 70vh;
        max-width: 100%;
        overflow: auto;
        text-align: center;
    }

    .img-viewer {
        display: inline-block;
        transform-origin: center center;
        user-select: none;
    }






























    /* لینک زیرمنو نسبی باشد */
    .bg-menu-theme .menu-sub > .menu-item > .menu-link {
        position: relative !important;
    }

        .bg-menu-theme .menu-sub > .menu-item > .menu-link:before {
            /*content: "";*/ /* پیشفرض دایره*/
            content: "" !important; /*فلش چپ*/
            /*content: "\ea5f" !important;*/ /* نمونه: کد گلیف یک فلش چپ در Tabler */
            /*transform: translateY(-50%) rotate(90deg);*/ /* ← این جهتش را چپ می‌کند */
            font-family: "tabler-icons" !important;
            position: absolute !important;
            font-size: .9rem !important;
            font-weight: bold !important;
            /*font-weight: normal !important;*/
            /*display: block !important;*/
            /*left: 1.25rem !important;*/ /* یا همونی که تو قالب خودت هست */
            /*top: 50% !important;*/
            color: aquamarine !important;
        }

        /*.bg-menu-theme .menu-inner .menu-sub .menu-item:not(.active) > .menu-link::before {
    color: rgb(28 54 131) !important;
}
*/

        /*.bg-menu-theme .menu-inner .menu-sub .menu-item:not(.active) > .menu-link::before {
    color: rgba(225, 222, 245, .7) !important;
}

[dir=rtl] .bg-menu-theme.menu-vertical .menu-sub > .menu-item > .menu-link:before {
    right: 1.1rem;
    left: inherit;
}

.bg-menu-theme.menu-vertical .menu-sub > .menu-item > .menu-link:before {
    left: 1.1rem;
}*/




        /* 2) اگر لینک کلاس has-icon دارد → آیکن پیش‌فرض را بردار */
        .bg-menu-theme .menu-sub > .menu-item > .menu-link.has-icon::before {
            content: none !important;
        }

    /* 3) قانون قالب که آیکن زیرمنو را مخفی می‌کند را Override کن */
    .bg-menu-theme .menu-sub .menu-link.has-icon .menu-icon {
        content: none !important;
        display: inline-flex !important;
        position: absolute;
        right: 0.75rem; /* دقیقا مثل before */
        left: inherit;
        justify-content: center;
        font-size: 1.2rem;
        /*color: rgb(70 107 216) !important;*/
        color: var(--bs-primary) !important;
        /* اگر RTL هستی: آیکن سمت چپ متن باشه */
        margin-right: 0;
    }

















    /* هدر پنل وقتی بسته است */
.mud-expand-panel:not(.mud-panel-expanded) .mud-expand-panel-header {
    background-color: #f3f3f3;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 1px 8px;
    min-height: 45px;
}

        /* هاور پنل بسته */
    .mud-expand-panel:not(.mud-panel-expanded) .mud-expand-panel-header:hover {
        background-color: #efefef;
        border: 1px solid #d9d9d9;
        cursor: pointer;
    }

    /* هدر پنل وقتی باز است */
.mud-expand-panel.mud-panel-expanded .mud-expand-panel-header {
    background-color: #f3f3ff;
    border: 1px solid #e0e0ff;
    border-radius: 6px;
    padding: 1px 8px;
    min-height: 45px;
}

    /* هاور پنل باز */
    /*    .mud-expand-panel.mud-panel-expanded .mud-expand-panel-header:hover {
        background-color: #e0dfff;
        border: 1px solid #c8c6ff;
        cursor: pointer;
    }*/








    .Message-subject {
        font-size: 14px;
        font-weight: 600;
        color: #0d47a1;
        line-height: 2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.1s ease;
    }

        .Message-subject:hover {
            color: #1976d2;
            transform: translateX(-2px);
        }



    .Message-body2 {
        font-size: 13px;
        color: #666;
        line-height: 1.7;
        margin-top: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* فقط دو خط نمایش داده می‌شود */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        /*max-width: 240px;*/ /* 🔥 حتماً عرض مشخص کن */
        transition: color 0.2s ease;
    }

    .list-group-item:hover .Message-body2 {
        color: #555; /* در حالت هاور کمی پررنگ‌تر شود */
    }


    .news-thumb {
        width: 100px;
        height: 100px;
        border-radius: 6px;
        overflow: hidden;
    }

        .news-thumb .news-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #e7e7e7; /* برای خالی‌ها زمینه روشن بده */
        }






    .Logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #ededed; /* همون خاکستری روشن پشت آیکون */
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .Logo-icon i {
            font-size: 22px; /* اندازه آیکون */
            color: gray; /* رنگ آیکون */
        }








    /* مرحله ۱: Badge را از حالت absolute MudBlazor خارج کنیم */
    .mud-nav-link .mud-badge.mud-badge-top.right {
        position: static !important;
        inset: auto !important;
    }

    /* مرحله ۲: متن NavLink را تبدیل به flex-row کنیم */
    .mud-nav-link-text {
        display: flex !important;
        align-items: center !important;
        gap: 6px;
        white-space: nowrap;
    }

        /* مرحله ۳: اجازه بده Badge کنار متن قرار بگیرد */
        .mud-nav-link-text .mud-badge-root {
            margin-inline-start: 6px;
        }

    .mud-badge-root .mud-badge-wrapper.mud-badge-top.right {
        justify-content: flex-start;
    }

    .mud-badge-root .mud-badge-wrapper.mud-badge-top {
        align-items: center !important;
    }

    .mud-nav-link .mud-badge-root {
        margin-left: 8px;
    }


    .category-card {
        border-radius: 8px;
    }

    .category-title {
        font-weight: 500;
    }

    .category-card .mud-nav-link-icon {
        font-size: 20px !important;
        fill: gray !important;
    }

    .category-card .mud-nav-link {
        padding: 8px 3px 8px 16px;
    }


    /* فونت پیش‌فرض برای آیتم‌ها، مشابه active */
    .mud-nav-link .mud-typography {
        font-size: 0.85rem !important;
    }

    /* حالت انتخاب‌شده */
    .active-nav {
        background-color: rgb(89 74 226 / 10%) !important;
        /*var(--mud-palette-primary-hover) !important;*/ /* پس‌زمینه آبی روشن */
        border-right: 2px solid var(--mud-palette-primary) !important; /* خط آبی سمت راست (برای RTL) */
        /*border-radius: 6px;*/
    }

        /* رنگ آیکون در حالت فعال */
        .active-nav .mud-nav-link-icon {
            fill: var(--mud-palette-primary) !important;
        }

        /* رنگ متن */
        .active-nav .mud-typography {
            color: var(--mud-palette-primary) !important;
            font-size: 0.85rem;
        }

        /* Badge در حالت فعال */
        .active-nav .mud-badge {
            background-color: var(--mud-palette-primary) !important;
            color: white !important;
        }

    /* چیدمان درست متن + Badge در یک ردیف */
    .mud-nav-link .mud-stack {
        width: 100%;
    }

    .mud-badge.mud-badge-default {
        color: rgb(255 255 255);
        background-color: #c9c9c9;
    }

    /*mud-nav-link:focus:not(.mud-nav-link-disabled) {
    background-color: var(--mud-palette-action-default-hover);
}*/



















    /* والد باید position relative و overflow visible داشته باشد */
    .position-relative {
        display: inline-block;
        overflow: visible; /* مهم برای اینکه بچه حرکت کند */
    }

        /* آیکون زنگوله */
        .position-relative i.ti-bell-ringing-2 {
            display: inline-block; /* حتما inline-block */
            transform-origin: top center; /* محور چرخش بالای زنگوله */
            transition: transform 0.2s;
        }

        /* هاور روی والد */
        .position-relative:hover i.ti-bell-ringing-2 {
            animation: bell-ringing-2 1s ease-in-out forwards;
        }

    /* کی‌فریم انیمیشن زنگوله */
    /*@keyframes bell-ring {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    45% {
        transform: rotate(15deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}*/


    /* کی‌فریم انیمیشن زنگوله (حرکت بزرگ‌تر) */
    @keyframes bell-ringing-2 {
        0% {
            transform: rotate(0deg);
        }

        10% {
            transform: rotate(25deg);
        }

        20% {
            transform: rotate(-20deg);
        }

        30% {
            transform: rotate(20deg);
        }

        40% {
            transform: rotate(-15deg);
        }

        50% {
            transform: rotate(15deg);
        }

        60% {
            transform: rotate(-10deg);
        }

        70% {
            transform: rotate(10deg);
        }

        80% {
            transform: rotate(-5deg);
        }

        90% {
            transform: rotate(5deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }



    .new-notification-badge {
        position: absolute;
        /*    top: -4px;
    right: -6px;*/
        top: 5px;
        right: -7px;
        background-color: #ed1212;
        color: white;
        display: inline-flex;
        font-size: 0.70rem; /* تقریبا معادل 11px */
        font-weight: bold;
        /*width: 1.125rem;*/ /* تقریبا معادل 18px */
        width: auto;
        height: 16px;
        min-width: 16px;
        text-align: center;
        line-height: 16px;
        border-radius: 50%;
        border: white;
        align-items: center;
        justify-content: center;
        /*box-shadow: 0 0 0.125rem rgba(0,0,0,0.5);*/ /* تقریبا 2px */
        /*font-family: 'vazirfd' !important;*/
    }





























    .email-alert .mud-alert-close .mud-icon-button:hover {
        color: red !important; /* رنگ آیکن هنگام هاور */
    }

    .mud-alert-position {
        justify-content: flex-start !important;
    }
    /*.rtl-alert {
    direction: rtl;
    text-align: right;
}*/
















    .layout-navbar .navbar-dropdown .badge-notifications {
        top: 4px !important;
        inset-inline-end: 4px !important;
    }

    .badge.badge-notifications:not(.badge-dot) {
        padding: 0.085rem !important;
        font-size: 0.60rem !important;
        line-height: 0.88rem !important;
        border-radius: 50rem;
    }


    /* برای اینکه بتوانیم فلش را روی dropdown قرار دهیم */
    .layout-navbar .navbar-dropdown {
        position: relative; /* مهم */
        overflow: visible !important; /* اگر پنهان باشد فلش دیده نمی‌شود */
        border: none;
        z-index: 10;
    }

        /* فلش */
        .layout-navbar .navbar-dropdown .dropdown-menu::before {
            content: "";
            position: absolute;
            top: -8px; /* چقدر بالا بایستد */
            left: 12px; /* فاصله از سمت راست (قابل تنظیم) */

            width: 17px;
            height: 17px;
            background: #ffffff; /* رنگ پس‌زمینه (باید با رنگ منو یکی باشد) */

            transform: rotate(45deg);
            /*box-shadow: -1px -1px 10px rgba(0, 0, 0, 0.10);*/
            border-top-left-radius: 1px; /* برای اینکه لبه‌ها گرد شود مثل تصویر */
            z-index: -1; /* 🔥 این باعث میشه فلش زیر dropdown باشه */
        }







    /*.dropdown-notifications-list scrollable-container {
    background: #685dd8;*/ /* پس‌زمینه سفید */
    /*}*/

    /* استایل پایه هر پیام */
    .dropdown-notifications-item {
        background: #f6f6f6; /* پس‌زمینه سفید */
        border: 1px solid #d9d9d9 !important; /* بوردر خیلی ظریف */
        border-radius: 7px 7px !important; /* گوشه‌های گرد */
        margin: 6px 0px 0px 0px; /* فاصله بین آیتم‌ها (چپ و راست و پایین) */
        /*box-shadow: 0 1px 3px rgba(0,0,0,0.04);*/ /* سایه نرم (در حد حرفه‌ای) */
        transition: all 0.2s ease;
    }

    /* فاصله بالا برای اولین آیتم هم بزنه */
    .list-group-item:first-child {
        margin-top: 2px;
    }

    /* افکت هاور */
    .dropdown-notifications-item:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.10); /* سایه بیشتر */
        transform: translateY(-2px); /* کمی بالا بیاد (modern) */
    }

    /* حذف حاشیه پیشفرض bootstrap */
    /*.list-group-item {
    border: none !important;
}
*/

    .layout-wrapper:not(.layout-horizontal) .layout-navbar .dropdown-menu[data-bs-popper]
    Specificity: (0,5,0) {
        top: 0% !important;
    }




    /* نوار رنگی سمت راست */
    .note-accent {
        position: relative;
    }

        .note-accent::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0; /* اگر RTL هست */
            width: 4px; /* ضخامت نوار */
            background-color: var(--mud-palette-primary) !important; /* رنگ ثابت فعلاً (نارنجی) */
            border-radius: 0 10px 10px 0; /* گوشه‌ها هماهنگ با کارت */
        }




    /* فوتر سفارشی */
    .dropdown-footer-tools {
        border-top: 1px solid #e1e1e1;
        background-color: #efefefaf;
        /*font-size: 0.8rem;*/
    }

    .footer-wrapper {
        height: 40px;
    }

    /* متن بخش سمت راست */
    .dropdown-footer-tools span {
        color: #555;
    }

    /* آیکون‌ها */
    /*.footer-icon {
    color: #888;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: 0.2s;
}*/

    .footer-actions {
        display: flex;
        align-items: center;
    }

    .footer-icon {
        display: inline-flex; /* برای وسط‌چین کردن آیکن */
        align-items: center;
        justify-content: center;
        width: 30px; /* عرض ثابت دایره */
        height: 30px; /* ارتفاع ثابت دایره */
        border-radius: 50%; /* دایره کامل */
        transition: all 0.2s;
        margin-right: -10px; /* یا margin-left در RTL */
    }

        .footer-icon:hover {
            background-color: #d3d3d3; /* بک‌گراند روی هاور */
            color: #000; /* رنگ آیکن تیره‌تر */
            cursor: pointer;
        }


    /*
    .footer-icon:hover {
        background-color: #6a11cb;
        color: #333;
    }*/


    .notifications-box {
        max-height: 300px;
        overflow-y: auto;
        direction: rtl;
    }

    .list-group-item {
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .list-group-item:hover {
            background-color: #f5f5f9;
        }

        .list-group-item .small {
            font-weight: 600;
        }












    /* 🔸 پیام نخوانده */
    .msg-unread {
        background-color: #F9F6FF !important; /* بنفش خیلی روشن */
        /*border-left: 3px solid #7367F0 !important;*/ /* نوار کناری سمت راست  */
        border: 1px solid #E0D9FF !important;
        transition: all 0.25s ease-in-out;
    }

        .msg-unread::after {
            background-color: var(--accent-color) !important; /* بنفش برند */
        }

        /* ✨ افکت hover */
        .msg-unread:hover {
            background-color: #f2f2fb !important; /* کمی تیره‌تر از بنفش روشن */
            box-shadow: 0 4px 12px rgba(115, 103, 240, 0.15);
            transform: translateY(-2px);
        }


    /* 🔹 پیام خوانده‌شده */
    .msg-read {
        background-color: #F8F8F8 !important; /* پس‌زمینه خنثی Vuexy */
        /*border-left: 3px solid #BDBDBD !important;*/ /* نوار کناری سمت راست  */
        border: 1px solid #E5E5E5 !important;
        opacity: 0.95;
        transition: all 0.25s ease-in-out;
    }

        .msg-read::after {
            background-color: var(--accent-color) !important; /* خاکستری ملایم */
        }

        .msg-read:hover {
            background-color: #f3f3f3 !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transform: translateY(-2px);
        }



    /* 🟠 hover روی هر پیام */
    /*.dropdown-notifications-item:hover {
    background-color: #f0f4f8 !important;
}*/








    /* ظاهر کلی نقطه وضعیت */
    .dot {
        display: inline-block;
        margin: 0;
        padding: 0;
        width: .5rem;
        height: .5rem;
        border-radius: 50%;
        vertical-align: middle;
        transition: all 0.3s ease-in-out;
    }
        /* افکت هاور */
        .dot:hover {
            transform: scale(1.3); /* بزرگ‌تر شدن */
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); /* کمی سایه نرم */
        }



    /* 🔴 پیام نخوانده */
    .dot-unread {
        background-color: var(--bs-secondary) !important;
        /*box-shadow: 0 0 6px rgba(255, 159, 67, 0.6);*/
    }


    /* 🟢 پیام خوانده‌شده */
    .dot-read {
        background-color: #BDBDBD; /* خاکستری ملایم */
        /*background-color: #4caf50;*/ /* سبز ملایم */
        box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
        opacity: 0.7;
    }



    /*  آیکون تیک */
    .notif-status-dot i {
        transition: 0.2s ease;
    }

    .notif-status-dot:hover i {
        transform: scale(1.1); /* کمی بزرگ‌تر */
        color: var(--mud-palette-primary) !important; /* رنگ آبی مثل MudBlazor */
        opacity: 0.9;
    }



    /* ❌ آیکون حذف */
    .notif-action-delete {
        color: gray;
        transition: all 0.25s ease-in-out;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* 🟥 افکت hover روی حذف */
        .notif-action-delete:hover {
            background-color: rgb(19 3 3 / 9%);
            color: red;
            padding: 0;
            transform: scale(1.1);
            /*box-shadow: 0 0 6px rgba(211, 47, 47, 0.4);*/
        }


    /* پنهان‌کردن دکمه حذف در حالت عادی */
    .notif-action-delete {
        opacity: 0;
        visibility: hidden;
    }

    /* نمایش دکمه هنگام hover روی آیتم پیام */
    /*.dropdown-notifications-item:hover .notif-action-delete {
    opacity: 1;
    visibility: visible;
    transform: scale(1.1);
}*/

    .msg-read .notif-action-delete {
        opacity: 1;
        visibility: visible;
    }


    /*پدینگ دور هر اعلان*/
    .layout-navbar .navbar-dropdown.dropdown-notifications .dropdown-notifications-list .dropdown-notifications-item {
        padding: .75rem 1rem .25rem 1rem;
        cursor: pointer;
    }





    .Message-title {
        font-size: 12px;
        font-weight: 600;
        color: #0d47a1;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.1s ease;
    }

        .Message-title:hover {
            color: #1976d2;
            transform: translateX(-2px);
        }

        /* 🔹 انیمیشن حرکت زیرنویسی فقط موقع hover */
        .Message-title:hover {
            animation: scrollText 9s linear infinite;
        }

    /* 🔸 تعریف انیمیشن */
    @keyframes scrollText {
        0% {
            text-indent: 0;
        }

        100% {
            text-indent: -100%;
        }
    }

    /*.text-body {
    --bs-text-opacity: 1;
    color: #6d6b77 !important;
}*/

    .Message-body {
        font-size: 12px;
        color: #666;
        line-height: 1.5;
        margin-top: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* فقط دو خط نمایش داده می‌شود */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        /*max-width: 240px;*/ /* 🔥 حتماً عرض مشخص کن */
        transition: color 0.2s ease;
    }

    .list-group-item:hover .Message-body {
        color: #555; /* در حالت هاور کمی پررنگ‌تر شود */
    }

































    .my-Dialog.mud-dialog {
        border-radius: 8px !important;
    }

        .my-Dialog.mud-dialog .mud-dialog-title {
            border-bottom: 2px solid #8d8d8ede !important;/*فاصله بین هدر یا تایتل دیالوگ با بدنه*/
            padding: 7px !important;
            background-color: #e9e7e7 !important;
        }

            /* هدف‌گذاری دکمه ضربدر در دیالوگ با کلاس my-Dialog */
        .my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
            right: unset !important; /* برای حذف موقعیت پیش‌فرض */
            left: 8px !important; /* تنظیم موقعیت دکمه ضربدر از سمت چپ */
            padding: 3px !important; /* فاصله داخلی دکمه */
            top: 3px !important; /* فاصله دکمه از بالا */
        }

        /* تغییر سایز آیکن ضربدر */
            .my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close .mud-icon-size-medium {
                font-size: 1.25rem !important; /* تغییر سایز آیکن */
            }

                /* حالت هاور دکمه ضربدر */
            .my-Dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close:hover {
                color: red !important; /* تغییر رنگ دکمه در هاور */
                background-color: #d9d9d9 !important; /* تغییر رنگ پس‌زمینه در هاور */
            }

.myDialog-CheangePassword.mud-dialog .mud-dialog-content {
    overflow: visible !important;
    /*max-height: none !important;*/
    /*overflow-y: hidden !important;*/ /*اسکرول عمودی*/
    /*overflow-x: hidden !important;*/ /*اسکرول افقی*/
    /*overflow: hidden !important;*/ /*اسکرول هردوطرف*/
}













    .background-features {
        /*    background: url('/assets/img/backgrounds/email-sms-marketing.jpg');
        background: url(https://leadferno.com/wp-content/uploads/email-sms-marketing-1000.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgb(0 0 0 / 2%);
    background-blend-mode: overlay;*/

        background: url('/assets/img/backgrounds/bulk-sms-banner.png');
        /*background: url(https://cdn.prod.website-files.com/63f6c457981ee7b9ec5a8e3f/649baac0eece8f112eaa1d2d_bulk-sms-banner-image.png);*/
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        background-color: rgb(0 0 0 / 2%);
        background-blend-mode: overlay;
    }








    /*.mud-chip > .mud-chip-content {
    font-size: 10px;
}*/

    .mud-chip {
        padding: 2px !important;
        margin: 4px !important;
        border-radius: 6px !important;
    }

        .mud-chip.mud-chip-size-medium {
            height: 32px !important;
            font-size: 11px !important;
            border-radius: 6px !important;
        }








    .mud-table-toolbar {
        position: sticky;
        top: 0;
        z-index: 5;
        background-color: var(--mud-palette-surface);
        padding: 8px 16px;
    }

    /* حالت عمومی (برای دسکتاپ) */
    .mud-toolbar {
        /*display: flex;
    flex-wrap: wrap;*/ /* اجازه بده عناصر در چند خط بیفتند */
        /*align-items: flex-start;*/ /* شروع از بالا */
        height: auto !important; /* ارتفاع پویا */
        min-height: 56px; /* ارتفاع پایه برای دسکتاپ */
        gap: 0.5rem; /* فاصله بین عناصر */
    }








    .mud-input-adornment-text {
        font-size: var(--mud-typography-body2-size) !important;
        font-weight: var(--mud-typography-body2-weight) !important;
        line-height: var(--mud-typography-body2-lineheight) !important;
        /*    color: gray;
*/
    }









    .news-meta {
        background-color: #eaeaea;
        border-radius: 6px;
        font-size: 13px;
        color: #666;
        padding: 10px;
        border-right: 4px solid #1976d2;
    }

    .meta-left i {
        color: #9e9e9e;
        font-size: 14px;
    }

    .publisher-info i {
        color: #9e9e9e;
        font-size: 14px;
    }

    .news-body-text {
        font-size: 13.5px !important;
        line-height: 1.8 !important;
        color: #333333ed;
        text-align: justify;
    }

    .news-detail-card {
        /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);*/
        transition: all 0.3s ease;
        border: 1px solid #e3e3e3;
        border-radius: 8px;
    }

        .news-detail-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 15px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.08);
        }











    .news-list {
        list-style: none;
    }

    .news-card {
        border: 1px dashed #bbbaba;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 10px;
        background-color: #e8e8e852;
        cursor: pointer;
        transition: all 0.25s ease-in-out;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), /* لایه نرم نزدیک کارت */
        0 6px 10px rgba(0, 0, 0, 0.08); /* سایه‌ی پخش پایین‌تر */
    }

        .news-card:hover {
            background-color: #ecf3fa; /* پس‌زمینه ملایم آبی موقع هاور */
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
            border-color: #a9c2fc;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* سایه نرم */
            transform: translateY(-3px); /* حرکت جزئی رو به بالا */
        }



    .news-title {
        font-size: 11px;
        font-weight: 600;
        color: #0d47a1;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.1s ease;
    }

        .news-title:hover {
            color: #1976d2;
            transform: translateX(-2px);
        }

        /* 🔹 انیمیشن حرکت زیرنویسی فقط موقع hover */
        .news-title:hover {
            animation: scrollText 9s linear infinite;
        }

    /* 🔸 تعریف انیمیشن */
    @keyframes scrollText {
        0% {
            text-indent: 0;
        }

        100% {
            text-indent: -100%;
        }
    }


    .news-date {
        font-size: 10px;
        color: #a9a9a9;
        text-align: left !important; /* جهت متن */
        direction: rtl !important; /* برای درست‌نمایی ساعت */
        /*display: flex;*/
        align-items: center;
        margin-top: 4px;
        /*white-space: nowrap;*/
    }


    .news-body {
        font-size: 11px;
        color: #666;
        line-height: 1.5;
        margin-top: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* فقط دو خط نمایش داده می‌شود */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.2s ease;
    }

    .news-card:hover .news-body {
        color: #555; /* در حالت هاور کمی پررنگ‌تر شود */
    }


















    .mud-table-pagination-toolbar {
        border-top: 0px solid var(--mud-palette-table-lines) !important;
        height: 52px;
        padding-right: 2px;
        padding-inline-end: 2px;
        padding-inline-start: unset;
        flex-wrap: nowrap;
    }


    /* چینش در دو سر – تعداد رکورد راست، صفحه‌بندی چپ */
    /* رفع قطع شدن خط بالای بخش پایین گرید */
    .custom-pager-content {
        border-top: 1px solid var(--mud-palette-table-lines);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 16px;
        /*box-sizing: border-box;*/
    }
    /*    .custom-pager-content .record-count {
        font-size: 0.875rem;
        color: var(--mud-palette-text-secondary);
        direction: rtl;
    }*/











    /* قابلیت تغییر اندازه برای TextArea های MudBlazor */
    .resizable-textarea textarea {
        line-height: 1.6;
        height: 246px;
        width: 1201px;
        min-height: 60px;
        min-width: 160px;
        max-width: none !important;
        resize: both !important;
        overflow: auto !important;
        max-height: none !important;
    }









    /* ساخته شده با html خودم breadcrumb */
    /*.my-breadcrumbs {
    padding: 0;
    margin: 0 0 8px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex !important;*/ /* 👈 کلید اصلی */
    /*flex-direction: row !important;*/ /* 👈 اجباری برای افقی */
    /*align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    direction: rtl;
}

.breadcrumb-item {
    display: inline-flex !important;*/ /* 👈 هر آیتم افقی */
    /*align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #555;
}

.breadcrumb-separator {
    margin: 0 4px;
    opacity: 0.6;
}


.breadcrumb-item a {
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
    transition: 0.2s;
}

    .breadcrumb-item a:hover {
        color: #0d47a1;
        text-decoration: underline;
    }*/




    /* ساخته شده با کامپوننت مودبلیزور breadcrumb */

    .my-breadcrumbs.mud-breadcrumbs {
        padding-top: 0 !important;
        /*font-size: 11px !important;*/
        /* سایز کل نوار breadcrumb */
        /*margin: 0 !important;*/ /* اگر margin هم می‌خوای حذف بشه */
    }


    /* غیرفعال بدون لینک سایز فونت آیتم‌های breadcrumb */
    .my-breadcrumbs .mud-breadcrumb-item {
        font-size: 12px !important; /* سایز تک‌تک آیتم‌ها */
    }


    /* لینک‌های فعال breadcrumb (قابل کلیک) */
    .my-breadcrumbs a {
        font-size: 12px !important; /* سایز کل نوار breadcrumb */
        /*text-decoration: none !important;*/
        /*color: blue !important;*/
    }


    /* آیکن‌های breadcrumb */
    .my-breadcrumbs .mud-icon-root {
        font-size: 18px !important;
        /*margin-left: 4px !important;*/
    }











    /*.small-font input, .small-font label, .small-font .mud-input-slot {
    font-size: 14px !important;
}
*/

    /*.small-textfield label.mud-input-label {
    font-size: 12px !important;
}*/


    .small-btn {
        font-size: 15px !important;
        padding: 5px 8px;
    }



    /* ===== فرم‌ها و ورودی‌ها ===== */
    /* لیبل بالای TextField و Select */
    .form-compact .mud-input-label {
        font-size: 14px !important;
    }

    /* مقدار تایپ‌شده یا انتخاب‌شده */
    .form-compact .mud-input-slot,
    .form-compact .mud-input-input,
    .form-compact .mud-input-root {
        font-size: 14px !important;
    }




    /* ===== MudSelect ===== */
    /* مقدار نمایش داده شده داخل Select */
    .form-compact .mud-select .mud-input-slot,
    .form-compact .mud-select .mud-input-input,
    .form-compact .mud-select .mud-input-root {
        font-size: 14px !important;
    }

    /* ===== ۷) منوی بازشونده MudSelect (حتی خارج فرم) ===== */
    .mud-popover .mud-list-item-text,
    .mud-popover .mud-list-item-text > p,
    .mud-popover .mud-list-item .mud-typography,
    .mud-popover .mud-list-item .mud-typography-body1 {
        font-size: 14px !important;
    }




    /* ===== MudSwitch ===== */
    /* فقط لیبل اصلی سوئیچ (نمایش اجباری) */
    .form-compact .mud-switch .mud-typography {
        font-size: 13px !important;
    }


    /* استایل پایه متن داخل سوئیچ */
    .mud-switch .mud-typography-caption.mycaptionswitch {
        font-size: 10px !important;
        margin-top: -8px;
        display: block;
        color: gray !important;
    }



    .form-compact .mud-switch-span {
        /*  padding-right: 3px !important;
    padding: 12px;
    width: 49px;
    height: 38px;*/
        margin-right: -10px;
        margin-left: -3px;
    }


    /* 1. ارتفاع سوئیچ را کم کن */
    .form-compact label.mud-switch {
        height: 20px !important; /* یا عدد دلخواه مثل 20px */
        margin-bottom: 8px; /* فاصله بین سوئیچ‌ها */
    }




    .status-active {
        color: #594ae2 !important; /* مثلا بنفش یا رنگ برند */ /* یا Color.Success */
        font-weight: 500; /* کمی بولدتر برای تاکید */
    }

    /* غیرفعال */
    .status-inactive {
        color: #424242 !important; /* یا Color.Error */
        font-weight: 400;
    }





    /* تغییر فونت و اندازه متن در کنار سوئیچ */
    .my-switch .mud-switch .mud-typography-body1 {
        font-size: 0.77rem !important; /* سایز متن */
        font-weight: 500 !important; /* نیمه بولد */
    }


    /* ===== MudCheckBox ===== */
    .form-compact .mud-checkbox .mud-typography {
        font-size: 14px !important;
    }







    /* تغییر فونت و سایز */
    .my-checkbox .mud-checkbox .mud-typography-body1 {
        font-size: 0.85rem !important; /* سایز متن کوچیک‌تر */
        font-weight: 500 !important; /* نیمه بولد */
    }

    /* کم کردن فاصله بین مربع و متن */
    .my-checkbox .mud-checkbox {
        gap: 4px !important; /* مقدار پیش‌فرض حدود 8px هست */
    }

    .my-checkbox .mud-icon-button {
        width: 16px !important;
        height: 16px !important;
    }




    element.style {
        /* background-color: #3F51B0; */
        color: #060606;
        /* border-bottom: 1px solid #e0e0e0; */
        border: 1px solid #c1bebe;
        border-radius: 6px;
        height: 55px;
    }





















    /* کارت کلی */
    /*.user-card {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
}
*/

    /* محتوای داخل هدر */


    /* عنوان + آیکن */
    /*.user-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}*/

    /* دکمه بستن */
    .my-card .close-btn {
        color: black !important;
        justify-content: space-between;
        transition: transform 0.2s ease-in-out;
    }

    .close-btn:hover {
        transform: scale(1.15);
    }


    /*    Style ="background-color: #3f51b5;  display: flex; color: white; border-bottom: 1px solid #e0e0e0;"
*/





    /*.mud-card-header {
    background: #ffffff;*/
    /*    border-bottom: 1px solid #685dd8;
    border-top: 1px solid #897ef5;
    border-right: 1px solid #897ef5;*/
    /*border-bottom-right-radius: 30px;
    display: flex !important;
    justify-content: space-between;
    align-items: center !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0px 12px 0 !important;
}



    .mud-card-header .mud-card-header-content {
        color: #685dd8;
        display: flex;
        align-items: center;
        justify-content: center;  
        align-items: center;*/
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);*/
    /*gap: 10px;

    }*/









    .mud-card-header {
        position: relative; /* برای pseudo-element ها */
        /*background: rgba(0,0,0,0.2);*/
        border-radius: 0 0 35px 0; /* فقط پایین راست گرد */
        display: flex !important;
        align-items: center !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0px 12px 10px 0px !important;
        overflow: hidden; /* برای مخفی کردن خطوط اضافه */
        min-height: 30px !important;
    }


        .mud-card-header .mud-card-header-content {
            color: #685dd8;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 5px !important;
        }
    /* خط بالا سمت چپ */
    /*.mud-card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;*/ /* کمتر از نصف */
    /*height: 10px;*/ /* ضخامت خط */
    /*background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 4px ), linear-gradient(to right, #685dd8, #ffffff);
        background-blend-mode: overlay;
        border-radius: 2px;
    }*/

    /* خط پایین سمت راست */
    /*.mud-card-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40%;*/ /* کمتر از نصف */
    /*height: 10px;
        background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 4px ), linear-gradient(to left, #685dd8, #ffffff);    
        background-blend-mode: overlay;
        border-radius: 2px;
    }*/

    /* اگر میخوای پترن هم باشه داخل خطوط */
    /*  .mud-card-header::before,
    .mud-card-header::after {
        background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 4px ), linear-gradient(to right, #685dd8, #ffffff);
    }*/













    /* کارت کلی */
    /*.user-card {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
}*/

    /* هدر کارت */
    /*.user-card-header {
    padding: 0;
}*/

    /* محتوای داخل هدر */
    /*.user-card-header-content {
    background: linear-gradient(to left, #3f51b5, #5c6bc0, #7986cb);*/ /* از راست به چپ */
    /*color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}*/

    /* عنوان + آیکن */
    /*.user-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}*/

    /* دکمه بستن */
    /*.close-btn {
    transition: transform 0.2s ease-in-out;
}

    .close-btn:hover {
        transform: scale(1.15);
    }*/























    /*@media (max-width: 991.98px) {*/
    /* فرم سمت راست توی موبایل/تبلت */
    /*.authentication-wrapper.authentication-cover .authentication-inner {
        height: 100vh !important;*/ /* کل ارتفاع */
    /*width: 100% !important;*/ /* کل عرض */
    /*max-width: 100% !important;*/ /* هر محدودیتی رو بشکن */
    /*margin: 0 !important;*/ /* حذف فاصله بالا/پایین */
    /*padding: 1rem !important;*/ /* کمی فاصله داخلی */
    /*display: flex;
        justify-content: flex-end;*/ /* از بالا شروع کنه   start */
    /*align-items: flex-end;*/ /* از پایین پر بشه */
    /*flex-direction: column;
    }
}*/








    /*
.login-container {
    margin: auto; 
    padding: 2rem;
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 768px) {
    .login-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;  
        border-radius: 0; 
        margin: 0;
        padding: 1.5rem;
    }
}*/


    /* حالت دسکتاپ */
    /*.authentication-inner .w-px-500 {
    max-width: 500px;
    width: 100%;
}*/

    /* حالت موبایل و تبلت */
    /*@media (max-width: 992px) {
    .authentication-inner {
        flex-direction: column;
    }

        .authentication-inner .w-px-500 {
            max-width: 100% !important;
            width: 100% !important;
            min-height: 100vh;*/ /* پر کردن ارتفاع کامل */
    /*border-radius: 0 !important;
            margin: 0 !important;
            padding: 2rem 1rem;
            box-shadow: none !important;
        }
}*/













    .mud-input > input.mud-input-root-outlined.mud-input-root-adorned-end, div.mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-end {
        font-family: 'Samim' !important;
    }

    .mud-typography-body1 {
        font-size: var(--mud-typography-body1-size);
        font-family: 'Samim' !important;
    }

    .mud-chip.mud-chip-label {
        display: flex; /* استفاده از flex برای مرتب‌سازی محتوا */
        flex-wrap: wrap; /* اجازه دادن به متن برای شکستن */
        align-items: center; /* ترتیب عمودی محتوا */
        justify-content: flex-start; /* ترتیب افقی محتوا */
        /*min-height: 48px;*/ /* حداقل ارتفاع چیپ‌ها */
        padding: 8px; /* پدینگ برای چیپ‌ها */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        max-width: 100%; /* محدود کردن عرض */
    }

    .mud-chip-content {
        display: block; /* نمایش متن به صورت بلوک برای شکستن متن */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        overflow-wrap: break-word; /* شکستن کلمات طولانی */
        text-align: center; /* مرتب‌سازی متن */
    }



    /* ChatGPT*/
    .chip-container {
        display: flex; /* استفاده از flex برای مرتب‌سازی محتوا */
        flex-wrap: wrap; /* اجازه دادن به متن برای شکستن */
        align-items: center; /* ترتیب عمودی محتوا */
        justify-content: flex-start; /* ترتیب افقی محتوا */
        /*min-height: 48px;*/ /* حداقل ارتفاع چیپ‌ها */
        padding: 8px; /* پدینگ برای چیپ‌ها */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        max-width: 100%; /* محدود کردن عرض */
    }

    .chip-text {
        display: block; /* نمایش متن به صورت بلوک برای شکستن متن */
        word-wrap: break-word; /* شکستن کلمات طولانی */
        white-space: normal; /* اجازه دادن به متن برای شکستن به خطوط متعدد */
        overflow-wrap: break-word; /* شکستن کلمات طولانی */
        text-align: center; /* مرتب‌سازی متن */
    }


    /* برای اینکه متن توضیح فقط تا یک حد مشخصی نمایش داده بشه و در صورت بلند بودن با «سه نقطه» (...) نمایش داده بشه */
    /* در صفحه knowledge2 قسمت remark */
    /*.multiline-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 3;  تعداد خطوطی که می‌خوای نمایش داده بشه 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}*/


    .multiline-ellipsis {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5em;
        max-height: 4.5em; /* line-height * line-clamp */
    }



    .custom-dialog-content .mud-dialog-actions {
        padding-top: 0px;
    }

    .custom-dialog-content .mud-dialog-title {
        padding-bottom: 0;
    }

    .custom-dialog-content .mud-dialog-content {
        padding-bottom: 0;
    }

    .bg-layout {
        background-image: url('/img/creative-flat-lay-photo-workspace-desk.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 100vh;
    }




    .compact-checkbox .mud-checkbox {
        margin: 0;
        padding: 0;
        height: 30px;
        min-height: 24px;
        font-size: 13px;
    }

    .compact-checkbox {
        margin: 0;
        padding: 0;
        line-height: 1.2;
        /*    font-size: 0.875rem;
*/ font-size: 13px;
    }

    .field-container {
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 6px;
        padding: 8px;
        /*    margin-bottom: 16px;
*/ padding-right: 20px;
    }




    .compact-radio .mud-radio {
        margin: 0px !important;
        padding: 0 !important;
        min-height: 2px !important;
        height: 2px !important;
        align-items: center !important;
    }
    /*.compact-radio .mud-radio-label {
    font-size: 0.85rem !important;
    margin: 0 !important;
    padding: 0 4px !important;
    line-height: 1.2 !important;
}
.compact-radio .mud-radio-input {
    width: 16px !important;
    height: 16px !important;
}*/




    .tight-item {
        padding-top: 4px !important;
        padding-bottom: 2px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .mud-radio {
        margin: 0 !important;
    }

        .mud-radio .mud-radio-content {
            padding-right: 4px !important;
            padding-left: 0 !important;
        }







    /*انیمیشن بزرگ و کوچک شدن*/
    /*@keyframes pulseScaleGlow {
    0%, 100% {*/
    /* opacity: 1;*/
    /*transform: scale(1);
        box-shadow: 0 0 5px rgba(211, 47, 47, 0.7);
    }

    50% {*/
    /*opacity: 0.6;*/
    /*transform: scale(1.1);
        box-shadow: 0 0 15px rgba(211, 47, 47, 1);
    }
}

.new-badge-animated {*/
    /*animation: pulseScale 2s infinite ease-in-out;*/
    /*animation: pulseScaleGlow 2s infinite ease-in-out;*/
    /*animation: pulseBlink 2s infinite;*/
    /*animation: blink 1.5s infinite alternate;*/
    /* animation-timing-function: ease-in-out; */
    /*}*/



    @keyframes continuousTilt {
        0% {
            transform: rotate(5deg);
        }

        50% {
            transform: rotate(-5deg);
        }

        100% {
            transform: rotate(5deg);
        }
    }

    /*انیمیشن چرخش به چپ و راست*/
    .tilt-once {
        position: absolute;
        top: -12%;
        left: 10px;
        background-color: #673AB7;
        color: white;
        font-size: 9px;
        padding: 1px 6px;
        border-radius: 8px;
        z-index: 1;
        animation: continuousTilt 1.5s ease-in-out;
        animation-iteration-count: 3; /* یعنی فقط 3 بار بچرخه */
    }

    /*انیمیشن چرخش به چپ و راست*/
    /*توقف بعد چند ثانیه*/
    /*.new-badge-animated {
    animation: continuousTilt 1.5s infinite ease-in-out;
}*/


    /*انیمیشن چرخش به چپ و راست*/
    /*توقف با هاور ماوس روی کلمه جدید*/
    /*.tilt-hover:hover {
    animation: continuousTilt 1.5s infinite ease-in-out;
}*/


    /*#673AB7
#388E3C
#d32f2f*/




    /* متن داخل اینپوت همچنان LTR و چپ‌چین بماند */
    .phone-ltr input {
        direction: ltr;
        text-align: left;
    }

    .phone-ltr .mud-input > input.mud-input-root-outlined.mud-input-root-adorned-start, div.mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-start {
        padding-left: 0;
        padding-inline-start: 10px;
        padding-inline-end: 14px;
    }
    /*.mud-input-root-adorned-end input {
    padding-left: 28px !important;*/ /* پیش‌فرض ~40px هست */
    /*}

.mud-input-root-adorned-end input {
    padding-right: 28px !important;*/ /* پیش‌فرض ~40px هست */
    /*}

.phone-ltr .mud-input-adornment-end {
    padding-right: -35px;

    min-width: auto !important;
}*/

    /*.phone-ltr .mud-input-adornment-end span {*/
    /*margin: 50px !important;*/
    /*padding-right: -10px !important;
}*/
    /*.phone-ltr .mud-input-slot span {
    margin: 90px !important;
    padding: 40px !important;
}*/

    /* قاب و برچسب کاملاً RTL شود */
    /*.phone-rtl .mud-input-root {
    direction: ltr;
}*/
    /* فاصله‌ی مناسب برای پیشوند +98 در شروع فیلد (سمت راست در RTL) */
    /*.phone-rtl .mud-input-adornment-start {
    margin-right: 8px !important;*/ /* در RTL سمت راست است */
    /*margin-left: 8px !important;
}

.phone-rtl .mud-input-adornment-end {
    padding-inline-start: 0 px !important;*/ /* حذف کامل فاصله سمت راست متن */
    /*padding-inline-end: 0px !important;*/ /* حذف فاصله اضافه طرف دیگه */
    /*min-width: auto !important;*/ /* پیش‌فرض حدود 32px است */
    /*}*/
    /*    .phone-rtl .mud-input-adornment-end span {
        margin: 0px !important;
        padding: 0px !important;
    }*/
    /*.phone-rtl .mud-input-slot {
    padding-inline-start: 2px !important;*/ /* حذف کامل فاصله سمت راست متن */
    /*padding-inline-end: 0px !important;*/ /* حذف فاصله اضافه طرف دیگه */
    /*min-width: auto !important;*/ /* پیش‌فرض حدود 32px است */
    /*}*/
    /*.phone-rtl .mud-input-slot span {
    margin: 0px !important;
    padding: 0px !important;
}*/
    /* فیلدِ outlined در RTL: پدینگ و برشِ لیبل را اصلاح کن */
    /*.phone-rtl .mud-input-root.mud-input-outlined .mud-input-outlined-border {
    padding-right: 12px;*/ /* به‌جای padding-left پیش‌فرض */
    /*padding-left: 14px;
}*/
    /* محل و مبدأ لیبل در حالت شناور */
    /*.phone-rtl .mud-input-label {
    right: 12px;
    left: auto;
    transform-origin: right top;
}*/
    /* خود legend (شیار کنار لیبل) را راست‌چین کن تا برش از سمت راست ایجاد شود */
    /*.phone-rtl .mud-input-root.mud-input-outlined .mud-input-outlined-border legend {
    right: 12px;
    left: auto;
}*/
    /* اگر گوشه‌های قاب از سمت چپ متفاوت بود، این دو خط کمک می‌کند یکنواخت شوند */
    /*.phone-rtl .mud-input-root.mud-input-outlined fieldset {
    border-top-right-radius: var(--mud-default-borderradius);
    border-top-left-radius: var(--mud-default-borderradius);
}*/











    /*.my-datagrid .mud-table-root,
.my-datagrid table,
.my-datagrid .mud-table {
    font-size: 11px !important;
}

.my-datagrid .mud-table-root {
    font-size: 11px !important;*/ /* سایز متن */
    /*}*/

    .my-datagrid .mud-table-cell {
        padding: 6px 8px !important; /* فاصله کمتر بین سلول‌ها */
        font-size: 0.78rem; /* تیتر سلول ها */
    }

    /*.my-datagrid .mud-table-head {
    font-size: 12px !important;*/ /* تیتر ستون‌ها */
    /*font-weight: 600;*/ /* کمی بولد برای خوانایی */
    /*}*/




    /* چک‌باکس‌های داخل MudDataGrid */
    /*.my-datagrid .mud-checkbox-input {
    width: 22px;*/ /* اندازه بزرگ‌تر از حالت پیش‌فرض 18px */
    /*height: 22px;
    accent-color: var(--mud-palette-primary);*/ /* استفاده از رنگ اصلی تم */
    /*cursor: pointer;
}*/

    /* در حالت انتخاب‌شده (checked) رنگ دلخواه */
    /*.my-datagrid .mud-checkbox-input:checked {
        accent-color: var(--mud-palette-primary);*/ /* آبی سفارشی، یا هر رنگ دلخواه */
    /*}*/

    /* اگر بخواهی آیکن SVG داخلی MudBlazor هم تغییر رنگ دهد */
    .my-datagrid .mud-checkbox svg {
        color: var(--mud-palette-primary); /* همان رنگ دلخواه */
        width: 22px;
        height: 22px;
    }

    /* چیدمان وسط‌چین در سلول‌ها */
    /*.my-datagrid .mud-table-cell .mud-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
}*/








    /* هدر ستون‌های sticky */
    .my-datagrid thead .mud-table-cell.sticky-right,
    .my-datagrid thead .mud-table-cell.sticky-left {
        background-color: #f9f9f9 !important;
        font-weight: bold;
    }

    /* ردیف‌های بدنه ستون sticky */
    .my-datagrid tbody .mud-table-cell.sticky-right,
    .my-datagrid tbody .mud-table-cell.sticky-left {
        background-color: #f9f9f9 !important;
    }




    /* ستون‌های sticky سمت راست */
    /*.my-datagrid .mud-table-cell.sticky-right {
    background-color: #fff7e6 !important;*/ /* هر رنگی دوست داری */
    /*}*/

    /* ستون‌های sticky سمت چپ */
    /*.my-datagrid .mud-table-cell.sticky-left {
    background-color: #e6f4ff !important;
}*/



    /* رنگ استیکی سمت راست */
    /*.my-datagrid .mud-table-root .mud-table-cell.sticky-right {
    background-color: #fff7e6 !important;
}*/

    /* رنگ استیکی سمت چپ */
    /*.my-datagrid .mud-table-root .mud-table-cell.sticky-left {
    background-color: #e6f4ff !important;
}*/

    /* اگر خواستی هدرها یه رنگ متفاوت داشته باشن: */
    /*.my-datagrid .mud-table-root thead .mud-table-cell.sticky-right,
.my-datagrid .mud-table-root thead .mud-table-cell.sticky-left {
    background-color: #ffe0b2 !important;
    font-weight: 600;
}*/














    /*مخفی سازی*/
    /* مخفی سازی ایکن های زیر در هدر گرید ها به صورت کامل */
    /*.compact-headers .sort-direction-icon,
.compact-headers .filter-button,
.compact-headers .drag-icon-options {
    display: none !important;
}*/




    /*آیکن سورت*/


    /*حالت 1*/
    /*فقط مخفی میشه و با هاور ماوس نشون داده میشه*/

    /*.compact-headers .sort-direction-icon {
    opacity: 0 !important;
    pointer-events: none;
}*/

    /* ۲. اگر سورت فعال شد (asc یا desc) → آیکن رو نشون بده */
    /*.compact-headers .sort-direction-icon.mud-direction-asc,
    .compact-headers .sort-direction-icon.mud-direction-desc {
        opacity: 1 !important;
        pointer-events: auto !important;
    }*/



    /*حالت 2*/
    /*به صورت کامل حذف میشه*/
    /*.compact-headers*/
    /* پیش‌فرض: آیکن سورت اصلاً وجود نداشته باشه (نه دیده بشه، نه جا بگیره) */
    .mud-data-grid .mud-table-cell .column-header .sort-direction-icon {
        display: none !important;
    }

        /* وقتی سورت فعال شد (ASC یا DESC) → دوباره مثل دکمه عادی نمایش داده‌اش کن */
        .mud-data-grid .mud-table-cell .column-header .sort-direction-icon.mud-direction-asc,
        .mud-data-grid .mud-table-cell .column-header .sort-direction-icon.mud-direction-desc {
            display: inline-flex !important; /* معادل حالت پیش‌فرض MudIconButton */
        }




    /*آیکن فیلتر*/

    /* پیش‌فرض: آیکن فیلتر اصلاً جا نگیره و دیده نشه */
    /* فیلتر – پیش‌فرض: هیچی دیده نشه، جا هم نگیره */
    .mud-data-grid .mud-table-cell .column-header .filter-button {
        display: none !important;
    }

        /* وقتی فیلتر روی ستون فعاله (کلاس filtered اضافه شده) → دکمه را نشان بده */
        .mud-data-grid .mud-table-cell .column-header .filter-button.filtered {
            display: inline-flex !important;
        }





    /*آیکن درگ اند دراپ*/

    /* آیکن جابجایی ستون (۳تا نقطه عمودی) رو کامل حذف کن */
    .mud-data-grid .mud-table-cell .column-header .drag-icon-options {
        display: none !important;
    }































    /* نوار بالای تب‌ها */
    .alltabs .mud-tabs-tabbar {
        min-height: 32px !important; /* ارتفاع کلی نوار */
        padding: 0 4px !important; /* فاصله داخلی کمتر */
    }

    /* wrapper داخلی هم ممکنه ارتفاع بده */
    .alltabs .mud-tabs-tabbar-inner,
    .alltabs .mud-tabs-tabbar-content,
    .alltabs .mud-tabs-tabbar-wrapper {
        min-height: 40px !important;
    }

    /* خود تب‌ها */
    .alltabs .mud-tab {
        padding: 0px 6px 0 4px !important; /* تب‌ها جمع‌وجورتر */
        font-size: 13px !important; /* متن کوچیک‌تر */
        min-height: 38px !important; /* ارتفاع هر تب کمتر */
        line-height: 1.2 !important;
    }

    /* تب‌ها حالت عادی */
    .alltabs .mud-tab {
        background-color: rgba(0, 0, 0, 0.08);
        color: black;
        margin-top: 4px !important; /* فاصله بین تب‌ها */
        border-radius: 6px 6px 0 0 !important;
        /*border: 1px solid #ddd !important;*/ /* بوردر ریز خاکستری */
        transition: all 0.2s ease-in-out;
        position: relative; /* لازم برای خط زیر */
    }


    .alltabs .mud-tabs-tabbar,
    .alltabs .mud-tabs-tabbar-inner {
        min-height: 36px !important; /* جلوگیری از override شدن */
        border-radius: 8px 8px 0 0 !important;
        overflow: hidden; /* خیلی مهم: باعث میشه گوشه‌ها واقعا گرد بشن */
    }

    .alltabs .mud-tabs-tabbar-wrapper {
        gap: 8px !important; /* فاصله بین تب‌ها */
    }


    /* هر تب دقیقا به اندازه متنش */
    /*.alltabs.mud-tab {
    min-width: unset !important;
    width: auto !important;
    flex: 0 0 auto !important;*/
    /* از کشیده شدن تو فلکس جلوگیری میکنه */
    /*}*/


    /* تب غیر فعال در حالت هاور */
    .alltabs.mud-tab:not(.mud-tab-active):hover {
        background-color: #e5e6ef !important;
        background-color: #f0f0f0 !important;
        color: #374151 !important;
        border-radius: 6px 6px 0px 0px !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        cursor: pointer;
        border-bottom: 2px solid rgba(0, 0, 0, 0.12) !important; /* خط زیر تب */
    }

    /* هاور روی تب فعال */
    .alltabs.mud-tab.mud-tab-active:hover {
        background-color: #eef2ff !important;
        color: #1d4ed8 !important;
        border-radius: 6px 6px 0 0 !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }



    /* تب فعال */
    .alltabs .mud-tab.mud-tab-active {
        background-color: #ffffff !important;
        color: #685dd8 !important;
        font-weight: 500 !important;
        font-size: medium;
        border: 1px solid #d8d8d8 !important;
        border-bottom: none !important; /* خط پایین تب حذف */
        border-radius: 6px 6px 0 0 !important;
        margin-bottom: -1px !important; /* بیاد روی tabbar بشینه */
        position: relative;
        z-index: 2; /* بالاتر از tabbar */
        box-shadow: none !important; /* مطمئن بشیم سایه اضافی نداره */
    }

    /* غیرفعال کردن خط رنگی MudBlazor زیر تب فعال */
    .alltabs .mud-tab-slider {
        display: none !important;
    }

    .mud-tabs.alltabs > .mud-tabs-tabbar {
        /*background: linear-gradient(to bottom, #f9fcfe 0%, #dbe7f2 100%);*/
        /*background: linear-gradient(0deg, #f9fafb 0%, #e5e9f0 100%);*/

        background-color: #f1f1f2b2 !important;
        background-color: #e9edfa !important;
        background-color: #ffffff !important;
        /*    border-bottom: 1px solid #ddd !important; */
        min-height: 36px;
        position: relative;
        z-index: 1;
    }


















































    /* دیالوگ مدرن */
    .modern-dialog {
        border-radius: 9px !important;
        overflow: hidden;
        max-width: 500px !important; /* حداکثر عرض */
        margin: auto; /* وسط چین */
        box-shadow: 0 12px 18px rgba(0,0,0,0.2) !important;
        /*animation: fadeInScale 0.3s ease-out;*/
    }




        /*.modern-dialog {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
*/

        /*.modern-dialog {
    animation: elasticPop 0.65s cubic-bezier(0.42, 0, 0.58, 1);
}

@keyframes elasticPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}*/






        /* محتوای دیالوگ */
        .modern-dialog .mud-dialog-content {
            padding: 2px 16px !important; /* کمتر از مقدار پیش‌فرض */
            font-size: 0.95rem;
            color: var(--mud-palette-text-primary);
            line-height: 1.6;
            margin: 0 !important;
            min-height: unset !important; /* جلوگیری از ارتفاع پیش‌فرض */
            display: inline-block; /* ارتفاع به اندازه متن */
            align-items: center; /* عمودی وسط */
            gap: 10px; /* فاصله بین آیکن و متن */
        }


        /* محتوای دیالوگ با آیکن */
        .modern-dialog .dialog-body {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 4px 15px;
        }

        .modern-dialog .dialog-body-icon {
            font-size: 2.2rem;
            flex-shrink: 0;
        }

        .modern-dialog.dialog-body-text {
            font-size: 0.95rem;
            line-height: 1.5;
            color: var(--mud-palette-text-primary);
        }





        /* دکمه‌ها */
        /* بخش دکمه‌ها */
        .modern-dialog .mud-dialog-actions {
            justify-content: center;
            gap: 8px;
            padding: 6px 2px !important;
            background: #efefef;
            border-top: 1px solid var(--bs-gray-200);
            border-top: 1px solid #ddd;
            position: relative;
            overflow: hidden;
        }

            /* پس‌زمینه هاشوری متحرک */
            .modern-dialog .mud-dialog-actions::before {
                content: "";
                position: absolute;
                inset: 0;
                background: repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 4px, transparent 4px, transparent 10px );
                /*background: repeating-linear-gradient(135deg, rgba(33,150,243,0.05) 0, rgba(33,150,243,0.05) 4px, transparent 4px, transparent 10px);*/
                background-size: 30px 30px;
                animation: stripeMove 3s linear infinite;
                z-index: 0;
            }

            /* دکمه‌ها رو بیار بالا بکگراند */
            .modern-dialog .mud-dialog-actions .mud-button-root {
                position: relative;
                z-index: 1;
            }

    /* انیمیشن حرکت هاشور */
    @keyframes stripeMove {
        0% {
            background-position: 0 0;
        }

        100% {
            background-position: 40px 0;
        }
    }















    /* دکمه تایید */
    /*.modern-dialog .mud-button-filled-success {
    border-radius: 5px;
    font-weight: bold;
}
    .modern-dialog .mud-button-filled-success:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }*/

    /* دکمه لغو */
    /*.modern-dialog .mud-button-filled-error {
    border-radius: 5px;
    font-weight: bold;
}

    .modern-dialog .mud-button-filled-error:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }*/



    .modern-dialog .mud-button-filled-success,
    .modern-dialog .mud-button-filled-error {
        border-radius: 5px;
        font-weight: bold;
        transition: all 0.2s ease-in-out;
    }

        .modern-dialog .mud-button-filled-success:hover,
        .modern-dialog .mud-button-filled-error:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }


    /* رنگ‌ها */
    .dialog-header.success {
        background: linear-gradient(135deg, #28c76f, #20b358);
    }

    .dialog-header.error {
        background: linear-gradient(135deg, #ff4c51, #d6342e);
    }

    .dialog-header.warning {
        background: linear-gradient(135deg, #ff9f43, #e6892d);
    }

    .dialog-header.info {
        background: linear-gradient(135deg, #007bff, #0056b3);
    }


    /*.dialog-header .dialog-icon {
    margin-left: 8px;
    font-size: 1.4rem;
}*/








    /* هدر دیالوگ مدرن */
    .modern-dialog .dialog-header {
        background: #fff;
        border: 1px solid #ddd !important;
        border-radius: 8px;
        padding: 8px 16px;
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: #2d2d2d;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.08);
        /*box-sizing: border-box;*/
    }


        /* نوار رنگی سمت راست */
        .modern-dialog .dialog-header::before {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            width: 6px;
            height: 100%;
            background: linear-gradient(180deg, var(--mud-palette-primary), var(--bs-indigo));
            /*background: linear-gradient(180deg, #6a11cb, #2575fc, #6a11cb);*/
            background-size: 200% 200%;
            border-radius: 0 6px 6px 0;
            animation: gradientMove 3s infinite linear;
        }


    @keyframes gradientMove {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }



    /* عنوان */
    .modern-dialog .dialog-title {
        font-size: 0.99rem;
        font-weight: bold;
        /*    font-weight: 600;
*/ color: var(--mud-palette-text-primary);
        margin: 0 !important;
        line-height: 1.4;
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: unset !important;
    }

    /* هدر تمام عرض */
    .modern-dialog .mud-dialog-title {
        margin: 0px;
        padding: 10px 18px !important;
    }



    .modern-dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close {
        right: unset !important;
        left: 22px !important;
        padding: 4px;
    }

    .modern-dialog.mud-dialog .mud-dialog-title .mud-button-close {
        top: 14px !important;
        FONT-WEIGHT: 600 !important;
        position: absolute !important;
        padding: 4px;
    }

    .modern-dialog.mud-dialog.mud-dialog-rtl .mud-dialog-title .mud-button-close:hover {
        color: red !important;
        background-color: #e9e7e7 !important;
    }



    /* آیکن کنار متن */
    /*    .modern-dialog .dialog-title svg {
        font-size: 1.4rem;
        color: var(--mud-palette-primary);
    }*/




    /*.modern-dialog {
    position: relative;*/ /* برای اینکه ::before داخل همین باکس بمونه */
    /*border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 12px 18px rgba(0,0,0,0.2) !important;
    animation: fadeInScale 0.45s ease-out;
}*/

    /* خط متحرک بالای دیالوگ */
    /*.modern-dialog::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 3px;
        width: 100%;
        background: linear-gradient(90deg, #007bff, #00c853, #ff4081, #ff9100);
        background-size: 400% 400%;
        animation: gradientMove 6s ease infinite;
        border-radius: 8px 8px 0 0;
    }*/


    /* انیمیشن حرکت رنگ */
    /*@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}*/

