#messages-filter {
    display: block;
    width: 100%;
    padding: 25px 25px 0 25px;
    font-size: 0;
}

.filter {
    display: inline-block;
    vertical-align: middle;
    height: 30px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #444;
    font-size: 14px;
    margin-right: 30px;
    border-bottom-width: 2px;
    border-bottom-color: transparent;
    border-bottom-style: solid;
    transition: .2s linear;
}

.filter.active,
.filter:hover {
    border-bottom-color: #444;
}

@media only screen and (max-width: 500px){
    
    #messages-filter {
        padding: 20px;
        background: #fff;
        border-bottom: 1px solid #ddd;
    }
    
}

/**********************************************/

#messages {
    display: block;
    width: 100%;
    max-width: 1000px;
    padding: 25px;
}

.message {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background: #fff;
}

.message-header {
    display: block;
    width: 100%;
    padding: 20px;
    position: relative;
}

.sender {
    display: block;
    width: 100%;
    line-height: 25px;
    font-size: 20px;
    font-family: Poppins-Bold, sans-serif;
    font-weight: bold;
    color: #444;
    position: relative;
    z-index: 1;
    padding-right: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-header p {
    display: block;
    width: 100%;
    padding-right: 80px;
    height: 15px;
    font-size: 0;
    text-align: left;
}

.message-header p span {
    display: inline-block;
    vertical-align: middle;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #777;
    font-size: 12px;
}

.sentAt {
    margin-left: 5px;
    border-left: 1px solid #999;
    padding-left: 5px;
}

.toggle-message {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 10;
    top: 20px;
    right: 20px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 5px;
}

.toggle-message svg {
    display: block;
    width: 100%;
    height: 100%;
}

.toggle-message polyline {
    fill: none;
    stroke: #777;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toggle-message .down {
    display: block;
}

.toggle-message .up {
    display: none;
}

.message.expand .toggle-message polyline.down {
    display: none;
}

.message.expand .toggle-message polyline.up {
    display: block;
}

.message-detail {
    display: block;
    width: 100%;
    padding: 0 20px;
    height: 0px;
    overflow: hidden;
    transition: .2s linear;
}

.message.expand .message-detail {
    padding: 20px;
    height: auto;
}

.subject {
    display: block;
    width: 100%;
    line-height: 25px;
    font-size: 20px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #444;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.subject strong {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    font-family: Poppins-Bold, sans-serif;
    font-weight: bold;
}

.message_ {
    display: block;
    width: 100%;
    line-height: 25px;
    font-size: 15px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #777;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.reply {
    display: inline-block;
    vertical-align: middle;
    padding: 0 40px;
    line-height: 40px;
    background: blueviolet;
    border-radius: 4px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #fff;
    text-transform: capitalize;
    font-size: 14px;
}

.delete-message {
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 4px;
    background: #ddd;
    outline: 0;
    padding: 7px;
    margin-left: 10px;
}

.delete-message img {
    display: block;
    width: 100%;
    height: 100%;
}

.load-more-messages {
    display: none;
    width: 150px;
    height: 40px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #444;
    font-size: 14px;
    text-align: center;
    background: transparent;
    margin: 0 auto 50px auto;
}

.load-more-messages.visible {
    display: block;
}

#no-messages {
    display: block;
    width: 100%;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #444;
    margin-top: 50px;
}

#messages .loading {
    display: block;
    width: 200px;
    margin: 0 auto;
}

@media only screen and (max-width: 500px){
    
    #messages {
        padding: 0;
    }
    
    .message {
        border: 0;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        margin: 0;
    }
    
    .message-header {
        height: 95px;
    }
    
    .sender {
        font-size: 18px;
    }
    
    .message-header p span {
        display: block;
    }
    
    .sentAt {
        margin-left: 0;
        border: 0;
        padding: 0;
    }
    
    .subject {
        font-size: 16px;
        line-height: 20px;
    }
    
    .message_ {
        line-height: 23px;
        font-size: 13px;
    }
    
    .reply {
        font-size: 12px;
    }
    
    .load-more-messages {
        margin: 20px auto;
    }
    
}



























