
/* ================ The timelineTR ================ */

.timelineTR {
    position: relative;
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    padding: 1em 0;
    list-style-type: none;
}

    .timelineTR:before {
        position: absolute;
        /*left: 30px;*/
        top: 0;
        content: ' ';
        display: block;
        width: 6px;
        height: 100%;
        margin-left: -3px;
        /*background: rgb(80,80,80);*/
        /*background: -moz-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);*/
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
        /*background: -webkit-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -o-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -ms-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: linear-gradient(to bottom, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);*/

        z-index: 5;
    }

    .timelineTR li {
        padding: 0.6em 0;
    }

        .timelineTR li:after {
            content: "";
            display: block;
            height: 0;
            clear: both;
            visibility: hidden;
        }

.direction-l {
    position: relative;
    width: 100%;
    float: left;
    text-align: right;
}

.direction-r {
    position: relative;
    width: calc(100% - 20px);
    left: 20px
}

.flag-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.flag {
    position: relative;
    /*display: inline;*/
    background: rgb(248,248,248);
    padding: 6px 10px;
    border-radius: 5px;
    /*font-weight: 600;*/
    text-align: left;
}

    .flag:hover {
        cursor: pointer;
        background-color: rgba(127, 126, 126, 0.59);
    }

.direction-l .flag {
    -webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

.direction-r .flag {
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

    .direction-l .flag:before,
    .direction-r .flag:before {
        position: absolute;
        top: 50%;
        right: -120px;
        content: ' ';
        display: block;
        width: 20px;
        height: 20px;
        margin-top: -10px;
        background: #fff;
        border-radius: 10px;
        border: 4px solid rgba(30,87,153,1);
        z-index: 10;
        left: -30px;
    }


.direction-l .flag:after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    height: 0;
    width: 0;
    margin-top: -8px;
    border: solid transparent;
    border-left-color: rgb(248,248,248);
    border-width: 8px;
    pointer-events: none;
}

.direction-r .flag:after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    height: 0;
    width: 0;
    margin-top: -8px;
    border: solid transparent;
    border-right-color: rgb(248,248,248);
    border-width: 8px;
    pointer-events: none;
}

.time-wrapper {
    display: inline;
    line-height: 1em;
    font-size: 0.66666em;
    color: rgb(250,80,80);
    vertical-align: middle;
}

.direction-l .time-wrapper {
    float: left;
}

.direction-r .time-wrapper {
    float: right;
}

.timeTR {
    display: inline-block;
    padding: 4px 6px;
    background: rgb(248,248,248);
}

.desc {
    margin: 1em 0.75em 0 0;
    font-size: 0.77777em;
    font-style: italic;
    line-height: 1.5em;
}

.direction-r .desc {
    margin: 1em 0 0 0.75em;
}


/*----Classe change botao------*/
.flagespecial {
    position: relative;
    /*display: inline;*/
    background: rgb(248,248,248);
    padding: 6px 10px;
    border-radius: 5px;
    text-align: left;
    color: #009A7C !important;
    font-weight: bold;
}

    .flagespecial:hover {
        cursor: pointer;
    }

