/** Message **/
.message-discussion-noframes h1 {
    font-size: 1em;
}
.message-discussion-noframes #userinfo .commands,
.message .noframesjslink,
.message .link {
    font-size: @fontSizeSmall;
}
.message .heading {
    font-size: 1em;
    font-weight: bold;
    clear: both;
    word-wrap: break-word;
}
.message .author {
    font-weight: bold;
}
.message .time {
    font-style: italic;
}
#page-message-user .commands span {
    font-size: 0.7em;
}
#page-message-user .name {
    font-weight: bold;
    font-size: 1.1em;
}
.message .time {
    .muted;
}
#page-message-messages {
    padding: 10px;
}
#page-message-send .notifysuccess {
    padding: 1px;
}
#page-message-send td.fixeditor {
    text-align: center;
}
.message {
    overflow: hidden;
}
.message .note {
    padding: 10px;
}
table.message .searchresults td {
    padding: 5px;
}
.message .contactselector {
    @maxwidth: 240px;

    @media screen and (min-width: 1000px) {
        float: left;
        padding: 0 8px 0 0;
    }
    width: auto;
    .singleselect {
        width: @maxwidth;
    }
    float: left;
    .dir-rtl & {
        float:right;
    }
    .paging {
        z-index: 1;
        position: relative;
    }

    #message_participants {
        max-width: @maxwidth;
    }

    .message-contacts {
        list-style-type: none;
        margin: 0;

        li {
            clear: both;
            position: relative;
            min-height: 23px;
            padding: 2px;
            &:nth-child(odd) {
                background: rgba(120, 120, 255, 0.1);
            }
            > div {
                display: block;
                height: 100%;
                > * {
                    vertical-align: middle;
                    display: inline-block;
                }

                &.pix {
                    position: relative;
                    float: left;
                }
                &.link {
                    white-space: nowrap;
                    width: 60px;
                    position: relative;
                    float: right;
                    text-align: right;
                }
                &.contact {
                    position: relative;
                    word-break: break-all;
                    a {
                        line-height: 22px;
                    }
                }
            }
        }
    }
}
.dir-ltr {
    .message .message-contacts li {
        text-align: left;
        > div {
            &.pix {
                float: left;
            }
            &.link {
                float: right;
                text-align: right;
            }
            &.contact {
                margin: 0 60px 0 24px;
                &.nolinks {
                    margin: 0 0 0 24px;
                }
            }
        }
    }
}
.dir-rtl {
    .message .message-contacts li {
        text-align: right;
        > div {
            &.pix {
                float: right;
            }
            &.link {
                float: left;
                text-align: left;
            }
            &.contact {
                margin: 0 24px 0 60px;
                &.nolinks {
                    margin: 0 24px 0 0;
                }
            }
        }
    }
}
.message .messagearea  {
    @media screen and (min-width: 1000px) {
        border-left: 1px solid @tableBorder;
        padding: 0 8px;
    }
    @media screen and (max-width: 1000px) {
        width: 100%;
    }
    float: none;
    overflow: hidden;
    min-height: 200px;
}


