/*
 * Mentions Input
 * Version 1.0.2
 * Written by: Kenneth Auchenberg (Podio)
 *
 * Using underscore.js
 *
 * License: MIT License - http://www.opensource.org/licenses/mit-license.php
 *
 * ! Edited by Sharee Team !
 */

.mentions-input-box {
    position: relative;
    background: #fff;
}

.mentions-input-box textarea {
    width: 100%;
    display: block;
    padding: 9px;
    border: 1px solid #dcdcdc;
    border-radius:3px;
    overflow: hidden;
    background: transparent;
    position: relative;
    outline: 0;

    font-size: 14px !important;
    letter-spacing: .1px !important;
    font-weight: 400 !important;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.mentions-input-box .mentions-autocomplete-list {
    display: none;
    background: #f6f8f9;
    border: 1px solid #666;
    position: absolute;
    top: calc(100% - 1px);
    bottom: auto;
    left: 0;
    right: 0;
    z-index: 10000;
    margin-top: -2px;
    max-width: 100%;
    box-sizing: border-box;

    border-radius: 5px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.mentions-input-box .mentions-autocomplete-list.mentions-autocomplete-list--top {
    top: auto;
    bottom: calc(100% - 1px);
    margin-top: 0;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.mentions-input-box .mentions-autocomplete-list .loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
}

.mentions-input-box .mentions-autocomplete-list .loader {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-top-color: rgba(99, 102, 241, 0.9);
    animation: mentionsSpin 0.8s linear infinite;
}

@keyframes mentionsSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mentions-input-box .mentions-autocomplete-list ul {
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
}

.mentions-input-box .mentions-autocomplete-list li {
    width: auto;
    padding: 8px;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.mentions-input-box .mentions-autocomplete-list li:last-child {
    border-radius: 5px;
}

.mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group,
.mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group:hover,
.mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group.active {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px 7px;
    cursor: default;
    background: linear-gradient(180deg, #f4f7fa 0%, #eef2f5 100%);
    border-top: 1px solid #dce3ea;
    border-bottom: 1px solid #dce3ea;
    border-left: 0;
    border-right: 0;
}

.mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group:not(:first-child) {
    margin-top: 8px;
    border-radius: 0;
}

.mentions-input-box .mentions-autocomplete-list .mentions-autocomplete-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    color: #7b8794;
    font-size: 12px;
}

.mentions-input-box .mentions-autocomplete-list .mentions-autocomplete-group-label {
    display: inline-block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mentions-input-box .mentions-autocomplete-list .mentions-autocomplete-group-count {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mentions-input-box .mentions-autocomplete-list .mention-item-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    object-fit: contain;
    object-position: center;
    padding: 2px;
}

.mentions-input-box .mentions-autocomplete-list .mention-item-avatar.mention-item-avatar--profile {
    border-radius: 999px;
    object-fit: cover;
    padding: 0;
}

.mentions-input-box .mentions-autocomplete-list .mention-item-content {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mentions-input-box .mentions-autocomplete-list .mention-item-name {
    color: #1f2937;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mentions-input-box .mentions-autocomplete-list li .more {
    color: #757575;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mentions-input-box .mentions-autocomplete-list li em {
    font-weight: bold;
    font-style: none;
}

.mentions-input-box .mentions-autocomplete-list li:hover,
.mentions-input-box .mentions-autocomplete-list li.active {
    background-color: #ededee;
}

.mentions-input-box .mentions-autocomplete-list li b {
    background: #ffff99;
    font-weight: normal;
}

.mentions-input-box .mentions {
    position: absolute;
    left: 1px;
    right: 0;
    top: 1px;
    bottom: 0;
    padding: 9px;
    color: #fff;
    overflow: hidden;
    font-size: 14px !important;
    letter-spacing: .1px !important;
    font-weight: 400 !important;

    white-space: pre-wrap;
    word-wrap: break-word;
}

.mentions-input-box .mentions > div {
    color: #fff;
    white-space: pre-wrap;
    width: 100%;
}

.mentions-input-box .mentions > div > strong {
    background-color: rgba(14, 118, 168, 0.2);
    color: #757576;
    font-weight: 400;
}

.mentions-input-box .mentions > div > strong > span {
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
}

.platform-metronic .mentions-input-box {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
}

.platform-metronic .mentions-input-box textarea {
    border: 0;
    border-radius: var(--radius);
    padding: 12px 14px;
    color: #111827;
    caret-color: #111827;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    min-height: 120px;
    box-sizing: border-box;
    z-index: 2;
}

.platform-metronic .mentions-input-box .mentions {
    padding: 12px 14px;
    color: transparent;
    pointer-events: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    left: 0;
    top: 0;
    z-index: 1;
}

.platform-metronic .mentions-input-box .mentions > div {
    color: transparent;
    font-weight: 400;
}

.platform-metronic .mentions-input-box .mentions > div > strong {
    color: transparent;
    font-weight: 400;
    background-color: rgba(24, 144, 255, 0.22);
    box-decoration-break: clone;
}

.platform-metronic .mentions-input-box .mentions > div > strong > span {
    opacity: 1;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list {
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fff;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list.mentions-autocomplete-list--top {
    border-radius: 12px 12px 0 0;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list ul {
    padding: 6px;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list li {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group,
.platform-metronic .mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group:hover,
.platform-metronic .mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group.active {
    margin: 0 -6px 6px;
    padding: 8px 14px 7px;
    border-radius: 0;
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef4 100%);
    border-top: 1px solid #dbe4ec;
    border-bottom: 1px solid #dbe4ec;
    border-left: 0;
    border-right: 0;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list li.mentions-autocomplete-group:not(:first-child) {
    margin-top: 8px;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list li:hover,
.platform-metronic .mentions-input-box .mentions-autocomplete-list li.active {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list li b {
    background: rgba(24, 144, 255, 0.2);
    color: #1d4ed8;
    font-weight: 600;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list .mention-item-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    object-fit: contain;
    object-position: center;
    padding: 2px;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list .mention-item-avatar.mention-item-avatar--profile {
    border-radius: 999px;
    object-fit: cover;
    padding: 0;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list .mention-item-content {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list .mention-item-name {
    font-weight: 600;
    color: #111827;
}

.platform-metronic .mentions-input-box .mentions-autocomplete-list li .more {
    color: #6b7280;
    font-size: 12px;
}
