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

.entity-limit-exceeded-dialog {
  max-width: 100%;
  height: 100%;

  @media #{$mat-gt-xs} {
    max-width: 500px;
    max-height: 80vh;
  }

  position: relative;
  padding: 40px 40px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    color: rgba(0, 0, 0, 0.54);
  }

  .entity-limit-exceeded-bg {
    position: relative;
    width: 100%;
    height: 140px;
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: $tb-primary-color;
      mask-image: url(/assets/entity-limit-reached.svg);
      -webkit-mask-image: url(/assets/entity-limit-reached.svg);
      mask-repeat: no-repeat;
      -webkit-mask-repeat: no-repeat;
      mask-size: contain;
      -webkit-mask-size: contain;
      mask-position: center;
      -webkit-mask-position: center;
    }
  }

  .entity-limit-exceeded-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    color: rgba(0, 0, 0, 0.87);
    text-align: center;
  }

  .entity-limit-exceeded-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .entity-limit-exceeded-text {
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 24px;
      color: rgba(0, 0, 0, 0.76);
      text-align: center;
    }
  }

  .request-entity-limit-increase-sysadmin-prompt {
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.54);
  }

}
