.block-trent-courses .filter {
  display: inline-block;
  width: 100%;
  padding: 10px 0;
}

.block-trent-courses .course-search {
  padding: 1.5rem 2rem 1.5rem 1rem;
  border-radius: 4px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg aria-hidden='true' focusable='false' data-prefix='far' data-icon='search' class='svg-inline--fa fa-search fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill-opacity='0.3' fill='currentColor' d='M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z'></path></svg>");
  background-position: center right 0.5rem;
  background-repeat: no-repeat;
  background-size: 1.3rem;
}

.block-trent-courses table th {
  white-space: nowrap;
  border-bottom: 2px solid white;
  font-size: 0.8rem;
}

.block-trent-courses tbody th {
  font-weight: normal;
  vertical-align: top;
}

.block-trent-courses tbody tr {
  border-bottom: 2px solid white;
}

.block-trent-courses table td.col1 {
  white-space: nowrap;
  vertical-align: top;
  background-color: #ddebcf;
}

.course-notification {
  display: none;
  color: red;
  margin: 1em 0;
  font-weight: bold;
}

.block-trent-courses table .ind-req {
  font-size: 0.9rem;
}

.block-trent-courses caption {
  text-transform: uppercase;
  color: #154734;
  caption-side: top;
  font-size: 0.8rem;
  margin-bottom: 0;
  padding-bottom: 0.3rem;
  margin-left: 1rem;
}

.block-trent-courses .course-code {
  display: inline-block;
}
.block-trent-courses .course-code,
.block-trent-courses .course-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}
.course-description {
  vertical-align: top;
}
.course-description p:last-child {
  margin-bottom: 0;
}

/**
 * Campus badges
 */
.course-campus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  font-size: 1.1rem;
  margin-bottom: 0;
}

.block-trent-courses .badge {
  color: #fff;
  text-decoration: none;
  margin-bottom: 5px;
}

.badge-p {
  order: 1;
  background-color: #154734;
}
.badge-d {
  order: 2;
  /* background-color: #5b7f95; */
  background-color: #447388; /* a11y colour */
}
.badge-o {
  background-color: #6f767b;
  order: 3;
}

/**
 * Mobile Treatment
 */
@media (max-width: 768px) {
  .block-trent-courses .badge {
    margin-bottom: 0;
    margin-left: 4px;
  }
  .badge-d .campus-name,
  .badge-p .campus-name {
    display: none;
  }
  .badge-p:before {
    content: "PTBO";
  }
  .badge-d:before {
    content: "Durham";
  }

  .block-trent-courses .table-collapse tbody tr,
  .block-trent-courses .table-collapse tbody th,
  .block-trent-courses .table-collapse tbody td {
    display: block;
  }
  .table-collapse .course-code ul {
    float: right;
  }
  .table-collapse .course-code li {
    display: inline;
  }
  .table-collapse th,
  .table-collapse td {
    padding: 10px 15px;
  }
  .block-trent-courses .table-collapse .course-code {
    margin-bottom: 0;
  }
  .block-trent-courses .course-campus {
    flex-direction: row;
    margin-bottom: 0;
    float: right;
    margin-top: 4px;
  }
  .block-trent-courses .table-collapse td:empty {
    /* hide empty cross-list column */
    display: none;
  }
}
