/*
 * 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 {
  // DX-11429 TODO reafactor component to use css modules instead fo global classes

  .existing-form {
    @tab: 20px;

    .divider-header {
      width: 638px;
      left: -1px;
      bottom: -15px;
      position: absolute;
      height: 15px;
      background-color: #f2f2f2;
      border: 1px solid #ccc;
      border-top: none;
    }

    .autocomplete > div > div {
      border-radius: 3px !important;
      border: 1px solid #c1c1c1;
      z-index: 10;
    }

    .autocomplete {
      width: 400px;
      position: relative;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-right: 10px;

      .autocomplete-item {
        display: flex;
        padding: 5px;
        border-bottom: 1px solid #c1c1c1;
        cursor: pointer;

        &:last-child {
          border-bottom: 0;
        }
      }

      .fa {
        right: 10px;
        position: absolute;
        font-size: 18px;
        top: 12px;
      }

      input {
        width: 345px;
        height: 30px;
        outline: none;
        border-radius: 3px;
        border: 1px solid #c1c1c1;
        padding-left: 10px;
        padding-right: 34px;
      }
    }

    .name {
      margin-top: 10px;

      input {
        margin-left: 15px;
        padding-left: 10px;
        width: 300px;
        outline: none;
        height: 30px;
        border-radius: 2px;
        border: 1px solid #afe6ff;
      }
    }
  }
}
