﻿/*@font-face {
    font-family: IRANYekanXBold;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/woff/IRANYekanX-Bold.woff') format('woff'), url('woff2/IRANYekanX-Bold.woff2') format('woff2');
}*/

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/woff/IRANYekanX-Regular.woff') format('woff'), url('woff2/IRANYekanX-Regular.woff2') format('woff2');
}

body {
    font-family: IRANYekanX !important;
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
}

div, ol, pre, span, ul {
    font-family: IRANYekanX !important;
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
}

option {
    font-family: Tahoma;
}

h1, h2, h3, h4, h5, h6, input, textarea {
    font-family: IRANYekanX !important;
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
}



.text-thin {
    font-weight: 100;
}

.text-light {
    font-weight: 300;
}

.text-regular {
    font-weight: normal;
}

.text-medium {
    font-weight: 500;
}

.text-bold {
    font-weight: bold;
}

.text-extrabold {
    font-weight: 800;
}

.text-black {
    font-weight: 800;
}

.text-extrablack {
    font-weight: 900;
}

.tableFix {
    white-space: nowrap;
    width: 1px;
}



.form-group {
    margin-bottom: 1rem;
}



@media screen and (max-width:640px) {
    .sw > .nav {
        flex-direction: unset !important;
        flex: unset !important;
    }
}

@media screen and (max-width:640px) {

    .sw-theme-arrows > .nav .nav-link {
        overflow: unset !important;
        margin-bottom: unset !important;
        margin-left: 30px !important;
    }
}

.sw-theme-arrows > .nav .nav-link.done {
    border-color: #50cd89 !important;
    background: #50cd89 !important;
}

    .sw-theme-arrows > .nav .nav-link.done::after {
        border-right-color: #50cd89 !important;
    }

.sw-theme-arrows > .nav .nav-link.active {
    color: #fff;
    border-color: #009ef7 !important;
    background: #009ef7 !important;
}

    .sw-theme-arrows > .nav .nav-link.active::after {
        border-right-color: #009ef7 !important;
    }

.sw-theme-arrows > .nav .nav-link.inactive {
    border-color: #e4e6ef;
    background: #e4e6ef;
}

.sw-theme-arrows > .nav .nav-link::before {
    border-right: 30px solid #f5f8fa;
}

.sw-theme-arrows > .nav .nav-link::after {
    border-right: 30px solid #e4e6ef;
}

.TransitionUnset {
    transition: unset !important;
}

    .TransitionUnset:hover {
        transition: unset !important;
    }

.sw-theme-arrows {
    border: unset !important;
}

    .sw-theme-arrows > .nav {
        border-bottom: unset !important;
    }

    .sw-theme-arrows > .tab-content > .tab-pane {
        padding: unset;
        padding-right: 0;
        padding-left: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

.vpd-icon-btn {
    padding: 0 15px !important;
}

.vpd-input-group .vpd-clear-btn {
    top: 5px !important;
    width: 50px !important;
}

.vpd-input-group input {
    line-height: 1.5 !important;
    padding: .75rem 1rem !important;
}



.table td:first-child, .table th:first-child, .table tr:first-child {
    padding-right: 0.75em;
}

.bgi-position-x-end {
    background-position-x: right;
}

.bgi-no-repeat {
    background-repeat: no-repeat;
}

.card {
    border: 0;
    box-shadow: 0 1px 1px 0 rgba(60,75,100,.14),0 2px 1px -1px rgba(60,75,100,.12),0 1px 3px 0 rgba(60,75,100,.2);
}


#InvoiceDetailsTable > thead > tr > th, #InvoiceDetailsTable > tbody > tr > td, #InvoiceDetailsTable > tfoot > tr > td {
    /*    border: 1px solid #dee2e6;
    border-bottom-color: rgb(222, 226, 230);
    padding: 0.75em;
    padding-right: 0.75em;
*/ text-align: center;
    vertical-align: middle;
}

