/*---------------------------
Comments    
---------------------------*/
.dtx-comment-toggle {
    padding: 15px;
}

.dtx-comment-highlight {
    background-color: #FEF3C6 !important;
    transition: background-color 0.3s ease;
}

.dtx-comment-new {
    padding: 12px;
    background: #f8f8f8;
    border: 1px solid #eee;
}

    .dtx-comment-new .btn-submit-comment, .dtx-comment textarea {
        /*height: 64px;*/
        resize: none;
    }

.dtx-comment-time {
    color: #888;
}

.dtx-comment-list {
    padding: 15px;
}

    .dtx-comment-list .table {
        margin-bottom: 0;
    }

/* New comment input: Slack-like compose wrapper (no overlap) */
.dtx-comment-compose {
    border: 1px solid #e5e7eb;
    /*background: #fff;*/
    border-radius: 4px;
    padding: 8px;
}

    .dtx-comment-compose:focus-within {
        border-color: #cbd5e1; /* subtle focus */
    }

.dtx-compose-body {
    max-height: 240px; /* grows until this, then scrolls */
    overflow: auto;
}

.dtx-comment-compose .dtx-comment-html-input {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
}

.dtx-compose-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
    padding-top: 6px;
}

    .dtx-compose-footer .btn-submit-comment {
        margin-left: auto; /* push button to far right */
    }

.btn-submit-comment {
    border: none;
}


    .btn-submit-comment:hover {
        color: #27e2b8;
        background: #f0fdfa
    }

.dtx-comment .media-body {
    width: 100%;
}

.dtx-comment-list .view, .dtx-comment-list li .editing.edit {
    display: block;
}

.dtx-comment-list .edit, .dtx-comment-list li .editing.view {
    display: none;
}

.nested-comment.editing .edit.editing {
    display: block;
}

.nested-comment.editing .view.editing {
    display: none;
}

.dropdown-menu.dropdown-menu-form {
    z-index: 1200 !important;
}

#cc .dropdown-multiselect > .btn {
    border-radius: 0;
}

.comment-actions li.click-enabled {
    cursor: pointer;
}

.comment-actions li.click-disabled {
    pointer-events: none;
    cursor: not-allowed
}

    .comment-actions li.click-disabled a {
        color: #ccc;
    }


.dropdown-submenu.open-left > .dropdown-menu {
    /*left: calc((var(--open-left-parent-menu-width) + 168px)) !important;*/
    left: -168px;
}



/* Container (scoped to comments tribute only) */
.dtx-comment-tribute {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08) !important;
    max-height: 320px !important;
    width: 100% !important;
    overflow: auto !important;
    z-index: 9999; /* keep above other UI */
    max-width: 400px !important;
    margin: 10px 0 0 10px !important;
    border-top: 3px solid #2dd4bf !important;
    /* position: absolute !important; */
}

    /* List */
    .dtx-comment-tribute ul {
        list-style: none;
        margin: 0;
        padding: 4px;
        background: #fff !important;
    }

    .dtx-comment-tribute li {
        padding: 0 !important;
        display: flex;
        align-items: center;
        margin: 12px auto;
        cursor: pointer;
        background: #fff !important;
        border-bottom: 1px solid #ffffff !important;
    }

        /* Hover/active */
        .dtx-comment-tribute li:hover,
        .dtx-comment-tribute li.highlight { /* selected item */
            background: #f0fdfa !important;
            outline: none !important;
            border: none !important;
            border-radius: 0 !important;
            margin: 12px auto !important;
            border-bottom: 1px solid #14b8a6 !important;
        }

    .dtx-comment-tribute:has(> ul > li.no-match) {
        display: none !important;
    }

    /* Highlight for matching substrings in Tribute menu */
    .dtx-comment-tribute .dtx-mention-hl {
        background-color: #FEF3C7; /* amber-100 */
        font-weight: 600;
    }

    /* Tribute menu items: primary + subtext */
    .dtx-comment-tribute .tt-item .primary {
        font-weight: 600;
    }

    .dtx-comment-tribute .tt-item .sub {
        font-size: 11px;
        color: #6b7280;
    }


.dtx-comment-html-input .dtx-mention {
    display: inline-block;
    padding: 0 6px;
    margin: 0 1px;
    background: rgba(18, 100, 163, 0.12); /* Slack-ish blue badge */
    color: #1264A3; /* hyperlink blue */
    border: 1px solid rgba(18, 100, 163, 0.24);
    border-radius: 9999px; /* pill */
    line-height: 1.4;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

    .dtx-comment-html-input .dtx-mention:hover::after {
        content: attr(title);
        position: absolute;
        top: 100%;
        left: 0;
        transform: translateY(4px);
        background: rgba(17,17,17,0.95);
        color: #fff;
        padding: 4px 6px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
    }

    .dtx-comment-html-input .dtx-mention:hover {
        text-decoration: underline;
    }
