﻿@font-face {
    font-family: 'iransans';
    src: url('../fonts/iransans-light.woff2') format('woff2');
}

@font-face {
    font-family: 'b-titr';
    src: url('../fonts/b titr bold.ttf') format('truetype');
}
/*
:root {
    --mud-drawer-width-mini-right: 65px;
    --mud-drawer-width-mini-left: 65px;
    --mud-typography-h1-family: b-titr;
    --mud-typography-h2-family: b-titr;
    --mud-typography-h3-family: b-titr;
    --mud-typography-h4-family: b-titr;
    --mud-typography-h5-family: b-titr;
    --mud-typography-h6-family: b-titr;
    --mud-typography-default-family: iransans;
    --mud-typography-caption-family: iransans;
    --mud-typography-body1-family: iransans;
    --mud-typography-body2-family: iransans;
}

.mud-layout {
    --mud-drawer-width-mini-left: 65px;
    --mud-drawer-width-mini-right: 65px;
    --mud-typography-h1-family: b-titr;
    --mud-typography-h2-family: b-titr;
    --mud-typography-h3-family: b-titr;
    --mud-typography-h4-family: b-titr;
    --mud-typography-h5-family: b-titr;
    --mud-typography-h6-family: b-titr;
    --mud-typography-default-family: iransans;
    --mud-typography-caption-family: iransans;
    --mud-typography-body1-family: iransans;
    --mud-typography-body2-family: iransans;
}*/

/*html, body {
    background-color: #f5f5f5 !important;
}
*/
.mud-grid-item {
    flex-basis: 100%;
}

.w-260 {
    width: 260px !important;
}

.Amn-grid-scroll {
    overflow-x: auto;
    width: 100%;
}

.fw-bold, .text-bold {
    font-weight: bold !important;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.hide {
    display: none;
}

.mud-main-content {
    z-index: 1;
}

.ofx-0 {
    overflow-x: hidden;
}

.ofy-0 {
    overflow-y: hidden;
}
/*.mud-main-content{
    overflow-y:scroll;
    overflow-x:hidden;
}*/
/*.mud-main-content {
    margin-top:80px;
    padding-top:0px !important;
    height:100%;
    overflow-y: auto;
}*/
.mud-appbar {
    /*z-index: 99999 !important;*/
    position: relative;
}


header.mud-appbar.main-appbar {
    padding: 10px 30px;
    transition: 500ms;
    background-color: var(--mud-palette-background) !important;
}

    header.mud-appbar.main-appbar.appbar-scrolled {
        padding: 0px;
    }

        header.mud-appbar.main-appbar.appbar-scrolled .mud-toolbar {
            border-radius: 0px;
            box-shadow: 0 2px 10px 0px rgba(0, 0, 0, 0.14), 0 4px 10px -5px rgba(5, 5, 5, 0.4);
        }

    header.mud-appbar.main-appbar .mud-toolbar {
        border-radius: 40px;
        background-color: var(--mud-palette-divider) !important;
        height: 45px;
        padding-right: 10px;
        transition: 500ms;
    }

@media (max-width: 600px) {
    header.mud-appbar.main-appbar .app-bar-btn {
        max-width: 40px;
    }
}


.mud-table-pagination .mud-toolbar * {
    direction: rtl;
}

.mud-table-pagination-toolbar .mud-tablepager-right {
    flex-direction: row !important;
}

.mud-breadcrumb-item > a {
    font-size: var(--mud-typography-body2-size);
}


input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button,
input[type=number] {
    -moz-appearance: textfield;
    -webkit-appearance: none;
    margin: 0;
}

.mud-drawer-header {
    border-bottom: 1px solid #ccc;
    padding: 0px 16px 12px;
}

.menu-search {
    border-bottom: 1px solid #ccc;
    border-radius: 0px;
}

.mud-drawer-header svg {
    font-size: 40px;
}

.mud-drawer-header .user-name {
    transform: translateY(5px);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: 500ms;
}

.mud-drawer.mud-drawer-mini.mud-drawer-pos-right {
    padding: 15px 0px;
}

.mud-drawer.mud-drawer-mini {
    height: calc(100% - 20px);
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 10px;
}


.mud-drawer--close .mud-drawer-header .user-name {
    opacity: 0;
}

.mud-drawer.mud-drawer--closed .mud-nav-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
    justify-content: center !important;
}

