/*Phần chung cho các màn Nam xử*/
.min-w-10px{
    min-width: 10px;
}
.min-w-44px{
    min-width: 44px;
}
.max-w-75 {
    max-width: 75%;
}
.text-limit-des-chat {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

#detail-content-chat-view-v2, #chat-vision-v2, #chat-file-v2, #chat-web-content-v2, #chat-image-v2 {
    height: calc(100vh - 130px);
    .chat-main-container {
        max-height: 100%;
        width: 100%;
        margin-bottom: 0;

        #chat-system {
            #chat-container {
                max-height: calc(100vh - 305px);
                height: calc(100vh - 405px);
            }

            .msg {
                padding-bottom: 20px;
            }
        }

        .chat-sidebar-container {
            .chat-sidebar-messages {
                .chat-sidebar-message {
                    overflow: unset;
                    padding: 10px 14px;
                    margin-bottom: 10px;
                    transition: background-color 0.3s ease;
                    cursor: pointer;
                    -webkit-user-select: none;
                    -moz-user-select: none;
                    -ms-user-select: none;
                    user-select: none;
                    position: relative;

                    border-radius: 8px;
                    border: 1px solid #7F56D9;
                    background: #FFF;

                    .chat-actions-v2 {
                        position: absolute;
                        top: 10px;
                        right: 35px;
                        transition: all 0.3s ease;
                        opacity: 1;
                        cursor: pointer;
                        color: black;

                        .dropdown-menu.dropdown-menu-right {
                            left: auto;
                            top: 24px;
                            right: -24px;
                            width: 180px;

                            border-radius: 8px;
                            border: 1px solid #E4E7EC;
                            background: #FFF;
                            box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
                        }

                        .group-action-v2 {
                            position: absolute;
                            padding: 4px;
                            width: 24px;
                            background: #F2F4F7;
                            height: 24px;
                            display: flex;
                        }
                    }
                }

                .selected-message {
                    border: 1px solid #7F56D9;
                    background-color: #FFF;

                    .chat-title {
                        color: #475467;
                    }
                }

                .chat-title {
                    display: block;
                    width: 200px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;

                    font-size: 16px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 24px;
                }
            }
        }
        .chat-message-container {
            .card-header {
                justify-content: space-between;
                min-height: 79px;

                .w-50-mb-80 {
                    width: 50%;
                }

                #chat-export-button {
                    .dropdown-menu.show {
                        width: 180px;
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                    }

                    button {
                        width: 36px;
                        height: 36px;
                    }

                    .dropdown-item {
                        font-size: 14px;
                        font-style: normal;
                        font-weight: 500;
                        padding: 4px 12px;
                        cursor: pointer;

                        color: #344054;
                        line-height: 20px;
                        display: flex;
                        gap: 8px;
                    }
                }
            }
            .card-footer-chat-v2 {
                .btn-group-chat-v2 {
                    display: flex;
                    border-top: 1px solid #F4EBFF;
                    background: #F9F5FF;
                    border-radius: 0 0 12px 12px;
                    padding: 2px 0;
                    overflow: auto;
                    .btn:hover {
                        color: #7F56D9 !important;
                    }
                    .btn {
                        color: #7F56D9;
                        font-weight: 500;
                        line-height: 20px;
                        position: relative;
                        display: flex;
                        align-items: center;
                        gap: 5px;
                        white-space: nowrap;
                    }
                    .after-line::after {
                        content: "";
                        width: 1px;
                        height: 18px;
                        opacity: 0.2;
                        background: #7F56D9;
                        position: absolute;
                        top: 7px;
                        right: -10px;
                    }
                }

                .chat-controllers-v2 {
                    textarea {
                        padding: 10px;
                        border: none;
                    }
                }
            }
        }
    }
}

.text-color-purple{
    color: #6941C6 !important;
}
/*Phần riêng cho màn Chat Vission*/


#detail-content-chat-view-v2 {
    .btn-group-chat-v2 .btn:hover {
        color: #7F56D9 !important;
    }

}

.chat-small {
    width: 220px !important;
}

.msg-text {
    p {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
    }
}

#chat-system .message-bubble {
    position: relative;
    height: auto;

    display: flex;
    padding: 10px 14px;
    align-items: center;
    gap: 8px;
    align-self: stretch;

    border-radius:  0 8px 8px 8px;
    border: 1px solid #E4E7EC;
    background: #F9FAFB;
    margin-top: 6px;
}

