.box-ticket-view{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 15px;
    float: left;
    width: 100%;
    height: 400px;
    overflow-y: scroll;
}
@media (max-width: 576px) {
    .box-ticket-view{
        height: 375px;
    }
}
.box-ticket-view .wrap{
    display: block;
    position: relative;
    width: 100%;
    float: left;
}
#ticket_chat_content{
    padding-bottom: 0;
    position: relative;
    float: left;
    width: 100%;
    display: block;
}

.msg{
    display: block;
    width: auto;
    border-radius: 10px;
    text-align: left;
    padding: 10px;
    margin-bottom: 15px;
    clear: both;
}
.msg-user{
    background-color: #3182F7;
    color: #fff;
    border-top-right-radius: 0;
    float: right;
    max-width: 80%;
}
.msg-user .content, .msg-customer-care .content{
    word-break: break-word;
}
.msg-user .content a.custom-link, .msg-customer-care .content a.custom-link, .msg-user .content a, .msg-customer-care .content a{
    color: #fff;
    text-decoration: underline;
}
.msg-customer-care .content a{
    color: #333;
}
@media (max-width: 576px) {
    .msg-user{
        max-width: 85%;
    }
}
.msg-customer-care{
    background-color: #F0F4FF;
    color: #333;
    border-top-left-radius: 0;
    float: left;
    max-width: 80%;
}
@media (max-width: 576px) {
    .msg-customer-care{
        max-width: 85%;
    }
}
.msg-date-user{
    float: right;
    clear: both;
    font-size: 12px;
}
.msg-date-customer-care{
    float: left;
    clear: both;
    font-size: 12px;
}

