.underline{text-decoration: underline; text-decoration-thickness: 2px;}
.bold{font-weight: bold;}
.normal{font-weight: normal;}
.italic{font-style: italic;}
.gray-text{color: #6b6f82;}
.signature, .timestamp, .time, .date, .cursor, .cursor:hover{cursor: pointer !important;}
.hidden, .hidden2{display: none;}
.font6{font-size: 6px;}
.font7{font-size: 7px;}
.font8{font-size: 8px;}
.font9{font-size: 9px;}
.font10{font-size: 10px;}
.font11{font-size: 11px;}
.font12{font-size: 12px;}
.font13{font-size: 13px;}
.font14{font-size: 14px;}
.font15{font-size: 15px;}
.font16{font-size: 16px;}
.font17{font-size: 17px;}
.font18{font-size: 18px;}
.font19{font-size: 19px;}
.font20{font-size: 20px;}
.font24{font-size: 24px;}
.font36{font-size: 36px;}
.font40{font-size: 40px;}
.text-right{text-align: right; padding-right: 4px;}
.right{text-align: right; padding-right: 4px;}
.relative{position: relative !important;}
.absolute{position: absolute;}
.capitalize{text-transform: capitalize;}
.uppercase{text-transform: uppercase;}
.p-10{padding: 10px;}
/* .pr-4{padding-right: 4px;} - deprecated: built into text right */
.auto-data{color: rgba(0,0,0,.01); cursor: pointer;}
.lime{color: lime}

.red{color: red !important;}
.blue{color: blue}
.navy{color: navy}
.white{color: white}
.text-primary{color: #03a9f4 !important;}

#promptForm .search{
	border-color: black !important;
	width: 325px !important; 
	border-radius: 40px !important;
	margin-right: 5px; 
}
.template-icon{
    position: relative;
    top: 3px;
    font-size: 20px !important;
	color: black !important
}

.drag-clone { 
	opacity:.9; 
	display:table; }
.drop-hover { 
	outline:2px dashed #03a9f4; 
	outline-offset:-2px;
	background-color: rgba(255, 255, 255, .5);
}

#promptForm .breadcrumb{
	cursor: pointer;
	margin-right: 5px;
}

#promptForm .breadcrumb:active{
	background-color: black;
}

#promptForm .breadcrumb.drop-hover{
	border: 1px dottted #03a9f4 !important;
	color: #03a9f4 !important;
	background-color: white;
}

#promptForm .trash:active{
	color: black !important;
}

#add-template-folder i, #template-delete i{
	color: #333;
	font-size: 32px;
	position: relative;
	top: 4px;
}

#add-template-folder i:active, #template-delete i:active{
	color: #03a9f4 !important;
}





.handle{
	cursor:grab
}

.handle:active {
	cursor: grabbing;
 
}

.hidden3{
	display: none !important;
}

.invisible{
	visibility: hidden;
}

.pointer{
	cursor: pointer;
}

.link{
	color: blue;
	cursor: pointer;
}	
.message{
	position: fixed;
	bottom: 40px;
	right: 40px;
	background-color: rgba(255, 255, 255, .75);
	border: 2px solid red;
	font-weight: bold;
	font-size: 18px;
	padding: 15px;
	border-radius: 5px;
}
#cloud{
	content: "cloud";
	opacity: .5;
}
#cloud::before{
	content: "cloud";
}
#cloud.cloud-connected{
	background-color: 	green !important;
	color: white;
	opacity: 1;
}
#template.saving{
	background-color: 	green !important;
	color: white;
	opacity: 1;
}
#cloud.cloud-connected::before{
	content: "cloud_done";
}
#cloud.cloud-disconnected{
	background-color: red !important;
	color: white;
	opacity: 1;
}
#issue{
	color: red !important;
	background-color: black !important;
}
#cloud.cloud-disconnected::before{
	content: "cloud_off";
}
.swal-wide .swal2-modal{
	max-width: 1200px !important;
	width: 90%;
}
.border{
	border: 1px solid #eee;
}
table.border, table.border tr, table.border td{
	border: 1px solid #eee;
}	
table.border tr.addRemoveRow, table.border tr.addRemoveRow td{
	border: none !important;
}	
.border2{
	border: 1px solid black !important;
}
.border2 td{
	border-left: 1px solid black !important;
	border-right: 1px solid black !important;
}
.border3 td{
	border-left: 1px solid black !important;
	border-right: 1px solid black !important;
	border-top: 1px solid #ddd !important;
	border-bottom: 1px solid #ddd !important;
	
}
#main{
	margin-top: 55px;
}
.hidden{
	display: none;
}
.error{
	color: red !important;
	position: relative;
    top: 7px;
}

.field-error{
	background-color: red !important;
	color: white !important;
}

.grey-text{
	color: grey;
}

#notes-evaluate:hover{
	color: #03a9f4;
}
code#evaluatedNotes:hover{
	background-color: #03a9f4;
	color: white;
}
td.noteTag {
    position: relative; /* Ensure the tag is positioned relative to the cell */
}
#noteTagColor{
	float: right;
	content: '';
	position: relative;
	right: 3px;
	bottom: -10px;
	width: 12px;
	height: 12px;
	background-color: #03a9f4;
	border-radius: 6px;
	cursor: pointer;
}


