*,
*:after,
*:before {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.table-component {
  display: flex;
  flex-direction: column;
  margin: 4em 0;
  color: #222;
}

.table-component__filter {
  align-self: flex-end;
  position: relative;
  display: flex;
  cursor: pointer;
  height: 30px;
  border: 1px solid #ccc;
  z-index: 1;
  font-size: 12px;
}

.table-component__filter__field {
  min-width: 300px;
  border: none;
  padding-left: 8px;
  padding-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-component__filter__field:focus {
  outline: none;
}

.table-component__filter__clear {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  color: #222;
  font-weight: bold;
  cursor: pointer;
}

.table-component__table-wrapper {
  overflow-x: auto;
  margin: 1em 0;
  width: 100%;
  border: solid 1px #ddd;
  border-bottom: none;
}

.table-component__table {
  min-width: 100%;
  border-collapse: collapse;
  border-bottom: solid 1px #ddd;
  table-layout: fixed;
  font-size: 12px;
}

.table-component__table__caption {
  position: absolute;
  top: auto;
  left: -10000px;
  overflow: hidden;
  width: 1px;
  height: 1px;
}


.table-component__table th,
.table-component__table td {
  border-top-width: 0;
  border-left-width: 0;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  height: 22px;
  empty-cells: show;
  line-height: 22px;
  padding: 0 4px 0 4px;
  background-color: #fff;
  vertical-align: top;
  overflow: hidden;
  outline-width: 0;
  background-clip: padding-box;
}

.table-component__table th {
  background-color: #f3f3f3;
  color: #222;
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
}

.table-component__table tr > th:last-child, td:last-child {
  border-right: none;
}

.table-component__table a {
  color: #007593;
}

.table-component__message {
  color: #ccc;
  font-style: italic;
}

.table-component__th--sort,
.table-component__th--sort-asc,
.table-component__th--sort-desc {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.table-component__th--sort-asc:after,
.table-component__th--sort-desc:after {
  position: absolute;
  right: -15px;
  color: #5f5f5f;
  font-size: 8px;
  top: -5px;
}

.table-component__th--sort-asc:after {
  content: '\25B2';
}

.table-component__th--sort-desc:after {
  content: '\25BC';
}
