﻿

/*start modal styles*/

/* محو / بلور پس‌زمینه */
.tg-modal .modal-dialog {
    backdrop-filter: blur(10px);
}

/* جعبه مودال */
.tg-modal-content {
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* هدر */
.tg-modal-header {
    border-bottom: none;
    padding: 18px 22px;
}

.tg-btn-close {
    filter: invert(40%);
}

/* بدنه */
.tg-modal-body {
    padding: 20px 22px;
    color: #333;
}

/* لیبل */
.tg-label {
    font-weight: 500;
}

/* فایل اینپوت تلگرامی */
.tg-file-input {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f5f7fa;
    border: 2px dashed #cfd8e3;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: 0.25s;
    user-select: none;
}

    .tg-file-input:hover {
        background: #e9eef5;
        border-color: #7aa6d6;
    }

    .tg-file-input input[type="file"] {
        display: none;
    }

.tg-file-text {
    font-size: 14px;
    color: #5a6b7b;
}

/* فوتر */
.tg-modal-footer {
    border-top: none;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
}

/* دکمه‌ها */
.tg-btn-primary {
    background: #3390ec;
    color: white;
    border-radius: 10px;
    padding: 7px 18px;
    border: none;
    transition: background 0.2s;
}

    .tg-btn-primary:hover {
        background: #2a7ece;
    }

.tg-btn-secondary {
    background: #e6e6e6;
    color: #444;
    border-radius: 10px;
    padding: 7px 18px;
    border: none;
}

    .tg-btn-secondary:hover {
        background: #d4d4d4;
    }
/*end modal styles*/


/*start message file*/

/* ظرف کل پیام */
.tg-msg-left {
    direction: rtl;
}

/* نام ارسال‌کننده */
.tg-sender-name {
    font-size: 12px;
    opacity: 0.6;
}

/* حباب فایل */
.tg-file-bubble {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 4px;
    max-width: 270px;
    border: 1px solid #e5e5e5;
    position: relative;
    display: flex;
    gap: 10px;
}

/* آیکون فایل */
.tg-file-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #3390ec21;
    color: #3390ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* بخش اطلاعات فایل */
.tg-file-info {
    flex: 1;
}

/* نام فایل */
.tg-file-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #222;
    word-break: break-all;
}

/* دکمه دانلود */
.tg-download-btn {
    font-size: 13px;
    color: #3390ec;
    text-decoration: none;
    padding: 4px 0;
}

    .tg-download-btn:hover {
        text-decoration: underline;
    }

/* زمان */
.tg-time {
    position: absolute;
    bottom: 4px;
    left: 10px;
    font-size: 11px;
    opacity: 0.5;
}


/*end message file*/
/*start scroll */

#chatBox::-webkit-scrollbar {
    width: 5px;
}

#chatBox::-webkit-scrollbar-thumb {
    background: rgb(240,237,248);
    border-radius: 10px;
}

#chatBox::-webkit-scrollbar-track {
    background: transparent;
}
#chatBox{
   height:400px;
   overflow:scroll;
}


@media screen and (max-width:400px) {
    #chatBox {
        height: 46vh !important;
    }
    .chat-favor {
        z-index: 999;
        background: black;
    }
}
@media (min-width:401px) and (max-width:500px) {
    #chatBox {
        height: 52vh !important;
    }

    .chat-favor {
        z-index: 999;
        background: black;
    }
}
@media (min-width:501px) and (max-width:650px) {
    #chatBox {
        height: 52vh !important;
    }

    .chat-favor {
        z-index: 999;
        background: black;
       
    }
}
@media (min-width:651px) and (max-width:767px) {
    #chatBox {
        height: 52vh !important;
    }

    .chat-favor {
        z-index: 999;
        background: black;
    }
}

@media (min-width:768px) {
 
.chat-name-list {
  min-width: 360px;
  width: 360px;
  height: calc(95vh - 188px);
  overflow-y: auto;
}
}
@media (min-width:992px) and (max-width:1200px) {
    #chatBox {
        height: 70vh !important;
    }

    .chat-favor {
        z-index: 999;
        background: black;
    }
}
@media (min-width:1201px) and (max-width:1500px) {
    #chatBox {
        height: 67vh !important;
    }

    .chat-favor {
        z-index: 999;
        background: black;
    }
}

