.rule-list {
	list-style: none;
	padding: 0;
	padding-left: 25px;
	margin-bottom: 0;
    margin-left:-4px
}

.main-panel {
	max-width: 100%;
}

.panel-body.sd-rule-editor {
	padding: 0;
}

.rule-list li:last-child {
	margin-bottom: 0;
}

.onoffswitch {
	position: relative;
	width: 90px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.onoffswitch-checkbox {
	display: none;
}

.onoffswitch-label {
	display: block;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid #999999;
	border-radius: 20px;
}

.onoffswitch-inner {
	display: block;
	width: 200%;
	margin-left: -100%;
	transition: margin 0.2s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
	display: block;
	float: left;
	width: 50%;
	height: 30px;
	padding: 0;
	line-height: 30px;
	font-size: 14px;
	color: white;
	font-family: Trebuchet, Arial, sans-serif;
	font-weight: bold;
	box-sizing: border-box;
}

.onoffswitch-inner:before {
	content: attr(data-val-on);
	padding-left: 10px;
	background-color: #428bca;
	color: #FFFFFF;
}

.onoffswitch-inner:after {
	content: attr(data-val-off);
	padding-right: 10px;
	background-color: #EEEEEE;
	color: #999999;
	text-align: right;
}

.onoffswitch-switch {
	display: block;
	width: 18px;
	height: 22px;
	margin: 6px;
	background: #FFFFFF;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 56px;
	border: 2px solid #999999;
	border-radius: 20px;
	transition: all 0.2s ease-in 0s;
}

.onoffswitch-checkbox:checked~ .onoffswitch-inner {
	margin-left: 0;
}

.onoffswitch-checkbox:checked~ .onoffswitch-switch {
	right: 0px;
}

.onoffswitch-inner-offtextfade:after {
	color: rgba(153, 153, 153, 0.20);
}

.onoffswitch-danger .onoffswitch-inner:before {
	background-color: #d9534f;
}

.onoffswitch-space {
	margin-right: 20px;
}

.rule-row {
	border: 2px solid rgba(171, 171, 171, 0.45);
	background-color: rgba(171, 171, 171, 0.10);
	border-radius: 3px;

	margin-top: 2px;
	margin-right: 0px;
	margin-left: 0px;
}

/* ngAnimate transitions */
.ruleitem.ng-leave {
	transition: 0.25s linear all;
	opacity: 1;
}
.ruleitem.ng-leave.ng-leave-active {
	opacity: 0;
}
.ruleitem.ng-enter {
	transition: 0.25s linear all;
	opacity: 0;
}
.ruleitem.ng-enter.ng-enter-active {
	opacity: 1;
}

/* < LG */
@media (max-width: 1199px) {
	.rule-row [class*="col-"] {
		margin-bottom: 15px;
	}
}

/* For some reason the button input groups are too small, so we need to fix this ourselves */
.input-group .input-group-btn button.btn {
	padding: 9px 12px;
}

.rule {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;

	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 8px;
	padding-right: 8px;

	background-color: rgba(171, 171, 171, 0.10);
    border-bottom: 2px solid rgba(171, 171, 171, 0.45);
	border-left: 2px solid rgba(171, 171, 171, 0.45);
}

.action {
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 8px;
	padding-right: 8px;

	margin-top: 1px;

	border: 1px solid rgb(171, 171, 171);
	background-color: rgb(243, 243, 243);
	border-radius: 3px;
}

.action-tag {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
}
.action > .child-nodes {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	flex-wrap: wrap;
}

.child-nodes > .child-node {
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	flex-wrap: wrap;
}

.child-node > label {
	font-size: 15px;
}

.child-node > .child-node-content {
	width: 22%;
}


.rule, .ruleset {
	cursor: move;
}

.rule-attr {
	display: flex;
	flex-direction: column;
}

.ruleset-container {
	margin-bottom: 0;
}

.ruleset.panel-heading {
	padding-right: 8px;
}

.panel-heading.ruleset a {
	text-transform: none;
}

.comment-container {
	width: 80%;
}

.delete-ruleset {
	float: right;
}

.visual-editor-col {
	padding-left: 2px;
}

.xml-preview-col {
	padding-right: 2px;
}

#cascasding-li {
    border-left:  thick solid rgba(171, 171, 171, 0.45);
    margin-left:10px;
}

#horizontalLink {
    margin-left: -25px;
    margin-bottom: -20px;
    color: rgba(171, 171, 171, 0.45);
}

.commentEditorPosition {
    margin-top: -20px;
    margin-left:-10px;
}

.groupEditorPosition {
    margin-top: -20px;
    margin-left: -10px;
}

.errorSelectElement {
   color : red;
}

.highlightAction {
    border-color : red;
}


.actionsElement {
    border-color: red;
}

#dragAndDropElement {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 25px;
    border : none;
    bottom: 30px;   
}

/*Sweet Hack to set top offset for PAge Scroll when any new item is added*/
.scrollTopOffsetRule {
    
    display: block;
    position: relative;
    top: -300px;
    visibility: hidden;
}

.scrollTopOffsetGroup {
    display: block;
    position: relative;
    top: -50px;
    visibility: hidden;
}

scrollTopOffsetComment {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}