/* ------------------------------------------------------------------------------------------------- */
/* -------------------------------                                     ----------------------------- */
/* -------------------------------    Default EntityAction-Stylesheets ----------------------------- */
/* -------------------------------                                     ----------------------------- */
/* ------------------------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------- */

/* --- EntityAction Overview -------------------------------------*/

div.viewModeSelector{
  display: none;
}

div.entityActionsOverview {
  background-color: var(--color-main-background);
  max-width: 1630px;
  padding: var(--width-componentpadding);
  --icon-size: 32px;
  --eoa-width: 800px;
  --peek-width: 70px;
}

div.entityActionsOverview fp-inline-svg {
  --icon-size: 32px;
}

div.entityActionsOverview .eaoAreaContainer{
  width: calc(var(--eoa-width) + 100px);
  height:560px;
  overflow:hidden;
  position:relative;
  clear: both;
}
div.entityActionsOverview.modeBig .eaoAreaContainer{
  width: 1630px;
}

div.entityActionsOverview .eaoArea{
  position:absolute;
  transition: left 0.5s;
  top: 10px;
  bottom: 10px;
  width: var(--eoa-width);
  padding-top: 2px;
  overflow: visible;
}

.inactiveLinkPopup h1 {
  font-size: 12px;
  color: var(--color-main-font);
  margin: 2px 0;
  white-space: nowrap;
}

.inactiveLinkPopup h1.asadmin {
  font-size: 10px;
  color:#CC0000;
}

.inactiveLinkPopup ul {
  font-size: 11px;
  color: #606060;
  padding-left: 14px;
  margin: 0;
}

div.entityActionsOverview .eaoAreaLeft{
  overflow-x: visible;
  overflow-y: scroll;
  padding-right: 200px;
  /*width:1050px; /* rofl: die scrollbar versteckt sich unter der rechten Tafel*/
}

/*div.entityActionsOverview .eaoAreaLeft .actionGroupsContainer{*/
/*  width:800px;*/
/*  max-width: 95vw;*/
/*}*/
/*div.entityActionsOverview.modeRight .eaoAreaLeft .actionGroupsContainer{*/
/*  width:850px;*/
/*  margin-left: -50px;*/
/*}*/

div.entityActionsOverview .eaoAreaRight{
}

div.entityActionsOverview .eaoAreaLeft { left:7px /*SM: Anpassung wegen Boxshadow*/;  }
div.entityActionsOverview .eaoAreaRight{ left:calc(var(--eoa-width) + 20px); }

/* 10 800 10 800 10 + 20 sneakpeak = 850*/
div.entityActionsOverview.modeLeft .eaoAreaLeft { transform: translate3d(0, 0, 0);  transition: transform 0.75s var(--transition-strong-ease) 60ms;  }
div.entityActionsOverview.modeLeft .eaoAreaRight{ transform: translate3d(0, 0, 0); transition: transform 0.75s var(--transition-strong-ease) 0ms; }
div.entityActionsOverview.modeLeft .eaoAreaRight:hover{ transform: translate3d(-5px, 0, 0);}

div.entityActionsOverview.modeRight .eaoAreaLeft:hover { transform: translate3d(calc(-1 * var(--eoa-width) + var(--peek-width) + 5px), 0, 0); }
div.entityActionsOverview.modeRight .eaoAreaLeft {       transform: translate3d(calc(-1 * var(--eoa-width) + var(--peek-width)), 0, 0); transition: transform 0.75s var(--transition-strong-ease) 0ms;}
div.entityActionsOverview.modeRight .eaoAreaRight{       transform: translate3d(calc(-1 * var(--eoa-width) + var(--peek-width)), 0, 0); transition: transform 0.75s var(--transition-strong-ease) 60ms;}


div.entityActionsOverview div.entityName{
  background-color: #CCCCCC;
  border-bottom: 1px solid #888888;
  font-weight: bold;
  padding: 9px 5px 10px;
  white-space: nowrap;
}

div.entityActionsOverview div.actionGroup,
div.entityActionsOverview div.webGroup{
  width:auto;
  background-color: var(--color-card-background);
  margin-bottom: 10px;
  box-shadow: var(--shadow-cards);
  border-radius: 3px;
  text-align: left;
  margin-left: 3px;
}

