/* ------------------------------------------------------------------------------------------------- */
/* -------------------------------                                     ----------------------------- */
/* -------------------------------   HauptMenülayout projectfacts      ----------------------------- */
/* -------------------------------                                     ----------------------------- */
/* ------------------------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------- */

body.tundra .tmplNaviTable {
  margin-top: 0;
  transition: all 0.25s;
}

body.tundra.standard .tmplNaviTable td.navi_main,
body.tundra.standard .tmplNaviTable .pfMenu1 {
  transition: height 0.25s;
}

body.tundra.standard .tmplNaviTable td.navi_main.tmplLogo {
  overflow: hidden;
  width: 1px;
}

body.tundra.detailmanager .systemMessage {
  position: relative;
  z-index: 100;
}

body.tundra .dijitTooltipDialogPopup {
  z-index: 11000;
}

.pfMenu1,
.tundra .dijitMenu,
.tundra .dijitMenuBar {
  border: 1px none;
}

.tundra .pfMenu1.dijitToolbar {
  border: 1px none;
  background: none;
}

body.has-background form.favs4menu .jml-tiles-body .jml-tile,
body.has-background .pfMenu .menuOverviewItem
/* wirkt wie overflow hidden: schlecht für den fab! -> ,body.has-background .modulesearch fp-field:not(.active)*/
{
  --color-card-background: var(--color-tint-75);
  --color-input-background: var(--color-tint-75);
  backdrop-filter: var(--backdrop-filter-ui);
}

/** Links im Menu haben immer die gleiche Textfarbe, Font, ... wie das Menu selbst*/

.pfMenu1 .jmlMenuItem a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.pfMenu1 .jmlMenuItem .jmlMenuCaption,
.tundra .jmlMenuItem>span {
  cursor: pointer;
}

.pfMenu1 .jmlMenuItem>span,
.pfMenu1 .jmlMenuItem>a {
  display: block;
}

.pfMenu1 .jmlMenuItem:hover>span,
.pfMenu1 .jmlMenuItem:hover>a {
  display: block;
}

.pfMenu1 .smartIcons {
  white-space: nowrap;
}

.pfMenu1 .smartIcon>span {
  padding-right: 0;
  /* kein DownArrow */
  background-image: none;
  background-repeat: no-repeat;
  background-position: right center;
}


/* Navigation */

.tmplMenu {
  min-height: var(--height-topmenu1);
  box-shadow: var(--shadow-cards);
  /*z-index:100; wir probieren es "ohne"*/
  background-color: transparent; /*var(--color-menu1-back);*/
  flex-shrink: 0;
  will-change: opacity;
}

.tmplMenu:focus-within {
  z-index:105;
}

