/* Documents overlay (hosts the LiveDocuments section) and toolbar badge. */

.section-docs-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1.05rem;
  text-align: center;
  font-weight: 700;
}

.section-btn-docs,
.tree-btn-docs {
  position: relative;
}

/* Compact clip + count next to the section/tree title. Hidden until count > 0. */
.section-docs-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.08rem 0.4rem 0.08rem 0.32rem;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.section-docs-signal:hover,
.section-docs-signal:focus-visible {
  background: rgba(13, 110, 253, 0.18);
  color: #0a58ca;
  outline: none;
}

.section-docs-signal i,
.section-docs-signal svg {
  font-size: 0.68rem;
  width: 0.68rem;
  height: 0.68rem;
}

.section-docs-signal-count {
  min-width: 0.7em;
  text-align: center;
}

.documents-overlay {
  width: min(1100px, 95vw);
  height: min(80vh, 820px);
}

.documents-overlay-host {
  min-height: 0;
}

.documents-scope-menu .section-view-check {
  margin-left: auto;
}

/* Progress of a long document conversion, docked at the bottom of the page (issue #202). */
.docconv-statusbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .4rem 1rem;
    background: var(--bs-body-bg, #fff);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .12);
}
.docconv-statusbar-text { flex: 0 1 28rem; min-width: 0; }
.docconv-statusbar-bar { flex: 1 1 auto; min-width: 8rem; }
.docconv-statusbar-error .docconv-statusbar-text { color: var(--bs-danger, #dc3545); }
