/*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%;
}
.chat-controllers-v2{
    padding: 10px 5px 0px;
    justify-content: center;
    align-items: center;
    margin: 5px;
}
.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 #new-chat-button{
    padding: 7px 7px;
}
#detail-content-chat-view-v2 .chat-main-container .card-header{
    border-bottom: none;
    padding-bottom: 0px;
}
#detail-content-chat-view-v2 .chat-main-container .chat-sidebar-search-v2{
    border-bottom: none;
    justify-content: space-between;
}
.btn-primary-chat-v2:focus{
    border: none;
    box-shadow:none;
}
#detail-content-chat-view-v2{
    height: 95vh !important;
    .chat-main-container .card-footer-chat-v2{
        margin: 7px !important;
    }
}
#detail-content-chat-view-v2 .chat-main-container {
    height: calc(100vh - 70px);
}
.preview-container {
    margin: 1px 0;
    padding: 0px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.preview-content {
    display: flex;
    align-items: center;
}

.preview-file {
    position: relative;
    width: 100%;
    display: flex;
}

.preview-image {
    max-width: 100px;
    max-height: 66px;
    border-radius: 4px;
    object-fit: cover;
}

.preview-doc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.preview-doc i {
    font-size: 24px;
    color: #666;
}

.preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.preview-name {
    font-size: 14px;
    color: #666;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-preview {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 2px 5px;
}

.remove-preview:hover {
    color: #bd2130;
}

#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 {
            height: 92vh;
            #chat-container {
                /*max-height: calc(100vh - 305px);*/
                height: calc(100vh - 235px);
                max-height: 100%;
                /*height: 85vh;*/
            }

            .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;
    }
    .card-body{
        padding-bottom: 0px !important;
    }

}

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

.msg-text {
    p {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
    }
    em{
        line-height: 40px;
    }
    strong{
        line-height: 40px;
    }
}

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

    /*display: flex;*/
    display: inline-block;
    width: 92%;
    overflow-wrap: break-word;
    word-wrap: break-word !important;
    text-align: justify;
    padding: 5px 14px 5px;
    align-items: center;
    gap: 4px;
    align-self: stretch;

    border-radius:  8px 8px 8px 8px;
    border: 1px solid #E4E7EC;
    background: #F9FAFB;
    /*margin-top: 6px;*/
}
#chat-system .message-bubble-me.message-bubble-file{
    display: block;
}
#chat-system .message-bubble-me.message-bubble-file .msg-text-file a{
    color: #667085;
}
#chat-system .message-bubble-me.message-bubble-file .msg-text-file{
    background: #FFF;
    border-radius: 10px;
    padding: 5px;
}
.message-bubble .msg-text {
    font-size: 14px;
}

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

    display: flex;
    padding: 5px 0px;
    align-items: center;
    gap: 4px;
    align-self: stretch;

    border-radius: 8px 0 8px 8px;
    /*border: 1px solid #E4E7EC;*/
    /*background: #2E90FA;*/
    /*margin-top: 6px;*/

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

.message-content {

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

        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px;
    }
}

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

#chat-system .left-msg .message-bubble:before {
    display: none;
}
#chat-system .left-msg .btn-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 99;
    background: #E4E7EC;
    border-radius: 10px;
    border: 1px solid #E4E7EC;
    padding: 5px 8px;
    transition: 0.5s;
    cursor: pointer;
}
#chat-system .left-msg .btn-copy:hover {
    border: 1px solid #9E77ED;
    background: #F9F5FF;
    path {
        fill: #9E77ED;
    }
}

#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 {
    width: 100%;
    min-height: 400px;
    font-size: 16px !important;
}
#export-message{
    right: 10px;
    top: 85px;
    z-index: 999;
    padding: 0px 26px 0px 16px;
}
#export-message.export-message-2 {
    display: none;
}
#export-message #chat-curd a.btn {
    display: inline-flex;
    align-items: center;
}
#hide-export-message{
    top: 70px;
    z-index: 999;
}
.chat-sidebar-container-2{
    padding: 21px;
}

#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: 120px !important;
    flex: 1 1 auto;
    margin: 0;
    padding: 24px !important;
    position: relative;
}

.card-body-chat-v2 .template-title {
    width: calc(100% - 60px);
    margin-left: 10px;
}

.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% */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.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% */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.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;
    }
}
#openai-form {
    /*overflow: hidden;*/
}
#openai-form.content-v2 .card-body::-webkit-scrollbar-track {
    background: #F2F4F7;
}
#openai-form.content-v2 .card-body #chat-container::-webkit-scrollbar-track {
    background: #F2F4F7;
}