.direction-r .flagespecial {
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

    .direction-l .flagespecial:before,
    .direction-r .flagespecial:before {
        position: absolute;
        top: 50%;
        right: -120px;
        content: ' ';
        display: block;
        width: 20px;
        height: 20px;
        margin-top: -10px;
        background: #fff;
        border: 4px solid rgb(0, 154, 124);
        z-index: 10;
    }

    .direction-r .flagespecial:before {
        left: -30px;
    }

    .direction-r .flagespecial:after {
        content: "";
        position: absolute;
        right: 100%;
        top: 50%;
        height: 0;
        width: 0;
        margin-top: -8px;
        border: solid transparent;
        border-right-color: rgb(248,248,248);
        border-width: 8px;
        pointer-events: none;
    }

.flag {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.infoTime h4 {
    font-size: 16px;
    font-weight: bold;
    color: #1F589A;
    margin-top: 0;
}

.infoTime h5 {
    font-size: 16px;
    color: #777;
    margin-top: 0;
    margin-bottom: 5px;
}

.flagMissed .delay h4 {
    font-size: 14px;
    color: #CC0000;
    font-weight: bold;
    font-style: italic;
    margin-top: 0;
}

.flagEarly .delay h4 {
    font-size: 14px;
    color: #00ab9f;
    /*font-weight: bold;*/
    font-style: italic;
    margin-top: 0;
}

.flagLate .delay h4 {
    font-size: 14px;
    color: #CC0000;
    /*font-weight: bold;*/
    font-style: italic;
    margin-top: 0;
}

.flagOntime .delay h4 {
    font-size: 14px;
    color: #32A400;
    font-weight: bold;
    font-style: italic;
    margin-top: 0;
}

.flag .station {
    font-weight: bold;
    color: #1F589A;
}



/* ================ timelineTR CSS ESPINHA ================ */


.scrollmax {
    max-height: 500px;
    overflow-x: hidden;
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    /*background: #f1f1f1;*/
    background: #f2f2f7;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background-color: #dbdbdb;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #949396;
    }


.train-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

    .train-list .train-box:first-of-type {
        margin-left: 0;
    }

    .train-list .train-box:last-of-type {
        margin-right: 0;
    }

.train-box {
    padding: 4px;
    margin: 4px;
    border-radius: 12px;
    display: inline-block;
    cursor: default;
    height: 29px;
}

    .train-box > * {
        color: white;
    }

    .train-box .train-icon {
        width: 1em;
        height: 1em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
    }

    .train-box .train-name {
        margin: 0 4px 0 4px;
    }

.with-tooltip {
    position: relative;
}

.train-sep {
    height: 1em;
    margin: 7px -4px 0 -4px;
    color: #ccc;
}

.connection .train-sep {
    cursor: pointer;
}

.neg-delay {
    color: green;
}

.pos-delay {
    color: red;
}

.train-detail {
    position: relative;
    width: 100%;
    min-height: 5em;
    padding: 40px 5px 5px 0px;
}

    .train-detail > * {
        color: #1F589A;
    }

    .train-detail .top-border {
        position: absolute;
        top: 15px;
        left: 0;
        width: 100%;
        border-top: 1px solid #ccc;
        z-index: -10;
    }

    .train-detail .train-box {
        position: absolute;
        top: -4px;
        left: -4px;
        box-shadow: 4px 0px 0px 0px #fff;
    }

    .train-detail .train-top-line {
        position: absolute;
        top: 4px;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 14px;
        font-weight: 300;
        color: #777;
        z-index: -10;
    }

        .train-detail .train-top-line span {
            padding: 4px;
            background: white;
        }

    .train-detail .track {
        color: #777;
        font-weight: 300;
        flex: 0 0 auto;
        display: none;
    }

.trip-view .train-detail .first-stop .track,
.trip-view .train-detail .intermediate-stops .track {
    display: block;
}

.trip-view .train-dep-track {
    display: none;
}

.train-detail .train-dep-track,
.train-detail .train-arr-track {
    position: absolute;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: white;
    color: #777;
    font-weight: 300;
    box-shadow: -4px 0px 0px 0px #fff;
}

.train-detail .train-dep-track {
    top: 0px;
    right: 0px;
}

.train-detail .train-arr-track {
    top: 10px;
    right: 0px;
}

.train-detail:not(:last-of-type) .train-arr-track {
    display: none;
}

.train-detail .stop {
    display: flex;
    align-items: center;
    position: relative;
    height: 50px;
}

    .train-detail .stop span {
        padding: 0 6px;
        /*box-decoration-break: clone;
  -webkit-box-decoration-break: clone;*/
    }

.last-stop .stop span {
    background-color: white;
}

.train-detail .stop .station {
    padding: 0 6px;
}

    .train-detail .stop .station span {
        padding: 0;
        box-shadow: 6px 0 0 #fff, -6px 0 0 #fff;
        cursor: pointer;
    }

        .train-detail .stop .station span.virtual {
            cursor: default;
        }

.train-detail .timeline {
    position: absolute;
    top: 0px;
    left: -22px;
    height: 100%;
    border-left: 4px solid;
    /*transition: height .5s ease, border-color .5s ease;*/
}

.train-detail .stop .timeline {
    top: 25px;
}

.train-detail .intermediate-stops-toggle .timeline-container {
    height: 117px;
    position: absolute;
    top: 0;
    left: 0;
}

.train-detail .first-stop .stop .timeline {
    top: 0px;
}

.train-detail:last-of-type .last-stop .stop .timeline {
    display: none;
}

.train-detail .last-stop {
    position: relative;
}

.train-detail .intermediate-stops .stop::before,
.train-detail:last-of-type .last-stop .stop::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -25px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    z-index: 10;
    transition: all 1s ease;
}

.train-detail:last-of-type .last-stop::after {
    content: "";
    position: absolute;
    top: 25px;
    left: -11px;
    width: 100%;
    border-top: 1px solid #ccc;
    z-index: -10;
}

.train-detail .last-stop .stop {
    margin-bottom: 0;
}

.train-detail .direction {
    font-weight: 300;
    color: #888;
    padding-left: 2px;
    position: relative;
}

    .train-detail .direction i {
        color: #ccc;
        vertical-align: middle;
        font-size: 20px;
        margin-right: 2px;
        margin-top: -4px;
    }

.train-detail .intermediate-stops-toggle {
    padding: 32px 0 32px 32px;
    font-weight: 300;
    color: #888;
    position: relative;
    height: 92px;
}

    .train-detail .intermediate-stops-toggle.clickable {
        cursor: pointer;
    }

.train-detail .intermediate-stops.collapsed {
    display: none;
}

.train-detail .intermediate-stops.expanded {
    display: block;
}

.expand-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
}

    .expand-icon i {
        position: absolute;
        vertical-align: middle;
    }

        .expand-icon i:first-of-type {
            position: absolute;
            top: 0px;
        }

        .expand-icon i:last-of-type {
            position: absolute;
            top: 12px;
        }

