/* always show the scrollbar on the side; avoids ugly jumping
   show the main page with the footer pushed to the bottom */
html {
  overflow-y: scroll;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
main {
  flex-grow: 1;
}
/* Use underline-on-hover for links.
   This is used for consistency, since fill-link breaks outlines. */
:link, :visited {
  text-decoration: none;
  color: #3A5883;
}
:link:focus {
  color: #000000;
}
:visited {
  color: #8C3178;
}
:visited:focus {
  color: #000000;
}
:link:hover, :link:focus,
:visited:hover, :visited:focus {
  text-decoration: underline;
  outline: none;
}
:link:focus img, :visited:focus img {
  outline: dotted;
}
:link:focus img.no-outline-on-focus, :visited:focus img.no-outline-on-focus {
  outline: none;
}
/* Should be used inside of the header, main, and footer */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
}
.wrapper--mini {
  padding: 8px 20px;
}
/* split-screen effect, sizing things to not get any narrower than reasonable */
.split {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: -16px -20px;
}
.split-item {
  margin: 16px 20px;
  width: 400px;
  flex-grow: 1;
}
/* The header, nav bar, and footer */
header, nav {
  border-bottom: solid 1px #CCC;
}
header {
  line-height: 1.62;
}
#header-user {
  float: right;
}
.header-link, #header-user img, #header-logo {
  vertical-align: middle;
  line-height: 25px;
  height: 25px;
  display: inline-block;
}
#header-sections {
  padding-left: 8px;
}
.header-link, .drop-down-menu > a {
  color: #333;
  padding: 0 8px;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.header-link + .header-link-container {
  margin-left: 8px;
}
a.header-link-container:hover,
a.header-link-container:active,
a.header-link-container:focus {
  text-decoration: none;
}
a.header-link:hover,
a.header-link:active,
a.header-link:focus,
a.header-link-container:hover .header-link,
a.header-link-container:active .header-link,
a.header-link-container:focus .header-link,
.drop-down-menu > a:hover,
.drop-down-menu > a:active,
.drop-down-menu > a:focus {
  color: #fff;
  background: #000;
  text-decoration: none;
}
.drop-down-menu {
  display: none;
  position: fixed;
  background: #fff;
  padding: 8px 0;
  box-shadow: 0 1px 4px #666;
  z-index: 100;
}
.drop-down-menu-backdrop {
  display: none;
  background: rgba(250, 250, 250, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 100%;
  bottom: 100%;
  width: 100%;
  height: 100%;
  z-index: 99;
}
.drop-down-menu-backdrop--active {
  display: block;
}
.drop-down-menu:target, .drop-down-menu--open {
  display: block;
}
.drop-down-menu > a {
  display: block;
  height: 25px;
  line-height: 25px;
  padding: 8px 20px;
}
.drop-down-menu--right {
  direction: rtl;
}
.drop-down-menu--right > .drop-down-menu {
  direction: ltr;
}
#footer-version {
  float: right;
}
nav {
  background-color: #EEE;
}
nav h1 {
  margin: 0;
}
footer {
  border-top: solid 1px #CCC;
}
/* An alert box */
#alert-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.alert {
  background: #d9edf7;
  border: solid 1px #d9edf7;
  color: #31708f;
  margin: 8px 8px 0 0;
  padding: 8px 10px;
  box-shadow: 0 1px 2px #666;
  display: inline-block;
  white-space: nowrap;
}
.alert[hidden] {
  display: none;
}
.alert--ok {
  color: #3c763d;
  border-color: #d6e9c6;
  background-color: #dff0d8;
}
.alert--error {
  color: #a94442;
  border-color: #ebccd1;
  background-color: #f2dede;
}
.span--ok {
  color: #3c763d;
}
.span--error {
  color: #a94442;
}
.close-button {
  color: #666;
  border: none;
  padding: none;
  margin: none;
  background: none;
}
.close-button:hover,
.close-button:active,
.close-button:focus {
  color: #df3600;
}
/* The tab bar. */
.tabs {
  margin: 0 auto;
  line-height: 1.15;
  padding: 0 10px;
  max-width: 1000px;
  position: relative;
  top: 1px;
  overflow-x: auto;
  display: flex;
  flex-direction: row;
}
.tabs::after {
  content: ". . . . . . . . . . ";
  visibility: hidden;
  display: block;
  width: 0; height: 0; overflow: hidden;
  clear: both;
}
.tab {
  /* The 1px border on the left and right adds it up to 10px */
  /* The top and bottom are 8px, even with the border, because of the -1px margin on tabs */
  padding: 8px 8px 8px 9px;
  float: left;
  border: solid 1px transparent;
  margin-left: -1px;
  transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out;
}
.tab:hover, .tab:focus {
  text-decoration: none;
  color: #FFF;
  background: #000;
}
.tab--active, .tab--active:hover, .tab--active:focus {
  border-color: #CCC;
  border-bottom-color: transparent;
  background: #FFF;
  color: #000;
}
/* The fancy table. */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.table tr[role="row"] {
  transition-duration: 0.1s;
  transition-timing-function: ease;
  transition-property: background;
}
.table col td:not([role="presentation"]) {
  background: #EEE;
}
.table tr:target {
  background: #EEE;
}
table tr.exp {
  display: none;
}
table tr.exp td {
  padding: 0 1em;
}
.exp-indicator-close::before {
  content: '▸';
}
.exp-indicator-open::before {
  content: '▾';
}
table tr.exp:target {
  display: table-row;
}
.table tbody tr[role="row"]:hover {
  background: #EEE;
}
.table th {
  color: #666;
  font-weight: bold;
  text-align: left;
}
.table tr[role="row"] th, .table tr[role="row"] td {
  padding: 8px 10px;
}
.table tbody + thead td {
  padding-top: 16px;
}
.fill-link {
  overflow: hidden;
}
.fill-link > * {
  display: block;
  margin: -20em;
  padding: 20em;
}
.table-button {
  margin: -20em;
  padding: 20em;
  background: transparent;
  border: none; outline: none;
  color: #4d76ae;
  transition-property: color, background-color;
  transition-duration: 0.1s;
  transition-timing-function: ease-in-out;
}
.table-button:hover,
.table-button:focus {
  background-color: #4d76ae;
  color: #fff;
}
.table-button--add {
  color: #5e9766;
}
.table-button--add:hover,
.table-button--add:focus {
  background-color: #5e9766;
  color: #fff;
}
.table-button--remove {
  color: #df3600;
}
.table-button--remove:hover,
.table-button--remove:focus {
  background-color: #df3600;
  color: #fff;
}
.table-button-col {
  width: 100px;
}
/* The buttons and the bars that they go inside */
.toolbar {
  margin: 16px -10px;
}
.toolbar form {
  display: inline;
}
.toolbar-item {
  margin: -8px 10px;
  padding: 8px 10px;
  color: #FFF;
  background-color: #4d76ae;
  border: none;
  transition: box-shadow 0.1s ease-in-out;
  box-shadow: 0 1px 2px #666;
  cursor: pointer;
}
.toolbar-item:hover,
.toolbar-item:focus {
  text-decoration: none;
  box-shadow: 0 1px 4px #666;
}
.toolbar-item:focus {
  background: #48F;
  box-shadow: 0 1px 4px #666;
  color: #FFF;
}
.toolbar-item:active {
  box-shadow: 0 0 0 #666;
}
.toolbar-item--disabled,
.toolbar-item--disabled:hover,
.toolbar-item--disabled:active,
.toolbar-item--disabled:focus {
  box-shadow: none;
  background-color: #999;
  cursor: not-allowed;
}
.toolbar-item--add {
  background: #518159;
}
.toolbar-item--add:focus {
  background: #0A0;
}
.toolbar-item--remove {
  background-color: #cf3600;
}
.toolbar-item--remove:focus {
  background: #F22;
}
/* The page headers. */
.header {
  border-bottom: solid 1px #CCC;
  margin: 0;
  margin-bottom: 7px;
  padding-bottom: 8px;
}
.header-count {
  float: right;
  display: inline-block;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  height: 24px;
  min-width: 24px;
  color: #FFF;
  background: #000;
  border-radius: 16px;
  font-size: 16px;
}
/* Allow preformatted text to wrap (crash reports) */
pre {
  white-space: pre-wrap;
}
/* Timestamps that show local time inline and UTC on hover */
time[title] {
  border-bottom: dotted 1px #999;
}
.show-on-narrow {
  display: none !important;
}
@media (max-width: 800px) {
  .hide-on-narrow {
    display: none !important;
  }
  .show-on-narrow {
    display: block !important;
  }
}
@media (max-width: 700px) {
  .hide-on-super-narrow {
    display: none !important;
  }
  .priority-column {
    position: absolute;
    right: 20px;
  }
  .priority-cell {
    text-align: right;
  }
}