#chat-system .message-bubble-me {
    position: relative;
    height: auto;

    display: flex;
    padding: 10px 14px;
    align-items: center;
    gap: 8px;
    align-self: stretch;

    border-radius: 8px 0 8px 8px;
    border: 1px solid #E4E7EC;
    background: #7F56D9;
    margin-top: 6px;

    .msg-text {
        color: #ffffff;
    }
}

.message-content {

    .name {
        overflow: hidden;
        color: #344054;
        text-overflow: ellipsis;

        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
    }
}

#chat-system .right-msg .message-bubble {
    background: #7F56D9;
    color: #fff;
}

#chat-system .left-msg .message-bubble:before {
    display: none;
}

#balance-status-v2 {
    border-radius: 8px;
    background: #FFFAEB;

    display: flex;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 200px;
}

.coin-avatar {
    width: 16px;
    height: 16px;
}

.text-token-use {
    color: #FDB022;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
}

.btn-group, .btn-group-vertical {
    gap: 16px;
}

.btn-group > .btn:not(:first-child), .btn-group > .btn-group:not(:first-child) > .btn {
     border-top-left-radius: 8px !important;
     border-bottom-left-radius: 8px !important;
}

.btn-group>.btn-group:not(:first-child)>.btn, .btn-group>.btn:nth-child(n+3), .btn-group>:not(.btn-check)+.btn {
     border-top-left-radius: 8px;
     border-bottom-left-radius: 8px;
}

#chat-system {
    min-height: 400px;
    font-size: 16px !important;
}

#chat-file-v2, #detail-content-chat-view-v2, #chat-web-content-v2, #chat-image-v2, #chat-vision-v2 {
    .input-box .form-control#chat-search-v2 {
        padding: 9px 10px 9px 40px !important;
    }
}

