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

.common {
  outline: none;
  background: var(--fill--primary);
  min-height: 42px;
}

.container {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--border--neutral--solid);
  border-radius: var(--dremio--radius--1);
  padding: 4px;
  &:focus-visible {
    outline: none;
  }
}

.item {
  padding-top: var(--dremio--spacing--2);
}

.cursor-placeholder {
  width: 4px;
  justify-content: center;
  padding-top: var(--dremio--spacing--2);
  align-self: stretch;
  cursor: text;
}

.tag-element {
  height: 24px;
}

.tag-element-focused {
  height: 24px;
  outline: -webkit-focus-ring-color auto 1px !important;
}

.tag-wrapper {
  display: inline-flex;
  padding-right: var(--dremio--spacing--05);
}

.input {
  width: 350px;
  border: none;
  flex: 1 1;
  background: transparent;
  min-width: 50px;
  line-height: 18px;
  padding-left: var(--dremio--spacing--05);
  padding-top: var(--dremio--spacing--05);

  &:focus {
    outline: none;
  }
}

.unique-tags-error {
  margin-top: var(--dremio--spacing--05);
  color: var(--fill--danger--solid);
}

.edit-tag {
  padding: 2px;
  padding-right: 0px;
  &:focus-visible {
    outline: none;
  }
}

.edit-tags-icon {
  height: 24px;
  width: 24px;
  padding: 2px;
  cursor: pointer;
  &:focus-visible {
    outline: none;
  }
}

.no-tags {
  width: max-content;
  color: var(--color--neutral--200);
  padding: var(--dremio--spacing--05) var(--dremio--spacing--1);
  font-weight: 400;
  font-size: var(--dremio--font-size--sm);
  line-height: 14px;
  height: 24px;
  border: 1px dashed var(--border--neutral);
  border-radius: var(--dremio--radius--1);
}

.tagSearch {
  min-width: 100px;
  max-width: 300px;
  white-space: nowrap;
}

.icons {
  color: var(--icon--primary);
}
