﻿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-bar {
    font-size: .9rem;
    font-weight: 600;
}

.progress {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(248, 249, 250, 0.33);
    width: 100%;
    height: 28px !important;
    border-radius: 50px !important;
    overflow: hidden;
}

    .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
}


.scrollbar-top {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    height: 20px; /* ارتفاع مشخص برای نمایش اسکرول‌بار */
}

.scrollbar-top-inner {
    height: 1px; /* برای فعال‌سازی اسکرول‌بار */
    width: 100%; /* عرض اولیه، که با JavaScript تنظیم می‌شود */
}

.rgDataDiv {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/*.rgDataDiv-10 {
    padding-bottom: 100px;
}

.rgDataDiv-15 {
    padding-bottom: 150px;
}

.rgDataDiv-20 {
    padding-bottom: 200px;
}

.rgDataDiv-25 {
    padding-bottom: 250px;
}

.rgDataDiv-30 {
    padding-bottom: 300px;
}
*/
.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);
    }



/* ======================================
   Telerik Theme
====================================== */
.RadGrid_MetroTouch {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

    /* Header */

    .RadGrid_MetroTouch .rgHeader,
    .RadGrid_MetroTouch th.rgHeader {
        font-weight: 700;
        font-size: .95rem;
    }

    /* Rows */

    .RadGrid_MetroTouch .rgRow,
    .RadGrid_MetroTouch .rgAltRow {
        transition: background-color .15s ease;
    }

        .RadGrid_MetroTouch .rgRow:hover,
        .RadGrid_MetroTouch .rgAltRow:hover {
            background-color: #f8fafc;
        }

    /* Filter Row */

    .RadGrid_MetroTouch .rgFilterRow input {
        border-radius: 8px;
    }

    /* Pager */

    .RadGrid_MetroTouch .rgPager {
        border-top: 1px solid #edf0f2;
    }

/* ===== Telerik Grid ===== */

.RadGrid_MetroTouch {
    font-size: .95rem;
}

    .RadGrid_MetroTouch .rgHeader {
        font-weight: 700 !important;
        font-size: 15px !important;
        padding: 10px 8px !important;
        background: #f8f9fa !important;
    }

    .RadGrid_MetroTouch .rgFilterRow td {
        padding: 4px !important;
    }

    .RadGrid_MetroTouch .rgFilterBox {
        height: 34px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    .RadGrid_MetroTouch .rgRow,
    .RadGrid_MetroTouch .rgAltRow {
        height: 52px;
    }

    .RadGrid_MetroTouch .rgPager {
        background: #fff !important;
    }

    .RadGrid_MetroTouch .rgRow:hover,
    .RadGrid_MetroTouch .rgAltRow:hover {
        background: #f8fafc !important;
    }



/*****************************************************
    منوهای کناری
*****************************************************/
/* ===== Sidebar ===== */
:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
    --lte-sidebar-width: 320px !important;
}

.app-sidebar {
    transition: all .3s ease;
}

.sidebar-brand {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), .08);
}

    .sidebar-brand .brand-text {
        font-size: 1.1rem;
        font-weight: 700 !important;
        letter-spacing: .5px;
    }

.app-sidebar .nav-link.active,
.app-sidebar .menu-open > .nav-link {
    box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 8px 20px rgba(0,0,0,.25);
    background: rgba(255,255,255,.02) !important;
}

/* ===== Main Links ===== */

