/*
 * 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.
 */
@import "~#oss/uiTheme/less/mixins.less";
:global {
  // DX-11429 TODO reafactor component to use css modules instead fo global classes

  .dataset-warning {
    background-color: #fee799;
    font-size: 12px;
    width: 100%;
    position: relative;
    padding: 10px 10px 10px 40px;

    &::before {
      position: absolute;
      top: 2px;
      left: 5px;
      font-size: 32px;
      color: #fc8007;
    }

    .dependent-datasets {
      margin-top: 10px;

      .and-more {
        color: #1180ff;
        cursor: pointer;
      }
    }
  }

  .update-dataset-small {
    min-width: 670px;
    min-height: 200px;
  }

  .update-dataset-smallest {
    min-width: 435px;
    min-height: 105px;
  }

  .update-dataset {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--fill--primary);

    .error-message-updateDataset {
      position: absolute;
      width: 100%;
    }

    .update-dataset-content {
      margin: 15px 15px 0 15px;

      .remove-question {
        font-size: 14px;
      }
      .property {
        label {
          display: block;
          margin-bottom: 0;
        }

        input,
        .treeview {
          border: 1px solid #a3e2ff;
          border-radius: 3px;
          display: block;
          box-shadow: none;
          outline: none;
          width: 600px;
        }

        input {
          height: 30px;
          padding: 5px;
        }

        .treeview {
          height: 200px;
        }
      }

      .name {
        margin-bottom: 15px;
      }

      .location {
        margin-bottom: 5px;
      }

      .selected-location {
        color: #808080;
      }
    }

    .graphLink {
      &:hover {
        .gray-icon-hover();
      }
    }
  }
}