@media (min-width:1501px)and (min-height: 800px) {
    #chatBox {
        height: 70vh !important;
    }

    .chat-favor {
        z-index: 999;
        background: black;
    }
}


 /*end scroll */

        .message-file {
    width : auto;
    display:inline-block;
}
.message-file1 {
    border: 2px solid cadetblue;
    border-radius: 50%;
    background-color: rgb(108,80,191);
    /*    background-color: cadetblue;*/
}
.min-width{
    min-width : 80px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

    .dropdown-menu.show {
        display: block;
    }

/* نمایش دراپ‌دان هنگام Hover */
/*.dropdown:hover .dropdown-menu {
    display: block;
    position: absolute;*/ /* برای اینکه روی آیتم اصلی باز شود */
    /*top: 100%;*/ /* زیر آیتم اصلی */
    /*left: 0;
    z-index: 1000;*/ /* اطمینان از نمایش روی بقیه عناصر */
/*}*/

/* استایل فلش رو به پایین */
.dropdown-arrow {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px; /* فاصله از سمت چپ */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid white; /* رنگ فلش (سفید) */
    transition: all 0.2s ease-in-out;
}

/* برای اطمینان که فلش روی متن قرار نگیرد */
.nav-link.dropdown-toggle {
   /* فضای کافی برای فلش */
}

.dash-border {
    border-bottom: dashed 1px var(--bs-btn-bg);
}








/* start VideoGallery Video */

/* استایل‌های اختصاصی برای پخش‌کننده ویدیو */
.custom-video-container {
    position: relative;
    width: 600px;
    height: 300px;
    margin: auto;
    overflow: hidden;
    background-color: #000;
}

    .custom-video-container video {
        width: 100%;
        height: 100%;
        display: block;
    }

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-video-container:hover .custom-video-controls,
.custom-video-container.clicked .custom-video-controls {
    opacity: 1;
}

.custom-play-pause-btn,
.custom-rewind-btn {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    cursor: pointer;
    font-size: 18px;
}

.custom-progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
    border-radius: 4px;
    position: relative;
}

.custom-progress-bar {
    height: 100%;
    width: 0;
    background-color: #4CAF50;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
}

/* استایل عنوان و امتیاز */
.custom-video-header {
    display: flex;
    justify-content: space-between;
    color: #fff;
    padding: 10px 15px;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 30px);
    background: linear-gradient(to top, transparent, rgba(0,0,0,0.5));
    z-index: 10;
}

    .custom-video-header p {
        margin: 0;
    }

/* end VideoGallery Video */



/* braedcrumb start */

.page-breadcrumbs.breadcrumb-primary {
    background-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

    .page-breadcrumbs.breadcrumb-primary a,
    .page-breadcrumbs.breadcrumb-primary span,
    .page-breadcrumbs.breadcrumb-primary .page-name {
        color: var(--bs-white) !important;
    }

        /* اگر هاور روی خود لینک/اسپَن است */
        .page-breadcrumbs.breadcrumb-primary a:hover,
        .page-breadcrumbs.breadcrumb-primary span:hover,
        .page-breadcrumbs.breadcrumb-primary .page-name:hover {
            color: var(--bs-white) !important;
        }

    /* پشتیبانی از SVG آیکون‌ها (خیلی رایج) */
    .page-breadcrumbs.breadcrumb-primary svg,
    .page-breadcrumbs.breadcrumb-primary svg * {
        fill: none !important;
        stroke: currentColor !important;
    }


.page-breadcrumbs.no-radius {
    border-radius: 0 !important;
}

.page-breadcrumbs.card-shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* braedcrumb end */

.filter-show {
    position: absolute;
    inset: 0px 0px auto auto;
    margin: 0px;
    transform: translate3d(0px, 33.583px, 0px);
    z-index: 1023;
}

/*.bg-groups-chat {
    background-image: url('../images/01-scaled.jpg');
    background-size: cover;*/ /* عکس تمام صفحه را پر کند */
    /*background-position: center;*/ /* عکس وسط‌چین باشد */
    /*background-repeat: no-repeat;
    min-height: 100vh;*/ /* حداقل ارتفاع صفحه */
/*}*/
.crm-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
 /*   border: 1px solid rgba(255,255,255,.4);*/
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
    transition: .25s ease;
}
.crm-card2 {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    background: var(--bs-border-color);
    /*   border: 1px solid rgba(255,255,255,.4);*/
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
    transition: .25s ease;
}

    .crm-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,.08);
    }

.crm-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* soft colors */

