/* -------------------------------------------------------------------------------------------------
 ------------------------------                                      -----------------------------
 ------------------------------ Default ActionDescriptor-Stylesheets -----------------------------
 ------------------------------                                      -----------------------------
 -------------------------------------------------------------------------------------------------
 ------------------------------------------------------------------------------------------------- */


/* nurtext */

a.jmlAction01 {
  cursor: pointer;
}


/* nuricon */

a.jmlAction10 {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}


/* beides */

a.jmlAction11,
div.globalAction a.jmlAction11 {
  cursor: pointer;
  transition: all 0.25s;
  padding-left:  var(--width-componentpadding);
}

a.jmlAction11.lowPoint {
  transform: scale(0.5);
  opacity: 0.2;
}

a.inaktiv:not(.jmlAction) {
  color: #666666;
  cursor: auto;
}

a.inaktiv.jmlAction {
  opacity: 0.5;
}

a.inaktiv:not(.jmlAction):hover {
  color: #666666;
  cursor: auto;
}

a.jmlAction.hiddenButDebug {
  outline: 2px dashed #FF00FF;
}


/*
   --------- Globale Aktionen -----------
*/

div.globalActions > hr {
  margin: 2px var(--width-componentpadding);
}

div.globalAction {
  /* höhe ist identisch mit der toolbarhöhe */
  height: var(--height-toolbar);
  min-width: 250px;
  min-height: 12px;
}

div.globalAction:last-child {
  border-bottom: none;
}

.hiddenactionbox .jmlAction,
div.globalAction .jmlAction {
  border: 0 none;
  display: flex;
  align-items: center;
  font: var(--font-normal);
  height: 100%;
  width: 100%;
  padding: 0 var(--width-componentpadding);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  box-sizing: border-box;
  line-height: var(--height-toolbar);
  --color-input-label: currentColor;
}

fp-popup div.globalAction .jmlAction {
  font: var(--font-menu);
}

div.globalAction .jmlAction.actioneaoverview {
  /*color: var(--color-main-font);*/
}

div.jmlPopupBox.actiondojodialog .jmlPopupHeader {
  padding: 4px 8px;
}

div.jmlPopupBox.actiondojodialog .jmlPopupContent {
  padding: 8px;
}

div.globalAction .jmlAction.asAdmin,
td.iaall .jmlAction.asAdmin {
  position: relative;
  color: var(--color-admin-red);
}

div.globalAction .jmlAction.asAdmin img.overlayAsAdmin {
  display: inline;
  position: absolute;
  left: 10px;
  top: 6px;
  z-index: 1;
}

td.iaall .jmlAction.asAdmin img.overlayAsAdmin {
  display: inline;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

:is(div.globalAction, .fileaccessbox) .jmlAction.inaktiv {
  color: var(--color-main-font);
  opacity: .5;
}
div.tooltipAction > a {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  padding: 0px 4px;
  height: var(--height-toolbar);
  line-height: var(--height-toolbar);
}
.jmlPopupContent .jmlAction:hover,
div.tooltipAction .jmlAction:hover,
div.globalAction .jmlAction:hover {
  background-color: var(--color-default-hover);
}

div.globalAction .jmlAction .hint,
div.globalAction span.mousehint {
  height: calc(var(--height-toolbar) / 1.5);
  line-height: calc(var(--height-toolbar) / 1.5);
  display: inline-block;
  background-color: var(--color-shade-1);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 8px;
  border: 1px solid var(--color-shade-3);

  & > .mouse-icon {
    border: 1px solid currentColor;
    display: inline-block;
    width: 9px;
    height: 14px;
    position: relative;
    vertical-align: middle;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      content: '';
      display: inline-block;
      width: 4px;
      border-right: 1px solid currentColor;
      height: 7px;
    }
    &::after {
      position: absolute;
      top: 2px;
      left: 1px;
      content: '';
      height:2px;
      width:2px;
      background-color: currentColor;
      border-radius: 1px;
    }
  }
}

.touch-user div.globalAction .jmlAction .hint {
  display: none;
}
@media screen and (max-width: 639px){
  div.globalAction .jmlAction .hint {
    display: none;
  }
}

div.globalAction span.mousehint {
  margin-left: auto;
}

div.globalAction .jmlAction>.dijitButtonNode {
  padding: 0;
  display: block;
  border: 0;
  text-align: left;
  height: 24px;
}

div.globalAction .jmlAction>.dijitButtonNode .dijitButtonText {
  line-height: 24px;
  height: 24px;
}


/** Standard-action-farben */

svg .actionPrimary {
  fill: var(--color-action-primary);
}

svg .actionSecondary {
  fill: var(--color-action-secondary);
}

.jmlAction.inaktiv svg .actionPrimary {
  fill: rgb(128,128,128);
}
.jmlAction.inaktiv svg .actionSecondary {
  fill: rgba(160,160,160);
}

.globalAction .jmlAction .jmlActionIcon {
  width: 36px;
}
.globalAction .jmlAction .jmlActionLabel {
  flex-grow: 1;
}

.hiddenactionbox .jmlAction .jmlActionIcon > fp-inline-svg,
.hiddenactionbox .jmlAction .jmlActionIcon > img,
.globalAction .jmlAction .jmlActionIcon > fp-inline-svg,
.globalAction .jmlAction .jmlActionIcon > img {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  --icon-size: 24px;
  margin-top: -1px;
  object-fit: contain;
}

.jmlAction .jmlActionIcon > fp-inline-svg,
.jmlAction .jmlActionIcon > fp-inline-svg > svg,
.jmlAction .jmlActionIcon > svg,
td.iaall .jmlAction fp-inline-svg,
td.iavis .jmlAction fp-inline-svg,
td.iaall .jmlAction fp-inline-svg > svg,
td.iavis .jmlAction fp-inline-svg > svg,
td.iaall .jmlAction img,
td.iavis .jmlAction img {
  width: var(--icon-size, 20px);
  height:  var(--icon-size, 20px);
}

.entityActionBar button.entityactionbarbutton fp-inline-svg,
.entityActionBar .jmlAction fp-inline-svg{
  --icon-size: 24px !important;
  width: var(--icon-size);
  height:  var(--icon-size);
}

a.jmlAction11 .jmlActionIcon > fp-inline-svg,
a.jmlAction11 img {
  /*margin-right: 5px;*/
  vertical-align: text-top;
}

a.jmlAction10 jmlActionIcon > fp-inline-svg,
a.jmlAction10 img {
  vertical-align: text-top;
}


/*
   Buttons
*/

.jmlButtonField .jmlAction {
  overflow: hidden;
}

.jmlButtonField .jmlAction11 fp-inline-svg,
.jmlButtonField .jmlAction11 img {
  width: 16px;
  height: 16px;
}
