@imgSrc: '@/assets/images/mobileConfig/WorkDesign';
.left {
  width: 600px;
  height: 100%;
  background: white;
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #dbdbdb;
    .r-left {
      font-size: 15px;
      padding-right: 5px;
      height: 40px;
      line-height: 40px;
    }
    .r-right {}
  }
  .tabs {
    display: flex;
    margin-top: 10px;
    background: #F5F5F5;
    color: #A5A5A5;
    font-size: 14px;
    font-weight: 500;
    height: 35px;
    line-height: 35px;
    &:hover {
      cursor: pointer;
    }
    .tab {
      flex: 1;
      text-align: center;
      &[active='true'] {
        border-top: 2px solid #0082F0;
        color: #0082F0;
        background: linear-gradient(to bottom, #EEF7FF, #FFFFFF);
      }
    }
  }
  .l-content {
    height: calc(100% - 40px);
    overflow: auto;
    padding-bottom: 10px;
    .item {
      position: relative;
      .g-title {
        padding: 10px;
        font-size: 14px;
        font-weight: 700;
      }
      .search {
        position: absolute;
        right: 10px;
        top: 0;
      }
      .g-checks {
        margin: 10px 0 5px 0;
      }
      .g-content {
        padding: 0 10px;
        .group {
          width: 140px;
          height: 80px;
          border-radius: 4px;
          background: url('@{imgSrc}/单栏布局.png');
          background-size: 100% 100%;
        }
      }
    }
    .card {
      width: 32%;
      height: 150px;
      border-radius: 4px;
      background: #f4f4f4;
      margin-top: 7px;
      margin-left: 0.8%;
      padding: 10px;
      position: relative;
      .box {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        .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: 240px;
            background: url('@{imgSrc}/card7.png');
            background-size: 100% 100%;
          }
          &[widget='OPERATIONAL_OVERVIEW'] {
            height: 90px;
            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: 180px;
            background: url('@{imgSrc}/card12.png');
            background-size: 100% 100%;
          }
          &[widget='OPERATIONSOVERVIEW'] {
            height: 60px;
            background: url('@{imgSrc}/card101.png');
            background-size: 100% 100%;
          }
          &[widget='PIPELINEASSETS'] {
            height: 205px;
            background: url('@{imgSrc}/card102.png');
            background-size: 100% 100%;
          }
          &[widget='PIPELINEASSETSV2'] {
            height: 205px;
            background: url('@{imgSrc}/card102.png');
            background-size: 100% 100%;
          }
          &[widget='PIPELINECOLLECTION'] {
            height: 43px;
            background: url('@{imgSrc}/card103.png');
            background-size: 100% 100%;
          }
          &[widget='INSPECTIONMAINTENANCE'] {
            height: 57px;
            background: url('@{imgSrc}/card104.png');
            background-size: 100% 100%;
          }
          &[widget='EVENTWORKORDER'] {
            height: 46px;
            background: url('@{imgSrc}/card105.png');
            background-size: 100% 100%;
          }
          &[widget='SUBSIDIARYBUSINESSRANKING'] {
            height: 180px;
            background: url('@{imgSrc}/card106.png');
            background-size: 100% 100%;
          }
          &[widget='PRODUCT_OVERVIEW'] {
            height: 80px;
            background: url('@{imgSrc}/生产概览.png');
            background-size: 100% 100%;
          }
          &[widget='WATER_SUPPLY_MONITORING3'] {
            height: 180px;
            background: url('@{imgSrc}/三水厂送水泵房监控.png');
            background-size: 100% 100%;
          }
          &[widget='WATER_SUPPLY_MONITORING4'] {
            height: 180px;
            background: url('@{imgSrc}/四水厂送水泵房监控.png');
            background-size: 100% 100%;
          }
          &[widget='WATER_MONITORING'] {
            height: 80px;
            background: url('@{imgSrc}/水厂监控.png');
            background-size: 100% 100%;
          }
          &[widget='PRESSURE_MONITORING'] {
            height: 160px;
            background: url('@{imgSrc}/压力监控.png');
            background-size: 100% 100%;
          }
          &[widget='ACQUISITION_OVERVIEW'] {
            height: 70px;
            background: url('@{imgSrc}/天等采集总览.png');
            background-size: 100% 100%;
          }
          &[widget='PROJECT_OVERVIEW'] {
            height: 60px;
            background: url('@{imgSrc}/采集工程.png');
            background-size: 100% 100%;
          }
          &[widget='MANAGE_OVERVIEW'] {
            height: 60px;
            background: url('@{imgSrc}/经营概览.png');
            background-size: 100% 100%;
          }
          &[widget='RUIYUN_WATERSTATISTICS'] {
            height: 60px;
            background: url('@{imgSrc}/供水统计.png');
            background-size: 100% 100%;
          }
          &[widget='RUIYUN_SWITCHSTATISTICS'] {
            height: 60px;
            background: url('@{imgSrc}/开关阀统计.png');
            background-size: 100% 100%;
          }
          &[widget='RUIYUN_AREASTATISTICS'] {
            height: 60px;
            background: url('@{imgSrc}/DMA分区统计.png');
            background-size: 100% 100%;
          }
          &[widget='RUIYUN_MAINTAINSTATISTICS'] {
            height: 170px;
            background: url('@{imgSrc}/维修服务统计.png');
            background-size: 100% 100%;
          }
          &[widget='USAGE_STATISTICS'] {
            height: 90px;
            background: url('@{imgSrc}/实用情况统计.png');
            background-size: 100% 100%;
          }
          &[widget='FREQUENCY_ANALYSIS'] {
            height: 180px;
            background: url('@{imgSrc}/使用频次分析.png');
            background-size: 100% 100%;
          }
          &[widget='USAGE_RANKING'] {
            height: 160px;
            background: url('@{imgSrc}/系统使用排名.png');
            background-size: 100% 100%;
          }
        }
      }
      .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: 25px;
        line-height: 25px;
        border-radius: 0 0 4px 4px;
        background: rgba(0, 0, 0, 0.3);
      }
    }
  }
}

.cardGroup {
  font-size: 14px;
  margin-top: 3px;
  .g-top {
    display: inline;
    font-size: 15px;
    &:hover {
      cursor: pointer;
      color: #1890ff;
    }
  }
  .g-cards {
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}