@import '../../base/style.less';

.iot-grid-all-item-list {
  width: 100%;
  height: auto;
  background-color: #fff;
  // border-bottom: 1px solid #e5e5e57c;

  margin-bottom: 1px;

  .gird-all-item-line {
    width: 100%;
    height: 1px;
    background: #e5e5e57c;
  }

  .gird-all-item-out-line {
    width: 100%;
    height: 1px;
    background: #e5e5e57c;
  }

  .gird-all-item-top {
    display: grid;
    width: 100%;

    .gird-all-item {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: var(--enum-padding);
      text-align: center;
      border-top: 1px solid #e5e5e57c;
      border-right: 1px solid #e5e5e57c;
      background-color: var(--enum-bg-color);

      .text {
        max-width: .7rem;
        color: #999999;
        font-weight: 400;
        font-size: var(--enum-text-font-size);
        font-family: PingFangSC-Regular;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: center;

        &-ellipse {
          max-width: .58rem;
        }
      }

      .item-disabled {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        background: var(--disable-bg-color);
      }

      &-ellipse {
        border: 1px solid #eee;
        border-radius: var(--mini-ellipse-radius);
        padding: var(--mini-ellipse-padding);
        margin: var(--mini-ellipse-card-margin);

      }
    }

    .active-all {
      background-color: var(--enumselect-bg-color);

      .text {
        color: #fff;
        font-size: var(--enum-text-font-size);
      }
    }

    .gird-all-item:last-child {
      border-right: 0 solid #e5e5e57c;
    }

    .gird-all-item-ellipse:last-child {
      border: 1px solid #eee;

    }
    &-ellipse {
      padding: var(--mini-gird-item-padding);
    }
  }

  .gird-ellipse-item-line {
    height: 1px;
    background: #e5e5e57c;
    margin: var(--mini-ellipse-item-margin);
  }

  .icons-ellipse-box {
    width: var(--icon-ellipse-box-width);
    height: var(--icon-ellipse-box-height);
    border-radius: var(--icon-ellipse-box-borderRad);
    background: var(--icon-ellipse-box-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--icon-ellipse-box-marginB);


    .icons-ellipse {
      font-size: 0.28rem;
      color:  var(--icon-ellipse-color);
    }
    &.icon-box-active {
      background: #FFFFFF;
    }
  }
}