#ap-cell-counter-container .cell-counter-section-title {
  font-weight: bold;
  font-size: 0.9em;
  margin: 0.8em 0;
}

#ap-cell-counter-container #markers {
  display: flex;
  gap: 0.3em;
}

#ap-cell-counter-container .markers-table {
  background-color: #212427;
  border-radius: 3px;
  font-size: 0.8em;
  width: 50%;
}

#ap-cell-counter-container .markers-table .markers-table-header {
  padding: 0.4em 0.25em;
  margin: 0.2em 0.5em;
  border-bottom: 1px solid #4d5357;
  height: 1.5em;
}

#ap-cell-counter-container .markers-table .markers-table-header.available-markers-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ap-cell-counter-container .markers-table .markers-table-header.available-markers-table-header #new-marker-button.marker-button {
  background-image: url("../../../assets/buttons/plus.svg");
  width: 1em;
  height: 1em;
  background-repeat: no-repeat;
  background-size: 0.8em;
  background-position: center;
  filter: invert(80%);
  transition: filter 0.2s;
  cursor: pointer;
}

#ap-cell-counter-container .markers-table .markers-table-header.available-markers-table-header #new-marker-button.marker-button.disabled {
  opacity: 0.7;
  pointer-events: none;
}

#ap-cell-counter-container .markers-table .markers-table-header #available-markers-header #new-marker-button.marker-button:hover {
  filter: invert(100%);
  transition: filter 0.2s;
}

#ap-cell-counter-container .markers-table #markers-entries {
  overflow-y: auto;
  height: 10.5em;
}

#ap-cell-counter-container .markers-section .marker .update-marker-colors {
  position: absolute;
  top: 1.8em;
  width: fit-content;
  padding: 0.2em 0.5em;
  z-index: 1;
  height: 1.5em;
  background-color: #2e353a;
  border-radius: 5px;
  gap: 0.35em;
  align-items: center;
  cursor: default;
}

#ap-cell-counter-container .markers-section .marker .update-marker-colors.show {
  animation: showColors-in 0.2s ease;
  display: flex;
}

@keyframes showColors-in {
  0% {
    top: 1em;
    opacity: 0;
  }

  100% {
    top: 1.8em;
    opacity: 1;
  }
}

#ap-cell-counter-container .markers-section .marker .update-marker-colors.hidden {
  animation: showColors-out 0.2s ease;
  display: none;
}

@keyframes showColors-out {
  0% {
    top: 1.8em;
    opacity: 1;
  }

  100% {
    top: 1em;
    opacity: 0;
    display: none;
  }
}

#ap-cell-counter-container .markers-section .marker .update-marker-color {
  height: 1em;
  width: 1em;
  border-radius: 3px;
  cursor: pointer;
}

#ap-cell-counter-container .markers-section .marker .update-marker-color:hover {
  opacity: 0.8;
}

#ap-cell-counter-container .markers-section .marker .update-marker-name {
  border-radius: 3px;
  outline: none;
  border: none;
  background-color: #2e353a;
  color: white;
  height: 1.1em;
  padding-left: 0.35em;
  width: 6.4em;
}

#ap-cell-counter-container .markers-section .marker {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.2em 0.35em;
  margin: 0.25em;
  border-radius: 5px;
  flex-direction: row;
  transition: background-color 0.2s;
  cursor: pointer;
  position: relative;
  height: 1.4em;
}

#ap-cell-counter-container .markers-section .marker .marker-color {
  width: 0.4em;
  height: 0.4em;
  border-radius: 10px;
  transition: background-color 0.25s;
}

#ap-cell-counter-container .markers-section .marker .marker-name {
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 7.2em;
}

#ap-cell-counter-container .markers-section .marker:hover,
#ap-cell-counter-container .markers-section .marker.selected {
  background-color: #494e60;
  transition: background-color 0.2s;
}

#ap-cell-counter-container .markers-section .marker .marker-actions {
  display: flex;
  margin-left: auto;
  gap: 0.6em;
}

