.select-wrapper-group-container {
  display: flex;
  justify-content: space-between;
  color: #2A3E61;

  .common-select-container {
    width: 50%;
    border: 1px solid #E2E6ED;
    border-radius: 3px;

    &:not(:last-child) {
      margin-right: 16px;
    }

    .sel-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 36px;
      line-height: 36px;
      background: #F0F2F5;
      padding-left: 12px;
      padding-right: 12px;
      border-bottom: 1px solid #E2E6ED;

      .sel-btn-group {
        font-size: 12px;

        .btn {
          color: #2A87EB;
          height: 16px;
          line-height: 16px;
          margin-left: 16px;
          cursor: pointer;
        }
      }
    }

    .sel-body {
      padding-top: 4px;
      padding-bottom: 4px;

      .ant-checkbox-group {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;

        &::-webkit-scrollbar {
          width: 6px;
          height: 0;
          background: transparent;
        }

        &::-webkit-scrollbar-thumb {
          /*滚动条里面小方块*/
          background: #dedede;
          border-radius: 10px;
        }

        &::-webkit-scrollbar-track {
          /*滚动条里面轨道*/
          display: none;
        }

        .checkbox-container {
          height: 32px;
          line-height: 32px;

          .ant-checkbox-wrapper {
            padding-left: 12px;
            width: 100%;
            color: #2A3E61;
          }

          .ant-checkbox-wrapper-checked {
            background: #F0F2F5;
            color: #2A87EB;
          }
          &.combine-chart-select {
            display: flex;
            justify-content: space-between;
            .ant-checkbox-wrapper {
              flex: 1;
            }
            .combine-chart-item {
              padding: 0 7px;
              background-color: #ebf2ff;
              color: #666;
              cursor: pointer;
            }
          }
        }
      }
    }
  }

  &.single-mode {
    .common-select-container {
      width: 100%;
    }
  }
}

.statics-modal {
  .ant-modal-content {
    position: relative;

    .ant-modal-header {
      position: relative;
      border: none;
      padding: 0;

      &::after {
        content: " ";
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        height: 1px;
        width: calc(100% - 32px);
        margin-left: 16px;
        border-bottom: 1px solid #e2e6ed;
        color: #eee;
      }

      .ant-modal-title {
        font-size: 20px;
        font-weight: 700;
        padding: 20px;
        color: #2A3E61;
        .dialog-title {
          padding: 0 !important;
        }
      }
    }

    .ant-modal-body {
      padding: 16px;
      max-height: calc(100vh - 150px) !important;
      overflow-y: auto;
    }

    .ant-modal-footer {
      border: none;
      position: relative;
      padding: 16px;

      &::after {
        content: " ";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        height: 1px;
        width: calc(100% - 32px);
        margin-left: 16px;
        border-top: 1px solid #e2e6ed;
        color: #eee;
      }

      .statics-footer {
        display: flex;
        justify-content: space-between;

        .ant-btn {
          border-radius: 5px;
        }
      }
    }

    .tools-select {
      margin-bottom: 15px;

      .tools-label {
        text-align: right;
        padding-right: 15px;
        line-height: 32px;
        color: #2A3E61;
      }
    }

    .tools-area {
      margin-top: 4px;

      .tools-label {
        text-align: right;
        padding-right: 15px;
        color: #2A3E61;
      }

      .ant-radio-wrapper {
        span.ant-radio+* {
          color: #2A3E61;
        }
      }
    }

    .static-data-area {
      margin-top: 16px;
      display: block;

      .tools-label {
        width: 100%;
        text-align: left;
        padding-right: 15px;
        color: #2A3E61;
      }

      .ant-radio-wrapper {
        margin-top: 12px;

        span.ant-radio+* {
          color: #2A3E61;
        }
      }
    }

    .tools-set-default {
      background: #E8F3FF;
      border: 1px solid #2A87EB;
      border-radius: 5px;
      color: #2A87EB;
    }

    .tools-reset-default {
      color: #2A3E61;
    }

    .abc-setting-item {
      color: #2A3E61;

      .tools-label {
        text-align: left !important;
        height: 32px;
        line-height: 32px;
      }

      margin-bottom: 15px;

      .abc-setting-item-radio {
        height: 32px;
        line-height: 32px;
      }
    }

    .mg-top15 {
      margin-top: 15px;

      .ant-checkbox-wrapper {
        color: #2A3E61;
      }
    }

    .abc-type-setting {
      display: flex;
      white-space: nowrap;
      line-height: 32px;
      align-items: center;

      .edit-item-wrapper {
        width: 50px;
        height: 25px;
        margin: 0 5px;

        .ant-input-number {
          width: 50px;
          height: 25px;

          .ant-input-number-input-wrap {
            height: 25px;
            line-height: 25px;

            .ant-input-number-input {
              height: 25px;
            }
          }
        }
      }

      .manual-type {
        display: inline-block;
        width: 80px;
      }

      .ant-input-number {
        height: 24px;

        .ant-input-number-input {
          height: 22px;
        }
      }
    }

    .chart-type-icon {
      padding: 8px;
    }

    .chart-type-label {
      font-size: 14px;
      color: #2A3E61;
      font-weight: 400;
      margin-bottom: 16px;
    }

    .chart-type-icon-group {
      height: 60px;
      background: #FFFFFF;
      border-radius: 5px;
      display: flex;
      margin-bottom: 16px;
      overflow: hidden;
      justify-content: space-evenly;
      width: 100%;
      overflow: auto;

      .chart-type-icon-box {
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2A3E61;
        cursor: pointer;
        padding-bottom: 10px;
      }

      .chart-type-active {
        background: #e6f7ff;
        color: #2A87EB !important;
      }
    }

    .export-unit-data {
      text-align: center;

      .totalnum {
        margin-right: 20px;
      }
    }
  }
}

