.wiring_editor .canvas {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 100%;
    height: 100%;
}

.wiring_editor {
    -moz-user-select: none;
    -webkit-user-select: none;
    font-size:12px;
    font-family: "Courier New", courier;
}

.wiring_editor .menubar {
    white-space: nowrap;
    font-size: 0.6em;
    width: 180px;
    vertical-align: middle;
    overflow-x: visible;
    overflow-y: auto;
}

.wiring_editor .menubar .disabled {
    pointer-events: none;
}

.wiring_editor .grid {
    font-size: 1em;
    background: url('../images/wiring/transp-grid-gray.png');
    box-shadow: inset 0 0 10px #000000;
}

.wiring_editor .grid.selecting {
    cursor: url('../images/wiring/cursorAdd.png'), crosshair;
}

.wiring_editor .ioperator {
    -webkit-transition: background 500ms ease-in 250ms;
    -moz-transition: background 500ms ease-in 250ms;
    -o-transition: background 500ms ease-in 250ms;
    background: -webkit-linear-gradient(white, rgba(206,220,180,0.8));
    background: -moz-linear-gradient(white, rgba(206,220,180,0.8));
    background: -o-linear-gradient(white, rgba(206,220,180,0.8));
}

.wiring_editor .iwidget {
    -webkit-transition: background 500ms ease-in 250ms;
    -moz-transition: background 500ms ease-in 250ms;
    -o-transition: background 500ms ease-in 250ms;
    background: -webkit-linear-gradient(white, rgba(206,220,231,0.8));
    background: -moz-linear-gradient(white, rgba(206,220,231,0.8));
    background: -o-linear-gradient(white, rgba(206,220,231,0.8));
}

.wiring_editor .ioperator.editing {
    background: rgba(206,220,180,0.8);
}

.wiring_editor .iwidget.editing {
    background: rgba(206,220,231,0.8);
}

.wiring_editor .ioperator, .wiring_editor .iwidget {
    line-height: 2.2em;
    padding-bottom: 2px;
    border: 1px solid;
    padding-bottom: 8px;
    border-radius: 1.25ex 1.25ex 1.25ex 1.25ex;
    box-shadow: 4px 4px 4px gray;
    font-family: "Courier New", courier;
    pointer-events: auto;
}

.wiring_editor .ioperator.editing .header, .wiring_editor .iwidget.editing .header {
    cursor: default;
}

.wiring_editor .ioperator .header, .wiring_editor .iwidget .header {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    overflow: hidden;
    border-radius: 5px;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #1D1D2F;
    cursor: move;
}

.wiring_editor .grid .header .closebutton {
    top: -0.9em;
    float: right;
}

.wiring_editor .grid .sources .closebutton {
    top: 14px;
    right: 12px;
}

/*edit targets and sources positions*/
.wiring_editor .grid .header .editPos_button {
    float: left;
    background-image: url(../images/icons-sprite.png);
    background-position: -49px -337px;
    top: -10px;
    width: 16px;
    height: 16px;
}

.wiring_editor .grid .generalHighlight_button {
    float: right;
    background: url('../images/wiring/big_eye1.png');
    width: 20px;
    height: 20px;
    z-index: 100;
}

.wiring_editor .grid .generalHighlight_button.activated {
    background: url('../images/wiring/big_eye2.png');
}

.wiring_editor .grid .header .highlight_button {
    float: left;
    background: url('../images/wiring/eye1.png');
    top: -0.9em;
    width: 16px;
    height: 16px;
}

.wiring_editor .grid .header .highlight_button.activated {
    background: url('../images/wiring/eye2.png');
}

.wiring_editor .grid .ioperator, .wiring_editor .grid .iwidget {
    position: absolute;
}