@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.40) !important;
    background: linear-gradient(180deg, #2E90FA 0%, #0676EF 100%) !important;;
    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;
}
.chat-sidebar-container-short{
    width: 50px !important;
    height: 100%;
    .chat-sidebar-search-v2{
        padding: 7px !important;

    }
}
.chat-sidebar-container:has(> div.chat-sidebar-container-short){
    width: fit-content !important;
}
#chat-container .msg.left-msg{
    background: #FAFAFA;
    border: 1px solid #E9D7FE;
    border-radius: 10px;
    padding: 15px;
}
#chat-container .msg.left-msg .message-bubble {
    border: none;
}
#chat-container .msg .message-bubble {
    flex-direction: column;
}
#chat-system .message-img {
    margin-right: 0px;
}
#chat-container .msg.right-msg {
    padding: 10px;
    background: #fff;
    border-radius: 15px;
}
#chat-container .msg.right-msg .message-content{
    width: 100%;
    padding: 0px 14px;
}
#chat-container .msg.link-web .message-content {
    padding: 5px 10px;
    background: #FAFAFA;
    border: 1px solid #E9D7FE;
    border-radius: 10px;
    cursor: pointer;
}
#chat-container .msg.link-web .msg-text {
    font-size: 14px;
}
#chat-button {
    background: linear-gradient(180deg, #7F56D9 0%, #9C56D9 100%);
    border: 1px solid #E9D7FE;
    border-radius: 50%;
    padding: 8px 9px;
}
#chat-system .list-web {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    display: none;
}
#chat-system .list-web .list-web-title h6 {
    font-size: 16px;
    font-weight: 600;
    color: #344054;
}
#chat-system .list-web .list-web-container .website-info{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
#chat-system .list-web .list-web-container p,#chat-system .list-web .list-web-container span{
    color: #344054;
}
#chat-system .list-web .list-web-container .website-info img{
    width: 16px;
    border-radius: 50%;
}
#chat-system .list-web .list-web-container {
    max-height: 700px;
    overflow-y: scroll;
}
#chat-system .list-web .list-web-container li p {
    margin:  0px;
    font-size: 14px;
}
#chat-system .list-web .list-web-container .link-web-detail p{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 27px;
}
#chat-system .list-web .btn-exit {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}
.app-dashboard-v2 .content-v2 {
    padding: 5px 15px;
    background: #F2F4F7;
}
#chat-curd .btn {
    background: #fff;
    border: 1px solid #D0D5DD;
    border-radius: 10px;
}
#chat-curd .btn:hover {
    transition: 0.5s;
    background: #F4EBFF;
    border: 1px solid #E9D7FE;
}
#chat-curd .btn:hover path {
    stroke: #E9D7FE;
    transition: 0.5s;
}
#export-message #chat-curd a.btn {
    padding: 8px 10px;
}
#chat-export-button button {
    padding: 10px;
}
#chat-export-button button:hover {
    transition: 0.5s;
    background: #F4EBFF;
    border: 1px solid #E9D7FE;
}
#chat-export-button button:hover path {
    stroke: #E9D7FE;
    transition: 0.5s;
}
#listConversation .modal-content {
    border-radius: 15px; /* Bo góc modal */
}
#listConversation .chat-sidebar-search-v2 {
    padding: 10px;
    border: none;
}
#listConversation .chat-title {
    /*line-height: 45px;*/
    display: flex;
    align-items: center;
    cursor: pointer;
}
#listConversation .chat-sidebar-message.selected-message {
    background: #F2F4F7;
    border-radius: 10px;
}
#listConversation .chat-sidebar-message {
    display: flex;
}
#listConversation .chat-actions-v2 a.btn {
    padding: 10px 5px;
}
@media (max-width: 768px) {
    .chat-controllers-v2{
        padding: 5px;
    }
    .chat-controllers-v2 .preview-name{
        display: none;
    }
    .chat-controllers-v2 .preview-doc{
        padding: 4px;
    }
        /*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{
        padding: 0 !important;
        height: 93vh !important;
    }
    #detail-content-chat-view-v2 .card-footer-chat-v2{
        border: none !important;
        width: 100% ;
        margin: 0 !important;
    }
    #openai-form:has(> div#detail-content-chat-view-v2) .chat-sidebar-container-2{
        display: none !important;
    }
    #openai-form:has(> div#detail-content-chat-view-v2){
        padding: 0 !important;
    }


    #chat-system #chat-container {
        max-height: 100vh;
        height: 81vh !important;
    }

    #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: 100vh;
            height: 100%;
        }

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

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

    }
    #chat-system .list-web {
        position: absolute;
        bottom: 0px;
        left: 0px;
        z-index: 9999;
    }
}

/*Linh sửa responsive*/

@media (max-width: 540px) {

    #chat-system #chat-container {
        max-height: 100vh;
        height: 72vh !important;
    }
    #detail-content-chat-view-v2 .chat-main-container{
        max-height: calc(100vh - 70px) !important;
    }
    #detail-content-chat-view-v2 #chat-system{
        height: 88vh !important;
    }
}

