/* CSS Document */
.pending_requests a.subject {
    font-weight:bold;
    color:#990066;
}

.how_to_respond {
    color: #003366;
    font-style: italic;
}

.how_to_respond a {
    color:#003366;
    font-weight:bold;
}

.respond {
    text-align:center;
}

.secure_message_buttons {
    margin: 20px 0;
}


h3.conversation_header {
    color: #333333;
    margin: 0 0 25px;
}

ul.conversation_thread {
    background-color: #f9f9fa;
    border-radius: 8px 8px 8px 8px;
    margin: 0;
}

ul.conversation_thread.sub_thread {

}

ul ul ul ul.conversation_thread.sub_thread {
    padding-left:0px;
}

.incoming_messages {
    padding:0;
    background:none;
}

.conversation_thread.new_thread {
    margin-bottom: 15px;
    position:relative;
}

.incoming_messages ul li {
    list-style: none outside none;
    padding: 4px 4px 4px 6px;
    background-repeat:no-repeat;
    overflow: auto;
}

.button.secure_msg_btn:after{
    position: absolute;
    -webkit-font-smoothing: antialiased;
    content: '\f1d8';
    font: normal normal normal 16px/1 FontAwesome;
    right: 10px;
    text-rendering: auto;
    top: 4px;
    transition: color .2s;
    visibility: visible;
}

.button.secure_msg_btn {
    padding-right: 33px
}

/*Archives*/
.conversation_thread.new_thread.closed {
    display:none;
}

.conversation_thread.closed,
.closed ul.conversation_thread {
    background-color: #999999;
}

.closed .subject {
    color: #FFFFFF;
}

