/**
 * Copyright © 2016-2023 The Thingsboard Authors
 *
 * 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.
 */

.tb-flot-threshold {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 4px;
  .mat-expansion-panel.tb-settings.tb-flot-threshold-settings {
    box-shadow: none;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    .mat-expansion-panel-header {
      height: 56px;
      border-radius: 0;
      display: flex;
      flex-direction: row;
      align-items: stretch;
      .mat-content {
        overflow: hidden;
      }
      .tb-threshold-header {
        flex: 1;
        display: flex;
        flex-direction: row;
        gap: 16px;
        align-items: center;
        padding-left: 16px;
        overflow: hidden;
        .mat-divider-vertical {
          height: 100%;
        }
      }
      .tb-threshold-text {
        flex: 1;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px;
        letter-spacing: 0.15px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      .mat-expansion-indicator {
        margin-right: 22px;
        margin-left: 22px;
        margin-top: 12px;
      }
    }
    > .mat-expansion-panel-content {
      > .mat-expansion-panel-body {
        padding: 16px !important;
      }
    }
    &.mat-expanded {
      .mat-expansion-panel-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
      }
    }
  }
  > .mdc-icon-button {
    margin-top: 4px;
    color: rgba(0, 0, 0, 0.54);
  }
}