code#evaluatedNotes, code#evaluateFormula{
	display: none;
	margin-bottom: 10px;
	padding: 2px 6px;
	position: relative;
	top: -6px;
	cursor: pointer;
}

/* Create the tag */
td.noteTag::before {
		content: '';
		position: absolute;
		top: 5px;
		right: 3px;
		width: 8px;
		height: 8px;
		/* background-color: #03a9f4; */
		background-color: var(--bg-color, #03a9f4);

		border-radius: 4px;
}
td.noteTag.text-right::before {

	left: 3px;
	
}

.btn{
	cursor: pointer;
	border-radius: 40px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: bold;
    padding: 7px;
	border: none;
    text-align: center;
    background-color: #03a9f4;
    color: white;
}

.snapshot-on{
	background-color: #03a9f4 !important;
	color: white !important;
}

.bglime{background-color: lime}
.text-shadow{text-shadow: 2px 2px 2px #ccc;}
/* body > div:not(#main){color: white;} */
/* {color: black;} */
.green {color: green !important};

/* 
.faded .value{
	color: blue;
	/* color: rgba(0,0,0,.3) !important; */
/* } */ 

p a{
	color: blue;
}

td.crossout
{
	background: linear-gradient(to right bottom, #ffffff 0%,#ffffff 49.9%,#000000 50%,#000000 51%,#ffffff 51.1%,#ffffff 100%);
}

body{
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	padding: 0 15px;
}

.hidden.show{
	display: block !important;
}

tr.thick{
	border: solid 2px black;
}

body.edit td.static, body.edit td.actual, td:not(.editable){
/* border-color: white;
background-color: black;
color: white; */
}

td.gray-label .label, td.grey-label .label{
	color: gray;
	font-weight: normal;

}
.key.static{
	
}

.key.editable, .template td.editable, .recipe td.editable{
	/* background-color: rgba(8, 248, 8, 0.247); */
	/* background-color: #FFFF00; */
	
}
.key.editable.yellow, td.editable.yellow{
	background-color: #FFFF00;
}

.snapshot .key.editable.yellow, .snapshot td.editable.yellow{
	background-color: #F9F9F9;
	cursor: default;
}

.snapshot .addRemoveRow{
	display: none;
}


td.light-blue{
	background-color: #d0e2f3;
}

.key.actual, .template td.actual, .form td.actual{
	background-color: rgba(248, 184, 8, 0.247);
}

.key.formula, .template td.formula, .form td.formula, .template [data-formula]{
	background-color: rgba(8, 248, 108, 0.247) !important;
}



.key.signature, .template td.signature, .template td.shift, .template td.date, .template td.time,
.form td.signature,.form td.shift, .form td.date, .form .template td.shift, .form .template td.date, .form .template td.time	

{
	background-color: rgba(32, 8, 248, 0.247);
}

.key.dynamic, .template td[data-field]:not(.on-off):not(.pass-fail):not(.yes-no):not(.checkbox):not(.editable):not(.actual):not(.signature):not(.shift):not(.date):not(.time){
	background-color: rgba(248, 56, 8, 0.247);
}

body.editing td:not(.active){
	opacity: .3;
	border-color: #ccc;
}

body.editing table{
	border-color: #ccc;
}

td.value-customer .value{

}


.p0{
	padding: 0;
}
.p5{
	padding: 5px;
}

.mb-2{margin-bottom: 2px;}
.mb-5{margin-bottom: 5px;}
.mb-10{margin-bottom: 10px;}
.mb-15{margin-bottom: 15px;}
.mb-20{margin-bottom: 20px;}
.mb-25{margin-bottom: 25px;}
.mb-30{margin-bottom: 30px;}

.mt-2{margin-top: 2px;}
.mt-5{margin-top: 5px;}
.mt-10{margin-top: 10px;}
.mt-15{margin-top: 15px;}
.mt-20{margin-top: 20px;}
.mt-25{margin-top: 25px;}
.mt-30{margin-top: 30px;}

.h-30{
	height: 30px;
}
.h-50{
	height: 50px;
}

td.cs-2{column-span: 2;}
td.cs-3{column-span: 3;}
td.cs-all{column-span: all;}

table{
	table-layout: fixed;
	width: 100%;
	margin-top: -1px;
	border-spacing: 0;
	min-width: 600px;
	max-width: 900px;
}
table, tr, td{
	border-color: #eee;
    border-collapse: collapse;
}
.blr{
	border-left: 1px solid #eee;
	border-right: 1px solid #eee;
}
a.black{
	background-color: black !important;
	color: white;
}
a.yellow{
	background-color: yellow !important;
	color: black !important;
}
a.grey, .grey{
	background-color: grey !important;
}

.noBorder, .no-border{border: none}
.bl-none{border-left: none;}
.br-none{border-right: none;}
.bt-none{border-top: none;}
.bb-none{border-bottom: none;}

.bl-white{border-left: 1px solid white;}
.br-white{border-right: 1px solid white;}
.bt-white{border-top: 1px solid white;}
.bb-white{border-bottom: 1px solid white;}

.bb{
	border-bottom: 1px solid #eee;
}
.bt{
	border-top: 1px solid #eee;
}


.b{border: 1px solid #eee; }
.b2{border-width: 2px;}

tr.b2{border-width: 2px }

.bt2{border-top-width: 2px;}
.br2{border-right-width: 2px;}
.bb2{border-bottom-width: 2px;}
.bl2{border-left-width: 2px;}

.font-normal{
	font-weight: normal !important;
}

.align-bottom{
	vertical-align: bottom;
}

.page{
	display: none;
	background-color: white;
}
.page.show{
	display: block;
  /* flex-wrap: nowrap; */
}

.card{
	border-radius: 10px;
	box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
	margin: 10px 0;
	padding: 15px 20px;
}
.fixed{
	position: fixed !important;
}

.formula-fixed{

}

.form-nav{
	font-weight: bold;
	text-transform: uppercase;
	font-size: 14px;
	left: 10px;
	top: 30px;
	position: relative;
}
.page-link{
	margin-bottom: 5px;
}

a{
	text-decoration: none;
	color: black;
}
.innerTable{
	/* border: none; */
}

.highlight{
	background-color: yellow;
}

.bg-cyan{
	background-color: cyan !important
}
.bg-grey, .bg-gray{
	background-color: #ccc !important
}
.bg-light-gray, .bg-light-gr3y,  .template [data-formula].bg-light-gray, tr.striped:nth-child(odd), tr.striped-even:nth-child(even), table.striped tr:nth-child(odd), table.even-striped tr:nth-child(even){
	background-color: #eee !important;
}




.gray{
	color: #eee;
}
.image{
	padding: 5px;
	text-align: center;
}
.image img{
	object-fit: cover;
	border: 2px solid black;
	width: 95%;
	height: 95%;
	max-width: 250px;
	max-height: 250px;
	min-height: 250px;
	cursor: pointer;
}
/* default cell height */
td{ 
	height: 20px;
	padding-left: 4px;
	padding-right: 4px;
	overflow: hidden;
	white-space: nowrap;
	transition: opacity 0.6s, border-color 0.6s;
  	-webkit-transition: opacity 0.6s, border-color 0.6s;
}

.wrap{
	overflow: visible;
	white-space: normal;;
}

.w-33{
	width: 33.3%;
}

.clearBorderTop{
	border-width: 1px;
	border-style: solid;
	border-color: white white black; 
}

.label{
	padding: 1px;
}

/* .user{
	width: 10px;
	height: 10px;
	background-color: red;
	position: absolute;
} */

td.checkbox .label{
	cursor: pointer;
	position: absolute; 
	left: 3px; 
	bottom: 2px;
}

td.center.checkbox label{
	margin-top: 0;
	display: grid;
	justify-content: center;

}

.center{
	text-align: center;
}

.left{
	text-align: left !important;
}

.right{
	text-align: right !important;
	padding-right: 5px;
}
.float-left{
	float: left;
}
.float-right{
	float: right;
}
.clear{
	clear: both;
}

.editable{
	cursor: pointer;
	padding-bottom: 2px;
}

.editable.underline .value{
	position: relative;
	bottom: 2px;
}

h3{
	font-weight: bold;
	color: black;
}

[data-formula].active{
	/* color: green; */
	background-color:lime !important;
	/* transition: background-color 5s ease; */
}


.editable.active{
	/* color: green; */
	background-color:lime !important;
	/* transition: background-color 5s ease; */
}
.editable.warning{
	/* color: green; */
	background-color:red !important;
	color: white !important;
	/* transition: background-color 5s ease; */
}

.remote{
	background-color: orange !important;
}

/* .selected{
	background-color: #03a9f4 !important;
	color: white !important;
} */

.template-select{
	background-color: #4c33cc !important;
	color: white !important;
}

#drag-selection {
	position: absolute;
	border: 2px dashed white;
	box-shadow: 0 0 0 9999px rgba(255, 255, 255, 0.2);
	background-color: (255,255,255, 0.2);
	pointer-events: none; /* Prevent interfering with mouse events */
	z-index: 9999;
	display: none;
  }

.editable.flash {
    transition: background-color .5s ease; /* Adjust transition duration as needed */
}

.editable.fade-flash {
	opacity: .5;
}


.editable.error{
	color: white;
	background-color:red;
}

.editable{
	
	transition: opacity .5s;
}

.textarea{
	padding: 10px 8px -8px 0;
	/* border: none; */
}

.ql-editor, input{
	/* border: 1px solid black; */
	border-radius: 5px;

}

.ql-align-center{
	text-align: center;
}

.ql-align-right{
	text-align: right;	
}

.ql-size-small{
	font-size: 12px;
}

.ql-size-large{
	font-size: 24px;
}

.note{
	color: orange;
}

.note::after {
	content: "*";
  }

.v-top{
	vertical-align: top;
}

.v-bottom{
	vertical-align: bottom;
}

select{
	margin: 10px;
	min-width: 150px;
}
.select2-selection{
	border: none !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
		border-radius: 10px !important;
}
.select2-selection--multiple{
	padding: 1px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
	border-right: none !important;
	font-size: 1.3em !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display{
	padding: 0 5px;
	font-size: 1.2em;
}
.label{
	font-weight: bold;
}

input:focus, textarea:focus, select:focus{
	outline: none;
}
/* 
.spin {
	display: inline-block;
	animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
	from {
	  transform: rotate(0deg);
	}
	to {
	  transform: rotate(-360deg);
	}
  } */


  .spin {
	display: inline-block;
	animation: spin 1s linear infinite;
  }
  
  .no-spin {
	display: inline-block;
	transition: transform 0.5s ease; /* Adjust time to match the stop duration */
  }
  
  @keyframes spin {
	from {
	  transform: rotate(0deg);
	}
	to {
	  transform: rotate(-360deg);
	}
  }
  
  

#history{
	max-height: 200px;
	overflow-y: auto;
	display: none;
}
#history div{
	margin: 4px;
	
}

.history-value{
	color: blue;
	font-weight: bold;
	cursor: pointer;
}

#view-history{
	position: absolute;
	right: 30px;
	top: 10px;
	color: white;
	font-weight: bold;
	cursor: pointer;
}

#view-notes{
	position: absolute;
	right: 53px;
	top: 10px;
	color: white;
	font-weight: bold;
	cursor: pointer;
}
#view-formula{
	position: absolute;
	right: 76px;
	top: 7px;
	color: white;
	font-weight: bold;
	cursor: pointer;
}

