/* layout ********************/
html,
body {
  height: 100%;
}
.navbar {
  z-index: 1000;
}
.container-main {
  position: absolute;
  top: 53px;
  bottom: 0;
  left: 0;
  right: 0;
}
#canvas {
  margin: 0;
  border: 0;
  height: 100%;
  max-height: inherit;
  overflow: scroll !important;
  position: relative;
}
.sk-cube-container {
  background-color: rgba(0, 0, 0, 0.5);
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 999;
}
.sk-cube-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 80;
}
.sk-cube-grid .sk-cube {
  background-color: #1abc9c !important;
}
.sk-cube-grid-s {
  margin-top: -15px !important;
  margin-left: -15px !important;
  width: 30px !important;
  height: 30px !important;
}
.sk-cube-grid-m {
  margin-top: -25px !important;
  margin-left: -25px !important;
  width: 50px !important;
  height: 50px !important;
}
.sk-cube-grid-l {
  margin-top: -40px !important;
  margin-left: -40px !important;
  width: 80px !important;
  height: 80px !important;
}
.unit-warning {
  border: orange 2px solid !important;
}
.form-group-sm .multiselect {
  padding: 4px 0 0 4px !important;
}
.form-group-sm .multiselect ul.select2-choices {
  min-height: 28px !important;
}
.form-group-sm .multiselect ul.select2-choices li {
  height: 24px !important;
  line-height: 14px;
}
.form-group-sm .multiselect ul.select2-choices li.select2-search-field input {
  height: 24px !important;
}
.context-menu-list {
  width: 150px !important;
  font-size: 0.85em !important;
  min-width: 100px !important;
}
.context-menu-list .context-menu-icon-preview {
  background-image: url('preview.svg');
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: 8px center;
}
.context-menu-list .context-menu-icon-preview.context-menu-hover {
  background-image: url('preview-light.svg');
}
.select2-container {
  width: 100% !important;
  min-width: auto !important;
}
.select2-drop {
  min-width: auto !important;
}
.form-group-sm .select2-choice {
  padding-top: 6px;
  padding-bottom: 6px;
}
.kj-dialog-content {
  margin: 0 -15px !important;
}
.video-js {
  padding-bottom: 0 !important;
}
.image-preview {
  width: 800px;
  height: 600px;
  background-position: center;
  background-color: #eee;
  background-repeat: no-repeat;
  background-size: auto;
}
/* dialog upload ***************/
#dialog-content-upload .breadcrumb {
  margin-bottom: 10px;
}
#dialog-content-upload .file-list {
  height: 400px;
  overflow: scroll;
  margin-left: -5px;
  margin-right: -5px;
  margin-top: 10px;
  padding: 0;
  background: #eee;
}
#dialog-content-upload .file-list li {
  width: 140px;
  height: 140px;
  display: block;
  float: left;
  margin: 0 5px 20px;
  position: relative;
}
#dialog-content-upload .file-list li .content {
  height: 85%;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}
