/*********************************************************************************
 * This file is part of Myddleware.

 * @package Myddleware
 * @copyright Copyright (C) 2013 - 2015  Stéphane Faure - CRMconsult EURL
 * @copyright Copyright (C) 2015 - 2016  Stéphane Faure - Myddleware ltd - contact@myddleware.com
 * @link http://www.myddleware.com	
 
 This file is part of Myddleware.
 
 Myddleware is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 Myddleware is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Myddleware.  If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/

#rule .onoffswitch {
	position: relative;
	width: 74px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	margin: auto;
}
#rule .onoffswitch-checkbox {
	display: none;
}
#rule .onoffswitch-label {
	display: block;
	overflow: hidden;
	cursor: pointer;
	border: 0px solid #999999;
	border-radius: 0px;
}
#rule .onoffswitch-inner {
	display: block;
	width: 200%;
	margin-left: -100%;
	-moz-transition: margin 0.3s ease-in 0s;
	-webkit-transition: margin 0.3s ease-in 0s;
	-o-transition: margin 0.3s ease-in 0s;
	transition: margin 0.3s ease-in 0s;
}
#rule .onoffswitch-inner > span {
	display: block;
	float: left;
	position: relative;
	width: 50%;
	height: 16px;
	padding: 0;
	line-height: 16px;
	font-size: 12px;
	color: white;
	font-family: Trebuchet, Arial, sans-serif;
	font-weight: bold;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
#rule .onoffswitch-inner .onoffswitch-active {
	padding-left: 11px;
	background-color: #EEEEEE;
	color: #FFFFFF;
}
#rule .onoffswitch-inner .onoffswitch-inactive {
	padding-right: 11px;
	background-color: #EEEEEE;
	color: #FFFFFF;
	text-align: right;
}
#rule .onoffswitch-switch {
	display: block;
	width: 31px;
	margin: 0px;
	text-align: center;
	border: 0px solid #999999;
	border-radius: 10px;
	position: absolute;
	top: 0;
	bottom: 0;
}
#rule .onoffswitch-active .onoffswitch-switch {
	background: #198BCA;
	left: 0;
}
#rule .onoffswitch-inactive .onoffswitch-switch {
	background: #555555;
	right: 0;
}
#rule .onoffswitch-active .onoffswitch-switch:before {
	content: " ";
	position: absolute;
	top: 0;
	left: 31px;
	border-width: 8px 7px;
}
#rule .onoffswitch-inactive .onoffswitch-switch:before {
	content: " ";
	position: absolute;
	top: 0;
	right: 31px;
	border-width: 8px 7px;
}
#rule .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
	margin-left: 0;
}

#rule th, #connector th, #jobscheduler th, #workflowTableContainer th, #rulegroups th {
	background: #ECECEC;
	height: 45px;
	padding: 10px;
	text-align: center;
}

#rule tr, #connector tr, #jobscheduler tr, #workflowTableContainer tr, #rulegroups tr {
	border-bottom: 1px solid #ccc;	
}

#rule td.lft > a, #connector td.lft > a, #jobscheduler td.lft > a, #workflowTableContainer td.lft > a, #rulegroups td.lft > a{
	color: black;
}

#rule .vignette, #connector .vignette, #jobscheduler .vignette {
	width: 50px;
}

/* relate */

#rule_mapping #relation #relate input.title {
	border: none;
	min-width: 250px;
}

/*  fields mapping */

.source { 
	min-width: 10vw;
	width: 15vw;
	margin-right: 2em; 
	overflow:hidden; 
}

.source, #cible {
	padding-top:10px;
	
}

.source h1, #cible h1 { padding: .2em; margin: 0; }

.source li:hover, #cible ol:hover { cursor:move }

#cible {
	min-width: 600px;
	max-width: 78vw;
	overflow: auto;
}

#cible .champs {
	width: 260px;
	margin: 3px;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#cible ul li {
	color:#4297D7;
}

#cible .ui-widget-header {
    background: none repeat scroll 0 0 #198BCA;
    border: 0px;
	color: #eee;
    font-weight: bold;
    text-align: center;
    line-height: 2.5em;
    word-wrap: break-word;
}
.icon-white-formula{
	color: #eee !important;
	}

#cible .ch, #cible .placeholder {
	list-style:none;
	font-weight: bold!important;
	background-color: #FFFFFF!important; 
	cursor: pointer!important;
}

#cible .ch {
	border-bottom: 1px solid #cccccc;
    border-width: 1px 10px 1px 1px;
    line-height: 2em;
    margin-right: 5px;	
}

.source .ui-accordion-content {
	padding:0px;
	border:none;	
}

.source ul {
	list-style:none;
	padding-left:0px;
}


.source .ui-state-active, .source .ui-widget-content .ui-state-active, .source .ui-widget-header .ui-state-active,
.source .ui-state-default, .source .ui-widget-content .ui-state-default, .source .ui-widget-header .ui-state-default {
	background:#EDEDED;	
	border:none;	
}


