﻿a {
    text-decoration: none
}

.main-header .logo {
    width: 0 !important
}

.main-header > .navbar {
    margin-right: 0 !important
}

.app-main {
    margin-top: 60px
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 425px) {
    .mobile-only425 {
        display: block;
    }
}

@media (min-width: 425px) {
    .mobile-only425 {
        display: none;
    }
}

@media (max-width: 375px) {
    .mobile-only375 {
        display: block;
    }
}

@media (min-width: 375px) {
    .mobile-only375 {
        display: none;
    }
}

@media (max-width: 1024px) {
    .mobile-only1024 {
        display: block;
    }
}

@media (min-width: 1024px) {
    .mobile-only1024 {
        display: none;
    }
}

.nav-treeview {
    padding-right: 15px !important
}

.nav-link i {
    padding-left: 5px
}

.sidebar-wrapper .nav-link{font-weight:500!important}
/*BEGIN Lists*/
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.RadGrid {
    border-radius: 10px;
}

.RadGrid_MetroTouch, .rgPagerCell, .RadComboBox, .rcbList {
    font-family: WIranSans !important
}

/*END Lists*/

/*BEGIN Loading*/
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(248, 249, 250, 0.9);
    z-index: 99999;
}

    .loading .card {
        width: 100%;
    }

    .loading .position-absolute {
        z-index: 10; /* اطمینان از اینکه اسپینر روی متن قرار گیرد */
    }

@media (max-width: 768px) {
    .loading .card {
        margin: 10px; /* حاشیه در موبایل */
    }
}
/*END Loading*/
/*BEGIN progressBar*/
.progress {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(248, 249, 250, 0.33);
    width: 100%;
}

    .progress .card {
        width: 100%;
        /*max-width: 500px;*/ /* عرض حداکثر کارت */
    }

    .progress .position-absolute {
        z-index: 10; /* اطمینان از اینکه اسپینر روی متن قرار گیرد */
    }

@media (max-width: 768px) {
    .progress .card {
        margin: 10px; /* حاشیه در موبایل */
    }
}
/*END progressBar*/
/*BEGIN Telerik*/
.RadGrid {
    border-radius: 10px;
}

.RadGrid_MetroTouch, .rgPagerCell, .RadComboBox, .rcbList {
    font-family: WIranSans !important
}

.rgMasterTable {
    white-space: nowrap !important;
}

.warpTitle {
    white-space: pre-wrap !important;
    text-align: justify
}

.blink {
    animation: blinker 1.5s linear infinite;
}
/*RadDropDownTree*/
.rddtSlide {
    z-index: 10000001 !important
}
/*RadGrid Scroll*/
.rddtPopup {
    text-align: right !important
}

.rgDataDiv {
    overflow-x: scroll !important;
    overflow-y: hidden !important;
}

.scrollbar-top {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    height: 20px; /* ارتفاع مشخص برای نمایش اسکرول‌بار */
}

.scrollbar-top-inner {
    height: 1px; /* برای فعال‌سازی اسکرول‌بار */
    width: 100%; /* عرض اولیه، که با JavaScript تنظیم می‌شود */
}

.rgDataDiv-10 {
    padding-bottom: 100px;
}

.rgDataDiv-15 {
    padding-bottom: 150px;
}

.rgDataDiv-20 {
    padding-bottom: 200px;
}

.rgDataDiv-25 {
    padding-bottom: 250px;
}

.racList {
    direction: rtl !important;
    text-align: right !important;
}

.racInput, .racTokenList,.withoutBorder .rcbInner {
    border: none !important;
    border-style: unset !important;
}
.withoutBorder .rcbInner, .withoutBorder .rcbActionButton {
    background: no-repeat !important;
}

/*END progress*/
/*BEGIN input-group*/
.input-group-text {
    padding: 5px 9px !important
}
/*BEGIN input-group*/
/*BEGIN card*/
.card-header {
    padding: 9px 15px !important;
}
/*END card*/
/*BEGIN btn*/
/* استایل‌های پایه برای btn-app */
.btn-app {
    position: relative;
    display: inline-block;
    padding: 15px 10px;
    margin: 10px 5px;
    min-width: 80px;
    height: 70px;
    text-align: center;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: #0d6efd;
}

    /* آیکون داخل دکمه */
    .btn-app > .fa,
    .btn-app > .bi {
        font-size: 24px;
        display: block;
        margin-bottom: 5px;
    }

