@font-face{
    font-family:quest;
    font-style:normal;
    font-display:swap;
    src:url(../fonts/Questv1-Bold.otf) format('truetype');
    font-weight:500
}
body, a, h1, h2, h3, h4, h5, h6, input, button, select, .media-body, .text, tspan, textarea, text, .btn, input, textarea, li, p, label, .ps-widget--worktime p strong, .tp-caption, .widget-title, .jq-toast-single {
    font-family: 'quest', sans-serif !important;
    letter-spacing: 0 !important;
}
::-webkit-input-placeholder { font-family: 'quest', sans-serif !important; }
::-moz-placeholder { font-family: 'quest', sans-serif !important; }
:-ms-input-placeholder { font-family: 'quest', sans-serif !important; }
:-moz-placeholder { font-family: 'quest', sans-serif !important; }

/***************************************/
body{
    direction: rtl;
    text-align: right;
}
.login-page{
    direction: ltr;
}
.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    float: right;
}
div.dataTables_wrapper div.dataTables_filter {
    text-align: left !important;
}
.sidebar-collapse .main-sidebar, .sidebar-collapse .main-sidebar::before {
    margin-left: 0px;
    margin-right: -250px;
}
.ml-auto, .mx-auto {
    margin-left: unset!important;
    margin-right: auto!important;
}
.brand-link .brand-image {
    float: right;
    margin-right: .8rem;
    margin-left: .5rem;
}
.nav-sidebar .nav-link>.right, .nav-sidebar .nav-link>p>.right {
    right: auto;
    left: 1rem;
    transform: scaleX(-1);
}
.float-sm-right {
    float: left!important;
}
@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .main-sidebar, .sidebar-mini.sidebar-collapse .main-sidebar::before {
        margin-right: 0;
    }
    .sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .main-footer, .sidebar-mini.sidebar-collapse .main-header {
        margin-right: 4.6rem!important;
        margin-left: 0 !important;
    }
}

@media (min-width: 768px){
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        margin-left: 0;
        margin-right: 250px;
    }
}