.tmplNaviTable {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

.tmplLoginOut,
.tmplLogo,
.tmplMenuTop {
  white-space: nowrap;
}


/*Logoutmenue*/

.smartIcons .smartIconSettings,
.smartIcons .smartIconFavorites,
.smartIcons .smartIconHelp,
.smartIcons .smartIconSearch,
.smartIcons .smartIconLogout {
  width: 20px !important;
  padding: 0 5px !important;
}

td.tmplLogo,
td.tmplLoginOut,
td.tmplMenuSpacing,
.pfMenu1 .menupassive {
  color: var(--color-main-font);
}

.tundra .pfMenu1 {
  background-color: transparent;
  color: var(--color-main-font);
}

.pfMenu1 .jmlMenuPopupItem {
  padding: 0 2px 0 2px;
}

.pfMenu1 .jmlMenuPopupItem>span {
  padding: 0;
  margin: 0;
  border: 0 none;
  background: transparent;
  line-height: 66px;
}

.pfMenu1 .items {
  display: flex;
  width: 100%;
  flex-direction: row;
}

.pfMenu1 .items::after {
  display: inline-block;
  content: '';
  flex-grow: 5;
}

.pfMenu1 .jmlMenuItem {
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
  padding-left: 4px;
  padding-right: 4px;
  color: var(--color-menu1-font);
  display: inline-block;
  height: 100%;
  border: 0 solid transparent;
  transition: background 0.2s ease-out;
  position: relative;
  vertical-align: middle;
  text-align: center;
}

.pfMenu1 .jmlMenuItem:hover,
.pfMenu1 .menuactive,
.pfMenu1 .menuactive:hover {
  background-color: var(--color-menu1-back-hover);
  color: var(--color-menu1-font-hover);
}

.pfMenu1 .jmlMenuItem>span,
.pfMenu1 .jmlMenuItem>a {
  /*border-left: 1px solid #FFFFFF;*/
  /*border-right: 1px solid #DDDDDD;*/
  height: calc(var(--height-topmenu1) - 4px);
  padding: 4px 0 0 0;
  font: var(--font-medium);
  line-height: var(--height-topmenu1);
}

.pageReady .pfMenu1 .jmlMenuItem>span,
.pageReady .pfMenu1 .jmlMenuItem>a {
  transition: padding 0.5s, font-size 0.5s;
}
col.tmplLogo { max-width: 160px; width: var(--height-topmenu1);}
td.navi_main.tmplLogo img,
td.navi_main.tmplLogo fp-inline-svg{
  transition: all 0.25s;
  min-width: var(--height-topmenu1);
  max-width: 160px;
  width: max-content;
  height: var(--height-topmenu1);
  object-fit: contain;
  vertical-align: bottom;
  /* sonst vergrößert es die tabellenzelle ?!?!?*/
}
td.navi_main.tmplLogo fp-inline-svg svg{
    height: var(--height-topmenu1);
    width: auto;
    max-width: 160px;
}

.tundra .pfMenu1 .items {
  height: var(--height-topmenu1);
}

.menuUnhideButton {
  display: none;
  padding-right: 24px;
  overflow: hidden;
  height: 48px;
  font-size: 28px;
  min-width: 80px;
  margin-left: 4px;
  text-align: left;
  border: 0;
  background: var(--color-menu1-back);
  color: var(--color-menu1-font);
  cursor: pointer;
}

div.dijitMenuPopup {
  border: 1px solid #CCC;
}

div.navi_main,
td.navi_main {
  height: var(--height-topmenu1);
  /*  border-bottom-width: 4px;
  border-bottom-style: solid; */
  padding: 0;
  background-color: var(--color-menu1-back);
  color: var(--color-menu1-font);
}
div.navi_main {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: space-between;
  height: var(--height-topmenu1);
  text-align: center;
  font: var(--font-large);
  position: relative;
  z-index: 10;
  padding: 0 var(--width-componentspacing);
}

div.navi_main .title {
  flex-basis: 100%;
  font-weight: 400;
}
.overlaymenu {
  max-height: 0;
  overflow: visible;
}

.overlaymenu::before {
  background-color: var(--color-main-background);
  opacity: 1;
  content: '';
  display: block;
  width: 100%;
}
.overlaymenu::before,
.overlaymenu .scroller{
  position: absolute;
  box-sizing: border-box;
  height: calc(100vh - var(--height-topmenu1) - var(--height-footer));
  width: 100%;
  overflow: auto;
}

.overlaymenu .scroller {
  padding: var(--width-componentspacing);

}

.overlaymenu .banner {
  text-align: center;
  padding: 24px 0 8px 0;
}

.modulesearch {
  --border-radius-input: 20px;
  --height-input: 40px;
  --height-input-button: 36px;
}
.modulesearch .floating-action-buttons-container {
  background: transparent;
}
.modulesearch fp-fab{
  --button-size: var(--height-input-button);
  --button-position: relative;
  z-index: 1;
}

.modulesearch fp-fab:not(:hover) {
  --button-shadow: none;
}

.tmplCenter  div.modulesearch,
.overlaymenu div.modulesearch{
  padding: 8px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlaymenu .banner .logo {
  max-width: 80vh;
  max-height: 20vh;
}

.modulesearch fp-field {
  width: 50vw;
  margin: 0 10px 10px 10px;
  padding-left: 20px;
  display: inline-flex;
  flex-grow: 0;
  font:var(--font-medium);
}
.modulesearch fp-field fp-format-entity{
  height: var(--height-input-button);
}

@media (max-width: 799px) {  .modulesearch fp-field { width: 60vw; }}
@media (max-width: 599px) {  .modulesearch fp-field { width: 80vw; }}

.modulesearch fp-field [slot=widgets]:not([hiddenaction]),
.modulesearch fp-field:hover [default][slot=widgets],
.modulesearch fp-field [slot=widgets]:hover {
  background: transparent;
  color: var(--color-accent-contrast);
}

.modulesearch fp-field [slot=widgets] > a.jmlAction{
  background: var(--color-accent);
  border-radius: 50%;
  height: var(--height-input-button);
  line-height:var(--height-input-button);
  width: var(--height-input-button);
}

.modulesearch fp-field fpfab{
  --button-shadow: none;
}

.overlaymenu nav#menuOverview1 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

.overlaymenu nav#menuOverview1 .jmlMenuItem{
  width: 100px;
  height: 80px;
  overflow: hidden;
  position: relative;
  margin: 8px;
}

.overlaymenu nav#menuOverview1 a {
  display: block;
  line-height: 40px;
  width: 100%;
  background-color: var(--color-menu1-back);
  color: var(--color-menu1-font);
  box-shadow: var(--shadow-cards);
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

@keyframes fade-in {
  from {opacity: 0;}
  to{opacity: 1;}
}
.portal-menu {
  overflow: auto;
  height: 100%;
  padding: var(--width-componentspacing);
  animation: fade-in;
  animation-duration: 400ms;
}

/* --- Notifications fuers menue --------------------------------- */

.menuNotificatiorAnchor {
  height: 0;
  width: 0;
  padding: 0;
  margin: 0;
  position: relative;
}

.menuNotificatiorAnchorInvisible {
  display: none;
}

.menuNotificatiorAnchorVisible {
  display: block;
}

.dijitBackgroundIframe {
  background: none;
}


/** Die roten "Bommel"*/

.menuNotificatiorAnchor .menuNotificatior {
  position: absolute;
  right: 3px;
  top: -10px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  height: auto;
}

.menuNotificatiorAnchor .menuNotificatior .label {
  margin: 0;
  display: inline-block;
  width: 15px;
  height: 18px;
  padding: 20px 0 0 0;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-left-color: rgb(255, 5, 5);
  border-right-color: rgb(169, 3, 41);
  border-bottom-color: rgb(169, 3, 41);
  background: #c6360d none;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
  font-size: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}

.menuNotificatiorAnchor .menuNotificatior:hover .label {
  /*margin-bottom: -5px;*/
  transform: translate3d(0, 5px, 0);
}

.listsetting-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 16px;
}

