.table-wrapper {
    height: 320px;
    border: 1px solid #C9D1DC;
    overflow: auto;
}

table {
    border-spacing: 0;
}

thead {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
}

tbody {
    font-size: 14px;
}

th,
td {
    padding: 18px 24px;
    white-space: nowrap;
    border-bottom: 1px solid #C9D1DC;
}

tr:last-child td {
    border: none;
}


/*
  STICKY HEADER
  Normal css box-shadow works for the header as it is a single html element
  */

.sticky-header thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f5f5;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}


/*
  STICKY FIRST COLUMN
  Avoid undesirable overlapping shadows by creating a faux shadow on the ::after psudo-element instead of using the css box-shadow property.
  */

.sticky-column th:first-child,
.sticky-column td:first-child {
    position: sticky;
    left: 0;
    background: #f5f5f5;
    border-right: 1px solid #C9D1DC;
}

.sticky-column th:first-child::after,
.sticky-column td:first-child::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 0;
    bottom: -1px;
    width: 5px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.08;
}