.select2-container--bootstrap5 .select2-selection__clear {
    left: 3rem;
    right: unset !important;
}

.vpd-input-group .vpd-clear-btn {
    /*   position: absolute;
    left: 0;
    top: 0;
    line-height: 52px !important;
    width: 30px;
    cursor: pointer;
    text-align: center;
    font-style: normal;
    font-family: monospace,sans-serif;
    opacity: .4;*/
}

.form-control.disabled {
    background-color: #eff2f5;
    opacity: 1;
}

.hrBeautiful {
    border-bottom-width: 2px;
    border-bottom-style: dashed;
    border-bottom-color: #e4e6ef;
}


.select2-container--bootstrap5 .select2-selection--multiple:not(.form-select-sm):not(.form-select-lg) .select2-selection__choice .select2-selection__choice__display {
    margin-right: 1.2rem;
    margin-left: unset;
}

.select2-container--bootstrap5 .select2-selection--multiple:not(.form-select-sm):not(.form-select-lg) .select2-selection__choice .select2-selection__choice__remove {
    margin-left: 0.5rem;
    margin-right: unset;
}

.select2-container--bootstrap5 .select2-selection--multiple:not(.form-select-sm):not(.form-select-lg) .select2-selection__choice {
    margin: 0.2rem 0 0.2rem 0.4rem;
}

/* کنترل جدول  */

.light-mode #InvoiceDetailsTable > thead > tr > th {
    background-color: #f5f8fa !important;
    color: #5e6278 !important;
}

[data-bs-theme="dark"] #InvoiceDetailsTable > thead > tr > th {
    background-color: #24252f !important;
}

/* کنترل لیست آبشاری  */

.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected {
    background-position: center left 1.25rem !important;
}

.light-mode .select2-container--bootstrap5 .select2-selection--single .select2-selection__rendered {
    color: #181c32;
}

[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-selection--single .select2-selection__rendered {
    color: rgba(255, 255, 255, 0.87);
}

/* کنترل گرید  */

.light-mode .mvc-grid-table > table > thead > tr > th {
    background-color: #f5f8fa;
    color: #5e6278 !important;
}

.light-mode .mvc-grid-table > table > tbody > tr:last-child > td,
.light-mode .mvc-grid-table > table > tbody > tr:last-child > th,
.light-mode .mvc-grid-table > table > tfoot > tr:last-child > td,
.light-mode .mvc-grid-table > table > tfoot > tr:last-child > th {
    border-bottom: 1px solid #dee2e6 !important;
}

.mvc-grid-table .table td:last-child,
.mvc-grid-table .table th:last-child,
.mvc-grid-table .table tr:last-child {
    padding-left: 0.75em;
}



[data-bs-theme="dark"] .mvc-grid-table > table > thead > tr > th {
    background-color: #24252f !important;
}

[data-bs-theme="dark"] .mvc-grid-table > table > tbody > tr:last-child > td,
[data-bs-theme="dark"] .mvc-grid-table > table > tbody > tr:last-child > th,
[data-bs-theme="dark"] .mvc-grid-table > table > tfoot > tr:last-child > td,
[data-bs-theme="dark"] .mvc-grid-table > table > tfoot > tr:last-child > th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
}

[data-bs-theme="dark"] .mvc-grid-table > table > thead > tr > th,
[data-bs-theme="dark"] .mvc-grid-table > table > tbody > tr > td,
[data-bs-theme="dark"] .mvc-grid-table > table > tfoot > tr > td {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-bottom-color: rgba(255, 255, 255, 0.075);
}


[data-bs-theme="dark"] .mvc-grid-table > table tbody tr:last-child td,
[data-bs-theme="dark"] .mvc-grid-table > table tbody tr:last-child th,
[data-bs-theme="dark"] .mvc-grid-table > table tfoot tr:last-child td,
[data-bs-theme="dark"] .mvc-grid-table > table tfoot tr:last-child th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    border-bottom-color: rgba(255, 255, 255, 0.075);
}


