.nf-rule-options-toggler {
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.25s ease, color 0.25s ease;
	float: right;
	margin-right: 5px;
	margin-top: -2px;
}

.nf-rule-options-toggler:hover {
	color: #ff7900;
}

.nf-rule-options ul {
	position: relative;
	display: none;
	margin: 0;
	padding: 0;
	list-style: none outside none;
	background-color: white;
}

.nf-rule-options ul:after {
	position: relative;
	content: '';
	display: block;
	clear: both;
}

.nf-rule-options.active ul {
	display: block;
	position: absolute;
	right: 0;
	top: 30px;
	z-index: 100;
	width: 235px;
}

.nf-rule-options li {
	cursor: inherit;
	color: darkgrey;
	position: relative;
	display: block;
	float: left;
	width: 100%;
	height: 40px;
	line-height: 30px;
	margin: 0;
	padding-bottom: 5px;
	border-right: 2px solid lightgrey;
	border-left: 2px solid lightgrey;
	white-space: nowrap;
	text-align: left;
	font-size: 11px;
	transition: background-color 0.25s ease;
	background: white;
	box-sizing: border-box;
}

html[dir="rtl"] .nf-rule-options li {
	float: right;
	text-align: right;
}

.nf-rule-options li.nf-spacer {
    height: 0px;
    line-height: 0px;
    padding: 0;
    border-bottom: 1px solid lightgrey;
}

.nf-rule-options li:first-of-type {
	border-top: 2px solid lightgrey;
}

.nf-rule-options li:last-of-type {
	border-bottom: 2px solid lightgrey;
}

.nf-rule-options li.enabled {
	color: #323232;
	cursor: pointer;
}

.nf-rule-options li span {
	transition: color 0.25s ease;
}

.nf-rule-options li.enabled:hover {
	background-color: #F9D7B8;
}

.edit-mode .nf-col:hover .nf-col-move-btn {
	display: block;
}

.nf-rules-pane .action-container.main {
	min-height: 40px;
}

.nf-rules-pane .action-container.main,
.nf-rules-pane .action-container.secondary  {
	display: -ms-flexbox;
	display: flex;
	justify-content: space-between;
	-ms-flex-pack: distribute;
	-ms-flex-align: center;
    align-items: center;
    box-sizing: border-box;
}

.nf-rules-pane .action-container.main > div {
	text-align: center;
	-ms-flex: 1;
	flex: 1;
}

