* {
  margin: 0;
}

body {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.main canvas {
  display: block;
}

#app {
  display: flex;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.text-center {
  text-align: center;
}

.menu {
  width: 38vw;
  height: 100vh;
  padding-top: 10px;
  overflow-y: auto;
  background-color: rgb(250, 250, 250);
  position: relative;
}

hr {
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
  border-top: 1px solid rgb(200, 200, 200);
}

p {
  font-size: 12px;
  font-weight: 300;
  font-family: 'Courier New', Courier, monospace;
}

.mb-2 {
  margin-bottom: 0.4rem;
}

.red {
  color: red;
}

.green {
  color: green;
}

.main {
  width: calc(100vw - 280px);
}

.slider {
  padding: 6px;
  height: 100%;
  border-left: 1px solid rgb(200, 200, 200);
  border-right: 1px solid rgb(200, 200, 200);
  cursor: col-resize;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHBAMAAADdS/HjAAAAGFBMVEUzMzP///9tbW1QUFCKiopBQUF8fHxfX1/IXlmXAAAAHUlEQVQImWMQEGAQFWUQFmYQF2cQEmIQE2MQEQEACy4BF67hpEwAAAAASUVORK5CYII=");
  background-repeat: no-repeat;
  background-position: center center;
}

.slider:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.main canvas {
  width: 100%;
  height: 100%;
  border: 2px solid rgb(211, 211, 211);
  margin: 10px;
  background-color: rgb(240, 240, 240);
}


.nav-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-item {
  padding: 8px 20px;
  cursor: pointer;
  background-color: rgb(233, 233, 233);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: none;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-left: 4px;
  margin-bottom: -1px;
}

.nav-tabs .nav-item.active {
  background-color: rgb(255, 255, 255);
  border-bottom-color: transparent;
}

.nav-tabs .nav-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-content .nav-pane {
  display: none;
}

.nav-content .nav-pane.active {
  display: block;
}


.accordion .label {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  position: relative;
  cursor: pointer;
}

.accordion .box.disabled .label {
  cursor: initial;
  color: #b4b4b4;
}

.accordion .box.disabled {
  display: none;
}

.accordion .box.done {
  cursor: initial;
  background-color: #76ff66;
}

.accordion .label::before {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}


.accordion .content {
  background-color: white;
  overflow: hidden;
  overflow-y: auto;
  max-height: 0;
  position: relative;
  transition: max-height 0.5s ease;
}

.accordion .content::-webkit-scrollbar {
  display: none;
}

.accordion .box.active .content {
  max-height: 1000px;
  padding: 10px;
}

.accordion .box.active .label::before {
  content: '-';
}

.box table td {
  border: 1px solid rgb(197, 197, 197);
  padding: 2px 4px;
}

.box table thead td {
  font-weight: 600;
}

.box table {
  margin: 10px 4px;
  width: 98%;
  border-collapse: collapse;
}

.d-none {
  display: none;
}

.actions {
  padding: 20px;
  margin-bottom: 10px;
  text-align: end;
  display: flex;
  align-items: center;
  justify-content: end;
}

.actions .btn {
  padding: 8px 20px;
  border-radius: 4px;
  color: white;
  background: #1d7e00;
  box-shadow: 1px 1px 15px 2px rgb(0 0 0 / 20%);
  border: none;
  cursor: pointer;
}

.actions .btn:disabled {
  background: #b3b3b3;
  box-shadow: none;
  cursor: initial;
}


.blink {
  -webkit-animation-name: toggle;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-name: toggle;
  -moz-animation-duration: 1s;
  -moz-animation-timing-function: linear;
  -moz-animation-iteration-count: infinite;
  animation-name: toggle;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes toggle {
  from {
    visibility: hidden;
  }

  50% {
    visibility: hidden;
  }

  to {
    visibility: visible;
  }
}

@-webkit-keyframes toggle {
  from {
    visibility: hidden;
  }

  50% {
    visibility: hidden;
  }

  to {
    visibility: visible;
  }
}

.blink.disabled {
  display: none;
}

.mt-1 {
  margin-top: 5px;
}

.dataTable {
  max-height: 280px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.contextMenu {
  --menu-border: rgba(255, 255, 255, 0.08);
  --menu-bg: linear-gradient(45deg, rgba(10, 20, 28, 0.2) 0%, rgba(10, 20, 28, 0.7) 100%);
  --item-border: rgba(255, 255, 255, 0.1);
  --item-color: #fff;
  --item-bg-hover: rgba(255, 255, 255, 0.1);
  height: 0;
  overflow: hidden;
  background: var(--menu-bg);
  backdrop-filter: blur(5px);
  position: fixed;
  top: var(--top);
  left: var(--left);
  animation: menuAnimation 0.4s 0s both;
  transform-origin: left;
  list-style: none;
  margin: 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 999999999;
  box-shadow: 2px 0px 15px 2px rgba(0, 0, 0, 0.08);
}

.contextMenu-item {
  padding: 4px;
}

.contextMenu-item[data-divider="top"] {
  border-top: 1px solid;
}

.contextMenu-item[data-divider="bottom"] {
  border-bottom: 1px solid;
}

.contextMenu-item[data-divider="top-bottom"] {
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.contextMenu-item[data-divider] {
  border-color: var(--item-border);
}

.contextMenu-button {
  color: var(--item-color);
  background: 0;
  border: 0;
  white-space: nowrap;
  width: 100%;
  border-radius: 4px;
  padding: 6px 24px 6px 7px;
  text-align: left;
  display: flex;
  align-items: center;
  font-size: 14px;
  width: 100%;
  animation: menuItemAnimation 0.2s 0s both;
  font-family: "Inter, sans-serif";
  cursor: pointer;
}

.contextMenu-button:hover {
  background-color: var(--item-bg-hover);
}

.contextMenu[data-theme="light"

] {
  --menu-bg: linear-gradient(45deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.85) 100%);
  --menu-border: rgba(0, 0, 0, 0.08);
  --item-border: rgba(0, 0, 0, 0.1);
  --item-color: #0a141c;
  --item-bg-hover: rgba(10, 20, 28, 0.09);
}

@keyframes menuAnimation {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    height: var(--height);
    opacity: 1;
    border-radius: 8px;
    transform: scale(1);
  }
}

@keyframes menuItemAnimation {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}