﻿/* red corner ribbon: comments on the row - or, on a Debtors line, on transactions in its
   drilldown (.txn-comments-inside, comments.js refreshTxnMarkers) */
.ribbon,
.txn-comments-inside {
    position: relative;
}

    .ribbon::after,
    .txn-comments-inside::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        border-top: 15px solid #dc3545;
        border-left: 15px solid transparent;
    }

/* Debtors count bubble (the number of commented transactions, from data-txn-count) is off for
   now (2026-11-25) - undecided, may come back. Its CSS is in commit 3e693262; refreshTxnMarkers
   still sets data-txn-count, so restoring the ::before rule is all it takes. */

/* 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;
        overflow: hidden;
        position: relative;
    }

    /* Profile picture sits over the initial (comments.js avatarHtml) */
    .comment-bubble .avatar img {
        height: 100%;
        left: 0;
        object-fit: cover;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .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 styles live in css/reports/accounts/modals.css (Accounts shell only). */

/* 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;
}
