/* Retter-Portal v1.3.88 – Admin-Navigation: volle Breite ohne abgeschnittene System-Aktionen */

/*
 * Desktop: Die vier Admin-Gruppen teilen sich die tatsächlich verfügbare
 * Inhaltsbreite. Buttons dürfen innerhalb ihrer Gruppe umbrechen, die Gruppe
 * selbst darf den Balken aber nicht mehr über ihre Grid-Spalte hinausziehen.
 */
body.admin-surface .admin-command-nav--v1386{
  grid-template-columns:minmax(210px,.85fr) minmax(400px,1.5fr) minmax(370px,1.35fr) minmax(430px,1.55fr);
  overflow-x:hidden;
}
body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group{
  min-width:0;
  width:100%;
  max-width:100%;
  overflow:visible;
}
body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group a{
  max-width:100%;
}

/* Bei etwas weniger Platz bleibt alles sichtbar und wird innerhalb der
 * jeweiligen Gruppe sauber in eine zweite Button-Zeile umgebrochen. */
@media (max-width:1840px){
  body.admin-surface .admin-command-nav--v1386{
    display:grid;
    grid-template-columns:minmax(180px,.8fr) minmax(330px,1.45fr) minmax(310px,1.25fr) minmax(360px,1.5fr);
    overflow-x:hidden;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group{
    flex:initial;
    min-width:0;
  }
}

@media (max-width:1380px){
  body.admin-surface .admin-command-nav--v1386{
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    row-gap:0;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group:nth-child(3){
    border-left:0!important;
    border-top:1px solid color-mix(in srgb,var(--line-soft) 86%,transparent)!important;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group:nth-child(4){
    border-top:1px solid color-mix(in srgb,var(--line-soft) 86%,transparent)!important;
  }
}

/* Smartphones bleiben bewusst horizontal bedienbar; hier ist eine einzelne
 * kompakte Scrollleiste intuitiver als vier hohe Navigationsgruppen. */
@media (max-width:760px){
  body.admin-surface .admin-command-nav--v1386{
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group{
    flex:0 0 auto;
    width:auto;
    max-width:none;
    min-width:max-content;
  }
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group:nth-child(3),
  body.admin-surface .admin-command-nav--v1386 .admin-command-nav__group:nth-child(4){
    border-top:0!important;
  }
}
