#pathology-container {
  width: 22em;
  transition: width 0.2s;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 80% 20%;
  grid-template-areas:
    "previews toolbar"
    "hider hider";
  z-index: 1;
  position: relative;
}

#pathology-container.horizontal,
#pathology-container.closed {
  transition: width 0.2s;
  grid-template-columns: 0% 100%;
  width: 4.2em;
}

#pathology-container #apToolbar {
  float: right;
}

::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0);
}

#pathology-container.horizontal #apToolbar,
#pathology-container.closed #apToolbar {
  width: 95%;
  float: left;
  padding-left: 0.2em;
}

.apScoutDiv {
  background: rgba(255, 255, 0, 0);
  z-index: 0;
  position: absolute;
  box-shadow: #717171 3px -2px 7px 0px;
}

.apScoutDivArea {
  background: rgba(255, 255, 0, 0);
  width: 100%;
  height: 100%;
}

.apScoutTitle {
  background: #2e353a;
  width: 3em;
  height: 1.5em;
  display: block;
  top: -1.5em;
  float: right;
  margin-top: -1.5em;
  opacity: 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.apScoutMapSize {
  width: 1.2em;
  height: 1.2em;
  float: right;
  background: #2e353a;
  margin: 0.1em;
  border-radius: 0.1em;
  opacity: 0.7;
}

.apScoutMapSize:hover {
  opacity: 1;
}

.apScoutMapVis {
  width: 1.2em;
  height: 1.2em;
  float: right;
  background: #2e353a;
  margin: 0.1em;
  border-radius: 0.1em;
  opacity: 0.7;
}

.apScoutMapVis:hover {
  opacity: 1;
}

.scoutLayerImg {
  width: 100%;
}

.scoutSizeImg {
  width: 100%;
}

.apResetLabel {
  opacity: 1;
  height: 1.5em;
}

.apResetDiv {
  opacity: 0.7;
  float: right;
  background: #00a9db;
  height: 1.5em;
  padding-left: 1em;
  padding-right: 1em;
  margin-top: 0.5em;
  border-radius: 0.1em;
  margin-right: 0.6em;
}

.apResetDiv:hover {
  opacity: 1;
}

.apCloseImg:hover {
  opacity: 1;
  cursor: pointer;
}

.ap-thumbnail-macro {
  background: rgba(255, 255, 255, 0);
  position: absolute;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: row;
  height: 0;
  transition: all 0.25s;
  user-select: none;
}

.ap-thumbnail-macro.hidden {
  display: none;
}

.ap-thumbnail-macro-image {
  display: none;
}

.ap-thumbnail-macro-image.show {
  display: unset;
}

.apToolbar {
  font-family: "Arial";
  color: white;
  background: rgba(255, 255, 255, 0);
  height: 100%;
  grid-area: toolbar;
  z-index: 1;
}

#apToolbarColumn {
  position: absolute;
  right: 0;
  width: 4em;
}

#roi-layers-container {
  position: relative;
}

#layers-disabler {
  cursor: not-allowed;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

#layers-disabler.active {
  z-index: 3;
}

#rois-panel, #layers-panel {
  display: inline-flex;
  flex-wrap: wrap;
}

.roiGroup {
  cursor: pointer;
}

.roiGroup.not-allowed {
  cursor: not-allowed;
}

.roiGroupImg {
  width: 1.5em;
  margin-right: 0.2em;
}

#layers-actions {
  display: flex;
  flex-direction: row;
  gap: 0.2em;
  margin-top: 0.2em;
  padding-top: 0.5em;
  margin-right: 0.3em;
  align-items: center;
  justify-content: space-evenly;
  border-top: 1px  solid #50585d;
}
#layers-actions.hidden {
  display: none;
}

#layers-actions div {
  color: #a3a3a3;
}

#save-layer-button {
  width: 1.2em;
  cursor: pointer;
  position: relative;
}

#delete-unsaved-layers {
  width: 1.2em;
  cursor: pointer;
}

#save-layer-button.disabled,
#delete-unsaved-layers.disabled {
  cursor: default;
  color: #6a6a6a8a;
}

#save-layer-button.hidden,
#delete-unsaved-layers.hidden {
  display: none;
}

#layers-actions #save-layer-button:not(.disabled):hover,
#layers-actions #delete-unsaved-layers:not(.disabled):hover {
  color: white;
}

.roiLabel {
  display: block;
  padding: 0.5em 0;
  font-size: 0.9em;
}

.cancer-classification {
  width: 1.3em;
  position: absolute;
  right: -10px;
  top: -9px;
}

.svg-item {
  cursor: pointer;
}

.svg-label {
  opacity: 0.5;
  margin-bottom: 0.3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8em;
}

.svg-label.enabled {
  opacity: 1;
}

#slider-opacity {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 2px;
  width: 80%;
  margin-bottom: 1rem;
}

/* track */
#slider-opacity::-webkit-slider-runnable-track {
  height: 3px;
  cursor: pointer;
}

#slider-opacity::-moz-range-track {
  height: 3px;
  cursor: pointer;
}

/* thumb */
#slider-opacity::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  background: #20a8d8;
  margin-top: -5px;
  border-radius: 50%;
}

#slider-opacity::-moz-range-thumb {
  cursor: pointer;
  -moz-appearance: none;
  height: 10px;
  width: 10px;
  background: #20a8d8;
  margin-top: -5px;
  border-radius: 50%;
}

/* minimap */

.ap-minimap-container {
  position: absolute;
  display: block;
  z-index: 1;
  border: 1px solid black;
  bottom: 0;
  right: 0;
}

.ap-minimap-container.hidden {
  display: none;
}

.ap-minimap-controls {
  position: absolute;
  display: flex;
  border-radius: 5px;
  background-color: #2e353a8f;
  top: -2em;
}

.ap-minimap-controls div.control {
  width: 1.7em;
  height: 1.7em;
  padding: 1px;
  background-position: 4px, 0;
  background-size: 1.3em;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: opacity 0.5ms;
  cursor: pointer;
}

.ap-minimap-controls div.control:hover {
  opacity: 1;
  transition: opacity 0.5ms;
}

.ap-minimap-controls div.control.enlarge {
  background-image: url("../../assets/collapsescout.png");
}

.ap-minimap-controls div.control.enlarge.checked {
  background-image: url("../../assets/expandscout.png");
}

.ap-minimap-controls div.control.hide-tracking {
  background-image: url("../../assets/nolay.png");
}

.ap-minimap-controls div.control.hide-tracking.checked {
  background-image: url("../../assets/layer.png");
}

.ap-roi-groups,
.ap-image-tracker {
  position: absolute;
  top: 0;
  pointer-events: none;
}

.normalizationPatac {
  position: absolute; 
  left: 0; 
  right: 0; 
  margin-left: auto; 
  margin-right: auto;
  background-color: rgb(25 27 30 / 65%);
  border-radius: 0.3em;
  font-size: 0.7em;
  color: white;
  margin-top: -5em;
  padding: 0.2em;
  width: 18em;
  text-align: center;
}

.ap-fluorescence-row {
  font-size: 0.9em; 
  padding: 0.2em 0.5em 0.2em 0.5em;  
}