@imgSrc: '@/assets/images/mobileConfig/WorkDesign';
.left {
  width: 320px;
  height: 100%;
  background: white;
  .header {
    padding-left: 10px;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #dbdbdb;
  }
  .l-content {
    height: calc(100% - 40px);
    overflow: auto;
    padding-bottom: 10px;
    .item {
      .g-title {
        padding: 10px;
        font-size: 14px;
        font-weight: 700;
      }
      .g-checks {
        padding: 9px 0;
        background: linear-gradient(to top, #F3F3F3, #FFFFFF);
      }
      .g-content {
        padding: 0 10px;
        .group {
          width: 140px;
          height: 80px;
          border-radius: 4px;
          background: url('@{imgSrc}/单栏布局.png');
          background-size: 100% 100%;
        }
      }
    }
    .card {
      width: 100%;
      border-radius: 4px;
      background: #f4f4f4;
      margin-top: 7px;
      padding: 10px;
      position: relative;
      .cardBox {
        width: 100%;
        height: 100%;
        &[widget='OVERVIEW'] {
          height: 50px;
          background: url('@{imgSrc}/card1.png');
          background-size: 100% 100%;
        }
        &[widget='WATER_OVERVIEW'] {
          height: 100px;
          background: url('@{imgSrc}/card2.png');
          background-size: 100% 100%;
        }
        &[widget='WATER_CHART'] {
          height: 130px;
          background: url('@{imgSrc}/card3.png');
          background-size: 100% 100%;
        }
        &[widget='PIPEMONITORING'] {
          height: 200px;
          background: url('@{imgSrc}/card4.png');
          background-size: 100% 100%;
        }
        &[widget='PIPEGATHER'] {
          height: 80px;
          background: url('@{imgSrc}/card5.png');
          background-size: 100% 100%;
        }
        &[widget='PIPEINSPECTION'] {
          height: 160px;
          background: url('@{imgSrc}/card6.png');
          background-size: 100% 100%;
        }
        &[widget='MAINTENANCEORDER'] {
          height: 290px;
          background: url('@{imgSrc}/card7.png');
          background-size: 100% 100%;
        }
        &[widget='OPERATIONAL_OVERVIEW'] {
          height: 110px;
          background: url('@{imgSrc}/card8.png');
          background-size: 100% 100%;
        }
        &[widget='PUMP_STATUS'] {
          height: 120px;
          background: url('@{imgSrc}/card9.png');
          background-size: 100% 100%;
        }
        &[widget='PUMP_MAINTAIN'] {
          height: 130px;
          background: url('@{imgSrc}/card10.png');
          background-size: 100% 100%;
        }
        &[widget='REVENUE_OVERVIEW'] {
          height: 120px;
          background: url('@{imgSrc}/card11.png');
          background-size: 100% 100%;
        }
        &[widget='LARGE_MONITORING'] {
          height: 120px;
          background: url('@{imgSrc}/card12.png');
          background-size: 100% 100%;
        }
      }
      &:hover {
        .swiper {
          height: 25px;
        }
      }
      .cardType {
        position: absolute;
        right: 0;
        top: 0;
        color: white;
        padding: 2px 5px;
        &[type='管理'] {
          border-radius: 4px;
          background: #2291ee;
        }
        &[type='执行'] {
          border-radius: 4px;
          background: #9079FF;
        }
        &[type='运营'] {
          border-radius: 4px;
          background: #26BB9A;
        }
      }
      .swiper {
        overflow: hidden;
        position: absolute;
        transition: all 0.5s;
        color: white;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        height: 0;
        line-height: 25px;
        border-radius: 0 0 4px 4px;
        background: rgba(0, 0, 0, 0.3);
      }
    }
  }
}

.cardGroup {
  padding-left: 10px;
  font-size: 14px;
  margin-top: 3px;
  .g-top {
    display: inline;
    &:hover {
      cursor: pointer;
      color: #1890ff;
    }
  }
  .g-cards {
    overflow: hidden;
  }
}