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

.collapsible-details-panel {
  height: 100%;

  &__header-closed,
  &__header-open {
    border-bottom: 1px solid var(--border--neutral);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &__header-closed {
    height: 41px;
  }

  &__header-open {
    padding: 8px 16px;
    :global {
      .font-icon {
        margin: 0;
      }
    }
  }

  &__header-right {
    padding-left: 8px;
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
    overflow: hidden;
  }

  &__content {
    height: 100%;
  }

  &__action-icon {
    height: 24px;
    width: 24px;
    color: var(--icon--primary) !important;
  }

  &__action-icon {
    &:hover {
      color: var(--icon--hover) !important;
    }
  }
}

.empty-details-panel {
  &__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    padding: 16px;
  }

  &__details-icon__large {
    width: 56px;
    height: 56px;
    color: var(--color--neutral--150);
  }
}

.dataset-details-panel,
.editor-details-panel,
.empty-details-panel {
  &__icon {
    height: 24px;
    width: 24px;
    color: var(--icon--primary) !important;
  }
}