#notes, #formula{
	display: none;
	margin-top: 5px;
	
}
#notes-area, #formula-area{
	border: 1px #ccc solid;
	margin-bottom: 5px;
	border-radius: 3px;
	font-weight: bold;
	font-size: 14px;
	font-family: monospace;

}

#formula-area .ql-editor{
	line-height: 2 !important;
	height: 100%;
	resize: none;
}


#notes-evaluate{
	margin: 5px;
	color: grey
}

[data-formula]{
	cursor: pointer;
}

#view-history .material-icons{
	font-size: 18px;
}

#close-editor{
	position: absolute;
	right: 7px;
	top: 10px;
	color: white;
	font-weight: bold;
	cursor: pointer;
}
#close-editor .material-icons, #view-notes .material-icons{
	font-size: 18px;
}
#backdrop{
	position: fixed; /* Stay in place */
	z-index: 50; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	/* background-color: rgb(0,0,0); 
	background-color: rgba(0,0,0,0.2);  */

}

[contenteditable] {
	outline: 0px solid transparent;
}

[contenteditable="true"].single-line {
    white-space: nowrap;
    width:200px;
    overflow: hidden;
} 
[contenteditable="true"].single-line br {
    display:none;

}
[contenteditable="true"].single-line * {
    display:inline;
    white-space:nowrap;
}

