#outlineView,
#attachmentsView {
  width: calc(100% - 8px);
  top: 0;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#outlineView {
  padding: 4px 4px 0;
}
#attachmentsView {
  padding: 3px 4px 0;
}

.outlineWithDeepNesting > .outlineItem,
.outlineItem > .outlineItems {
  margin-left: 20px;
}

html[dir="rtl"] .outlineWithDeepNesting > .outlineItem,
html[dir="rtl"] .outlineItem > .outlineItems {
  margin-right: 20px;
}

.outlineItem > a,
.attachmentsItem > button {
  text-decoration: none;
  display: inline-block;
  width: calc(
    100% - 1.5em
  ); /* Subtract the right padding (left, in RTL mode)
                              of the container. */
  height: auto;
  margin-bottom: 1px;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 13px;
  line-height: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  white-space: normal;
}

.outlineItem > a:focus{
  color: rgba(0, 0, 0, 0.8);
}

.highlightedOutlineItem {
  background-color: white;
  color: rgba(0, 0, 0, 0.8);
}

.attachmentsItem > button {
  border: 0 none;
  background: none;
  cursor: pointer;
  width: 100%;
}

.outlineItem > a {
  padding: 2px 0 5px 4px;
}
.attachmentsItem > button {
  padding: 2px 0 3px 7px;
  text-align: left;
}

html[dir="rtl"] .outlineItem > a {
  padding: 2px 4px 5px 0;
}
html[dir="rtl"] .attachmentsItem > button {
  padding: 2px 7px 3px 0;
  text-align: right;
}

.outlineItemToggler {
  position: relative;
  height: 0;
  width: 0;
  color: hsla(0, 0%, 100%, 0.5);
}
.outlineItemToggler::before {
  content: url(/assets/images/treeitem-expanded.png);
  display: inline-block;
  position: absolute;
}
.outlineItemToggler:focus::before {
  border: 2px solid #ffdd00;
}
.outlineItemToggler.outlineItemsHidden::before {
  content: url(/assets/images/treeitem-collapsed.png);
}
html[dir="rtl"] .outlineItemToggler.outlineItemsHidden::before {
  content: url(/assets/images/treeitem-collapsed-rtl.png);
}
.outlineItemToggler.outlineItemsHidden ~ .outlineItems {
  display: none;
}
.outlineItemToggler {
  float: left;
}
html[dir="rtl"] .outlineItemToggler {
  float: right;
}
.outlineItemToggler::before {
  right: 4px;
}
html[dir="rtl"] .outlineItemToggler::before {
  left: 4px;
}
.outlineItemToggler:hover,
.outlineItemToggler:hover + a,
.outlineItemToggler:hover ~ .outlineItems,
.outlineItem > a:hover,
.attachmentsItem > button:hover {
  background-color: hsla(0, 0%, 100%, 0.02);
  background-image: linear-gradient(
    hsla(0, 0%, 100%, 0.05),
    hsla(0, 0%, 100%, 0)
  );
  background-clip: padding-box;
  box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.05) inset,
    0 0 1px hsla(0, 0%, 100%, 0.2) inset, 0 0 1px hsla(0, 0%, 0%, 0.2);
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.9);
}

.outlineItem.selected {
  background-color: hsla(0, 0%, 100%, 0.08);
  background-image: linear-gradient(
    hsla(0, 0%, 100%, 0.05),
    hsla(0, 0%, 100%, 0)
  );
  background-clip: padding-box;
  box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.05) inset,
    0 0 1px hsla(0, 0%, 100%, 0.1) inset, 0 0 1px hsla(0, 0%, 0%, 0.2);
  color: hsla(0, 0%, 100%, 1);
}