#wizard-form, #openai-form #rewrite-v2, #rss-form, #chat-web-content-v2 {
    .height-content-100vh {
        height: calc(100vh - 120px);
    }

    .tox-tinymce {
        min-height: 400px !important;
        height: calc(100vh - 250px) !important;
    }

    .btn-next-step {
        display: flex;
        width: 100%;
        padding: 10px 14px;
        justify-content: center;
        align-items: center;
        gap: 4px;
        color: #ffffff;

        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.12);
        background: #101828;

        /* Shadows/shadow-xs-skeuomorphic */
        box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.18) inset, 0 -2px 0 0 rgba(16, 24, 40, 0.05) inset, 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    }

    .btn-new-wizard-large {
        min-width: 50px;
        color: #667085;

        /* Text sm/Semibold */
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px; /* 142.857% */

        display: flex;
        padding: 10px 14px;
        justify-content: center;
        align-items: center;
        gap: 4px;

        border-radius: 8px;
        border: 1px solid #D0D5DD;
        background: #FFF;

        /* Shadows/shadow-xs-skeuomorphic */
        box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.18) inset, 0 -2px 0 0 rgba(16, 24, 40, 0.05) inset, 0 1px 2px 0 rgba(16, 24, 40, 0.05);

        &:hover {
            background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%) !important;
            color: #ffffff;
        }
    }

    #balance-status-v2 {
        border-radius: 8px;
        background: #F9F5FF;

        display: flex;
        padding: 8px 12px;
        align-items: center;
        gap: 8px;
    }

    .text-token-use-wizard {
        color: #7F56D9;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .text-title-input-v2 {
        color: #344054;

        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        margin-bottom: 6px !important;
    }

    .btn-generate-ideas {
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%);

        min-height: 44px;
        display: flex;
        padding: 10px 14px;
        justify-content: center;
        align-items: center;
        gap: 4px;
        color: #FFF;

        /* Text sm/Semibold */
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px; /* 142.857% */
    }

    .btn-skip-ideas {
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.12);
        background: #F4EBFF;

        min-height: 44px;
        display: flex;
        padding: 10px 14px;
        justify-content: center;
        align-items: center;
        gap: 4px;
        color: #7F56D9;

        /* Text sm/Semibold */
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px; /* 142.857% */
    }

    .btn-generate-ideas-v2 {
        border-radius: 0 8px 8px 0;
        border: 2px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%);

        display: flex;
        padding: 8px;
        justify-content: center;
        align-items: center;
        gap: 4px;
        color: #FFF;

        /* Text sm/Semibold */
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px; /* 142.857% */
    }

    #url-link{
        display: flex;
        padding: 10px 2px 10px 14px;
        align-items: center;
        gap: 8px;
        align-self: stretch;

        border-radius: 8px;
        border: 1px solid #E4E7EC;
        background: #FFF;
    }

    #url-process-button {
        position: absolute;
        height: 40px;
        right: 0;
        top: 1px;
    }
    .input-box .form-control {
        border: 1px solid var(--Colors-Border-border-primary);
        background-color: var(--Colors-Foreground-fg-white);
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        color: var(--colors-text-text-primary-900);
        padding: 10px 14px;

        &:focus {
            border: 1px solid #7F56D9;
        }

        &:hover {
            border: 1px solid #7F56D9;
        }
    }

    .input-box .form-group {
        textarea {
            height: 100px !important;
        }
    }

    .input-box .form-control.talking-point-result-input {
        border: none !important;
    }
    .btn-generate-keywords {
        display: flex;
        padding: 8px 12px;
        margin: 12px 0;
        justify-content: center;
        align-items: center;
        gap: 4px;
        align-self: stretch;

        border-radius: 8px;
        background: #F2F4F7;
        border: none;

        color: #344054;

        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
    }

    .text-after-genre {
        color: #667085;
        text-align: center;

        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 18px; /* 150% */
    }

    .text-next-step {
        color: #667085;

        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .text-check-words {
        color: #344054;

        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
    }

    #keywords-wrapper input.checkbox-btn + label {
        box-shadow: none;
        margin-right: 12px;
        margin-bottom: 12px;
        text-transform: none;
        cursor: pointer;
        transition: all 0.3s ease;

        border-radius: 9999px;
        border: 1px solid #E4E7EC;
        background: #F9FAFB;

        display: flex;
        padding: 4px 12px;
        align-items: center;

        color: #344054;
        text-align: center;

        /* Text sm/Medium */
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;

        &:hover {
            border: 1px solid #ABEFC6;
            background: #ECFDF3;
            color: #067647;
        }
    }

    #keywords-wrapper input.checkbox-btn + label.active {
        border: 1px solid #ABEFC6;
        background: #ECFDF3;
        color: #067647;
    }

    #ideas-wrapper input.radio-btn + label {
        background: #FFF;
        padding: 1rem;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 1rem;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #D0D5DD;
        flex-direction: row-reverse;
        box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);

        color: #344054;

        /* Text sm/Semibold */
        font-style: normal;
        line-height: 20px; /* 142.857% */

        &:hover {
            border: 1px solid #7F56D9;
        }
    }

    #outlines-wrapper input.outline-btn + label {
        background: #FFF;
        padding: 1rem;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 1rem;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        border: 1px solid #D0D5DD;
        box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);

        color: #344054;

        /* Text sm/Semibold */
        font-style: normal;
        line-height: 20px; /* 142.857% */

        &:hover {
            border: 1px solid #7F56D9;
        }
    }

    #outlines-wrapper input.outline-btn + label:has(ul.active) {
        border: 1px solid #7F56D9;
    }

    #outlines-wrapper .outline {
        padding: 16px;
        font-size: 14px;
        list-style-type: square;

        color: #344054;

        font-style: normal;
        font-weight: 500;
        line-height: 20px;
    }


    #outlines-wrapper input.outline-btn:not(:checked) + label:hover .idea-icon, #ideas-wrapper input.radio-btn:not(:checked) + label:hover .idea-icon {
        opacity: 1;
        color: #7F56D9;
    }

    #outlines-wrapper input.outline-btn + label:active .idea-icon, #outlines-wrapper input.outline-btn:checked + label .idea-icon, #ideas-wrapper input.radio-btn + label:active .idea-icon, #ideas-wrapper input.radio-btn:checked + label .idea-icon {
        opacity: 1;
        color: #7F56D9;
    }

    #add-new-section {

    }

    .checkbox-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .checkbox-input {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    label {
        display: inline-block;
        margin-bottom: 0;
    }

    .text-main-step {
        color: #101828;

        /* Text lg/Semibold */
        font-size: 18px;
        font-style: normal;
        font-weight: 600;
        line-height: 28px;
    }

    .text-or {
        color: #667085;
        text-align: center;

        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 18px; /* 150% */
    }


    select.form-select {
        background-color: #fff;
        background-size: 10px 10px;
        display: flex;
        padding: 10px 14px;
        align-items: center;
        gap: 8px;
        align-self: stretch;
        border-radius: 8px;
        border: 1px solid #D0D5DD;

        color:#101828;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 150% */

        option {
            color: #101828;

            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 24px; /* 150% */
        }
    }
    .awselect .front_face .current_value {
        font-family: "Inter", sans-serif !important;
        font-size: 14px;
        font-weight: 500 !important;
    }

    .form-text {
        color: #475467;

        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 18px;
    }

    .btn-primary {
        font-size: 10px;
        min-width: 100px;
        text-transform: uppercase;
        color: #fff !important;
        transition: all 0.3s;

        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.12);
        background: #101828;

        display: flex;
        padding: 10px 14px;
        justify-content: center;
        align-items: center;
        gap: 4px;

        /* Shadows/shadow-xs-skeuomorphic */
        box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.18) inset, 0 -2px 0 0 rgba(16, 24, 40, 0.05) inset, 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    }

    .btn-primary-v2 {
        min-height: 42px;
        min-width: 100px;
        text-transform: uppercase;
        color: #fff !important;
        transition: all 0.3s;

        border-radius: 8px;
        gap: 4px;

        /* Text sm/Semibold */
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px; /* 142.857% */

        display: flex;
        padding: 9px 14px;
        justify-content: center;
        align-items: center;
        border: 2px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%);
    }

    .btn-absolute {
        top: 0;
        right: 0;
        border-radius: 0 8px 8px 0 !important;
    }

    .wizard-nav .wizard-nav-inner .wizard-nav-text .responsive {
        padding-top: 0 !important;
    }
}

