/**
 * @file
 * Data tables (core/views tables get the "table" class in imtm.theme).
 */

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--imtm-color-text);
  vertical-align: top;
  border-color: #dee2e6;
}

.table--caption-top {
  caption-side: top;
}

.table caption {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--imtm-color-secondary);
}

.table th,
.table td {
  padding: 1rem;
}

.table th {
  background-color: var(--imtm-color-white);
}

.table td {
  vertical-align: middle;
}

.table thead th {
  border-bottom: 2px solid var(--imtm-color-blue);
}

.table tbody tr:nth-of-type(odd) > * {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.05);
}

.table a {
  color: var(--imtm-color-secondary);
  text-decoration: underline;
}

.table a:hover {
  color: var(--imtm-color-text);
}

/* Wide tables scroll horizontally inside their own box below desktop
   width (position: relative keeps absolutely positioned helpers inside). */
@media (max-width: 991.98px) {
  .table {
    position: relative;
    display: block;
    overflow-x: auto;
  }
}