.nf-rules-pane .action-container.main button,
.nf-rules-pane .action-container.secondary button {
	margin: 5px;
	font-size: 12px;
	-ms-flex: 1;
	flex: 1;
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.nf-rules-pane .action-container.secondary button {
	border-radius: 2px;
	padding: 5px;
}

.nf-rules-pane .action-container.secondary button:disabled {
	background-color: #d6d6d6;
}

.nf-rules-pane .action-container.main,
.nf-rules-pane .action-container.secondary,
.nf-rules-pane .nf-rule-list {
	padding: 5px;
}

.nf-rule-options {
	float: right;
	outline: none;
}

.nf-rule-options img {
    width: 40px;
}

.nf-rule-card{
    width: 100%;
    margin: 5px;
	position: relative;
}

.nf-rule-card-header {
    background: #f1f1f1;
    border: #cbcbcb 1px solid;
    border-radius: 4px;
	padding: 4px 2px 2px 2px;
    min-height: 20px;
	transition: background-color 0.25s ease;
}

.nf-rule-card-header:hover{
	background-color: #cbcbcb;
}

.nf-rule-card-header .header-container {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
}

.nf-rule-list > div{
    margin-right: 3px;
}

.nf-rule-select {
    margin-left: 5px;
}

.nf-rule-list {
    overflow-y: auto;
	overflow-x: hidden;
	height: 100%;
	-ms-flex-position: 1;
	-ms-flex-negative: 1;
}

.nf-rules-pane .nf-rule-list {
	padding-right: 10px;
}

.nf-rule-card-editor-panel {
    background: #f1f1f1;
    border: #cbcbcb 1px solid;
    border-radius: 4px;
	margin-bottom: 16px;
	top: 10px;
    position: relative;
}

.rule-display,
.nf-rule-card-editor-panel input,
.nf-rule-card-editor-panel select {
	border: 1px solid #cbcbcb;
	border-radius: 4px;
}

.arrow_box {
    top: 10px;
	position: relative;
	background: #F1F1F1;
	border: 1px solid #CBCBCB;
}

.arrow_box:after,
.arrow_box:before {
	bottom: 100%;
	right: 20px;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow_box:after {
	border-color: rgba(241, 241, 241, 0);
	border-bottom-color: #F1F1F1;
	border-width: 6px;
	margin-left: -6px;
}
.arrow_box:before {
	border-color: rgba(203, 203, 203, 0);
	border-bottom-color: #CBCBCB;
	border-width: 7px;
	margin-right: -1px;
}

.nf-rule-delete-button {
	width: 24px;
	height: 24px;
	cursor: pointer;
	border: 1px solid #cbcbcb;
    border-radius: 4px;
}

.nf-rule-card-header-actions svg{
	width: 30px;
	float: right;
	cursor: pointer;
	margin-top: -5px;
	margin-right: 5px;
	height: 30px;
}

.nf-rule-card-header-actions svg path{
	fill:#4d4d4d
}

.nf-rule-card-header-actions svg:hover path{
	fill: #ff7900;
}

.nf-rule-func-button {
	cursor: pointer;
	border: 1px solid #cbcbcb;
    border-radius: 4px;
    padding: 4px;
    width: 16px;
    height: 16px;
}

.nf-rule-property {
    padding: 4px 4px;
	border-bottom: #CBCBCB 1px solid;
}

.nf-rule-property input {
	width: calc(100% - 30px);
    box-sizing: border-box;
    height: 26px;
}

.nf-rule-property-editor {
	display: -ms-flexbox;
	display: flex;
}

.nf-rule-property-editor > input,
.nf-rule-property-editor .rule-display {
	-ms-flex: 1;
	flex: 1;
	margin-right: 5px;
	overflow: hidden;
	word-break: break-all;
}

.nf-rule-name {
	width: 100%;
	display: inline-block;
}

.nf-rule-when-then {
	width: 100%;
}

.nf-rule-property div {
	padding-top: 2px;
	padding-bottom: 2px;
}

.nf-rule-when-then select {
    padding: 4px;
    width: calc(100% - 30px);
    box-sizing: border-box;
}

.rule-display {
	border: 1px solid #CBCBCB;
    padding: 2px 5px;
    min-height: 35px;
    background: white;
    width: calc(100% - 32px);
    display: inline-block;
    overflow-wrap: break-word;
}

.nf-rule-button-bar {
	padding: 10px;
	overflow: hidden;
}

.nf-minimize-rule {
	float: right;
}

.nf-rules-pane .action-container.main,
.nf-rules-pane .action-container.secondary {
	border-bottom: 1px solid #d3d3d3;
}

.nf-rules-pane button {
	background-color: #F1F1F1;
	color: inherit;
	width: auto;
    width: initial;
	border: none;
	transition: background-color 0.25s ease;
	outline: none;
	font-size: 12px;
}

.nf-rules-pane button:hover:enabled{
	background-color: #F9D7B8;
}

.nf-rules-pane button.nf-rule-add {
    color: #fff;
	background: #aaa;
	border-radius: 2px;
	padding: initial;
	padding-right: 10px;
}

.nf-rules-pane button.nf-rule-add:before {
	content: url(../images/add-alt.svg);
    width: 25px;
    height: 25px;
    display: inline-block;
    vertical-align: middle;
}

.nf-rules-pane button.nf-rule-add:hover:enabled{
    background-color: #777;
}

.nf-rules-pane button.nf-rule-toggle-show-all{
	background-color: white;
	padding: 5px;
	border-radius: 2px;
    text-decoration: underline;
}

.nf-rules-pane button.nf-rule-toggle-show-all:hover{
	background-color: #F9D7B8;
}

.nf-rules-pane button.nf-minimize-rule{
	background-color: #333333;
	color: white;
	padding: 5px 10px;
    border-radius: 2px;
}

.nf-rules-pane button.nf-minimize-rule:hover{
	background-color: #777;
}

.nf-rule-card-header-actions {
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.nf-rule-card-header-title {
	-ms-flex: 1;
	flex: 1;
	padding-left: 5px;
    padding-right: 5px;
	cursor: pointer;
}

.nf-rule-card-header-title,
.nf-rule-card-header-title > div {
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nf-rule-disabled {
	font-style: italic;
	text-decoration: line-through;
}

.nf-rule-card-header-actions .nf-rule-disabled svg path{
	fill: #f03;
}

html[dir="rtl"] .nf-rules-pane,
html[dir="rtl"] .nf-rule-options li,
html[dir="rtl"] .nf-rules-pane button,
html[dir="rtl"] .nf-rules-pane .action-container.main button,
html[dir="rtl"] .nf-rules-pane .action-container.secondary button {
	font-size: 16px;
}

html[dir="rtl"] .nf-rules-pane button.nf-rule-add {
	padding-left: 10px;
	padding-right: initial;
}

html[dir="rtl"] .nf-rule-property-editor > input, 
html[dir="rtl"] .nf-rule-property-editor .rule-display {
	margin-left: 5px;
	margin-right: initial; 
}
html[dir="rtl"] .nf-rule-options-toggler,
html[dir="rtl"] .nf-rule-card-header-actions svg {
    float: left;
    margin-left: 5px;
    margin-right: initial;
}

html[dir="rtl"] .nf-rule-options {
	float: left;
}

html[dir="rtl"] .nf-rule-options.active ul {
	left: 0;
	right: initial;
}

html[dir="rtl"] .nf-rule-list > div {
	margin-left: 3px;
	margin-right: initial;
}

html[dir="rtl"] .nf-rules-pane .nf-rule-list {
	padding-left: 10px;
	padding-right: initial;
}

html[dir="rtl"] .nf-rules-pane input[type="text"] {
	float: none !important;
}