/* -------------------------------------------- */
/* -----Hide Properties------------------------ */
/* -------------------------------------------- */
/* Styles for Auto-Hiding and Revealing on Mouse Hover for Block Properties */
/* Styles for displaying block properties */
.block-properties {
  display: none;
  position: absolute;
  transform: translateX(0%); /* Move the properties horizontally aligned with the ".block-content-inner" DIV Left Margin */
  border-radius: 5px;
  padding: 10px;
  border: 1px solid var(--ls-secondary-border-color); /* Add custom border color from pre-defied variables */
  background: var(--ls-primary-background-color)
}
/* Show block properties on hovering .block-content-inner */
.block-content-inner:hover ~ .block-properties {
  display: block;
  opacity: 1 !important;
  z-index: 999;
  background-color: #36383b;
}

/* Override styles for block properties in right sidebar */
#right-sidebar .block-properties {
  display: block;
  position: relative;
}

/* -------------------------------------------- */
/* -----Hide Query Builder--------------------- */
/* -------------------------------------------- */
/* Show Simple Query builder only at mouse hover */
.cp__query-builder > div > div.clauses-group {
  height: 0;
  overflow: hidden;
  margin-bottom:0;
}

.cp__query-builder > div > div.clauses-group:hover {
  opacity: 1 !important;
  overflow: visible; /* show entire dropdown filter selector */
  height: auto;
  background-color: #36383b;
}

.ls-block .custom-query>.th {
  margin-bottom: auto;
  height: auto;
}

.custom-query>.th:hover + .cp__query-builder > div > div.clauses-group {
  height: auto ;
}

.cp__query-builder-filter {
  display:block;
  transition: opacity 0.3s, margin-top 0.3s; /* Add transitions for smooth effect */
}

/* Compacts live query header */
.custom-query > div:first-child {
  border-radius: 0px;
  padding: 2px 2px;
}

/* Shift Live Query container to the right a few pixels to prevent partly covered bullet */
.custom-query {
  margin-left: 10px;
  border-radius: 10px; /* just for improving appearance */
}

/* Increase the font for the Live Query Title Text */
.ls-block .ml-1 {
  font-size: 1.5em;
  font-weight: bold;
}

/* Workaround, to prevent the Live Query Title line shown a second time as a block below the query */
div.block-properties.rounded:has(div [data-ref*="query-title"]) {
  display: none;
}