.msg-date-customer-care .admin{
    font-weight: bold;
}
.msg-date{
    color: #777;
    margin-bottom: 7px;
}
#templateUser, #templateCustomerCare{
    display: none;
}
.box-ticket-view .wrap-file-uploded{
    overflow-x: visible;
    max-width: 100%;
    flex-wrap: wrap;
}
#modalAttachementTicket .modal-dialog{
    max-width: 1200px;
    width: 100%;
    position: relative;
    margin-top: 50px;
}
@media (max-width: 576px) {
    #modalAttachementTicket .modal-dialog{
        width: 95%;
    }
    .box-ticket-view .wrap-file-uploded{
        justify-content: flex-end;
        width: 250px;
    }
}
#modalAttachementTicket .modal-content, #modalAttachementTicket .modal-body{
     padding: 0;
    max-width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
}
#modalAttachementTicket .modal-body #imgTarget{
    max-width: 100%;
}
#modalAttachementTicket #downloadFile{
    color: #fff;
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 240px;
    text-align: left;
}
#modalAttachementTicket #downloadFile .fa{
    margin-right: 10px;
}
.wrap-file-uploded .box-preview a.file-download{
    color: #6D707E;
    text-decoration: none;
}
#modalAttachementTicket #closeModal{
    color: #fff;
    position: absolute;
    right: 25px;
    font-size: 25px;
    width: 36px;
    height: 35px;
    text-align: center;
    background-color: #000;
    line-height: 32px;
    border-radius: 50%;
    top: 5px;
    font-weight: bold;
    text-decoration: none;
    z-index: 999;
}
#modalImgTicket {
    background-color: rgba(0,0,0,.8);
}
#ticket_chat_content{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
@media (max-width: 576px) {
    #ticket_chat_content{
        position: relative;
        height: 500px;
        overflow-y: scroll;
        padding-top: 0px;
    }
    .header-chat{
    }
    .box-ticket-view {
    }
    #DA{
        top: 0;
    }
    .navbar-fixed-top, .navbar-logged{
        position: relative !important;
    }
    body{
        padding-top: 0;
    }

}
.box-reply, .box-close{
    float: left;
    width: 100%;
    display: block;
    -webkit-box-shadow: 0px -6px 5px -6px rgba(222,222,222,1);
    -moz-box-shadow: 0px -6px 5px -6px rgba(222,222,222,1);
    box-shadow: 0px -6px 5px -6px rgba(222,222,222,1);
    padding: 15px;
    padding-bottom: 0px;
}
@media (max-width: 576px) {
    .box-reply{
        bottom: 0px;
        position: fixed;
    }
    .box-reply, .box-close{
        -webkit-box-shadow: 0px -6px 5px -6px rgba(222,222,222,1);
        -moz-box-shadow: 0px -6px 5px -6px rgba(222,222,222,1);
        box-shadow: 0px -6px 5px -6px rgba(222,222,222,1);
    }

}
.box-close{
    padding: 30px 15px;
    color: #777777;
    font-weight: bold;
    font-size: 16px;
}
@media (max-width: 576px) {
    .box-close{
        position: fixed;
        bottom: 0;
    }
}
.box-reply .wrap-text-reply{
    text-align: left;
}
.box-reply .wrap-text-reply .wrap-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-reply .wrap-text-reply .wrap-textarea{
    width: 100%;
}
.box-reply .wrap-text-reply .wrap-textarea textarea{
    width: 100%;
    border: 1px solid #D4D4D4;
    border-radius: 5px;
    padding: 10px;
    resize: none;
    height: 40px;
    overflow-y: hidden;
}
.box-reply .wrap-text-reply .add-new-file, .box-reply .wrap-text-reply .add-no-active{
    text-align: left;
    color: #3182F7;
    font-weight: bold;
    display: inline-block;
}
.box-reply .wrap-text-reply .add-no-active{
    color: #777777;
    display: none;
}
.box-reply .wrap-text-reply .add-new-file .fa, .box-reply .wrap-text-reply .add-no-active .fa{
    margin-right: 5px;
}
.box-reply .wrap-text-reply .input-file{
    display: none;
}
.box-reply .wrap-button{
    margin-left: 15px;
}
.box-reply .wrap-button button{

}
#sendReply{
    background-color: #3182F7;
    border: none;
    padding: 0;
    border-radius: 100%;
    width: 42px;
    height: 42px;
    text-align: center;
    box-shadow: 2px 2px 3px 1px rgba(208, 209, 213, 0.4), 0 2px 2px 1px rgba(220, 221, 224, 0.4);
    -webkit-box-shadow: 2px 2px 3px 1px rgba(208, 209, 213, 0.4), 0 2px 2px 1px rgba(220, 221, 224, 0.4);
    -moz-box-shadow: 2px 2px 3px 1px rgba(208, 209, 213, 0.4), 0 2px 2px 1px rgba(220, 221, 224, 0.4);
}
#sendReply.disable{
    background-color: #777 !important;
}
#sendReply img{
    width: 27px;
    text-align: center;
    margin-left: 5px;
}
.box-error-file .wrap-error-content{
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}
@media (max-width: 576px) {
    .box-error-file .wrap-error-content{
        flex-direction: column;
    }
}
.box-error-file .wrap-error-content .error-content{
    margin-left: 2px;
}
.box-error-file .wrap-error-content .error-title{
    margin-left: 2px;
}
.box-error-file{
    align-items: normal;
}
.box-error-file .error-image .fa{
    font-size: 18px;
}
#msgReply:focus, #msgReply:visited{
    border-color: #3182F7;
}
.box-reply{
    margin-top: 10px;
}
.container-chat-scrollable {
    position: relative;
    overflow-y: scroll;
    height: 60vh;
    padding-bottom: 30px;
    padding-right: 24px;
}

.container-chat-textarea {
    z-index: 99;
    position: relative;
}

