/* =========================================
   AuftragsPilot Mobile Clean Fix V2
   Dashboard auf Handy direkt oben anzeigen
   Sidebar auf Handy ausblenden
   ========================================= */

@media screen and (max-width: 900px) {

  body.ap-exact-dashboard-active,
  body.ap-exact-dashboard-active html {
    overflow: hidden !important;
  }

  body.ap-exact-dashboard-active .app {
    position: fixed !important;
    inset: 0 !important;

    display: block !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;

    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;

    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ap-exact-dashboard-active .sidebar {
    display: none !important;
    visibility: hidden !important;

    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;

    height: 0 !important;
    max-height: 0 !important;

    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.ap-exact-dashboard-active .main {
    position: fixed !important;
    inset: 0 !important;

    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;

    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;

    margin: 0 !important;
    padding: 14px 14px 90px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background: #030405 !important;
    z-index: 999 !important;
  }

  body.ap-exact-dashboard-active #dashboardPanel,
  body.ap-exact-dashboard-active #apExactDashboard {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
  }

  body.ap-exact-dashboard-active .ap-exact-shell {
    margin: 0 !important;
    padding: 0 !important;

    width: 100% !important;
    max-width: 100% !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    min-height: auto !important;
  }

  body.ap-exact-dashboard-active .ap-exact-head {
    margin: 0 0 18px !important;
    padding: 0 0 18px !important;
  }

  body.ap-exact-dashboard-active .ap-exact-logo,
  body.ap-exact-dashboard-active .ap-exact-nav,
  body.ap-exact-dashboard-active .ap-exact-status {
    display: none !important;
  }
}
