
/* global styles */
.timeline-report-wrapper .timeline__wrapper {
    background-color: white;
}

@media (min-width: 768px) {
    .timeline-report-wrapper .timeline__wrapper .crux-container {
        padding: 0 15px 0 0;
    }
}

.timeline-report-wrapper .timeline__wrapper .crux-label-style {
    border-top: 5px solid #000;
    padding-top: 15px;
    margin-bottom: 40px;
    display: inline-block;
    font-family: "Averta W01 Regular", Helvetica, Arial, sans-serif;
}

.timeline-report-wrapper .timeline__wrapper .crux-section-header--small {
    font-family: 'Averta W01 Light', Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-size: 2.6rem;
    color: #000;
    font-weight: normal;
    line-height: 31px;
    margin-bottom: 50px;
}

.timeline-report-wrapper .timeline__container {
    position: relative;
}

.timeline-report-wrapper .timeline__wrapper .timeline__button {
    position: absolute;
    top: 177px;
    border: 0;
    background-color: transparent;
    height: 30px;
    width: 30px;
    padding: 0;
    font-size: 30px;
}

.timeline-report-wrapper .timeline__wrapper .timeline__button[disabled],
.timeline-report-wrapper .timeline__wrapper .timeline__button[disabled]:hover {
    color: #C8C8C8;
}

.timeline-report-wrapper .timeline__wrapper .timeline__button:hover {
    color: #00AE4D;
}

.timeline__button.timeline__button--left {
    left: -8px;
}

.timeline__button.timeline__button--right {
    right: -8px;
}

.timeline-report-wrapper .timeline__items {
    height: 386px;
    margin: 0 30px;
    padding: 0 10px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent 48.5%, #00AE4D 49%, #00AE4D 50%, transparent 50.5%);
    will-change: scroll-position;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 1199px) {

    .timeline-report-wrapper .timeline__wrapper .crux-section-header--small {
        margin-bottom: 12px;
    }

    .timeline__items {
        height: 385px;
        padding: 0 2px;
    }


    .timeline-report-wrapper .timeline__wrapper .timeline__button {
        top: 177px
    }
}

@media (max-width: 767px) {

    .timeline-report-wrapper .timeline__wrapper {
        padding-bottom: 20px;
    }

    .timeline-report-wrapper .timeline__wrapper .crux-label-style {
        margin-bottom: 24px;
    }

    .timeline-report-wrapper .timeline__wrapper .crux-section-header--small {
        font-size: 21px;
        line-height: 25px;
        margin-bottom: 25px;
    }

    .timeline-report-wrapper .timeline__wrapper .timeline__button {
        display: none;
    }
}
/* global styles */

/* item styles */

/* common */
.timeline-report-item-wrapper {
    width: 232px;
    margin-right: 46px;
    display: inline-block;
    position: relative;
    min-height: 339px;
    top: -27px;
    vertical-align: top;
    will-change: scroll-position;
    transform: translate3d(0, 0, 0);
}

.timeline-report-item-wrapper:hover {
    z-index: 1;
}

.timeline-report-item-wrapper:last-child {
    margin-right: 0;
}

.timeline-report-wrapper .timelineItem__title-block {
    margin-left: 65px;
    white-space: normal;
}

.timeline-report-wrapper .timelineItem__title-block:before {
    content: "";
    display: block;
    width: 1px;
    height: 40px;
    position: absolute;
    border: 6px solid white;
    border-top-width: 0;
    z-index: 1;
    background-color: #000;
    left: 5px;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.timeline-report-wrapper .timelineItem__description-block {
    display: none;
}

.timeline-report-wrapper .timelineItem__description-block a:hover div{
    color: #00AE4D;
}

.timeline-report-wrapper .timelineItem p {
    margin: 0;
}

/* odd without image */
.timeline-report-item-wrapper:nth-child(odd) .timelineItem__title-block:before {
    top: -50px;
}

.timeline-report-item-wrapper:nth-child(odd) .timelineItem__title-block {
    position: absolute;
    top: 264px;
}

.timeline-report-wrapper .timelineItem__img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 20px;
}

.timeline-report-wrapper .timelineItem__img div,
.timeline-report-wrapper .timelineItem__img img{
    height: 120px;
}

/* odd with image */
.timeline-report-item-wrapper:nth-child(odd) .image .timelineItem__img div img {
    margin-bottom: -65px;
}

/* even without image */
.timeline-report-item-wrapper:nth-child(even) .timelineItem__title-block {
    position: absolute;
    bottom: 160px;
}

.timeline-report-item-wrapper:nth-child(even) .timelineItem__title-block:before {
    bottom: -50px;
}

.timeline-report-item-wrapper:nth-child(odd) .image .timelineItem__img {
    position: absolute;
    top: 60px;
}

.timeline-report-item-wrapper:nth-child(even) .image .timelineItem__img {
    position: absolute;
    bottom: -45px;
}