.container-textarea-new-ticket {
    z-index: 99;
    position: relative;
}
.wrap-file-uploded{
    display: flex;
    max-width: 750px;
    overflow-x: scroll;
    scrollbar-width: none;
    width: 100%;
}
#ticket_chat_content .wrap-file-uploded{
    overflow-y: hidden;
}
.wrap-file-uploded .box-preview .wrap{
    display: flex;
    width: 100%;
    height: 45px;
    align-items: center;
    border: 1px solid #C8C8C8;
    border-radius: 5px;
    padding: 2px;
}
.wrap-file-uploded .box-preview .wrap .pt-body{
    padding: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.wrap-file-uploded .box-preview .wrap .pt-body .file-type{
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    padding: 0px 5px;
    font-size: 11px;
    font-weight: bold;
    max-width: 42px;
    /*margin-bottom: 5px;*/
    /*margin-top: 10px;*/
    margin-right: 8px;
}
.wrap-file-uploded .box-preview .wrap .pt-sx{
    padding: 8px;
}
.wrap-file-uploded .box-preview .wrap .pt-sx .fa{
    font-size: 45px;
}
.wrap-file-uploded .box-preview{
    height: 45px;
    background-color: #fff;
    border-radius: 5px;
    margin: 10px 4px 5px 4px;
    position: relative;
    width: 185px;
}
@media (max-width: 576px) {
    .wrap-file-uploded .box-preview{
        width: 100%;
    }
}
.container-chat-textarea .wrap-file-uploded .box-preview, #box-new-ticket .wrap-file-uploded .box-preview{
    width: 170px;
    margin-bottom: 10px;
}
.container-chat-textarea .wrap-file-uploded .box-preview:first-child, #box-new-ticket .wrap-file-uploded .box-preview:first-child{
    margin-left: 8px;
}
.container-chat-textarea .wrap-file-uploded .box-preview .img-download, #box-new-ticket .wrap-file-uploded .box-preview .img-download{
    display: none;
}
.container-chat-textarea .wrap-file-uploded .box-preview .wrap-text, #box-new-ticket .wrap-file-uploded .box-preview .wrap-text{
    width: 115px;
}
.wrap-file-uploded .pt-head{
    width: 160px;
    height: 45px;
}
.wrap-file-uploded .pt-body{
    text-align: center;
    font-size: 12px;
}

.container-file-uploded{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
}

.container-file-uploded .arrow{
    font-size: 34px;
    padding: 0 10px;
    text-decoration: none;
}

.container-file-uploded .arrow{
    display: none;
}
.wrap-file-uploded .thumbnail{
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0px;
}
#modalImgTicket .modal-dialog{
    width: 1400px;
    max-width: 100%;
    position: relative;
}
#modalImgTicket .modal-content, #modalImgTicket .modal-body{
    padding: 0;
    max-width:100%;
}
#modalImgTicket .modal-body #imgTarget{
    max-width: 100%;
}
#modalImgTicket #downloadFile{
    color: #fff;
    position: absolute;
    top: 5px;
    left: 20px;
}
#modalImgTicket #downloadFile .fa{
    margin-right: 10px;
}
.wrap-file-uploded .box-preview a.file-download{
    color: #6D707E;
    text-decoration: none;
}
#modalImgTicket #closeModal{
    color: #fff;
    position: absolute;
    right: 25px;
    font-size: 25px;
    width: 36px;
    height: 35px;
    text-align: center;
    background-color: #000;
    line-height: 32px;
    border-radius: 50%;
    top: 5px;
    font-weight: bold;
    text-decoration: none;
}
#modalImgTicket {
    background-color: rgba(0,0,0,.8);
}
.delete-attachment{
    position: absolute;
    top: -8px;
    left: -6px;
    color: #fff !important;
    text-decoration: none;
    background-color: #333;
    text-align: center;
    width: 20px;
    height: 20px;
    line-height: 0px;
    padding: 2px 3px;
    border-radius: 50px;
    border: 1px solid #fff;
    font-size: 14px;
}
.move-left, .move-right{
    color: #000 !important;
    text-decoration: none !important;
}
@media (max-width: 576px) {
    body.mobile .move-left, body.mobile .move-right, #find .move-left, #find .move-right{
        display: none;
    }
}
#form-new-ticket .textarea-chat{
    height: 150px !important;
    overflow-y: scroll;
    scrollbar-width: thin;
}
#form-new-ticket .bottom-part{
    position: absolute;
    width: 96%;
    bottom: 5px;
}
.container-chat-scrollable .delete-attachment{
    display: none;
}
.edit-message .delete-attachment{
    display: block;
}

.add-new-file{
    margin-top: 5px;
    display: block;
}

.add-no-active{
    margin-top: 5px;
    display: block;
}
.scrollable-content-popover{
    max-height: 100px;
    overflow-y: auto;
}

.label-tag-assigned{
    border: 1px solid #f5f6fa;
    padding: 1px 5px 1px 5px;
    background-color: #f5f6fa;
    font-weight: bold;
    font-size: 0.7rem;
}