@media (max-width: 430px) {

    #chat-system #chat-container {
        max-height: 100vh;
        height: 76vh !important;
    }
    #detail-content-chat-view-v2 .chat-main-container{
        max-height: calc(100vh - 70px) !important;
    }
}

@media (max-width: 392px) {

    #chat-system #chat-container {
        max-height: 100vh;
        height: 75vh !important;
    }
    #detail-content-chat-view-v2 .chat-main-container{
        max-height: calc(100vh - 70px) !important;
    }
}

@media (width: 768px) and (height: 1024px) {
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .card-body {
        /*max-height: 500px;*/
    }
    #chat-system #chat-container {
        max-height: 100vh;
        height: 77vh !important;
    }
    #detail-content-chat-view-v2 #chat-system{
        height: 91vh !important;
    }
}


@media (width: 1280px) and (height: 800px) {

    #detail-content-chat-view-v2 #chat-system{
        height: 89vh !important;
    }
}

@media (min-width: 932px) and (min-height: 500px) {

    #detail-content-chat-view-v2 #chat-system{
        height: 85vh !important;
    }
}

@media (max-width: 376px) {

    #chat-system #chat-container {
        max-height: 100vh;
        height: 70vh !important;
    }
    #detail-content-chat-view-v2 .chat-main-container{
        max-height: calc(100vh - 70px) !important;
    }
    #detail-content-chat-view-v2 #chat-system{
        height: 88vh !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*/

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/*Chat css moi*/
.w-24{
    width: 24% ;
}
.w-22{
    width: 20% ;
}
#detail-content-chat-view-v3  {
    height: calc(100vh - 120px);
    /*height: -webkit-fill-available !important;*/
}
#openai-form:has(#detail-content-chat-view-v3)  {
    height: calc(100vh - 80px);
    /*height: -webkit-fill-available !important;*/
}
#detail-content-chat-view-v3 #chat-system {
    height: -webkit-fill-available !important;
    height: 100%;
    background: #F2F4F7;
    padding: 5px;
}
#detail-content-chat-view-v3 #chat-system {
    .card-footer-chat-v2{
        bottom: 5px;
        padding-left: 1rem;
        padding-right: 38px;
        width: -webkit-fill-available !important;
        width: 100%;
        z-index: 999;
        textarea{
            border: none;
            background: #F2F4F7;
        }
        .card-footer-border-chat-v2{

            border-radius: 22px;
            background: #FFFFFF;
            /*border: 1px solid #2E90FA;*/
        }
    }
     #chat-container{
         height: -webkit-fill-available !important;
         max-height: -webkit-fill-available;
         /*margin-bottom: 120px;*/
     }
}
#detail-content-chat-view-v3 .chat-message-conversation-v2{
    height: -webkit-fill-available !important;
}
#detail-content-chat-view-v3 .chat-message-conversation-v2{
    .card-body{
        /*height: inherit;*/
        max-height: calc(100% - 155px);
        width: -webkit-fill-available;
        overflow-y: scroll;
        /*margin-bottom: 115px;*/
    }

    .chat-controllers-v2 .form-control{
        padding: 12px 6px !important;
        border-radius: 1rem;
    }

    .btn-group-chat-v2 {
        /*display: flex;*/
        /*border-top: 1px solid #F4EBFF;*/
        /*background: #E6F2FE;*/
        border-radius: 0 0 12px 12px;
        padding: 5px 10px 10px;
        /*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;
        }
        .dropdown {
            a.btn {
                float: left;
                border: 1px solid #E4E7EC;
                border-radius: 50%;
                padding: 10px 13px;
            }
        }
        .btn-web {
            padding: 6px 10px;
            border: 1px solid #E4E7EC;
            border-radius: 50%;
            float: left;
            margin-right: 5px;
            cursor: pointer;
        }
        .btn-web:hover {
            background: #F4EBFF;
            border: 1px solid #E9D7FE;
            path {
                stroke: #E9D7FE;
            }
        }
        .btn-web.active{
            background: #F4EBFF;
            border: 1px solid #E9D7FE;
            path {
                stroke: #9E77ED;
            }
        }
    }
}
.chat-conversation-v2-2 .btn-adjust-history{
    margin-top: 7px;
    width: fit-content;
}
#detail-content-chat-view-v3 .chat-conversation-v2-1 {

    border-right: 1px solid #E4E7EC;
}
#detail-content-chat-view-v3 #chat-export-button .dropdown-menu.show{
    padding-left: 5px !important;
    padding-right: 20px !important;
}
#detail-content-chat-view-v3 #chat-container .msg:last-of-type{
    margin-bottom: 2rem !important;
}
.col-1-5 {flex: 0 0 7%;
    max-width: 7%;
}
.col-11-95 {
    flex: 0 0 93%;
    max-width: 93%;
}
#detail-content-chat-view-v3 .chat-conversation-v2 {
    background: #FFFFFF;
    height: -webkit-fill-available !important;
    overflow: scroll;
    .chat-sidebar-search-v2 {
        border-bottom: none;
        justify-content: space-between;
        padding:0 !important;
    }
    .chat-sidebar-search-v2 .search-box {
        width: 100%;
    }
    /*.chat-sidebar-messages{*/
    /*    padding-top: 100px !important;*/
    /*}*/

    .chat-sidebar-search-v2 .search-box .input-box {
        width: 100%;
    }
    .chat-sidebar-search-v2 .search-box .input-box input {
        width: 100%;
    }
    .chat-sidebar-search-v2 .search-box .search-background {
        width: 100%;
    }
    .chat-sidebar-search-v2 .search-box .search-background input {
        width: 100%;
    }
    .chat-sidebar-search-v2 .search-box .search-background input::placeholder {
        color: #667085;
    }
    .chat-sidebar-search-v2 .search-box .search-background input:focus {
        border-color: #667085;
    }
    .chat-sidebar-search-v2 .search-box .search-background input:focus::placeholder {
        color: #667085;
    }
    .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 #2E90FA;*/
        background-color: #F5F9FC;
        border-radius: 10px;
        margin-bottom: 10px;
        border: 1px solid #F5F9FC;
        /*background: #FFF;*/
    }
    .chat-sidebar-message.selected-message{
        border: 1px solid #7F56D9;
        background: #FFF;
    }
    .chat-sidebar-message .chat-title {
        display: block;
        /*width: 200px;*/
        width: -webkit-fill-available;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
    }
    .chat-sidebar-message .chat-info {
        display: flex;
        justify-content: space-between;
        color: #a6a6a6;
        font-size: 12px;
        margin-top: 8px;
    }
    .chat-sidebar-message .chat-actions-v2 {
        position: absolute;
        top: 10px;
        right: 0px;
        transition: all 0.3s ease;
        opacity: 1;
        cursor: pointer;
        color: black;
    }
}
.warning-ai {
    font-size: 12px;
    color: #667085;
}

