@font-face {
    font-family: Sahel;
    src: url('../fonts/sahel/Sahel.eot');
    src: url('../fonts/sahel/Sahel.eot?#iefix') format('embedded-opentype'),
    url('../fonts/sahel/Sahel.woff2') format('woff2'),
    url('../fonts/sahel/Sahel.woff') format('woff'),
    url('../fonts/sahel/Sahel.ttf') format('truetype');
    font-weight: normal
}

@font-face {
    font-family: Sahel;
    src: url('../fonts/sahel/Sahel-Bold.eot');
    src: url('../fonts/sahel/Sahel-Bold.eot?#iefix') format('embedded-opentype'),
    url('../fonts/sahel/Sahel-Bold.woff2') format('woff2'),
    url('../fonts/sahel/Sahel-Bold.woff') format('woff'),
    url('../fonts/sahel/Sahel-Bold.ttf') format('truetype');
    font-weight: bold
}

@font-face {
    font-family: Sahel;
    src: url('../fonts/sahel/Sahel-Light.eot');
    src: url('../fonts/sahel/Sahel-Light.eot?#iefix') format('embedded-opentype'),
    url('../fonts/sahel/Sahel-Light.woff2') format('woff2'),
    url('../fonts/sahel/Sahel-Light.woff') format('woff'),
    url('../fonts/sahel/Sahel-Light.ttf') format('truetype');
    font-weight: 300
}

@font-face {
    font-family: Sahel;
    src: url('../fonts/sahel/Sahel-SemiBold.eot');
    src: url('../fonts/sahel/Sahel-SemiBold.eot?#iefix') format('embedded-opentype'),
    url('../fonts/sahel/Sahel-SemiBold.woff2') format('woff2'),
    url('../fonts/sahel/Sahel-SemiBold.woff') format('woff'),
    url('../fonts/sahel/Sahel-SemiBold.ttf') format('truetype');
    font-weight: 600
}

@font-face {
    font-family: Sahel;
    src: url('../fonts/sahel/Sahel-Black.eot');
    src: url('../fonts/sahel/Sahel-Black.eot?#iefix') format('embedded-opentype'),
    url('../fonts/sahel/Sahel-Black.woff2') format('woff2'),
    url('../fonts/sahel/Sahel-Black.woff') format('woff'),
    url('../fonts/sahel/Sahel-Black.ttf') format('truetype');
    font-weight: 900
}

/*---------------------------------- End of fonts ---------------------------------- */

body {
    font-family: 'Sahel', sans-serif !important;
}

.sf-dump,
.cake-error,
.cake-debug-output,
pre.pr {
    direction: ltr;
    text-align: left;
    margin-top: 60px;
}

.ltr {
    direction: ltr;
}

ul {
    padding-inline-start: 0px;
}

.dropdown-item {
    text-align: right;
}

.dropdown-footer, .dropdown-header {
    text-align: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    padding-left: .5rem;
}

.mb-6 {
    margin-bottom: 64px !important;
}

.mb-7 {
    margin-bottom: 80px !important;
}


/*------------------------------------ contacts-list ------------------------------------*/

.contacts-list-img {
    float: right;
}

.contacts-list-info {
    margin-right: 45px;
    margin-left: 0;
}


/* sidebar */

.sidebar {
    direction: ltr;
}

.sidebar > div:first-child {
    direction: rtl;
}

.control-sidebar, .control-sidebar:before {
    left: -250px;
    right: auto;
    transition: left .3s ease-in-out;
}

.control-sidebar-slide-open .control-sidebar, .control-sidebar-slide-open .control-sidebar:before {
    left: 0;
    right: auto;
}

.small-box .icon {
    right: auto;
    left: 10px;
}

.nav-sidebar .nav-link > p > .right {
    left: 1rem;
    right: auto;
}