#dialog-content-upload .file-list li .name {
  line-height: 30px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#dialog-content-upload .file-list li .actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
}
#dialog-content-upload .file-list li .actions a {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}
#dialog-content-upload .file-list li.file {
  background: #eee;
}
#dialog-content-upload .file-list li.file .ext {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0 3px;
}
#dialog-content-upload .file-list li.file video {
  width: 100%;
  height: 100%;
}
#dialog-content-upload .file-list li.file .icon {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 20%;
  height: 20%;
  cursor: pointer;
}
#dialog-content-upload .file-list li.selected {
  opacity: 0.5;
}
#dialog-content-upload .file-list li.dir .content {
  background-image: url(dir.png?v=1);
}
#dialog-content-upload .progress {
  margin-top: 10px;
}
/* dialog content ***************/
.dialog-content-tag .tag-content-image,
.dialog-content-tag .tag-logo-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 35px;
  width: 35px;
  position: absolute;
  left: -20px;
  top: 0;
}
.dialog-content-tag .tag-image-selector {
  cursor: pointer !important;
}
.dialog-content-menu .menu-item-thumb {
  position: absolute;
  width: 35px;
  height: 35px;
  background-size: contain;
  right: -20px;
  top: 0px;
}
.dialog-content-menu .dialog-menu-item {
  border-top: #ddd 1px solid;
}
.dialog-content-menu .dialog-menu-item .menu-logo-image {
  width: 35px;
  height: 35px;
  background-size: contain;
  left: 0px;
  top: 0px;
}
.dialog-content-menu .dialog-menu-item .actions {
  text-align: right;
}
.dialog-content-menu .dialog-menu-item .actions button {
  margin-top: 3px;
}
/* dialog content scene ***************/
.kj-dialog-content .dialog-buttons {
  margin-top: 15px;
}
.dialog-content-scene .bootstrap-switch {
  margin-top: 3px;
}
.dialog-content-scene,
.dialog-content-time {
  position: relative;
}
.dialog-content-scene .slider,
.dialog-content-time .slider {
  height: 60px;
}
.dialog-content-scene .slider .info,
.dialog-content-time .slider .info {
  line-height: 60px;
  text-align: center;
}
.dialog-content-scene .panel-container,
.dialog-content-time .panel-container {
  background: #ecf0f1;
  overflow-y: scroll;
}
.dialog-content-scene .panel-container .panel-item,
.dialog-content-time .panel-container .panel-item {
  position: relative;
  border-bottom: #fff 1px solid;
  height: 15px;
}
.dialog-content-scene .panel-container .panel-item .bar,
.dialog-content-time .panel-container .panel-item .bar {
  height: 14px;
  line-height: 14px;
  width: 40px;
  position: absolute;
  background: #ee6e73;
  text-align: center;
  border-radius: 7px;
  cursor: pointer;
  color: #fff;
  opacity: 0.5;
  font-size: 12px;
}
.dialog-content-scene .panel-container .panel-item.selected .bar,
.dialog-content-time .panel-container .panel-item.selected .bar {
  opacity: 1;
}
.dialog-content-scene .subtitle-handler,
.dialog-content-time .subtitle-handler {
  width: 20px;
  height: 30px;
  position: absolute;
  right: -20px;
  top: 231px;
  z-index: 11;
  cursor: pointer;
  background: url(arrow.svg) no-repeat;
  background-position: center;
  background-size: 20px auto;
  opacity: 0.5;
}
.dialog-content-scene .subtitle-handler.expanded,
.dialog-content-time .subtitle-handler.expanded {
  transform: rotate(180deg);
}
.dialog-content-scene .subtitle-container,
.dialog-content-time .subtitle-container {
  display: none;
  position: absolute;
  left: 820px;
  top: 0;
  width: 180px;
  height: 447px;
  z-index: 100;
}
.dialog-content-scene .subtitle-container .add-subtitle,
.dialog-content-time .subtitle-container .add-subtitle {
  height: 46px;
  text-align: center;
  line-height: 46px;
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 1px;
  cursor: pointer;
}
.dialog-content-scene .subtitle-container .subtitle-list,
.dialog-content-time .subtitle-container .subtitle-list {
  height: 400px;
  width: 100%;
  overflow: scroll;
  background: rgba(255, 255, 255, 0.5);
}
.dialog-content-scene .subtitle-container .subtitle-list .subtitle-item,
.dialog-content-time .subtitle-container .subtitle-list .subtitle-item {
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: rgba(0, 0, 0, 0.2) 1px solid;
  line-height: 30px;
  padding: 0 10px;
  cursor: move;
  font-size: 11px;
}
.dialog-content-scene .subtitle-container .subtitle-list .subtitle-item.selected,
.dialog-content-time .subtitle-container .subtitle-list .subtitle-item.selected {
  background-color: rgba(255, 255, 255, 0.7);
}
.dialog-content-scene .subtitle-container .subtitle-list .subtitle-item.sortable-ghost,
.dialog-content-time .subtitle-container .subtitle-list .subtitle-item.sortable-ghost {
  background: rgba(255, 255, 255, 0.3);
}
.dialog-content-scene .subtitle-container .subtitle-list .subtitle-item .text,
.dialog-content-time .subtitle-container .subtitle-list .subtitle-item .text {
  display: inline-block;
  width: 80%;
  height: 30px;
  padding-left: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
}
.dialog-content-scene .subtitle-container .subtitle-list .subtitle-item .button,
.dialog-content-time .subtitle-container .subtitle-list .subtitle-item .button {
  float: right;
  display: inline-block;
  width: 10%;
  text-align: center;
  height: 30px;
  cursor: pointer;
}
.dialog-content-scene .video-box,
.dialog-content-time .video-box {
  width: 800px;
  height: 400px;
  margin-top: 10px;
  position: relative;
  background: #ddd;
  overflow: hidden;
}
.dialog-content-scene .video-box:first-child,
.dialog-content-time .video-box:first-child {
  margin: 0;
}
.dialog-content-scene .video-box video,
.dialog-content-time .video-box video {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.dialog-content-scene .video-box video.tb,
.dialog-content-time .video-box video.tb {
  height: 450px;
  transform: scaleY(1.79) translateY(125px);
}
.dialog-content-scene .video-box .video-mask,
.dialog-content-time .video-box .video-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 10;
  background-image: url(grid.png);
}
.dialog-content-scene .video-box .video-mask .h,
.dialog-content-time .video-box .video-mask .h {
  position: absolute;
  width: 19px;
  height: 10px;
  border-bottom: rgba(255, 255, 255, 0.3) 1px solid;
  left: 390px;
  top: 190px;
}
.dialog-content-scene .video-box .video-mask .v,
.dialog-content-time .video-box .video-mask .v {
  position: absolute;
  width: 10px;
  height: 19px;
  border-right: rgba(255, 255, 255, 0.3) 1px solid;
  left: 390px;
  top: 190px;
}
.dialog-content-scene .video-box .subtitle-el,
.dialog-content-time .video-box .subtitle-el {
  position: absolute;
  width: 200px;
  height: 50px;
  line-height: 18px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 7px;
  word-wrap: break-word;
  overflow: hidden;
  z-index: 11;
  background-image: url(center.png);
  background-position: center center;
  background-repeat: no-repeat;
  font-size: 11px;
  display: table-cell;
  vertical-align: middle;
}
.dialog-content-scene .video-box .subtitle-el.subtitle-el-actived,
.dialog-content-time .video-box .subtitle-el.subtitle-el-actived {
  padding: 5px;
  cursor: move;
  border: red 2px solid;
}
.dialog-content-scene .video-box .subtitle-el.subtitle-el-disabled,
.dialog-content-time .video-box .subtitle-el.subtitle-el-disabled {
  cursor: default;
  background: rgba(255, 255, 255, 0.5);
}
.dialog-content-scene .video-box .subtitle-el.subtitle-el-preview,
.dialog-content-time .video-box .subtitle-el.subtitle-el-preview {
  cursor: default;
  background: rgba(255, 255, 255, 0.9);
}
.dialog-content-scene .video-box .target-el,
.dialog-content-time .video-box .target-el {
  position: absolute;
  font-size: 12px;
  text-align: center;
  opacity: 0.7;
  z-index: 11;
  border: 2px solid transparent;
  box-sizing: content-box;
}
.dialog-content-scene .video-box .target-el .title,
.dialog-content-time .video-box .target-el .title {
  height: 20px;
  line-height: 20px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dialog-content-scene .video-box .target-el .item,
.dialog-content-time .video-box .target-el .item {
  height: 24px;
  border-radius: 12px;
  line-height: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dialog-content-scene .video-box .target-el .image-container,
.dialog-content-time .video-box .target-el .image-container {
  padding: 12px;
}
.dialog-content-scene .video-box .target-el .item-image,
.dialog-content-time .video-box .target-el .item-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
}
.dialog-content-scene .video-box .target-el.tag-item .item-image,
.dialog-content-time .video-box .target-el.tag-item .item-image {
  background-size: contain;
}
.dialog-content-scene .video-box .target-el.menu-item .item,
.dialog-content-time .video-box .target-el.menu-item .item {
  margin-bottom: 10px;
}
.dialog-content-scene .video-box .target-el.menu-item .list-horizontal .item,
.dialog-content-time .video-box .target-el.menu-item .list-horizontal .item {
  float: left;
  margin-right: 10px;
}
.dialog-content-scene .video-box .target-el.menu-item .list-horizontal .item:last-child,
.dialog-content-time .video-box .target-el.menu-item .list-horizontal .item:last-child {
  margin: 0;
}
.dialog-content-scene .video-box .target-el.confirm-item .item,
.dialog-content-time .video-box .target-el.confirm-item .item {
  margin-bottom: 10px;
}
.dialog-content-scene .video-box .target-el.confirm-item .list-horizontal .item,
.dialog-content-time .video-box .target-el.confirm-item .list-horizontal .item {
  float: left;
  margin-right: 10px;
}
.dialog-content-scene .video-box .target-el.confirm-item .list-horizontal .item:last-child,
.dialog-content-time .video-box .target-el.confirm-item .list-horizontal .item:last-child {
  margin: 0;
}
.dialog-content-scene .video-box .target-el.image-item .item,
.dialog-content-time .video-box .target-el.image-item .item {
  background: none;
  border-radius: 0;
}
.dialog-content-scene .video-box .target-el.area-item,
.dialog-content-time .video-box .target-el.area-item {
  width: 100%;
  height: 100%;
  display: table;
  background: rgba(255, 255, 255, 0.3);
}
.dialog-content-scene .video-box .target-el.area-item .title,
.dialog-content-time .video-box .target-el.area-item .title {
  display: table-cell;
  line-height: 100%;
  vertical-align: middle;
}
.dialog-content-scene .video-box .target-el.target-el-actived,
.dialog-content-time .video-box .target-el.target-el-actived {
  opacity: 0.7;
  border: red 2px solid;
}
.dialog-content-scene .video-box .target-el.target-el-disabled,
.dialog-content-time .video-box .target-el.target-el-disabled {
  cursor: default;
  opacity: 0.5;
}
.dialog-content-scene .video-box .target-el.target-el-preview,
.dialog-content-time .video-box .target-el.target-el-preview {
  cursor: default;
  opacity: 0.9;
}
.dialog-content-scene #player-control,
.dialog-content-time #player-control {
  height: 60px;
}
.dialog-content-scene #player-control #range-control,
.dialog-content-time #player-control #range-control {
  width: 100%;
  height: 30px !important;
  display: block;
}
.dialog-content-scene #player-control a.play-pause,
.dialog-content-time #player-control a.play-pause {
  width: 50px;
  line-height: 30px;
  height: 30px;
  display: inline-block;
  text-align: left;
}
.dialog-content-scene #player-control #range-info,
.dialog-content-time #player-control #range-info {
  display: inline-block;
  width: 100px;
  line-height: 30px;
  height: 30px;
  text-align: right;
  float: right;
  color: #999;
  font-size: 13px;
}
.dialog-content-time .video-box {
  margin: 0;
}
.dialog-content-image #dialog-image-input {
  cursor: pointer;
}
.dialog-content-image #dialog-image-thumb {
  height: 42px;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
}
/*#minimap {
    position: fixed;
    width: 125px;
    height: 125px;
    top: 20px;
    right: 0;
    background-color: #EEE;
    border: 1px solid #AAA;
    opacity: 0.9;
    z-index: 1;
}

.minimap-node {
    position: absolute;
    background-color: rgb(96, 122, 134);
}

.minimap-viewport {
    position: absolute;
    box-sizing: border-box;
    background-color: rgba(79, 111, 126, 0.4);
    z-index: 1;
    cursor: move;
}*/
/* Common **************************/
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* scene ***************************/
.group-container {
  position: absolute;
  width: 300px;
  height: 200px;
  background: #ecf0f1;
  cursor: move;
  box-sizing: content-box;
  border-radius: 3px;
}
.group-container .resize {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 20px;
  height: 20px;
  cursor: nw-resize;
  background: url(resize.svg) no-repeat;
  background-position: right bottom;
  background-size: 10px 10px;
  opacity: 0.2;
  display: none;
}
.group-container.jtk-group-collapsed {
  height: 40px;
}
.group-container.jtk-group-expanded .glyphicon-resize-full::before {
  content: "\e097";
}
.group-container.jtk-group-expanded .resize {
  display: block;
}
.group-container > .panel-heading {
  height: 40px;
  line-height: 40px;
  font-size: 16px;
}
.group-container > .panel-heading .title {
  height: 40px;
}
.group-container > .panel-heading .glyphicon {
  line-height: 40px;
}
.group-container-temp > .panel-heading {
  background: #3498db !important;
}
.panel-heading {
  background: #1abc9c !important;
  color: white;
  padding: 0 10px !important;
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  font-size: 14px;
}
.panel-heading .title {
  width: 70%;
  height: 30px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-heading .actions {
  position: absolute;
  right: 5px;
  top: 0;
}
.panel-heading .actions .glyphicon {
  margin: 0 5px;
  cursor: pointer;
  line-height: 30px;
}
.panel-body {
  padding: 10px !important;
  background: #fff;
  font-size: 14px;
}
.area {
  position: absolute;
  width: 90px;
}
.area .panel-body {
  text-align: center;
}
.tag {
  position: absolute;
  width: 90px;
}
.tag .panel-body {
  text-align: center;
}
.tag .panel-body .panel-content {
  line-height: 20px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag .panel-body img {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto;
}
.control {
  width: 95px;
}
.menu {
  position: absolute;
  width: 130px;
  cursor: move;
  text-align: center;
  background: #fff;
}
.menu .list-group {
  margin: 0;
}
.menu .list-group .list-group-item {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 0;
  border: 0;
  border-bottom: #eee 1px solid;
  height: 30px;
  line-height: 30px;
  padding: 0 5px;
  font-size: 14px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.menu .list-group .list-group-item:last-child {
  border: 0;
}
#kejian {
  width: 100px;
  height: 41px;
  position: absolute;
  top: -11px;
  left: 50%;
  background-image: url(kejian.png);
  background-size: 100% 100%;
  margin-left: -50px;
}
.jtk-drag-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.aLabel {
  border: #999 1px solid;
  padding: 1px 3px;
  background: white;
  border-radius: 3px;
  font-size: 12px;
  line-height: 12px;
  cursor: pointer;
  -moz-user-select: none;
  user-select: none;
}
.jtk-drag-hover {
  outline: 4px solid cornflowerblue;
}
.jtk-connector path {
  cursor: pointer;
}
.katavorio-ghost-proxy {
  outline: 2px solid red;
}
.jtk-group-collapsed .panel-heading {
  border-radius: 3px;
}
.jtk-group-collapsed .panel-body,
.jtk-group-collapsed .tag,
.jtk-group-collapsed .menu,
.jtk-group-collapsed .area,
.jtk-group-collapsed .name {
  display: none;
}
.jtk-endpoint {
  z-index: 100;
}
.jtk-connector {
  z-index: 101;
}
.jtk-overlay {
  z-index: 102;
}
.component {
  z-index: 50;
}
