/**
 * Copyright (c) OpenLens Authors. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */

.TableHead {
  $border: 1px solid var(--tableHeaderBorderColor);

  background-color: var(--tableHeaderBackground);
  border-bottom-width: var(--tableHeaderBorderWidth);
  border-bottom-style: solid;
  border-bottom-color: var(--tableHeaderBorderColor);
  color: var(--tableHeaderColor);
  display: flex;
  flex-shrink: 0;

  &.topLine {
    border-top: $border;
  }

  &.sticky {
    position: -webkit-sticky; // safari
    position: sticky;
    z-index: 1;
    top: 0;
  }

  &.nowrap {
    white-space: nowrap;
  }

  .TableCell {
    display: flex;
    align-items: center;
    word-break: normal;

    &.checkbox {
      > .Checkbox {
        margin: auto;
      }
    }
  }
}
