/**
 * 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';

:host {
  .tb-interval-options-form {
    height: 100%;

    .tb-form-table {
      overflow: hidden;
    }

    .tb-form-table-body {
      overflow-y: auto;
    }

    .tb-form-table-header-cell, .tb-form-table-row-cell {
      &.tb-interval {
        flex: 1 1 30%;
        min-width: calc(30% - 8px);
        @media #{$mat-gt-md} {
          min-width: calc(30% - 12px);
        }
      }
      &.tb-agg-interval {
        flex: 1 1 70%;
        min-width: 70%;
      }
    }

    .tb-form-table-header-cell.tb-agg-interval-header {
      flex: 1 1 35%;
      width: 35%;
    }

    .tb-form-hint {
      flex-shrink: 0;
    }

    ::ng-deep {
      .tb-interval-option {
        display: block;

        .mdc-form-field {
          width: 100%;
        }

        .mdc-label {
          overflow: hidden;
          mat-label {
            display: block;
          }
        }
      }
    }
  }
}