@media (min-width: 960px) {
    .mud-drawer-open-mini-md-right.mud-drawer-right-clipped-never .mud-appbar {
        margin-right: calc(var(--mud-drawer-width-right) + 12px);
        width: calc(100% - var(--mud-drawer-width-right) - 12px);
    }
}

.mud-nav-link {
    margin: 5px 12px;
    padding-right: 0px;
}

.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    padding-right: 20px;
    padding-inline-start: 25px;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    /*background-color: #e91e63;*/
    /*box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(233, 30, 99, 0.4);*/
    background-color: #555;
    box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(5, 5, 5, 0.4);
    border-radius: 3px;
}

    .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled),
    .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) svg {
        color: #fff;
    }

@media (hover: hover) and (pointer: fine) {
    .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled):hover:not(.mud-nav-link-disabled) {
        /*background-color: #e91e63 !important;*/
        background-color: #555 !important;
    }
}

.mud-nav-link .mud-nav-link-text {
    line-height: 22px;
    font-size: 13px;
}

.mud-drawer .menu-search-input input {
    font-size: 13px;
}

.mud-drawer.mud-drawer--open {
    overflow-x: hidden;
}

.mud-list-item-text * {
    font-size: 13px;
}

.column-filter-popup .mud-input-root-outlined {
    font-size: 13px !important;
}


.grid.mud-table {
    overflow-y: hidden;
}

.grid-filter {
    min-width: 200px;
}

    .grid-filter .right-input-group .mud-input-outlined-border {
        border-radius: 0 4px 4px 0;
    }

    .grid-filter .left-input-group .mud-input-outlined-border {
        border-radius: 4px 0 0 4px;
        margin-right: -1px;
    }

    .grid-filter .mud-picker .mud-input-outlined-border {
        border-radius: 4px 0 0 4px;
        margin-right: -1px;
    }

    .grid-filter .mud-input-control.mud-input-control-margin-dense.mud-input-outlined-with-label {
        margin: 0px;
    }

    .grid-filter .both-input-group .mud-input-outlined-border {
        border-radius: 0 0 0 0;
        margin-right: -1px;
    }

    .grid-filter .search-type.text-search-type {
        width: 100px;
        /*background-color: #eee !important;*/
    }

    .grid-filter .search-type.number-search-type {
        width: 150px;
        /*background-color: #eee !important;*/
    }

    .grid-filter .text-search-type .mud-input.mud-input-outlined.mud-input-adorned-end {
        padding: 0
    }

    .grid-filter .text-search-type .mud-input-adornment-end {
        margin: 0px;
    }

    .grid-filter .text-search-type .mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-end {
        padding-right: 8px;
    }

.column-filter-popup {
    z-index: 1701 !important;
}

.mud-data-grid [role=toolbar] {
    margin-bottom: 15px;
}


@media (max-width: 600px) {
    .mud-table-root * {
        max-width: 100%;
    }

    .mud-xs-table .mud-table-cell * {
        min-width: 0px;
        overflow-wrap: anywhere;
        text-align: left;
        direction: rtl;
    }

    .mud-xs-table .mud-table-cell [aria-label="Expand group"],
    .mud-xs-table .mud-table-cell [aria-label="Collapse group"] {
        margin-top: 3px !important;
        margin-bottom: 3px !important;
    }
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: 13px;
}

.mud-select.mud-autocomplete--with-progress .mud-input-adorned-end input {
    /*    padding-right: 0 !important;*/
    /*    padding-inline-end: 0 !important;*/
    padding-right: 14px !important;
    padding-left: 36px !important;
}

.mud-dialog .mud-dialog-actions {
    padding-top: 15px;
    padding-bottom: 20px;
}

.mud-dialog .mud-dialog-title .mud-tooltip-root {
    position: absolute;
    left: 20px;
    top: 25px;
}


/*start - code box*/
.code-block {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    direction: ltr;
    margin-top: 20px;
    margin-bottom: 20px;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #252526;
    border-bottom: 1px solid #333;
}

.code-block-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.code-block-title {
    color: #f3f3f3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-block-lang {
    color: #9cdcfe;
    border-color: #3c3c3c !important;
}