.train-detail .intermediate-stops-toggle span {
    margin-left: 10px;
}

.train-detail .stop .time {
    font-weight: bold;
    width: 4em;
    flex: 0 0 4em;
    display: inline-block;
}

.time .past {
    color: #777;
}

.train-detail .stop div.delay {
    font-weight: bold;
    width: 4em;
    flex: 0 0 4em;
    display: inline-block;
}

.train-detail.initial-walk .stop div.delay {
    visibility: hidden;
}

.train-detail .stop .station {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.train-class-12,
.train-class-12 .train-color-border,
.train-detail.train-class-12 .stop::before {
    color: #9e9e9e;
}

.train-detail.train-class-12 .past .timeline:not(.bg),
.train-detail.train-class-12 .timeline.progress,
.train-detail.train-class-12 .stop.past::before {
    color: #c5c5c5;
}

.train-class-walk,
.train-class-walk .train-color-border,
.train-detail.train-class-walk .stop::before {
    color: #333;
}

.train-detail.train-class-walk .past .timeline:not(.bg),
.train-detail.train-class-walk .timeline.progress,
.train-detail.train-class-walk .stop.past::before {
    color: #666885;
}

.train-class-bike,
.train-class-bike .train-color-border,
.train-detail.train-class-bike .stop::before {
    color: #333;
}

.train-detail.train-class-bike .past .timeline:not(.bg),
.train-detail.train-class-bike .timeline.progress,
.train-detail.train-class-bike .stop.past::before {
    color: #666885;
}

.train-class-car,
.train-class-car .train-color-border,
.train-detail.train-class-car .stop::before {
    color: #333;
}

.train-detail.train-class-car .past .timeline:not(.bg),
.train-detail.train-class-car .timeline.progress,
.train-detail.train-class-car .stop.past::before {
    color: #666885;
}

.train-detail .train-color-border {
    border-color: currentColor;
}

.train-box,
.train-detail .stop::before {
    background-color: currentColor;
}

.connection-details {
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 0;
}

    .connection-details .connection-info {
       height: 150px;
        flex: 0 0 auto;
        margin: 0;
      /*  padding: 16px 24px;*/
        font-weight: 300;
        border-bottom: 1px solid #4971E7;
    }

.connection-info .header {
    position: relative;
}

    .connection-info .header .back {
        position: absolute;
        left: 0;
        top: 0;
    }

    .connection-info .header .details {
        margin-left: 30px;
    }

    .connection-info .header .actions {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        justify-content: space-between;
        width: 60px;
        color: #4971E7;
    }

    .connection-info .header .date {
        font-weight: bold;
        font-size: 120%;
        padding-top: 8px;
        margin-bottom: 10px;
    }

.connection-info .connection-times {
    display: flex;
}

    .connection-info .connection-times > div {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .connection-info .connection-times .times {
        font-weight: 700;
        text-align: right;
        padding-right: 10px;
        flex: 0 0 auto;
    }

    .connection-info .connection-times .locations div {
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.connection-info .summary {
    margin-top: 10px;
}

.back {
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 23px;
    width: 44px;
    height: 44px;
    display: flex;
    margin-right: 16px;
    justify-content: center;
    align-items: center;
}

    .back i {
        vertical-align: middle;
        cursor: pointer;
    }

    .back:hover {
        background: #eee;
    }

.connection-info .duration i,
.connection-info .interchanges i {
    vertical-align: baseline;
    font-size: 16px;
    margin-right: 5px;
}

.connection-info .duration {
    margin-right: 20px;
}

.connection-details .connection-journey {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 20px 10px 11px 10px;
}

    .connection-details .connection-journey.empty {
        padding-top: 100px;
    }

.connection-details .train-box {
    cursor: pointer;
}

.connection-details.trip-view .train-box {
    cursor: default;
}

.connection-details .train-box.train-class-walk,
.connection-details .train-box.train-class-bike,
.connection-details .train-box.train-class-car {
    padding: 4px 6px;
}

.station-events {
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 0;
}

    .station-events .header {
        height: 110px;
        flex: 0 0 auto;
        margin: 0;
        padding: 16px 24px;
        font-weight: 300;
        border-bottom: 1px solid #4971E7;
        position: relative;
    }

        .station-events .header .back {
            position: absolute;
            left: 24px;
            top: 16px;
        }

        .station-events .header .station {
            margin: 10px 45px 0 45px;
            font-size: 120%;
            font-weight: bold;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .station-events .header .event-type-picker {
            margin: 10px auto 0 auto;
        }

    .station-events .events {
        overflow-y: auto;
        flex: 1 1 auto;
        padding: 20px;
    }

.event-type-picker {
    display: flex;
    justify-content: center;
}

    .event-type-picker label {
        display: block;
        min-width: 100px;
        text-align: center;
        font-size: 80%;
        border-width: 0;
        border: 2px solid #6d8dec;
        border-radius: .35em;
        padding: 2px 0;
        margin: 4px;
        cursor: pointer;
    }

    .event-type-picker input {
        display: none;
    }

        .event-type-picker input:checked + label {
            background-color: #6d8dec;
            color: white;
        }

.station-events .station-event {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

    .station-events .station-event .event-time {
        flex: 0 0 70px;
    }

    .station-events .station-event .event-train {
        margin-top: -7px;
        flex: 0 0 130px;
    }

    .station-events .station-event .event-direction {
        flex: 2 2 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .station-events .station-event .event-direction i {
            vertical-align: middle;
            font-size: 20px;
            margin-right: 2px;
            margin-top: -4px;
        }

    .station-events .station-event .event-track {
        flex: 1 1 auto;
        text-align: right;
    }

.station-events .divider:first-of-type {
    margin: -25px 0 10px 0;
}

.station-events .divider {
    margin: 20px 0 10px 0;
}

.station-events .no-results .msg {
    padding-top: 20px;
    text-align: center;
}

.station-events .main-error,
.connection-journey .main-error {
    text-align: center;
}

.station-events .train-box {
    cursor: pointer;
}

.trip-search {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .trip-search .header {
        height: 210px;
        flex: 0 0 auto;
        padding: 24px;
    }

    .trip-search .trips {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 0px 24px 24px 24px;
    }

    .trip-search .no-results,
    .trip-search .main-error,
    .trip-search .loading {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        height: 100%;
        min-height: 200px;
    }

    .trip-search .trip {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
    }

        .trip-search .trip .trip-time {
            flex: 0 0 70px;
        }

            .trip-search .trip .trip-time .date {
                color: #888;
            }

        .trip-search .trip .trip-train {
            margin-top: -7px;
            flex: 0 0 130px;
        }

    .trip-search .train-box {
        cursor: pointer;
    }

    .trip-search .trip .trip-first-station {
        flex: 2 2 auto;
        min-width: 0;
    }

    .trip-search .trip .station {
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .trip-search .trip .direction {
        font-weight: 300;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .trip-search .trip .direction i {
            color: #ccc;
            vertical-align: middle;
            font-size: 20px;
            margin-right: 2px;
            margin-top: -4px;
        }











/* ================ timelineTR Media Queries ================ */

/*@media screen and (max-width: 660px) {

.timelineTR {
 	width: 100%;
	padding: 4em 0 1em 0;
}

.timelineTR li {
	padding: 2em 0;
}

.direction-l,
.direction-r {
	float: none;
	width: 100%;

	text-align: center;
}

.flag-wrapper {
	text-align: center;
}

.flag {
	background: rgb(255,255,255);
	z-index: 15;
}

.direction-l .flag:before,
.direction-r .flag:before {
  position: absolute;
  top: -30px;
	left: 50%;
	content: ' ';
	display: block;
	width: 12px;
	height: 12px;
	margin-left: -9px;
	background: #fff;
	border-radius: 10px;
	border: 4px solid rgb(255,80,80);
	z-index: 10;
}


.direction-l .flag:after,
.direction-r .flag:after {
	content: "";
	position: absolute;
	left: 50%;
	top: -8px;
	height: 0;
	width: 0;
	margin-left: -8px;
	border: solid transparent;
	border-bottom-color: rgb(255,255,255);
	border-width: 8px;
	pointer-events: none;
}

.time-wrapper {
	display: block;
	position: relative;
	margin: 4px 0 0 0;
	z-index: 14;
}

.direction-l .time-wrapper {
	float: none;
}

.direction-r .time-wrapper {
	float: none;
}

.desc {
	position: relative;
	margin: 1em 0 0 0;
	padding: 1em;
	background: rgb(245,245,245);
	-webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
	-moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
	box-shadow: 0 0 1px rgba(0,0,0,0.20);
	
  z-index: 15;
}

.direction-l .desc,
.direction-r .desc {
	position: relative;
	margin: 1em 1em 0 1em;
	padding: 1em;
	
  z-index: 15;
}

}

@media screen and (min-width: 400px ?? max-width: 660px) {

.direction-l .desc,
.direction-r .desc {
	margin: 1em 4em 0 4em;
}

}*/