@media (min-width: 1199px) {
    .timeline-report-wrapper .timelineItem__title-block {
        margin-left: 64px;
    }

    /* description */
    .timeline-report-wrapper .timelineItem__description-block:hover,
    .timeline-report-wrapper .timelineItem__img:hover ~ .timelineItem__description-block,
    .timeline-report-wrapper .timelineItem__title-block:hover ~ .timelineItem__description-block {
        display: block;
    }

    .timeline-report-wrapper .timelineItem__description-block {
        width: 295px;
        height: 336px;
        padding: 25px 30px;
        background-color: #ffffff;
        position: absolute;
        top: 48px;
        z-index: 2;
        white-space: normal;
    }

    .timeline-report-wrapper .timelineItem__description-block .crux-body-copy.crux-body-copy--extra-small {
        font-size: 16px;
        margin-top: 10px;
    }

    .timeline-report-wrapper .timelineItem__description-block .crux-body-copy.crux-body-copy--small {
        width: 175px;
    }

    .timeline-report-wrapper .timelineItem--last .timelineItem__description-block {
        right: 0;
    }

    .timeline-report-wrapper timelineItem__description-block .border {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }
    .timeline-report-wrapper .timelineItem__description-block .border:first-child:before {
        position: absolute;
        display: block;
        content: '';
        background-color: #000;
        width: 0%;
        height: 1px;
        top: 0;
        left: 0;
        z-index: 1;
        transition: all 250ms ease-out 200ms;
    }
    .timeline-report-wrapper .timelineItem__description-block .border:first-child:after {
        position: absolute;
        display: block;
        content: '';
        background-color: #000;
        width: 1px;
        height: 0;
        top: 0;
        right: 0;
        z-index: 1;
        transition: all 50ms linear 150ms;
    }
    .timeline-report-wrapper .timelineItem__description-block .border:last-child:before {
        position: absolute;
        display: block;
        content: '';
        background-color: #000;
        width: 0%;
        height: 1px;
        bottom: 0;
        right: 0;
        z-index: 1;
        transition: all 50ms linear 100ms;
    }
    .timeline-report-wrapper .timelineItem__description-block .border:last-child:after {
        position: absolute;
        display: block;
        content: '';
        background-color: #000;
        width: 1px;
        height: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        transition: all 100ms ease-in;
    }
    .timeline-report-wrapper .timelineItem__description-block .content {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: white;
        z-index: 3;
    }
    .timeline-report-wrapper .timelineItem__description-block:hover .border:first-child:before {
        width: 100%;
        transition: all 150ms ease-in;
    }
    .timeline-report-wrapper .timelineItem__description-block:hover .border:first-child:after {
        height: 100%;
        transition: all 200ms linear 150ms;
    }
    .timeline-report-wrapper .timelineItem__description-block:hover .border:last-child:before {
        width: 100%;
        transition: all 150ms linear 350ms;
    }
    .timeline-report-wrapper .timelineItem__description-block:hover .border:last-child:after {
        height: 100%;
        transition: all 200ms ease-out 500ms;
    }
}

@media (max-width: 1199px) {
    .timeline-report-item-wrapper {
        width: 192px;
        margin-right: 45px;
        top: -7px;
    }

    .timeline-report-item-wrapper:nth-child(odd) .timelineItem__title-block {
        top: 244px;
    }

    .timeline-report-item-wrapper:nth-child(even) .timelineItem__title-block {
        bottom: 180px;
    }

    .timeline-report-wrapper .timelineItem__description-block {
        height: 365px;
    }

    .timeline-report-item-wrapper:nth-child(odd) .image .timelineItem__img div img {
        margin-bottom: -20px;
    }

    .timeline-report-item-wrapper:nth-child(even) .image .timelineItem__img {
        margin-bottom: 0px;
    }

    .timeline-report-wrapper .timeline__items .timelineItem__title-block,
    .timeline-report-wrapper .timeline__items .timelineItem__description {
         display: none!important;
    }

    .timeline-report-wrapper .timeline__items .timelineItem__img,
    .timeline-report-wrapper .timeline__items .timelineItem__description-block {
        display: block!important; /* lazyloading sets inline style */
    }
}

@media (min-width: 767px) and (max-width: 1199px) {
    .timeline-report-wrapper .timelineItem__description-block {
        display: block;
        width: 190px;
        padding: 35px 0 0 60px;
        position: absolute;
        top: 206px;
        z-index: 2;
        white-space: normal;
    }

    .timeline-report-item-wrapper:nth-child(even) .timelineItem__description-block {
         top: 15px;
    }

    .timeline-report-wrapper .timelineItem__description-block:before {
        content: "";
        display: block;
        width: 1px;
        height: 40px;
        position: absolute;
        border: 6px solid white;
        border-top-width: 6px;
        border-top-width: 0;
        z-index: 1;
        background-color: #000;
        left: 65px;
        top: -12px;
        -webkit-box-sizing: content-box;
        -moz-box-sizing: content-box;
    }

    .timeline-report-item-wrapper:nth-child(even) .timelineItem__description-block:before {
        top: 147px;
    }

    .timeline-report-item-wrapper:nth-child(even) .image .timelineItem__img {
         bottom: -23px;
    }

    .timeline-report-item-wrapper:nth-child(odd) .image .timelineItem__img {
        top: 50px;
    }

    .timeline-report-wrapper .timelineItem__img {
        right: 55px;
    }
}

