.l-table-fixed-before() {
  &::before {
    z-index: -1;
    background-color: inherit;
  }
}

.l-table-fixed-after() {
  &::after {
    position: absolute;
    top: 0;
    bottom: 0;
    content: "";
    transition: box-shadow .3s;
    pointer-events: none;
    z-index: -2;
  }
}

.l-table-cell-fixed-before-after() {
  .@{prefix}-table__cell--fixed-left-last {
    .l-table-fixed-before();
    .l-table-fixed-after();

    &::after {
      right: 0;
      transform: translateX(100%);
    }
  }

  .@{prefix}-table__cell--fixed-right-first {
    .l-table-fixed-before();
    .l-table-fixed-after();

    &::after {
      left: 0;
      transform: translateX(-100%);
    }
  }
}

.l-table-vertical-align(@pos) {
  &.@{prefix}-vertical-align-@{pos} {
    th,
    td {
      vertical-align: @pos;
    }
  }
}