.click-remove-tag{
    color: #3a3b45 !important;
    padding-left: 5px;
}
.box-error{
    display: none;
    margin-top: 5px;
}
.box-error .error-image{
    margin-right: 5px;
    color: #DD3327;
}
.box-error .error-title, .box-error .error-content{
    color: #DD3327;
}
.box-error .error-content{
    font-size: 12px;
}
.box-error .error-title{
    font-size: 12px;
    font-weight: bold;
}
.row-custom{
    margin-left: 0px;
    margin-right: 0px;
}
.box-error-input{
    flex-direction: column;
    position: absolute;
    right: 0px;
    top: -18px;
    z-index: 10;
}
.box-error-input .error-content{
    background-color: #DD3327;
    color: #fff;
    width: 170px;
    padding: 1px 5px;
    text-align: center;
    border-radius: 5px;
    font-size: 11px;
}
.contact-input .box-error-input .error-content{
    width: 180px;
}
.box-error-input .error-content:after {
    content: '';
    position: absolute;
    right: 0;
    top: 18px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #DD3327;
    clear: both;
    right: 11px;
}
.box-error-input .error-image {
    position: absolute;
    top: 20px;
    right: 4px;
}
.contact-input{
    position: relative;
}
.box-email{
    position: relative;
    margin-bottom: 15px;
}
.box-email .icon-mail{
    position: absolute;
    top: 7px;
    left: 12px;
    color: #a3b5bf;
}
.box-motivazione .icon-motivazione{
    position: absolute;
    top: 7px;
    left: 12px;
    color: #607B8A;
}
.box-motivazione .motivazione_input{
    margin-bottom: 15px;
}
.box-email .email_input, .box-motivazione .motivazione_input{
    /*padding-left: 30px;*/
}
.modal-ticket .box-email .email_input{
    padding-left: 30px;
}
.modal-ticket button.close{
    top: 5px;
    position: absolute;
    right: 15px;
    font-size: 24px;
}
.icon-success {
    background-image: url(../images/free_signup2.svg);
    width: 65px;
    height: 65px;
    background-size: 65px 65px;
    margin: 40px auto;
}
.message-success {
    line-height: 27px;
    margin-top: 40px;
    text-align: center;
}
.header-chat{
    padding-bottom: 0;
}
.ticket-back-left.fa{
    margin-top: 0px;
    float: none;
    position: absolute;
    top: 3px;
    left: -15px;
    font-size: 14px;
}
@media (max-width: 576px) {
    .ticket-back-left.fa{
        top: 5px;
        left: -13px;
        font-size: 13px;
    }
}
.ticket-back-left{
    position: relative;
}
.your-tickets{
    left: 0;
    position: relative;
    top: 0;
}
.ticket-back-container{
    position: absolute;
    display: inline-block;
    left: 40px;

}
@media (max-width: 576px) {
    .ticket-back-container{
        left: 15px;
    }
    .your-tickets{
        font-size: 12px;
    }
}
.ticket-header-text {
    display: inline-block;
    margin-bottom: 0px;
    padding-top: 0px;
    margin-top: 0px;
}
.header-chat{
    display: flex;
    justify-content: center;
    height: 60px;
    align-items: center;
}
#ticket_chat_content{
    padding-top: 0px;
}
.header-chat .pt-sx{
    display: block;
    margin-top: -20px;
}
@media (max-width: 576px) {
    .header-chat{
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        margin-top: 60px;
    }
}
#box-new-ticket .email_input{
    font-size: 16px;
}
#box-new-ticket textarea.form-control{
    resize: none;
    height: 210px;
    font-size: 16px;
}
.box-spinner{
    display: flex;
    width: 80px;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
}
.box-progress{
    display: flex;
    width: 160px;
    height: 45px;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
}
.box-progress .progress{
    width: 110px;
    height: 5px;
    margin-bottom: 0;
}
#sendReply .img-spinner{
    display: none;
    color: #fff;
}
.wrap-file-uploded .box-preview .img-download {
    margin-left: 5px;
    width: 25px;
}
.wrap-file-uploded .box-preview .wrap-text {
    text-align: left;
    width: 100px;
    overflow: hidden;
    position: relative;
}
@media (max-width: 576px) {
    .wrap-file-uploded .box-preview .wrap-text{
        width: 160px;
    }
}
.wrap-file-uploded .box-preview .wrap-text .text{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}
.wrap-spinner-attachemnt{
    display: none;
    width: 25px;
    margin-left: 5px;
}
.wrap-spinner-attachemnt .fa{
    font-size: 20px;
}
#box-new-ticket .wrap-file-uploded{

}