﻿


/*CHAT PART*/
.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out
}

.d-flex {
    align-self: center !important
}


.chat .chat-history .message:after, .chat .chat-history .my-message:after {
    bottom: 100%;
    width: 0;
    position: absolute;
    pointer-events: none;
    margin-left: -10px;
    content: " ";
    height: 0
}

.hideee {
    display: none !important
}

.popupStyle {
    z-index: 1400 !important
}

.card {
    background: #dcdcdc;
    transition: .5s;
    border: 0;
    margin-bottom: 30px;
    border-radius: .55rem;
    position: relative;
    width: 100%;
}

.people-list .chat-list img {
    width: 45px;
    border-radius: 50%
}

.chat .chat-header img, .chat .chat-history .message-data img {
    border-radius: 40px;
    width: 40px
}

.people-list img {
    float: left;
    border-radius: 50%
}

.chat .chat-header {
    padding: 15px 20px;
    border-bottom: 2px solid #f4f7f6
}

    .chat .chat-header img {
        float: left
    }

    .chat .chat-header .chat-about {
        float: left;
        padding-left: 10px
    }

.chat .chat-history {
    padding: 5px;
}

    .chat .chat-history ul {
        padding: 0
    }

        .chat .chat-history ul li {
            list-style: none;
            margin-bottom: 30px
        }

            .chat .chat-history ul li:last-child {
                margin-bottom: 0
            }

    .chat .chat-history .message-data {
        margin-bottom: 15px
    }

    .chat .chat-history .message-data-time {
        color: #434651;
        padding-left: 6px
    }

    .chat .chat-history .message {
        color: #444;
        padding: 18px 20px;
        line-height: 26px;
        font-size: 16px;
        border-radius: 7px;
        display: inline-block;
        position: relative
    }

        .chat .chat-history .message:after {
            left: 7%;
            border: 10px solid transparent;
            border-bottom-color: #fff
        }

    .chat .chat-history .my-message {
        background: #efefef
    }

        .chat .chat-history .my-message:after {
            left: 30px;
            border: 10px solid transparent;
            border-bottom-color: #efefef
        }

    .chat .chat-history .other-message {
        background: #e8f1f3;
        text-align: right
    }

        .chat .chat-history .other-message:after {
            border-bottom-color: #e8f1f3;
            left: 80%
        }

.chat .chat-message {
    padding: 20px
}

.me, .offline, .online {
    margin-right: 2px;
    font-size: 8px;
    vertical-align: middle
}

.online {
    color: #86c541
}

.offline {
    color: #e47297
}

.me {
    color: #1d8ecd
}

.float-right {
    float: right
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0
}

@media only screen and (max-width:767px) {
    .chat-app .people-list {
        height: 465px;
        width: 100%;
        overflow-x: auto;
        background: #fff;
        left: -400px;
        display: none
    }

        .chat-app .people-list.open {
            left: 0
        }

    .chat-app .chat {
        margin: 0
    }

        .chat-app .chat .chat-header {
            border-radius: .55rem .55rem 0 0
        }

    .chat-app .chat-history {
        height: 300px;
        overflow-x: auto
    }
}

@media only screen and (min-width:768px) and (max-width:992px) {
    .chat-app .chat-list {
        height: 650px;
        overflow-x: auto
    }

    .chat-app .chat-history {
        height: 600px;
        overflow-x: auto
    }
}

@media only screen and (min-device-width:768px) and (max-device-width:1024px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio:1) {
    .chat-app .chat-list {
        height: 480px;
        overflow-x: auto
    }

    .chat-app .chat-history {
        height: calc(100vh - 350px);
        overflow-x: auto
    }
}

.chatbox {
    position: fixed;
    bottom: 0;
    right: 103px;
    width: 350px;
    height: 400px;
    font-family: Lato,sans-serif;
    -webkit-transition: .6s cubic-bezier(.19, 1, .22, 1);
    transition: .6s cubic-bezier(.19, 1, .22, 1);
    z-index: 999;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column
}

.chatbox--tray {
    bottom: -360px
}

.chatbox--closed {
    bottom: -400px
}

.chatbox .form-control:focus {
    border-color: #1f2836
}

.chatbox__body, .chatbox__title {
    border-bottom: none
}

.chatbox__title {
    min-height: 50px;
    padding-right: 10px;
    background-color: #1f2836cc;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center
}

.chatbox--empty .chatbox__body, .chatbox--empty .chatbox__message, .chatbox__credentials {
    display: none
}