#main-wrapper .register-button:hover, #main-wrapper .register-button:focus, #main-wrapper .dashboard-button:hover, #main-wrapper .dashboard-button:focus {
    border: 2px solid rgba(255, 255, 255, 0.40) !important;
    background: linear-gradient(90deg, #7D37F6 0%, #CC41F6 228.18%) !important;
}

#main-wrapper #login-button:hover, #main-wrapper #login-button:focus {
    display: inline-flex;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 6px;

    border-radius: 9999px;
    border: 2px solid #7D37F6;

    color: #7D37F6;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#main-wrapper #login-button {
    padding: 12px 16px;
    margin-right: 0;
    vertical-align: middle;
    line-height: normal;
    background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overflow-v2 {
    overflow: scroll;
    height: 100vh;
}

.templates-nav-menu .nav-tabs {
    padding: 5px;
}

.overflow-hidden-desktop {
    overflow: hidden;
}

.desktop-hidden {
    display: none;
}

.p-24px-step-1 {
    padding: 0;
}

.step-no-data {
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 16px;
}

.text-step-no-data {
    color: #667085;
    text-align: center;

    /* Text sm/Medium */
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
}

#keywords-section, #ideas-section {
    border-radius: 16px;
    background: #FFF;
}

.mobile-width-to-scroll {
    width: max-content;
    overflow: scroll;
    padding: 15px;
}

.wizard-nav .wizard-nav-inner {
    padding: 0;
}
.btn-icon-left{
    color: #667085;
    border-radius: 4px;
    border: 1px solid #E4E7EC;
    background: #FFF;
    margin-right: 5px;
}

.switch-branch-v2 {
    width: 100%;
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: space-between;
    cursor: pointer;

    color: #344054;

    /* Text sm/Medium */
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
}


.text-total-words-v2 {
    color: #475467;

    /* Text sm/Regular */
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */

    position: absolute;
    bottom: 1rem;
    margin-bottom: 0;
}

#rss-form .input-box #document, #openai-form #rewrite-v2 .input-box #document {
    color: #667085;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 155.556% */

    padding: 8px 16px;
    border: none;
}