/* حالت‌های رنگی */
.btn-app-success {
    background-color: #e6ffe6;
    color: green;
}

.btn-app-danger {
    background-color: #ffe6e6;
    color: #cc0000;
}

.btn-app-warning {
    background-color: #ffffe6;
    color: darkorange;
}

.btn-app-info {
    background-color: #0dcaf0;
    color: #212529;
}

.btn-app-secondary {
    background-color: #f4f4f4;
    color: #666;
}

/* حالت فعال */
.btn-app.active,
.btn-app:active {
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    transform: scale(0.98);
}

/* حالت غیرفعال */
.btn-app.disabled,
.btn-app:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* 📱 واکنش‌گرا برای موبایل */
@media (max-width: 576px) {
    .btn-app {
        width: 100%;
        height: auto;
        padding: 12px;
        font-size: 16px;
        margin: 5px 0;
        border-radius: 0.5rem;
    }

        .btn-app > .fa,
        .btn-app > .bi {
            font-size: 28px;
            margin-bottom: 8px;
        }
}
/* استایل‌های پایه برای btn-social */
.btn-social {
    position: relative;
    padding-left: 44px; /* فضای کافی برای آیکون */
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
    width: fit-content; /* تنظیم عرض بر اساس محتوا */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    /* تنظیم آیکون در دکمه */
    .btn-social > :first-child {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 32px;
        line-height: 34px;
        font-size: 1.6em;
        text-align: center;
        border-right: 1px solid rgba(0, 0, 0, 0.2);
    }

    /* رنگ‌های اختصاصی برای شبکه‌های اجتماعی */
    .btn-social.btn-facebook {
        color: #fff;
        background-color: #3b5998;
        border-color: #3b5998;
    }

        .btn-social.btn-facebook:hover {
            background-color: #344e86;
            border-color: #2d4373;
        }

    .btn-social.btn-twitter {
        color: #fff;
        background-color: #1da1f2;
        border-color: #1da1f2;
    }

        .btn-social.btn-twitter:hover {
            background-color: #1a91da;
            border-color: #1687cc;
        }

    .btn-social.btn-google {
        color: #fff;
        background-color: #dd4b39;
        border-color: #dd4b39;
    }

        .btn-social.btn-google:hover {
            background-color: #c74332;
            border-color: #b93b2d;
        }

    .btn-social.btn-linkedin {
        color: #fff;
        background-color: #0077b5;
        border-color: #0077b5;
    }

        .btn-social.btn-linkedin:hover {
            background-color: #00669c;
            border-color: #005a87;
        }

    /* پشتیبانی از اندازه‌های مختلف */
    .btn-social.btn-sm {
        padding: 5px 10px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
    }

        .btn-social.btn-sm > :first-child {
            width: 28px;
            line-height: 28px;
            font-size: 1.4em;
        }

    .btn-social.btn-lg {
        padding: 10px 16px;
        font-size: 18px;
        line-height: 1.33;
        border-radius: 6px;
    }

        .btn-social.btn-lg > :first-child {
            width: 40px;
            line-height: 44px;
            font-size: 1.8em;
        }

    /* حالت غیرفعال */
    .btn-social:disabled {
        opacity: 0.65;
        pointer-events: none;
    }
/*END btn*/
/*BEGIN Background*/
/* بازسازی کلاس‌های bg-* از AdminLTE 2 */
.bg-green {
    background-color: #00a65a !important;
    color: #fff !important;
}

    .bg-green:hover {
        background-color: #008d4c !important;
    }

.bg-blue {
    background-color: #3c8dbc !important;
    color: #fff !important;
}

    .bg-blue:hover {
        background-color: #367fa9 !important;
    }

.bg-red {
    background-color: #dd4b39 !important;
    color: #fff !important;
}

    .bg-red:hover {
        background-color: #c23321 !important;
    }

.bg-yellow {
    background-color: #f39c12 !important;
    color: #fff !important;
}

    .bg-yellow:hover {
        background-color: #e08e0b !important;
    }

.bg-aqua {
    background-color: #00c0ef !important;
    color: #fff !important;
}

    .bg-aqua:hover {
        background-color: #00a7d0 !important;
    }

.bg-light-blue {
    background-color: #3c8dbc !important;
    color: #fff !important;
}

    .bg-light-blue:hover {
        background-color: #367fa9 !important;
    }

.bg-navy {
    background-color: #001f3f !important;
    color: #fff !important;
}

    .bg-navy:hover {
        background-color: #001226 !important;
    }

.bg-teal {
    background-color: #39cccc !important;
    color: #fff !important;
}

    .bg-teal:hover {
        background-color: #2cb2b2 !important;
    }

.bg-olive {
    background-color: #3d9970 !important;
    color: #fff !important;
}

    .bg-olive:hover {
        background-color: #2e7d56 !important;
    }

.bg-lime {
    background-color: #01ff70 !important;
    color: #000 !important;
}

    .bg-lime:hover {
        background-color: #00e765 !important;
    }

.bg-orange {
    background-color: #ff851b !important;
    color: #fff !important;
}

    .bg-orange:hover {
        background-color: #e76b00 !important;
    }

.bg-fuchsia {
    background-color: #f012be !important;
    color: #fff !important;
}

    .bg-fuchsia:hover {
        background-color: #d600a6 !important;
    }

.bg-purple {
    background-color: #605ca8 !important;
    color: #fff !important;
}

    .bg-purple:hover {
        background-color: #534d8f !important;
    }

.bg-maroon {
    background-color: #d81b60 !important;
    color: #fff !important;
}

    .bg-maroon:hover {
        background-color: #b91550 !important;
    }

    /* برای دکمه‌ها یا المان‌هایی که نیاز به پدینگ یا حاشیه دارند */
    .bg-green.btn,
    .bg-blue.btn,
    .bg-red.btn,
    .bg-yellow.btn,
    .bg-aqua.btn,
    .bg-light-blue.btn,
    .bg-navy.btn,
    .bg-teal.btn,
    .bg-olive.btn,
    .bg-lime.btn,
    .bg-orange.btn,
    .bg-fuchsia.btn,
    .bg-purple.btn,
    .bg-maroon.btn {
        border: 1px solid transparent;
        padding: 6px 12px;
        border-radius: 4px;
        transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    }
/*END Background*/
/*BEGIN label*/
/* استایل‌های پایه برای label */
.label {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* رنگ‌های اختصاصی برای الحاقات label */
.label-default {
    background-color: #d2d6de !important;
    color: #444 !important;
}

    .label-default:hover {
        background-color: #c1c7d1 !important;
    }

.label-primary {
    background-color: #3c8dbc !important;
    color: #fff !important;
}

    .label-primary:hover {
        background-color: #367fa9 !important;
    }

.label-success {
    background-color: #00a65a !important;
    color: #fff !important;
}

    .label-success:hover {
        background-color: #008d4c !important;
    }

.label-info {
    background-color: #00c0ef !important;
    color: #fff !important;
}

    .label-info:hover {
        background-color: #00a7d0 !important;
    }

.label-warning {
    background-color: #f39c12 !important;
    color: #fff !important;
}

    .label-warning:hover {
        background-color: #e08e0b !important;
    }

.label-danger {
    background-color: #dd4b39 !important;
    color: #fff !important;
}

    .label-danger:hover {
        background-color: #c23321 !important;
    }
/*END label*/
/*BEGIN todo-list*/
/* استایل‌های پایه برای todo-list */
.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid #d2d6de;
    border-radius: 0.25rem;
}

    .todo-list li {
        position: relative;
        padding: 10px 15px;
        border-bottom: 1px solid #f4f4f4;
        display: flex;
        align-items: center;
    }

        .todo-list li:last-child {
            border-bottom: none;
        }

    /* استایل برای چک‌باکس‌ها */
    .todo-list .icheck-primary {
        display: inline-block;
    }

        .todo-list .icheck-primary input[type="checkbox"] {
            margin: 0 5px 0 0;
            vertical-align: middle;
        }

    .todo-list .todo-list-text {
        flex-grow: 1;
    }

/* استایل برای ابزارها (edit, delete) */
.todo-list-tools {
    display: flex;
    gap: 10px;
}

    .todo-list-tools i {
        cursor: pointer;
        color: #6c757d;
    }

        .todo-list-tools i:hover {
            color: #000;
        }

/* استایل برای مرتب‌سازی */
.todo-list .sort-highlight {
    background: #f4f4f4;
    border: 1px dashed #d2d6de;
    height: 40px;
    border-radius: 0.25rem;
}

/* دسته‌های مرتب‌سازی */
.todo-list .handle {
    cursor: move;
    margin-right: 10px;
    color: #6c757d;
}
/*END todo-list*/
/*BEGIN btn-group for popup menu*/
/* شبیه‌سازی استایل‌های Bootstrap 3 برای btn-group */
.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    /*    z-index: 9999;*/
    border: none;
}

    .btn-group > a {
        display: inline-block;
        padding: 6px 12px;
        font-size: 14px;
        line-height: 1.42857143;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        cursor: pointer;
        border: none;
    }

        .btn-group > a:hover,
        .btn-group > a:focus {
            text-decoration: none;
        }

    .btn-group .btn-social {
        width: 100% !important;
        text-align: right !important;
        height: 35px;
        --bs-btn-box-shadow: inset 0
    }
