.tooltip {
  z-index: 2000;
}

body {
  overflow: hidden;
}

body.modal-open {
  margin-right: 0px;
}

#imageCache {
  display: none;
}

.modal-wide {
  width: 50%;
  min-width: 300px;
}

.modal-max {
  width: 95%;
}

.modal-medium {
  min-width: 600px;
}

.inline-block {
  display: inline-block;
}

.custom-navbar {
  margin-bottom: 10px;
  min-height: 50px;
}

.custom-navbar-container {
  background-color: rgba(100, 100, 100, 0.07);
}

.navbar-header-container {
  padding: 5px 15px;
}

.navbar-logo {
  height: 44px;
  width: auto;
  margin: -10px 8px -10px 0;
  vertical-align: middle;
}

.navbar-brand-title {
  font-size: 22px;
  font-weight: bold;
  color: grey;
  text-decoration: none;
}

.navbar-link,
.navbar-link:hover,
.navbar-link:visited {
  color: grey;
  text-decoration: none;
}

.navbar-header-container {
  color: grey;
}

.navbar-nav > li > a {
  padding-top: 0px;
  padding-bottom: 0px;
  line-height: 50px;
}

.sidebar-container {
  padding-left: 15px;
  margin-top: 5px;
}

.content-wrapper {
  width: 100%;
}

.content-wrapper > tbody {
  vertical-align: top;
}

.sidebar-fixed {
  min-width: 220px;
  max-width: 220px;
  width: 220px;
}

#filtersPanel .nav-tabs > li > a {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.row-container {
  padding: 0 15px;
}

.footer > hr {
  margin-top: 6px;
  margin-bottom: 6px;
}

.footer > p {
  margin-left: 15px;
  margin-right: 15px;
}

.small-padding {
  padding: 5px !important;
}

.small-bottom-margin {
  margin-bottom: 5px;
}

.small-top-margin {
  margin-top: 5px;
}

.no-top-margin {
  margin-top: 0px;
}

.no-bottom-margin {
  margin-bottom: 0px;
}

.large-top-margin {
  margin-top: 15px;
}

.large-bottom-margin {
  margin-bottom: 15px;
}

.vertical-delimiter {
  padding-top: 15px;
}

#categoriesList {
  /*max-height: 555px;*/
  overflow-y: auto;
}

#entriesContainer {
  /*max-height: 410px;*/
  min-height: 100px;
  min-width: 100px;
  overflow-y: auto;
}

.entries-count-label {
  margin-bottom: 5px;
}

#displayedEntriesCount {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  vertical-align: middle;
}

#filtersPanel .panel-body {
  padding-top: 10px;
  padding-bottom: 10px;
}

.category-entries-container {
  display: inline-block;
}

.panel-label {
  margin-top: 0px;
}

.nested-panel-label {
  font-weight: 500;
}

.nested-categories-list {
  margin-top: 10px;
  margin-bottom: 10px;
}

.nested-categories-list .category-title {
  font-weight: normal;
}

.nested-categories-list > .list-group-item,
.nested-list-group > .list-group-item {
  padding: 10px;
  border-width: 1px !important;
}

.nested-categories-list > .list-group-item:first-child,
.nested-list-group > .list-group-item:first-child {
  border-radius: 4px !important;
}

.category-entry {
  margin-bottom: 2px;
}

button.category-entry.active,
button.category-entry:active,
.noUi-connect {
  background-color: #dad3c4;
  border-color: #b3aea1;
}

.category-entry > .glyphicon {
  font-size: 13px;
}

.category-entry > .content-entry-label {
  display: inline-block;
  font-size: 12px;
  height: 16px;
  width: 14px;
  position: relative;
  top: 1px;
  line-height: 1;
}

.category-entry > .content-entry-icon {
  display: inline-block;
  height: 14px !important;
  width: 14px !important;
  position: relative;
  right: 2px;
}

.category-entry > .content-entry-icon img {
  height: 18px !important;
  width: 18px !important;
  display: block;
}

.category-entry-span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid lightgrey;
  border-radius: 4px;
  vertical-align: middle;
}

#entryDetailsThumbnail {
  border: 1px solid lightgrey;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

#summaryTableContainer th,
#summaryTableContainer td {
  padding: 2px !important;
  text-align: center;
}

#summaryTableContainer tr > td:first-of-type {
  text-align: left;
}

#summaryTableContainer td.category-cell.category-present {
  background-color: green;
}

#summaryTableContainer td.technique-cell {
  font-size: 12px;
}

.inline-block {
  display: inline-block;
}

.search-clear {
  position: absolute;
  right: 5px;
  color: lightgrey;
  top: 8px;
  bottom: 0px;
  font-size: 14px;
  cursor: pointer;
}

#searchField {
  width: 100%;
}

#resetPanZoom {
  position: absolute;
  top: 10px;
  right: 25px;
  padding: 2px 5px;
}

#selectModeToggle {
  position: absolute;
  top: 10px;
  right: 75px;
  padding: 2px 6px;
  z-index: 10;
}

#selectModeToggle.active {
  background-color: #d9edf7;
  border-color: #4a90c4;
  color: #31708f;
}