.app-sidebar .nav-link {
    margin: 3px 8px;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .app-sidebar .nav-link:hover {
        background: rgba(var(--bs-body-color-rgb), .08);
        transform: translateX(-2px);
    }

    /* ===== Icons ===== */

    .app-sidebar .nav-link i:first-child {
        width: 22px;
        text-align: center;
        font-size: 16px;
    }

/* ===== Treeview ===== */

.app-sidebar .nav-treeview {
    margin-right: 12px;
    padding-right: 10px;
    border-right: 1px solid rgba(var(--bs-body-color-rgb), .12);
}

/* ===== Expand Arrow ===== */

.app-sidebar .nav-arrow {
    margin-right: auto;
    transition: transform .2s;
}

/* ===== Active ===== */

.app-sidebar .nav-link.active {
    background: rgba(var(--bs-primary-rgb), .15);
    color: var(--bs-primary);
    font-weight: 600;
}

/* ===== Old circle icons ===== */

.app-sidebar .fa-circle-o {
    font-size: 8px !important;
    opacity: .45;
}

/* ===== Scroll ===== */

.sidebar-wrapper {
    scrollbar-width: thin;
}
/* ===========================
   MODERN SIDEBAR - BS5 SAFE
   =========================== */

.app-sidebar {
    border-left: 1px solid rgba(var(--bs-body-color-rgb), .08);
    transition: all .25s ease;
}

/* Brand */

.sidebar-brand {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), .08);
}

    .sidebar-brand .brand-text {
        font-size: 1.15rem;
        font-weight: 700 !important;
        letter-spacing: .3px;
    }

/* Scroll */

.sidebar-wrapper {
    padding: 8px 0;
}

/* Main links */

.app-sidebar .nav-link {
    min-height: 44px;
    margin: 3px 8px;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    transition: all .18s ease;
}

    /* Hover */

    .app-sidebar .nav-link:hover {
        background: rgba(var(--bs-body-color-rgb), .08);
        transform: translateX(-3px);
    }

    /* Icons */

    .app-sidebar .nav-link i:first-child {
        width: 22px;
        text-align: center;
        margin-left: 10px;
        opacity: .9;
    }

/* Top level menu */

.sidebar-menu > .nav-item > .nav-link {
    font-weight: 600;
}

/* Tree menu */

.nav-treeview {
    margin-right: 10px;
    padding-right: 12px;
    border-right: 1px dashed rgba(var(--bs-body-color-rgb), .15);
}

    /* Nested links */

    .nav-treeview .nav-link {
        min-height: 40px;
        font-size: .95rem;
    }

/* Arrow */

.nav-arrow {
    margin-right: auto;
    opacity: .65;
    transition: .2s;
}

/* Active */

.nav-link.active,
.nav-link[aria-expanded="true"] {
    background: rgba(var(--bs-primary-rgb), .15) !important;
    color: var(--bs-primary) !important;
    font-weight: 700;
}

/* Legacy icons */

.fa-circle-o {
    font-size: 7px !important;
    opacity: .35;
}

.fa-check-square-o {
    opacity: .75;
}

/* DataList generated items */

.app-sidebar .nav-item {
    margin-bottom: 1px;
}

/* Smooth */

.app-sidebar * {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

/* Dark mode improvements */

.bg-body-dark .nav-link,
.bg-dark .nav-link {
    color: rgba(255,255,255,.9);
}

    .bg-body-dark .nav-link:hover,
    .bg-dark .nav-link:hover {
        background: rgba(255,255,255,.08);
    }

.bg-body-dark .nav-treeview,
.bg-dark .nav-treeview {
    border-right-color: rgba(255,255,255,.12);
}

/* Dashboard item */

#karDashboard {
    font-weight: 700;
    border-radius: 14px;
}

/* ==========================================
   PAIMAN MODERN SIDEBAR V2
   ========================================== */

.app-sidebar {
    backdrop-filter: blur(10px);
    transition: all .25s ease;
}

/* ---------- Brand ---------- */