#editor{
	
	position: absolute;
	border: 1px solid gray;	
	background-color: white;
	min-width: 450px;
	border-radius: 10px;
	z-index: 100;
	box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
}	

#editor.draggable{
	/* width: auto !important;
	height: auto !important; */
}

#editor-body{
	text-align: center;
	padding: 0 8px 3px 8px;
}

#editor .input[contenteditable="true"]{
	border: 1px solid black;
}

#editor .input2{
	width: 120px;
    height: calc(100% - 40px);
    font-size: 14px;
    margin: 5px 5px 5px 0;
    font-family: Helvetica, Helvetica, sans-serif;
    color: black;
    padding: 5px;
	resize: both;
	border-radius: 0;
	border-width: 0 0 1px 0;
	text-align: center;
	border-color: #333;
}

#editor textarea.input2{
	width: 100%;
	height: 100%;
	min-width: 500px;
	min-height: 150px;
	border: none;
}



#editor .input2.textbox{
	width: 100px;
}

#editor .input2[data-format="text"]{
	width: 500px;
}

#editor:focus-visible {
	border: none;
  }

#editor textarea.input{
	padding-top: 15px;
}

.inline-editor .text-right{
	text-align: right !important;
}
.inline-editor{
	background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
	min-width:0 !important;
}
.inline-editor #editor-header, .inline-editor .editor-button{
	display: none;
}

.inline-editor .input2{
	background-color: lime;
	border: none;
	font-size: 12px !important;
	padding: 5px;
}

::-webkit-input-placeholder,  :-ms-input-placeholder, ::placeholder   { /* Edge */
	color:darkgray;
  }

/* #main, #code{
	float: left;
} */

