/* ClaimLab historical journey finder */

.history-shell {
  padding-top: 82px;
}

.history-hero {
  max-width: 850px;
  padding-bottom: 38px;
}

.history-dot {
  background: #5a746a;
  box-shadow: 0 0 0 4px rgba(90,116,106,.08);
}

.history-search-card {
  padding: 28px 0 34px;
  border-top: 1px solid #d9dfdb;
  border-bottom: 1px solid #d9dfdb;
}

.history-search-heading {
  max-width: 620px;
}

.history-search-heading h2,
.history-results-heading h2 {
  margin: 0;
  color: #17261f;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}

.history-search-heading p,
.history-results-heading p {
  margin: 10px 0 0;
  color: #748079;
  font-size: 10px;
  line-height: 1.55;
}

.history-search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr .7fr;
  gap: 12px;
  margin-top: 23px;
}

.history-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.history-field label {
  color: #58655f;
  font-size: 9px;
  font-weight: 600;
}

.history-field label span {
  color: #98a19d;
  font-weight: 500;
}

.history-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd7d3;
  border-radius: 6px;
  background: #fff;
  color: #1d2c26;
  font: inherit;
  font-size: 10.5px;
  outline: none;
}

.history-field input:focus {
  border-color: #52786c;
  box-shadow: 0 0 0 2px rgba(18,75,62,.07);
}

.history-autocomplete-menu {
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
}

.history-autocomplete-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  background: #fff;
  color: #35433d;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-align: left;
}

.history-autocomplete-menu button:last-child {
  border-bottom: 0;
}

.history-autocomplete-menu button:hover {
  background: #f4f7f5;
}

.history-search-button {
  min-height: 46px;
  margin-top: 18px;
  padding-inline: 22px;
  border-radius: 7px;
}

.history-results {
  margin-top: 52px;
}

.history-results-heading {
  padding-bottom: 22px;
}

.history-toolbar {
  grid-template-columns: 1fr;
}

.history-segment-delay {
  margin-top: 2px;
  color: #536a61;
  font-size: 8.5px;
  font-weight: 500;
}

.history-train-row .today-train-main {
  gap: 3px;
}

.history-train-row.is-major .history-segment-delay {
  color: #315c4d;
}

.history-page .today-train-row {
  grid-template-columns: 72px minmax(0,1fr) 190px 145px;
}

.history-page .today-train-action.is-apply {
  min-width: 130px;
}

.history-page .notice {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .history-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .history-page .today-train-row {
    grid-template-columns: 58px minmax(0,1fr) auto;
  }
}

@media (max-width: 560px) {
  .history-shell {
    padding-top: 58px;
  }

  .history-search-grid {
    grid-template-columns: 1fr;
  }

  .history-search-button {
    width: 100%;
  }

  .history-results {
    margin-top: 38px;
  }

  .history-page .today-train-row {
    grid-template-columns: 52px minmax(0,1fr);
  }

  .history-page .today-train-status,
  .history-page .today-train-action {
    grid-column: 2;
    justify-self: start;
  }

  .history-page .today-train-action.is-apply {
    min-width: 0;
  }
}
