// main: backend.scss
@import "colors";

.widget.text-analysis {

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

    background: #f6f6f8;
    border: 1px solid #c5c5c6;
    border-radius: 1px;
    margin-top: 33px;

    > h3 {
        display: block;
        width: calc(100% - 30px);
        flex-shrink: 0;
        border-bottom: 1px solid #e7e7e8;
        padding: 12px;
        padding-left: 15px;
        padding-bottom: 7px;
        margin: 0;
        font-weight: 400;
    }

    > .group {

        flex-grow: 1;
        flex-basis: 0;
        padding: 15px;
        max-width: 250px;

        ul {

            margin-top: 10px;

            li {

                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: center;

                position: relative;
                margin-top: 0px;
                padding: 4px 0;

                mark {

                    display: none !important;

                    position: absolute;
                    left: 0;
                    top: 4px;
                    height: calc(100% - 8px);
                    z-index: 1;

                    background: rgba(#badc58,0.6);
                    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(186,220,88,1) 100%);
                    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(186,220,88,1) 100%);
                    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(186,220,88,1) 100%);
                    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#badc58',GradientType=1 );
                }

                span {

                    display: block;
                    z-index: 2;

                    &:nth-child(1) {
                        width: 160px;
                        white-space: nowrap;
                        margin-right: auto;
                    }

                    &:nth-child(2) {
                        text-align: right;
                        width: 50px;
                        flex-shrink: 0;
                    }

                    em {
                        display: block;
                        opacity: 0.5;
                    }
                }

                a {
                    display: block;
                    flex-shrink: 0;
                    background: url(../../../../system/themes/flexible/icons/visible.svg) no-repeat scroll 50% 50%;
                    width: 16px;
                    height: 15px;
                    margin-left: 10px;
                    filter: grayscale(100%);

                    &:hover, &.active {
                        filter: grayscale(0%);
                    }
                }

                + li {
                    border-top: 1px dotted #e7e7e8;
                }
            }
        }
    }
}