#wizard-form, #openai-form #rewrite-v2 {
    select#project {
        border: none;
        color: #667085;

        /* Text sm/Medium */
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px; /* 142.857% */
        text-align: end;

        display: block;
        width: 100%;
        padding: .375rem 2.25rem .375rem .75rem;
        -moz-padding-start: calc(0.75rem - 3px);
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right .75rem center;
        background-size: 16px 12px;
        border-radius: .25rem;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        margin-top: 8px;
    }
}

#save-button-template-v2 {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 4px;

    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #F4EBFF;

    color: #7F56D9;

    /* Text sm/Semibold */
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
    cursor: pointer;
}

.btn-copy-text-v2 {
    display: flex;
    padding: 8px 10px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    border-radius: 8px;
    border: 1px solid #E4E7EC;
    background: #FFF;
}

.template-action-buttons-v2 {
    padding: 8px 10px !important;
    border-radius: 8px;
    border: 1px solid #E4E7EC;
    background: #FFF;
    position: relative;
}

.template-action-buttons {
    position: relative;
    right: 0;
    margin: 0 12px;
}

.card-body-chat-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 186px !important;
    flex: 1 1 auto;
    margin: 0;
    padding: 24px !important;
    position: relative;
}

.widget-user-image-v2 {
    height: 60px;
    width: 60px;
    clear: both;
    display: block;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.name-chat-ai-v2 {
    color: #344054;

    /* Text lg/Semibold */
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 155.556% */
}

.info-chat-ai-v2 {
    overflow: hidden;
    color: #667085;
    text-overflow: ellipsis;

    /* Text sm/Medium */
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
}

.chat-boxes a {
    top: 50px !important;
    margin-right: 1rem !important;
    margin-left: 0 !important;
    float: right !important;
}

#ai-chat-assistants, #chat-web-content-v2, #chat-vision-v2, #detail-content-chat-view-v2 {
     .search-box .input-box input {
        width: 100%;
        border: solid 1px #CCCCCC;
        background: #fff url(/images/svg/search-lg.svg) no-repeat 9px center;
        font-size: 16px;
        color: #667085;
        border-radius: 8px;
        transition: unset;
        padding: 9px 10px 9px 34px;
    }
    .templates-nav-menu {
        .nav-tabs {
            padding: 15px;

            .nav-link {
                margin-right: 0.7rem;
                min-width: 80px;
                padding-left: 15px;
                padding-right: 15px;
                border: none;
                margin-bottom: 0 !important;

                color: #667085;

                /* Text md/Semibold */
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: 24px; /* 150% */
                border-radius: 6px;
                box-shadow: none;

                &:hover, &:active, &:focus {
                    color: #7F56D9;
                    border-color: #1e1e2d;
                    background-color: #F4EBFF;
                }
            }

        }

        .template-nav-menu-inner {
            background-color: #ffffff;
            background-image: none;
            border-radius: 0;
            box-shadow: none;
        }
    }

    .btn-primary {
        min-height: 42px;
        min-width: 100px;
        text-transform: uppercase;
        color: #fff !important;
        transition: all 0.3s;

        border-radius: 8px;
        gap: 4px;

        /* Text sm/Semibold */
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px; /* 142.857% */

        display: flex;
        padding: 9px 14px;
        justify-content: center;
        align-items: center;
        border: 2px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%);
    }

    #create-ai-button {
        position: relative !important;
        right: 0 !important;
        top: 0 !important;
    }

    .box-active-chat-v2 {
        border-left: 1px solid #E4E7EC;
        padding: 15px;
    }

    #chat-search-panel {
        display: flex;
        justify-content: space-between;
        align-items: center;

        #search-template {
            margin: 0;
            box-shadow: none;

            display: flex;
            align-items: center;
            gap: 8px;
            align-self: stretch;
            min-width: 350px;

            width: 100%;
            border: solid 1px #CCCCCC;
            background: #fff url(/images/svg/search-lg.svg) no-repeat 9px center;
            font-size: 16px;
            color: #667085;
            border-radius: 8px;
            transition: unset;
            padding: 9px 10px 9px 34px;

        }
    }

    .search-template .input-box {
        margin-bottom: 0 !important;

        .form-control {
            height: 48px;
        }
    }

    .card-header {
        padding: 2px 24px;
    }

    #chat-system .right-msg .message-bubble:before {
        display: none;
    }

    #chat-system .right-msg .message-bubble {
        border-radius: 8px 0 8px 8px !important;
    }
}

