/* Reply (both pages) and Forward (/fe-chat/ only), see reply_forward.js */
.msg-body ul li { position: relative; }
.msg-tools {
    position: absolute;
    top: -12px;
    display: flex;
    gap: 2px;
    padding: 2px;
    background: #fff;
    border: 1px solid #dde2e4;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    visibility: hidden;
    z-index: 3;
}
li.my-msg > .msg-tools { right: 8px; }
li.others-msg > .msg-tools { left: 8px; }
.msg-body ul li:hover > .msg-tools, .msg-tools:focus-within { visibility: visible; }
@media (hover: none) { .msg-tools { visibility: visible; } }
.msg-tools button {
    border: none;
    background: transparent;
    color: #70708b;
    width: 26px;
    height: 22px;
    padding: 0;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
}
.msg-tools button:hover { background: #f0f2f5; color: #0052cc; }
.msg-flash .message-div { box-shadow: 0 0 0 3px #f5c542; transition: box-shadow .3s; }

.message-div .chat-quote {
    display: block;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-left: 3px solid currentColor;
    border-radius: 4px;
    background: rgba(0, 0, 0, .08);
    font-size: 13px;
    opacity: .9;
    cursor: pointer;
}
.message-div .chat-quote p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.message-div .chat-fwd { border-left: 3px solid currentColor; padding-left: 10px; }
.message-div .chat-fwd-head { font-size: 12px; font-style: italic; opacity: .8; margin-bottom: 4px; }

.fc-reply-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-left: 3px solid #0052cc;
    border-radius: 4px;
    background: #f0f2f5;
    color: #343434;
    font-size: 13px;
}
.fc-reply-body { flex: 1; min-width: 0; }
.fc-reply-body span { display: block; }
.fc-reply-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.send-box .fc-reply-bar button {
    border: none;
    background: transparent !important;
    color: #70708b;
    padding: 0 6px;
    font-size: 20px;
    line-height: 1;
    width: auto;
    height: auto;
    box-shadow: none;
}

.fc-fwd-preview {
    padding: 8px 10px;
    margin-bottom: 10px;
    border-left: 3px solid #0052cc;
    border-radius: 4px;
    background: #f0f2f5;
    font-size: 13px;
    color: #343434;
}
.fc-fwd-preview span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-fwd-search { margin-bottom: 8px; }
.fc-fwd-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #dde2e4;
    border-radius: 4px;
    margin-bottom: 10px;
}
.fc-fwd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #dde2e4;
    cursor: pointer;
    color: #343434;
}
.fc-fwd-item:last-child { border-bottom: none; }
.fc-fwd-item:hover { background: #f0f2f5; }
.fc-fwd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-fwd-kind { font-size: 11px; color: #70708b; }
.fc-fwd-none { padding: 12px; text-align: center; color: #70708b; }
#fcForwardModal .modal-title { color: #343434; }
/* Small chat window (the In-House chat bubble is 400x500) */
@media (max-height: 600px) {
    #fcForwardModal .modal-dialog { margin: 8px; }
    #fcForwardModal .modal-header, #fcForwardModal .modal-footer { padding: 8px 12px; }
    #fcForwardModal .modal-body { padding: 10px 12px; }
    .fc-fwd-list { max-height: 130px; }
}
#fcForwardModal #fc_fwd_send { display: inline-block; visibility: visible; color: #fff; background: #0052cc; border-color: #0052cc; }
#fcForwardModal #fc_fwd_send:disabled { opacity: .5; }