code{
	background-color: #f9f9f9;
	border: 1px solid #ccc;
	border-radius: 5px;
	display: block;
	margin: 0 0 10px;
	padding: 10px;
	font-size: 14px;
}
	

  #code, #groups, #functions{
	left: 1000px;
	position: fixed;
	top: 25px;
	right: 10px;
	width: 600px;
	height: 500px;
	border: 1px solid gray;
	border-radius: 10px;
	box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
	margin: 10px;
	color: black !important;
	z-index: 90;
	opacity: .95;
  }
  #groups{
	background-color: rgba(255,255,255,.95);
	top: 525px;
	width: 300px;
	min-width: 250px;
	height: 300px;
	min-height: 250px;
	/* transition: width 2s, height 4s; */
  }
  #functions{
	background-color: rgba(255,255,255,.95);
	top: 550px;
	/* transition: width 2s, height 4s; */
  }
  /* #groupList{
	
  } */

  #ace{
	  height: calc(100% - 36px);
	  border-radius: 0 0 10px 10px;
  }
  #ace-functions{
	height: calc(100% - 36px);
	border-radius: 0 0 10px 10px;
}
  .autocomplete-items {
	border: 1px solid #d4d4d4;
	border-top: none;
	z-index: 99;
	position: absolute;
	background-color: white;
	max-height: 250px;
	overflow-y: auto;
	width: 100%;
	left: 0;
    top: 71px;
    border-radius: 0 0 5px 5px;
}
.autocomplete-item {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid #d4d4d4;
}
.autocomplete-item:hover {
	background-color: #e9e9e9;
}

.highlighted {
    background-color: #e9e9e9;
}


.codeError{

	/* border: 1px solid red; */
}


/* --------------------- Material Design Form Controls ---------------------- */
/* --------------------- Material Design Form Controls (Inputs & Selects) ---------------------- */
#promptForm .response-header{
	/* padding: 5px; */
}
#promptForm .response-header{
	float: left;
}

#promptForm .response-header.right{
	float: right;
}

#promptForm .input-group {
    position: relative;
    margin-bottom: 20px; /* Space between inputs */
}

#promptForm .radio-btn{
	width: 100px;
    float: left;
    left: 10px;
    position: relative;
    top: 5px;
	user-select: none;
}

#promptForm input,
#promptForm textarea,
#promptForm select {
    background: none;
    color: black;
    font-size: 18px;
    padding: 10px 15px;
    width: 100%;
    border: 1px solid #c6c6c6;
    border-radius: 3px !important;
    box-sizing: border-box;
	margin:0
}

#promptForm input:hover,
#promptForm textarea:hover,
#promptForm select:hover {
    border: 1px solid black;
}

#promptForm input:focus,
#promptForm textarea:focus,
#promptForm select:focus {
    outline: none;
    border: 1px solid black;
}

/* Label animation for all form fields */
#promptForm input:focus ~ label,
#promptForm input:valid ~ label,
#promptForm textarea:focus ~ label,
#promptForm textarea:valid ~ label,
#promptForm select:focus ~ label,
#promptForm select:valid ~ label {
    top: -7px;
    font-size: 12px;
    color: #666;
    left: 15px;
}

/* Underline animation effect */
#promptForm .bar:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: black;
    transition: 0.3s;
}

#promptForm input:focus ~ .bar:before,
#promptForm textarea:focus ~ .bar:before,
#promptForm select:focus ~ .bar:before {
    width: 100%;
}

/* Labels for all fields */
#promptForm label {
    color: #c6c6c6;
    font-size: 16px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 15px;
    top: 12px;
    transition: 300ms ease all;
    background-color: #fff;
    padding: 0 2px;
}

/* Select-specific styling */
#promptForm select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gray" width="24" height="24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px; /* Prevent text from overlapping the arrow */
}

#promptForm.scroll{
	overflow-y: auto;
	max-height: 80vh;
}


  /* ------------------------------------------------------ */
table.modal{
	min-width: 0;
	max-width: none;
}

.key{
	display: inline;
	margin: 3px 5px;
	padding: 5px;
	border: 1px solid gray;
}

#functions.fullscreen-code, #code.fullscreen-code{
    position: fixed !important;;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    opacity: .99 !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
#functions.fullscreen-code div, #code.fullscreen-code div{
	border-radius: 0;
}

#codeHeader, #functionsHeader, #groupsHeader, #editor-header{
	padding: 10px;
	text-align: center; 
	background-color: #333;
	color: white;
	border-radius: 5px 5px 0 0;
	font-weight: bold;
	font-size: 14px;
	/* position: relative; */
	/* cursor: grab; */
}

#closeJSONEditor, #closeFunctionsEditor, #closeGroups{
	position: absolute;
	right: 9px;
	top: 7px;
	font-size: 16px;
	cursor: pointer;
}

#editor-header{
	/* padding: 25px 30px 10px 10px; */
	text-align: left;
}

/* 
input[type="checkbox"]{
    -webkit-appearance: initial;
    appearance: initial;
    background: gray;
    width: 10px;
    height: 10px;
    border: none;
    position: relative;
}
input[type="checkbox"]:checked {
    background: white;
}
input[type="checkbox"]:checked:after {
    content: "X";
    color: #fff;

    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    
    content: " ";
    width: 100%;
    height: 100%;
    background: blue;
    top: 0;
    left: 0;
     
}


*/
#header{
	/* box-shadow: 3px 3px 3px #999; */
    padding: 10px;
    width: 941px;
    position: fixed;
    border-radius: 9px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 2;
	top: -5px;
}


#header a, #promptForm a{
	border-radius: 40px;
	margin-right: 10px;
	font-size: 14px;
	font-weight: bold; 
	padding: 7px;
	text-align: center;
	background-color: #03a9f4;
	color: white;
}

