:global .mb-ruler {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  font-size: 12px;
  overflow: hidden;
}

:global .mb-ruler span {
  line-height: 1;
}

:global .mb-ruler .corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #181B24 !important;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #BFBFBF;
}

:global .mb-ruler .corner.active {
  background-color: #181B24 !important;
}

:global .mb-ruler .indicator {
  position: absolute;
  pointer-events: none;
}

:global .mb-ruler .indicator .value {
  position: absolute;
  background: white;
}

:global .mb-ruler .ruler {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

:global .mb-ruler .line {
  position: absolute;
}

:global .mb-ruler .line .action {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

:global .mb-ruler .line .value {
  pointer-events: none;
  transform: scale(0.83);
}

:global .mb-ruler .line .del {
  cursor: pointer;
  padding: 3px 5px;
  visibility: hidden;
}

:global .mb-ruler .line:hover .del {
  visibility: visible;
}

:global .mb-ruler .h-container {
  position: absolute;
}
:global .mb-ruler .v-container {
  position: absolute;
}

:global .mb-ruler .h-container .lines {
  pointer-events: none;
}

:global .mb-ruler .v-container .lines {
  pointer-events: none;
}

:global .mb-ruler .h-container:hover .lines {
  pointer-events: auto;
}

:global .mb-ruler .v-container:hover .lines {
  pointer-events: auto;
}

:global .mb-ruler .h-container {
  left: 20px;
  top: 0;
  width: calc(100% - 20px);
  height: 20px;
  /* border-bottom: 1px solid #DADADC; */
}

:global .mb-ruler .h-container .line {
  height: 100vh;
  top: 0;
  padding-left: 5px;
  border-left: 1px solid #EB5648;
  cursor: ew-resize;
}

:global .mb-ruler .h-container .line .action {
  color: #525E71;
  top: 20px;
  transform: translateX(-24px);
}

:global .mb-ruler .h-container .line .action .value {
  margin-left: 4px;
}

:global .mb-ruler .h-container .indicator {
  top: 0;
  border-left: 1px dashed rgba(235, 86, 72, 0.8);
  height: 100vw;
}

:global .mb-ruler .h-container .indicator .value {
  color: #000;
  margin-left: 2px;
  margin-top: 4px;
}

:global .mb-ruler .v-container {
  top: 20px;
  left: 0;
  width: 20px;
  height: calc(100% - 20px);
  /* border-right: 1px solid #DADADC; */
}

:global .mb-ruler .v-container .line {
  width: 100vw;
  left: 0;
  padding-top: 5px;
  border-top: 1px solid #EB5648;
  cursor: ns-resize;
}

:global .mb-ruler .v-container .line .action {
  color: #525E71;
  left: 20px;
  transform: translateY(-24px);
  flex-direction: column;
}

:global .mb-ruler .v-container .line .action .value {
  margin-top: 4px;
}

:global .mb-ruler .v-container .indicator {
  border-bottom: 1px dashed rgba(235, 86, 72, 0.8);
  width: 100vw;
}

:global .mb-ruler .v-container .indicator .value {
  color: #000;
  margin-left: 2px;
  margin-top: -5px;
  transform-origin: 0 0;
  transform: rotate(-90deg);
}
