/**
 * Copyright © 2016-2026 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.
 */
@import '../../../../../../../../../scss/constants';

.tb-form-table-row.tb-axis-row {

  .tb-axis-id-field {
    color: rgba(0, 0, 0, 0.76);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.2px;
    width: 60px;
    min-width: 60px;
  }

  .tb-label-field {
    flex: 1 1 60%;
    min-width: 100px;
  }

  .tb-position-field {
    flex: 1;
    min-width: 60px;
    @media #{$mat-gt-md} {
      flex: 1 1 40%;
    }
  }

  .tb-units-field, .tb-decimals-field, .tb-min-field, .tb-max-field {
    display: flex;
    flex-direction: row;
    place-content: center;
    align-items: center;
  }

  .tb-units-field {
    width: 80px;
    min-width: 80px;
  }

  .tb-decimals-field {
    width: 60px;
    min-width: 60px;
  }

  .tb-min-field, .tb-max-field {
    width: 80px;
    min-width: 80px;
  }

  .tb-show-field {
    width: 40px;
    min-width: 40px;
  }

  .tb-label-field {
    display: none;
    @media #{$mat-gt-md} {
      display: block;
    }
  }

  .tb-units-field, .tb-decimals-field {
    display: none;
    @media #{$mat-gt-md} {
      display: flex;
    }
  }

  .tb-min-field, .tb-max-field {
    display: none;
    @media #{$mat-gt-xs} {
      display: flex;
    }
  }

  .tb-remove-button {
    width: 40px;
    min-width: 40px;
  }
}
