/**
 * 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";
@import '../scss/mixins';

.tb-mobile-page-item-row-component-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tb-mobile-page-item-row-component {
  display: flex;
  gap: 8px;
  align-items: center;
  .mat-mdc-icon-button.mat-mdc-button-base {
    &:not(.tb-drag-handle) {
      @media #{$mat-xs} {
        @include tb-mat-icon-button-size(24);
      }
      @media #{$mat-sm} {
        @include tb-mat-icon-button-size(32);
      }
    }
    &:not(:disabled) {
      .mat-icon {
        color: rgba(0, 0, 0, 0.54);
      }
    }
    &:disabled {
      .mat-icon {
        color: rgba(0, 0, 0, 0.12);
      }
    }
  }
  .tb-form-row {
    flex: 1;
    min-width: 0;
    .tb-mobile-page-item-start-block {
      display: flex;
      align-items: center;
      gap: 0;
      min-width: 0;
    }
    .tb-mobile-page-item-icon-name-block {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }
    .tb-mobile-page-item-input-block {
      display: flex;
      gap: 8px;
      flex: 1;
    }
  }
}

.tb-mobile-page-item-info {
  .mdc-text-field:not(.mdc-text-field--disabled) {
    input.mdc-text-field__input {
      cursor: default;
      &::placeholder {
        color: $tb-primary-color;
      }
      &:-ms-input-placeholder {
        color: $tb-primary-color;
      }
    }
  }
}