/* شبیه‌سازی dropdown-menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.btn-group.open .dropdown-menu {
    display: block;
}

.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus {
        background-color: #f5f5f5;
        color: #262626;
        text-decoration: none;
    }
/* شبیه‌سازی کلاس divider */
.dropdown-menu .divider {
    height: 1px;
    margin: 9px;
    overflow: hidden;
    background-color: #e5e5e5;
    border-bottom: 1px solid #ccc;
}

/* پشتیبانی از tooltip */
[data-toggle="tooltip"] {
    position: relative;
}

    [data-toggle="tooltip"]:hover:after {
        content: attr(title);
        position: absolute;
        z-index: 1000;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 4px 8px;
        font-size: 12px;
        line-height: 1.4;
        color: #fff;
        background-color: #333;
        border-radius: 4px;
        white-space: nowrap;
    }

/* شبیه‌سازی fa-spin برای آیکون چرخان */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*END btn-group for popup menu*/
/*BEGIN Tabs*/
/* شبیه‌سازی استایل‌های Bootstrap 3 برای تب‌ها در Bootstrap 5 */
.nav-tabs {
    border-bottom: 0;
}

    .nav-tabs > li {
        margin-bottom: -1px;
        display: inline-block;
    }

        .nav-tabs > li > a {
            border: 1px solid transparent;
            border-radius: 4px 4px 0 0;
            padding: 10px 15px;
            color: #337ab7;
            text-decoration: none;
            background-color: transparent;
            position: relative;
            top: 1px;
        }

            .nav-tabs > li > a:hover,
            .nav-tabs > li > a:focus {
                border-color: #eee #eee #ddd;
                background-color: #f5f5f5;
                color: #2a6496;
            }

        .nav-tabs > li.active > a {
            color: #555;
            background-color: #fff;
            border: 1px solid #ddd;
            border-bottom-color: transparent;
            cursor: default;
        }

            .nav-tabs > li.active > a:hover,
            .nav-tabs > li.active > a:focus {
                color: #555;
                background-color: #fff;
                border: 1px solid #ddd;
                border-bottom-color: transparent;
            }

