/* Theme fix */
.block-region.demo-block {
  padding: 1rem;
  color: #000 !important;
  background-color: #aaa;
  font-weight: bold;
}

#toolbar-administration.toolbar {
  z-index: 10001;
  max-width: fit-content;
  height: auto;
}

#toolbar-administration.toolbar > .toolbar-bar {
  background-color: var(--bs-dark);
}
#toolbar-administration.toolbar .toolbar-tab > a:not(.disabled):hover {
  color: var(--bs-white);
}


#toolbar-administration.toolbar .link-list-wrapper ul li a {
  line-height: 2.4rem;
}

#toolbar-administration .toolbar-box {
  display: flex;
}

/* Fix toolbar regression with bootstrap-italia >= 2.7 */
@media (min-width: 576px) {
  #toolbar-administration ul {
    font-size: 0.81rem;
  }
}

/* Navbar sticky vs drupal toolbar */
body.toolbar-horizontal.toolbar-fixed {
  padding-top: 79px !important;
}

.toolbar-horizontal.toolbar-tray-open .bs-it-sticky-wrapper .is-sticky {
  top: 79px !important;
}
.toolbar-horizontal .bs-it-sticky-wrapper .is-sticky {
  top: 39px !important;
}
.toolbar-oriented .toolbar-bar {
  z-index: 10001;
}

/* Navbar sticky vs Layout Builder sidebar */
.ui-dialog,
.modal {
  z-index: 20001 !important;
}

/* Fix link-list */
.link-list-wrapper ul li a span {
  line-height: inherit;
}

/* Fix footer active link */
.it-footer-main .link-list-wrapper ul li a.active {
  text-decoration: underline;
}

/* Fix modal search */
.it-header-wrapper:not(.is-sticky) {
  z-index: unset !important;
}
/* Fix timeline */
.it-timeline-wrapper .it-pin-wrapper {
  z-index: 2 !important;
}
/* Fix modals */
.it-header-wrapper.is-sticky {
  z-index: 10000 !important;
}

/* Example background */
.bd-example {
  background-color: #f5f5f5;
}

/* Typography Fix -------------------------------------------------------------------------- */
em.placeholder {
  opacity: 0.9;
  background-color: unset;
}

/* Table Fix -------------------------------------------------------------------------- */
a.tabledrag-handle .handle {
  width: 24px;
  height: 24px;
  margin: 0 1rem;
}

/* Webform fix ------------------------------------------------------------------------ */
/* Scale component */
.webform-scale-small input + label {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
  line-height: 22px;
}
.webform-scale-medium input + label {
  font-size: 0.9rem;
  line-height: 30px;
}
.webform-scale-large input + label {
  font-size: 1.1rem;
  line-height: 40px;
}
.webform-scale-text {
  margin-top: 0.25rem;
  font-size: 0.777rem;
}

/* Select in draggable tables */
fieldset.webform-composite-hidden-title {
  margin-top: 0;
  margin-bottom: 0;
}
/* Likert fix */
.webform-likert-table-wrapper .form-check [type="radio"] + label {
  top: -1rem;
}
/* Editor */
.js-text-format-wrapper {
  margin-bottom: 3rem;
}
.js-text-format-wrapper .form-group {
  margin-bottom: 0;
}
button.link-edit-summary {
  text-decoration: underline;
  border: none;
  background-color: transparent;
}
.text-summary-wrapper {
  margin-bottom: 2rem;
}

/* Edit node -------------------------------------------------------------------------- */
.node-form .image-widget,
.node-form .image-widget img {
  margin-bottom: 3rem;
}

/* Overflow --------------------------------------------------------------------------- */
html {
  overflow-x: hidden;
}