.code-block-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .code-block-actions .mud-button-root {
        color: #d4d4d4;
    }

        .code-block-actions .mud-button-root:hover {
            background: rgba(255,255,255,0.06);
        }

.code-block-body {
    display: flex;
    overflow-x: auto;
}

.code-block-lines {
    background: #2a2a2a;
    color: #858585;
    padding: 12px 0;
    text-align: right;
    user-select: none;
    min-width: 48px;
    border-right: 1px solid #333;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
}

.code-line-number {
    padding: 0 12px;
    height: 1.7em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.code-block-pre {
    margin: 0;
    padding: 12px 14px;
    white-space: pre;
    overflow-x: auto;
    flex: 1;
    color: #d4d4d4;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    tab-size: 4;
}

    .code-block-pre code {
        color: inherit;
    }

/*end - code box*/


/*ستاره قرمز کنار لیبل اینپوت های اجباری*/
.mud-input-control.mud-input-required > .mud-input-control-input-container > .mud-input-label::after {
    content: " *";
    color: red;
}

/*START = mud simple table*/
.mud-table-bordered table thead th {
    font-weight: bold;
    text-align: center;
}

.mud-table-bordered table {
    border: 1px solid #ccc;
}

.mud-table-bordered td,
.mud-table-bordered th {
    border-left: 1px solid #ccc;
}

    .mud-table-bordered td:last-child,
    .mud-table-bordered th:last-child {
        border-left: none;
    }
/*END = mud simple table*/

.ltr {
    direction: ltr !important;
}

.grey-text {
    color: var(--mud-palette-text-disabled);
}



/* Comment */
.comment-row {
    background-color: #e7f3ff;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

    .comment-row:hover {
        background-color: #d7ebff;
    }

/* Ticket Message */
.ticket-container {
    background: #fafafa;
}

.messages-container {
    height: 450px;
    overflow-y: auto;
    border-radius: 12px;
}

.message-bubble {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 14px;
    max-width: 75%;
}

.admin-msg {
    background-color: #e3f2fd;
    margin-left: auto;
}

.user-msg {
    background-color: #f5f5f5;
    margin-right: auto;
}

.avatar-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.avatar-custom {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

    .avatar-custom img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-name {
    font-size: 14px;
    color: #444;
    white-space: nowrap;
}

/* grid-stack ======================================================================== */
.grid-stack {
    width: 100%;
    min-height: 200px;
}

/* خود ویجت */
.grid-stack-item-content {
    background: #eee;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    overflow: hidden;
    height: 100%;
    width: 100%;
}

    .grid-stack-item-content .banner {
        padding: 12px;
        height: 100%;
    }

.dashboard-widget {
    position: relative;
    background: white;
    border-radius: 6px;
    height: 100%;
    width: 100%;
}

.widget-header {
    height: 40px;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.widget-drag-handle {
    cursor: move;
}

.widget-toolbar {
    display: flex;
    gap: 6px;
}

.widget-delete,
.widget-edit {
    cursor: pointer;
}

.widget-json-output {
    margin-top: 16px;
    background: #1e1e1e;
    color: #ccc;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    direction: ltr;
    max-height: 300px;
    overflow: auto;
}

.banner-root {
    position: relative;
    height: 100%;
    width: 100%;
}

.widget-banner-tools {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 10;
    background-color: rgba(255,255,255,0.9);
    padding: 4px;
    border-radius: 4px;
}

.widget-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.components-reconnect-modal {
    direction: rtl;
}


.sms-template-container {
    position: relative;
    width: 260px;
    height: 560px;
    margin: 0px auto;
}


    .sms-template-container img {
        position: absolute;
        width: 280px;
        height: 580px;
        top: 0;
        right: 50%;
        transform: translateX(50%);
    }

    .sms-template-container .text-field {
        width: 260px;
        height: 560px;
        padding: 65px 0px 0px 0px;
        margin: 0px auto;
    }

        .sms-template-container .text-field fieldset {
            border: none !important;
        }

    .sms-template-container .sms-char-count {
        position: absolute;
        bottom: 55px;
        right: 15px;
        font-weight: bold;
        font-size: 17px;
        letter-spacing: 3px;
    }

    .card_number input {
        direction: ltr !important;
        text-align: center !important;
    }

/*pwa installer*/
.pwa-install {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: inline-block;
}