.bg-soft-primary {
    /*  background: linear-gradient( 135deg, rgba(99,102,241,.20), rgba(99,102,241,.43) );*/
    background: linear-gradient( 135deg, rgba(var(--bs-primary-rgb), .15), rgba(var(--bs-primary-rgb), .35) );
    backdrop-filter: blur(8px);
}.bg-soft-primary2 {
    /*  background: linear-gradient( 135deg, rgba(99,102,241,.20), rgba(99,102,241,.43) );*/
    background: linear-gradient( 135deg, rgba(var(--bs-primary-rgb), .15), rgba(var(--bs-primary-rgb), .35) );
    backdrop-filter: blur(8px);
}

    .bg-soft-primary .crm-icon {
        background: rgba(var(--bs-primary-rgb), .20);
        color: var(--bs-primary);
    }

.bg-soft-success {
    background: linear-gradient( 135deg, rgba(16,185,129,.20), rgba(16,185,129,.43) );
    backdrop-filter: blur(8px);
}

    .bg-soft-success .crm-icon {
        background: rgba(16,185,129,.15);
        color: #10b981;
    }

.bg-soft-danger {
    background: linear-gradient( 135deg, rgba(239,68,68,.20), rgba(239,68,68,.43) );
    backdrop-filter: blur(8px);
}

    .bg-soft-danger .crm-icon {
        background: rgba(239,68,68,.15);
        color: #ef4444;
    }

.bg-soft-warning {
    background: linear-gradient( 135deg, rgba(245,158,11,.20), rgba(245,158,11,.43) );
    backdrop-filter: blur(8px);
}

    .bg-soft-warning .crm-icon {
        background: rgba(245,158,11,.15);
        color: #f59e0b;
    }
.crm-card {
    border: 1px solid transparent;
    transition: .25s ease;
}

/* primary */
.bg-soft-primary:hover,
.bg-soft-primary:focus-within {
    border: 1px solid rgba(var(--bs-primary-rgb), .20);
    box-shadow: 0 0 0 4px rgba(99,102,241,.10), 0 10px 30px rgba(0,0,0,.06);
}
.bg-soft-primary2:hover {
    box-shadow: 0 0 0 4px rgba(99,102,241,.10), 0 10px 30px rgba(0,0,0,.06);
}
/* success */
.bg-soft-success:hover,
.bg-soft-success:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,.10), 0 10px 30px rgba(0,0,0,.06);
}

/* danger */
.bg-soft-danger:hover,
.bg-soft-danger:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.10), 0 10px 30px rgba(0,0,0,.06);
}

/* warning */
.bg-soft-warning:hover,
.bg-soft-warning:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245,158,11,.10), 0 10px 30px rgba(0,0,0,.06);
}


/* search input CRm*/
.page-search {
    position: relative;
}

.search-result-box {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    animation: searchBox .2s ease;
}

/* dark mode friendly */

[data-bs-theme="dark"] .search-result-box {
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

/* cards inside search */

.transaction-card {
    background: var(--bs-tertiary-bg);
    border: 1px solid transparent;
    transition: .2s ease;
}

    .transaction-card:hover {
        border-color: var(--bs-primary);
        transform: translateY(-2px);
        background: var(--bs-secondary-bg);
    }

/* scroll */

.search-result-box::-webkit-scrollbar {
    width: 7px;
}

.search-result-box::-webkit-scrollbar-thumb {
    background: var(--bs-secondary-color);
    border-radius: 30px;
}

/* animation */

@@keyframes searchBox {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.crm-user-card::before {
    content: '';
    display: block;
    height: 4px;
    border-radius: 12px;
    margin: -1.5rem -1.5rem 1rem;
    background: var(--bs-primary);
}
.crm-user-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    /*border-radius: 1.25rem;*/
    padding: 1.5rem;
    transition: all .25s ease;
}

    .crm-user-card:hover {
        border-color: var(--bs-primary);
        transform: translateY(-4px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
    }

.btn-primary-soft {
    background-color: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), .25);
    font-weight: 600;
}

    .btn-primary-soft:hover {
        background-color: var(--bs-primary);
        color: #fff;
    }

.quick-action-card {
    transition: all .25s ease;
    cursor: pointer;
}

    .quick-action-card:hover {
        transform: translateY(-3px);
        border-color: var(--bs-primary);
        box-shadow: 0 .5rem 1rem rgba(var(--bs-primary-rgb), .15);
    }

        .quick-action-card:hover .bi {
            transform: scale(1.1);
        }

    .quick-action-card .bi {
        transition: all .25s ease;
    }

