.btr-explorer-parent {
  width: 276px;
  position: relative;
  height: 420px;
}

.btr-explorer,
.btr-properties {
  width: 100%;
  height: 100%;

  padding: 1.5px;
  padding-top: 0;

  display: flex;
  flex-direction: column;

  position: relative;
  white-space: nowrap;

  background: #fff;
  color: #191919;
}

.btr-explorer-header,
.btr-properties-header {
  flex: 0 0 auto;
  display: flex;
  width: 100%;
  height: 25px;

  align-items: center;
  justify-content: center;

  grid-column: 1 / span 2;

  background: #d0d0d0;
  border: 1px solid #c8c8c8;

  color: #000;
  cursor: default;

  overflow: hidden;
  text-overflow: ellipsis;

  white-space: nowrap;
}

.btr-explorer-list,
.btr-properties-container {
  width: 100%;
  flex: 1 1 auto;

  margin-top: 3px;

  overflow: auto;
  overscroll-behavior: contain;

  border: 1px solid #b6b6b6;
}

.btr-explorer-list {
  padding: 2px;
}

.btr-explorer-inner-list {
  display: inline-block;
  padding-right: 4px;
}

body,.btr-explorer-parent,
.btr-explorer-parent input {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif !important;
}

.btr-explorer-parent .btr-explorer div,
.btr-explorer-parent .btr-properties div {
  font-size: 12px;
  font-weight: 300;
}

.btr-explorer-header {
  overflow: visible;
  user-select: none;
}

.btr-explorer-header .btr-dropdown-container {
  position: absolute;
  right: 0;
  user-select: none;
  height: 22px;
  margin-top: 1px;
  margin-right: 4px;
  padding: 1px 0;
}

.btr-explorer-header .btr-dropdown-container .btr-dropdown-btn {
  background: white;
  border: 1px solid #bbb;
  border: none;
  border-radius: 2px;
  padding: 2px 3px;
  font-size: 11px;
  text-align: left;
  height: 100%;
}

.btr-explorer-header
  .btr-dropdown-container
  .btr-dropdown-btn
  .btr-dropdown-label {
  display: inline-block;
  width: 70px;
  overflow: hidden;
  white-space: nowrap;
  margin-right: 2px;
  font-weight: 500;
  color: #000;
}

.btr-explorer-header .btr-dropdown-container .btr-dropdown-btn:hover {
  background: #f0f0f0;
}

.btr-explorer-header .btr-dropdown-container .btr-dropdown-menu {
  background: #fff;
  border: 1px solid #bbb;
  margin-top: -3px;
  right: -2px;
  max-width: 200px;
  max-height: 200px;
  border-radius: 2px;
  padding: 0;

  z-index: 2;

  overflow: hidden;
  overflow-y: scroll;
  white-space: nowrap;
}

.btr-explorer-header .btr-dropdown-container .btr-dropdown-menu > li {
  list-style: none;
}

.btr-explorer-header .btr-dropdown-container .btr-dropdown-menu > li a {
  display: block;
  padding: 4px 8px;
  padding-right: 12px;
  text-align: left;
  text-overflow: ellipsis;
  overflow: hidden;
}

.btr-explorer-header
  .btr-dropdown-container
  .btr-dropdown-menu
  > li.selected
  a {
  font-weight: bold;
  background: #f0f0f0;
}

.btr-explorer-header .btr-dropdown-container .btr-dropdown-menu > li:hover a {
  background: #f0f0f0;
}

.btr-explorer-filter {
  position: relative;
  width: 100%;
  padding: 0 2px;
  border: 1px solid #c8c8c8;
  border-top: none;
}

.btr-explorer-filter input.btr-explorer-filter-input {
  width: 100%;
  height: 20px;
  border: none;
  background: #fff;
  color: #000;
  outline: none;
}

.btr-explorer-filter input.btr-explorer-filter-input::placeholder {
  color: #777;
}

.btr-explorer-filter.loading::after {
  content: "";
  background-image: url(/res/icon_loading.gif);
  background-size: 100%;
  display: block;
  position: absolute;
  width: 15px;
  height: 15px;
  right: 4px;
  top: 3px;
}

.btr-explorer-view-btn {
  flex: 1;
  cursor: pointer;
  max-width: 33%;
  text-align: center;

  background: #f6f6f6;
  border: 1px solid #dddddd;

  overflow: hidden;
  text-overflow: ellipsis;
}

