/*
 * Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/)
 *
 * 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.
 */

.section {
  margin: 5px 0;
}

.section .section-title {
  display: flex;
  align-items: baseline;
}

.section .section-expand-button {
  font-size: smaller;
  text-transform: uppercase;
  margin-left: 15px;
}

.section .section-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 5px 0;
}

.section .section-content .properties {
  flex: 0 0 auto;
}

.section .section-content .previews {
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
  flex: 1 0 auto;
}

.remove {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 5px 0;
}

.form-item {
  display: flex;
  align-items: center;
}

.form-item .title {
  min-width: 125px;
  margin-right: 5px;
  text-align: right;
}

.form-item .title.extended {
  min-width: 225px;
}

.form-item .title::after {
  content: ':';
}

.form-item.flex .control {
  flex: 1;
}

.form-item-container {
  display: flex;
  flex-direction: column;
  margin: 5px 0;
}

.form-item-divider {
  margin: 5px 0;
}

.form-item-container .error-container {
  display: none;
}

.form-item-container .error-container .title {
  opacity: 0;
}

.form-item-container .error-container .error-description {
  flex: 1;
  font-size: smaller;
}

.form-item-container.error .error-container {
  display: flex;
}

.form-item-container.hidden:not(.error),
.form-item-divider.hidden {
  display: none;
}
