#canvas-container {
    position: absolute;
    width: calc(100% - 60px);
    height: 100%;
}

#webgl_canvas {
    position: absolute;
}

/*########## Toolbar ##########*/
.toolbar-container {
    position: absolute;
    height: 100%;
}
.expandable-sidebar {
  z-index: 1000;
  flex: 0 1 auto;
  min-width: 300px;
  width: 300px;
  background-color: var(--fwe-white);
  position: relative;
  display: flex;
  flex-direction: column;
}
.expandable-sidebar > *:not(.sidebar-toggler) {
  width: 100% !important;
}
.expandable-sidebar .sidebar-toggler {
  z-index: 1001;
  width: 20px;
  height: 120px;
  background-color: transparent;
  position: absolute;
  top: 50%;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}
.expandable-sidebar .sidebar-toggler .fwe-icon {
  position: absolute;
  margin-top: 32px;
  transition: 0.3s ease-in-out;
}
.expandable-sidebar .sidebar-toggler .fwe-icon::before {
  padding: 0px !important;
}
.expandable-sidebar.sidebar-left {
  margin-right: auto;
}
.expandable-sidebar.sidebar-left .sidebar-toggler {
  border-left: 20px solid var(--fwe-white);
  right: -20px;
  transform: translateY(-60px);
}
.expandable-sidebar.sidebar-left .sidebar-toggler .fwe-icon {
  right: 0px;
  margin-right: 2px;
}
.expandable-sidebar.sidebar-right {
  margin-left: auto;
}
.expandable-sidebar.sidebar-right .sidebar-toggler {
  border-right: 20px solid var(--fwe-white);
  left: -20px;
  transform: translateY(-60px);
}
.expandable-sidebar.sidebar-right .sidebar-toggler .fwe-icon {
  left: 0px;
  margin-left: 2px;
}
.expandable-sidebar.collapsed {
  min-width: 60px;
  width: 60px;
}
.expandable-sidebar.collapsed .sidebar-toggler .fwe-icon::before {
  transform: rotate(180deg);
}
.expandable-sidebar.toolbar-container .fwe-toolbar {
  border-left: none;
}
.expandable-sidebar.toolbar-container .fwe-toolbar-actions,
.expandable-sidebar.toolbar-container .toolbar-action {
  width: 100% !important;
}
.expandable-sidebar.toolbar-container .toolbar-actions {
  display: flex;
  flex-direction: column;
}
.expandable-sidebar.toolbar-container .toolbar-actions > * {
  width: 100%;
}
.expandable-sidebar.toolbar-container a.toolbar-action {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.expandable-sidebar.toolbar-container a.toolbar-action i:first-child {
  width: 60px;
  flex: 0 0 auto;
}
.expandable-sidebar.toolbar-container a.toolbar-action .toolbar-header {
  display: block;
  flex: 1 0 auto;
}
.expandable-sidebar.toolbar-container a.toolbar-action .action-body {
  flex-basis: 100%;
  display: none;
}
.expandable-sidebar.toolbar-container a.toolbar-action.fwe-active {
  color: var(--fwe-text) !important;
  background-color: var(--fwe-gray-300);
  height: unset;
  min-height: 60px;
}
.expandable-sidebar.toolbar-container a.toolbar-action.fwe-active .action-body {
  display: block;
}
.expandable-sidebar.toolbar-container a.toolbar-action:hover {
  color: var(--fwe-text);
  background-color: var(--fwe-gray-300);
}
.expandable-sidebar.toolbar-container.collapsed
  .toolbar-action
  *:not(:first-child) {
  display: none !important;
}

.expandable-sidebar.collapsed .vis-switch {
  display: none;
}

.expandable-sidebar .vis-switch {
  display: flex;
}


/*########## Menus ##########*/

.ui-container {
  position: absolute;
  background-color: var(--fwe-white);
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
  z-index: 11; /* place infront of viewHelper (10) */
}

.ui-action {
  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ui-list-action {
  cursor: pointer;
}

.ui-list-action:hover {
  background-color: var(--fwe-gray-400);
}

.ui-wrapper-3d2-submenu {
  background-color: var(--fwe-gray-300);
  border-right: solid 4px;
  border-color: var(--fwe-hero);
}
  
.ui-action.fwe-active {
  color: var(--fwe-hero) !important;
  background-color: var(--fwe-gray-300);
}

.ui-action:not(.fwe-active):hover {
  color: var(--fwe-text) !important;
  background-color: var(--fwe-gray-300);
}

.ui-context-submenu {
  min-width: 284px;
  background-color: var(--fwe-gray-100);
  border-right: solid 4px;
  border-color: var(--fwe-hero);
}

.capability-icon {
  height: 32px;
  width: 32px;
}

.capability-icon-component {
  content: url('icons/capability-icons/Komponenten_2.svg'); 
}

.capability-icon-workpiece {
  content: url('icons/capability-icons/Werkstueck.svg'); 
}

.capability-icon-linear {
  content: url('icons/capability-icons/aktives_Linearelement.svg'); 
}

.capability-icon-rotation {
  content: url('icons/capability-icons/Rotationsachse.svg'); 
}

.capability-icon-gripper {
  content: url('icons/capability-icons/Greifer_2.svg'); 
}

.capability-icon-gripper-vacuum {
  content: url('icons/capability-icons/Greifer_Vakuum.svg'); 
}

.bootstrap-icon-grid3x3 {
  content: url('icons/grid-3x3.svg');
  
  height: 24px;
  width: 24px;
}

.ui-context-label {
  text-align: center; 
  padding: 0 !important;
  line-height: 34px;
  font-size: 14px;
}

.input-group .ng-invalid {
  border-color: #dc3545!important;
}

.is-invalid {
  border-color: #dc3545!important;
}

.is-invalid:focus {
  border-color: #dc3545!important;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(91 46 51 / 60%);
}

.input-group .ng-invalid:focus {
  border-color: #dc3545!important;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(91 46 51 / 60%);
}

/* .context-input-addon {
  min-width: 48px;
} */

.context-input-addon-last {
  border-left: 0;
  border-radius: 4px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.clickable {
  cursor: pointer;
}

.x-axis-helper {
  border-left: 6px solid #ff0000 !important;
}

.y-axis-helper {
  border-left: 6px solid #00ff00 !important;
}

.z-axis-helper {
  border-left: 6px solid #0000ff !important;
}

.colorpicker.colorpicker-2x {
  height: 127px;
  width: 221px;
}

.colorpicker-2x .colorpicker-saturation {
  height: 100px;
  width: 200px;
}

.colorpicker-2x .colorpicker-hue,
.colorpicker-2x .colorpicker-alpha {
  height: 100px;
  width: 15px;
}

.colorpicker-2x .colorpicker-alpha,
.colorpicker-2x .colorpicker-preview {
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.colorpicker-2x .colorpicker-preview,
.colorpicker-2x .colorpicker-preview div {
  height: 20px;
  font-size: 14px;
}

.colorpicker-saturation .colorpicker-guide {
  height: 10px;
  width: 10px;
  border-radius: 10px;
  margin: -5px 0 0 -5px;
}

.colorpicker-swatch:nth-of-type(7n+0) {
  margin-right: 6px !important;
}

#color-input {
  max-width: 238px;
}

/*########## Sequence Editor ##########*/

.ui-sequence {
  /* top: calc(100% - 500px);  
  left: calc(50% - 500px); */
  bottom: 0;
  left: 0;
  width: calc(100% - 60px);/*temporary, until buttons move*/
  background-color: var(--fwe-gray-100);/*temporary, to tell menus apart*/
}

.ui-sequence-min {
  top: 30px;  
  left: 30px;
}

.ui-sequence-action:hover {
  background-color: var(--fwe-gray-300);
}

/*########## Grid Editor ##########*/

.ui-edit-grid-container {
  background-color: #d8dce1;
}

.ui-seq-interval-line {
  position: absolute;
  width: 1px;
  height: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--fwe-gray-400);
}

.ui-seq-interval-label {
  position: relative;
  top: -18px;
  font-size: 12px;
}

.sequence-header {
  left: 0px; 
  color: var(--fwe-text); 
  background-color: var(--fwe-white);;
}

.sequenzkasten {
  z-index: 1001;
  position: absolute;
  height: 25px;
  background-color: #f2f3f5;
  /* opacity: 0.5; */
  border: 2px solid #a3b2bc;
  border-radius: 4px;
  align-self: center;
}

.seq-hover, 
.seq-active, 
.sequenzkasten.ui-resizable-resizing,
.sequenzkasten.ui-draggable-dragging {
  border-color: #1299de;
  background-color: #c8e6fa;
}

.seq-invalid {
  border-color: #ff3232 !important;
  background-color: #ffe5e5 !important;
}

.seq-maximise-icon {
  transform: rotate( 180deg );            
  transition: transform 400ms ease;
}

.seq-minimize-icon {
  transform: rotate( 0 );            
  transition: transform 400ms ease;
}

.sequenzkasten.seq-hover .ui-resizable-handle,
.sequenzkasten.ui-resizable-resizing .ui-resizable-handle {
  width: 5px;
  opacity: 0.9;
  background-color: #ffffff;
  border: 1px solid #1299de;
  border-radius: 8px;
}

.sequenzkasten.seq-hover.seq-invalid .ui-resizable-handle,
.sequenzkasten.ui-resizable-resizing.seq-invalid .ui-resizable-handle {
  border: 1px solid #ff3232 !important;
}

.sequenzkasten .ui-resizable-e {
  width: 6px;
  right: -3px;
  height: 85%;
  top: unset;
  align-self: center
}

.sequenzkasten .ui-resizable-w {
  width: 6px;
  left: -3px;
  height: 85%;
  top: unset;
  align-self: center
}

.ui-interactable {
  cursor: pointer;
}

#time-slider {
  width: calc(100% - 120px) !important;
  max-width: 500px;
}

#time-slider.ui-slider-horizontal {
  height: 3px;
  border: none;
  background: #d8dce1;
}

