/* To make sure the shinybusy::block() element does not take too much height */
.teal-reporter.download-ok.nx-block-temporary-position {
  min-height: 10px;
}

/* Smooth rotation animation for dropdown icons */
.dropdown-icon {
  transition: transform 0.3s ease;
}

/* Code chunk styling */
.code-chunk-container .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  cursor: pointer;
}

.code-chunk-container .card-header:hover {
  background-color: #e9ecef;
}

.code-chunk-container .collapse:not(.show) {
  display: none;
}

.code-chunk-container .collapse.show {
  display: block;
}

.code-chunk-container pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
}

.simple_reporter_container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.teal-reporter.reporter-modal .modal-body,
.modal-footer {
  padding: 1rem;
}

.teal-reporter.reporter-modal .modal-footer {
  padding-top: 0;
}

.fa-stack.small { width: 2em; }

.edit_title_container {
  display: flex;
  gap: .5rem;
}

pre > code {
  padding-left: 0;
}

.teal-reporter.report-previewer-accordion .accordion-header {
  display: flex;
  align-items: center;
}

.teal-reporter.report-previewer-accordion .accordion-button {
  background: var(--bs-primary-bg-subtle);
}

.teal-reporter.report-previewer-accordion .accordion-icon {
  cursor: grab;
}

.teal-reporter.report-previewer-accordion .accordion-icon:active {
  cursor: grabbing;
}

.teal-reporter.report-previewer-accordion .accordion-button a.action-button {
  margin-left: 8px;
  order: 1;
}

.teal-reporter.reporter-previewer-modal .modal-content {
  overflow: auto;
  max-height: 90vh;
  height: 90vh;
}

.teal-reporter.reporter-previewer-modal .modal-dialog {
  --bs-modal-margin: 20px;
}

.reporter-previewer-modal .modal-dialog.modal-xl {
  --bs-modal-width: 95%;
}

.reporter-editor-modal .modal-dialog.modal-xl {
  --bs-modal-width: 95%;
}

/* Code chunk accordion styling - remove blue background and extra padding only for code chunks */
/* Target only accordions with IDs starting with 'code_chunk_' */
.code_chunk .accordion-item {
  border: none;
  background-color: transparent;
}

.code_chunk .accordion-header .accordion-button {
  background-color: transparent;
  border: none;
  padding: 0.25rem 0;
  box-shadow: none;
}

.code_chunk .accordion-header .accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: none;
}

.code_chunk .accordion-header .accordion-button:focus {
  box-shadow: none;
}

.code_chunk .accordion-body {
  padding: 0;
  background-color: transparent;
}

.code_chunk .accordion-body pre {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.code_chunk .accordion-body code {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 0.75rem;
  display: block;
  margin: 0;
}

/* Fix for R code toggle button hover - make text gray instead of white */
.teal-reporter .card-code-toggle:hover {
  color: var(--bs-tertiary-color);
  background-color: var(--bs-light-rgb);
}