
    .ayavnil-contact-info-main {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: relative;
        overflow-x: hidden;
        /* جلوگیری از بیرون‌زدن افقی */
    }


    /* استایل‌ها */
    .avaynil-contact-form {
        width: 100%;
        padding: 10px;
        background-color: #F5FFFA;
        border: 1px solid #ddd;
        border-radius: 10px;
        margin: 0 auto 10px auto;
        box-sizing: border-box;
        overflow-x: hidden;
        flex: 1 1 100%;
        min-width: 0;
    }

    .avaynil-contact-form * {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    .avaynil-contact-form label {
        display: block;
        font-size: 12px;
        color: #555;
        margin-bottom: 5px;

    }

    .avaynil-contact-form span {
        display: block;
        font-size: 14px;
        background-color: #F5FFFA;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 5px;

    }

    .avaynil-contact-form .active {
        color: green;
    }

    .avaynil-contact-form .inactive {
        color: red;
    }


    /****************************استایل موبایل و واتس آپ و تلفن  */
    .avaynil-contact-crm-container {
        display: flex;
        flex-wrap: wrap;
        /* 👈 جلوگیری از بیرون زدگی */
        justify-content: space-between;
        align-items: center;
        gap: 3px;
        text-align: center;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 50%;
    }

    .avaynil-contact-crm-info {
        display: flex;
        justify-content: center;
        flex: 1;
        font-size: 12px;
        padding: 2px;
        /* border: 1px solid #ddd; */
        /* border-radius: 5px; */
        background-color: rgba(255, 255, 255, 0.86);
        /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); */
    }

    /* حالت موبایل */
    @media (max-width: 768px) {

        .avaynil-contact-crm-info {
            display: flex;
            justify-content: center;
            flex: 1;
            font-size: 8px;
            padding: 5px;
            /* border: 1px solid #ddd; */
            /* border-radius: 5px; */
            background-color: rgba(255, 255, 255, 0.86);
            /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); */
        }

        .avaynil-contact-crm-info .avaynil-contact-crm-icon {
            width: 20px;
            height: 20px;
            display: inline-block;
        }

        .avaynil-contact-crm-info .avaynil-contact-crm-label {
            display: block;
            margin-top: 5px;
        }
    }

    .avaynil-contact-crm-info .avaynil-contact-crm-icon {
        width: 30px;
        height: 30px;
        display: inline-block;
    }

    .avaynil-contact-crm-info .avaynil-contact-crm-label {
        display: block;
        font-size: 12px;
        margin-top: 5px;
    }

    .avaynil-contact-crm-input {
        display: block;
        font-size: 14px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: #F5FFFA;
    }

    /**************************************************/
    .avaynil-modal-crm-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 9998;
        overflow: auto;

    }

    .avaynil-modal-crm-edit {
        display: none;
        position: fixed;
          overflow-y: auto;
          max-height: 90vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 800px;
        background: #fff;
        padding: 20px;
        border: 1px solid #ccc;
        z-index: 9999;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        overflow: auto;

    }

    .avaynil_edit_contacts_center {
        text-align: center;
        align-items: center;
        justify-content: center;
        /* وسط‌چین افقی */

    }

    .avaynil_edit_contacts_row {
        display: flex;
        margin-bottom: 5px;
    }

    .avaynil_edit_contacts_col_50 {
        width: 50%;
        padding: 5px;
    }

    .avaynil_edit_contacts_col_50 span {
        width: 100%;
    }

    .avaynil_edit_contacts_col_33 {
        width: 33.3333%;
        padding: 5px;
    }

    .avaynil_edit_contacts_col_100 {

        width: 100%;
        padding: 5px;
    }

    .avaynil_edit_contacts_label {
        /* display: flex; */
        /* margin-bottom: 4px; */
    
        /* سایز پیش‌فرض */
    }

    .btn-add-att-command {

        border: none;
        padding: 4px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background-color 0.3s;
    }

    .btn-add-att-command:hover {
        background-color: #e6f0ff;
        /* رنگ ملایم هنگام هاور */
    }

    .icon-att-command {
        cursor: pointer;
        width: 40px;
        height: 30px;
        object-fit: contain;
    }


    /* حالت موبایل */
    @media (max-width: 768px) {
        .btn-add-att-command {
            font-size: 9px !important;
            height: 60px !important;
            width: 30px !important;
        }

        .icon-att-command {
            width: 15px;
            height: 20px;
        }
    }

    /* ریسپانسیو برای حالت موبایل */
    @media (max-width: 768px) {
        .avaynil_edit_contacts_label {
            font-size: 10px;
            /* سایز کوچکتر برای موبایل */
        }

        .avaynil_crm_input {
            font-size: 10px;
        }

        .avaynil-contactcredit-label {
            font-size: 7px !important;
        }


    }

    .avaynil-command-customer-status {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
        margin: 10px 0;
    }

    .avaynil_customer_status {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f0f0f0;
        padding: 8px 12px;
        border-radius: 12px;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.3s ease;
        white-space: nowrap;
    }

    .avaynil_customer_status:hover {
        background: #e0e0e0;
    }

    .avaynil_customer_status input {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #777;
        border-radius: 50%;
        position: relative;
        cursor: pointer;
    }

    .avaynil_customer_status input:checked::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 8px;
        height: 8px;
        background: #007bff;
        border-radius: 50%;
    }

    .avaynil_customer_status span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 16px;
        line-height: 1;
    }

    .label-text {
        font-size: 14px;
    }

    /* ===== ریسپانسیو موبایل ===== */
    @media (max-width: 768px) {
        .avaynil-command-customer-status {
            flex-wrap: nowrap;
            justify-content: flex-start;
            gap: 2px;
            padding: 2px 0;
            overflow-x: auto;
            scroll-padding-left: 10px;
            /* اضافه کردن فاصله داخلی اسکرول از چپ */
            /* یا padding-left: 10px; اگر مناسب است */
        }

        .avaynil_customer_status {
            flex: 0 0 auto;
            font-size: 1px !important;
            padding: 1px 1px;
            justify-content: center;
            border: none;
            background-color: transparent;
        }

        .avaynil_customer_status span {
            font-size: 14px !important;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            border: none;
            background-color: transparent;
            margin: 1px;
            padding: 1px;
        }

        .avaynil_customer_status input {
            appearance: none;
            width: 10px !important;
            height: 10px !important;
            padding: 2px;
            margin: 1px;

        }

        .label-text {
            display: none !important;
        }
    }



    .avaynil_edit_contacts_col_66 {
        width: 100%;
    }

    .avaynil_crm_input {
        font-size: 14px;
    }

    .avaynil-contactcredit-label {
        font-size: 12px;
    }


    .avaynil-command-customer-status {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        padding: 5px;
        font-size: 12px;
    }

    /**************************************************/
    .avaynil-avatar {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #ddd;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
        padding: 5px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background-color: #fff;
        display: block;
        margin: 0 auto;
        perspective: 1000px;
    }

    .avaynil-avatar:hover {
        transform: rotateY(10deg) rotateX(5deg) scale(1.05);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    }

    /* ریسپانسیو برای حالت موبایل */
    @media (max-width: 768px) {
        .avaynil-avatar {
            width: 100px;
            height: 100px;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        }
    }

    /**************************************************/
    .avaynil-avatar-user {
        width: 35px;
        height: 35px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #ddd;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
        padding: 0px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background-color: #fff;
        display: block;
        direction: rtl;
        perspective: 1000px;
    }

    .avaynil-avatar-user:hover {
        transform: rotateY(10deg) rotateX(5deg) scale(1.05);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    }

    /* ریسپانسیو برای حالت موبایل */
    @media (max-width: 768px) {
        .avaynil-avatar-user {
            width: 20px;
            height: 20px;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        }
    }

    /*************************************************** لیبل ****/
    .avaynil-contact-avatar {
        background: linear-gradient(145deg, #ffffff, #e6e6e6);
        border-radius: 16px;
        box-shadow: 4px 4px 12px #ccc, -4px -4px 12px #fff;
        padding: 20px;
        max-width: 700px;
        margin: 20px auto;
        text-align: center;
        transition: all 0.3s ease-in-out;
    }


    .avaynil-contact-code-name {
        display: block;
        font-size: 21px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 8px;
        color: #333;
    }

    .avaynil-contact-title {
        display: block;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 10px;
        color: #666;
    }

    .avaynil-contact-location {
        display: block;
        font-size: 14px;
        color: #999;
    }

    /* حالت موبایل */
    @media (max-width: 480px) {
        .avaynil-contact-avatar {
            padding: 15px;
        }

        .avaynil-contact-code-name {
            font-size: 18px;
            font-weight: bold;
        }

        .avaynil-contact-title {
            font-size: 16px;
            font-weight: 500;
        }

        .avaynil-contact-location {
            font-size: 13px;
        }
    }

    /* حالت دسکتاپ - فونت بزرگ‌تر و بولدتر */
    @media (min-width: 768px) {
        .avaynil-contact-code-name {
            font-size: 24px;
            font-weight: 800;
        }

        .avaynil-contact-title {
            font-size: 20px;
            font-weight: 600;
        }

        .avaynil-contact-location {
            font-size: 16px;
            font-weight: 500;
        }
    }


    /**************************************************/
    /* استایل کلی منوی دکمه‌ها */
    /* استایل کلی منوی دکمه‌ها */
    /* فرم کلی منو */
    .avaynil_menu_form_right {
        width: 100%;
        background-color: #ffffff;
        border: 2px solid #ddd;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        /* فاصله‌گذاری مساوی بین دکمه‌ها */
        align-items: stretch;
        box-sizing: border-box;
        /* ارتفاع ثابت برای پخش یکنواخت دکمه‌ها */
    }


    /* دکمه‌های اصلی */
    .avaynil_menu_form_right .avaynil_menu_item button.btn_home_page {
        display: inline-flex;
        /* تغییر به inline-flex */
        width: 100%;
        /* height: 45px; */
        padding: 0 8px;
        font-size: 15px;
        /* line-height: 45px; */
        text-align: center;
        text-decoration: none;
        border-radius: 12px;
        color: #fff;
        background: #008CBA;
        /* رنگ آبی جذاب */
        box-shadow: 4px 4px 8px #007c8c, -4px -4px 8px #aad9e2;
        margin: 8px 0;
        transition: background 0.3s ease, transform 0.3s ease;
        font-weight: 600;
        border: none;
        cursor: pointer;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        justify-content: center;
        /* مرکز قرار دادن متن به صورت افقی */
        align-items: center;
        /* مرکز قرار دادن متن به صورت عمودی */
    }

    /* افکت hover برای دکمه‌ها */
    .avaynil_menu_form_right .avaynil_menu_item button.btn_home_page:hover {
        background: #007B9E;
        /* تغییر رنگ در hover */
        box-shadow: inset 3px 3px 6px #006b7a, inset -3px -3px 6px #ade8ff;
        transform: translateY(-2px);
        /* افکت جابجایی */
    }

    /* حالت موبایل */
    @media (max-width: 768px) {
        .avaynil_menu_form_right {
            width: 100%;
            /* overflow-x: auto; */
        
        }

    
    }

    /*************************************منوی سمت چپ **/
    .avaynil_menu_form_left {
        width: 100%;
        max-width: 240px;
        margin: 10px auto;
        padding: 15px;
        background-color: #F5FFFA;
        border: 2px solid #ddd;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        /* فاصله‌گذاری مساوی بین دکمه‌ها */
        align-items: stretch;
        box-sizing: border-box;
        height: 400px;
        /* ارتفاع ثابت برای پخش یکنواخت دکمه‌ها */
    }

    /* دکمه‌های اصلی */

    .avaynil_menu_form_left .avaynil_menu_item button.btn_card_visit,
    button.btn-daryaft-to-hesabfa,
    button.open-reminder-log-modal_2 {
        display: inline-flex;
        /* تغییر به inline-flex */
        width: 100%;
        height: 45px;
        padding: 0 8px;
        font-size: 15px;
        line-height: 45px;
        text-align: center;
        text-decoration: none;
        border-radius: 12px;
        color: #fff;

        margin: 8px 0;
        transition: background 0.3s ease, transform 0.3s ease;
        font-weight: 600;
        border: none;
        cursor: pointer;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        justify-content: center;
        /* مرکز قرار دادن متن به صورت افقی */
        align-items: center;
        /* مرکز قرار دادن متن به صورت عمودی */
    }

    /* افکت hover برای دکمه‌ها */


    /* رنگ خاص برای کارت ویزیت */
    .avaynil_menu_form_left .avaynil_menu_item button.btn_card_visit {
        background: #d96bbf;
        color: #fff;
        box-shadow: 4px 4px 8px #b25a9f, -4px -4px 8px #f880df;
    }

    .avaynil_menu_form_left .avaynil_menu_item button.btn_card_visit:hover {
        background: #e47bcb;
    }

    /* رنگ دکمه دریافت */
    .avaynil_menu_form_left .avaynil_menu_item button.btn-daryaft-to-hesabfa {
        background-color: #007bff;
        color: #fff !important;
        font-weight: bold;
        box-shadow: 4px 4px 8px #0056b3, -4px -4px 8px #339dff;
    }

    .avaynil_menu_form_left .avaynil_menu_item button.btn-daryaft-to-hesabfa:hover {
        background-color: #0056b3;
    }

    .avaynil_menu_form_left .avaynil_menu_item button.open-reminder-log-modal {
        background-color: #0de014;
        color: #fff !important;
        font-weight: bold;
        box-shadow: 4px 4px 8px #0baa10, -4px -4px 8px #75d678;
    }

    .avaynil_menu_form_left .avaynil_menu_item button.open-reminder-log-modal:hover {
        background-color: #0b940f;
    }

    /* حالت موبایل */
    @media (max-width: 768px) {
        .avaynil_menu_form_left {
            width: 50%;
            max-width: 83px;
            height: 500px;
            /* overflow-x: auto; */
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            /* فاصله مساوی در موبایل هم */
            align-items: center;
            text-align: center;
            white-space: nowrap;
        }


        .avaynil_menu_form_left .avaynil_menu_item button.btn_card_visit,
        .avaynil_menu_form_left .avaynil_menu_item button.btn-daryaft-to-hesabfa,
        .avaynil_menu_form_left .avaynil_menu_item button.open-reminder-log-modal {
            width: 30px;              /* باریک‌تر */
            min-height: 80px;
            padding: 5px 2px;
            font-size: 12px;
            writing-mode: vertical-rl; /* متن از بالا به پایین */
            text-orientation: mixed;
            white-space: normal;
            line-height: 1.3;
            text-align: center;
            display: flex;            /* 👈 اضافه شد تا justify/align عمل کند */
            justify-content: center;  /* مرکز افقی متن */
            align-items: center;      /* مرکز عمودی متن */
        }
        
    }

    .avaynil_menu_item {
        width: 100%;
        margin: 4px;
        text-align: center;
        justify-content: center;
        /* مرکز قرار دادن متن به صورت افقی */
        align-items: center;
        /* مرکز قرار دادن متن به صورت عمودی */
    }


    .card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(181, 241, 173, 0.2); /* شفافیت کم */
        pointer-events: none; /* اجازه کلیک روی محتوا */
        z-index: 5;
        border-radius: inherit;
    }
    