.source h2, .source .h2 {
	font-size: 1em;
}

#rule .ui-widget-content, #cible .ui-widget-content {
	border: none;
}

#cible .ui-widget-content {
	height: 150px;
	overflow: auto;	
}

.catalog-list {
	max-height: 80vh;
}

#targetfields {
	max-height: 110vh;
	overflow-y:auto;
	background: #ffffff;
}

#targetfields ol, #targetfields ul {
	padding-left: 5px;
	list-style: none outside none;
}

#targetfields p {
	padding-bottom: 10px;	
	padding-left: 25px;
}

#cible h1.title {
	color: #444446;
	font-size: 1.3em;
}

/* formula */

#formule .listarea {
	min-height: 150px;
}

#formule #functions {
	display: inline-block;
	height: 180px;
	max-height: 180px;
	overflow-y: scroll;
}

#formule #functions .tooltip {
	position: relative;
	opacity: inherit;
	cursor: pointer;
	text-decoration:none;
}

#formule #filter {
	height: 30px;
}

#formule #area_insert, #formule #area_color {
	height: 225px;
	padding: 10px;
	max-height: 225px;
	overflow:scroll;	
}

#formule #area_insert {
	width: 250px;
}

#formule #area_color {
	min-width: 350px;
	width: 350px;
}

#formule .wdh, #formule #filter, #formule .listarea {
    max-width: 300px;
    width: 300px;
}

#formule .formule_text {
	list-style-type:none;
}

/* simulate */

#simulation .middle {
	width:50%;
}

#simulation #warning {
	width: 400px;
}

#simulation #validation_simulation {
	line-height: 2.5em;
	text-align: center;
}
/* #validation{
	color: red;
} */

#simulation #simulation_tab li {
    border-bottom: 1px solid #ccc;
    min-height: 40px auto;
    list-style: none outside none;
    padding-top: 10px;
}

#relation th {
	background:none;
}

#relation td {
	padding: 20px;
}

#relation td.title {
	font-weight: bold;
	text-align: center;
}

#relation tr {
	border: none;
	height: 60px;
}

#fieldsfilter span {
	color: #0F66A9;
	font-weight: bold;
	font-size: 1.2em;
}

#fieldsfilter li, #viewfilters li {
	padding-bottom: 20px;
	border-bottom: 1px solid #ccc;	
	list-style:none;
}


.filter-input {
	width: 545px;
	max-width: 545px;
	margin-right: 10px;
}

#rule #tabs ul.ui-widget-header li {
	min-width: calc( (1200px / 5) + 1.8px );
	max-width: calc( (1200px / 5) + 1.8px );
}

/* filtres */

#viewfilters span {
	margin: 0px 20px;
}

#viewfilters .target, #viewfilters .value {
	font-weight: bold;
	font-size: 1.2em;
		
}

#viewfilters .target {
	color: #0F66A9;
    display: inline-block;
    min-width: 350px;
}

#viewfilters .value {
	color: #0F66A9;
	font-size: 1em;
}

/* correction tabs */

#catalog .ui-state-default, #catalog .ui-widget-content .ui-state-default, #catalog .ui-widget-header .ui-state-default { 
	border-right: 0px;
	border-left: 0px;	
	background: none;
	padding: none;
}

#targetfields .ui-state-default {
	border: 0em !important;
	background: #E2E2E2;
}

#cible .ui-state-default .placeholder {
	color: #404042;
}



#rule #mapping .fields {
	word-wrap: break-word;
}

#rule #tabs .ui-state-default, #rule #tabs .ui-widget-content .ui-state-default, #rule #tabs .ui-widget-header .ui-state-default,
#rule_mapping #tabs .ui-state-default, #rule_mapping #tabs .ui-widget-content .ui-state-default, #rule_mapping #tabs .ui-widget-header .ui-state-default {
	padding-top: 23px;	
	font-size: 0.8em;	
}

/* Button "help" création de règle */
.link-help {
	position: relative;
	top: -100px;
	font-size: 1.2em;
	margin-top: 25px;
	margin-right: 25px;
}

.link-help-view {
	font-size: 1.2em;
}

.link-help > a, .link-help-view > a {
	color: #0069b4;
}

.link-help > a:hover, .link-help-view > a:hover  {
	color: #38a9ff;
	text-decoration: none;
	cursor: pointer;
}

.help-content > h2, .help-content > p{
	width: 80%;
	margin: auto;
}

#simulate_list .value {
	font-size: 0.9em;
	color: #0069b4;	
}

#rule_mapping .rule_arrow_left {
	margin-left: 25px;
}

#rule_mapping .rule_arrow_right {
	margin-right: 25px;
}

#rule_mapping .rule_arrow_left:hover, #rule_mapping .rule_arrow_right:hover {
	cursor: pointer;
}