#title{
	font-size: 24px;
	font-weight: bold;
	position: fixed;
	top: 10px;
	left: 284px;
	z-index: 1000;
	background: rgba(255, 255, 255, .5);
    padding: 5px;
    border-radius: 5px;
}

#confirmShow, #pageNav{
	position: relative;
	top: 5px;
}

#header a.green{
	background-color: #03f45b;
	color: black;
}

#header a.grey{
	background-color: #666;
}

a.current{
	background-color:black;
}

#header a .active, #header a:hover{
	color: white;
	background-color: black;
}
#groups{
	min-width: 350px !important;
	min-height: 350px !important;
}
#groupList{
	width: fit-content;
	margin: 5px;
	opacity: 0;

}

  .switch {
	display: block;
	margin: 5px;
	width: fit-content;
  }
  .switch span{
	position: relative;
	bottom: 6px;
	left: 6px; 
	font-size: 14px;
	cursor: pointer;
  }

  .switch input[type=checkbox] {
	display: none;
  }
  .switch input[type=checkbox]:checked + label {
	background-color: #2f7df9;
  }
  .switch input[type=checkbox]:checked + label:after {
	left: 16.5px;
  }
  .switch label {
	transition: all 200ms ease-in-out;
	display: inline-block;
	position: relative;
	height: 20px;
	width: 35px;
	border-radius: 20px;
	cursor: pointer;
	background-color: #ddd;
	color: transparent;
  }
  .switch label:after {
	transition: all 200ms ease-in-out;
	content: " ";
	position: absolute;
	height: 17px;
	width: 17px;
	border-radius: 50%;
	background-color: white;
	top: 1.5px;
	left: 2px;
	right: auto;
	box-shadow: 1px 1px 1px gray;
  }
  .switch input[type=checkbox]:checked + label {
	background-color: #55c946;
  }
  .switch label {
	background-color: #ff4949;
  }

.sticky{
	position: absolute !important;
	top: 90px;
	left: 900px;
	width: 200px;
	height: 200px;
	background-color: #FFFF88;
	box-shadow: rgba(0, 0, 0, .5) 5px 5px 5px;
	border-radius: 10px;
	opacity: .9;
	padding: 5px;
	transform: rotate(-5deg);
}

.sticky .note-title{
	font-weight: bold;
	text-align: center;
	font-size: 14px;
	position: absolute;
	width: 100%;
	top: 5px;
	cursor: grab;
}

.sticky-body{
	margin: 10px;
	width: 90%;
	height: calc(95% - 30px);
	position: absolute;
	top: 20px;
	overflow: hidden;
}

#removeSticky{
	background-color: red !important;
	padding: 10px 15px !important;
}


@keyframes opacityPulse {
	from { opacity: 1; }
	50% { opacity: .5; }
	to { opacity: 1; }
  }

.highlight *{
	background-color: yellow !important;
	/* animation: opacityPulse 1s linear infinite;  */
}

.pulse{
	animation: opacityPulse 1s linear infinite; 
}

div.flex{
	display: flex;
}
td.center div.flex{
	justify-content: center;
}

td.right div.flex{
	justify-content: right;
}


.on-off input[type="checkbox"], .yes-no input[type="checkbox"]  {
	margin-left: 12px;
}

.checkbox .label{
	margin: 0 0 0 0;
	top: 2px;
    left: 25px !important;
}
label {
	position: relative;
}
label .label{
	position: absolute;
}


input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--form-background);
	/* margin: 2px 2px 0 4px; */
	margin: 4px 0 0px 0;
	position: relative;
	/* top: 4px; */
	font: inherit;
	color: currentColor;
	width: 1.2em;
	height: 1.2em;
	border: 0.15em solid currentColor;
	border-radius: 0.15em;
	transform: translateY(-0.075em);
	display: grid;
	place-content: center;
  }
  input[type="checkbox"].standard-checkbox {
	-webkit-appearance:checkbox;
	appearance: checkbox;
	
	margin: 4px 4px 0px 0px;
	position: relative;
	/* top: 4px; */
	font: inherit;
	color: currentColor;
	width: 1.2em;
	height: 1.2em;
	border: 0.15em solid currentColor;
	border-radius: 0.15em;
	transform: translateY(-0.075em);
	display: grid;
	place-content: center;
  }
  
  input[type="checkbox"]:not(.group)::before {
	content: "";
	width: 0.65em;
	height: 0.65em;
	/* clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); */
	clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
	transform: scale(0);
	transform-origin: bottom left;
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em var(--form-control-color);
	/* Windows High Contrast Mode */
	background-color: CanvasText;
  }
  
  input[type="checkbox"]:checked:not(.group)::before {
	transform: scale(1);
  }
  
  /* input[type="checkbox"]:focus {
	outline: max(2px, 0.15em) solid currentColor;
	outline-offset: max(2px, 0.15em);
  } */
  
  input[type="checkbox"]:not(.group):disabled {
	--form-control-color: var(--form-control-disabled);
  
	color: var(--form-control-disabled);
	cursor: not-allowed;
  }
  tbody{
	position: relative;
  }

/* Dashboard Access - Float and wrap switches */
#dashboards {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 0;
}