.incoming_messages .subject {
    color: #5a5a5a;
    display: inline-block;
    line-height: 100%;
    max-width: 450px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.the_message {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 12px;
}

/*the popup pointer*/
.incoming_messages ul li div.pointer {
    position:absolute;
    top:auto;
    left:-30px;
    background-repeat:no-repeat;
    height:17px;
    width:15px;
    padding:0px;
    margin-top:-22px;
    background-image:url(/images/structure/buttons/secure_message_pointer.png);
    background-color:transparent;
    border-radius:0px;
}

.pointer span {
    visibility:hidden;
}

.conversation_thread li button {display:block;}
.conversation_thread li button.actions {display:block;}
/*.conversation_thread li:hover button {display:block;}
.conversation_thread li:hover button.actions {display:none;}*/

ul.conversation_thread:hover > li button {display:block;}
ul.conversation_thread:hover > li button.actions {display:block;}
/*ul.conversation_thread:hover ul > li button {display:none;}*/
ul.conversation_thread:hover ul > li button.actions {display:block;}
ul.conversation_thread:hover ul > li:hover button {display:block;}

.response-details, .message-details {
    display: inline-block
}

.response-details {
    background-color: #bcd6a0;
}

.message_details {
    background-color: #cfdcee;
}

.conversation_thread_header {
    background-color: white;
    box-shadow: 2px 2px 8px 3px rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    padding: 15px 5px;
    margin: 10px 0;
    position: relative;
    color: #98999B;
    font-size: 16px;
}

/*ul.conversation_thread:hover ul > li:hover button.actions {display:none;}
*/
/***************** FOR SMS FORMATTED MESSAGES *****************/

.thread_sms.from_pt,
.thread_sms.from_dr 
 {
    border-radius: 6px;
    margin: 10px 0;
    overflow: visible;
    padding: 10px 10px 0 0;
    position: relative;
}

.message .message_details{
    border-radius: 4px 4px 0 0;
    display: inline-block;
    margin-right: 12px;
    margin-right: 8px;
    padding: 6px 8px;
    position: relative;
    vertical-align: top;
    width: 100%;
    box-sizing: border-box;
}

.thread_sms.from_dr {
    margin-right: 10%;
}

.thread_sms.from_pt {
    margin-left: 10%;
}

.message .message_details p {
    border-left: solid 1px transparent;
    border-right: solid 1px transparent;
    font-size: 12px;
    line-height: 1.1;
    margin: 0;
    padding: 2px 0;
}

.message .pt_response_details p {
    color: #0c86c3;
}

.message .provider_response_details p {
    color: #409c98;
}

.message .message_details p i {
    margin: 0 6px;
}

.message .provider_response_details {
    background-color: #e6e6e6;
    font-size: 11px;

}

.message .pt_response_details,
.provider_response_details {
    background-color: #ececec;
    font-size: 11px;
    border: solid 1px #d4d4d4;
}

.message .responding_date {
    position: absolute;
    top: 6px;
    right: 6px;
}

.conversation_thread .message .responding_date {
    display: none
}

.message .message_body {
    border-radius: 0 0 4px 4px;
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
}

.message .response-body{
    background-color: #f9f9f9;
    border-bottom: solid 1px #d4d4d4;
    border-left: solid 1px #d4d4d4;
    border-right: solid 1px #d4d4d4;
}

.message .pt-message-body{
    background-color: #f9f9f9;
    border-bottom: solid 1px #d4d4d4;
    border-left: solid 1px #d4d4d4;
    border-right: solid 1px #d4d4d4;
}


.from_pt span.from {
    color: #777777;
    font-size: 9px;
    font-weight: bold;
    padding: 10px 0 10px 10px;
    line-height:100%;
}

.from_dr span.from {
    color: #777777;
    line-height:100%;
}

h4.message-title {
    font-size: 17px;
    border-bottom: solid 1px #efefef;
    margin-bottom: 12px;
    padding-bottom: 4px;
}

.message_foot {
    font-size: 80%;
    text-align: right;
}

.thread_sms.from_dr button.reply_button {
    background-color: white;
    color: #409c98;
    border: solid 1px #49a6a2;
}

.thread_sms.from_dr button.reply_button:hover {
    background-color: #4abfba;
    color: white;
}

.thread_sms.from_pt button.reply_button {
    background-color: white;
    border: solid 1px #88b2c7;
    color: #0c86c3;
}

.thread_sms.from_pt button.reply_button:hover {
    background-color: #0891ca;
    color: white;
}

/* Character Limiting */
.char-limit {
  font-size: 11px;
  margin: -3px 0;
  opacity: 0.7;
  padding: 0;
  text-align: right;
}
.char-limit.limit-reached {font-weight:bold; opacity:1; color:#c00;}


/* credit card requirement */

.credit-card-required-for-messaging {
  line-height: 1.4em;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 50px 0;
}

.messaging_disabled {
    padding:7px;
    margin:20px 10px;
    border:2px solid #c0392b;
    color:#c0392b;
    text-align:center;
}

/* ATTACHED DOCUMENTS */
ul.attached-documents {
    padding: 5px 0 5px 10px;
    margin: 0;
}

.incoming_messages li.attached-document {
    background-image: url(https://demo1.md-hq.com/images/icons/paperclip.png);
    background-position: left center;
    padding-left: 25px;
    margin: 0;
    text-decoration: underline;
    font-size: 90%;
}

/* LIMITING THE NUMBER OF MESSAGES SENT */
p.messages-remaining, p.over-message-limit {
    padding: 8px;
    margin-top: 10px;
    border-radius: 3px;
    background-color: green;
    color: #FFF;
    text-align: center;
}

p.over-message-limit {
    padding:100px;
    background-color:#c0392b;
    margin-bottom:10px;
}

.pt_response_details.message_details .no-reply-necessary {
	color:#7e7e7e;
}

/* Hide Respond By */
.pt_response_details.message_details p.how {
    display: none
}

/*********** BOX FORMS *****************/
.draggable.secure_messages_box_form h2:before{
    content: '\f1d8';
    height: 8px;
    padding: 12px 14px 12px 8px;
    width: 10px;
}

.draggable.secure_messages_box_form button.send_message{
    padding-right: 33px;
}

.draggable.secure_messages_box_form button.send_message:after{
    position: absolute;
    -webkit-font-smoothing: antialiased;
    content: '\f1d8';
    font: normal normal normal 15px/1 FontAwesome;
    right: 10px;
    text-rendering: auto;
    top: 4px;
    transition: color .2s;
    visibility: visible;
}

.new_secure_message.draggable form.compose_secure_message{
    padding: 10px 15px;
}

.draggable.secure_messages_box_form select{
    background-size: 3%;
}


/* THREADED!! */
.secure_message_buttons {
    text-align: center;
}

button.remove{
    background-color: #de2222;
    font-weight: bold;
    position: relative;
    font-size: 12px;
    padding: 6px 33px 6px 24px !important;
}

button.remove:hover {
    background-color: #ab1d1d;
}

button.remove:before {
    -webkit-font-smoothing: antialiased;
    color: white;
    content: '\F057';
    display: inline-block;
    font: normal normal normal 20px/.8em FontAwesome;
    right: 4px;
    position: absolute;
    text-rendering: auto;
    top: 6px;
    transition: all .2s;
    visibility: visible;
}

button.archive {
    background-color: #c72081;
}

button.archive:hover {
    background-color: #8c1c5d;
}

.conversation_thread .respond {
    text-align: right
}

.conversation_thread .respond button {
    float: none;
}

.incoming_messages button.get_archives {
    float: none;
    display: block;
    margin: 10px auto;
    font-size:11px;
    background-color:#41b7b1;
}

.incoming_messages button.get_archives:hover {
  background-color:#1fa09a;
}


h3.conversation_header {
    color: #333333;
    margin: 32px 0 8px;
}

ul.conversation_thread {
    border-radius: 8px 8px 8px 8px;
    margin: 0;
     padding: 4px 4px 0;
}

ul.conversation_thread.sub_thread {
/*    padding-left:25px;*/
    padding-right:0px;
}

ul ul ul ul.conversation_thread.sub_thread {
    padding-left:0px;
}

.incoming_messages {
    padding:0; background:none;
}

.incoming_messages ul li div {
    margin-top: 10px;
    font-size: 12px;
}


.conversation_thread.new_thread {
    margin-bottom: 15px;
    position:relative;
    background-color: #f7f7f7;
    border-radius: 4px;
    border: 1px solid #f7f7f7;
    box-shadow: 2px 2px 8px 3px rgba(0, 0, 0, 0.12);
}

.incoming_messages .conversation_thread li {
    list-style: none outside none;
    padding: 3px 4px 3px 20px;
    background-repeat:no-repeat;
    overflow: hidden;
    position: relative;
}

/* Notification dots */
.incoming_messages .conversation_thread li:before {
    content: '';
    height: 8px;
    width: 8px;
    position: absolute;
    top: 10px;
    left: 11px;
    border-radius: 50%;
    z-index: 10000000;
}

/* From PT */
.incoming_messages .conversation_thread li.request:before {
    background-color: #0c86c3;
}

/* From Provider */
.incoming_messages .conversation_thread li.response:before {
    background-color: #409c98
}
.incoming_messages .conversation_thread ul{
    padding-left: 16px;
}

.incoming_messages ul li .name_tag {
    padding: 1px 2px 1px 5px;
    color: #525252;
    font-weight: bold;
    letter-spacing: .6px;
}

.incoming_messages ul li.response .name_tag {
    padding:1px 2px 1px 5px;
}

.date_tag {
    font-size: 11px;
    padding: 0 8px 0;
}

.requested_method {
    display: none
}

/*Archives*/
.conversation_thread.new_thread.closed {
    display:none;
}

.conversation_thread.closed ,
.closed ul.conversation_thread {
    background-color: #dcdcdc;
    border: 1px solid #dcdcdc;
}

.closed .subject {
    color: #FFFFFF;
}

.incoming_messages .subject {
    color: #6d6d6d;
    display: inline-block;
    line-height: 100%;
    max-width: 450px;
    text-decoration: underline;
}
.incoming_messages li:hover .subject {
    max-width:300px
}

.incoming_messages ul li div {
    display: none
} 

.conversation_thread li button {
    visibility: hidden;
    opacity: 0;
    transition: all .2s;
    max-width: 0;
    max-height: 0;
}
.conversation_thread li button.actions {
    visibility: visible;
    opacity: 1;
    transition: all .2s;
    max-width: 1000px;
    max-height: 1000px;
}

.conversation_thread li:hover button {
    visibility: visible;
    opacity: 1;
    max-width: 10000px;
    max-height: 1000px;
}

.conversation_thread li:hover button.actions {
    visibility: hidden;
    opacity: 0;
}

ul.conversation_thread:hover > li button {display:block;}
ul.conversation_thread:hover > li button.actions {display:none;}
ul.conversation_thread:hover ul > li button {display:none;}
ul.conversation_thread:hover ul > li button.actions {display:block;}
ul.conversation_thread:hover ul > li:hover button {display:block;}
ul.conversation_thread:hover ul > li:hover button.actions {
    display:none;
}

/* credit card requirement */
.alert.credit-card-required {
    margin-top: 20px;
}

.messaging_disabled {
    padding:7px;
    margin:20px 10px;
    border:2px solid #c0392b;
    color:#c0392b;
    text-align:center;
}

/* ATTACHED DOCUMENTS */
ul.attached-documents {
    padding: 5px 0 5px 10px;
    margin: 0;
}
.incoming_messages li.attached-document {
    background-image: url(/images/icons/paperclip.png);
    background-position: left center;
    padding-left: 25px;
    margin: 0;
    text-decoration: underline;
    font-size: 90%;
}
/* LIMITING THE NUMBER OF MESSAGES SENT */
p.messages-remaining, p.over-message-limit {
    padding: 8px;
    margin-top: 10px;
    border-radius: 3px;
    background-color: green;
    color: #FFF;
    text-align: center;
}
p.over-message-limit {
    padding:100px;
    background-color:#c0392b;
    margin-bottom:10px;
}

/* STYLE THE BUTTTONS SO THEY DONT OVERWHELM */
.text button {
    padding: 6px 10px;
    font-size: 11px;
}


/*********** RESPONSIVE *****************/

@media screen and (max-width: 680px) {
    .message .message_details{
        width: 100%;
        box-shadow: none;
        border-radius: 4px 4px 0 0;
        border-bottom: solid 1px #b3b3b3;
    }

    .message .message_details:after {
        display: none;
    }

    .message .message_body {
        width: 100%;
    }

    .message .responding_date {
        position: unset;
        text-align: right;
    }

    .conversation_thread .button:not(.actions){
        float: none;
        display: inline-block;
        margin: 6px 0 ;
    }


    .conversation_thread .incoming_messages li:hover .subject {
        display: block;
        padding: 8px 0;
    }
}