@media (max-width: 767px) {
    .timeline-report-item-wrapper {
        top: 0;
    }

    .timeline-report-wrapper .timeline__items {
        height: 100%;
        width: 100%;
        overflow: initial;
        background: none;
        white-space: normal;
        margin: 0;
        padding: 0;
    }

    .timeline-report-wrapper .timeline__items:before {
        content: '';
        width: 5px;
        min-height: calc(100% + 10px);
        position: absolute;
        background-color: #00AE4D;
        left: 110px;
        top: 5px;
    }

    .timeline-report-item-wrapper {
        min-height: 0;
        width: 100%;
        margin: 45px 0 0;
    }

    .timeline-report-wrapper .timelineItem__title-block > * {
        display: inline-block;
        vertical-align: top;
    }

    .timeline-report-wrapper .timelineItem__img {
        width: 78px;
        height: 78px;
        float: left;
        margin-right: 50px;
        left: 0;
    }

    .timeline-report-wrapper .timelineItem__img div,
    .timeline-report-wrapper .timelineItem__img img{
        height: 78px;
    }

    .timeline-report-wrapper .timelineItem__date span {
        width: 45px;
        display: inline-block;
    }

    .timeline-report-wrapper .timelineItem__date:after {
        display: none;
    }

    .timeline-report-item-wrapper .timelineItem .timelineItem__title-block {
        position: static;
        margin: 0;
    }

    .timeline-report-wrapper .timelineItem__title {
        width: calc(100% - 30px);
    }

    .timeline-report-wrapper .timelineItem__title-block > * {
        display: inline-block;
    }

    .timeline-report-wrapper .timelineItem__description-block {
        height: 100%;
        padding-left: 141px;
    }

    .timeline-report-wrapper .timelineItem__description-block:before {
        content: "";
        display: none;
        width: 26px;
        height: 1px;
        position: static;
        border: 6px solid white;
        border-left-width: 5px;
        border-right-width: 5px;
        z-index: 1;
        background-color: #000;
        min-height: 0;
        margin-left: 0;
    }

    .timeline-report-wrapper .timelineItem:before {
        content: "";
        display: inline-block;
        width: 26px;
        height: 1px;
        position: relative;
        border: 6px solid white;
        z-index: 1;
        background-color: #000;
        top: 35px;
        left: 93px;
        -webkit-box-sizing: content-box;
        -moz-box-sizing: content-box;
        box-sizing: content-box;
    }

    .timeline-report-item-wrapper:nth-child(even) .timelineItem.image:before {
        left: -35px;
    }

    .timeline-report-item-wrapper:last-child .timelineItem:before,
    .timeline-report-item-wrapper:first-child .timelineItem:before {
        left: 93px;
    }

    .timeline-report-item-wrapper:nth-child(odd) .image .timelineItem__img {
        top: 0;
    }

    .timeline-report-item-wrapper:nth-child(even) .image .timelineItem__img {
        position: relative;
        bottom: 0;
    }

}
/* item styles */

/* edit mode */
.timeline__items.ui-sortable > div:not(.timeline-report-item-wrapper) {
    display: none;
}

.ui-sortable .timelineItem__description-block:hover,
.ui-sortable .timelineItem__img:hover ~ .timelineItem__description-block,
.ui-sortable .timelineItem__title-block:hover ~ .timelineItem__description-block {
    display: none;
}

.timeline-report-wrapper .timeline__wrapper .add-product-form {
    display: block;
    clear: both;
    font-size: 10px;
}

/* odd without image */
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 1) .timelineItem__title-block:before,
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 2) .timelineItem__title-block:before {
    top: -50px;
}

.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 1) .timelineItem__title-block,
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 2) .timelineItem__title-block {
    position: absolute;
    top: 215px;
}

/* odd with image */
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 1) .image .timelineItem__img,
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 2) .image .timelineItem__img {
    margin-bottom: 70px;
    position: static;
}

/* even without image */
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 3) .timelineItem__title-block,
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 4) .timelineItem__title-block {
    position: absolute;
    bottom: 212px;
}

.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 3) .timelineItem__title-block:before,
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 4) .timelineItem__title-block:before {
    bottom: -50px;
}

/* odd with image */
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 3) .image .timelineItem__img,
.ui-sortable .timeline-report-item-wrapper:nth-child(4n + 4) .image .timelineItem__img {
    position: absolute;
    bottom: 0;
}