.select-content-container {
  margin-top: 16px;

  .sel-content-top {
    color: #2A3E61;
  }

  .sel-content-body {
    padding-top: 12px;
    padding-bottom: 12px;

    .ant-checkbox-group {
      display: flex;
      justify-content: flex-start;

      .ant-checkbox-wrapper {
        margin-left: 16px;

        &:first-child {
          margin-left: 0;
        }

        .ant-checkbox {
          display: none;
        }

        span {
          padding: 0;
        }

        .sel-content-item-container {
          display: flex;
          flex-direction: column;
          align-items: center;

          .sel-title {
            color: #2A3E61;
            opacity: 0.8;
            font-size: 12px;
            margin-top: 5px;
          }

          .icon-container {
            width: 46px;
            height: 46px;
            border: 1px solid #E2E6ED;
            border-radius: 3px;
            display: flex;
            justify-content: center;
            align-items: center;

            svg.icon {
              font-size: 30px;
              top: 0;
            }
          }
        }
      }

      .ant-checkbox-wrapper.ant-checkbox-wrapper-checked {
        .icon-container {
          border: 2px solid #2A87EB;
        }
      }

      .ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {
        .sel-content-item-container {
          opacity: 0.4;
        }
      }
    }
  }
}

@media screen and (max-width:768px) {
  .statics-modal {
    .ant-drawer-content-wrapper {
      .ant-drawer-content {
        .ant-drawer-wrapper-body {
          .ant-drawer-body {
            padding-left: 16px;
            padding-right: 16px;

            .select-wrapper-group-container {
              margin-top: 12px;

              .common-select-container {
                .sel-top {
                  font-display: flex;
                  flex-direction: column;
                  align-items: flex-start;
                  height: 52px;
                  line-height: unset;
                  justify-content: center;

                  .sel-btn-group {
                    .btn:first-child {
                      margin-left: 0;
                    }
                  }
                }
              }
            }

            .select-content-container {
              .sel-content-body {
                .ant-checkbox-group {
                  flex-wrap: wrap;

                  .ant-checkbox-wrapper {
                    margin-bottom: 12px;
                  }

                  .ant-checkbox-wrapper:first-child {
                    margin-left: 16px;
                  }
                }
              }
            }

            .tools-area {
              display: flex;
              align-items: flex-start;
              justify-content: flex-start;
              flex-direction: column;

              .ant-col-20 {
                margin-left: 16px;
                padding-top: 12px;
                padding-bottom: 12px;
              }
            }
          }

          .ant-drawer-footer {
            .statics-footer {
              display: flex;
              justify-content: space-between;
              align-items: center;

              >div {
                .ant-btn {
                  margin-left: 8px;
                }
              }
            }
          }
        }
      }
    }
  }
}