
.message .body {
    font-size: 13px;
}

.chats li.in .message {
    margin-left: 0px;
}

.chats li.out .message {
    margin-right: 0px;
}

.chat-member {
    background: #fafafa;
}

.member-name {
    font-size: 20px;
}

.chat-form .input-cont{
    margin-right:50px;
}

.chats li{
    padding: 0 5px;
    margin: 0;
}

.chats li .body {
    display: block;
    padding: 4px 0px;
}

.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .message {
    text-align: left;
    margin-left: 38px;
}

.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .message {
    text-align: left;
    margin-right: 38px;
}


#input-group-sidebar .emojionearea-picker {
    position: relative !important;
}

.tooltip.top.fade.in {
    position: absolute;
    z-index: 999
}

#search_patient input[type=search] {
    /*background:#f2f2f2 url('../assets/pages/img/search-icon.png') no-repeat 9px center;*/
    display:inline-block;
	width: 220px;
	padding-left: 10px;
	/*color: #000;*/
    /*background-color: #fff;*/
	/*cursor: pointer;*/
}
/*#search_patient input[type=search]:hover {*/
	/*background-color: #fff;*/
/*}*/
/*#search_patient  input[type=search]:focus {*/
	/*width: 220px;*/
	/*padding-left: 32px;*/
	/*color: #000;*/
	/*background-color: #fff;*/
	/*cursor: auto;*/
/*}*/
/*#search_patient input:-moz-placeholder {*/
	/*color: transparent;*/
/*}*/
/*#search_patient input::-webkit-input-placeholder {*/
	/*color: transparent;*/
/*}*/

.chats li.task .message {
    margin-right: 0px;
    border-left: 2px solid #f4d03f;
    background: #fffeec;
    text-align: left;

    border-right: 2px solid #f4d03f;
    border-top: 1px solid #f4d03f;
    border-bottom: 1px solid #f4d03f;
    border-radius: 6px;
    padding-bottom: 9px;
}


.selected-status-menu{
    background: #EEEEEE;
}

.selected-assigned-menu{
    background: #EEEEEE;
}

.chat-status-panels .nav>li>a:focus, .chat-status-panels .nav>li>a:hover {
    text-decoration: none;
    background-color: transparent !important;
}

.message-status:hover, .message-assigned:hover {
	background-color: #EEE;
}

#messaging-status-dropdown>.bootstrap-select{
    margin-top: -10px;
    background-color: white;
}

#tabmessaging-status-dropdown>.bootstrap-select{
    margin-top: -10px;
    background-color: white;
}

#messaging-status-dropdown button{
    width:100px;
}
#messaging-status-dropdown>.input-small{
    width:100px !important;
}

#tabmessaging-status-dropdown button{
    width:100px;
}
#tabmessaging-status-dropdown>.input-small{
    width:100px !important;
}

.btn-custom-closed{
    background: #bac3d0;
    color: white;
}

.status-selected{
    cursor:not-allowed;
    pointer-events: none;
}

#status_spam:not(.status-selected){
    color:#e7505a;
    background: white;
}

.chat-form .btn-cont{
    margin-top: -118px;
}

.emojionearea .emojionearea-editor {
    max-height: 8em;
}

.scrollable-menu {
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
}

#messaging-assignee-dropdown>.bs-caret{
    padding-left: 15px;
}

.todo-tasklist {
    max-height: none !important;
}

#multiFileInput .MultiFile-applied{
    display: none;
}

#tabmultiFileInput .MultiFile-applied{
    display: none;
}

.lightspeed-box.lsb-active {
    margin-top: 75px;
    height: auto !important;
}

/* Translation functionality styles */
.translation-controls-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* View Translated link styles */
.view-translated-link, .view-translated-link-sidebar, .view-translated-link-v2, .view-translated-link-sidebar-v2 {
    color: #5b9bd1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.view-translated-link:hover, .view-translated-link-sidebar:hover, .view-translated-link-v2:hover, .view-translated-link-sidebar-v2:hover {
    color: #2e6da4;
    text-decoration: underline;
}

/* Translation spinner */
.translate-spinner {
    color: #5b9bd1;
}

/* Inline translation styles */
.translation-section {
    margin-top: 8px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    animation: fadeIn 0.3s ease-in;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.translation-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    font-size: 11px;
    color: #666;
    font-weight: 400;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.translation-toggle-text {
    font-size: 11px;
    color: #5b9bd1;
    font-weight: 500;
    transition: color 0.2s ease;
}

.translation-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: #333;
}