/* Rule edit / view nav menu */
.nav-link {
	color: #4f4f4f!important;
}

.nav-link.active {
color: #03c4eb!important; 
}

#ruleInfoTabs, #ruleConfigTabs, #connectorCreateTabs, #connectorTabs {
	box-shadow: rgb(248 249 249) 0px -5px 9px -4px inset, rgba(255, 255, 256, 14.5) 20px 1px 2px 0px inset;
}

.fancybox {
	text-decoration: none!important;
}

.mapping-container {
	justify-content: center !important;
}

.mapping-container > .mapping-card {
	margin: 30px;
}

#rulenamesearchbar {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    transition: all 0.5s;
    max-width: 400px;
    position: relative;
}

#rule_name{
	padding: 5px;
	padding-top: 15px !important;
}

.container_filter_step3{
	max-width: 1449px;
}

.form-switch .form-check-input:checked {
	background-color:  #198BCA !important;
	border-block-color: #198BCA !important;
}

.workflow_status.form-check-input:checked {
    margin-left: 7px !important;
}

.workflow_status.form-check-input {
    margin-left: 7px !important;
}

.tooltip-icon {
    position: absolute;
    bottom: 10px;
    right: 10px; 
    background-color: transparent;
    border: none;
    padding: 0;
    color: #0F66A9;
}

.tooltip-icon i {
    font-size: 1.5rem;
}

.tooltip-icon:hover {
    color: #0c4978; 
}

.comment-box {
	z-index: 9999;
    display: none;
    position: absolute;
    bottom: -76px;
    right: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    width: 200px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.comment-box::before {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f1f1f1;
}

.comment-box .comment-text {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}
.comment-box .close-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #dc3545;
}

.comment-box .close-icon:hover {
    color: #bb2d3b; 
	box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

.comment-outside {
    display: none;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: #333;
    z-index: 1000;
}

.mapping-card-body:hover .comment-outside {
    display: block;
}

.mapping-card-body {
	display: flex;
	flex-direction: column;
}

.edit-button-name-list{
opacity: 0%;
}

.col-rule-name:hover .edit-button-name-list{
	opacity: 100%;
}

.all-link:hover {
    color: #0a58ca;
}

.all-link::after {
    background-color: #0a58ca;
}

#deletion-rule-tr-deletion {
	border-bottom: none !important;
	border-bottom-width: 0px !important;
}

#deletion-rule-left-deletion {
	border-bottom: none !important;
}

#deletion-rule-right-deletion {
	border-bottom: none !important;
}

#deletion-rule-tr-description {
	border-bottom: none !important;
}

#deletion-rule-right-description {
	border-bottom: none !important;
}

#deletion-rule-left-description {
	border-bottom: none !important;
}

#description-field-value {
	padding-left: 1em;
}

.inner-table-workflow {
	padding: 0px 0px !important;
}

.border-bottom-connector-none {
	border-bottom: none !important;
	border-bottom-style: hidden !important;
}
.border-bottom-workflow-none {
	border-bottom: none !important;
	border-bottom-style: hidden !important;
}

.name-connector-fit-box {
	min-width: fit-content;
}

.link-fit-workflow-name,
.link-fit-rule-name {
    display: inline;
    width: fit-content;
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
    background: 
        linear-gradient(currentColor, currentColor) 
        0 100% 
        no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.2s;
    padding-bottom: 2px;
}

.link-fit-workflow-name:hover,
.link-fit-rule-name:hover {
    text-decoration: none;
    background-size: 100% 2px;
}

/* Remove any previous hover styles */
.link-fit-workflow-name:hover::after,
.link-fit-rule-name:hover::after {
    display: none;
}

/* Add specific styles for the table cell to handle wrapping */
td .link-fit-workflow-name,
td .link-fit-rule-name {
    display: inline;
    line-height: 1.5;  /* Adjust line spacing */
}

.form-floating > #rule_name_label::after,
.form-floating > .form-control:focus ~ #rule_name_label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ #rule_name_label::after {
    inset: 0px !important;
    /* Add any other styles you want to override */
}

#rulenamesearchbar .form-floating > #workflow_name_label::after,
#rulenamesearchbar .form-floating > .form-control:focus ~ #workflow_name_label::after,
#rulenamesearchbar .form-floating > .form-control:not(:placeholder-shown) ~ #workflow_name_label::after {
    inset: 0px !important;
}
.form-floating > #workflow_name_label::after,
.form-floating > .form-control:focus ~ #workflow_name_label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ #workflow_name_label::after {
    inset: 0px !important;
    /* Add any other styles you want to override */
}

#rulenamesearchbar .form-floating > #workflow_name_label::after,
#rulenamesearchbar .form-floating > .form-control:focus ~ #workflow_name_label::after,
#rulenamesearchbar .form-floating > .form-control:not(:placeholder-shown) ~ #workflow_name_label::after {
    inset: 0px !important;
}