.chatbox__title h5 {
    height: 50px;
    margin: 0 0 0 15px;
    line-height: 50px;
    position: relative;
    padding-left: 20px;
    -webkit-flex-grow: 1;
    flex-grow: 1
}

    .chatbox__title h5 a {
        color: #fff;
/*        max-width: 195px;*/
        display: inline-block;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

/*    .chatbox__title h5:before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        width: 12px;
        height: 12px;
        background: #4caf50;
        border-radius: 6px;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%)
    }*/


.chatbox__title h5 {
    position: relative;
    padding-left: 20px;
}

.chatbox__title.soporte-online h5:before {
    background: #4caf50; /* verde */
}

.chatbox__title.soporte-offline h5:before {
    background: #9e9e9e; /* gris */
}

.chatbox__title h5:before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    transform: translateY(-50%);
}



.chatbox__title__close, .chatbox__title__tray {
    width: 24px;
    height: 24px;
    outline: 0;
    border: none;
    background-color: transparent;
    opacity: .5;
    cursor: pointer;
    -webkit-transition: opacity .2s;
    transition: opacity .2s
}

    .chatbox__title__close:hover, .chatbox__title__tray:hover {
        opacity: 1
    }

    .chatbox__title__tray span {
        width: 12px;
        height: 12px;
        display: inline-block;
        border-bottom: 2px solid #fff
    }

    .chatbox__title__close svg {
        vertical-align: middle;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.2px
    }

.chatbox__body, .chatbox__credentials {
    padding: 15px;
    border-top: 0;
    background-color: #dcdcdc;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    -webkit-flex-grow: 1;
    flex-grow: 1
}

    .chatbox__credentials .form-control {
        -webkit-box-shadow: none;
        box-shadow: none
    }

.chatbox__body {
    overflow-y: auto
}

.chatbox__body__message {
    position: relative
}

    .chatbox__body__message p {
        padding: 15px;
        border-radius: 4px;
        font-size: 14px;
        background-color: #fff;
        -webkit-box-shadow: 1px 1px rgba(100,100,100,.1);
        box-shadow: 1px 1px rgba(100,100,100,.1)
    }

    .chatbox__body__message img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #fcfcfc;
        position: absolute;
        top: 15px
    }

.chatbox__body__message--left p {
    margin-left: 15px;
    padding-left: 30px;
    text-align: left;
    padding-top: 25px
}

.chatbox__body__message--left img {
    left: -5px
}

.chatbox__body__message--right p {
    margin-right: 15px;
    padding-right: 30px;
    text-align: right
}

.chatbox__body__message--right img {
    right: -5px
}

.chatbox__message {
    padding: 15px;
    min-height: 50px;
    outline: 0;
    resize: none;
    border: 1px solid #ddd;
    font-size: 12px;
    border-bottom: none;
    background-color: #fefefe
}

.chatbox__body__message--left .ul_section_full, .chatbox__body__message--right .ul_section_full {
    padding-top: 15px;
    padding-bottom: 5px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff
}

.chatbox--empty {
    height: 262px
}

    .chatbox--empty.chatbox--tray {
        bottom: -212px
    }

    .chatbox--empty.chatbox--closed {
        bottom: -262px
    }

    .chatbox--empty .chatbox__credentials, .ul_msg li {
        display: block
    }

.chatbox_timing {
    position: absolute;
    right: 10px;
    font-size: 12px;
    top: 2px
}

    .chatbox_timing ul {
        padding: 0;
        margin: 0
    }

        .chatbox_timing ul li {
            list-style: none;
            display: inline-block;
            margin-left: 3px;
            margin-right: 3px
        }

            .chatbox_timing ul li a {
                display: block;
                color: #747474
            }

.ul_msg {
    padding: 10px !important;
    margin: 0
}

.chatbox__body__message--right .ul_section_full {
    margin-right: 15px;
    padding-right: 30px;
    text-align: right;
    -webkit-box-shadow: 1px 1px rgba(100,100,100,.1);
    box-shadow: 1px 1px rgba(100,100,100,.1)
}

.chatbox__body__message--left .ul_section_full {
    margin-left: 15px;
    padding-left: 15px;
    text-align: left;
    -webkit-box-shadow: 1px 1px rgba(100,100,100,.1);
    box-shadow: 1px 1px rgba(100,100,100,.1)
}

.ul_msg li {
    list-style: none
}

.ul_msg2 {
    padding: 0;
    margin: 0;
    text-align: right
}

