/* Filter form block */
#block-rrfilterblock .area__content {
  padding: 0;
}
#block-rrfilterblock .page__intro {
  font-size: 16px;
  line-height: 24px;
  margin: 10px 0;
}
#block-rrfilterblock form {
  background-color: #e7f0fe;
  padding: 0 10px 20px;
  box-sizing: border-box;
}
#block-rrfilterblock * {
  box-sizing: border-box;
}
#block-rrfilterblock .form__item {
  padding: 20px 10px 0;
}
#block-rrfilterblock .form__subitem:first-child {
  padding-right: 10px;
}
#block-rrfilterblock .form__subitem:last-child {
  padding-left: 10px;
}
#block-rrfilterblock label {
  display: none;
}
#block-rrfilterblock input[type="text"],
#block-rrfilterblock select {
  background-color: #fff;
}
#block-rrfilterblock input[type="text"] {
  padding: 4px;
  width: 100%;
}
#block-rrfilterblock input[type="submit"] {
  width: 120px;
}
#block-rrfilterblock .runners-form-text {
  padding-top: 2px;
  font-size: 12px;
  line-height: 18px;
}
#block-rrfilterblock .submit-wrapper {
  text-align: right;
}
#block-rrfilterblock .block__buttons {
  margin-bottom: 8px;
}
#block-rrfilterblock .btn {
  display: inline-block;
  vertical-align: middle;
  padding: 9px 12px;
  border-radius: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: normal;
  height: 40px;
  text-align: center;
  text-shadow: none;
  box-shadow: none;
  box-sizing: border-box;
  margin-right: 14px;
}
#block-rrfilterblock .btn--blue {
  border: none;
  color: #fff;
  background-color: #CC1012;
  outline: 0;
  transition: outline 0.1s;
}
#block-rrfilterblock .btn--clear {
  color: #0037b2;
  border: 1px solid #00abee;
  background: #fff;
}
.btn--show:before {
  width: 82px;
  content: 'Show filters';
  display: inline-block;
  margin-right: 20px;
}
.btn--show.active:before {
  content: 'Hide filters';
}
@media screen and (min-width: 568px) {
  #block-rrfilterblock .form__submit {
    padding: 0 10px 0 0;
  }
  #block-rrfilterblock .form__subitem:last-child {
    padding-right: 10px;
  }
}
/* Output */
.rr-table {
  width: 100%;
}
@media screen and (max-width: 767px) {
  .rr-table .hide-race-name .time,
  .rr-table .hide-race-name .race-name,
  .rr-table .hide-race-name .race-distance {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  .rr-table thead th {
    background-color: #0037b2;
    color: #fff;
    padding: 12px;
    font-weight: normal;
    text-align: left;
  }
  .rr-table td {
    padding: 12px;
    background-color: #fefefe;
    vertical-align: top;
  }
  .rr-table td:first-child {
    background-color: #fafafa;
  }
  .rr-table tr.first:not(:first-child) {
    border-top: 1px solid #c7c6c6;
  }
  .rr-table tr.odd td {
    background-color: #fafafa;
  }
  .rr-table tr.odd td:first-child {
    background-color: #f1f1f1;
  }
  .rr-table td:not(:nth-child(5)) {
    font-weight: bold;
  }
  #block-rrfilterblock .btn {
    margin-right: 24px;
  }
  .rr-table .hide-race-name .time .cell__content,
  .rr-table .hide-race-name .race-name .cell__content,
  .rr-table .hide-race-name .race-distance .cell__content {
    display: none;
  }
}
/* Result table - JA */
.view-runners-results caption,
.lang-ja .node--90 .field--name-body table h3 {
  color: #0037b2;
  font-size: 25px;
  line-height: 27px;
  text-align: left;
}
.view-runners-results caption {
  padding: 1em 0;
  font-style: italic;
}
.node--90 .field--name-body p {
  font-size: 16px;
}
@media only screen and (max-width: 767px) {
  .view-runners-results .table-wrapper,
  .lang-ja .node--90 .field--name-body .table-wrapper {
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: visible;
  }
}
.view-runners-results table,
.lang-ja .node--90 .field--name-body table {
  width: 100%;
  border: none;
  box-sizing: border-box;
  min-width: 736px;
}
.lang-ja .node--90 .field--name-body table tr {
  border: none;
}
.lang-ja .node--90 .field--name-body table tr:nth-child(1) {
  border: none;
}
.lang-ja .node--90 .field--name-body table tr:nth-child(1) td {
  padding-left: 0;
}
.view-runners-results thead,
.lang-ja .node--90 .field--name-body table tr:nth-child(2) {
  border-bottom: 1px solid #7d7d7d;
  background-color: #fff;
}
.view-runners-results table td,
.lang-ja .node--90 .field--name-body table td {
  font-size: 16px;
  line-height: 18px;
  border: none;
  vertical-align: top;
  padding-bottom: 18px;
  box-sizing: border-box;
  background-color: #fff;
}
.lang-ja .node--90 .field--name-body table td.race.borderbottom,
.lang-ja .node--90 .field--name-body table td.horse.borderbottom {
  background-color: #fff;
}
.view-runners-results thead th,
.lang-ja .node--90 .field--name-body table tr:nth-child(1) td {
  color: #0037b2;
  font-size: 18px;
  line-height: 20px;
  font-weight: bold;
  padding-bottom: 9px;
}
.view-runners-results thead th {
  text-align: left;
}
.view-runners-results table tr th:nth-child(1),
.view-runners-results table tr td:nth-child(1),
.lang-ja .node--90 .field--name-body table tr:nth-child(2) td:nth-child(1) {
  padding-left: 0;
}
.view-runners-results tbody tr:first-child td {
  padding-top: 8px;
}
.view-runners-results table tr th:nth-child(6),
.lang-ja .node--90 .field--name-body table tr:nth-child(2) td:nth-child(6) {
  padding-right: 0;
  text-align: right;
}
/* Edit/ delete / reinstate buttons */
.accordion .rr-table form {
  padding: 0;
  display: inline;
}
.rr-table .edit-link {
  font-weight: normal;
  font-size: 14px;
  display: inline-block;
  padding-right: 5px;
  border-right: 1px solid #000;
  margin-right: 5px;
}
.rr-table a.delete-reinstate-link {
  color: #990000;
  font-weight: normal;
  font-size: 14px;
  line-height: 17px;
}
.rr-table .race-deleted td:not(:first-child),
.rr-table .race-result-deleted td:not(:first-child) {
  background-color: rgba(255,0,0,.1);
}
.rr-table .race-deleted .race-name a.delete-reinstate-link {
  color: #007700;
}
.rr-table .race-result-deleted .horse-info a.delete-reinstate-link {
  color: #007700;
}
/* Runners and results: mobile */
@media only screen and (max-width: 767px) {
  .rr-table thead {
    display: none;
  }
  .rr-table tr {
    display: block;
    padding-bottom: 24px;
  }
  .even {
    background-color: #fafafa;
  }
  .odd {
    background-color: #f1f1f1;
  }
  .first:not(:first-child) {
    border-top: 3px solid #fff;
  }
  .even:not(.first) {
    border-top: 1px solid #c7c6c6;
    padding-top: 8px;
  }
  .odd:not(.first) {
    border-top: 1px solid #fff;
    padding-top: 8px;
  }
  .rr-table tr td {
    display: block;
    padding: 8px;
    font-size: 14px;
    position: relative;
  }
  .rr-table td.time,
  .rr-table td.race-name,
  .rr-table td.race-distance {
    display: inline-block;
    vertical-align: top;
  }
  .rr-table td.time {
    width: 64px;
    box-sizing: border-box;
  }
  .rr-table td.race-name {
    max-width: 140px;
  }
  .horse-info > div:before,
  .horse-info td.result:before,
  .result:before {
    display: inline-block;
    padding-right: 8px;
    width: 60px;
    color: #0037b2;
    font-size: 14px;
  }
  .rr-table tr td.horse-info {
    padding-bottom: 0;
  }
  .breeder,
  .owner,
  .trainer {
    position: relative;
    padding-left: 68px;
  }
  .rr-table tr td.result {
    display: inline-block;
    position: relative;
    padding-top: 0;
    padding-left: 76px;
  }
  .td-label {
    display: none;
  }
  .rr-table tr:not(.first) .racecourse {
    padding: 0;
  }
  .horse-info > div.horse-name:before {
    content: 'Horse';
    font-weight: bold;
    padding-right: 4px;
  }
  .breeder:before {
    content: 'Breeder';
    position: absolute;
    left: 0;
    top: 0;
  }
  .owner:before {
    content: 'Owner';
    position: absolute;
    left: 0;
    top: 0;
  }
  .trainer:before {
    content: 'Trainer';
    position: absolute;
    left: 0;
    top: 0;
  }
  .result:before {
    content: 'Result';
    position: absolute;
    left: 0;
    top: 0;
    padding-left: 8px;
    font-weight: normal;
  }
  .rr-table td.result {
    font-weight: bold;
    padding-bottom: 0;
  }
  .rr-table td.racecourse {
    font-size: 14px;
    font-weight: bold;
  }
  .horse-details {
    padding-left: 68px;
  }
}
@media screen and (min-width: 768px) {
  .rr-table thead tr th:first-child {
    width: 151px;
  }
  .rr-table thead tr th:nth-child(3) {
    width: 13%;
  }
  .rr-table thead tr th:nth-child(4) {
    width: 7%;
  }
}
