/* Mensings Werkstatt V023.4: flexible UNTERE Aktionszeile wie obere Navigation.
   Ueberschreibt ausschliesslich alte feste Breiten/Scrollregeln. Farben und Handler bleiben gleich. */

/* Alter Code legt feste 150-165px mit !important fest. Bei V023.4 ist
   jedes Element stattdessen ein flexibles Feld. Ohne Overflow-Scroller. */
html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar {
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  align-content:center!important;
  justify-content:stretch!important;
  gap:clamp(3px,.45vw,7px)!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:46px!important;min-height:46px!important;max-height:46px!important;
  padding:1px 0!important;margin:0!important;
  overflow:visible!important;scrollbar-width:none!important;
  box-sizing:border-box!important;
}
html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > * {
  flex:1 1 0px!important;
  flex-shrink:1!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;padding:0!important;
  align-self:center!important;
  box-sizing:border-box!important;
}
/* Die langen Namen erhalten ein wenig mehr Platz; keine festen Pixelbreiten. */
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > #maHourlyButton {flex-grow:1.26!important;margin-left:0!important;}
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > #maV215MaterialButton {flex-grow:.93!important;}
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > .ma-v11-menu {flex-grow:1.21!important;}
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > #maV16Theme {flex-grow:.8!important;}
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > #logout {flex-grow:.78!important;}
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > #maV18PartsButton {
  min-width:0!important;margin-right:0!important;
}
/* Visuelle Trennung vor den goldenen Preislisten bleibt, ohne scroll-erzeugende Leerraender. */
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > #maV226LogbookButton {
  margin-right:clamp(5px,1vw,17px)!important;
}
/* Alle neun Oberflaechen gleich hoch, auch der Button IM Buero-Menue-Container. */
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > button,
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > .ma-v11-menu > .ma-v11-menu-button {
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;padding:4px clamp(3px,.5vw,9px)!important;
  font-size:clamp(10px,.74vw,12px)!important;line-height:1.12!important;
  font-weight:750!important;border-radius:9px!important;
  text-align:center!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  hyphens:auto!important;transform:none!important;
}
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > .ma-v11-menu {
  display:flex!important;align-items:stretch!important;justify-content:stretch!important;
  position:relative!important;overflow:visible!important;
  margin:0!important;padding:0!important;
}
html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > .ma-v11-menu > .ma-v11-menu-button {
  flex:1 1 auto!important;width:100%!important;
  margin:0!important;align-self:stretch!important;
}
/* Erst bei wenig Breite wird die sichtbare Kurzbeschriftung verwendet.
   Die vollen Namen bleiben als ARIA-Label und Tooltip erhalten. */
@media(max-width:1150px){
  html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > button[data-ma-v234-short],
  html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar .ma-v11-menu-button[data-ma-v234-short] {
    font-size:0!important;
  }
  html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > button[data-ma-v234-short]::after,
  html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar .ma-v11-menu-button[data-ma-v234-short]::after {
    content:attr(data-ma-v234-short);
    font-size:clamp(10px,1.15vw,12px)!important;
    line-height:1.12!important;
    white-space:normal;overflow-wrap:anywhere;
  }
}
@media(max-width:560px){
  html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar {
    gap:2px!important;
  }
  html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar > button[data-ma-v234-icon]::after,
  html body>header.ma-v212-header #adminTopActions.ma-v234-fluid-toolbar .ma-v11-menu-button[data-ma-v234-icon]::after {
    content:attr(data-ma-v234-icon)!important;font-size:15px!important;
  }
}
/* Gleiche vertikale Position: der grüne Menübutton war 2px höher als seine Nachbarn. */
html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > .ma-v11-menu > .ma-v11-menu-button{
  height:38px!important;min-height:38px!important;max-height:38px!important;align-self:center!important;
}
/* Stärker als die alten hochspezifischen Font-Regeln: ausschließlich Kurzlabel
   anzeigen, niemals Kurzlabel UND Originaltext gleichzeitig. */
@media(max-width:1150px){
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > button[data-ma-v234-short],
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > .ma-v11-menu > .ma-v11-menu-button[data-ma-v234-short]{font-size:0!important;line-height:0!important;}
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > button[data-ma-v234-short]::after,
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > .ma-v11-menu > .ma-v11-menu-button[data-ma-v234-short]::after{font-size:clamp(10px,1.15vw,12px)!important;line-height:1.1!important;}
}
@media(max-width:560px){
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > .ma-v11-menu {min-width:32px!important;}
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > button[data-ma-v234-icon]::after,
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > .ma-v11-menu > .ma-v11-menu-button[data-ma-v234-icon]::after{
    content:attr(data-ma-v234-icon)!important;font-size:15px!important;
  }
}
/* ID-selektoren aus V023.1 hatten font-size:12px!important gesetzt.
   Diese gezielte Regel gewinnt auch gegen jene alte ID-Spezifitaet. */
@media(max-width:1150px){
  html body>header.ma-v212-header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions.ma-v234-fluid-toolbar > :is(#maV18PartsButton,#maV226BuyButton,#maV226SellButton,#maV226LogbookButton,#maHourlyButton,#maV215MaterialButton,#maV16Theme,#logout)[data-ma-v234-short]{
    font-size:0!important;line-height:0!important;
  }
}
