.event {
    background-color: var(--darkGrayBg);
    padding: 20px 30px;
    color: var(--grayOnDark);

    &__project{
        margin-right: 20px;
    }

    &__type {
        margin-right: 20px;

        &--fatal {
            color: var(--fatalColor);
        }

        &--warnings {
            color: var(--warningsColor);
        }

        &--notice {
            color: var(--noticeColor);
        }

        &--javascript {
            color: var(--javascriptColor);
        }
    }

    &__header {
        font-size: 14px;
    }

    &__counter {
        color: #fff;
        text-align: center;
        vertical-align: middle;
        margin-left: 30px;

        &-number {
            margin-bottom: 10px;

            &--digit {
                font-size: 30px;
                font-weight: 700;
            }
        }

        &-date {
            min-width: 75px;
            min-height: 30px;
            font-size: 13px;
            color: var(--grayOnDark);
            line-height: 1.5em;
        }
    }

    &__content {
        margin-top: 12px;
    }

    &__counter {
        margin-top: -30px;
        float: right;
        min-width: 60px;
    }

    &__title {
        color: #fff;
        overflow: hidden;
        font-size: 21px;
        line-height: 1.5em;
        font-weight: 700;
    }

    &__placeholder {
        height: 0.6em;
        background-color: #3b394c;
        border-radius: 30px;
    }

    &__counter &__placeholder {
        margin: 0 auto;

        &:first-of-type {
            margin-top: 1.4em;
            margin-bottom: 8px;
            width: 50%;
        }
    }

    &__path {
        margin: 10px 0 20px;
    }

    &__delimiter {
        width: 4px;
        height: 4px;
        display: inline-block;
        vertical-align: middle;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        margin: 0 3px;
    }

    &-badge {
        &:not(:first-of-type) {
            margin-left: 20px;
        }
    }
}

/*
 * Repeations list
 */
.repeations {
    font-size: 14.4px;
    width: 100%;

    &__row-wrapper {
        margin: 0 -8px;

        &:nth-of-type(2n+2) {
            background: #fbfbfb;
        }
    }

    &__row {
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: center;
        padding: 8px;
        cursor: pointer;
        border-radius: 3px;
        user-select: none;
        white-space: nowrap;

        &:hover {
            background: var(--lightGrayBg);

            .event-badge {
                background: #e4e7ec;
                color: #5f656f;
            }
        }
    }

    &__cell {
        max-width: 30%;
        overflow: hidden;
        text-overflow: ellipsis;

        &--badges {
            min-width: 200px;
        }
    }

    &__date {
        color: var(--grayText);
        margin-right: 20px;
    }

    &__user-agent {
        margin: 0 15px;
        min-width: 16%;
        padding-right: 25px;
    }

    .event-info {
        h4:first-of-type {
            margin-top: 10px;
        }
    }

    .event-badge {
        margin: 0 1px;
    }

    &__path {
        margin: 0 15px;
        flex-grow: 1;

        a&{
            color: var(--linkColor);

            &:hover {
                color: var(--hoverColor);
            }
        }
    }

    &__device {
        margin: 0 15px;
    }

    &__stack {
        margin-left: auto;
        color: var(--lightGrayText);
        cursor: pointer;

        svg {
            margin-right: 7px;
            vertical-align: top;
        }

        &:hover {
            color: var(--grayText)
        }

    }

}

/**
 * Event badge: mobile.svg, desktop
 */
.event-badge {
    display: inline-block;
    position: relative;
    border-radius: 3px;
    padding: 4px 6px;
    background: var(--lightGrayBg);
    color: var(--noticeColor);
    font-size: 0.9em;

    &--mobile {

        padding-left: 22px;

        &::before {
            content: '';
            background: url('/static/svg/mobile.svg') center no-repeat;
            position: absolute;
            left: 0;
            top: 0;
            margin: 6px 8px;
            display: block;
            width: 8px;
            height: 12px;
        }

    }

    &--desktop {

        padding-left: 25px !important;

        &::before {
            content: '';
            background: url('/static/svg/desktop.svg') center no-repeat;
            position: absolute;
            left: 0;
            top: 0;
            margin: 7px;
            display: block;
            width: 12px;
            height: 11px;
        }

    }

    &--tablet {

        padding-left: 22px !important;

        &::before {
            content: '';
            background: url('/static/svg/tablet.svg') center no-repeat;
            background-size: auto 14px;
            position: absolute;
            left: 0;
            top: 0;
            margin: 4px 6px;
            display: block;
            width: 11px;
            height: 15px;
        }

    }

    svg {
        display: inline-block;
        vertical-align: middle;
        margin: -2px 2px 0 2px;
    }

    &--device-size {

        svg {
            margin: -3px 3px 0;
        }

    }

}

.request {
    font-size: 14px;
    line-height: 1.5em;

    a {
        color: var(--linkColor);

        &:hover {
            color: var(--hoverColor);
        }

    }

    &-params {
        border: 1px solid var(--lightGrayLine);
        border-radius: 3px;
        margin: 20px 0;
        padding: 15px 17px;


        &__header {
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.6px;
        }

        &__item {
            display: flex;
            flex-flow: row nowrap;
            justify-content: flex-start;
            align-items: flex-start;
            padding: 7px 0;

            &:last-child {
                padding-bottom: 0;
            }

        }

        &__field {
            width: 250px;
            min-width: 150px;
            //color: var(--grayText);
            font-weight: 600;
            vertical-align: top;
        }

        &__value {
            flex-grow: 1;
            overflow: hidden;
            color: var(--grayText);
            max-width: calc(100% - 250px);
            box-sizing: border-box;
            line-height: 1.6em;
        }

    }

}

.event-info {
    border: 1px soild var(--lightGrayLine);
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    padding: 15px;
    margin: 10px -8px 10px;

    h4:first-of-type{
        margin-top: 0 !important;
    }

    &--opened {
        background: var(--darkGrayBg);
        color: #fff;

        &:hover {
            background: color(var(--darkGrayBg) blackness(+5%));
        }

        .repeations__date,
        .repeations__stack {
            color: #fff;
        }

        a.repeations__path {
            color: #a5a0e4;
        }
    }
}