/* شبیه‌سازی tab-content و tab-pane */
.tab-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 0;
    border-radius: 0 0 4px 4px;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

    .tab-pane.fade {
        opacity: 1;
        transition: opacity 0.15s linear;
    }

        .tab-pane.fade.in {
            opacity: 1;
        }

/*END Tabs*/
/*BEGIN Timeline*/
.timeline {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
}

    .timeline:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #ddd;
        margin: 0;
        border-radius: 2px;
        left: 31px !important
    }

    .timeline::before {
        right: auto !important;
        left: 31px !important;
    }

    .timeline > li {
        position: relative;
        margin-right: 10px;
        margin-bottom: 15px
    }

        .timeline > li:before, .timeline > li:after {
            content: " ";
            display: table
        }

        .timeline > li:after {
            clear: both
        }

        .timeline > li > .timeline-item {
            -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.1);
            box-shadow: 0 1px 1px rgba(0,0,0,.1);
            border-radius: 3px;
            margin-top: 0;
            background: #fff;
            color: #444;
            margin-left: 60px;
            margin-right: 15px;
            padding: 0;
            position: relative
        }

            .timeline > li > .timeline-item > .time {
                color: #999;
                float: right;
                padding: 10px;
                font-size: 12px
            }

.timeline-header {
    direction: rtl !important
}

.timeline > li > .timeline-item > .timeline-header {
    margin: 0;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
    padding: 10px;
    font-size: 16px;
    line-height: 1.1
}

    .timeline > li > .timeline-item > .timeline-header > a {
        font-weight: 600
    }

