/* V023.1: Buttonfarben und -groessen bewusst nach Bereich.
   Ueberschreibt die aeusserst spezifischen V022.6-Regeln, die Lila/Rosa
   sowie die Kompakt-Hoehe vorher blockiert haben. Keine Funktionsaenderung. */

/* Keine neue Reihe. Auf schmalen Fenstern weiterhin horizontal scrollbar. */
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions {
  display:flex!important; flex-flow:row nowrap!important; align-items:center!important;
  column-gap:6px!important; row-gap:0!important;
}
/* Frueher 48px: jetzt kompakt. Keine Formular-/Speicher-Buttons veraendern. */
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button,
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions .ma-v11-menu-button {
  height:38px!important; min-height:38px!important; max-height:38px!important;
  padding:6px 10px!important; font-size:12px!important; line-height:1.15!important;
  border-radius:9px!important; font-weight:700!important; white-space:nowrap!important;
}
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions #maV18PartsButton{
  min-width:112px!important; /* Orange/Gelb bewusst beibehalten */
}
/* Exakte, stabile Farbcodes pro Funktion, nicht fuer andere Buttons. */
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button#maV226BuyButton,
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button#maV226SellButton,
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button#maV226BuyButton:disabled,
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button#maV226SellButton:disabled {
  background:#8047DC!important; background-image:none!important; border-color:#C3A5FF!important;
  color:#fff!important; opacity:1!important; filter:none!important;
  -webkit-text-fill-color:#fff!important; cursor:not-allowed!important;
}
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button#maV226LogbookButton,
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button#maV226LogbookButton:disabled {
  background:#E65DAF!important; background-image:none!important; border-color:#FFC0E7!important;
  color:#fff!important; opacity:1!important; filter:none!important;
  -webkit-text-fill-color:#fff!important; cursor:not-allowed!important;
}
/* Genug Abstand vor den goldenen Preislisten beibehalten. */
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > button#maV226LogbookButton{
  margin-right:clamp(10px,1.5vw,28px)!important;
}
/* Auch die aelteren, per ID spezifisch formatierten Verwaltungsbuttons
   muessen dieselbe kompakte Hoehe bekommen, sonst ist eine Zeile schief. */
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions > :is(#maV18PartsButton,#maV226BuyButton,#maV226SellButton,#maV226LogbookButton,#maHourlyButton,#maV215MaterialButton,#maV16Theme,#logout),
body>header #adminTopActions.ma-v226-single-row.ma-v229-compact-actions .ma-v11-menu > .ma-v11-menu-button {
  height:38px!important; min-height:38px!important; max-height:38px!important;
  padding:6px 10px!important; font-size:12px!important; line-height:1.15!important;
}
/* Erste Navigationsleiste nur kompakter, bisherige Farben behalten. */
#nav.ma-v16-nav > button {
  min-height:41px!important; height:41px!important; padding:8px 10px!important;
  font-size:12.5px!important; line-height:1.15!important;
  border-radius:9px!important;
}
#nav.ma-v16-nav > button.primary{padding:7px 9px!important}
