/* jsTree Panopto theme */
.jstree-node,
.jstree-children,
.jstree-container-ul {
  display: block;
  margin: 0;
  padding: 0;
  min-width: 100%;
  list-style-type: none;
  list-style-image: none;
}
.jstree-node {
  white-space: nowrap;
}
.jstree-panopto .jstree-anchor {
  display: inline-block;
  color: #464646;
  white-space: nowrap;
  padding-left: 2px;
  padding-right: 7px;
  margin: 0;
  vertical-align: top;
}
.jstree-anchor,
.jstree-anchor:link,
.jstree-anchor:visited,
.jstree-anchor:hover,
.jstree-anchor:active {
  text-decoration: none;
}
.jstree-icon {
  display: inline-block;
  text-decoration: none;
  margin: 0;
  padding: 0;
  vertical-align: top;
  text-align: center;
}
.jstree-ocl {
  cursor: pointer;
}
.jstree-leaf > .jstree-ocl {
  cursor: default;
}
.jstree .jstree-open > .jstree-children {
  display: block;
}
.jstree .jstree-closed > .jstree-children,
.jstree .jstree-leaf > .jstree-children {
  display: none;
}
.jstree-anchor > .jstree-themeicon {
  background: url("icon_folder.svg") no-repeat 0 5px;
  margin-right: 2px;
}
.recordable > .jstree-anchor > .jstree-themeicon {
  background: url("icon_folder_record.svg") no-repeat 0 5px;
}
.myFolder > .jstree-anchor > .jstree-themeicon {
  background: url("icon_folder_myfolder.svg") no-repeat 0 5px;
}
.show-more > .jstree-anchor > .jstree-themeicon {
    background: none;
}
.jstree-panopto .show-more .jstree-anchor {
    color: #09c;
    font-size: 0.9em;
}
.jstree-panopto .show-more .jstree-anchor .jstree-icon {
    display: none;
}
.inaccessible > .jstree-anchor {
  cursor: default;
  opacity: 0.4;
}
.jstree-no-icons .jstree-themeicon,
.jstree-anchor > .jstree-themeicon-hidden {
  display: none;
}
.jstree-panopto .jstree-anchor .name {
    display: inline-block;
}
.jstree-panopto .jstree-anchor .count {
    position: absolute;
    right: 8px;
    display: inline-block;
    width: 25px;
    text-align: right;
    color: #777;
}
.jstree-hidden,
.jstree-node.jstree-hidden {
  display: none;
}
.jstree-wholerow-ul {
  position: relative;
  display: inline-block;
  padding-right: 30px;
  box-sizing: border-box;
}
.jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
  cursor: pointer;
}
.jstree-wholerow-ul .jstree-anchor,
.jstree-wholerow-ul .jstree-icon {
  position: relative;
}
.jstree-wholerow-ul .jstree-anchor {
  width: 100%;
}
.jstree-wholerow-ul .jstree-wholerow {
  width: 100%;
  cursor: pointer;
  position: absolute;
  left: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.jstree-panopto .jstree-node,
.jstree-panopto .jstree-icon {
  background-repeat: no-repeat;
  background-color: transparent;
}
.jstree-panopto .jstree-anchor,
.jstree-panopto .jstree-wholerow {
  transition: background-color 0.15s, box-shadow 0.15s;
}
.jstree-panopto .jstree-hovered {
  border-radius: 2px;
  box-shadow: inset 0 0 1px #ccc;
}
/* Background in .jstree-wholerow-clicked */
.jstree-panopto .jstree-clicked {
  border-radius: 2px;
  box-shadow: inset 0 0 1px #999999;
}
.jstree-panopto > .jstree-wholerow-ul .jstree-hovered,
.jstree-panopto > .jstree-wholerow-ul .jstree-clicked {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.jstree-panopto .jstree-wholerow {
  border-radius: 3px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Panopto hover / selection background and text color */
.jstree-panopto .jstree-wholerow-hovered {
  background: #f5f5f5;
}
.jstree-panopto .jstree-wholerow-clicked {
  background: rgba(0, 0, 0, 0.07);
}
.jstree-panopto .jstree-anchor.jstree-clicked {
  color: black;
}

.jstree-panopto .jstree-node {
  min-height: 28px;
  line-height: 28px;
  margin-left: 15px;
  min-width: 24px;
}
.jstree-panopto .jstree-anchor {
  line-height: 28px;
  height: 28px;
}
.jstree-panopto .jstree-icon {
  width: 20px;
  height: 28px;
  line-height: 28px;
}
.jstree-panopto .jstree-wholerow {
  height: 28px;
}
.jstree-panopto .jstree-last {
  background: transparent;
}
.jstree-panopto .jstree-ocl {
  width: 20px;
}
.jstree-panopto .jstree-open > .jstree-ocl {
  background: url("icon_arrow_down.png") no-repeat 3px;
}
.jstree-panopto .jstree-closed > .jstree-ocl {
  background: url("icon_arrow_right.png") no-repeat 3px;
}
.jstree-panopto .jstree-leaf > .jstree-ocl {
  background: none;
}
.jstree-initial-node {
  display: none;
}
.jstree-panopto > .jstree-container-ul > .jstree-node {
  margin-left: 0;
  margin-right: 0;
}

/* Context menu styles */
.vakata-context {
  display: none;
  /* This should be > @nav-bar-base-z-index in NavBar.less so the context menu flies over the folder tree. */
  z-index: 2;
}
.vakata-context,
.vakata-context ul {
  margin: 0;
  padding: 2px;
  position: absolute;
  /* Backgrounds modified for Panopto */
  background: white;
  border: 1px solid #ccc;
  box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 2px 1px;
}
.vakata-context ul {
  list-style: none;
  left: 100%;
  margin-top: -2.7em;
  margin-left: -4px;
}
.vakata-context .vakata-context-right ul {
  left: auto;
  right: 100%;
  margin-left: auto;
  margin-right: -4px;
}
.vakata-context li {
  list-style: none;
}
.vakata-context li > a {
  display: block;
  padding: 0 2em 0 2em;
  text-decoration: none;
  width: auto;
  color: #464646;
  white-space: nowrap;
  line-height: 28px;
  border-radius: 1px;
}
.vakata-context li > a:hover {
  position: relative;
  /* Backgrounds modified for Panopto */
  background-color: rgba(238, 238, 238, 0.6);
}
.vakata-context li > a.vakata-context-parent {
  background-image: url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==");
  background-position: right center;
  background-repeat: no-repeat;
}
.vakata-context li > a:focus {
  outline: 0;
}
.vakata-context .vakata-context-hover > a {
  position: relative;
}
.vakata-context .vakata-context-separator > a,
.vakata-context .vakata-context-separator > a:hover {
  background: white;
  border: 0;
  border-top: 1px solid #e2e3e3;
  width: 90%;
  height: 1px;
  min-height: 1px;
  max-height: 1px;
  padding: 0;
  margin: 2px auto 1px;
  text-shadow: 0 0 0 transparent;
  box-shadow: 0 0 0 transparent;
  border-radius: 0;
}
.vakata-context .vakata-contextmenu-disabled a,
.vakata-context .vakata-contextmenu-disabled a:hover {
  color: silver;
  background-color: transparent;
  border: 0;
  box-shadow: 0 0 0;
}
.vakata-context li > a > i {
  text-decoration: none;
  display: inline-block;
  width: 2.4em;
  height: 28px;
  background: transparent;
  margin: 0 0 0 -2em;
  vertical-align: top;
  text-align: center;
  line-height: 28px;
}
.vakata-context li > a > i:empty {
  width: 2.25em;
  line-height: 28px;
}
.vakata-context .vakata-contextmenu-sep {
  display: none;
}
.vakata-context .vakata-contextmenu-shortcut {
  font-size: 0.8em;
  color: silver;
  opacity: 0.5;
  display: none;
}
.vakata-context-rtl ul {
  left: auto;
  right: 100%;
  margin-left: auto;
  margin-right: -4px;
}
.vakata-context-rtl li > a.vakata-context-parent {
  background-image: url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7");
  background-position: left center;
  background-repeat: no-repeat;
}
.vakata-context-rtl .vakata-context-separator > a {
  margin: 0 2.4em 0 0;
  border-left: 0;
  border-right: 1px solid #e2e3e3;
}
.vakata-context-rtl .vakata-context-left ul {
  right: auto;
  left: 100%;
  margin-left: -4px;
  margin-right: auto;
}
.vakata-context-rtl li > a > i {
  margin: 0 -2em 0 0;
}
.vakata-context-rtl li > a .vakata-contextmenu-sep {
  margin: 0 0 0 0.5em;
  border-left-color: white;
  background: #e2e3e3;
}

.jstree-panopto .jstree-context {
    /* Styles for node for which context menu is currently opened */
}
.vakata-context li > a > i.info-icon {
    background: url("context_info.png") no-repeat 7px 5px;
}
.vakata-context li > a > i.share-icon {
    background: url("context_share.png") no-repeat 7px 5px;
}
.vakata-context li > a > i.settings-icon {
    background: url("context_settings.png") no-repeat 7px 5px;
}
.vakata-context li > a > i.new-subfolder-icon {
    background: url("context_folder_add.png") no-repeat 7px 5px;
}
.vakata-context li > a > i.department-settings-icon {
    background: url("context_department.png") no-repeat 7px 5px;
}

/* Added by Panopto for custom drag and drop styles */

/* Add one row's worth of bottom padding to the tree contents to ensure there's always a top-level drop target */
.jstree-container-ul {
    padding-bottom: 28px;
}

/* Grey out folder being dragged */
.jstree-node.dragged {
    opacity: 0.4;
}
.jstree-node.dragged .jstree-wholerow {
    background: none;
    transition: none;
}

/* Give drop target folder the hover background. */
.jstree-node.dragover > .jstree-wholerow {
    background: #f5f5f5;
}
/* Give drop target folder a border. */
.jstree-node.dragover > .jstree-wholerow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: solid 1px #aaa;
    border-radius: 3px;
}

/* When dragging a folder over the dead space below the folder tree elements, give the folder tree the hover background. */
#folderBrowser #folderTree.dragover {
    background: #f5f5f5;
}

.no-results > .jstree-anchor {
    cursor: default;
    /*enable wrapping*/
    white-space: normal;
    /*ensure lower nodes move down*/
    height: auto;
    /*offset icon width*/
    padding-right: 24px;
}

.no-results > .jstree-icon,
.no-results > .jstree-anchor > .jstree-themeicon {
    display: none;
}