.listsetting-menu-element {
  height:80px;
  width:128px;
  text-align: center;
  cursor: pointer;
}

.listsetting-menu-element label{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 32px;
  padding: 4px;
  cursor: pointer;
}

pf-list-view.favs4menu {
  margin-bottom: 12px;
}

form.favs4menu .jml-tiles-body .jml-tile {
    transition: background 200ms;
    cursor: pointer;
}
form.favs4menu .jml-tiles-body .flex-element:not(.flex-element-create) .jml-tile:hover {
    box-shadow: 0 0 5px var(--color-menu1-back-hover);
    background-color: var(--color-menu1-back-hover);
    color: var(--color-menu1-font-hover);
}
form.favs4menu .jml-tiles-body .flex-element:not(.flex-element-create) .jml-tile:hover .jml-tile-header{
    color: var(--color-menu1-font-hover);
}

form.favs4menu {
  display: flex; flex-direction: row-reverse;
  background: transparent !important; /* das hier ist wirklich explicit!*/
  min-height: 96px;
}
form.favs4menu > .jmlListheader {display: none; background: transparent;}
form.favs4menu > .jmlViewcontroller {display: none;}
form.favs4menu > .jmlListBody {
  width: 100%; padding-left: var(--tile-width);
  padding-top: 32px; min-height: 80px;
}
@media (max-width: 799px) {
  form.favs4menu > .jmlListBody {
    padding-left: 0;
    padding-top: 32px; min-height: 80px;
  }
}

form.favs4menu.jml_formTiles .jml-tiles-cell {
  background-color: transparent;
  border: 0 none;
}

form.favs4menu .jml-tiles-body {
  align-items: center;
  align-content: center;
  justify-content: center;
}
form.favs4menu .jml-tiles-body .flex-element{
  flex-grow: 0;
}

/* ------------------------------------------------------------------------------------------------- */


/* -------------------------------                                     ----------------------------- */


/* -------------------------------    Untermenü - Standard-Styles      ----------------------------- */


/* -------------------------------                                     ----------------------------- */


/* ------------------------------------------------------------------------------------------------- */


/* ------------------------------------------------------------------------------------------------- */

.pfMenu2 {
  height: var(--height-topmenu2);
}

.tmplNaviTable td.navi2_main {
  padding: 0;
}

.pfMenu2 .jmlMenuExpander {
  width: 0;
  overflow: visible;
  display: inline-block;
  cursor: pointer;
  height: var(--height-topmenu2);
  vertical-align: middle;
}

.pfMenu2 .jmlMenuExpander:last-child {
  display: none;
}

.pfMenu2 .jmlMenuExpander span {
  color: var(--color-menu2-font);
  height: var(--height-topmenu2);
  line-height: var(--height-topmenu2);
  display: inline-block;
  margin-top: 0;
  width: 24px;
  text-align: center;
  font-size: 16px;
}

