html,
body,
span {
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: url("https://www.bootdey.com/img/bgy.png") no-repeat fixed center;
    background-size: cover;
}

    body.swal2-height-auto {
        height: 100% !important;
    }

#status{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    right: 0;
    left: 95%
}

    #status.online {
        background: rgb(255,255,255);
        background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(25,181,32,1) 50%);
    }

    #status.offline {
        background: rgb(255,255,255);
        background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(191,17,17,1) 50%);
    }

.fa-2x {
    font-size: 1.5em;
}

.app {
    position: relative;
    overflow: hidden;
    top: 19px;
    height: calc(100% - 38px);
    margin: auto;
    padding: 0;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

.app-one {
    background-color: #f7f7f7;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

.side {
    padding: 0;
    margin: 0;
    height: 100%;
}

.side-one {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    position: relative;
    display: block;
    top: 0;
    background-color: #f0f2f5;
}

.side-two {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
    top: -100%;
    left: -100%;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;
}

.heading {
    position: relative;
    padding: 10px 16px 10px 15px;
    margin: 0;
    height: 60px;
    width: 100%;
    background-color: #075e54;
    z-index: 1000;
}

    .heading.chat {
        z-index: 100 !important;
        -webkit-box-shadow: 0 4px 6px -6px #6F737B;
        -moz-box-shadow: 0 4px 6px -6px #6F737B;
        box-shadow: 0 4px 6px -4px #6F737B;
    }

.heading-avatar {
    padding: 0;
    cursor: pointer;
}

.heading-name {
    padding: 0 !important;
    height: 100% !important;
    position: relative;
}

.assign-agent {
    padding: 10px 0 !important;
    height: 100%;
}

    .assign-agent i {
        color: #000;
        cursor: pointer;
        font-size: 1.5em;
    }

.close_conversation {
    padding: 5px !important;
    height: 100%;
}

    .close_conversation i {
        color: #A52A2A;
        cursor: pointer;
        font-size: 1.8em;
    }

.heading-name-meta {
    font-weight: 700;
    font-size: 100%;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
    display: block;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 0%;
    -ms-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}

.heading-online {
    display: none;
    padding: 0 5px;
    font-size: 12px;
    color: #93918f;
}

.heading-compose {
    padding: 0;
}

    .heading-compose i {
        text-align: center;
        padding: 5px;
        color: #93918f;
        cursor: pointer;
    }

.heading .agent-name {
    font-weight: 700;
    padding: 0;
    margin: 0;
    height: 100% !important;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.heading .agent-status-btn {
    padding: 0;
    margin: 0;
    height: 100% !important;
}

    .heading .agent-status-btn > div {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .heading .agent-status-btn .btn-primary {
        background-color: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        font-size: 12px;
        padding: 5px 12px;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .heading .agent-status-btn .btn-primary:hover {
        background-color: rgba(255,255,255,0.25);
    }

.heading .agent-status {
    padding: 0;
    margin: 0;
    height: 100% !important;
}

    .heading .agent-status > div {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 100%;
        -ms-transform: translate(-100%, -50%);
        transform: translate(-100%, -50%);
    }

.searchBox {
    padding: 0 !important;
    margin: 0 !important;
    height: 60px;
    width: 100%;
}

.searchBox-inner {
    height: 100%;
    width: 100%;
    padding: 10px !important;
    background-color: #fbfbfb;
}

    .searchBox-inner input:focus {
        outline: none;
        border: none;
        box-shadow: none;
    }

.sideBar {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff;
    overflow-y: auto;
    border: none;
    height: calc(100% - 60px);
}

.sideBar::-webkit-scrollbar {
    width: 6px;
}

.sideBar::-webkit-scrollbar-track {
    background: transparent;
}

.sideBar::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.sideBar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.35);
}

.sideBar-body {
    position: relative;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f0f2f5;
    height: auto;
    min-height: 72px;
    margin: 0 !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .sideBar-body:hover {
        background-color: #f5f6f6;
    }

    .sideBar-body.active {
        background-color: #e9edef;
        border-right: 3px solid #075e54;
    }

.sideBar-avatar {
    text-align: center;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon img {
    border-radius: 50%;
    height: 46px;
    width: 46px;
    object-fit: cover;
    border: 2px solid #f0f2f5;
}

.channel-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.channel-whatsapp {
    color: #25D366;
    background-color: rgba(37, 211, 102, 0.12);
}

.channel-niceapp {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.channel-niceweb {
    color: #6f42c1;
    background-color: rgba(111, 66, 193, 0.12);
}

.sideBar-main {
    padding: 0 !important;
    height: 100%;
}

    .sideBar-main .row {
        padding: 0 !important;
        margin: 0 !important;
        height: 100%;
    }

.sideBar-name {
    height: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
}

.name-meta {
    font-size: 14px;
    font-weight: 500;
    padding: 0 !important;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111b21;
    margin: 0;
    line-height: 1.3;
}

.name-meta span {
    font-size: 11px;
    color: #667781;
    font-weight: 400;
}

.sideBar-status {
    height: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.status-meta {
    background-color: #25D366;
    border-radius: 50%;
    margin: 0;
    position: relative;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-decoration: none !important;
    height: 20px;
    width: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

    .status-meta.d-none {
        display: none;
    }

.messages-meta {
    display: inline-block;
    color: #ffffff;
    padding-top: 2px;
    font-size: 11px;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-decoration: none !important;
}

    .messages-meta:hover {
        color: #ffffff !important;
    }

.sideBar-time {
    height: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.time-meta {
    text-align: right;
    font-size: 11px;
    color: #667781;
    margin: 0;
    line-height: 1.4;
}

/*New Message*/
.newMessage {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    position: relative;
    left: -100%;
}

.newMessage-heading {
    padding: 10px 16px 10px 15px !important;
    margin: 0 !important;
    height: 100px;
    width: 100%;
    background-color: #00bfa5;
    z-index: 1001;
}

.newMessage-main {
    padding: 10px 16px 0 15px !important;
    margin: 0 !important;
    height: 60px;
    margin-top: 30px !important;
    width: 100%;
    z-index: 1001;
    color: #fff;
}

.newMessage-title {
    font-size: 18px;
    font-weight: 700;
    padding: 10px 5px !important;
}

.newMessage-back {
    text-align: center;
    vertical-align: baseline;
    padding: 12px 5px !important;
    display: block;
    cursor: pointer;
}

    .newMessage-back i {
        margin: auto !important;
    }

.composeBox {
    padding: 0 !important;
    margin: 0 !important;
    height: 60px;
    width: 100%;
}

.composeBox-inner {
    height: 100%;
    width: 100%;
    padding: 10px !important;
    background-color: #fbfbfb;
}

    .composeBox-inner input:focus {
        outline: none;
        border: none;
        box-shadow: none;
    }

.compose-sideBar {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff;
    overflow-y: auto;
    border: 1px solid #f7f7f7;
    height: calc(100% - 160px);
}

/*Conversation*/
.avatar-icon img.new-conversation-icon {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
}

.conversation {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    /*width: 100%;*/
    border-left: 1px solid rgba(0, 0, 0, .08);
    /*overflow-y: auto;*/
}

.message {
    padding: 0 !important;
    margin: 0 !important;
    background: url("") no-repeat fixed center;
    background-size: cover;
    overflow-y: auto;
    border: 0px solid #dfdfdf;
    height: calc(100% - 140px);
    background-color: #ececec;
    padding-bottom: 10px !important;
}

.quickly-answer {
    position: absolute;
    bottom: 80px;
    height: max-content;
    width: 100%;
    overflow-y: auto;
    background-color: #dfdfdf;
    display: none;
    white-space: nowrap;
    overflow-x: hidden;
    z-index: 100;
}

    .quickly-answer .answer-item {
        padding: 10px 20px;
        border-bottom: 1px solid #BABABA;
        cursor: pointer;
    }

        .quickly-answer .answer-item span {
            font-weight: 600;
            margin-right: 10px;
            margin-left: 10px;
        }

        .quickly-answer .answer-item:hover {
            background-color: #BABABA;
        }

.quickly-doc {
    position: absolute;
    bottom: 80px;
    height: max-content;
    width: 100%;
    overflow-y: hidden;
    background-color: #dfdfdf;
    white-space: nowrap;
    overflow-x: hidden;
    z-index: 100;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    display: none;
}

    .quickly-doc #quicklyDocClose {
        cursor: pointer;
    }

    .quickly-doc .file-url {
        margin-top: 1rem;
        font-weight: 600;
    }

    .quickly-doc .file i {
        font-size: 6rem;
    }

.message-previous {
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    width: 100%;
}

.previous {
    font-size: 15px;
    text-align: center;
    padding: 10px !important;
    cursor: pointer;
}

    .previous a {
        text-decoration: none;
        font-weight: 700;
    }

.message-body {
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    height: auto;
}

.message-main-receiver {
    padding: 5px 20px;
    max-width: 60%;
}

.message-main-sender {
    padding: 3px 20px !important;
    margin-left: 40% !important;
    max-width: 60%;
}

.message-text {
    margin: 0 !important;
    padding: 5px !important;
    word-wrap: break-word;
    font-weight: 200;
    font-size: 14px;
    padding-bottom: 0 !important;
}

.message-time {
    font-size: 10px;
    text-align: right;
    color: #9a9a9a;
    margin-right: 10px;
}

.receiver {
    width: auto !important;
    padding: 4px 10px 7px !important;
    border-radius: 10px 10px 10px 0;
    background: #ffffff;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    word-wrap: break-word;
    display: inline-block;
}

    .receiver.sticker {
        padding: 0 !important;
        background: transparent;
    }

    .receiver.image {
        padding: 1px !important;
        background: #ffffff;
    }

        .receiver.image img {
            border-radius: 6px;
        }

    .receiver.video {
        padding: 1px !important;
        background: #ffffff;
    }

        .receiver.video video {
            border-radius: 6px;
        }

    .receiver.file .box-file {
        display: flex;
        justify-content: start;
        align-items: center;
        background-color: #f5f5f5;
        border-radius: 10px;
        padding: 10px 15px;
    }

        .receiver.file .box-file .file-download {
            display: flex;
            justify-content: start;
            padding-right: 10px;
        }

            .receiver.file .box-file .file-download a {
                border: 2px double rgba(0,0,0,.1);
                border-radius: 50%;
                padding: 0 10px;
                margin-bottom: 2px;
            }

            .receiver.file .box-file .file-download i {
                font-size: 1.5rem;
                margin: 10px 0;
                color: #000000;
                opacity: .5;
                cursor: pointer;
            }

    .receiver .text-image {
        background-color: #fff;
        padding: 5px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

.sender {
    float: right;
    width: auto !important;
    background: #dcf8c6;
    border-radius: 10px 10px 0 10px;
    padding: 4px 10px 7px !important;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    display: inline-block;
    word-wrap: break-word;
}

    .sender.sticker {
        padding: 0 !important;
        background: transparent;
    }

    .sender.image {
        padding: 1px !important;
        background: #dcf8c6;
    }

        .sender.image img {
            border-radius: 6px;
        }

    .sender.video {
        padding: 1px !important;
        background: #dcf8c6;
    }

        .sender.video video {
            border-radius: 6px;
        }

    .sender.file .box-file {
        justify-content: start;
        align-items: center;
        background-color: #CFEEB6;
        border-radius: 8px;
        padding: 15px 0 0 0;
        margin-left: auto;
        margin-right: auto;
    }

        .sender.file .box-file .file-download {
            display: flex;
            justify-content: center;
        }

            .sender.file .box-file .file-download a {
                border: 2px double rgba(0,0,0,.1);
                border-radius: 50%;
                padding: 0 10px;
                margin-bottom: 5px;
            }

            .sender.file .box-file .file-download i {
                font-size: 1.5rem;
                margin: 10px 0;
                color: #000000;
                opacity: .5;
                cursor: pointer;
            }

        .sender.file .box-file .file-name {
            text-align: center;
            margin-bottom: 10px;
        }

    .sender .text-image {
        background-color: #dcf8c6;
        padding: 5px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        text-align: justify;
    }

/*Reply*/
.reply {
    height: 80px;
    width: 100%;
    background-color: #dfdfdf;
    padding: 10px 5px 10px 5px !important;
    margin: 0 !important;
    z-index: 1000;
    position: relative;
    -webkit-box-shadow: 0 -4px 6px -6px #6F737B;
    -moz-box-shadow: 0 -4px 6px -6px #6F737B;
    box-shadow: 0 -4px 6px -4px #6F737B;
    text-align: center;
}

.reply-main {
    padding: 2px 5px !important;
}

    .reply-main textarea {
        width: 100%;
        resize: none;
        overflow: hidden;
        padding: 5px !important;
        outline: none;
        border: none;
        text-indent: 5px;
        box-shadow: none;
        height: 100%;
        font-size: 16px;
        overflow-y: auto;
    }

        .reply-main textarea:focus {
            outline: none;
            border: none;
            text-indent: 5px;
            box-shadow: none;
        }

.reply-attach {
    padding: 2px 5px !important;
    height: 100%;
    display: flex;
    align-items: center;
    margin-top: 3px;
}

    .reply-attach button {
        background-color: transparent;
    }

    .reply-attach i {
        font-size: 1.5em;
    }

.dropdown-menu {
    left: -25%;
    min-width: 60px;
    text-align: center;
}

    .dropdown-menu div {
        padding: 5px;
    }

        .dropdown-menu div input {
            display: none;
        }

        .dropdown-menu div i {
            font-size: 2rem;
            cursor: pointer;
            color: gray;
        }

            .dropdown-menu div i:hover {
                font-size: 2.5rem;
                color: black;
            }

.reply-send {
    padding: 5px 5px !important;
    height: 100%;
    display: flex;
    align-items: center;
}

    .reply-send i {
        color: #93918f;
        cursor: pointer;
        font-size: 1.5em;
        transform: rotate(40deg);
    }

div:where(.swal2-container) div:where(.swal2-popup) {
    font-size: 1.4rem;
}

#agentesAsignarModal .close span {
    font-size: 3rem;
}

#agentesAsignarModal .select-agent{
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
}

#agentesAsignarModal .list-agents label {
    margin-top: 7px;
}

#agentesAsignarModal .btn-success {
    background-color: #0a2140;
    border: 0;
}

@media screen and (max-width: 700px) {
    .app {
        top: 0;
        height: 100%;
    }

    .heading {
        height: 70px;
        background-color: #009688;
    }

    .fa-2x {
        font-size: 2.3em !important;
    }

    .heading-avatar {
        padding: 0 !important;
    }

    .heading-avatar-icon img {
        height: 50px;
        width: 50px;
    }

    .heading-compose {
        padding: 5px !important;
    }

        .heading-compose i {
            color: #fff;
            cursor: pointer;
        }

    .heading-dot {
        padding: 5px !important;
        margin-left: 10px !important;
    }

        .heading-dot i {
            color: #fff;
            cursor: pointer;
        }

    .sideBar {
        height: calc(100% - 130px);
    }

    .sideBar-body {
        height: 80px;
    }

    .sideBar-avatar {
        text-align: left;
        padding: 0 8px !important;
    }

    .avatar-icon img {
        height: 55px;
        width: 55px;
    }

    .sideBar-main {
        padding: 0 !important;
    }

        .sideBar-main .row {
            padding: 0 !important;
            margin: 0 !important;
        }

    .sideBar-name {
        padding: 10px 5px !important;
    }

    .name-meta {
        font-size: 16px;
        padding: 5% !important;
    }

    .name-meta span {
        font-size: 14px;
    }

    .sideBar-time {
        padding: 10px !important;
    }

    .time-meta {
        text-align: right;
        font-size: 14px;
        padding: 4% !important;
        color: rgba(0, 0, 0, .4);
        vertical-align: baseline;
    }
    /*Conversation*/
    .conversation {
        padding: 0 !important;
        margin: 0 !important;
        height: 100%;
        /*width: 100%;*/
        border-left: 1px solid rgba(0, 0, 0, .08);
        /*overflow-y: auto;*/
    }

    .message {
        height: calc(100% - 140px);
    }

    .reply {
        height: 70px;
    }

    .reply-emojis {
        padding: 5px 0 !important;
    }

        .reply-emojis i {
            padding: 5px 2px !important;
            font-size: 1.8em !important;
        }

    .reply-main {
        padding: 2px 8px !important;
    }

        .reply-main textarea {
            padding: 8px !important;
            font-size: 18px;
        }

    .reply-recording {
        padding: 5px 0 !important;
    }

        .reply-recording i {
            padding: 5px 0 !important;
            font-size: 1.8em !important;
        }

    .reply-send {
        padding: 5px 0 !important;
    }

        .reply-send i {
            padding: 5px 2px 5px 0 !important;
            font-size: 1.8em !important;
        }
}