div.entityActionsOverview div.actionGroup:last-child,
div.entityActionsOverview div.webGroup:last-child{
  margin-bottom: 0;
}

div.entityActionsOverview div.clearer {
  clear:left;
}

div.entityActionsOverview div.actionGroup h2 ,
div.entityActionsOverview div.webGroup h2 {
  display: block;
  margin: 0 7px;
  padding: 8px 0;
  border-bottom: solid 1px var(--color-default-border);
  font-size: 14px;
  color: var(--color-card-font);
  font-weight: normal;
}

div.entityActionsOverview div.actionGroup ul {
  list-style: none outside none;
  padding: 0;
  margin:0;
  display: flex;
  flex-wrap: wrap;
}

div.entityActionsOverview div.actionGroup ul li {
  display: inline-block;
  width: calc(var(--icon-size) * 3);
  text-align:center;
  height: calc(var(--icon-size) * 2);
  overflow:hidden;
  transition: background 200ms;
  flex: 0 0;
  flex-basis: auto;
}

div.entityActionsOverview div.actionGroup ul li:hover {
  background-color: var(--color-default-hover);
}

div.entityActionsOverview div.actionGroup ul li a.inaktiv{
  padding:0; 
}

/*div.entityActionsOverview div.actionGroup ul li .jmlActionIcon{*/
/*  display:inline-block;*/
/*  margin-bottom: 5px;*/
/*  margin-top:5px;*/
/*  position: relative;*/
/*}*/

/*div.entityActionsOverview div.actionGroup ul li .jmlActionIcon img{*/
/*  width: 32px;*/
/*  height: 32px;*/
/*  margin: 0;*/
/*}*/

img.overlayAsAdmin {
  display:none;
}

.tundra div.entityActionsOverview img.actionAsAdmin {
  /*position: absolute;
  z-index: 0;*/
}