#time-slider .ui-slider-handle {
  width: 14px;
  height: 14px;
  top: -6px;

  border: none;
  background: var(--fwe-hero);
  border-radius: 50%;
  cursor: pointer;
}

#time-slider .ui-slider-handle.ui-state-hover,
#time-slider .ui-slider-handle.ui-state-active {
  width: 18px;
  height: 18px;
  top: -9px;
}

#playertriangle {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--fwe-hero);
  z-index: 1004;
}

#playertriangle-indicator {
  position: absolute; 
  height: 600px;  
  width: 2px;
  top: -1px;
  left: -1px;
  background-color: var(--fwe-hero); 
  /* transform-origin: 100% 0;
  transform: rotate(45deg); */
}

#triangle-container {
  position: relative;
  margin-left: 250px;
  width: calc(100% - 250px);
  height: 12px;
}

.popover {
  max-width: 400px;
}

#sequence-container {
  position: absolute;
  height: 220px;
  min-height: 220px;
}

/* #seq-menu-main {
  height: calc(100% - 24px);
} */

#seq-menu-header {
  min-height: 42px;
}

#seq-menu-footer {
  min-height: 24px;
}

#seq-editor-container {
  position: relative;
  /* height: 100%;
  width: 100%;  */
  min-height: 80px; 
  background-color: #ffffff; 
}

