/* Custom, iPhone Retina */ 
@media only screen and (min-width : 320px) {

    .mensaje-sistema {
        border-bottom: 1px solid #ccc;
    }
    
}

/* Extra Small Devices, Phones */ 
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {

    .mensaje-sistema {
        border-radius: 4px;
        border: 1px solid #ccc;
        border-bottom-color: #666;
        margin: 0.5em;
        width: 32%;
        box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    }

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {

}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

}

    .last-message .shadow {
        background: radial-gradient(ellipse at 50% 20px, rgba(0,0,0,0.20), rgba(0,0,0,0) 70%);
        bottom: 0;
        height: 20px;
        position: absolute;
        text-align:center;
        width: 90%;
    }
        .last-message .shadow .ampliar {
            background-color: var(--white);
            margin: auto;
            width: 30px;
            position: absolute;
            left: 40%;
            bottom: -10px;
            padding: 4px 12px;
            box-shadow: 0 0 4px rgba(0,0,0,0.25);
            border-radius: 4px;
            font-size: 11px;
            height: 22px;
            cursor:pointer;
        }
        .last-message .shadow .ampliar:hover {
            background-color:var(--yellow);
        }

.mensaje-sistema {
    cursor: default;
    min-height: 130px;
    padding: 1em 0;
}

.conversation {
    border-radius:4px;
    clear:both;
    cursor:pointer;
    padding:0.5em;
}
    .conversation:hover {
        background-color:var(--light);
    }
#nueva-conversacion {
    margin-top:1em;
}

.message-user-picture {
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    box-shadow:2px 2px 4px rgba(0,0,0,0.15);
    height:50px;
    margin-right:1em;
    width:50px;
}
.message-user-name {
    color:var(--orange);
    font-size:1.2em;
    font-weight:bold;
}
.message-user-username {
    font-family:monospace;
    font-size:1em;
}
.message-timestamp {
    color:var(--gray);
}
.last-message {
    font-size:0.9em;
    height:auto;
}
.mensaje-sistema .last-message {
    height:6em;
    overflow:hidden;
}
.last-message small {
    display:block;
}
.hide-extra {
    max-height:60px;
    overflow:hidden;
}
li.last-message {
    display:block;
    padding-bottom:1em;
}
#conversation-with {
    font-weight:bold;
}

#new-message {
    resize: vertical;
}

#messages-list {
    max-height:58vh;
    min-height:350px;
    overflow-x:hidden;
    overflow-y:scroll;
}

#messages-list .last-message:hover .timestamp {
    color:#3a87ad;
}
.timestamp {
    color:#fff;
}

#conversations-list {
    height: 70vh;
    overflow-x:hidden;
    overflow-y:auto;
}

#lista-grupos li {
    border-bottom:1px solid #ccc;
    padding-bottom:4px;
}
    #lista-grupos li strong small {
        font-family:monospace;
        font-weight:normal;
    }

.unread {
    background-color: var(--yellow);
}
    .unread:hover {
        background-color: var(--yellow);
    }

.unread.mensaje-sistema {
    background-color: var(--yellow-light);
    box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.3);
}

#mensajes-del-sistema {
    margin-bottom:2em;
}