.tundra div.entityActionsOverview img.overlayAsAdmin {
  display:inline;
  position:absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

div.entityActionsOverview div.actionGroup ul li .jmlActionLabel{
  display:block;
  white-space: normal;
  line-height: calc(var(--icon-size) * 0.4);
  font-size: calc(var(--icon-size) / 3);
  color: var(--color-card-font);
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow:ellipsis;
  padding: 0 4px;
}

div.entityActionsOverview div.actionGroup ul li:hover {
 overflow: visible;
}

div.entityActionsOverview.loading div.actionGroup ul li .jmlActionLabel{
	/*opacity: 0.25;*/
}

div.entityActionsOverview div.actionGroup ul li .asAdmin img.actionAsAdmin{
 /* opacity: 0.5;*/
}

div.entityActionsOverview div.actionGroup ul li .asAdmin .jmlActionLabel{
  color:#CC0000;  
}

fp-modal div.entityTitle{
  padding-left: 34px;
  padding-right: 10px;
  position: relative;
  max-width: 1600px;
}


fp-modal div.entityTitle h1.entityTitleLabel {
  font-size: 20px;
  display:block;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 24px;
  margin: 0;
}

fp-modal div.entityTitle span.entityTitleImage {
  display: inline-block;
  margin-right:8px;
  position: absolute;
  left: 0;
  top: -4px;
  --icon-size: 32px;
}

fp-modal div.entityTitle span.entityTitleImage > fp-inline-svg {
  vertical-align:text-bottom;
  width: 24px;
  height: 24px;
  background-color: #FFF;
  padding: 4px;
  border-radius: 4px;
}

fp-modal div.modeSwitcher {
  display: inline-block;
}

fp-modal div.modeSwitcher button {
  margin-right:4px;
  position: relative;
  height: 24px;
  cursor: pointer;
}

div.entityActionsOverview.modeBig div.modeSwitcher{
  width: 1630px;
  display: none;
}

div.entityActionsOverview div.modeSwitcher span {
  border-bottom: 2px solid #FFF;
  color: #666;
  margin: 0 0;
  padding: 0 8px;
  top:0;
  cursor: pointer;
  display:inline-block;
  height:22px;
  line-height: 22px;
  transition: all 0.5s;
}

div.modeLeft div.modeSwitcher span:first-child{ color: #000; border-color: #000;}
div.modeLeft div.modeSwitcher span:last-child{ }
div.modeLeft div.modeSwitcher:hover span:first-child{ color: #999; border-color: #999;}
div.modeLeft div.modeSwitcher span:last-child:hover{ color:#333; border-color: #333;}

div.modeRight div.modeSwitcher span:first-child{}
div.modeRight div.modeSwitcher span:first-child:hover{ color:#333; border-color: #333;}
div.modeRight div.modeSwitcher span:last-child{ color: #000; border-color: #000;}
div.modeRight div.modeSwitcher:hover span:last-child{ color: #999; border-color: #999;}


div.entityActionsOverview div.entityFooter {
  height:8px;
}

div.entityActionsOverview a.jmlAction, 
div.entityActionsOverview span.jmlAction, 
div.entityActionsOverview span.jmlAction .dijitButtonNode,
div.entityActionsOverview span.jmlAction .dijitDownArrowButton{
	display: block;
	width: 100%;
	height: 100%;
	border: 0 none;
	padding: 0;
	margin: 0;
}

div.entityActionsOverview a.inaktiv {
  text-align:center;
}

.tundra div.entityActionsOverview .dijitContentPane {
  background-color: transparent;
  padding:0;
}

div.entityActionsOverview div.relationwebContainer{
  position: relative;
  height:560px;
}

div.entityActionsOverview div.relationwebContainer .back, 
div.entityActionsOverview div.relationwebContainer .nodes {
  height: 560px; /* nur damit der IE das auch richtig versteht */
}
div.entityActionsOverview div.relationwebContainer .back > svg {
  width: 100%;
  height: 100%;
}

div.webGroup {
  height: 100%;
}

/* Einblenden nach dem Laden */
div.entityActionsOverview.loading .back .edgeNormal{  opacity:0;  transition:opacity 1s;}
div.entityActionsOverview.loading.loadingDone .back .edgeNormal{  opacity:1;}
div.entityActionsOverview.loading .back .edgeBack{  opacity:0;  transition:opacity 1s;}
div.entityActionsOverview.loading.loadingDone .back .edgeBack{  opacity:1;}

div.entityActionsOverview.loading .nodes .nodeNormal{  opacity:0;  transition:opacity 0.5s;}
div.entityActionsOverview.loading.loadingDone .nodes .nodeNormal{  opacity:1;}

/* Ausblenden beim travelNode*/
div.relationwebContainer .back      .edgeNormal{  transition:opacity 0.25s; }
div.relationwebContainer .back.hide .edgeNormal{  opacity:0; }
div.relationwebContainer .back      .edgeBack{  transition:opacity 0.25s; }
div.relationwebContainer .back.hide .edgeBack{  opacity:0; }

div.relationwebContainer .nodes,
div.relationwebContainer .labels{
  position: absolute;
  top: 0;
  left:0;
  right: 0;
  bottom:0;
}

div.relationwebContainer .nodes .node{
  position: absolute;
  border: 0 none;
  width: 120px;
  margin-left: -60px;
  height: 64px;
  padding: 0 0;
  margin-top:-32px;
  
  background: #f2f2f2; /* Old browsers */
  background: -moz-linear-gradient(top,  #FAFAFA 0%, #E0E0E0 100%); /* FF3.6+ */
  background: -webkit-linear-gradient(top,  #FAFAFA 0%,#E0E0E0 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #FAFAFA 0%,#E0E0E0 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #FAFAFA 0%,#E0E0E0 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #FAFAFA 0%,#E0E0E0 100%); /* W3C */

  color: #666;
  
  box-shadow: 0 1px 2px #999;
  
  transform: scale(1.0,1.0);
  transition: all 0.5s;
  overflow: visible;
  text-align: center;
}

div.relationwebContainer .nodes .node .nodeContent{
  position:absolute;
  width:100%;
  height:100%;
  display:table;
  table-layout:fixed;
  cursor: pointer;
}

/* Haupttext  56px hoch */
div.relationwebContainer .nodes .node .titleSegment    {  display: table-row; }
div.relationwebContainer .nodes .node .title           {  
  display: table-cell; vertical-align: middle; text-align: center;
  height:44px;
  width:110px;
  padding:0 5px;
  overflow:hidden;
  text-overflow:ellipsis;
}

div.relationwebContainer .nodes .node .title span{
  display: block;
  max-height:40px;
  width:110px;
  text-align:center;
  font-size: 14px;
  letter-spacing:0;
  line-height:18px;
  overflow: hidden;
  text-overflow: ellipsis;
}
div.relationwebContainer .nodes .centerNode .title {
  height:64px;
}
/* Relation */
div.relationwebContainer .nodes .node .relationSegment {  
  display: table-row;
  transition: opacity 0.5s;
}
div.relationwebContainer .nodes .centerNode .relationSegment {
  opacity: 0;
}

div.relationwebContainer .nodes .node .relation {        
  display: table-cell; vertical-align: middle; text-align: center;
  color: #FFF;font-size: 14px;
  line-height:20px;
  height:20px;
  background-color: #999;
  overflow:hidden;
  text-overflow:ellipsis;
}

div.relationwebContainer .nodes .entityRelation .relation{
  padding-left:22px;
  text-align:left;
  background-position: 2px center;
  background-repeat: no-repeat;
  background-image: url(../relationbox/prio_standard.svg);
  background-size: 20px;
} 

div.relationwebContainer .nodes .entityRelation10 .relation{ background-image: url(../relationbox/prio_top.svg); }
div.relationwebContainer .nodes .entityRelation7 .relation{ background-image: url(../relationbox/prio_high.svg); }
div.relationwebContainer .nodes .entityRelation5 .relation{ background-image: url(../relationbox/prio_standard.svg); }
div.relationwebContainer .nodes .entityRelation3 .relation{ background-image: url(../relationbox/prio_low.svg); }
div.relationwebContainer .nodes .entityRelation0 .relation{ background-image: url(../relationbox/prio_none.svg); }

div.relationwebContainer .nodes .node .relation span{
  white-space: nowrap;
}

div.relationwebContainer .nodes .node .iconSegment     {
  float:left;
  display: inline-block;
  width: 16px; 
  margin-left:-16px;
  height: 16px;
  margin-top:-16px;
  overflow: visible;
}
div.relationwebContainer .nodes .node .icon{ 
  border-radius: 50%;
  width:24px;
  height:24px;
  padding:2px;
  border: 2px solid #CCC; 
  background-color:#FFF;
  overflow:hidden;
}
div.relationwebContainer .nodes .node .icon img {
  width: 100%;
  height: auto; 
}

div.relationwebContainer .nodes .nodeNormal:hover{
  transform: scale(1.1,1.1);
  opacity:1;
}
div.relationwebContainer .nodes .centerNode{
  transform: scale(1,1);
  top: 50%;
  left:50%;
  background: var(--color-main-font); /* Old browsers */
  /*background: -moz-linear-gradient(top,  var(--color-main-font) 0%, #1e5799 100%, #2989d8 100%, #003366 100%); !* FF3.6+ *!*/
  /*background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,var(--color-main-font)), color-stop(100%,#1e5799), color-stop(100%,#2989d8), color-stop(100%,#003366)); !* Chrome,Safari4+ *!*/
  /*background: -webkit-linear-gradient(top,  var(--color-main-font) 0%,#1e5799 100%,#2989d8 100%,#003366 100%); !* Chrome10+,Safari5.1+ *!*/
  /*background: -o-linear-gradient(top,  var(--color-main-font) 0%,#1e5799 100%,#2989d8 100%,#003366 100%); !* Opera 11.10+ *!*/
  /*background: -ms-linear-gradient(top,  var(--color-main-font) 0%,#1e5799 100%,#2989d8 100%,#003366 100%); !* IE10+ *!*/
  /*background: linear-gradient(to bottom,  var(--color-main-font) 0%,#1e5799 100%,#2989d8 100%,#003366 100%); !* W3C *!*/
  color: #FFF;
}
div.relationwebContainer .nodes .backNode{
  transform: scale(0.5,0.5);
  top: 50px;
  left:50px;
  opacity: 0.5;
}

div.relationwebContainer .nodes .backNode:hover{
  transform: scale(0.75,0.75);
  top: 75px;
  left:75px;
  opacity: 1;
}

div.relationwebContainer .nodes .hide{
  opacity:0;
}
div.relationwebContainer .node .nodeAnchor{
  cursor: pointer;
}

div.relationwebContainer .nodes .label{
  position: absolute;
  overflow: visible;
  height: 12px;
  margin-top: 40px;
  width: 128px;
  margin-left:-64px;
  text-align: center;
  transition:opacity 1s;
  display:none;
}

div.relationwebContainer .nodes .label .text{
  border: 1px solid #333;
  background: #FAFAFA;
  color: #333;
  font-size:10px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
  line-height: 12px;
  max-height:24px;
  display: inline-block;
  border-radius:6px;
  padding:2px;
  
}

svg.entityaction {
  width: 100%;
}

svg.relationweb .edge{
  stroke-width: 2px;
  stroke: #CCC;
}

svg.relationweb .backEdge{
  stroke: url(#backEdgeGradient);
  stroke-width: 2px;
}

svg.relationweb #backEdgeGradient #start {stop-color:#CCC;stop-opacity:0.1; }
svg.relationweb #backEdgeGradient #end   {stop-color:#CCC;stop-opacity:1; }

.eaoQuickSearch {
  position: absolute;
  bottom: 0;
  z-index: 5;
  right: 0;
  visibility: visible;
  opacity: 1;
  transition:opacity 0.5s;
}

.eaoQuickSearch input {
  font-size: 12px;
  background-color: yellow;
  border: 0;
}

.eaoQuickSearch.hide {
  opacity: 0;
  visibility: hidden;
}

/* Kleine Displays: Die EAO passt hier nicht sinnvoll auf den Screen */
@media (max-width: 1200px), (max-height: 800px){
  div.entityActionsOverview {
    --icon-size: 24px;
    --peek-width: 30px;
  }
  div.entityActionsOverview fp-inline-svg {
    --icon-size: 24px;
  }
  div.entityActionsOverview {
    --eoa-width: calc(80vw - 150px);
  }
  div.entityActionsOverview .eaoAreaLeft{
    overflow-x: visible;
    overflow-y: auto;
    padding-right: 4px;
  }
  div.entityActionsOverview .eaoAreaRight{
    width: 600px;
  }
  div.relationwebContainer{
    transform: scale(0.75) translateX(-400px);
    transform-origin: top left;
    width: 800px;
    margin-left: 50%;
  }
}
/* Smartphones */
@media (orientation: portrait) and (max-width: 499px){
  div.entityActionsOverview {
    --icon-size: 16px;
    --peek-width: 15px;
  }
  div.entityActionsOverview fp-inline-svg {
    --icon-size: 16px;
  }
  div.entityActionsOverview {
    --eoa-width: 200px;
  }
  div.entityActionsOverview .eaoAreaContainer{
    width: calc(100vw - 30px);
  }

  div.entityActionsOverview div.actionGroup ul {
    flex-direction: column;
  }
  div.entityActionsOverview div.actionGroup ul li{
    width: auto;
    height: 24px;
    padding: 2px;
  }
  div.entityActionsOverview.modeRight div.actionGroup ul li{
    width: 50%; /* wir möchten auf den Bereich klicken können, um in modeLeft zurück zu wechseln*/
  }

  div.entityActionsOverview div.actionGroup ul li a{
    display: flex;
    align-items: center;
  }
  div.entityActionsOverview div.actionGroup ul li .jmlActionLabel {
    line-height: var(--icon-size);
    font-size: calc(var(--icon-size) * 0.75);
    margin: 0;
    text-align: left;
  }
  div.entityActionsOverview .eaoAreaRight{
    width: 320px; /* 320/800 = 0.4 scale */
  }
  div.relationwebContainer{
    transform: scale(0.4) translateX(-400px);
    transform-origin: top left;
    width: 800px;
    margin-left: 50%;
  }
}