@media (max-width: 1440px) and (max-height: 911px) {
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .card-body {
        /*max-height: 600px;*/
    }
}
@media (max-width: 1440px) and (max-height: 800px) {
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .card-body {
        /*max-height: 500px;*/
    }
}

@media (max-width: 768px) {
    #detail-content-chat-view-v3 .chat-conversation-v2{
        display: none !important;
    }
    #detail-content-chat-view-v3 .chat-message-conversation-v2{
        width: 100% !important;
        max-width: 100% !Important;

        flex: 0 0 100%;
    }
    #detail-content-chat-view-v3 #chat-export-button{
        display: inline-block;
    }
    #openai-form:has(#detail-content-chat-view-v3) {
        padding: 0px;
    }
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .card-body {
        /*max-height: 700px;*/
    }
    #chat-system .message-img {
        display: inline-block !important;
    }
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .btn-group-chat-v2 {
        padding: 0px 10px;
    }
    .warning-ai {
        line-height: 14px;
    }
    #detail-content-chat-view-v3 #chat-system {

    }
}
@media (max-width: 450px) {
    #chat-system #chat-container {
        padding: 0px;
    }
    #detail-content-chat-view-v3 #chat-system .card-footer-chat-v2 {
        padding-left: 0px;
        padding-right: 22px;
    }
    #detail-content-chat-view-v3 #chat-system .card-footer-chat-v2 {
        bottom: 50px;
    }
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .card-body {
        max-height: calc(100% - 190px);
    }
}

@media (max-width: 425px) {
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .card-body {
        max-height: calc(100% - 190px);
    }
}

@media (max-width: 375px) {
    #detail-content-chat-view-v3 .chat-message-conversation-v2 .card-body {
        max-height: calc(100% - 200px);
    }
}

@media (width: 1024px ) and (height: 1366px) {
    #openai-form:has(#detail-content-chat-view-v3) {
        height: calc(100vh - 215px);
    }
    #detail-content-chat-view-v3 #chat-system {
        .card-footer-chat-v2 {
            bottom: 165px;
        }
    }
}

    @media (width: 912px ) and (height: 1368px) {
    #openai-form:has(#detail-content-chat-view-v3) {
        height: calc(100vh - 215px);
    }
    #detail-content-chat-view-v3 #chat-system {
        .card-footer-chat-v2 {
            bottom: 165px;
        }
    }

}