/* Global */

.sidebar-item {
    font-size: 1.3em;
}

.sidebar-title {
    font-size: 1.8em;
}

.main-title {
    font-size: 2em;
}

.username {
    font-size: 1.3em;
}

.pointer {
    cursor: pointer;
}

.d-sm-none {
    display: block!important;
}

.d-none {
    display: none!important;
}

#aelem:hover {
    color: #48afc5;
}


/* new.html */

.card-general {
    max-height: 80vh;
    padding-bottom: 2vh;
}

.card-body-scrolleable {
    position: relative;
    max-height: 90%;
    overflow: scroll;
}

.card-body-scrolleable.chat-container {
    max-height: 80%;
}

.table-responsive {
    position: relative;
    overflow: scroll;
}

@media screen and (max-width: 1400px) {
    .card-body-scrolleable {
        max-height: 88%;
    }
    .card-body-scrolleable.chat-container {
        max-height: 70%;
    }
}

@media screen and (max-width: 576px) {
    .main-panel {
        overflow: hidden;
    }
    .d-sm-none {
        display: none!important
    }
    .main-title {
        font-size: 1.3em;
    }
    .card-body-scrolleable {
        max-height: 85%;
    }
    .card-body-scrolleable.chat-container {
        max-height: 70%;
    }
}

#id_archivo {
    position: none;
    z-index: -100;
}

.select2-selection,
.select2-container {
    border-radius: 30px!important;
}

.select2-results {
    margin-top: 1em!important;
}