.nav-sidebar > .nav-item .nav-icon {
    margin-right: 0;
    margin-left: .2rem;
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .main-footer, .sidebar-mini.sidebar-collapse .main-header {
        margin-right: 4.6rem;
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .main-footer, .sidebar-mini.sidebar-collapse .main-header {
        margin-left: 0rem !important;
        margin-right: 4.6rem !important;
        z-index: 100;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar, .sidebar-mini.sidebar-collapse .main-sidebar:before {
        margin-right: 0;
        width: 4.6rem;
    }
}


@media (min-width: 768px) {
    .content-wrapper, .main-footer, .main-header {
        transition: margin-right .3s ease-in-out;
        margin-right: 250px;
        margin-left: 0;
        z-index: 3000;
    }
}

@media (max-width: 991.98px) {
    .main-sidebar, .main-sidebar:before {
        box-shadow: none !important;
        margin-right: -250px;
        margin-left: 0;
    }

    .content-wrapper, .content-wrapper:before, .main-footer, .main-footer:before, .main-header, .main-header:before {
        margin-right: 0;
    }

    .sidebar-open .main-sidebar, .sidebar-open .main-sidebar:before {
        margin-right: 0;
        z-index: 4000;
    }
}

.sidebar-collapse .main-sidebar, .sidebar-collapse .main-sidebar:before {
    margin-right: -250px;
}

.main-sidebar {
    left: auto;
    right: 0;
}

/* Popover */
.popover-header,
.popover-body {
    font-family: Sahel;
}
.popover-body-sm {
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Cards */
.card-sm .card-title {
    font-size: 1.15rem;
}

.card-header > .card-tools {
    right: auto;
    left: 1rem;
}

.card-disabled {
    pointer-events: none;
    opacity: 0.5;
    background: #ccc;
}

.card-description {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card.bg-light a {
    color: #007bff !important;
}

.card.bg-light a:hover {
    color: #0056b3 !important;
}

.user-block img {
    float: right;
}

.attachment-block .attachment-img {
    float: right;
}

.attachment-block .attachment-pushed {
    margin-left: 0px;
    margin-right: 110px;
}

.card-comments .card-comment img, .img-lg, .img-md, .img-sm, .user-block.user-block-sm img {
    float: right;
}

.card-comments .comment-text {
    margin-right: 40px;
    margin-left: 0;
}

.card-comments .card-comment img + .img-push, .img-sm + .img-push, .user-block.user-block-sm img + .img-push {
    margin-left: 0px;
    margin-right: 40px;
}

.user-block .comment, .user-block .description, .user-block .username {
    margin-right: 50px;
    margin-left: 0px;
}

.btn-group-vertical {
    align-items: center;
}

.widget-user-header .btn-sm {
    padding: 0 8px;
}

.widget-user-header .btn-outline-light:hover {
    color: #6C757D !important;
}

.widget-user-image > img {
    width: 65px !important;
    height: 65px !important;
    object-fit: cover;
}

/* pagination */
.pagination {
    margin-bottom: 0;
}


/*------------------------- Form ----------------------------*/
.select2-container .select2-search--inline {
    float: right;
}

.select2-container--default .select2-search--inline .select2-search__field {
    text-align: right;
}

.invalid-tooltip,
.invalid-feedback {
    display: block;
}

.input-group-text {
    direction: ltr;
}

.input-group-append .btn:focus,
.input-group-append .btn:active {
    box-shadow: none !important;
}

.input-group-append img {
    border-top: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
}

.input-group-append .btn i {
    font-size: 18px;
    color: #8E909A;
}

.btn-badge {
    position: relative;
}

.btn-badge > .badge {
    position: absolute;
    top: -3px;
    right: -10px;
}

.file-preview {
    position: relative;
}

.file-preview .badge {
    position: absolute !important;
    top: -3px;
    left: -10px;
}

.text-right {
    direction: rtl !important;
}

.text-left {
    text-align: left !important;
    direction: ltr !important;
}

.text-xs {
    font-size: .775rem;
}

#form-search label {
    font-weight: normal;
}

ul.payment-gateways {
    list-style: none;
    padding: 0;
}

ul.payment-gateways > li {
    display: inline-block;
    background: #FAFAFA;
    border: 1px solid #EEE;
    border-radius: 5px;
    margin-left: 5px;
}

ul.payment-gateways > li > label {
    cursor: pointer;
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 0;
    padding: 5px;
}

ul.payment-gateways .form-check {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    vertical-align: middle;
}

ul.payment-gateways .form-check .form-check-input {
    margin-top: 0;
}

.upload-image img {
    width: 64px;
    margin-left: 8px;
}

.upload-image p {
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.form-group.file.required:before {
    position: absolute;
    content: "*";
    color: #dc3545;
    right: 5px;
}

.card-with-upload .form-group.file,
.card-with-upload .form-group .media {
    margin-bottom: 0;
}

.custom-file-label::after {
    border-radius: 0;
    content: "انتخاب فایل";
}

.custom-file + .input-group-append .submit .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#contract-container {
    padding: 15px 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

#contract-content {
    max-height: 400px;
    overflow: auto;
}

#contract-content .img-collateral {
    max-width: 800px;
    margin: 4px;
}

/*----------------------- Chat ---------------------------*/
.direct-chat-text {
    background-color: #f2f2f2;
    border-color: #f2f2f2;
}

.direct-chat-text:after,
.direct-chat-text:before {
    border-right-color: #f2f2f2;
}

.right .direct-chat-text:after,
.right .direct-chat-text:before {
    border-left-color: #f2f2f2;
}

/*----------------------- Wallet ---------------------------*/
.wallet-title {
    min-height: 48px;
}

/*----------------------- Table ---------------------------*/
.table .column-xs {
    width: 55px;
}

.table .column-sm {
    width: 160px;
    min-width: 100px;
}

.table .column-md {
    width: 200px;
}

.table .column-lg {
    width: 250px;
}

.table .cell-empty {
    text-align: center;
}

.table .cell-actions {
    text-align: center;
    width: 200px;
}

.table .form-inline .form-group,
.table .form-inline .form-check,
.table .form-check .form-check-input,
.form-inline .table .form-check-input,
.table .form-inline .btn {
    margin-left: 5px;
}

.table .form-inline .form-check input {
    margin-left: 5px;
}

.table .form-check-inline {
    margin-right: 0;
    padding-right: 0;
}

.table .form-group {
    margin-bottom: 0;
}

/*----------------------- Extra Page ---------------------------*/
.login-box,
.register-box{
    width:400px;
    margin-bottom: 4%;
}

@media (max-width: 576px) {
    .login-box,
    .register-box{
        width:350px;
    }
}

.login-terms {
    margin: 6px 15px;
}

.error-page > .headline {
    float: right;
}

.error-page > .error-content {
    margin-right: 190px;
    margin-left: 0;
}

.lockscreen-image {
    left: auto;
    right: -10px;
}

.lockscreen-credentials {
    margin-left: 0px;
    margin-right: 70px;
}

.nav {
    padding-inline-start: 0px !important;
}

/*
 * Date picker
 */
.mds-bootstrap-persian-datetime-picker-container,
.mds-bootstrap-persian-datetime-picker-popover h3 {
    font-family: 'Sahel', sans-serif !important;
}

.mds-bootstrap-persian-datetime-picker-popover .popover-header {
    color: #2c7be5;
    background: #FFF;
    padding: 12px;
}

.mds-bootstrap-persian-datetime-picker-container tfoot td {
    padding-top: 5px;
    padding-bottom: 5px;
}

.mds-bootstrap-persian-datetime-picker-container table table input[type="text"] {
    border: 1px solid #d2ddec;
    padding: 4px 2px;
    border-radius: .375rem;
}
.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 12px;
    text-align: center;
}
.social-icons{
    width: 75px;
    height: 75px;
}
