/* Timetable Styles */
body {
  color: #666;
}

h1,
h2,
h3,
h4,
h5 {
  color: #333;
}

a:hover {
  text-decoration: underline;
}

.menu-type-radio .timetable {
  display: none;
}

.timetable .stop-header {
  text-align: center;
}

.timetable .run-header {
  text-align: center;
}

.timetable .run-footer {
  text-align: center;
}

.timetable .run-footer .continues-as-route {
  font-weight: bold;
}

.timetable .stop-code {
  font-weight: normal;
}

.timetable .stop-time {
  text-align: center;
}

.timetable .stop-time.pm {
  font-weight: bold;
}

.timetable a.symbol {
  padding-left: 4px;
  color: #212529;
  text-decoration: none;
}

.timetable .trip-frequency {
  text-align: center;
  font-weight: bold;
}

.timetable .city-row {
  font-size: 1.5em;
  color: #415d86;
}

.timetable th.city-column {
  font-size: 1.5em;
  text-align: center;
}

.timetable .table-container {
  overflow-x: scroll;
  margin-bottom: 1rem;
}

.timetable .table-container .table {
  margin-bottom: 0;
}

.timetable .table-container::-webkit-scrollbar {
  -webkit-appearance: none;
  height: 8px;
}

.timetable .table-container::-webkit-scrollbar-track {
  background-color: rgba(57, 57, 57, 0.2);
  border-radius: 4px;
}

.timetable .table-container::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(156, 156, 156, 0.8);
}

.timetable thead tr {
  background: #72b1e6;
}

.timetable thead tr a {
  color: #333333;
}

.timetable th {
  text-align: left;
}

.timetable td,
.timetable th {
  padding: 0;
}

.timetable table > thead > tr > th,
.timetable table > tbody > tr > th,
.timetable table > tfoot > tr > th,
.timetable table > thead > tr > td,
.timetable table > tbody > tr > td,
.timetable table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border: 1px solid #dddddd;
}

.timetable table > thead > tr > th {
  vertical-align: top;
  border-bottom: 2px solid #dddddd;
}

.timetable table > caption + thead > tr:first-child > th,
.timetable table > colgroup + thead > tr:first-child > th,
.timetable table > thead:first-child > tr:first-child > th,
.timetable table > caption + thead > tr:first-child > td,
.timetable table > colgroup + thead > tr:first-child > td,
.timetable table > thead:first-child > tr:first-child > td {
  border-top: 0;
}

.timetable table > tbody + tbody {
  border-top: 2px solid #dddddd;
}

.timetable table > thead > tr > th,
.timetable table > thead > tr > td {
  border-bottom-width: 2px;
}

.timetable table > tbody > tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.table-responsive {
  min-height: 0.01%;
  overflow-x: auto;
}

.table-horizontal tbody tr th.stop-name-container {
  min-width: 250px;
}

.table-hourly {
  width: auto;
}

.route-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-size: 14px;
  letter-spacing: -1px;
}

.route-color-swatch-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -1px;
}

@media screen and (max-width: 767px) {
  .table-responsive {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #ddd;
  }

  .table-responsive > table {
    margin-bottom: 0;
  }

  .table-responsive > table > thead > tr > th,
  .table-responsive > table > tbody > tr > th,
  .table-responsive > table > tfoot > tr > th,
  .table-responsive > table > thead > tr > td,
  .table-responsive > table > tbody > tr > td,
  .table-responsive > table > tfoot > tr > td {
    white-space: nowrap;
  }

  .table-responsive > .table-bordered {
    border: 0;
  }

  .table-responsive > .table-bordered > thead > tr > th:first-child,
  .table-responsive > .table-bordered > tbody > tr > th:first-child,
  .table-responsive > .table-bordered > tfoot > tr > th:first-child,
  .table-responsive > .table-bordered > thead > tr > td:first-child,
  .table-responsive > .table-bordered > tbody > tr > td:first-child,
  .table-responsive > .table-bordered > tfoot > tr > td:first-child {
    border-left: 0;
  }

  .table-responsive > .table-bordered > thead > tr > th:last-child,
  .table-responsive > .table-bordered > tbody > tr > th:last-child,
  .table-responsive > .table-bordered > tfoot > tr > th:last-child,
  .table-responsive > .table-bordered > thead > tr > td:last-child,
  .table-responsive > .table-bordered > tbody > tr > td:last-child,
  .table-responsive > .table-bordered > tfoot > tr > td:last-child {
    border-right: 0;
  }

  .table-responsive > .table-bordered > tbody > tr:last-child > th,
  .table-responsive > .table-bordered > tfoot > tr:last-child > th,
  .table-responsive > .table-bordered > tbody > tr:last-child > td,
  .table-responsive > .table-bordered > tfoot > tr:last-child > td {
    border-bottom: 0;
  }

  .table-horizontal tbody tr th.stop-name-container {
    min-width: 175px;
  }
}

/* Map Styles */

.map {
  min-height: 350px;
}

.map .mapboxgl-popup-content .popup-title {
  margin: 0 20px 5px 0;
  font-size: 16px;
  font-weight: bold;
}

.map .mapboxgl-popup-content .route-item {
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Overview  page */

.overview-menu-item {
  display: block;
  text-decoration: none;
  padding: 5px;
}

.overview-menu-item:hover {
  text-decoration: none;
  background: #bdd5fa;
}
