/****** Style horaires - 18/12/2017 ******/

.horaires_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.horaires_content .titre_page {
    flex-basis: 100%;
}

/**** CATEGORIES TABLE ****/
#tabs-horaires {
    max-width: 750px;
    background: none;
    width: 100%;
}

.horaires_categories {
    position: relative;
}

.horaires_categories table {
    width: 100%;
    background-color: #e2001a;
    margin: 0;
    height: auto;
}

.horaires_categories tr {
    display: flex;
    text-align: left;
    height: 50px;
    padding: 0 5px 0 0;
}

.horaires_categories table td {
    flex: 1 3 50%;
    padding: 0;
    align-self: center;
    color: white;
    font-family: RobotoCondensedBold, Arial, Helvetica, sans-serif;
    font-size: 15px;
    display:inline-block;
}

.horaires_categories table td:first-child {
    text-align: left;
    text-transform: uppercase;
    padding: 0;
    flex-shrink: 2;
    flex-grow: 0;
    margin: 0 0 0 10px;
}

.horaires_categories table td:nth-child(2) {
    flex-shrink: 1;
}

.horaires_categories table td i {
    cursor: pointer;
}

.horaires_categories .categories-detail {
    position: absolute;
    width: auto;
    border: 2px solid lightgrey;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    top: 10px;
    left: 70px;
    display: none;
}

.horaires_categories .categories-detail ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.horaires_categories .categories-detail ul span {
    font-family: OpenSansBold, Arial, Helvetica, sans-serif;
}

/**** STATION TITLE TABLE ****/

.horaires_station-title {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    background: #f0f0f0;
    padding: 10px 10px 10px 30px;
    border: 1px solid lightgrey;
    align-items: center;
    flex-wrap: wrap;
}

.horaires_station-title p {
    margin-bottom: 0;
    font-family: OpenSansBold, Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    color: black;
    font-size: 18px;
}

.horaires_station-title p:not(:first-child) {
    font-size: 13px;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    text-transform: none;
    font-style: italic;
    order: 1;
    flex-basis: 100%;
}

.horaires_station-title i {
    font-size: 23px;
    transition: transform 0.25s ease-in;
    margin-right: 30px;
}

.horaires_station-title.open i {
    transform: rotate(-180deg);
}

/**** STATION CONTENT TABLE ****/

.horaires_station-content {
    display: none;

}

.horaires_station-content.open {
    display: block;
}

.horaires_station-content > table {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    font-family: OpenSans, Arial, Helvetica, sans-serif;
    color: black;
    height: auto;
}

.horaires_station-content > table tr {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    padding: 10px 5px 10px 0;
}

.horaires_station-content > table tr:hover {
    background-color: #f0f0f0;
}

.horaires_station-content > table td {
    flex: 1 1 10%;
    padding: 0;
    align-self: center;
    color: black;
    display: inline-block;
}

.horaires_station-content > table td:first-child {
    flex-grow: 1;
    text-align: left;
    font-size: 14px;
    padding: 5px;
    border-bottom: 1px solid #cec5c6;
    font-family: OpenSansSemibold, Arial, Helvetica, sans-serif;
    flex-basis: 100%;
    margin: 0 10px 0 0;
}

.horaires_station-content > table td:first-child[colspan="5"] {
    font-style: italic;
    color: grey;
    padding: 10px 5px;
}

.horaires_station-content > table td:first-child small {
    font-size: 11px;
}

.horaires_station-content > table td:nth-child(2) {
    font-size: 12px;
    font-family: OpenSansSemiboldItalic, Arial, Helvetica, sans-serif;
    display: flex;
    align-items: left;
    justify-content: space-around;
    flex-direction: column;
    padding-left: 15px;
    flex-grow: 2;
}

.horaires_station-content > table td:not(:nth-child(2)):not(:first-child) {
    display: flex;
    align-items: left;
    flex-direction: column;
    justify-content: space-around;
    font-size: 12px;
    padding: 5px;
    text-align: left;
}

.horaires_station-content > table td:not(:nth-child(1)) small {
    /*display: none;*/
}

.horaires_station-content span[style="color:#FF0000;"] {
    color: #e2001a !important;
}

.horaires_text {
    margin: 25px 0;
    font-family: OpenSansSemibold, Arial, Helvetica, sans-serif;
    color: black;
}

.horaires_text .importantgras, .horaires_text strong {
    font-weight: normal;
    font-family: OpenSansBold, Arial, Helvetica, Sans-serif;
}

.horaires_information {
    width: 100%;
    max-width: 100%;
    background-color: #f0f0f0;
    padding: 20px 30px;
}

.horaires_information h2 {
    text-transform: uppercase;
    color: #414141;
    margin-bottom: 30px;
}
.horaires_information p {
    margin-bottom: 0;
}

@media only screen and (min-width: 480px) {
    .horaires_station-content > table td:not(:nth-child(2)):not(:first-child)  {
        font-size: 13px;
        line-height: 30px;
    }

    .horaires_station-content > table td:nth-child(2) {
        line-height: 30px;
    }
}

@media only screen and (min-width: 768px) {

    .horaires_categories table td, .horaires_station-content table td {
        flex-basis: 130px;
        flex-grow: 0;
        padding: 10px;
    }

    .horaires_categories table td {
        font-size: 20px;
    }

    .horaires_categories table td:first-child {
        flex-basis: 130px;
        margin: 0 0 0 30px;
        padding: 0;
        flex-grow: 1;
    }

    .horaires_categories table td:nth-child(2) {
        flex-grow: 1;
        padding-left: 40px;
    }

    .horaires_categories .categories-detail {
        left: 130px;
    }

    .horaires_station-title p:not(:first-child) {
        order: 0;
        flex-basis: auto;
    }

    .horaires_station-content > table tr {
        flex-wrap: nowrap;
        border: 1px solid lightgrey;
        padding: 0 0px 0 0;
    }

    .horaires_station-content > table td:first-child {
        flex-basis: 130px;
        border: none;
        margin-left: 20px;
    }

    .horaires_station-content > table td:nth-child(2) {
        display: inline-block;
        line-height: 30px;
        font-size: 13px;
        align-items: center;
        flex-grow: 2;
        padding-left: 0;
    }

    .ui-state-default a {
        font-size: 22px !important;
    }

    .horaires_information {
        width: 450px;
    }
}