[data-bs-theme="dark"] .mvc-grid-pager [disabled],
[data-bs-theme="dark"] .mvc-grid-pager [disabled]:hover {
    background-color: rgba(255,255,255,.05);
    color: rgba(255, 255, 255, 0.87);
}

[data-bs-theme="dark"] .mvc-grid-pager button {
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: #24252f;
    color: rgba(255, 255, 255, 0.87);
}

[data-bs-theme="dark"] .mvc-grid-pager .active, .mvc-grid-pager .active:focus, .mvc-grid-pager .active:hover {
    background-color: #4638c2;
    border-color: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.87);
}

[data-bs-theme="dark"] .mvc-grid-pager button:focus,
[data-bs-theme="dark"] .mvc-grid-pager button:hover {
    background-color: #4638c2;
    color: rgba(255, 255, 255, 0.87);
}

[data-bs-theme="dark"] .mvc-grid-page-sizes select {
    background-color: #24252f;
    border-color: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.87);
}


[data-bs-theme="dark"] .mvc-grid-popup {
    background-color: #24252f;
    border: 1px solid rgba(255, 255, 255, 0.075);
}

    [data-bs-theme="dark"] .mvc-grid-popup .mvc-grid-value,
    [data-bs-theme="dark"] .mvc-grid-popup .mvc-grid-method,
    [data-bs-theme="dark"] .mvc-grid-popup .mvc-grid-operator {
        border: 1px solid rgba(255, 255, 255, 0.075);
        background-color: #24252f;
        color: rgba(255, 255, 255, 0.87);
    }

    [data-bs-theme="dark"] .mvc-grid-popup .popup-arrow {
        border-bottom: 8px solid #24252f;
    }

        [data-bs-theme="dark"] .mvc-grid-popup .popup-arrow::after {
            border-bottom: 9px solid rgba(255, 255, 255, 0.075);
        }



/* کنترل ویزارد  */

[data-bs-theme="dark"] .sw-theme-arrows > .nav .nav-link.inactive {
    color: rgba(255, 255, 255, 0.87);
    border-color: rgba(255, 255, 255, 0.075);
    background: #24252f;
}

[data-bs-theme="dark"] .sw-theme-arrows > .nav .nav-link::after {
    border-right: 30px solid #24252f;
}

[data-bs-theme="dark"] .sw-theme-arrows > .nav .nav-link::before {
    border-right: 30px solid rgba(255, 255, 255, 0.075);
}



/* کنترل تاریخ  */

[data-bs-theme="dark"] .vpd-body {
    background-color: #24252f;
}

[data-bs-theme="dark"] .vpd-actions button:hover {
    background-color: rgba(255, 255, 255, 0.075);
}



[data-bs-theme="dark"] .vpd-input-group input {
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
}


/* کنترل   */
[data-bs-theme="dark"] .form-control {
    color: rgba(255, 255, 255, 0.87);
}

[data-bs-theme="dark"] .text-dark {
    color: rgba(255, 255, 255, 0.87) !important;
}

[data-bs-theme="dark"] {
    color: rgba(255, 255, 255, 0.87) !important;
}

.dropdown-toggle.ReportBtn::after {
    margin-right: 1em !important;
}


.dropzone .dz-message {
    text-align: right !important;
}

.ql-editor {
    direction: rtl !important;
    text-align: right !important;
}

.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
    position: absolute;
    margin-top: -9px;
    left: 0;
    right: unset !important;
    top: 50%;
    width: 18px;
}

.light-mode > .page-loader {
    background: #F3F6F9 !important;
}

table.dataTable > thead .sorting_asc::before, table.dataTable > thead .sorting_asc::after, table.dataTable > thead .sorting_desc::before, table.dataTable > thead .sorting_desc::after {
    margin-left: unset;
    margin-right: 0.5rem;
}

div.dataTables_length + div.dataTables_info {
    margin-left: unset;
    margin-right: 1rem;
}