.wiring_editor .menubar .ioperator, .wiring_editor .menubar .iwidget {
    position: relative;
    padding-bottom: 0em;
    margin: 1em 1em;
    font-size: 1.2em;
    vertical-align: middle;
    line-height: 1em;
    z-index: 10;
    border-radius: 0.25ex 4.7ex 0.25ex 0.25ex;
}

.wiring_editor .targets {
    float: left;
    text-align: left;
    padding-left: 1em;
    padding-right: 1em;
}

.wiring_editor .sources {
    float: right;
    text-align: right;
    padding-left: 1em;
    padding-right: 1em;
}

.wiring_editor .sources > div, .wiring_editor .targets > div {
    border-radius: 15px;
    -webkit-transition: background-color 500ms ease-in 250ms, color 750ms ease-out, box-shadow 500ms ease-in 250ms;
    -moz-transition: background-color 500ms ease-in 250ms, color 750ms ease-out, box-shadow 500ms ease-in 250ms;
    -o-transition: background-color 500ms ease-in 250ms, color 750ms ease-out, box-shadow 500ms ease-in 250ms;
}

.wiring_editor .sources.editing > div {
    background: rgba(0, 168, 151, 0.4);
    color: black;
    cursor: move;
}

.wiring_editor .targets.editing > div.highlight_main {
    box-shadow: inset 0 0 10px hsla(20, 100%, 50%, 0.5);
    color: #FF5500;
}

.wiring_editor .sources.editing > div.highlight_main {
    box-shadow: inset 0 0 10px hsla(240, 94%, 50%, 0.5);
    color: blue;
}

.wiring_editor .targets.editing > div {
    background: rgba(255, 151, 82, 0.4);
    color: black;
    cursor: move;
}

.wiring_editor .sources > div {
    padding-left: 10px;
    margin-top: 2px;
	margin-bottom: 2px;
}

.wiring_editor .targets > div {
    padding-right: 10px;
    margin-top: 2px;
	margin-bottom: 2px;
}

.wiring_editor .sources > div.moving {
    box-shadow: inset 0 0 10px hsla(240, 94%, 50%, 0.5);
    color: blue;
}

.wiring_editor .targets > div.moving {
    box-shadow: inset 0 0 10px hsla(20, 100%, 50%, 0.5);
    color: #FF5500;;
}

.wiring_editor .sources > div.moving.highlight_main{
    color: blue;
}

.wiring_editor .targets > div.moving.highlight_main{
    color: #FF5500;;
}

.wiring_editor .sources  div div {
	display: inline-block;
}

.wiring_editor .targets > div div {
    display: inline-block;
}

/* clone mini widget for drag and drop */
.wiring_editor .border_layout .ioperator.clon, .wiring_editor .border_layout .iwidget.clon {
    position: absolute;
    font-size: 0.7em;
    z-index: 20;
    border-radius: 0.25ex 4.7ex 0.25ex 0.25ex;
}

.wiring_editor .border_layout .ioperator.clon .header, .wiring_editor .border_layout .iwidget.clon .header {
    padding-top: 4px;
}

/* clone slots */
.wiring_editor .border_layout .source_clon {
    position: absolute;
    margin-top: 2px;
    background: rgba(0, 168, 151, 0.6);
    color: blue;
	border-radius: 15px;
    opacity: 0.5;
    cursor: move;
}

.wiring_editor .border_layout .target_clon {
    position: absolute;
    margin-top: 2px;
    background: rgba(255, 151, 82, 0.6);
    color: #FF5500;
    border-radius: 15px;
    opacity: 0.5;
    cursor: move;
}

.wiring_editor .border_layout .source_clon .labelDiv{
    display: inline-block;
    float: right;
    margin-right: 14px;
    margin-top: 6px;
}

.wiring_editor .border_layout .target_clon .labelDiv{
    display: inline-block;
    float: left;
    margin-left: 14px;
    margin-top: 6px;
}