.chatbox__body__message--right .ul_msg2, .col-lg-3.control-label, .messsade_date {
    text-align: left
}

.ul_msg2 li {
    list-style: none;
    display: inline-block;
    margin-right: 15px
}

.chatbox__body__message--right .chatbox_timing {
    position: absolute;
    left: 10px;
    font-size: 12px;
    top: 2px
}

.chatbox__body__message--right .ul_msg2 li {
    list-style: none;
    display: inline-block;
    margin-left: 15px;
    margin-right: 0
}

.chat_set_height {
    height: 40px;
    margin-top: 1px
}

.chatbox22 .form-control:focus {
    border-color: #dcdcdc
}

.width50 {
    width: 50%;
    float: left;
    background: #ececec
}

.message_check {
    padding-top: 10px
}

.messsade_date {
    padding-top: 9px
}

    .messsade_date a {
        color: #000
    }

.padleftright0 {
    padding-left: 0;
    padding-right: 0
}

.message_box_area {
    color: #000;
    cursor: pointer
}

.create_m {
    border: 1px solid #ccc !important
}

.fileinput-button {
    background: #eee;
    border: 1px solid #e6e6e6;
    margin-top: 15px;
    float: left;
    margin-right: 4px;
    overflow: hidden;
    position: relative
}

    .fileinput-button input {
        cursor: pointer;
        direction: ltr;
        font-size: 23px;
        margin: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 0;
        transform: translate(-300px,0) scale(4)
    }

.fileupload-buttonbar .btn, .fileupload-buttonbar .toggle {
    margin-bottom: 5px
}

.create_m:focus {
    border-color: #66afe9 !important;
    outline: 0 !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6) !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6) !important
}
#chatPanel {
    /*border: solid 1px #ff6600;
    border-top: solid 1px #ff6600;*/
    background-color: #dcdcdc !important;
    width: 100%;
    height: 302px;
}

    #chatPanel #chatBody {
        height: 300px;
    }

    #chatPanel #userPanel {
        float: left;
        width: 19%;
        height: 300px;
        overflow: auto;
        border-right: solid 1px #ff6600;
    }

        #chatPanel #userPanel ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

            #chatPanel #userPanel ul li {
                padding: 2px 0 2px 5px;
            }

    #chatPanel #messagePanel {
        height: 300px;
        overflow: auto;
    }

        #chatPanel #messagePanel ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

            #chatPanel #messagePanel ul li {
                padding: 5px 0 0 0;
            }

    #chatPanel #messagePanel {
        width: 100%;
        float: right;
    }

        #chatPanel #messagePanel span.userName {
            font-weight: bold;
        }

    #chatPanel #chatFooter {
        /*padding: 5px;*/
    }

    #chatPanel input#txtMessage {
        float: right;
        border-style: solid;
        border-width: 1px;
        width: 100%;
        padding: 3px;
        height: 35px;
    }
@media (max-width: 768px) {
    .chatbox {
/*        width: 100% !important;*/
/*        bottom: 0 !important;*/
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        max-height: 60vh;
    }

/*    .chatbox__body {
        max-height: 50vh;
        overflow-y: auto;
    }*/
/*
    #chatFooter {
        padding: 10px;
    }*/

/*    .chatbox__title h5 a {
        font-size: 16px;
    }*/
/*    .chatbox {
        position: fixed;
        bottom: 0;
        right: 103px;
        width: 350px;
        height: 400px;
        font-family: Lato,sans-serif;
        -webkit-transition: .6s cubic-bezier(.19, 1, .22, 1);
        transition: .6s cubic-bezier(.19, 1, .22, 1);
        z-index: 999;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column
    }*/


}


.chatbox__body {
    max-height: 400px;
    overflow-y: auto;
}

/*@media screen and (min-width: 768px) {
    .chatbox {
        width: 600px;
        height: 700px;
    }

    .chatbox--tray {
        bottom: -660px;
    }

    .chatbox__body {
        max-height: 700px;
    }

    #chatPanel #chatBody,
    #chatPanel #messagePanel {
        height: 600px;
    }
}
*/


@media screen and (min-width: 768px) {
    .chatbox {
        width: 600px;
        height: 700px;
    }

    .chatbox--tray {
        bottom: -660px;
    }

    .chatbox__body {
        max-height: 700px;
    }

    #chatPanel #chatBody,
    #chatPanel #messagePanel {
        height: 600px;
    }
}
