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

.TableHead {
  background-color: var(--tableHeaderBackground);
  border-bottom: 1px solid var(--borderFaintColor);
  color: var(--tableHeaderColor);
  display: flex;
  flex-shrink: 0;
  user-select: none;
  white-space: nowrap;

  &.topLine {
    border-top: 1px solid var(--borderFaintColor);
  }

  &.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;
      }
    }
  }

  &.flat {
    font-weight: 600;
  }
}