.wiring_editor .border_layout .target_clon .anchor, .wiring_editor .border_layout .source_clon .anchor, .wiring_editor .border_layout .target_clon .multiconnector_icon, .wiring_editor .border_layout .source_clon .multiconnector_icon {
    display: none;
}

.wiring_editor .border_layout .ioperator.clon .header, .wiring_editor .border_layout .iwidget.clon .header {
    padding-top: 4px;
}

/* SELECTED OBJECTS */
.wiring_editor .grid .ioperator.selected {
    background-color: #DF7A62;
    z-index: 15;
    box-shadow: 0 0 20px #000000;
    background: rgb(206, 220, 180);
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
}

 .wiring_editor .grid .iwidget.selected {
    background-color: #DF7A62;
    z-index: 15;
    box-shadow: 0 0 20px #000000;
    background: rgb(206, 220, 231);
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
}

.wiring_editor .grid .multiconnector.source.selected {
    background: rgb(122, 152, 192);
}

.wiring_editor .grid .multiconnector.target.selected {
    background: rgba(239, 130, 6, 0.7);
}

.wiring_editor .grid .multiconnector.disabled {
    opacity: 1;
}

/*ANCHORS*/
.wiring_editor .anchor {
    background: rgb(122, 152, 192);
    position: absolute;
    display: inline;
    width: 16px;
    height: 16px;
    margin: 2px;
}

.wiring_editor .grid .anchor {
    cursor: pointer;
}

.wiring_editor .sources .anchor {
    background: url('../images/wiring/blue_ball.png');
    right: -1em;
}

.wiring_editor .targets .anchor {
    background: url('../images/wiring/orange_ball.png');
    left: -1em;
}

.wiring_editor .menubar .sources .anchor {
    width: 1em;
    height: 1em;

}

.wiring_editor .menubar .targets .anchor {
    width: 1em;
    height: 1em;

}

.wiring_editor .sources .anchor.disabled {
    opacity: 0.7;
    cursor: no-drop;
}

.wiring_editor .targets .anchor.disabled {
    opacity: 0.7;
    cursor: no-drop;
}

.wiring_editor .sources .highlight, .wiring_editor .targets .highlight_main {
    background: #FF9854;
    color: white;
}

.wiring_editor .targets .highlight, .wiring_editor .sources .highlight_main {
    background: #0A9;
    color: white;
}

.wiring_editor .sources .highlight span, .wiring_editor .targets .highlight_main span {
    pointer-events: none;
}

.wiring_editor .targets .highlight span, .wiring_editor .sources .highlight_main span {
    pointer-events: none;
}

/*ARROWS*/
.wiring_editor .canvas .arrow {
    fill:   none;
    cursor: crosshair;
    opacity: 0.3;
}

.wiring_editor .canvas .arrow.selected {
    opacity: 1;
}

.wiring_editor .canvas .arrow.emphasize{
    opacity: 1;
}

.wiring_editor .canvas .arrow .arrowbody {
    stroke: rgb(214, 214, 214);
    stroke-width: 5;
}

.wiring_editor .canvas .arrowborder {
    stroke: rgb(110, 110, 110);
    stroke-width: 8;
}

.wiring_editor .canvas .pullerBall {
    stroke: black;
    fill:   rgba(138, 131, 226, 0.9);
    stroke-width: 1;
    display: none;
}

.wiring_editor .canvas .pullerLine {
    stroke: rgb(128, 128, 128);
    stroke-width: 1;
    display: none;
    stroke-dasharray: 2;
}

.wiring_editor .canvas .selected .arrowbody, .wiring_editor .canvas .selected.emphasize .arrowbody {
    stroke: rgb(214, 214, 214);
    stroke-width: 5;
}

.wiring_editor .canvas .selected .arrowborder, .wiring_editor .canvas .selected.emphasize .arrowborder {
    stroke: orange;
    stroke-width: 10;
}

.wiring_editor .canvas .emphasize .arrowbody {
    stroke: rgba(138, 131, 226, 0.9);
    fill:   none;
    stroke-width: 5;
}