#ai-chat-content-assistants {
    .chat-boxes .btn-pro-v2 {
        /*padding-left: 13px;*/
        /*padding-right: 12px;*/
        padding: 4px 12px;
        position: absolute;
        right: 46px;
        top: 50px;
        z-index: 10;
        border-radius: 32px;
        border: 1px solid #FEDF89;
        background-color: #FFFAEB;
        color: #FEC84B;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .chat-boxes .btn-yellow-v2 {
        /*padding-left: 13px;*/
        /*padding-right: 12px;*/
        padding: 4px 12px;
        position: absolute;
        right: 46px;
        top: 50px;
        z-index: 10;
        border-radius: 32px;
        border: 1px solid #9E77ED;
        background-color: #F9F5FF;
        color: #7F56D9;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .chat-boxes a i.star {
        font-size: 24px;
    }

}

.page-title-v2-nm {
    color: #344054;

    /* Text xl/Semibold */
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 150% */
}

.breadcrumb-v2 {
    display: flex;
    width: 24px;
    height: 24px;
    padding: 4px;
    justify-content: center;
    align-items: center;

    border-radius: 4px;
    border: 1px solid #E4E7EC;
    background: #FFF;
}

#chat-web-content-v2 {
    #balance-status-v2 {
        background: #FFFAEB !important;
    }
}

#detail-chat-view-v2 {
    display: flex;
    align-items: center;
    margin: 0;
    -ms-flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    position: relative;
}
.chat-AI-custom{
    .chat-sidebar-search .chat-search-icon {
        right: 2rem !important;
        top: 35% !important;
    }
    .chat-search-add{
        position: absolute;
        right: -4px;
        top: 15%;
        cursor: pointer;
    }
    .chat-controllers-v2-custom #image{
        border: none !important;
    }
    .chat-custorm-v2-button a{
        color: #7F56D9 !important;
        border-right: 1px solid #E4E7EC !important;

    }
    .chat-controllers-v2-custom .btn:focus{
        box-shadow: none !important;
        color: #7F56D9 !important;
    }
    .chat-controllers-v2-custom .btn{
        color: #7F56D9 !important;
    }

}

#create-ai-assistant, #list-ai-assistant {
    .card-create-v2 {
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        word-wrap: break-word;
        background-color: #fff;
        background-clip: border-box;
        margin-bottom: 1.5rem;
        width: 100%;
        border-radius: 16px;

        .card-body {
            padding: 0 !important;
        }
    }

    .card-header-v2 {
        border-bottom: 1px solid #E4E7EC;
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .card-footer-v2 {
        border-top: 1px solid #E4E7EC;
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .icon-card-header-v2 {
        border-radius: 12px;
        background: #F2F4F7;
        display: flex;
        width: 40px;
        height: 40px;
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

    .title-card-header-v2 {
        color: #344054;

        /* Text lg/Semibold */
        font-size: 18px;
        font-style: normal;
        font-weight: 600;
        line-height: 28px; /* 155.556% */
    }

    .input-box-v2 {
        margin-top: 24px;

        .label-input-v2 {
            color: #344054;

            /* Text sm/Medium */
            font-size: 14px;
            font-style: normal;
            font-weight: 500;
            line-height: 20px; /* 142.857% */
            margin-bottom: 6px;
        }

        .form-group-v2 input {
            display: flex;
            padding: 10px 14px;
            align-items: center;
            gap: 8px;
            align-self: stretch;

            border-radius: 8px;
            border: 1px solid #D0D5DD;
            background: #FFF;
        }
    }

    .btn-cancel, .btn-cancel-black {
        /* Text md/Semibold */
        font-size: 12px !important;
        font-style: normal;
        font-weight: 600;
        line-height: 24px; /* 150% */

        min-width: 100px;
        text-transform: uppercase;
        color: #fff !important;
        transition: all 0.3s;

        display: flex;
        padding: 10px 16px !important;
        justify-content: center;
        align-items: center;
        gap: 6px;

        border-radius: 8px !important;
        border: 2px solid rgba(255, 255, 255, 0.12) !important;
        background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%) !important;

        /* Shadows/shadow-xs-skeuomorphic */
        box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.18) inset, 0 -2px 0 0 rgba(16, 24, 40, 0.05) inset, 0 1px 2px 0 rgba(16, 24, 40, 0.05) !important;
    }

    .cancel-v2-color {
        color: #344054 !important;
        background: #FFF !important;
    }

    .custom-switch-input:checked ~ .custom-switch-indicator {
        background: #9054F7;
    }
}