.btr-explorer-view-btn:hover {
  background: #f9f9f9;
}

.btr-explorer-view-btn.selected {
  background: #d9d9d9;
}

.btr-explorer-childlist {
  padding-left: 20px;
}

.btr-explorer-item-container {
  display: flex;
  align-items: center;
}

.btr-explorer-item {
  flex: 1 0 auto;
  display: inline-flex;
  margin: 0;
  padding: 0;
  padding-right: 8px;

  height: 20px;
  font-weight: 500;
  color: #000;

  align-items: center;

  cursor: default;
  user-select: none;
  -moz-user-select: none;

  border: 1px solid transparent;
}

.btr-explorer-item:not(.selected):hover {
  background-color: #e4eefe;
}

.btr-explorer-item.selected {
  background-color: #6894d9;
  color: white;
}

.btr-explorer-more {
  flex: 0 0 auto;

  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0;
}

.btr-property-group-more {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
}

.btr-explorer-has-children .btr-explorer-more::before,
.btr-properties .btr-property-group .btr-property-group-more::before {
  content: "";
  position: absolute;

  width: 0;
  height: 0;

  left: 5px;
  top: 2px;

  border-left: 5px solid #000;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-radius: 2px;

  transform: rotate(90deg);
}

.btr-properties .btr-property-group .btr-property-group-more::before {
  left: 7px;
  top: 5px;
}

.btr-explorer-has-children.closed .btr-explorer-more::before,
.btr-properties .btr-property-group.closed .btr-property-group-more::before {
  transform: unset;
  margin-top: 1px;
}

.selected .btr-explorer-more::before {
  border-left-color: #fff;
}

.btr-explorer-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 6px 0 3px;

  background-image: url(../res/class_images.webp);
  background-repeat: no-repeat;
}

.btr-properties {
  position: absolute;

  background: #ffffff;
  font-size: 13px;
  font-weight: 500;

  top: 0;
  left: 100%;
  overflow: hidden;
  box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
  z-index: -1;
}

.btr-properties.left {
  left: auto;
  right: 100%;
}

.btr-properties * {
  font: inherit;
}

.btr-properties.closed:not(.keepopen) {
  display: none;
}

.btr-properties-container {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(50px, min-content) 1fr;
  grid-auto-rows: min-content;
  height: 100%;

  overflow-x: hidden;
  overflow-y: auto;
}

.btr-properties-list,
.btr-property {
  display: contents;
}

.btr-properties div.btr-property-group {
  grid-column: auto / span 3;

  position: relative;
  display: flex;

  height: 22px;

  background-color: #e9e9e9;
  border-bottom: 1px solid #eeeeee;

  align-items: center;
  font-weight: bold;
  color: #000;

  user-select: none;
  -moz-user-select: none;
}

.btr-properties .btr-property-group:hover {
  background: #e4eefe;
}

.btr-properties .btr-property-group.closed + .btr-properties-list {
  display: none;
}

.btr-property > div {
  border-bottom: 1px solid #eeeeee;
}

.btr-property-name {
  border-right: 1px solid #eeeeee;
  padding-right: 5px;
}

.btr-property-more {
  width: 20px;
}

.btr-property-name,
.btr-property-value {
  height: 22px;
  line-height: 22px !important;

  overflow: hidden;
  text-overflow: ellipsis;

  cursor: default;
}

.btr-property-readonly {
  opacity: 0.6;
}

.btr-property-value {
  position: relative;
  padding: 0 5px;
  min-width: 110px;
}

.btr-property-value .more {
  position: absolute;
  right: 1px;
  width: 16px;

  user-select: none;
  -moz-user-select: none;

  z-index: 2;
}

.btr-property-value .btr-color3-preview {
  display: block;
  float: left;
  width: 13px;
  height: 13px;
  border: 1px solid #000;
  margin-top: 5px;
  margin-right: 6px;
}

.btr-property-value input[type="checkbox"] {
  margin: 0;
  margin-top: 3px;
  pointer-events: none;
}

.btr-property-value input[type="text"] {
  position: absolute;
  display: block;
  background: none;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  resize: none;
  color: #191919;

  overflow: hidden;
  white-space: nowrap;
}

.btr-property-value .more + input[type="text"] {
  padding-right: 24px;
}
