/* =========================================
   AuftragsPilot: Sidebar komplett raus
   Sicherer Live-Fix: Sidebar nur ausblenden, nicht löschen
   ========================================= */

/* Sidebar komplett weg */
html body .sidebar,
html body aside.sidebar,
html body .sidebar.ap-exact-sidebar,
html body.ap-exact-dashboard-active .sidebar,
html body.ap-exact-dashboard-active aside.sidebar,
html body.ap-exact-dashboard-active .sidebar.ap-exact-sidebar {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* App ohne linke Spalte */
html body .app,
html body.ap-exact-dashboard-active .app {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hauptbereich volle Breite */
html body .main,
html body.ap-exact-dashboard-active .main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 22px 28px 32px !important;
  box-sizing: border-box !important;
}

/* Dashboard schön mittig im Fenster */
html body .ap-light-page,
html body .ap-exact-page {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Falls alte Sidebar-Abstände irgendwo wirken */
html body .main[style],
html body main[style] {
  margin-left: 0 !important;
}

/* Mobil sauber */
@media (max-width: 760px) {
  html body .main,
  html body.ap-exact-dashboard-active .main {
    padding: 14px 12px 24px !important;
  }
}

/* =========================================
   Linken alten Sidebar-Abstand komplett entfernen
   ========================================= */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* komplette App wirklich bei 0 starten lassen */
html body .app,
html body.ap-exact-dashboard-active .app {
  margin-left: 0 !important;
  padding-left: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Hauptbereich nach links ziehen */
html body .main,
html body main.main,
html body.ap-exact-dashboard-active .main {
  margin-left: 0 !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  left: 0 !important;
  transform: none !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Dashboard-Inhalt nicht mehr eingerückt */
html body .ap-light-page,
html body .ap-exact-page,
html body .dashboard-page,
html body .dashboard-home {
  margin-left: 0 !important;
  padding-left: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
}

/* alte Sidebar-Spalten / Grid-Reste neutralisieren */
html body [style*="margin-left"],
html body [style*="padding-left"] {
  --ap-sidebar-space: 0px !important;
}