.ph-item {
    background-color: unset;
    border: unset;
    border-radius: unset;
    margin-bottom: unset;
}

.ph-picture {
    border-radius: 0.85rem;
}

.tns-ovh {
    border-radius: 0.85rem;
}

.tns-outer {
    margin: 0 !important;
}

.ph-row div {
    /*background-color: #04C8C8;*/
}

.ph-picture {
    /*background-color: #04C8C8;*/
}

.ph-col-1 {
    flex: 0 0 8.33333333335%;
}

.ph-col-11 {
    flex: 0 0 91.66666666665%;
}



[data-bs-theme="dark"] .ph-item::before {
    background: linear-gradient(90deg,hsla(0,0%,100%,0) 46%,hsl(240, 22.2%, 10.6%) 50%,hsla(0,0%,100%,0) 54%) 50% 50%;
}

[data-bs-theme="dark"] .ph-picture {
    background-color: #27273a;
}

[data-bs-theme="dark"] .ph-row div {
    background-color: #27273a;
}

.hoverTable tr:hover {
    cursor: pointer;
    background-color: #F5F8FA;
    /*color: #181C32;*/
}

.table-hover > tbody > tr:hover > * {
    cursor: pointer;
}


/*.mvc-grid-table > table > thead > tr > th, .mvc-grid-table > table > tbody > tr > td, .mvc-grid-table > table > tfoot > tr > td {
    border: unset;
}

.mvc-grid-table > table > thead > tr > th {
    background-color: unset;
}

.mvc-grid-sort, .mvc-grid-filter {
    background: unset;
}*/

.apexcharts-text tspan {
    font-family: IRANYekanX !important;
}

.apexcharts-text, .apexcharts-title-text, .apexcharts-legend-text {
    font-family: IRANYekanX !important;
}

.text-justify {
    text-align: justify;
    line-height: 1.5em;
}


[data-bs-theme="dark"] .hoverTable tr:hover {
    cursor: pointer;
    background-color: #2b2b40;
    color: #FFF;
}

[data-bs-theme="dark"] .ribbon.ribbon-clip.ribbon-end .ribbon-label .ribbon-inner::before {
    border-right-color: #2b2b40 !important;
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected::after {
    right: unset;
    left: 1.25rem;
}

.select2-container--bootstrap5 .select2-selection__clear {
    right: unset;
    left: 3rem;
}



/*.select2-container--bootstrap5 .select2-selection__clear {
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}*/

input:disabled {
    background: var(--kt-dark-light) !important;
}


.card .card-footer .card-toolbar {
    display: flex;
    align-items: center;
    margin: .5rem 0;
    flex-wrap: wrap;
}


.card .card-footer .card-title {
    display: flex;
    align-items: center;
    margin: .5rem;
    margin-right: 0.5rem;
    margin-right: 0;
}

.card .card-footer.custom {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: 70px;
    padding: 0 2.25rem;
}


/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.custom-tooltip1 {
    direction: ltr;
}

.pointer {
    cursor: pointer;
}


.table-responsive2 {
    height: 300px !important; /* ارتفاع مورد نظر برای ناحیه اسکرول */
    overflow-y: auto !important; /* فعال کردن اسکرول عمودی */
    overflow-x: hidden !important;
}

    .table-responsive2 thead th {
        position: sticky !important;
        top: 0 !important;
        background-color: white !important; /* پس‌زمینه ثابت برای thead */
        z-index: 2 !important; /* اطمینان از اینکه thead بالای tbody قرار بگیرد */
        /*box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4) !important;*/ /* افزودن سایه برای تشخیص بهتر */
        border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
        border-radius: .475rem !important;
        border-spacing: 0 !important;
        border-collapse: separate !important;
    }

.table-responsive2 tbody td {
    background-color: white !important; /* اطمینان از اینکه سلول‌های tbody زیر thead دیده نمی‌شوند */
    z-index: 1 !important;
    position: relative !important; /* تنظیم موقعیت برای حفظ سلسله مراتب z-index */
}