.select2-results__options {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.select2-dropdown {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

video {
    width: 100%;
    height: auto;
}

.send {
    max-height: 2.6em;
    fill: white;
    opacity: 0.8;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.field-etiqueta .select2-selection__rendered {
    margin-top: -1em!important;
}


/* inbox.html */

.inbox {
    height: 78vh;
    padding-bottom: 2vh;
}

.card-body.chat-container {
    padding-top: 0;
    padding-right: 1;
    padding-bottom: 0;
    padding-left: 1;
}


/* Conversaciones */

.conversacion {
    padding-top: 0.4em;
    padding-bottom: 0.2em;
    padding-right: 0.5em;
    padding-left: 0.5em;
    min-height: 75px;
    margin: 0px;
    margin-top: -1px;
    border-style: solid;
    border-width: 1px 0px 1px 0px;
    border-color: rgba(222, 228, 228, 0.5);
    cursor: pointer;
}

.conversacion:hover {
    background-color: #e6faffa9;
    border-color: #e6faffa9;
}

.conversacion.active {
    background-color: #c4f4ffbb;
    border-color: #c4f4ffbb;
}

.conversacion-text {
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* number of lines to show */
    -webkit-box-orient: vertical;
}

.conversacion-operador {
    font-weight: bold;
    color: rgb(161, 161, 161);
}

.conversacion-nombre {
    font-size: 1em;
    font-weight: bold;
    color: rgb(80, 80, 80);
}

.badge-success.unreads,
.badge-light {
    border-radius: 50%;
    min-width: 1.5em;
    height: 1.5em;
}


/* Chat */

.chat-grupo {
    color: rgb(229, 238, 238);
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.2em;
    margin-bottom: 0;
    margin-top: 0.5em;
}

.chat-nombre {
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px #575656;
}

.chat-type {
    position: relative;
    margin-top: -1em;
}

#chat {
    padding: 0;
}

.chat-header {
    min-height: 20%;
    background-color: #48afc5!important;
    color: white;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

.chat-body {
    background-color: rgba(236, 241, 241);
    position: relative;
    height: 70%;
    overflow: scroll;
}

.chat-body.card-body {
    padding-top: 0.5em;
}

.chat-footer {
    min-height: 10%;
    background-color: #2a5788!important;
    position: relative;
    padding: 0;
}

.chat-header-button {
    margin-top: 0;
    background-color: #48afc5!important;
    color: white!important;
}

.chat-header-button:focus,
.chat-header-button:hover,
.chat-header-button:active,
.chat-header-button:active:focus {
    color: white!important;
}

.footer-items {
    position: absolute;
    width: 100%;
    right: 1em;
    left: 0.9em;
    bottom: 0;
}

.chat-new-text {
    background-color: #ffffff!important;
    border-style: solid!important;
    border-width: 1px 0px 1px 1px!important;
    border-top-left-radius: 20px!important;
    border-bottom-left-radius: 20px!important;
    border-color: #2a5788!important;
    color: rgb(34, 34, 34)!important;
    resize: none;
}

.chat-new-text::placeholder {
    color: rgb(34, 34, 34)!important;
}

.chat-new-text:focus {
    border-color: #ffffff!important;
}

.input-group-append {
    border-top-right-radius: 20px!important;
    border-bottom-right-radius: 20px!important;
    color: #2a5788!important;
    cursor: pointer;
}

.chat-attach {
    background-color: #ffffff!important;
    border-color: #2a5788!important;
}

.chat-attach:hover {
    color: #1026a0!important;
}

.chat-attach.active {
    border-color: #ffffff!important;
}

#preview-container {
    margin-top: -0.5em;
}

.chat-send {
    height: 45px!important;
    width: 45px!important;
    bottom: 0.62em;
}

.chat-load-more {
    background-color: #59a1b1;
    border-radius: 5px;
    color: white;
    font-size: 0.85em;
    text-shadow: 1px 1px 1px #797777;
    box-shadow: 0 3px 30px 0 rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    padding-left: 0.5em;
    padding-right: 0.5em;
    width: max-content;
}

.chat-divisor {
    color: rgb(56, 56, 56);
    text-shadow: 1px 1px 1px #797777;
    width: 90%;
    margin: 1em;
}

.message-in {
    padding: 0.7em;
    padding-bottom: 0.5em;
    background-color: #ffffff;
    border-radius: 20px;
    border-top-left-radius: 3px;
    color: rgb(34, 34, 34)!important;
    text-shadow: 1px 1px 10px #e6e6e6;
    box-shadow: 0 3px 30px 0 rgba(0, 0, 0, 0.1);
    min-height: 45px;
    min-width: 10%;
    max-width: 80%;
}

.message-out {
    padding: 0.7em;
    padding-bottom: 0.5em;
    background-color: #3081af;
    border-radius: 20px;
    border-top-right-radius: 3px;
    color: rgb(255, 255, 255)!important;
    text-shadow: 1px 1px 20px #797777;
    box-shadow: 0 3px 30px 0 rgba(0, 0, 0, 0.1);
    min-height: 45px;
    min-width: 10%;
    max-width: 80%;
}

.message-operador {
    font-weight: bold;
    font-size: 0.8em;
    color: rgb(161, 161, 161);
}


/* Medias querys */

@media screen and (max-width: 1400px) {
    .footer-items {
        width: 95%
    }
}

@media screen and (max-width: 576px) {
    .chat-nombre {
        font-size: 1.5em;
    }
    .chat-grupo {
        font-size: 1em;
    }
    .chat-footer {
        min-height: 12%;
    }
    .footer-items {
        width: 95%, ;
        left: 0.7em;
    }
}


/*- loader -*/

.loader {
    display: inline-block;
    width: 100%;
    height: 2.5em;
}

.loader:after {
    content: " ";
    display: block;
    width: 2.5em;
    height: 2.5em;
    margin: auto;
    border-radius: 50%;
    border: 0.25em solid #48afc5;
    border-color: #48afc5 transparent #48afc5 transparent;
    animation: loader 0.8s linear infinite;
}

.upload {
    display: inline-block;
    width: 100%;
    height: 1em;
}

.upload::after {
    content: " ";
    display: block;
    margin-right: auto;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    border: 0.2em solid #ffffff;
    border-color: #ffffff transparent #ffffff transparent;
    animation: loader 0.8s linear infinite;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}