.translation-header:hover .translation-toggle-text {
    color: #2e6da4;
}

.translated-content {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 8px;
    margin-top: 0;
}

.translated-text {
    word-wrap: break-word;
    white-space: normal;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.translation-attribution {
    margin-top: 4px;
}

.translation-attribution small {
    color: #666;
    font-style: italic;
    font-size: 11px;
}

/* Chat message specific translation styles */
.chats li.in .translation-section {
    border-top-color: rgba(46, 204, 113, 0.3);
}

.chats li.in .translation-header {
    color: #27ae60;
    border-bottom-color: rgba(46, 204, 113, 0.1);
}

.chats li.in .translation-toggle-text {
    color: #27ae60;
}

.chats li.in .translation-header:hover {
    background-color: rgba(46, 204, 113, 0.05);
}

.chats li.in .translation-header:hover .translation-toggle-text {
    color: #1e8449;
}

.chats li.out .translation-section {
    border-top-color: rgba(52, 152, 219, 0.3);
}

.chats li.out .translation-header {
    color: #2980b9;
    border-bottom-color: rgba(52, 152, 219, 0.1);
}

.chats li.out .translation-toggle-text {
    color: #2980b9;
}

.chats li.out .translation-header:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.chats li.out .translation-header:hover .translation-toggle-text {
    color: #1f618d;
}

/* Chat V2 specific styles */
.message-list .chatsV2 li .translation-section {
    margin-left: 0;
    margin-right: 0;
}

/* Inherit main chat styles for Chat V2 */
.message-list .chatsV2 li.in .translation-section {
    border-top-color: rgba(46, 204, 113, 0.3);
}

.message-list .chatsV2 li.in .translation-header {
    color: #27ae60;
    border-bottom-color: rgba(46, 204, 113, 0.1);
}

.message-list .chatsV2 li.in .translation-toggle-text {
    color: #27ae60;
}

.message-list .chatsV2 li.in .translation-header:hover {
    background-color: rgba(46, 204, 113, 0.05);
}

.message-list .chatsV2 li.in .translation-header:hover .translation-toggle-text {
    color: #1e8449;
}

.message-list .chatsV2 li.out .translation-section {
    border-top-color: rgba(52, 152, 219, 0.3);
}

.message-list .chatsV2 li.out .translation-header {
    color: #2980b9;
    border-bottom-color: rgba(52, 152, 219, 0.1);
}

.message-list .chatsV2 li.out .translation-toggle-text {
    color: #2980b9;
}

.message-list .chatsV2 li.out .translation-header:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.message-list .chatsV2 li.out .translation-header:hover .translation-toggle-text {
    color: #1f618d;
}

/* Integration with message body and body-attachments */
.message .body .translation-section,
.message .body-attachments .translation-section {
    margin-top: 6px;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure translation section appears within message boundaries */
.chats li .message .translation-section {
    position: relative;
    z-index: 1;
}

/* Prevent text selection on translation header */
.translation-section .translation-header {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Toggle icon styling */
.translation-section .translation-header .toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* Animation for translation section */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Original Message Section Styles (similar to translation section) */
.original-message-section {
    margin-top: 8px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    animation: fadeIn 0.3s ease-in;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.original-message-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    font-size: 11px;
    color: #666;
    font-weight: 400;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.original-toggle-text {
    font-size: 11px;
    color: #5b9bd1;
    font-weight: 500;
    transition: color 0.2s ease;
}

.original-message-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: #333;
}

.original-message-header:hover .original-toggle-text {
    color: #2e6da4;
}

.original-content {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 8px;
    margin-top: 0;
}

.original-text {
    word-wrap: break-word;
    white-space: normal;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.original-attribution {
    margin-top: 4px;
}

.original-attribution small {
    color: #666;
    font-style: italic;
    font-size: 11px;
}

/* Chat message specific original message styles */
.chats li.in .original-message-section {
    border-top-color: rgba(46, 204, 113, 0.3);
}

.chats li.in .original-message-header {
    color: #27ae60;
    border-bottom-color: rgba(46, 204, 113, 0.1);
}

.chats li.in .original-toggle-text {
    color: #27ae60;
}

.chats li.in .original-message-header:hover {
    background-color: rgba(46, 204, 113, 0.05);
}

.chats li.in .original-message-header:hover .original-toggle-text {
    color: #1e8449;
}

.chats li.out .original-message-section {
    border-top-color: rgba(52, 152, 219, 0.3);
}

.chats li.out .original-message-header {
    color: #2980b9;
    border-bottom-color: rgba(52, 152, 219, 0.1);
}

.chats li.out .original-toggle-text {
    color: #2980b9;
}

.chats li.out .original-message-header:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.chats li.out .original-message-header:hover .original-toggle-text {
    color: #1f618d;
}

/* Chat V2 specific original message styles */
.message-list .chatsV2 li .original-message-section {
    margin-left: 0;
    margin-right: 0;
}

/* Inherit main chat styles for Chat V2 original messages */
.message-list .chatsV2 li.in .original-message-section {
    border-top-color: rgba(46, 204, 113, 0.3);
}

.message-list .chatsV2 li.in .original-message-header {
    color: #27ae60;
    border-bottom-color: rgba(46, 204, 113, 0.1);
}

.message-list .chatsV2 li.in .original-toggle-text {
    color: #27ae60;
}

.message-list .chatsV2 li.in .original-message-header:hover {
    background-color: rgba(46, 204, 113, 0.05);
}

.message-list .chatsV2 li.in .original-message-header:hover .original-toggle-text {
    color: #1e8449;
}

.message-list .chatsV2 li.out .original-message-section {
    border-top-color: rgba(52, 152, 219, 0.3);
}

.message-list .chatsV2 li.out .original-message-header {
    color: #2980b9;
    border-bottom-color: rgba(52, 152, 219, 0.1);
}

.message-list .chatsV2 li.out .original-toggle-text {
    color: #2980b9;
}

.message-list .chatsV2 li.out .original-message-header:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.message-list .chatsV2 li.out .original-message-header:hover .original-toggle-text {
    color: #1f618d;
}

/* Integration with message body and body-attachments */
.message .body .original-message-section,
.message .body-attachments .original-message-section {
    margin-top: 6px;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure original message section appears within message boundaries */
.chats li .message .original-message-section {
    position: relative;
    z-index: 1;
}

/* Prevent text selection on original message header */
.original-message-section .original-message-header {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Toggle icon styling for original messages */
.original-message-section .original-message-header .toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* QA Result Modal Styles */
.qa-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.qa-metric {
    text-align: center;
}

.qa-metric h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.qa-value {
    font-size: 18px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    min-width: 80px;
}

.qa-value.quality-excellent {
    background: #d4edda;
    color: #155724;
}

.qa-value.quality-good {
    background: #d1ecf1;
    color: #0c5460;
}

.qa-value.quality-fair {
    background: #fff3cd;
    color: #856404;
}

.qa-value.quality-poor {
    background: #f8d7da;
    color: #721c24;
}

.qa-value.quality-unknown {
    background: #e2e3e5;
    color: #383d41;
}

.qa-value.quality-no-data {
    background: #f8d7da;
    color: #721c24;
}

.qa-value.quality-parse-error {
    background: #f8d7da;
    color: #721c24;
}

.qa-value.quality-format-error {
    background: #f8d7da;
    color: #721c24;
}

.qa-value.quality-type-error {
    background: #f8d7da;
    color: #721c24;
}

.qa-details {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.qa-details h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.qa-metrics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qa-metrics li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qa-metrics li:last-child {
    border-bottom: none;
}

.qa-metric-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qa-metric-value {
    font-weight: 600;
    color: #495057;
}

.qa-info-icon {
    color: #6c757d;
    font-size: 12px;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.qa-info-icon:hover {
    opacity: 1;
    color: #007bff;
}

/* Simple tooltip for info icons */
.qa-info-icon[title] {
    position: relative;
}

.qa-info-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    max-width: 300px;
    word-wrap: break-word;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
    margin-bottom: 5px;
}

.qa-info-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    pointer-events: none;
}

.qa-notes {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 6px 6px 0;
}

.qa-notes h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
}

.qa-notes p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.qa-usage-data {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 0 6px 6px 0;
    border-left: 4px solid #28a745;
}

.qa-usage-data h5 {
    margin: 0 0 15px 0;
    color: #28a745;
    font-size: 16px;
    font-weight: 600;
}

.qa-usage-data h6 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* QA Result Icon */
.qa-result-icon {
    transition: all 0.2s ease;
    cursor: pointer;
}

.qa-result-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design for QA Modal */
@media (max-width: 768px) {
    .qa-summary .row {
        flex-direction: column;
    }
    
    .qa-metric {
        margin-bottom: 15px;
    }
    
    .qa-value {
        font-size: 16px;
        min-width: 60px;
    }
}