#dashboards .switch-input {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
}

#dashboards .switch-input .col {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

#dashboards .switch {
	margin: 0;
	display: inline-block;
}

  /* .addRow, .removeRow{
	position: absolute;
	bottom: -22px;
	color: #03a9f4;
	left: 0px;
	font-weight: bold;
	font-size: 24px;
	cursor: pointer;
  } */
  .removeRow{
	left: 20px;

  }

  .qr{
	width: 100px;
	height: 100px;
  }

  p{
	margin: 0px !important;
	/* display: inline-block; */
	}
.value p:first-child {
	display: inline-block;
}

	.ql-editor {
		resize: both;
		min-height: 60px;
		min-width: 500px;
		padding: 5px 10px !important;
		/* overflow-y: scroll; */
	}


	
	.ql-container {
		resize: both;
		min-height: 60px;
		min-width: 500px;
		/* overflow-y: scroll; */
	}

	li{
		margin-top: 10px;
	}

	/* .hide-me{
		position: absolute;
		left: 1000px;
		border: none !important;
	} */

	@media print {
		
		#header{
			display: none;
		}
		.no-print{
			display: none !important;
			visibility: hidden;
		}
		.addRemoveRow{
			display: none;
		}
		.card.page:not(.show){
			display: none;
		}
		.card.page:not(.no-print) { 
			/* display: block !important; */
			zoom: .925;
			break-after: always;
			border-radius: 0px;
			box-shadow: none;
			margin: 0;
			padding: 0;
			font-size: .75em !important;
			float: none;
			page-break-after: always;
			print-color-adjust: exact !important;
			-webkit-print-color-adjust: exact !important;
		} /* page-break-after works, as well */
		.font24{
			font-size:20px;
		}
		.font18{
			font-size: 14px;
		}
		.font16{
			font-size: 12px;
		}
		.font14{
			font-size: 10px;
		}
		.font10{
			font-size: 8px;
		}
		.addRow, .removeRow{
			display: none;
		}
		tr{
			border-collapse: separate !important;
		}
		td{
			height: 13px;
		}
	}

	.drag-highlight{
		background-color: #03a9f4 !important;
		color: white !important;
	}

	.overlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(255, 255, 255, 0.75);
		display: flex;
		justify-content: center;
		align-items: center;
		pointer-events: none; /* So clicks pass through to the underlying td */
		font-weight: bold;
		font-size: 10px;
		border: 1px solid black;
		font-weight: bold;
	}


	.fixed-table{	
		width: 400px;
		position: fixed;
		left: 1000px;
		top: 400px;
	}
	/* only on print media */
	@media print {
		.fixed-table.print-inline{
			/* width: 100% !important; */
			position: static;
		
			margin-left: 115px;	
			margin-bottom: 20px;
		}
	}
	.overflow{
		overflow: visible;
	}
	

	.fixed-table td{
		/* background-color: #DCE9D5; */
		background-color: white;
	}
	.two-column-table{
		border: 1px solid black;
		border-top: none;
		border-bottom: none;
	}
	.table-spacer{
		background-color: white !important;
		
	}
	.bl{
		border-left: 1px solid black;
	}

	.br{
		border-right: 1px solid black;
	}

	.bt{
		border-top: 1px solid black;
	}

	.bb{
		border-bottom: 1px solid black;
	}
	

	.user {
		cursor: pointer;
		width: 28px;   /* Set the width of the circle */
		height: 28px;  /* Set the height of the circle */
		border-radius: 50%;  /* Make the div a circle */
		overflow: hidden;  /* Hide the overflowing part of the image */
		display: flex;
		justify-content: center;
		align-items: center;
	}



	.remote_user {
		width: 28px;   /* Set the width of the circle */
		height: 28px;  /* Set the height of the circle */
		position: absolute;
		overflow: hidden;
		/* Create the angled top-left corner and rounded other corners */
		clip-path: polygon(3% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 3%);
		border-radius: 0% 50% 50% 50%; /* Top-left flat, others rounded */
		border: 1px solid #ccc;	
		transition: top 0.1s ease, left 0.1s ease;
	}
	

	
	.user img, .remote_user img {
		width: 100%;     /* Make sure the image takes up the entire width of the div */
		height: 100%;    /* Make sure the image takes up the entire height of the div */
		object-fit: cover;  /* Ensure the image is centered and cropped to fit the div */
	}
	

	.addRemoveRow{
		position: absolute;
		border: none;
		/* bottom: 22px; */
		left: -40px;
		color: #ccc;
		font-weight: bold;
		cursor: pointer;
		user-select: none;
		
	}
	.addRemoveRow td{
		border: none;
		top: -19px;
		position: relative;
	}

	.addRemoveRow span{
		font-size: 15px !important;
	}
	.removeRow, .addRow{
		color: #ccc;
		font-size: 18px !important;		
		cursor: pointer;
		user-select: none;
	}
	.addRow:hover, .removeRow:hover{
		color: #03a9f4;
	}


	.mention-default, .mention{
		background-color: #03a9f4 !important;
		color: white;
		font-weight: bold;
		white-space: nowrap;
		margin: 0 5px;
		padding: 5px;

	}


	
	.mention-green{
		background-color: #03f45b;
	}
	.mention-yellow{
		background-color: #FFFF00;
	}

	.ql-mention-list-item.selected{
		background-color: #03a9f4 !important;
		color: white !important;
	}

	.easepick-wrapper{
		display: block;
	}

	td.referenced{
		outline: 2px dashed #03a9f4;
		outline-offset: -2px;
	}



	.jsError{
		padding: 5px; 
		margin-bottom: 4px; 
		background-color: #ebebeb; 
		width: 100%; 
		max-width: 600px;
		position: relative;
	}

	.clearError{
		background-color: white;
		padding: 5px 0 10px 0;  
		position: absolute;
		right: 10px;
		top: 16px;
		font-weight: bold;
		text-align: center;
		width: 50px;
		height: 25px;
		border-radius: 4px;
		cursor: pointer;
		border: 1px solid black;
		user-select: none; /* Standard syntax */
		-webkit-user-select: none; /* Chrome, Safari */
		-moz-user-select: none;    /* Firefox */
		-ms-user-select: none;     /* Internet Explorer/Edge */
		
	}
	.clearError:hover{
		background-color: black;
		color: white;
	}

	

	.mention{
		padding: 3px;
		border-radius: 3px;
		cursor: pointer;
		user-select: none;
	}

	.mention-border{
		border: 2px solid black;
	}

	.hide-yellow{
		background-color: white !important;
	}

	[data-mention-color="1"] {
		background-color: #b8d9ff !important;
		color:            #1a73e8 !important;
	  }
	  [data-mention-color="2"] {
		background-color: #ffd9b8 !important;
		color:            #ac7902 !important;
	  }
	  [data-mention-color="3"] {
		background-color: #c6f5d2 !important;
		color:            #188038 !important;
	  }
	  [data-mention-color="4"] {
		background-color: #d7b8ff !important;
		color:            #8e24aa !important;
	  }
	  [data-mention-color="5"] {
		background-color: #ffc6c6 !important;
		color:            #d93025 !important;
	  }
	  [data-mention-color="6"] {
		background-color: #fff8b8 !important;
		color:            #fbbc04 !important;
	  }
	  [data-mention-color="7"] {
		background-color: #b8fffa !important;
		color:            #0097a7 !important;
	  }
	  [data-mention-color="8"] {
		background-color: #ffb8f1 !important;
		color:            #c2185b !important;
	  }
	  [data-mention-color="9"] {
		background-color: #c6c6c6 !important;
		color:            #424242 !important;
	  }
	  [data-mention-color="10"] {
		background-color: #d2fff2 !important;
		color:            #00897b !important;
	  }
	  
	  .arrow-target {
		position: relative;
		padding: 20px;
		background: #eee;
		display: inline-block;
		border: 1px solid #ccc;
	  }
	  
	  /* Top arrow */
	  .arrow-top::after {
		content: "";
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		bottom: 100%;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-bottom: 10px solid black;
	  }
	  
	  /* Bottom arrow */
	  .arrow-bottom::after {
		content: "";
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		top: 100%;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top: 10px solid black;
	  }
	  
	  /* Left arrow */
	  .arrow-left::after {
		content: "";
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		right: 100%;
		border-top: 10px solid transparent;
		border-bottom: 10px solid transparent;
		border-right: 10px solid black;
	  }
	  
	  /* Right arrow */
	  .arrow-right::after {
		content: "";
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		left: 100%;
		border-top: 10px solid transparent;
		border-bottom: 10px solid transparent;
		border-left: 10px solid black;
	  }
	  

	  input[type="checkbox"].standard-checkbox{
	display: inline;
}
	  /* CSS */