#ai-chat-content-assistants {
    .chat-boxes {
        .favorite {
            border: none;
            background-color: #ffffff;
        }

        .premium {
            border: none;
            background-color: #ffffff;
        }

        .professional {
            border: none;
            background-color: #ffffff;
        }
    }

    .btn-pro-v2.btn:hover {
        color: #FEC84B !important;
    }
    .btn-yellow-v2.btn:hover {
        color: #7F56D9 !important;
    }
}

@media (max-width: 992px) {
    #detail-content-chat-view-v2 {
        .card-header {
            gap: 12px;
        }
    }

    #chat-web-content-v2 {
        .w-50-mb-80 {
            width: 80% !important;
        }
    }

    #ai-chat-assistants {
        #chat-search-panel {
            display: flex;
            flex-direction: column;
            align-items: stretch;

            #search-template {
                margin: 12px 0;
            }
        }
    }

    .wizard-nav .wizard-nav-inner .wizard-nav-chevron {
        margin: 0 10px !important;
    }

    .overflow-hidden-desktop {
        overflow: visible;
    }

    .mobile-hidden {
        display: none !important;
    }

    .desktop-hidden {
        display: block;
    }

    .height-card {
        overflow: unset;
        max-height: none;
    }

    .mh-100vh {
        max-height: none;
    }

    .p-24px-step-1 {
        padding: 10px 5px 10px 10px;
    }

    #wizard-form .box-edit::after {
        display: none;
    }

    .wizard-nav .wizard-nav-inner .wizard-nav-text .wizard-step-number {
        display: flex;
    }

    #navbarNav {
        #login-buttons {
            .h-user-actions {
                position: fixed;
                top: 0;
                left: 0;
                width: 60%;
                height: 100%;
                padding: 100px 20px 0 20px;
                border-radius: 0;
                display: flex;
                flex-direction: column-reverse;
                gap: 20px;
                align-items: center;
                justify-content: flex-end;
                background: #ffffff;

                #login-button {
                    width: 100%;
                    text-align: center;
                    padding: 12px;
                }

                .register-button {
                    width: 100%;
                    text-align: center;
                    padding: 12px;
                }
            }
        }
    }

    #main-wrapper .navbar {
        line-height: 30px;
    }

    #main-wrapper #login-buttons {
        width: auto;
        display: flex;
        align-items: center;
        justify-content: end;
    }

    #wizard-form, #openai-form #rewrite-v2 {
        select#project {
            text-align: left;
        }
    }
}


.btn-add-member{
    border-radius:8px !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%);
    padding: 10px 14px !important;
    width: 140px !important;
    /* Shadows/shadow-xs-skeuomorphic */
    box-shadow: 0px 0px 0px 1px rgba(16, 24, 40, 0.18) inset, 0px -2px 0px 0px rgba(16, 24, 40, 0.05) inset, 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}
.status-1{
    background: #ECFDF3 url(/images/svg/down_green.svg) no-repeat 87px center;
    color: #067647;
    border : 1px solid #ABEFC6;
    font-weight: 500;
    font-size: 12px;
}
.status-0{
    background: #FEF3F2 url(/images/svg/down_red.svg) no-repeat 119px center;
    border-radius: 9999px;
    color: #B42318;
    border : 1px solid #FECDCA;
    font-weight: 500;
    font-size: 12px;
}
.table-action-buttons {
    border: 1px solid #f5f9fc !important;
    width: 36px !important;;
    height: 36px !important;;
}
.chat_custom_edit_AI .custom-switch-input:checked ~ .custom-switch-indicator {
    border-radius: 9999px;
    background: #7F56D9 !important;
    border-color: #7F56D9 !important;
}
.custom-switch-input:focus ~ .custom-switch-indicator {
    border-color: #7F56D9;
}