.message .messagearea .messagehistorytype {
    clear: both;
    padding-bottom: 20px;
}
.message .messagearea .messagehistory .user {
    vertical-align: top;
    width: 45%;
    min-width: 100px;
    float: left;
}
.message .messagearea .messagehistory .user > div {
    text-align: center;
}
.message .messagearea .messagehistory .between {
    float: left;
    width: 16px;
    margin: 0 1%;
    padding-top: 40px;
}
@media screen and (min-width: 800px) {
    .message .messagearea .messagehistory .between {
        margin: 0 3%;
    }
    .message .messagearea .messagehistory .user {
        width: 32%
    }
    .message .messagearea .messagehistory .user:first-child {
        margin-left: 13%;
    }
    .message .messagearea .messagehistory .user:last-child {
        margin-right: 13%;
    }
    .dir-rtl .message .messagearea .messagehistory .user:first-child {
        margin-right: 13%;
        margin-left: 0%
    }
    .dir-rtl .message .messagearea .messagehistory .user:last-child {
        margin-left: 13%;
        margin-right: 0%;
    }
}
@media screen and (min-width: 1200px) {
    .message .messagearea .messagehistory .user {
        width: 25%
    }
    .message .messagearea .messagehistory .user:first-child {
        margin-left: 20%;
    }
    .message .messagearea .messagehistory .user:last-child {
        margin-right: 20%;
    }
    .dir-rtl .message .messagearea .messagehistory .user:first-child {
        margin-left: 0;
        margin-right: 20%;
    }
    .dir-rtl .message .messagearea .messagehistory .user:last-child {
        margin-right: 0%;
        margin-left: 20%;
    }
}
.dir-rtl .message .messagearea .messagehistory .between,
.dir-rtl .message .messagearea .messagehistory .user {
    float: right;
}
.message .messagearea .messagehistory .heading {
    width: 100%;
    clear: both;
}
.message .messagearea .messagehistory .left {
    margin-bottom: 10px;
    width: 50%;
    float: left;
    position: relative;
    clear: both;
}
.dir-rtl .message .messagearea .messagehistory .left {
    float: right;
}
.message .messagearea .messagehistory .right {
    margin-bottom: 10px;
    width: 50%;
    float: right;
    position: relative;
    clear: both;
}
.dir-rtl .message .messagearea .messagehistory .right {
    float: left;
}
.message .messagearea .messagehistory .notification {
    .well;
    .well-small;
    margin-bottom: 0;
    margin-top: 5px;
}
.dir-ltr .message .messagearea .messagehistory .message {
    margin-right: 20px;
}
.dir-ltr .message .messagearea .messagehistory .right .message {
    margin-left: 20px;
}
.dir-rtl .message .messagearea .messagehistory .message {
    margin-left: 20px;
}
.dir-rtl .message .messagearea .messagehistory .right .message {
    margin-right: 20px;
}
.message .messagearea .messagehistory .messageactive {
  background-color: @tableBackgroundHover;
}
.message .messagearea .messagehistory .messagecontent .deleteicon {
    width: 20px;
    position: absolute;
    top: -2px;
}
.dir-ltr .message .messagearea .messagehistory .messagecontent .deleteicon {
    right: 0;
}
.dir-rtl .message .messagearea .messagehistory .messagecontent .deleteicon {
    left: 0;
}
.message .messagearea .messagesend {
    padding-top: 20px;
    clear: both;
}
.message .messagearea .messagesend .messagesendbox {
    width: 100%;
    box-sizing: border-box;
}
.message .messagearea .messagesend fieldset {
    padding: 0;
    margin: 0;
}
// Bring the message send button closer to the message box.
.message .messagearea .messagerecent {
    text-align: left;
    width: 100%;
}
.message .messagearea .messagerecent .singlemessage {
    border-bottom: 1px solid @tableBorder;
    padding: 10px;
}
.message .messagearea .messagerecent .singlemessage .otheruser span {
    padding: 5px;
}
.message .messagearea .messagerecent .singlemessage .messagedate {
    float: right;
}
.message .hiddenelement  {
    display: none;
}
// not just using hidden as mform adds that class to its fieldset */
.message .visible {
    display: inline;
}
.message #usergroupselector.fieldset, .message #viewing {
    width: 100%;
}
.messagesearchresults {
    margin-bottom: 40px;
}
.messagesearchresults td {
    padding: 0 10px 0 20px;
}
.messagesearchresults td span {
    white-space: nowrap;
}
.messagesearchresults td img.userpicture {
    padding-right: .45em;
    vertical-align: text-bottom;
}
.dir-rtl .messagesearchresults td img.userpicture {
    padding-left: .45em;
    padding-right: 0;
}
.messagesearchresults td span img {
    padding: 0 0 0 .45em;
    vertical-align: text-bottom;
}
.dir-rtl .messagesearchresults td span img {
    padding: 0 .45em 0 0;
}
#newmessageoverlay {
    .well;
    margin: 0 1em;
    position: fixed;
    bottom: 0;
    right: 0;
}
#newmessageoverlay #usermessage {
    padding: 10px;
}
/* Widen the plain text editor on the bulk message screen */
#page-user-action_redir #edit-messagebody {
    width:auto;
}

/** Messenger send message dialog */
.core_message-messenger-sendmessage-hidden {
    display:none;
}
.core_message-messenger-sendmessage {
    .message-actions {
        position: relative;
    }
    .message-area {
        height: 240px;
        max-height: 100%;
        position: relative;
        margin-bottom: 10px;
    }
    .message-input {
        width: 100%;
        height: 100%;
        .box-sizing(border-box);
    }
    .message-send {
        margin: 0;
        float: right;
    }
    .message-notice-area {
        display: table;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }
    .message-notice {
        display: table-cell;
        vertical-align: middle;
        text-align: center;
        > div {
            background: #eee;
            padding: 5px;
            font-size: 12px;
        }
    }
    .message-footer {
        margin-top: 3px;
        line-height: 20px;
    }
    .message-history {
        position: absolute;
        bottom: 0;
    }
}
.dir-rtl {
    .core_message-messenger-sendmessage {
        .message-send {
            float: left;
        }
    }
}