.pfMenu2 .jmlMenuCaption {
  font-size: 12px;
  text-decoration: none;
  font-weight: normal;
  padding: 5px 10px;
  display: flex;
  color: var(--color-menu2-font);
  height: 32px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.jmlMenu2 {
  margin: 0 0 0 0;
  background: none repeat scroll 0 0 var(--color-menu2-back);
  padding: 0 5px 0 0;
  flex: 1;
  align-items: center;
  /*margin-bottom:calc(-1 * var(--height-topmenu2));*/
  /*box-shadow: 0 2px 3px rgba(0,0,0,0.5);*/
  /*opacity: 0;*/
  /*transform: scaleY(0);*/
  /*transition: opacity 200ms, scale 200ms;*/
}
.tmplMenu:focus-within, .tmplMenu:hover {
  z-index: 105;
}
.tmplMenu:hover .jmlMenu2  {
  opacity: 1;
  transform: scaleY(1);
  position: relative;
  z-index: 1000;
}

/* Image: nicht in der normalen Ansicht */

.tundra .pfMenu2 img {
  display: none;
}

.tundra .pfMenu2 .dijitMenuItem,
.tundra .pfMenu2 .jmlMenuItem {
  transition: all 0.2s ease-out;
  border-bottom: none;
  color: var(--color-menu2-font);
  background: none repeat scroll 0 0 var(--color-menu2-back);
}

.jmlMenuNoWrap .items {
  display: flex;
  flex-wrap: wrap;
}

.pfMenu2 .jmlMenuItem:hover .jmlMenuCaption,
.pfMenu2 .menuactive a,
.tundra .pfMenu2 .menuactive,
.tundra .pfMenu2 .jmlMenuItem:hover {
  color: var(--color-menu2-font-hover);
  background-color: var(--color-menu2-back-hover);
}

.tundra .pfMenu.jmlMenu .menuup a::before {
  content: '...\00000a...\00000a...';
  line-height: 5px;
  white-space: pre;
  position: absolute;
  font-weight: bold;
  font-size: 16px;
  height: var(--height-topmenu2);
  padding-bottom: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.tundra .pfMenu.jmlMenu .menuup {
  width: 44px;
  text-align: center;
}

svg .menuup {
  fill: var(--color-menu2-font);
}

/*
Neues Responsive Menu für pf6
 */

@media screen and (max-width: 799px)  {
  td.navi_main.tmplLogo {
    display: none;
  }
  .menuUnhideButton {
    display: inline-block;
  }
  .jmlMenu1.mainMenu .items {
    position: absolute;
    flex-direction: column;
    left: -200px;
    top: 0;
    height: 100vh;
    overflow: auto;
    width: 200px;
    z-index: 9001;
    background: var(--color-menu1-back);
    box-shadow: var(--shadow-cards);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: transform 200ms;
  }
  .jmlMenu1.mainMenu .items::before {
    display: block;
    height: 48px;
    content: '‹';
    padding-left: 16px;
    font-size: 32px;
    line-height: 48px;
    font-weight: bold;
    color: var(--color-menu1-font);
  }
  .jmlMenu1.mainMenu .jmlMenuButtonItem {
    height: 32px;
    text-align: left;
    padding-left: 16px;
    flex-grow: 0;
    max-width: none;
  }
  .jmlMenu1.mainMenu.unhidden .items {
    transform: translate3d(200px, 0, 0);
  }
  .jmlMenu1.mainMenu.unhidden .menucc {
    position: absolute;
    z-index: 9000;
    background-color: rgba(50, 50, 50, 0.25);
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
  }
  .pfMenu1 .jmlMenuItem>span,
  .pfMenu1 .jmlMenuItem>a {
    line-height: 32px;
    height: 32px;
    padding: 0;
  }
  .menuNotificatiorAnchorVisible {
    display: block;
    width: 100%;
  }
  .menuNotificatiorAnchor .menuNotificatior {
    top: -26px;
  }
  .menuNotificatiorAnchor .menuNotificatior .label {
    padding: 0;
    height: 16px;
    width: 16px;
    line-height: 16px;
    border-radius: 8px;
  }
  .menuNotificatiorAnchor .menuNotificatior:hover .label {
    /*margin-bottom: -5px;*/
    transform: scale(1.25);
  }

  .tmplWorkarea nav#menuOverview2.mainMenu {
    display: grid;
    grid-template-columns: repeat(auto-fit, 150px);
    grid-auto-rows: minmax(150px, 150px);
  }

  nav.mainMenu .menuOverviewItem div.menuOverviewItemInner {
    width: 180px;
    height: 180px;
    padding: 10px;
    transform: scale(0.75);
    transform-origin: top left;
  }

  nav.mainMenu .menuOverviewItem.doublewidthMenuItem div.menuOverviewItemInner{
    width: 400px;
  }

  /*.pfMenu2 {*/
  /*  display: none;*/
  /*}*/

  fp-sidebar:not(.docked) .docktoggle {display: none;}
}