.chat_custom_edit_AI .btn-cancel, .chat_custom_edit_AI .btn-cancel-black{
    font-size: 14px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    min-width: 100px;
    text-transform: none;
    color: #fff !important;
    transition: all 0.3s;
    display: flex;
    padding: 10px 16px !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(90deg, #9054F7 0%, #2E8EF5 228.18%) !important;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.18) inset, 0 -2px 0 0 rgba(16, 24, 40, 0.05) inset, 0 1px 2px 0 rgba(16, 24, 40, 0.05) !important;
}


.chat_custom_edit_AI .cancel-v2-color {
    color: #344054 !important;
    background: #FFF !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    min-width: 100px;
    text-transform: none !important;
    transition: all 0.3s;
    display: flex;
    padding: 10px 16px !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.18) inset, 0 -2px 0 0 rgba(16, 24, 40, 0.05) inset, 0 1px 2px 0 rgba(16, 24, 40, 0.05) !important;
}
.chat_custom_edit_AI .cancel-v2-color:hover{
    transform: translateY(-3px);
}
.btn-group-chat-v2 a:last-child{
    border-right: none !important;
}
.chat-AI-custom #chat-export-button #export{
    border: 1px solid #f5f9fc !important;
    padding: 5px 10px;
    margin-left: 10px;
}
.chat-AI-custom #chat-system #expand{
    margin-right: 15px !important;
}
.chat-AI-custom #chat-export-button .dropdown-menu.show{
    left : -55px !important;
}
.file-view-edit-ass{
    min-height: 40px;
    display: flex;
    padding: 16px;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid #E4E7EC;
    background: #FFF;
    position: relative;
}
.file-solid-border{
    border-radius: 12px ;
    border: 1px solid  #E4E7EC;
    background: #FFF;
}
.file-view-edit-ass div.col-1 img{
    position: relative;
    top: 0;
    left: 0px;
}
.file-view-edit-ass div.col-2 img{
    position: relative;
    top: -11px;
    right: -108px;
}
.chat_custom_edit_AI .input-box .form-control{
    padding: 10px 14px !important;
}
.chat_custom_edit_AI .image-drop-area .main-image-input{
    height: 70%;
    top: 35px;
}
.search-box-add{
    margin-left: -18px;
}
.search-background{
    border: solid 1px #CCCCCC;
    background: #fff url(/images/svg/search-lg.svg) no-repeat 9px center;
    font-size: 16px;
    color: #667085;
    border-radius: 8px;
    transition: unset;
    padding: 9px 10px 9px 34px;
}

@media (max-width: 768px) {
        /*Phần chung cho các màn Nam xử*/
    #detail-content-chat-view-v2, #chat-vision-v2, #chat-file-v2, #chat-web-content-v2, #chat-image-v2 {
        height: calc(100vh - 120px);
    }

    #detail-content-chat-view-v2, #chat-vision-v2, #chat-file-v2, #chat-web-content-v2, #chat-image-v2 {
        .chat-main-container .chat-sidebar-container {
            width: 100%;
        }

        .chat-sidebar-container-special {
            width: 100% !important;
        }

        .chat-sidebar-search-v2 {
            .input-box {
                width: 100%;
            }
        }

        #chat-system #chat-container {
            max-height: 65vh;
            height: 100%;
        }

        #chat-internet-button, #chat-export-button {
            display: flex;
        }

        .message-img {
             display: none !important;
        }

    }
}

@media (max-width: 768px) {
    .wizard-nav .current-sign {
        display: block !important;
    }
    .mobile-width-to-scroll {
        border-right: 1px solid #667085;
    }
}


/*checkbox v2*/
.custom-switch-indicator-v2 {
    display: inline-block;
    height: 16px;
    width: 16px;
    background: #f5f9fc;
    border-radius: 4px;
    position: relative;
    vertical-align: bottom;
    border: 1px solid #ebecf1;
    transition: 0.3s border-color, 0.3s background-color;
}

.custom-switch-indicator-v2:before {
    content: "";
    position: absolute;
    box-shadow: none;
    display: block;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 10px;
    border-radius: 2px;
    border: solid #f5f9fc;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-switch-input:focus ~ .custom-switch-indicator-v2 {
    box-shadow: none;
}

.custom-switch-input:checked ~ .custom-switch-indicator-v2 {
    background: #7F56D9;
}
.custom-switch-input:focus ~ .custom-switch-indicator-v2 {
    border-color: #7F56D9;
}
/*end checkbox-v2*/