/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:global {
  div.virtualized-row {
    // div + .virtualized-row adds an extra layer wrt specficity
    min-height: auto;
    display: flex;
    flex-direction: row;

    &:hover,
    &:focus-within {
      .column-buttons {
        opacity: 1;
      }
    }
  }
  .virtualizedTable {
    &__headerContent {
      display: inline-flex;
      align-items: center;
    }

    &__helpIcon {
      display: inline-flex;
    }
  }

  .column-buttons {
    opacity: 0;
  }

  .draggableHeaderContent {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    overflow: hidden;

    &__pipe {
      padding-left: 10px;
      cursor: col-resize;
      color: var(--border--neutral);
    }
  }
  .draggableHeaderInnerText {
    display: flex;
    white-space: nowrap;
    overflow: hidden;

    &--alignRight {
      justify-content: flex-end;
      text-align: right;
      width: 100%;
    }
  }
  .rightAlignedEllipsesText {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: left;
  }

  .maxZIndex {
    z-index: 999;
  }
  .ReactVirtualized__Table__sortableHeaderColumn:focus-visible {
    .headerCell__sorting-icon {
      outline: -webkit-focus-ring-color auto 1px;
    }
  }
  .ReactVirtualized__Table__sortableHeaderIcon {
    height: 20px !important;
    width: 28px !important;
  }
}
