.dialogtop div.mobiledialog > .mobilecontents * {
  box-sizing: border-box;
}
a.entity {
  text-decoration: none;
}

div.fa.entitybutton {
  cursor: pointer;
  float: right;
  margin: 5px;
}

.deleteicon div.entitybutton {
  float: none;
  margin: 0px;
}

.entitybasicedit
{
	display: flex;
	flex-wrap: wrap;
}

.entitybutton.entityfiltercancel 
{
  color: red;
}

.entitybutton.entityfilterselection
{
  color: green;
}

.entitybutton.entitylocked 
{
  cursor: not-allowed;
  color: orange;
}

div.entitycell img.iconmedium,
.linkdialogicon img.iconsmall {
  filter: brightness(0);
  display: block;
}
div.entitybutton.entitydialogmove {
  cursor: move;
  padding-left: 5px;
  padding-top: 0px;
  float: left;
  display: flex;
}
div.entitydialog div.entitydialogheading span.entityname {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.linkdialogicon {
  display: flex;
  align-items: center;
  gap: 3px;
}
.linkdialogicon .entityname {
  display: flex;
  order: 1;
}

.entityellipsis,
.entitymore
{
	color: DodgerBlue;
	cursor: pointer;
	display: inline-block;
	font-size: larger;
	font-weight: bold;
}

.entitygrid
{
	flex-basis: 100%;
	overflow-x: auto;
}

.entitygrid > div
{
	display: inline-block;
	min-width: 100%;
}

.entitygrid .entitycell {
  display: inline-block;
  vertical-align: middle;
  white-space: normal;
  padding: 8px;
  font-size: 12px;
}

.entitygrid .entityheading .entitycell 
{
  font-size: 13px;
}

.entitygrid.entitychoosemode
{
	background-image: radial-gradient(400px at 0% 50%, white, #bbbbbb);
}

.entitygrid.entityprimarymode .entitycell[data-key=entityid],
.entitygrid.entitychoosemode .entitycell[data-key=primary]
{
	display: none;
}

div.entityclasses,
div.entityfilters {
  /* background-color: wheat; */
  /* border: 3px solid black; */
  display: none;
  text-align: right;
  /* padding: 3px;  
  border-radius: 4px; */
}

div.entitydata.bold {
  font-weight: bold;
}

.entitydata.onlydialogicon 
{
  text-align: center;
  width: 100%;
}

.entitydatabox
{
	background-color: #f7f7f7;
	border: 1px solid #b0b0b0;
	border-radius: 8px;
	margin-bottom: 2px;
	margin-top: 2px;
	padding: 2px;
}

div.entitydialog {
  background-color: white;
  /* border: 3px solid black; */
  /* position: fixed; */
  position: absolute;
}

.entitydialog.entitycurrent {
  /* background-color: lightgreen; */
  background-color: #fff;
  box-shadow: 0px 0px 20px 10px rgb(0 0 0 / 20%);
}
.entitydialog div.entitydialogheading>.d-flex {
  width: calc(100% - 100px);
}

.entitydialog div.entitydialogheading {
  /* background-color: turquoise; */
  background-color: #fff;
  border-bottom: 1px solid #bdc3c7 !important;
  border-radius: 0;
  margin: 0;
  color: #34495e;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 3px;
  padding: 10px;
}

.entitydialogbackdrop {
  background-color: black;
  display: none;
  inset: 0px;
  opacity: 0.2;
  position: fixed;
  z-index: 2000;
}
.entitydiv {
  position: relative;
  top: 0px;
  padding: 24px;
  background: #fff;
}
.entitydiv .mobilecontents{
  overflow-y: auto;
  max-height: 80vh;
}
.entitydialogminimized {
  bottom: 0px;
  left: 0px;
  position: fixed;
  z-index: 3000;
}

.entitydialogminimized > .entitydialog {
  display: inline-block;
  margin-left: 10px;
  position: relative;
}

.entitydialognormal {
  display: none;
  inset: 0px;
  /* position: fixed; */
  position: absolute;
  z-index: 2000;
}

.entityformentry {
  display: inline-block;
  vertical-align: top;
}

.entityformentry .required {
  background-color: white;
}

.entityformrow {
  padding: 3px;
}

.entityformtitle {
  display: inline-block;
  font-weight: bold;
  vertical-align: top;
  width: 150px;
}

.entitygrid .entitysection {
  background-color: #c7d7cf;
  color: #060908;
  margin-bottom: 2px;
  vertical-align: middle;
  padding: 8px;
  border-radius: 4px;
  position: relative;
}

.entitygrid .entitysectiondiv:first-child .entitysection {
  background-color: #77e9b0;
}

.entityheading {
  font-weight: bold;
  white-space: nowrap;
}
.entitygrid .entityheading {
  border-bottom: 2px solid #dedede;
  background-color: #f5f5f5;
}

.entitylabel
{
	border-radius: 12px;
	color: white;
	display: inline-block;
	margin-right: 4px;
	text-align: center;
	width: 70px;
}

.entitylabel.first
{
	background-color: #704214;
}

.entitylabel.second
{
	background-color: green;
}

.entitylabel.third
{
	background-color: blue;
}

.entitynewvalue
{
	color: #39bd7c;
}

.entityoff {
  display: none;
}

.entitypagerows
{
	overflow-x: hidden;
}

.entityrequired::after {
  color: #e84855;
  content: " \2217";
  left: -5px;
  position: relative;
  top: -5px;
}

.entityrow 
{
  white-space: nowrap;
  border-top: 1px solid #dedede;
}

.entitysearch {
  background-color: white;
  display: inline-block;
}

.entitysectiondiv:first-child .entitysingle {
  background-color: #eefdf5;
}
.entitydialog .entitysection div.entitybutton.fa-pencil-square-o {
  color: blue;
}
.entitydialog .entitysection div.entitybutton.fa-trash {
  color: #ff5370;
}
.entitydialog .entitysection div.entitybutton.fa-print {
  color: darkgreen;
}
.entitydialog .entitysection div.entitybutton.fa-minus {
  color: #4466f2;
}
.entitydialog .entitysection div.entitybutton.fa-external-link {
  color: darkblue;
}
.entitydialog .entitysection div.entitybutton.fa-plus {
  color: blue;
}
.entitydialog .entitysection div.entitybutton.fa-filter {
  color: #e91e63;
}
.entitysectiondiv .entityheading .entitycell .fa-trash.noprint {
  color: #ff5370;
  opacity: 0.5;
}
.entitysectiondiv .entitycell .fa-trash.noprint {
  color: #ff5370;
  opacity: 1;
}

.entitysingle,
.entitygrid,
.entitydialog .entityform {
  border: 1px solid #b3e9ce;
  margin-bottom: 15px;
  border-radius: 0 0px 4px 4px;
}
.entitygrid .entitynone,
.entitysearchresults span {
  text-align: center;
  display: block;
  margin-top: 15px;
}
.entitysection img.entity {
  display: none;
}
.entityselect,
.entityfilters > .entityfilter {
  background-color: wheat;
  padding: 8px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}

.entitysearchresults
{
	max-height: 300px;
	overflow-y: auto;
}
.entitysearchrow
{
	align-items: center;
	display: flex;
	padding: 5px;
}

.entitythrobber
{
	background-color: #E7F8F0;
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
	margin-top: 10px;
}

.entityupdated {
  font-size: 11px;
  font-style: italic;
  background: #dcefe5;
  display: inline-block;
  padding: 5px;
  border-radius: 4px;
  color: #000;
}

.entityxrefrow
{
	align-items: center; 
	display: flex; 
	justify-content: left;
	width: 100%; 
}

img.iconlarge {
  height: 48px;
  width: 48px;
}

img.iconmedium {
  height: 24px;
  width: 24px;
}

img.iconsmall {
  height: 16px;
  width: 16px;
}

/* The following is for using the new Entity Objects in legacy portions of the application. */

.mobiledialog .entitysection {
  background-color: #39bd7c;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-family: "Poppins", sans-serif !important;
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 1.5px;
  padding: 12px 12px 12px 8px;
}

.mobiledialog .entitysection .fa {
  margin-left: 10px;
  margin-right: 0;
  font-size: 15px;
}

.mobiledialog .entitysection img.entity {
  display: initial;
}

.mobiledialog .entitysection .entitysectionclass {
  position: relative;
  font-size: 15.5px;
  margin-left: 8px;
}
