/**
 * Teacher dashboard layout fixes.
 *
 * style.css insets the content container by 20px but keeps width: 100%, so the
 * right edge of /teacher (and other teaching-resource pages) is cut off.
 * Inset both sides and shrink the width to match.
 */
.wrapper-teaching-resource .wrapper-content .container {
  width: calc(100% - 40px);
  margin-right: 20px;
  margin-left: 20px;
}

/* Long display names in the top bar must not widen the page. */
#content-topbar #navbarDropdown {
  display: inline-block;
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}
