/* main layout */
#background {
    position:fixed;
    left:0px;
    top:0px;
    width:100%;
    height:100%;
    opacity: 0.6;
    z-index: -1;
}

#app section:not(#main_dashboard_view){
    background-color: #cbd9e8;
    padding: 7px;
    border-radius: 7px;
}

/* Switches */
.form-check-input {
    clear: left;
}

.form-switch.form-switch-sm {
    margin-bottom: 0.5rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-sm .form-check-input {
    height: 1rem;
    width: calc(1rem + 0.75rem);
    border-radius: 2rem;
}

.form-switch.form-switch-md {
    margin-bottom: 1rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-md .form-check-input {
    height: 1.5rem;
    width: calc(2rem + 0.75rem);
    border-radius: 3rem;
}

.form-switch.form-switch-lg {
    margin-bottom: 1.5rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-lg .form-check-input {
    height: 2rem;
    width: calc(3rem + 0.75rem);
    border-radius: 4rem;
}

.form-switch.form-switch-xl {
    margin-bottom: 2rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-xl .form-check-input {
    height: 2.5rem;
    width: calc(4rem + 0.75rem);
    border-radius: 5rem;
}


/* Discount fields' tree: bullets styling */
.fields_tree_ul {
    list-style-type: none;
}

.fields_tree_li {
    cursor: pointer;
    user-select: none;
}

.fields_tree_ul2 {
    list-style-type: none;
}

.fields_tree_li::before {
    content: "\00B1";
    color: black;
    margin-right: 6px;
}

.fields_tree_li2::before {
    content: "\2514";
    color: black;
    margin-right: 10px;
}

/* json editor
main menu, override color with gray */
.jsoneditor-menu {
  background-color: #bbb;
  border-bottom: 1px solid #bbb;
}
/* remove border */
.jsoneditor {
    border: none;
}

#formPreview {
    border: 2px dotted rgb(108, 90, 162);
    border-radius: 5px;
    background-color: #bbb;
    padding: 15px;
}

#formPreview .row {
    min-height: 27px;
    border: 2px dotted rgb(58, 38, 120);
    border-radius: 5px;
    background-color: rgb(197, 188, 188);
    padding-bottom: 7px;
    padding-left: 25px;
    padding-top: 7px;
}

#formPreview .row:before {
    content: "\f338";
    position: absolute;
    margin-left: -20px;
    margin-top: 25px;
    font-family: "FontAwesome";
    cursor: pointer;
}

#formPreview .active-form-row {
    background-color: rgb(240, 215, 164) !important;
}

#formPreview .form-group {
    background-color: rgb(207, 199, 183) !important;
    position: relative;
}

#formPreview .form-group:after {
    position: absolute;
    font-family: 'FontAwesome';
    top: 0;
    right: 1rem;
    color:rgb(110, 53, 53);
    content: "\f0b2   \f044";
    cursor: pointer;
}

#formPreview .form-check {
    background-color: rgb(207, 199, 183) !important;
    position: relative;
}

/* #formPreview .form-check:after {
    position: absolute;
    font-family: 'FontAwesome';
    top: 0;
    right: 1rem;
    color:rgb(110, 53, 53);
    content: "\f0b2   \f044";
    cursor: pointer;
} */

#formPreview  label {
    text-overflow: ellipsis;
    overflow: hidden;
    width: 80%;
}


/* TypeAhead styles */

.typeahead {
    position: relative;
}

.typeahead-results {
    list-style: none;
    position: absolute;
    top: 4.5em;
    left: 0;
    background-color: #cbd9e8;
    width: 250px;
    margin: 0 0.5em;
    padding: 0;
    border-radius: 10px;
    z-index: 10;
}

.typeahead-results:empty {
    display: none;
}

.typeahead-results selected {
    background-color: #bbb;
    color: #92b8e1;
}

.typeahead-results li {
    border-bottom: .3em;
    cursor: pointer;
    padding: .25em;
}

.typeahead-results .active {
    background-color: #3e6895;
    color: #fff;
}