.timeline > li > .timeline-item > .timeline-body, .timeline > li > .timeline-item > .timeline-footer {
    padding: 10px
}

.timeline > li > .fa, .timeline > li > .glyphicon, .timeline > li > .ion {
    width: 30px;
    height: 30px;
    font-size: 15px;
    line-height: 30px;
    position: absolute;
    color: #666;
    background: #d2d6de;
    border-radius: 50%;
    text-align: center;
    left: 18px;
    top: 0
}

.timeline > .time-label > span {
    font-weight: 600;
    padding: 5px;
    display: inline-block;
    background-color: #fff;
    border-radius: 4px
}

}
/*END Timeline*/
/*Begin btn-group-wrapper*/
.btn-group-wrapper {
    overflow-x: auto;
    padding: 10px;
}

.btn-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-btn {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 14px;
}

    .sf-btn i {
        margin-bottom: 5px;
    }

.btn-label {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .sf-btn {
        width: 80px;
        height: 100px;
        font-size: 12px;
    }

        .sf-btn i {
            font-size: 18px;
        }
}
/*END btn-group-wrapper*/
/*BEGIN modal responsive*/
/* Responsive Modal Fix for ModalPopupExtender */
:dir(rtl) .modal-dialog {
    max-width: 90% !important; /* مودال در موبایل 90% عرض */
    margin: 1.5rem auto !important; /* مرکز با margin */
}

:dir(rtl) .modal-content {
    width: 100%;
    overflow-y: auto; /* scroll vertical اگر محتوا زیاد باشه */
    max-height: 80vh !important; /* حداکثر ارتفاع 80% viewport */
}

:dir(rtl) .modal-header .row {
    flex-direction: row-reverse !important; /* معکوس کردن جهت row برای RTL */
}

:dir(rtl) .modal-header .col-9 {
    text-align: right !important;
}

:dir(rtl) .modal-header .col-3 {
    text-align: left !important;
}

/* موبایل (کمتر از 768px) */
@media (max-width: 767.98px) {
    :dir(rtl) .modal-dialog {
        max-width: 95% !important; /* بیشتر فضا در موبایل */
        margin: 0.5rem auto !important; /* margin کمتر */
    }

    :dir(rtl) .modal-content {
        max-height: 90vh !important; /* ارتفاع بیشتر در موبایل */
        padding: 0.5rem !important;
    }

    :dir(rtl) .modal-header .row {
        flex-wrap: nowrap !important; /* جلوگیری از wrap در موبایل */
    }

    :dir(rtl) .modal-header .col-9,
    :dir(rtl) .modal-header .col-3 {
        width: auto !important; /* خودکار تنظیم بشه */
    }
}

/* Fix برای modal_fade (زمینه) */
.modal_fade {
    background-color: rgba(0, 0, 0, 0.75) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1040 !important; /* زیر مودال */
}
/*END modal responsive*/
/*BEGIN Font management*/
/* Global Font Size Reduction for RTL */
:dir(rtl) html {
    font-size: 90% !important; /* کاهش 12.5% (از 16px به ~14px) */
}

:dir(rtl) body {
    font-size: 0.9rem !important; /* معادل 14px با base 16px */
}

/* تنظیم برای المان‌های خاص که ممکنه override بشن */
:dir(rtl) .app-header.navbar,
:dir(rtl) .main-sidebar,
:dir(rtl) .modal-content,
:dir(rtl) .RadGrid {
    font-size: inherit !important; /* inherit از parent */
    line-height: 1.4 !important; /* تنظیم line-height برای خوانایی */
}

/* تنظیم برای موبایل (اگر نیاز به تنظیم جداگانه داری) */
@media (max-width: 767.98px) {
    :dir(rtl) html {
        font-size: 85% !important; /* کمی کوچکتر در موبایل */
    }
}
/*END Font management*/


.dropdown-menu-lg {
    max-width: unset !important
}


/* برای تمام inputهای فیلتر که کلاس rfControl دارن */
.RadFilter .rfControl input,
.RadFilter .rfText.rfControl,
.rfText .rfControl input {
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    height:40px;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding:3px
}

    /* حالت فوکوس مثل form-control */
    .RadFilter .rfControl input:focus,
    .rfText .rfControl input:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
    }
