@import './../../var.scss';

.point-view {
  width: 100%;
  height: 100%;

  .point-first-row {
    // height: 350px;
    height: 40%;
    margin: 10px;

    .point-statistics {
      float: left;
      width: 18%;
      height: 100%;
      margin-right: 1%;
      background-color: $content-color;//rgba(51, 51, 51, 1);
      border: 1px solid $core-border-color;//rgba(34, 34, 34, 1);

      .point-statistics-title {
        padding-left: 20px;
        font-size: 18px;
        line-height: 40px;
        color: $biz-table-font-color;
        text-align: left;
        background-color: $biz-title-color;//rgba(40, 40, 40, 1);
      }

      .amos-echarts-container {
        margin-top: -37px;
      }

      .point-statistics-concent {
        padding-left: 10px;
        margin-top: -50px;
        font-size: 18px;
        line-height: 20px;
        color: red;
        text-align: center;

        span {
          font-size: 22px;
          font-weight: bold;
        }
      }
    }

    .point-month-ins {
      float: left;
      width: 38%;
      height: 100%;
      margin-right: 1%;
      background-color: $content-color;//rgba(51, 51, 51, 1);
      border: 1px solid $core-border-color;//rgba(34, 34, 34, 1);

      .point-month-ins-title {
        padding-left: 20px;
        font-size: 18px;
        line-height: 40px;
        color: $biz-table-font-color;
        text-align: left;
        background-color: $biz-title-color;//rgba(40, 40, 40, 1);
      }
    }

    .danger-month-ins {
      float: left;
      width: 38%;
      height: 100%;
      margin-right: 1%;
      background-color: $content-color;//rgba(51, 51, 51, 1);
      border: 1px solid $biz-title-color;//rgba(34, 34, 34, 1);

      .danger-month-ins-title {
        padding-left: 20px;
        font-size: 18px;
        line-height: 40px;
        color: $biz-table-font-color;
        text-align: left;
        background-color: $biz-title-color;//rgba(40, 40, 40, 1);
      }
    }

    .danger-year-ins {
      float: right;
      width: 42%;
      height: 100%;
      margin: 0;
      background-color: $content-color;//rgba(51, 51, 51, 1);
      border: 1px solid $core-border-color;//rgba(34, 34, 34, 1);

      .danger-year-ins-title {
        padding-left: 20px;
        font-size: 18px;
        line-height: 40px;
        color: $biz-table-font-color;
        text-align: left;
        background-color: $biz-title-color;//rgba(40, 40, 40, 1);
      }
    }

    .point-execution-situation {
      float: right;
      width: 42%;
      height: 100%;
      background-color: $content-color;//rgba(51, 51, 51, 1);
      border: 1px solid $core-border-color;//rgba(34, 34, 34, 1);

      .point-execution-situation-title {
        padding-left: 20px;
        font-size: 18px;
        line-height: 40px;
        color: $biz-table-font-color;
        text-align: left;
        background-color: $biz-title-color;//rgba(40, 40, 40, 1);
      }

      .point-list-content {
        height: 86%;
        overflow-y: auto;

        .ant-table-wrapper {
          padding: 10px;

          .ant-spin-nested-loading {
            border: 1px solid $core-border-color;
            border-bottom: 0;
          }
        }

        .ant-table {
          border-radius: 0;
        }

        .ant-table-title {
          display: none;
        }

        .ant-table-content {
          border-color: $core-border-color;

          .ant-table-header {
            & table {
              // margin-right: -17px;
              border: $core-border-color;
            }
          }

          .ant-table-body {
            & table {
              border: $core-border-color;
            }
          }
        }


        .ant-table-thead {
          tr {
            th {
              color: $biz-table-font-color;
              background: $biz-table-title-color;//rgba(40, 40, 40, 1);
              border-color: $core-border-color;
            }
          }
        }

        .ant-table-body {
          tr {
            td {
              color: $biz-table-font-color;
              background: $content-color;//rgba(40, 40, 40, 1);
              border-color: $core-border-color;
            }
          }
        }

        .ant-table-placeholder {
          color: $biz-table-font-color;
          background: $content-color;//rgba(40, 40, 40, 1);
        }

        .highlight-row {
          background: #ecf6fd;
        }

        .ant-pagination-item {
          height: 25px;
          min-width: 25px;
          margin: 5px;
          line-height: 25px;
          background: $core-border-color;//#333;
          border-radius: 6px;

          a {
            color: $biz-table-font-color;
          }
        }

        .ant-pagination-total-text {
          color: $biz-table-font-color;
        }

        .ant-pagination-prev {
          height: 25px;
          min-width: 25px;
          margin: 5px;
          line-height: 25px;
          background: $core-border-color;//#333;
          border-radius: 6px;

          ::after {
            height: 25px;
            line-height: 25px;
            color: $biz-table-font-color;
          }
        }

        .ant-pagination-item-active {
          height: 25px;
          min-width: 25px;
          margin: 5px;
          line-height: 25px;
          background: $core-color;//#151515;
          border-radius: 6px;

          a {
            color: white;
          }
        }

        .ant-pagination-next {
          height: 25px;
          min-width: 25px;
          margin: 5px;
          line-height: 25px;
          background: $core-border-color;//#333;
          border-radius: 6px;

          ::after {
            height: 25px;
            line-height: 25px;
            color: $biz-table-font-color;
          }
        }

        .ant-pagination-options {
          margin-top: 5px;

          .ant-select-selection {
            height: 25px;
            color: $biz-table-font-color;
            background: $biz-title-color;
            border-color: $core-border-color;

            .ant-select-arrow {
              color: $biz-table-font-color;
            }
          }
        }
      }
    }
  }

  .create-device-root {
    width: 100%;
    // height: 100%;
    height: 50%;
    //background-color: rgba(51, 51, 51, 1);
    // margin-top: 15px;

    .create-device-host-top {
      width: 100%;
      height: 40px;
      // margin-top: 10px;
      margin-bottom: 10px;
      background-color: $biz-title-color;//rgba(40, 40, 40, 1);

      .table-title {
        float: left;
        margin: 10px;
        font-size: 18px;
        line-height: 20px;
        color: $biz-table-font-color;
      }

      .table-search {
        float: right;

        .create-device-search-root {
          float: right;
          height: 50px;

          .ant-calendar-picker-icon::after {
            color: $core-color;
          }

          .check-detail-header-goback {
            float: right;
            margin: 10px 10px 0;
            margin-top: 5px;

            button {
              height: 2.5rem;
              background: $content-color;
              border: 1px solid $core-border-color;
              opacity: 1;
            }
          }

          .create-device-search-tab {
            // position: relative;
            // top: 10px;
            // left: 0px;
            width: 140px;
            height: 40px;
            font-size: 15px;
            line-height: 40px;
            color: white;
            text-align: center;
          }

          .ant-select-selection-selected-value {
            color: black;
          }

          .catalog-select {
            float: left;
            margin: 5px 10px 0;

            .ant-select-selection {
              height: 30px;
              background-color: $content-color;//rgba(51, 51, 51, 1);
              border-color: $core-border-color;//rgba(34, 34, 34, 1);
              border-radius: 4px;

              .ant-select-arrow {
                &::before {
                  position: relative;
                  // top: -5px;
                  left: 7px;
                  font-size: 12px;
                  // font-weight: bold;
                  color: $core-color;
                  content: '\E61D';
                  -webkit-transition: -webkit-transform 0.2s ease;
                  // transition: -webkit-transform 0.2s ease;
                  // transition: transform 0.2s ease;
                  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
                }
              }
            }

            .ant-calendar-picker-input {
              &.ant-input {
                height: 30px;
                background-color: $content-color;//rgba(40, 40, 40, 1);;
                border-color: $core-border-color;

                .ant-calendar-range-picker-input {
                  color: $core-color;
                }

                .ant-calendar-range-picker-separator {
                  color: $core-color;
                }
              }
            }
          }

          .search-device {
            float: left;
            margin: 5px 50px 0 10px;

            .ant-input {
              height: 2.5rem;
              padding: 0 0.6rem;
              color: inherit;
              vertical-align: middle;
              border-color: $core-border-color;
              border-radius: 10px;
              border-radius: 4px;
              -webkit-appearance: none;
              color: black;
              background-color: $content-color;//rgba(51, 51, 51, 1);
            }

            img {
              position: absolute;
              // top: 2px;
              // left: 156px;
              margin-top: 3px;
              margin-left: 10px;

              &:hover {
                cursor: pointer;
              }
            }
          }
        }
      }
    }

    .create-device-host-bottom {
      width: 100%;
      // height: calc(100% - 50px);
      height: 86%;
      padding-right: 10px;
      padding-left: 10px;

      .create-device-host-left {
        position: relative;
        z-index: 99999;
        float: left;
        width: 300px;
        // height: 100%;
        margin-right: 10px;
        background-color: $content-color;//rgba(51, 51, 51, 1);
        border: 1px solid $core-border-color;

        .ant-fullcalendar-content {
          padding-bottom: 5px;
        }

        .amos-badge-dot {
          margin: auto;
        }

        .ant-fullcalendar-header {
          padding: 16px 16px 22px 12px;
          background: $biz-title-color;

          .select-scroll-wrapper {
            top: -10px;
            right: 5px;
            float: left;
            width: 35%;

            .ant-select-selection {
              color: $biz-table-font-color;
              background-color: $biz-title-color;//rgba(40, 40, 40, 1);;
              border-color: $core-border-color;

              .ant-select-arrow {
                &::before {
                  color: $core-color;
                }
              }
            }
          }

          .ant-radio-group {
            display: none;
          }
        }

        .ant-fullcalendar {
          //border-top: 1px solid #222;
          td {
            height: 40px;
          }

          &.ant-fullcalendar-full {
            .ant-fullcalendar-calendar-body {
              .ant-fullcalendar-table {
                color: $biz-table-font-color;

                thead > tr > th {
                  line-height: 40px;
                  color: white;
                  background: $core-color;
                  border: 1px solid $core-border-color;
                }

                .ant-fullcalendar-tbody {
                  tr {
                    .ant-fullcalendar-cell {
                      color: $biz-table-font-color;
                      background: $biz-title-color;
                      border: 1px solid $core-border-color;//rgb(119, 118, 118);

                      &:hover {
                        background: $core-color;
                      }

                      &.ant-fullcalendar-selected-day {
                        background: $core-color;

                        .ant-fullcalendar-value {
                          background: transparent;
                        }
                      }

                      .ant-fullcalendar-value {
                        color: $biz-table-font-color;

                        &:active {
                          background: transparent;
                        }

                        &:hover {
                          background: transparent;
                        }
                      }

                      &.ant-fullcalendar-last-month-cell {
                        background-color: $content-color;//rgba(40, 40, 40, 1);;

                        .ant-fullcalendar-value {
                          color: $biz-table-font-color;
                        }
                      }

                      &.ant-fullcalendar-next-month-btn-day {
                        background-color: $content-color;//rgba(40, 40, 40, 1);;

                        .ant-fullcalendar-value {
                          color: $biz-table-font-color;
                        }
                      }

                      &.ant-fullcalendar-today {
                        &.ant-fullcalendar-selected-day {
                          // background: #194a74;

                          .ant-fullcalendar-value {
                            color: $biz-table-font-color;
                            background: transparent;
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }

      .device-list-content {
        // height: calc(100% - 100px);
        height: 100%;
        // overflow-y: auto;

        .grid-content {
          height: 100%;

          .other-table-bar {
            height: 100%;

            .ant-table-wrapper {
              height: 100%;

              .ant-spin-nested-loading {
                height: 100%;

                .ant-spin-container {
                  height: 100%;
                  // border: 1px solid $core-border-color;

                  .ant-table {
                    border-radius: 0;

                    &.ant-table-middle {
                      &.ant-table-middle {
                        &.ant-table-bordered {
                          &.ant-table-fixed-header {
                            &.ant-table-scroll-position-left {
                              height: 80%;

                              .ant-table-content {
                                height: 100%;

                                .ant-table-scroll {
                                  height: 100%;

                                  .ant-table-body {
                                    height: 80%;
                                    background-color: $content-color;//rgba(40, 40, 40, 1);;
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }

                  .ant-pagination {
                    margin: 0;

                    .ant-pagination-item {
                      height: 25px;
                      min-width: 25px;
                      margin: 5px;
                      line-height: 25px;
                      background: $core-border-color;//#333;
                      border-radius: 6px;

                      a {
                        color: $biz-table-font-color;
                      }
                    }

                    .ant-pagination-total-text {
                      color: $biz-table-font-color;
                    }

                    .ant-pagination-prev {
                      height: 25px;
                      min-width: 25px;
                      margin: 5px;
                      background-color: $core-border-color;//rgba(40, 40, 40, 1);;

                      ::after {
                        height: 25px;
                        line-height: 25px;
                        color: $biz-table-font-color;
                      }
                    }

                    .ant-pagination-item-active {
                      height: 25px;
                      min-width: 25px;
                      margin: 5px;
                      line-height: 25px;
                      background: $core-color;//#151515;
                      border-radius: 6px;

                      a {
                        color: white;
                      }
                    }

                    .ant-pagination-next {
                      height: 25px;
                      min-width: 25px;
                      margin: 5px;
                      line-height: 25px;
                      background-color: $core-border-color;//rgba(40, 40, 40, 1);;

                      ::after {
                        height: 25px;
                        line-height: 25px;
                        color: $biz-table-font-color;
                      }
                    }

                    .ant-pagination-options {
                      margin-top: 5px;

                      .ant-select-selection {
                        height: 25px;
                        color: $biz-table-font-color;
                        background-color: $core-border-color;//rgba(40, 40, 40, 1);;
                        border-color: $core-border-color;

                        .ant-select-arrow {
                          color: $biz-table-font-color;
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }

        .ant-table-title {
          display: none;
        }

        .ant-table-header {
          border-top: 1px solid $core-border-color;
          border-left: 1px solid $core-border-color;

          table {
            border: #252525;
          }

          .ant-table-thead {
            tr {
              th {
                color: $biz-table-font-color;
                background-color: $biz-table-title-color;//rgba(40, 40, 40, 1);
                border-color: $core-border-color;
              }
            }
          }
        }

        .ant-table-body {
          border-left: 1px solid $core-border-color;

          table {
            border: 0 solid #e9e9e9;
          }

          tr {
            td {
              color: $biz-table-font-color;
              background-color: $content-color;//rgba(40, 40, 40, 1);
              border-color: $core-border-color;
            }
          }
        }

        .ant-table-placeholder {
          color: $biz-table-font-color;
          background-color: $content-color;//rgba(40, 40, 40, 1);
        }

        .highlight-row {
          background: #ecf6fd;
        }
      }
    }
  }
  background-color: $content-color;//rgba(34, 34, 34, 1);

  .catalog-select-multiple {
      float: left;
      margin: 5px 10px 0;
      .amos-multi-select{
        width: 360px !important;
      }
  }
}
