@import "~@/assets/style/scrollbar.less";
@import "./rem.less";
.container {
  width: 100%;
  height: 100%;
  position: relative;

  :global {
    .l7-control-draw {
      display: none;
    }
    .ant-spin {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      z-index: 10;
      background: rgba(255, 255, 255, 0.7);

      .ant-spin-dot {
        position: absolute;
        margin-top: 30%;
      }
    }
  }
  .mapBox {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .map {
    width: 100%;
    position: relative;
    z-index: 0;
    flex: 1;
  }

  .control {
    position: absolute;
    left: ~`rem("20px") `;
    bottom: ~`rem("60px") `;

    ul {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-direction: row;

      li {
        margin-right: ~`rem("10px") `;

        img {
          margin-right: ~`rem("5px") `;
        }
      }

      &.road {
        li {
          display: flex;
          align-items: center;
          margin-right: ~`rem("10px") `;

          span:first-child {
            width: ~`rem("19px") `;
            height: ~`rem("6px") `;
            display: inline-block;
            border-radius: ~`rem("2px") `;
            margin-right: ~`rem("5px") `;
          }

          &.permit {
            span:first-child {
              background: #c9e5d6;
              border: ~`rem("1px") ` solid #419973;
            }
          }

          &.normal {
            span:first-child {
              background: #419973;
            }
          }

          &.deviate {
            span:first-child {
              background: #f65252;
            }
          }
        }
      }
    }
  }
}
.listContainer {
  padding: 16px;
  //   border-radius: ~`rem("10px") `;
  position: relative;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  //   width: ~`rem("400px") `;
  .closeButton {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    &:hover {
      color: #fff;
    }
  }
  .scrollbar();
  .hd {
    font-size: ~`rem("24px") `;
    color: #000;
    line-height: ~`rem("40px") `;
    margin-left: ~`rem("5px") `;
    text-align: left;
  }
  .table {
    background: none;
  }
  //   :global {
  //     .ant-table-fixed-header .ant-table-scroll .ant-table-header {
  //       //   background-color: transparent;
  //       //   border-color: transparent;
  //       &::-webkit-scrollbar {
  //         border: none;
  //         background: none;
  //       }
  //     }

  //     .ant-table {
  //       background: transparent;
  //       color: #fff;
  //       font-size: 12px;
  //       width: auto;
  //       .ant-table-hide-scrollbar {
  //         overflow: hidden !important;
  //         margin-bottom: ~`rem("0px") ` !important;
  //       }
  //       th,
  //       td {
  //         border: none;
  //         background: transparent;
  //       }
  //       .ant-table-header,
  //       .ant-table-thead {
  //         background: transparent;
  //         border: none;

  //         &::-webkit-scrollbar {
  //           border: none;
  //         }

  //         th {
  //           background: transparent;
  //           border: none;
  //           color: #fff;
  //         }
  //       }
  //       .ant-table-fixed-left table,
  //       .ant-table-fixed-right table {
  //         background: #30344a;
  //         border: none;
  //       }
  //       .ant-table-body {
  //         background: transparent !important;
  //         .scrollbar();

  //         td {
  //           border: none;
  //         }
  //       }

  //       .ant-table-placeholder {
  //         background: transparent;
  //         border: none;

  //         p {
  //           color: #fff;
  //         }
  //       }
  //     }
  //   }
}

.areaName {
  width: 100% !important;
  margin-bottom: ~`rem("10px") ` !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  .download {
    cursor: pointer;
  }
}
.areaPickContainer {
  text-align: left;
  .areaPick {
    height: ~`rem("40px") ` !important;
    line-height: ~`rem("38px") ` !important;
    color: #33364c !important;
    border: ~`rem("1px") ` solid #cccccc !important;
    border-radius: ~`rem("5px") ` !important;
    font-size: ~`rem("18px") ` !important;
    display: block;
  }
  .areaDraw {
    height: ~`rem("40px") ` !important;
    line-height: ~`rem("38px") ` !important;
    color: #33364c !important;
    font-size: ~`rem("18px") ` !important;
    display: block;
    text-align: left;
  }
}
.savetoArea,
.savetoAreaCancel {
  height: ~`rem("40px") ` !important;
  line-height: ~`rem("38px") ` !important;
  border: ~`rem("1px") ` solid #cccccc !important;
  border-radius: ~`rem("5px") ` !important;
  font-size: ~`rem("18px") ` !important;
  margin-right: 5px;
}
.userAreaList {
  background: #fff;
  text-align: left;
  border-radius: ~`rem("5px") ` !important;
  border: ~`rem("1px") ` solid #cccccc !important;
  margin-top: 10px;
  max-height: 200px;
  overflow: auto;
}
.userAreaListItem {
  line-height: 40px;
  padding: 0 10px;
  border-top: 1px solid #ccc;
  position: relative;
  // margin-top: 10px;
}
.userAreaListItemLabel {
  border: none !important;
}
.userAreaListItemIcon {
  position: absolute;
  top: 13px;
  right: 15px;
  color: #999;
  display: none;
  cursor: pointer;
  z-index: 100;
}
.userAreaListItem:hover {
  background-color: #bbb;
  .userAreaListItemIcon {
    display: inline-block;
    color: #fff;
  }
}
.areaName,
.areaDraw {
  // 选择框样式调整
  :global {
    .ant-select {
      z-index: 0 !important;
      color: #33364c !important;
      width: 100% !important;
      border: ~`rem("1px") ` solid #cccccc !important;
      border-radius: ~`rem("5px") ` !important;

      .ant-select-selector {
        height: 100%;
        background: #fff;
        padding: 0;
        z-index: 0;
        border: none !important;
        font-size: ~`rem("18px") `;
        padding: 0 10px;
        background: #fff !important;
        .ant-select-selection-search {
          left: 0;
          width: 100%;
        }

        .ant-select-selection-item {
          width: 100%;
          line-height: ~`rem("40px") `;
          text-align: left;
        }
      }

      .ant-select-arrow {
        z-index: 1;

        & > span {
          position: absolute;
          left: 50%;
          top: 60%;
          transform: translate(-50%, -50%);
        }
      }
    }
  }

  img {
    width: ~`rem("40px") `;
    height: ~`rem("40px") `;
  }
}

.timeline {
  width: 100%;
  height: ~`rem("50px") `;
  // position: absolute;
  // bottom: ~`rem("0px")`;
  // left:0;
  overflow: hidden;
  background: #fff;
  display: flex;
  border-top: ~`rem("1px") ` solid rgba(20, 23, 49, 0.85);
  :global {
    .ant-slider-with-marks,
    .ant-slider-with-marks:hover {
      background: #fff !important;
    }
    .ant-slider-with-marks {
      user-select: none;
      .ant-slider-track,
      .ant-slider-rail,
      .ant-slider-step {
        height: ~`rem("50px") `;
        border-radius: 0;
      }
      .ant-slider-rail {
        background: transparent !important;
      }
      .ant-slider-rail:hover {
        background: transparent !important;
      }
      .ant-slider-step:hover {
        background: transparent !important;
      }
      .ant-slider-dot {
        height: ~`rem("8px") `;
        margin: 0;
        top: auto;
        bottom: 0;
        border-radius: 0;
        width: ~`rem("1px") `;
        background: #30344a;
        border: none;
      }
      .ant-slider-mark-text {
        line-height: 1;
        font-size: ~`rem("12px") `;
        color: #30344a;
      }
      .ant-slider-track {
        background-color: #eee !important;
      }
      .ant-slider-handle:focus {
        border: none;
        outline: none;
        box-shadow: none;
      }
    }
    .ant-slider-handle.ant-tooltip-open {
      height: ~`rem("50px") `;
      width: ~`rem("20px") `;
      background-image: url(/slider-marker.png);
      background-size: auto 100%;
      border: none !important;
      background-repeat: no-repeat;
      border-radius: 0;
      margin-top: ~`rem("0px") `;
      margin-left: ~`rem("5px") `;
      background-color: transparent;
      z-index: 3;
    }

    .ant-slider {
      padding: 0;
      margin: 0;
    }
  }
}
.playBtn {
  height: ~`rem("20px") `;
  margin-top: ~`rem("10px") `;
  margin: 0 auto;
  display: block;
}
.playBtnContainer {
  width: ~`rem("80px") `;
  padding-top: ~`rem("15px") `;
  border-left: ~`rem("1px") ` solid #ccc;
  cursor: pointer;
  background: #dedede;
}