.card-title {
    float: right;
}
table.dataTable>thead .sorting:before, table.dataTable>thead .sorting_asc:before, table.dataTable>thead .sorting_desc:before, table.dataTable>thead .sorting_asc_disabled:before, table.dataTable>thead .sorting_desc_disabled:before {
    left: 1em !important;
    right: auto !important;
}
table.dataTable>thead .sorting:after, table.dataTable>thead .sorting_asc:after, table.dataTable>thead .sorting_desc:after, table.dataTable>thead .sorting_asc_disabled:after, table.dataTable>thead .sorting_desc_disabled:after {
    right: auto !important;
    left: .5em !important;
}
.dropdown-item {
    text-align: right;
}
.std-block,.std-bottom,.std-info,.std-photo {
    float: right !important;
}
.std-photo img {
    margin: 0px 5px 20px 11px;
}
.form-check-label {
    margin-right: 18px;
}
.input-group:not(.has-validation)>.form-control:not(:last-child) {
    border-radius: 0.25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group-text{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.modal-header .close, .modal-header .mailbox-attachment-close {
    padding: 1rem;
    margin: -1rem auto -1rem -1rem;
}
.main-sidebar {
    left: auto !important;
}
.layout-fixed .main-sidebar {
    right: 0 !important;
    left: auto !important;
}
.wrapper {
    overflow-x: hidden;
}
.content-wrapper,
.main-footer,
.main-header {
    margin-left: 0 !important;
}
.nav {
    padding-right: 0;
}

/* =========================================
   RTL FIXES - Dashboard stat cards
   Mirrors ltr.css: .small-box .icon > i { position: absolute; right: 15px; top: 15px; }
   RTL version:     .small-box .icon > i { position: absolute; left: 15px;  top: 15px; }
   ========================================= */

/* Place the Font Awesome icon at LEFT side (mirrors LTR right: 15px) */
.small-box .icon > i,
.small-box .icon > i.fa,
.small-box .icon > i.fas,
.small-box .icon > i.far,
.small-box .icon > i.fab,
.small-box .icon > i.fal,
.small-box .icon > i.fad,
.small-box .icon > i.ion {
    font-size: 90px !important;
    position: absolute !important;
    right: auto !important;
    left: 15px !important;
    top: 15px !important;
    -webkit-transition: -webkit-transform 0.3s linear !important;
    transition: -webkit-transform 0.3s linear !important;
    transition: transform 0.3s linear !important;
    transition: transform 0.3s linear, -webkit-transform 0.3s linear !important;
}

/* SVG icons also need to move to LEFT */
.small-box .icon svg {
    right: auto !important;
    left: 15px !important;
}

/* Inner content: right-align number and label */
.small-box > .inner {
    text-align: right !important;
}

/* Footer arrow: flip to point LEFT (←) in RTL */
.small-box-footer i,
.small-box > .small-box-footer i {
    display: inline-block !important;
    -webkit-transform: scaleX(-1) !important;
    transform: scaleX(-1) !important;
}

/* =========================================
   RTL FIXES - Float utilities
   ========================================= */
.float-right {
    float: left !important;
}
.float-left {
    float: right !important;
}

/* =========================================
   RTL FIXES - Bootstrap margin utilities
   ========================================= */
.mr-auto {
    margin-right: unset !important;
    margin-left: auto !important;
}
.mr-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
.mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
.mr-3 { margin-right: 0 !important; margin-left: 1rem !important; }
.ml-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
.ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
.ml-3 { margin-left: 0 !important; margin-right: 1rem !important; }

/* =========================================
   RTL FIXES - Dropdown menus
   ========================================= */
.dropdown-menu-right {
    right: auto !important;
    left: 0 !important;
}
.dropdown-menu.show {
    text-align: right;
}

/* =========================================
   RTL FIXES - Notification badge in header
   ========================================= */
.navbar-badge {
    right: auto !important;
    left: 5px !important;
}

/* =========================================
   RTL FIXES - Input groups (border radius flip)
   ========================================= */
.input-group > .form-control:first-child {
    border-top-left-radius: .25rem !important;
    border-bottom-left-radius: .25rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.input-group > .input-group-append > .btn,
.input-group > .input-group-append > .input-group-text {
    border-top-right-radius: .25rem !important;
    border-bottom-right-radius: .25rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
.input-group > .input-group-prepend > .btn,
.input-group > .input-group-prepend > .input-group-text {
    border-top-left-radius: .25rem !important;
    border-bottom-left-radius: .25rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* =========================================
   RTL FIXES - Tables
   ========================================= */
.table th, .table td {
    text-align: right;
}
.table thead th {
    text-align: right;
}

/* =========================================
   RTL FIXES - Cards, Forms, Labels
   ========================================= */
.card-header {
    text-align: right;
}
.form-group label {
    text-align: right;
    display: block;
}

/* =========================================
   RTL FIXES - Breadcrumb separators
   ========================================= */
.breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: .5rem;
}
.breadcrumb-item + .breadcrumb-item {
    padding-right: .5rem;
    padding-left: 0;
}

/* =========================================
   RTL FIXES - Alert close button
   ========================================= */
.alert-dismissible .close {
    right: auto;
    left: 0;
}

/* =========================================
   RTL FIXES - Select2
   ========================================= */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 1px;
    right: auto;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: right;
    padding-right: 8px;
    padding-left: 20px;
}

/* =========================================
   RTL FIXES - Pagination
   ========================================= */
.pagination {
    direction: ltr;
}

/* =========================================
   RTL FIXES - Content wrapper
   ========================================= */
.content-wrapper {
    text-align: right;
}


/* =========================================
   RTL FIXES - Sidebar nav: icons on RIGHT
   nav-link is display:block by default; must force flex to reorder children.
   HTML order: <i class="nav-icon"> then <p>text</p>
   With row-reverse: <i> appears on RIGHT, <p> on LEFT — correct for RTL.
   ========================================= */

/* Force flex so flex-direction actually works */
.nav-sidebar .nav-item > .nav-link {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-direction: row-reverse !important;
    flex-direction: row-reverse !important;
}

/* Icon is now on the RIGHT — swap its margins for RTL spacing */
.nav-sidebar > .nav-item .nav-icon {
    margin-right: 0 !important;
    margin-left: .4rem !important;
}

/* p inside nav-link: fill remaining space, right-align text */
.nav-sidebar .nav-item > .nav-link > p {
    -ms-flex: 1;
    flex: 1;
    margin-bottom: 0;
    text-align: right;
}

/* User panel at top of sidebar: reverse avatar + name */
.user-panel.d-flex {
    -ms-flex-direction: row-reverse !important;
    flex-direction: row-reverse !important;
}
.user-panel .info {
    text-align: right;
    padding-right: .5rem;
    padding-left: 0;
}

/* Fix nav-header text alignment */
.nav-header {
    text-align: right;
    padding-right: 1rem;
    padding-left: 0;
}

/* Submenu items: indent from the RIGHT */
.nav-sidebar .nav-treeview > .nav-item > .nav-link {
    padding-right: 1.5rem !important;
    padding-left: .5rem !important;
}