.seq-struct-title {
  width: 246px;
}

/* .struct-child {
  display: none;
} */

#struct-obj-container {
  position: absolute;
  height: 100%;
  width: 100%;
  direction: rtl;
  overflow-x: hidden;
  overflow-y: scroll;
}

#seq-intervals-container {
  position: absolute;
  top: -20px;
  left: 258px;
  height: calc(100% + 20px);
  /* width: 100%; */
  pointer-events: none;
  z-index: 1002;
}

.seq-highlight-selection::before {
  position: absolute;
  background-color: var(--fwe-control);
  border-left: solid var(--fwe-hero) 4px;
  left: 0;
  content: "";
  width: 100%;
  /* height: var(--fwe-font-size-xl); */
  height: 25px;
  z-index: 0;
}

.struct-obj {
  z-index: 1001;
}

.struct-obj + .struct-obj {
  border-top: 1px dashed var(--fwe-border) !important;
}

#seq-cycle-time-indicator {
  position: absolute; 
  margin-left: 257px;
  height: 100%;
  width: 3px; 
  /* pointer-events: none; */
  background-color:#ff0000; 
  z-index: 1003;
}

.seq-struct-summary {
  position: relative;
  height: 10px;
}

.seq-struct-title.fwe-icon-arrows-right-2 + .seq-struct-summary {
  display: block;
}

.seq-struct-title.fwe-icon-arrows-collapse + .seq-struct-summary {
  display: none;
}

.seq-summary {
  position: absolute;
  height: 10px;
  background-color: #d9dadc;
  /* border: 1px solid #a3b2bc; */
  border-radius: 4px;
}