.wiring_editor .canvas .emphasize .arrowborder {
    stroke: black;
    fill:   none;
    stroke-width: 8;
}

.wiring_editor .canvas .closer {
    stroke: black;
    fill:   red;
    fill-opacity:1;
    stroke-width: 1;
    display: none;
}

.wiring_editor .canvas .selected .closer {
    display: inline;
}

.wiring_editor .canvas .selected .pullerBall {
    display: inline;
}

.wiring_editor .canvas .selected .pullerLine {
    display: inline;
}

.wiring_editor .menubar .styled_expander {
    margin: 3px;
    border: none;
}

.wiring_editor .menubar .styled_expander .widgetsIcon{
    background: url('../images/wiring/blue_arrow_right.png');
    position: absolute;
    left: 5px;
    height: 12px;
    width: 6px;
}

.wiring_editor .menubar .styled_expander .operatorsIcon{
    background: url('../images/wiring/blue_arrow_right.png');
    position: absolute;
    left: 5px;
    height: 12px;
    width: 6px;
}

.wiring_editor .canvas .highlighted .arrowborder {
    stroke: #DF7A62;
    fill:   none;
    stroke-width: 11;
}

.wiring_editor .menubar .styled_expander {
    margin: 3px;
    border: none;
}

.wiring_editor .menubar .styled_expander .title {
    font-size: 1.8em;
    font-style: normal;
    text-shadow: none;
}

.wiring_editor .menubar .styled_expander.expanded .contents {
    padding: 1ex;
}

/* multiconnector */

.wiring_editor .grid .multiconnector {
    position: absolute;
    border-radius: 15px;
    border: 1px solid;
    border-color: gray;
    pointer-events: auto;
}

.wiring_editor .grid .multiconnector.source {
    background: rgb(122, 152, 192);
    background: -webkit-radial-gradient(center, white, rgba(122, 152, 192, 0.7));
    background: -moz-radial-gradient(center, white, rgba(122, 152, 192, 0.7));
    background: -o-radial-gradient(center, white, rgba(122, 152, 192, 0.7));
}

.wiring_editor .grid .multiconnector.target {
    background: -webkit-radial-gradient(center, white, rgba(239, 130, 6, 0.7));
    background: -moz-radial-gradient(center, white, rgba(239, 130, 6, 0.7));
    background: -o-radial-gradient(center, white, rgba(239, 130, 6, 0.7));
}

.wiring_editor .grid .multiconnector .dragZone {
    background: url('../images/wiring/flechasMov.png');
    position: absolute;
    border-radius: 10px;
    width: 16px;
    height: 16px;
    left: 7px;
}

.wiring_editor .grid .multiconnector.target .anchor.main {
    background: transparent;
    right: -0.98em;
    pointer-events: none;
}

.wiring_editor .grid .multiconnector.source .anchor.main {
    background: transparent;
    left: -0.98em;
    pointer-events: none;
}

.wiring_editor .grid .multiconnector_icon {
    background: rgb(122, 152, 192);
    position: absolute;
    display: inline;
    width: 9px;
    height: 9px;
    margin: 2px;
}

.wiring_editor .grid .multiconnector_icon{
    cursor: pointer;
}
.wiring_editor .grid .sources .multiconnector_icon {
    background: url('../images/wiring/multiconnector_button.png');
    float: right;
    right: -10px;
    position: relative;
}

.wiring_editor .grid .targets .multiconnector_icon {
    background: url('../images/wiring/multiconnector_button.png');
    float: left;
    left: -11px;
    position: relative;
}

.wiring_editor .grid .multiconnector.source .closebutton {
    top: 14px;
    right: 12px;
    z-index: 30;
}

.wiring_editor .grid .multiconnector.target .closebutton {
    top:14px;
    left: 20px;
    z-index: 30;
}