.sidebar-brand {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

    .sidebar-brand .brand-text {
        font-size: 1.15rem;
        font-weight: 700 !important;
    }

/* ---------- Menu Root ---------- */

.sidebar-menu {
    padding: 8px;
}

    /* ---------- Main Items ---------- */

    .sidebar-menu > .nav-item {
        margin-bottom: 6px;
    }

        .sidebar-menu > .nav-item > .nav-link {
            min-height: 48px;
            border-radius: 14px;
            padding: 0 14px;
            display: flex;
            align-items: center;
            font-weight: 600;
            transition: all .18s ease;
        }

            .sidebar-menu > .nav-item > .nav-link:hover {
                transform: translateX(-4px);
                background: rgba(var(--bs-body-color-rgb), .08);
            }

    /* ---------- Icons ---------- */

    .sidebar-menu .nav-link i:first-child {
        width: 24px;
        text-align: center;
        margin-left: 12px;
        font-size: 16px;
    }

/* ---------- Sub Menus ---------- */

.nav-treeview {
    margin-top: 6px;
    margin-right: 18px;
    padding-right: 12px;
    border-right: 2px solid rgba(var(--bs-body-color-rgb), .10);
}

    .nav-treeview .nav-item {
        margin-bottom: 2px;
    }

    .nav-treeview .nav-link {
        min-height: 40px;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: .93rem;
        transition: .18s;
    }

        .nav-treeview .nav-link:hover {
            background: rgba(var(--bs-body-color-rgb), .06);
        }

    /* ---------- Deep Levels ---------- */

    .nav-treeview .nav-treeview {
        margin-right: 14px;
        border-right-style: dashed;
    }

/* ---------- Arrow ---------- */

.nav-arrow {
    margin-right: auto;
    opacity: .6;
    transition: .2s;
}

/* ---------- Active ---------- */

.nav-link.active {
    background: rgba(var(--bs-primary-rgb), .14) !important;
    color: var(--bs-primary) !important;
    font-weight: 700;
}

/* ---------- Old FA Icons ---------- */

.fa-circle-o {
    font-size: 6px !important;
    opacity: .25 !important;
}

.fa-check-square-o {
    opacity: .65;
}

/* ---------- Dashboard ---------- */

#karDashboard {
    border-radius: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

/* ---------- Scroll ---------- */

.sidebar-wrapper {
    scrollbar-width: thin;
}

/* ---------- Dark Theme ---------- */

.bg-body-dark .nav-link,
.bg-dark .nav-link {
    color: rgba(255,255,255,.92);
}

    .bg-body-dark .nav-link:hover,
    .bg-dark .nav-link:hover {
        background: rgba(255,255,255,.08);
    }

.bg-body-dark .nav-treeview,
.bg-dark .nav-treeview {
    border-right-color: rgba(255,255,255,.12);
}

/* ---------- Smooth ---------- */

.app-sidebar *,
.app-sidebar *::before,
.app-sidebar *::after {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
/* ===== TOP LEVEL ===== */

.sidebar-menu > .nav-item {
    margin-bottom: 8px;
}

    .sidebar-menu > .nav-item > .nav-link {
        min-height: 52px;
        border-radius: 16px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        font-weight: 600;
        position: relative;
    }

        .sidebar-menu > .nav-item > .nav-link:hover {
            transform: translateX(-4px);
            background: rgba(var(--bs-primary-rgb), .08);
        }

.nav-arrow {
    margin-right: auto;
    opacity: .55;
    transition: .25s ease;
}

.menu-open > .nav-link .nav-arrow {
    transform: rotate(-90deg);
}

.fa-circle-o {
    opacity: .4;
}

.nav-treeview {
    margin-right: 18px;
    padding-right: 14px;
    border-right: 2px solid rgba(var(--bs-primary-rgb), .15);
}

    .nav-treeview .nav-link {
        min-height: 40px;
        border-radius: 12px;
        margin-bottom: 2px;
        padding: 8px 12px;
        font-size: .95rem;
    }

        .nav-treeview .nav-link:hover {
            background: rgba(var(--bs-primary-rgb), .08);
        }

.nav-link.active {
    background: rgba(var(--bs-primary-rgb), .15) !important;
    color: var(--bs-primary) !important;
    font-weight: 700;
}

.app-footer a {
    color: inherit;
}



/* overlay */
.ultra-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* کارت */
.ultra-loader {
    width: 300px;
    padding: 35px 30px;
    border-radius: 22px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* هسته */
.ultra-core {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
}


/* حلقه دوم */
.ring2 {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 4px dashed var(--bs-primary);
    opacity: 0.4;
    animation: spinReverse 2s linear infinite;
}

/* مرکز */
.center-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-primary);
    animation: pulseGlow 1.5s infinite;
}

/* متن */
.ultra-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* progress */
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    /*margin-bottom: 10px;*/
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bs-primary), #60a5fa);
    animation: loadingBar 2.5s ease-in-out infinite;
}

/* subtitle */
.ultra-sub {
    font-size: 12px;
    color: #666;
}

/* animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes pulseGlow {
    0%,100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes loadingBar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}