#filterToSelection {
  position: absolute;
  top: 38px;
  right: 75px;
  padding: 2px 6px;
  z-index: 10;
}

#clearSelectionFilter {
  position: absolute;
  top: 38px;
  right: 25px;
  padding: 2px 6px;
  z-index: 10;
}

#exportSelectionBibtex {
  position: absolute;
  top: 38px;
  right: 135px;
  padding: 2px 6px;
  z-index: 10;
}

.filtered-out {
  display: none;
}

/* .content-entry {
	width: 32px;
	height: 32px;
	display: inline-block;
	position: absolute;
	margin: 5px;
	padding: 1px;
	border: 1px solid lightgrey;
	border-radius: 4px;
	overflow: hidden;
	word-wrap: break-word;
	box-shadow: 2px 2px 5px 1px darkgrey;
	cursor: pointer;
}

.content-entry:hover {
	box-shadow: 1px 1px 3px 1px gold, 2px 2px 5px darkgrey;
}

.content-entry.active {
	box-shadow: 1px 1px 3px 1px yellow, 2px 2px 5px darkgrey;
} */

.content-entry {
  cursor: pointer;
  transition: opacity 0.5s;
}

.content-entry-rect {
  cursor: pointer;
  stroke: lightgrey;
  fill: white;
  width: 64 !important;
  height: 64 !important;
}

.content-entry-shadow {
  fill: darkgrey;
  stroke: none;
  pointer-events: none;
}

.content-entry-hover,
.content-entry-active {
  fill: none;
  stroke: none;
  pointer-events: none;
}

.content-entry.selected-directly .content-entry-hover,
.content-entry.selected-indirectly .content-entry-hover {
  fill: #a1d99b;
}

.content-entry:hover .content-entry-hover {
  fill: gold;
}

.content-entry.active .content-entry-active {
  fill: yellow;
}

.content-entry.blurred:not(.selected-directly):not(.selected-indirectly) {
  opacity: 0.05;
  pointer-events: none;
  transition: opacity 0.5s;
  /* transition: all 0.5s;
    -webkit-transition: all 0.5s; */
}

/* .content-entry.blurred:after {
    content: '\A';
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0.8;
} */

.edge-highlight {
  stroke: #ffeda0;
  stroke-opacity: 0.6;
  stroke-width: 2;
}

.edge-selection {
  stroke: #a1d99b;
  stroke-opacity: 0.7;
  stroke-width: 2;
}

.distance-label {
  opacity: 0.8;
  pointer-events: none;
}

.distance-label rect {
  fill: white;
  stroke: darkgrey;
  pointer-events: none;
}

.distance-label text {
  fill: black;
  font-family: sans-serif;
  font-size: 12px;
  pointer-events: none;
}

.entry-details-title {
  font-size: 24px;
}

.media > span.pull-left {
  margin-right: 20px;
}

.about-link,
.about-link:hover,
.about-link:visited {
  color: black;
  text-decoration: none;
}

#inputEntryCategories {
  max-height: 700px;
  overflow-y: auto;
}

#totalTechniquesCount {
  font-weight: bold;
}

.slider-container {
  margin: 5px 8px;
}

.delta {
  /*font-weight: bold;*/
  font-size: 120%;
  margin-right: 1px;
}

.slider-label-container {
  position: relative;
  height: 20px;
}

.slider-label-min,
.slider-label-max {
  font-weight: bold;
}

.slider-label-min {
  position: absolute;
  left: 0px;
}

.slider-label-max {
  position: absolute;
  right: 0px;
}

.slider-label-min.weight-label-min {
  left: 5px;
}

.slider-label-max.weight-label-max {
  right: 5px;
}

.noUi-horizontal .noUi-handle {
  width: 18px;
  left: -9px;
}

.noUi-handle:after,
.noUi-handle:before {
  left: 6px;
}

.noUi-handle:after {
  left: 9px;
}

.noUi-handle,
.noUi-dragable {
  cursor: ew-resize;
}

hr {
  margin-top: 10px;
  margin-bottom: 10px;
}

.reset-category-filter {
  margin-left: 5px;
  padding: 1px 3px !important;
  line-height: 1.1;
}

.reset-weights {
  margin-left: 5px;
  padding: 1px 3px !important;
  line-height: 1.1;
}

.overlay-message {
  position: absolute;
  left: 20px;
  top: 0px;
}

#similarEntries {
  max-height: 110px;
  overflow-y: auto;
}

#similarEntries li,
#similarEntries a,
#similarEntries span {
  font-size: small;
}

#summaryTableContainer {
  overflow-x: auto;
}

#statsContainer {
  /*margin: 5px 5px 10px 5px;*/
  margin-top: 5px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  min-width: 100%;
  max-width: 100%;
  width: 500px;
  max-height: 100%;
  overflow-y: auto;

  display: flex; /* distribui em linha */
  flex-wrap: wrap; /* permite quebrar linha */
  gap: 8px;
}

#statsContainer > * {
  flex: 0 0 calc(49% - 8px); /* 3 itens por linha (desconta o gap) */
  box-sizing: border-box; /* padding/borda contam dentro dos 33 % */
  max-width: 100%;
}