.btn-danger-soft {
    background: rgba(220,53,69,.12);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.20);
}

    .btn-danger-soft:hover {
        background: #dc3545;
        color: white;
    }

.product-card {
    background: var(--bs-border-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all .25s ease;
}

    .product-card:hover {
        border-color: rgba(var(--bs-primary-rgb), .35);
        transform: translateY(-4px);
        box-shadow: 0 .5rem 1rem rgba(var(--bs-primary-rgb), .12);
    }
.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid var(--bs-border-color);
}
.btn-primary-soft {
    background: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), .20);
}

    .btn-primary-soft:hover {
        background: var(--bs-primary);
        color: #fff;
    }
.btn-danger-soft {
    background: rgba(220,53,69,.12);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.20);
}

    .btn-danger-soft:hover {
        background: #dc3545;
        color: #fff;
    }


.activity-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bs-body-bg);
    transition: all .25s ease;
}

    .activity-item:hover {
        border-color: rgba(var(--bs-primary-rgb), .25);
        transform: translateY(-2px);
    }

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.activity-result {
    background: rgba(var(--bs-primary-rgb), .06);
    border-radius: .75rem;
    padding: .75rem 1rem;
    color: var(--bs-body-color);
}
.info-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: rgba(var(--bs-primary-rgb), .05);
    border: 1px solid rgba(var(--bs-primary-rgb), .12);
    border-radius: .75rem;
}
.activity-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.info-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: rgba(var(--bs-primary-rgb),.05);
    border: 1px solid rgba(var(--bs-primary-rgb),.12);
    border-radius: .75rem;
}

.activity-result {
    background: rgba(var(--bs-primary-rgb),.05);
    border: 1px solid rgba(var(--bs-primary-rgb),.08);
    border-radius: 1rem;
    padding: 1rem;
    color: var(--bs-body-color);
}

@media (min-width:2000px) {

    .crm-col {
        width: 25%;
    }
}



/* =========================
   CRM KANBAN
========================= */

.jkanban_advanced {
    min-height: 400px;
}

/* ستون */
.kanban-board {
    border-radius: 18px !important;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    transition: all .3s ease;
}

    .kanban-board:hover {
        transform: translateY(-2px);
    }

/* هدر ستون */
.kanban-board-header {
    padding: 16px !important;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* مذاکره اولیه */
.kanban-board[data-id="todo"] .kanban-board-header {
    background: rgba(var(--bs-info-rgb), .12);
    color: var(--bs-info);
    border: 1px dashed rgba(13,110,253);
    border-radius : 10px ;
}

/* پیگیری */
.kanban-board[data-id="followup"] .kanban-board-header {
    background: rgba(var(--bs-warning-rgb), .15);
    color: #d28a00;
    border: 1px dashed rgba(255,193,7);
    border-radius: 10px;
}

/* موفق */
.kanban-board[data-id="success"] .kanban-board-header {
    background: rgba(var(--bs-success-rgb), .12);
    color: var(--bs-success);
    border: 1px dashed rgba(25,135,84);
    border-radius: 10px;
}

/* ناموفق */
.kanban-board[data-id="failed"] .kanban-board-header {
    background: rgba(var(--bs-danger-rgb), .12);
    color: var(--bs-danger);
    border: 1px dashed rgba(220,53,69);
    border-radius: 10px;
}





/* بدنه ستون */
.kanban-drag {
    padding: 14px;
    min-height: 500px;
}

/* کارت */
.kanban-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
}

/* محتوای کارت */
.crm-card-transaction {
    border: 1px dashed var(--bs-primary);
   
    padding: 16px;
    background: var(--bs-body-bg);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

    /* نوار بالایی کارت */
   /* .crm-card-transaction::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: var(--bs-primary);
    }*/

    /* هاور */
    .crm-card-transaction:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.10);
        border-color: var(--bs-primary);
    }

    /* عنوان */
    .crm-card-transaction .fw-bold {
        font-size: 15px;
        color: var(--bs-heading-color);
        line-height: 1.7;
    }

/* شرکت */
.crm-company-transaction {
    color: var(--bs-secondary-color);
    font-size: 13px;
}

/* شخص */
.crm-person-transaction {
    color: var(--bs-body-color);
    font-size: 13px;
    margin-top: 6px;
}

/* فوتر */
.crm-footer-transaction {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* دکمه */
.crm-card-transaction .btn {
  
    padding-inline: 16px;
}

/* حالت درگ */
.gu-mirror .crm-card-transaction {
    transform: rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,.15);
}

