/**
 * 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.
 */
.tb-status-widget-panel {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  > div:not(.tb-status-widget-overlay), > tb-icon {
    z-index: 1;
  }
  .tb-status-widget-overlay {
    position: absolute;
    inset: 12px;
  }
  > div.tb-status-widget-title-panel {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
  }
  .tb-status-widget-content {
    width: 100%;
    height: 100%;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    .tb-status-widget-icon-container {
      display: flex;
      width: 100%;
      flex-direction: column;
    }
    .tb-status-widget-labels-container {
      display: flex;
      width: 100%;
      flex-direction: column;
      .tb-status-widget-label {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .tb-status-widget-status {
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
    &.default {
      place-content: flex-start space-between;
      align-items: flex-start;
    }
    &.center {
      place-content: center flex-start;
      align-items: center;
      .tb-status-widget-icon-container {
        flex: 1;
        place-content: center;
        align-items: center;
      }
      .tb-status-widget-labels-container {
        flex-direction: column-reverse;
        place-content: center flex-start;
        align-items: center;
      }
    }
    &.icon {
      place-content: center;
      align-items: center;
      .tb-status-widget-icon-container {
        flex: 1;
        place-content: center;
        align-items: center;
      }
      .tb-status-widget-labels-container {
        display: none;
      }
    }
  }
}
