/* Generated by script */
@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-RD-UI-FD-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: aliceblue;
    direction: rtl; /* برای جهت‌دهی کلی RTL */
    text-align: right; /* برای تراز راست متن */
}

.card-offline-body {
    font-family: 'Vazirmatn', Tahoma, Arial;
    background: #f8f9fa;
    color: #222;
    padding: 30px;
    text-align: center
}

.card-offline {
    max-width: 680px;
    margin: 40px auto;
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06)
}

table.dataTable td, table.dataTable th {
    text-align: center;
}

h1, h2, h3, h4, h5, h6, .datepicker-plot-area .datepicker-day-view .table-days td span, .datepicker-plot-area .datepicker-year-view .year-item, .datepicker-plot-area .datepicker-month-view .month-item, button, input, optgroup, select, textarea, .datepicker-plot-area .toolbox, .datepicker-plot-area .datepicker-navigator .pwt-btn-switch, .datepicker-plot-area .datepicker-day-view .month-grid-box .header .header-row-cell {
    font-family: 'Vazirmatn', sans-serif;
}

.card-header {
    text-align: center;
}

.table-responsive {
    overflow-x: auto; /* برای جداول روی موبایل */
}

.dataTables_wrapper .dataTables_filter {
    text-align: left; /* فیلتر جستجو به سمت چپ منتقل شود */
}

.dataTables_wrapper .dataTables_info {
    text-align: right; /* اطلاعات صفحه بندی به سمت راست */
}

.dataTables_wrapper .dataTables_paginate {
    text-align: left; /* دکمه‌های صفحه بندی به سمت چپ */
}

.dataTables_wrapper .dataTables_length {
    text-align: right; /* تعداد نمایش سطرها به سمت راست */
}

.dataTables_wrapper .dataTables_filter input {
    margin-right: 0.5em;
    margin-left: 0; /* برای فاصله درست در RTL */
}

/* SweetAlert2 custom styling for RTL if needed */
.swal2-container {
    direction: rtl;
}

.swal2-title, .swal2-content {
    text-align: center;
}

.tox-promotion {
    display: none;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
    margin: 0 0 0 0.25rem !important;
}

.badge {
    box-shadow: 0px 0px 2px black;
    border: 3px solid aliceblue;
    padding: 7px;
    font-size: 0.8rem;
    border-radius: 25px;
}

.post-view-thumbnail {
    /* تنظیم حداکثر عرض برای جلوگیری از بزرگ شدن بیش از حد */
    max-width: 500px;
    width: 100%; /* تصویر همیشه عرض کامل محفظه خود را می‌گیرد تا زمانی که به max-width برسد */
    height: auto; /* حفظ نسبت تصویر */
    display: block; /* برای اینکه margin auto کار کند */
    margin: 0 auto; /* برای وسط چین کردن تصویر در مرکز صفحه */
    border-bottom: 1px solid #ddd;
    border-radius: 5px; /* کمی گرد کردن لبه‌ها برای زیبایی */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* اضافه کردن سایه برای برجسته‌سازی */
}

li.list-group-item > a {
    text-decoration: auto;
}

/* استایل برای بردکرامب */
.custom-breadcrumb {
    background-color: white; /* رنگ پس‌زمینه */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.05);
}

.custom-breadcrumb .breadcrumb-item {
    font-size: 1rem;
    display: inline-block;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' fill='currentColor' class='bi bi-chevron-left' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #6c757d; /* رنگ متن برای عنصر فعال */
}

.custom-breadcrumb .breadcrumb-item a {
    color: #007bff; /* رنگ لینک‌ها */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #0056b3; /* رنگ لینک‌ها هنگام هاور */
}

/* Custom File Input Styles */
.custom-file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-file-input {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.custom-file-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.custom-file-label .file-name-display {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.custom-file-label .select-button {
    background-color: #007bff;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.2rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear, .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    left: 1rem;
    right: auto;
}

.group-tree-root {
    padding-right: 0;
}

.group-tree {
    padding-right: 20px;
    position: relative;
}

.group-tree .group-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    border-right: 1px dashed #ccc;
    z-index: 1;
}

.group-tree .group-item:last-child::before {
    height: 15px; /* ارتفاع خط عمودی آخر */
}

.group-tree .group-item .group-line {
    position: absolute;
    top: 15px;
    right: 0;
    width: 20px;
    border-top: 1px dashed #ccc;
    z-index: 2;
}

.group-tree .group-item.last > .group-line {
    border-top: none; /* خط افقی برای آیتم آخر */
}

.group-tree .group-item .fas {
    margin-left: 5px;
}

.dropdown-menu {
    text-align: right;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -6px;
    margin-left: -1px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

@media screen and (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        top: 0;
        right: auto;
        left: 100%;
        margin-top: 0;
        margin-left: 0;
    }
}

.text-center-middle {
    text-align: center; /* وسط‌چین افقی */
    vertical-align: middle; /* وسط‌چین عمودی */
}

.offcanvas a[aria-expanded="true"] i.fas.fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.25s ease;
}

.offcanvas a[aria-expanded="false"] i.fas.fa-chevron-down {
    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

/* همیشه دکمه همبرگر نشان داده شود */
.navbar .navbar-toggler {
    display: block !important;
}

.custom-file-input1 {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

i.fas.fa-folder.text-warning {
    cursor: pointer;
}

.table tbody tr.group-total td {
    background: #dddddd;
    font-weight: 600;
}

/* ریسپانسیو جزئیات */
#evaluation-report-content .table td,
#evaluation-report-content .table th {
    vertical-align: middle;
}

.accordion-item {
    margin: 10px 0;
}

.accordion-header {
    border: 1px solid #959494;
    border-radius: 5px;
}

.check-cursor {
    cursor: pointer;
}

span.toggle-group {
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
    font-size: 2rem;
    display: inline-block;
    width: 25px;
    text-align: center;
    line-height: 1.5rem;
}

.cpointer {
    cursor: pointer;
}

i.fas.fa-folder {
    font-size: 1.2rem;
}

/* پدر سطح اول */
.group-tree-root > li {
    background: #f1f8ff; /* آبی روشن */
    border: 1px solid #cce5ff;
    border-radius: 6px;
    margin-bottom: 6px;
    padding: 6px 8px;
}

/* فولدرهای سطح دوم و بالاتر */
.group-tree-root li ul.children li > label i.fas.fa-folder,
.group-tree-root li ul.children li > a i.fas.fa-folder {
    color: #fd7e14; /* نارنجی */
    font-weight: normal;
}

/* کارت‌های داشبورد */
.card-dashboard {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-dashboard:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* متن کارت‌ها */
.card-dashboard h6 {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* آیکون‌ها */
.card-dashboard i {
    transition: all 0.3s ease;
}

.card-dashboard:hover i {
    color: #000; /* یا میتونی رنگ مخصوص هر کارت بدی */
}

.d-flex.flex-column.small.mt-2 {
    text-align: right;
}

.container-page {
    text-align: center;
    background-color: #fff;
    padding: 40px 60px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

a.container-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    padding: 10px 20px;
    border-radius: 5px;
}

a.container-link:hover {
    background-color: #0056b3;
}

.container-h1 {
    font-size: 80px;
    margin: 0;
    color: #dc3545;
}

.container-h2 {
    font-size: 24px;
    margin: 20px 0;
}

.container-body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.dashboard-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex: 1;
    position: relative;
    text-align: center;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.dashboard-box:hover {
    transform: translateY(-3px);
}

.dashboard-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.dashboard-box .count {
    font-size: 28px;
    font-weight: bold;
    color: #444;
}

.badge-dash {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    padding: 6px 10px;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}