﻿/* red corner ribbon */
.ribbon {
    position: relative;
}

    .ribbon::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        border-top: 15px solid #dc3545;
        border-left: 15px solid transparent;
    }

/* comment bubble */
.comment-bubble {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
}

    .comment-bubble .avatar {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #6c757d;
        color: #fff;
        font-size: .8rem;
        line-height: 32px;
        text-align: center;
    }

    .comment-bubble .meta {
        font-size: .75rem;
        color: #6c757d;
        margin-bottom: .15rem;
    }

    .comment-bubble .dropdown-toggle::after {
        display: none;
    }

.icon-dots {
    font-size: 1rem;
    color: #6c757d;
}

.comment-menu:hover .icon-dots {
    color: #212529;
}

/* auto-growing textarea */
.edit-input {
    resize: none;
    overflow: hidden;
}


.bs-popover-right .popover-body,
.bs-popover-left .popover-body {
    max-height: 250px; /* tweak to taste */
    overflow-y: auto;
}


/* tiny button that floats at the far-right of a table row */
.comment-launch {
    position: absolute;
    right: .25rem; /* tweak to match table padding */
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
    color: #6c757d; /* muted */
    cursor: pointer;
    display: none; /* shown on row hover */
}

    .comment-launch:hover {
        color: #212529;
    }
/* darker on hover */

/* All-comments modal – thread blocks */
.ac-thread {
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    margin-bottom: .75rem;
    overflow: hidden;
    background: #fff;
}

.ac-head {
    display: flex;
    align-items: center;
    padding: .5rem .75rem;
    background: #f8f9fa;
}

.ac-toggle {
    border: none;
    background: transparent;
    color: #6c757d;
    width: 28px;
    height: 28px;
    padding: 0;
    margin-right: .25rem;
}

    .ac-toggle:focus {
        outline: none;
    }

.ac-title {
    font-weight: 600;
    margin-right: .5rem;
}

.ac-path {
    color: #6c757d;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-head .badge {
    margin-left: auto;
}

.ac-body {
    padding: .5rem .75rem;
    max-height: 260px; /* scroll per thread */
    overflow: auto;
}

/* optional: highlight when "Go to row" jumps there */
@keyframes acFlash {
    from {
        background: #fff3cd;
    }

    to {
        background: transparent;
    }
}

tr.ac-flash td {
    animation: acFlash 3s ease-out 1;
}
