﻿.eControls .eDiscussion {
    width: 100%;

    & .header__discussion {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-content: center;
        align-items: center;
    }

    & .icon__discussion {
        position: absolute;
        left: -50px;
        top: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #71768070;
        background: var(--gray-100);
        color: var(--gray-500);
        font-size: 20px;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    /* Uploaded profile picture shown in place of the initials circle */
    & .icon__discussion .avatar__discussion {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    & .comment-container {
        padding: 8px 0;
        min-width: 370px;
        border-bottom: 1px solid var(--gray-200);
    }

    & .comment-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 15px; 
    }

    & .comment-date {
        font-size: 0.9em;
        color: var(--gray-500);
        margin-top: 2px;
        margin-bottom: 12px;
    }

    & .author-name {
        flex-grow: 1; 
    }

    & .comment-body {
        margin-bottom: 8px;
        max-width: var(--paragraph-max-width);
        width: 100%;
        text-wrap: auto;
    }

    & li:has( .k-treeview-toggle) {
        position: relative;
    }

    & .k-treeview-toggle {
        margin-right: 24px;
    }

    & .k-treeview-toggle:has( .k-svg-i-caret-alt-down)::after {
        content: "";
        border-left: 1px dashed var(--gray-300);
        height: calc(100% - 80px);
        width: 1px;
        position: absolute;
        top: 72px;
    }

    & .k-treeview-toggle .k-svg-icon {
        position: absolute;
        top: 58px;
        left: 12px;
        width: 17px;
    }

    & .comment-footer {
        /*flex-end*/
        justify-content: flex-start; 
    }

    & .attachments-section {
        display: flex; 
        align-items: baseline; 
        margin-top: 12px; 
        font-size: 0.9em; 
    }

    & .attachments-label {
        font-weight: bold;
        margin-right: 8px; 
        flex-shrink: 0;
    }

    & .attachment-links {
        display: flex; 
        flex-direction: column;
        flex-wrap: wrap; 
        gap: 4px;
    }

    & .attachment-link {
        text-decoration: underline;
    }

    & .k-treeview-item {
        padding: 0 0 0 48px;
    }

    & .k-hover,
    & .k-focus {
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    /*& .btn__discussion {
        margin-top: 16px;
    }*/

    & .btn__discussion button {
        color: var(--brand-700);
        border: 1px solid var(--brand-700);
        border-radius: 4px;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        gap: 4px;
        padding: 4px !important;

        &:hover {
            opacity: .7;
        }
    }

    /*& .icon-edit:before {
        content: "";
        width: 20px;
        height: 20px;
        background-image: url("/images/edit-icon.svg");
    }*/
}