/* دارک مود */
[data-bs-theme="dark"] .kanban-board {
    background: #1c1f26;
    border-color: #2d3340;
}

[data-bs-theme="dark"] .crm-card-transaction {
    background: #232833;
   /* border-color: var(--bs-primary);*/
    color: #fff;
}

[data-bs-theme="dark"] .crm-company-transaction {
    color: #adb5bd;
}
.crm-todo {
    background: #eef7ff;
    border-color: #0d6efd;
}

.crm-followup {
    background: #fff8e7;
    border-color: #ffc107;
}

.crm-success {
    background: #eefcf3;
    border-color: #198754;
}

.crm-failed {
    background: #fff1f2;
    border-color: #dc3545;
}
[data-bs-theme="dark"] .crm-todo {
    background: rgba(13,110,253,.15);
}

[data-bs-theme="dark"] .crm-followup {
    background: rgba(255,193,7,.15);
}

[data-bs-theme="dark"] .crm-success {
    background: rgba(25,135,84,.15);
}

[data-bs-theme="dark"] .crm-failed {
    background: rgba(220,53,69,.15);
}

/*.crm-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    min-width: 320px;
    width : 420px ;
    padding: 16px 20px;
    border-radius: 16px;
    z-index: 99999;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    animation: slideUp .3s ease;
}

.crm-toast-close {
    position: absolute;
    top: 15px;
    left: 12px;
    border: none;
    background: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    color: black ;
    
}*/

.crm-toast.todo {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #9ec5fe;
}

.crm-toast.followup {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffec99;
}

.crm-toast.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.crm-toast.failed {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

@@keyframes slideUp {

    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.crm-toast.todo {
    background: #eef4ff;
    color: #3b5bdb;
    border: 1px solid #c7d2fe;
}

.crm-toast.followup {
    background: #fff8e6;
    color: #b7791f;
    border: 1px solid #fde68a;
}

.crm-toast.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.crm-toast.failed {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}
.crm-toast-close {
    position: absolute;
    top: 15px;
    left: 12px;
    border: none;
    background: transparent;
    font-size: 18px;
    opacity: .6;
    cursor: pointer;
    transition: .2s;
    color: black;
}

    .crm-toast-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }
.crm-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 450px;
    width: 440px ;
    padding: 16px 20px;
    border-radius: 16px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
}


.crm-background {
    position: relative;
    min-height: 100%;
    background: radial-gradient( circle at top right, rgba(13,110,253,.08), transparent 80% ), radial-gradient( circle at bottom left, rgba(25,135,84,.06), transparent 80% ), var(--bs-body-bg);
}

    .crm-background::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: linear-gradient( rgba(128,128,128,.04) 1px, transparent 1px ), linear-gradient( 90deg, rgba(128,128,128,.04) 1px, transparent 1px );
        background-size: 30px 30px;
        pointer-events: none;
    }

.crm-header {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient( 135deg, rgba(13,110,253,.05), rgba(13,110,253,.01) );
    border: 1px dashed rgba(13,110,253,.15);
}

.crm-title {
    font-size: 28px;
    font-weight: 800;
}

.crm-subtitle {
    max-width: 700px;
    color: var(--bs-secondary);
    line-height: 1.8;
}

.crm-add-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--bs-primary);
    color: white;
    font-weight: 600;
    transition: .25s;
}

    .crm-add-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13,110,253,.25);
    }

.crm-tour-btn {
    border-radius: 14px;
    padding: 12px 18px;
}




    .crm-card-transaction:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }

.crm-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f1ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.crm-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(13,110,253,.08);
    color: var(--bs-primary);
    flex-shrink: 0;
    background: rgba(13,110,253,.08);
    border: 1px solid rgba(13,110,253,.12);
    object-fit: contain;
    filter: contrast(2.15) brightness(1.15) saturate(1.2);
    opacity: .9;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%; /* برای RTL */
        margin-top: 0;
        display: none;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

.dash-video {
    position: absolute;
    right: -19px;
    top: 2px;
}
.product-image-card {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 10px;
    background: #fff;
    transition: 0.2s ease;
}

    .product-image-card:hover {
        transform: translateY(-3px);
    }

    .product-image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent)
    }

.image-actions {
    position: absolute;
    top: -10px;
    left: 0;
    padding: 8px;
    text-align: center;
}

    .image-actions button {
        border: none;
      
        color: white;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 12px;
        cursor: pointer;
        transition: 0.2s;
    }

      




