@import '../../../base/style.less';
@popupPrefix: iot-power-out;

.@{popupPrefix} {
  width: 100%;
  height: auto;
  overflow: hidden;

  .iot-power {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: var(--card-width-size);
    height: auto;
    margin: var(--card-margin-size);
    padding: var(--card-padding-TD);
    overflow: hidden;
    background: var(--card-bg-color);
    border: var(--card-border);
    border-radius: var(--card-border-radius-size);

    .power-left {
      display: flex;
      flex: var(--card-letf-flex);
      flex-direction: row;
      align-items: center;

      .power-icon {
        display: flex;
        flex: 0 0 var(--icon-width-size);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: var(--icon-width-size);
        height: var(--icon-height-size);
        margin: var(--icon-margin-all);
        background: var(--icon-bg-color);
        border-radius: 50%;

        .power-icon-image {
          display: inline-block;
          width: var(--icon-inside-width);
          height: var(--icon-inside-height);
          color: var(--icon-inside-color);
          font-size: var(--icon-inside-font-size);
        }
      }

      .power-title {
        .power-main {
          display: -webkit-box;
          overflow: hidden;
          color: var(--title-font-color);
          font-weight: var(--title-font-weight);
          font-size: var(--title-font-size);
          font-family: var(--title-font-family);
          line-height: var(--title-font-height);
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        .power-sub {
          display: -webkit-box;
          margin-top: var(--subtitle-margin-Top);
          overflow: hidden;
          color: var(--subtitle-font-color);
          font-size: var(--subtitle-font-size);
          font-family: var(--subtitle-font-family);
          line-height: var(--subtitle-font-height);
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }
      }

    }

    .power-right {
      position: relative;
      display: flex;
      flex: var(--card-right-flex);
      justify-content: flex-end;

      .power-btn-icon {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: var(--power-width-size);
        height: var(--power-height-size);
        margin-right: var(--operation-margin-LR);
        border-radius: 50%;

        .power-btn-image {
          display: inline-block;
          width: var(--power-icon-width);
          height: var(--power-icon-height);
          font-size: var(--power-icon-font-size);
        }
      }

      .power-btn-icon-on {
        color: var(--power-on-color);
        background: var(--power-on-bgcolor);
        border: var(--power-on-border);

      }

      .power-btn-icon-off {
        color: var(--power-off-color);
        background: var(--power-off-bgcolor);
        border: var(--power-off-border);
      }

    }

    .power-disable {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 10;
      width: 100%;
      height: 100%;
      background: var(--disable-bg-color);
      border-radius: var(--card-border-radius-size);
    }

    // .title-wrap{
    //   display: flex;
    //   flex-direction: column;
    //   justify-content: center;
    //   .title{
    //     color: @title-color;
    //     font-size: @title-font-size;
    //   }
    //   .subTitle{
    //     margin-top: 8px;
    //     color: @subtitle-color;
    //     font-size: @subtitle-font-size;
    //   }
    // }
  }
  .foot{
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
}