.diagram-category-container {
  margin: 5px;
  padding: 5px;
  border: 1px solid lightgrey;
  border-radius: 4px;
}

.diagram-category-row > .diagram-category-title {
  font-weight: bold;
}

.diagram-row {
  margin-top: 1px;
  margin-bottom: 1px;
}

.diagram-category-row {
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid lightgrey;
}

.diagram-bar {
  display: inline-block;
  /*overflow: hidden;*/
  border-radius: 4px;
  text-align: right;
  vertical-align: middle;
  max-width: 100%;
  height: 20px;
  position: relative; /* Para posicionar o valor dentro da barra */
  transition: width 0.3s ease; /* Efeito suave ao redimensionar */
}

.bar-value {
  margin-right: 2px;
  position: absolute;
  right: 5px;
  color: white;
  font-weight: bold;
}

.bar-title {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/*.diagram-row-content {
  width: 100%;
}*/

.diagram-row-content {
  display: flex; /* Ativa o Flexbox */
  align-items: center; /* Alinha o ícone e a barra verticalmente */
  width: 100%; /* Garante que o contêiner ocupe todo o espaço disponível */
}

.diagram-row-content > .bar-title.bar-icon-placeholder {
  width: 34px;
  height: 32px;
}

.bar-icon {
  padding: 4px 8px;
  border: 1px solid lightgrey;
  border-radius: 4px;
  margin-right: 8px;
}

.bar-icon > .content-entry-icon {
  display: inline-block;
  height: 22px;
  width: 16px;
  position: relative;
  right: 2px;
}

.bar-icon > .content-entry-icon img {
  height: 20px !important;
  width: 20px !important;
  display: block;
}

.bar-icon > .glyphicon {
  font-size: 16px;
}

#timeChart {
  min-height: 50px;
  max-height: 50px;
  height: 50px;
  margin-top: 10px;
}

.time-chart-total {
  fill: white;
  stroke: grey;
  stroke-width: 1px;
}

.time-chart-current {
  fill: #dad3c4;
  stroke: none;
}

.time-chart-gap {
  font-size: 10px;
  font-weight: bold;
  pointer-events: none;
}

.time-chart-brush .extent {
  fill: #7ab8e0;
  fill-opacity: 0.35;
  stroke: #4a90c4;
  stroke-width: 1px;
}

.time-chart-brush .background {
  fill: none;
  pointer-events: all;
  cursor: crosshair;
}

.time-chart-brush .resize path {
  display: none;
}

.vis-brush.vis-brush-hidden {
  display: none;
}

.vis-brush .extent {
  fill: #7ab8e0;
  fill-opacity: 0.25;
  stroke: #4a90c4;
  stroke-width: 1px;
  stroke-dasharray: 5 3;
}

.vis-brush .background {
  fill: none;
  pointer-events: all;
  cursor: crosshair;
}

.vis-brush .resize path {
  display: none;
}

/* ===================== Treemap View ===================== */

#treemapSvg {
  display: block;
}

.treemap-group {
  stroke: #bbb;
  stroke-width: 1px;
}

.treemap-group-label {
  font-size: 11px;
  font-weight: bold;
  fill: #333;
  pointer-events: none;
}

.treemap-cell-bg {
  fill: #fff;
  stroke: #ccc;
  stroke-width: 0.5px;
  cursor: pointer;
}

.treemap-cell:hover .treemap-cell-bg {
  stroke: #666;
  stroke-width: 1.5px;
}

#treemapSvg .content-entry.selected-directly .treemap-cell-bg {
  stroke: #41ab5d;
  stroke-width: 3px;
}

.treemap-empty-label {
  font-size: 16px;
  fill: #aaa;
}

/* View switcher buttons */
#viewMdsBtn,
#viewTreemapBtn,
#viewGraphBtn {
  font-size: 11px;
  padding: 2px 8px;
}

/* ===================== Graph View ===================== */

.graph-node {
  cursor: pointer;
  transition: opacity 0.3s;
}

.graph-node-rect {
  fill: white;
  stroke: #ccc;
  stroke-width: 1px;
}

.graph-node-pinned .graph-node-rect {
  stroke: #f0ad4e;
  stroke-width: 2.5px;
}

.graph-node-neighbor .graph-node-rect {
  stroke: #5bc0de;
  stroke-width: 1.5px;
}

.graph-node-faded {
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.3s;
}

.graph-edge {
  stroke: #999;
  fill: none;
  transition: stroke-opacity 0.3s;
}

.graph-edge-active {
  stroke: #f0ad4e !important;
  stroke-opacity: 0.9 !important;
}

.graph-edge-faded {
  stroke-opacity: 0.04 !important;
}

.graph-edge:hover {
  stroke: #f0ad4e;
  stroke-opacity: 1 !important;
  cursor: help;
}

.graph-edge-label {
  font-size: 11px;
  font-weight: bold;
  fill: #8a5a00;
  stroke: white;
  stroke-width: 3px;
  paint-order: stroke;
}

.graph-legend-text {
  font-size: 11px;
  fill: #777;
  pointer-events: none;
}
