/*
 * 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.
 */

.dataset-item-header {
  display: flex;
  align-items: center;
  margin-right: 10px;
  width: 80%;
  &-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  &-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-left: var(--dremio--spacing--05);
    font-weight: 600;
    color: var(--text--primary);
  }
  &-icon {
    inline-size: 32px;
    block-size: 32px;
    min-width: 32px;
  }
  &-reflection {
    block-size: 16px;
    min-width: 16px;
    margin-right: var(--dremio--spacing--1);
    margin-left: var(--dremio--spacing--05);
  }
  &-empty-icon {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    background-color: var(--fill--secondary);
  }
  &-action {
    &-container {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      width: 12.5%;
      :global {
        .dremio-icon-button {
          padding: 0;
          width: 20px;
        }
      }
    }
    &-icon {
      block-size: 24px;
      min-width: 24px;
    }
  }
  &-disable-action-buttons {
    pointer-events: none;

    dremio-icon {
      color: var(--icon--disabled);
    }
  }
}