.save-formula {
	padding: 1em;
	border-top: 1px solid #ccc;
	font-family: sans-serif;
	width: 100%;
	text-align: right;
  }
  .save-formula__label {
	font-weight: bold;
	margin-right: 0.5em;
  }
  .save-formula-item, .multi-cell-formula {
	margin-right: 1em;
	font-size: 0.9em;
	cursor: pointer;
  }
  .save-formula-item input, .multi-cell-formula input {
	margin-right: 0.25em;
	vertical-align: middle;
	top: -3px;
  }
  .save-formula__buttons {
	margin-top: 1em;
	text-align: right;
  }
  .btn {
	padding: 0.5em 0.5em;
	font-size: 0.9em;
	border: 1px solid #888;
	background: #fff;
	cursor: pointer;
	border-radius: 3px;
	margin-right: 0.5em;
	color: #555; 

  }
  .btn:hover{
	color: black;
	border-color: black;
  }
  .btn:active{
	background-color:black;
	color: white;
  }
  .btn--save {
	background: #007bff;
	color: #fff;
	border-color: #007bff;
  }
  .btn:hover {
	opacity: 0.9;
  }

  .btn.primary:hover, .btn--save:hover{
	background: white;
	color: #007bff;
	border-color: #007bff;
  }

  
  .btn.primary, .btn.primary:active, .btn--save:active{
	background: #007bff ;
	color: #fff;
	border-color: #007bff;
  }