#ap-cell-counter-container .markers-section .marker .marker-actions .marker-action {
  background-repeat: no-repeat;
  background-size: 1.1em;
  height: 1.1em;
  width: 1.1em;
  opacity: 0.6;
  transition: opacity 0.2s;
}

#ap-cell-counter-container .markers-section .marker .marker-actions .marker-action.selected,
#ap-cell-counter-container .markers-section .marker .marker-actions .marker-action:hover {
  opacity: 1;
  transition: opacity 0.2s;
}

#ap-cell-counter-container .markers-section .marker .marker-actions .modify-marker {
  background-image: url("../../../assets/buttons/modify.svg");
}

#ap-cell-counter-container .markers-section .marker .marker-actions .delete-marker {
  background-image: url("../../../assets/buttons/trashBin.svg");
}

#ap-cell-counter-container .markers-section .marker .marker-actions .save-changes {
  background-image: url("../../../assets/buttons/cellCounterMarkerSave.svg");
}

#ap-cell-counter-container .markers-section .marker .marker-actions .save-changes.disabled {
  opacity: 0.2;
  pointer-events: none;
}

#ap-cell-counter-container .markers-section .marker .marker-actions .revert-changes {
  background-image: url("../../../assets/buttons/cellCounterMarkerRevert.svg");
}

#ap-cell-counter-container #markers-container #marker-buttons-container {
  display: flex;
  margin-top: 1em;
  gap: 0.7em;
}

/* delete popup */
#ap-cell-counter-container .delete-marker-popup {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  cursor: default;
}

#ap-cell-counter-container .delete-marker-popup.show {
  display: block;
}

#ap-cell-counter-container .delete-marker-popup.show .delete-marker-popup-content {
  color: #e9e9e9;
  margin: 0;
  width: 30%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2e353af2;
  border-radius: 3px;
  padding: 1em;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  font-size: 1em;
  cursor: default;
}

#ap-cell-counter-container .delete-marker-popup.show .delete-marker-popup-content .delete-marker-popup-title {
  font-weight: bold;
  font-size: 1.2em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid #4d5357;
}

#ap-cell-counter-container .delete-marker-popup.show .delete-marker-popup-content .delete-marker-popup-actions {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
  justify-content: flex-end;
}

#ap-cell-counter-container .delete-marker-popup.show .delete-marker-popup-content .delete-marker-popup-actions div {
  width: 5em;
  padding: 0.3em;
  cursor: pointer;
  border-radius: 3px;
  background-color: #515b65;
  text-align: center;
  font-size: 0.8rem;
  transition: background-color 0.3s;
  user-select: none;
}

#ap-cell-counter-container .delete-marker-popup.show .delete-marker-popup-content .delete-marker-popup-actions div:hover {
  background-color: #20a8d8;
  transition: background-color 0.3s;
}

#ap-cell-counter-container .delete-marker-popup.show .delete-marker-popup-content .delete-marker-popup-actions div.delete:hover {
  background-color: #f86c6b;
  transition: background-color 0.3s;
}

#ap-cell-counter-container #marker-size-container {
  font-size: 0.8em;
  display: flex;
  justify-content: space-evenly;
  margin-top: 1em;
  align-items: center;
}

#ap-cell-counter-container #marker-size-container #marker-size {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  width: 50%;
}

/* track */
#ap-cell-counter-container #marker-size-container #marker-size::-webkit-slider-runnable-track {
  height: 3px;
  cursor: pointer;
}

#ap-cell-counter-container #marker-size-container #marker-size::-moz-range-track {
  height: 3px;
  cursor: pointer;
}

/* thumb */
#ap-cell-counter-container #marker-size-container #marker-size::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  background: #20a8d8;
  margin-top: -5px;
  border-radius: 50%;
}

#ap-cell-counter-container #marker-size-container #marker-size::-moz-range-thumb {
  -moz-appearance: none;
  height: 10px;
  width: 10px;
  background: #20a8d8;
  margin-top: -5px;
  border-radius: 50%;
  cursor: pointer;
}