/* Table captions above tables */
caption {
  caption-side: top;
}

.scroll-output {
  max-height: 300px;
  overflow-y: auto;
}

/* Table only as wide as its content, centred (add class "narrow") */
table.narrow {
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

table.compact td, table.compact th {
  padding: 0.2rem 0.5rem !important;
  line-height: 1.2 !important;
  font-size: 0.8rem !important;
}

/* Align reference list with the text (remove extra left margin of the container;
   the hanging indent of each entry is kept) */
#refs.hanging-indent {
  margin-left: 0;
  text-indent: 0;
}

/* Reduce navbar top and bottom padding */
.navbar {
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
}

/* Centre all knitr plots, with or without caption, also from results: asis chunks
   (fig-align only affects captioned figures; Bootstrap makes .figure inline-block) */
.cell-output-display figure.figure {
  display: block;
}
img[src*="_files/figure-html/"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
