#comments-box {
    display: table;
    position: relative;
    border-collapse: collapse;

    > div {
        display: table-row;
    }

    .messages-ct {
        position: absolute;
        overflow: hidden;
        left: 0;
        right: 0;
        bottom: 45px;
        height: 300px;
        border-bottom: 1px solid @gray-dark;

        .ps-scrollbar-y-rail {
            margin-top: 5px;
            margin-bottom: 5px;
            right: 4px !important;
        }
    }

    .add-link-ct {
        height: 45px;
        text-align: center;

        label {
            color: @black;
            font: 12px arial;
            line-height: normal;
            border-bottom: 1px dotted @black;
            padding-top: 12px;
            outline: none;
            height: 29px;
            cursor: pointer;
        }
    }

    .new-comment-ct {
        height: 110px;
        display: none;

        .inner-ct{
            padding: 7px 20px 37px;
            height: 100%;
            margin-bottom: -32px;
        }

        textarea {
            font-size: 12px;
            width: 100%;
            resize: none;
            margin-bottom: 5px;
            border: 1px solid @gray-dark;
            height: 100%;
        }
    }

    .btn {
        &.add {
            margin-left: 20px;
        }
        &.cancel {
            margin-left: 7px;
        }
    }
}

.dataview-ct {
    width: 100%;
    height: 100%;
    font: 12px arial;
    line-height: normal;
    position: relative;
    overflow: hidden;
    color: @gray-darker;

    textarea:not(.user-message) {
        width: 100%;
        height: 50px;
        resize: none;
        margin-bottom: 5px;
        border: 1px solid @gray-dark;
        word-break: break-all;
        line-height: 15px;
        color: @gray-deep;
    }

    .btn-fix {
        margin-left: -3px;
    }

    .textarea-fix {
        margin-left: -3px;
        margin-top: -1px;
    }

    .separator-cmt {
        border-bottom: 1px solid @gray-dark;
        margin: 20px 0px 0px 0px;
    }

    .user-comment-item {
        position: relative;
        padding: 0px 20px 10px 20px;
    }

    .user-name {
        font-weight: bold;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 10px 0px 0 0px;
        height: 26px;
        cursor: default;
        max-width: 155px;
    }

    .user-name-colored {
        padding: 10px 0px 0 0px;
        cursor: default;
        max-width: 175px;
        span {
            display: inline-block;
            height: 20px;
            max-width: 175px;
            background-color: #ee3525;
            padding: 3px 10px;
            color: #ffffff;
            font: 11px arial;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    .user-date {
        font-size: 11px;
        white-space: nowrap;
        padding: 0;
        height: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: default;
    }

    .user-quote {
        font-style: italic;
        margin-top: 10px;
        padding: 0px 5px 5px 5px;
        border-left: 1px solid #939393;
        word-break: break-all;
        white-space: pre-wrap;
        cursor: pointer;
    }

    .user-message {
        color: @black;
        padding: 9px 0px 0 0px;
        white-space: pre-wrap;
        word-wrap: break-word;
        cursor: pointer;

        &.limit-height {
            max-height: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: default;
        }
    }

    textarea.user-message {
        border: none;
        resize: none;
        width: 100%;
        line-height: 15px;
        cursor: text;
    }

    .user-reply {
        color: @black;
        margin-top: 10px;
        white-space: pre-wrap;
        width: auto;
        border-bottom: 1px dotted @black;
        height: 16px;
        cursor: pointer;
    }

    .msg-reply {
        max-height:150px;
        word-break: break-word !important;
    }

    .edit-ct {
        position: absolute;
        right: 0;
        top: 0;
        margin: 11px 21px 10px 10px;
        height: 20px;
    }

    .btns-reply-ct {
        position: absolute;
        right: 0;
        top: 0;
        height: 30px;
        margin-top: 11px;
    }

    .reply-item-ct {
        position: relative;
        padding-bottom: 10px;
        padding-left: 20px;
    }

    div[class^=btn-] {
        float: left;
        cursor: pointer;
    }

    .btn-edit,.btn-delete, .btn-resolve, .btn-resolve-check, .btn-accept, .btn-reject {
        width: 16px;
        height: 16px;
        margin: 0 0 0 5px;
        background-color: transparent;
    }

    .btn-edit {
        background-position: -2px -233px;
    }

    .btn-delete {
        background-position: -22px -233px;
    }

    .btn-accept {
        background-position: -2px -253px;
    }

    .btn-reject {
        background-position: -22px -253px;
    }

    .btn-resolve {
        background-position: -2px -253px;
    }

    .btn-resolve-check {
        background-position: -42px -234px;
    }

    .inner-edit-ct {
        padding: 7px 0px 0px 0px;

        .btn-inner-close {
            margin-left: 7px;
        }
    }

    .reply-ct {
        padding: 10px 0px 0px 0px;

        .btn-close {
            margin-left: 7px;
        }
    }
    .reply-inner-ct {
        padding: 0px 20px 0px 30px;
    }

    .reply-arrow {
        background-color: transparent;
        background-position: -60px -232px;
        width: 16px;
        height: 16px;
        margin-top: 10px;
        position: absolute;
    }

    .lock-area {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #F4F4F4;
        margin-top: 2px;
        margin-bottom: -2px;
        opacity: .5;
        cursor: pointer;
    }

    .lock-author {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        max-width: 150px;
        height: 20px;
        line-height: @line-height-base;
        background-color: #EE3525;
        margin: 10px 18px;
        padding: 2px 10px;
        color: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 100px;
        text-align: center;
        cursor: pointer;
        font-size: 11px;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    .resolved {
        width: 18px;
        height: 16px;
        float: left;
        margin: 5px 5px 0 0;
        background-color: transparent;
        background-position: -40px -232px;
    }
}

.comments-caret {
    width: 7px;
    height: 7px;
    border: 0;
    background-position: @arrow-small-offset-x @arrow-small-offset-y;
    margin: 10px 8px 0 -2px;
    display: inline-block;
    vertical-align: middle;
}

// POPOVER

.comments-popover {
    width:100%;
    height:100%;
    margin-bottom: 5px;
}

.comments-arrow {
    position: absolute;
    overflow: hidden;
    left: -10px;
    top: 20px;
    width: 10px;
    height: 30px;

    &.right {
        left: 100%;

        &:after {
            left: -8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

            body.safari &,
            body.chrome & {
                box-shadow: none;
            }
        }
    }

    &:after {
        content: '';
        position: absolute;
        top: 5px;
        left: 2px;
        width: 15px;
        height: 15px;
        background-color: #ffffff;
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
        border: solid 1px @gray-dark;
    }
}
