/* Atmosphere omogenea Home + Analytics — blob fissi come mockup HTML */

body.mt-dashboard.light {
  background: var(--mt-bg) !important;
}

html:has(body.mt-dashboard),
body.mt-dashboard {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html:has(body.mt-dashboard) {
  background: var(--mt-bg) !important;
}

@media (min-width: 901px) {
  .mt-dashboard .mt-bg-atmosphere {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .mt-dashboard .app-shell::before {
    display: none;
  }

  .mt-dashboard .app-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    background: transparent !important;
    min-height: 100vh;
  }

  .mt-dashboard .app-shell > .sidebar,
  .mt-dashboard .app-shell > .main-area {
    position: relative;
    z-index: 1;
  }

  .mt-dashboard .main-area {
    background: transparent !important;
  }

  .mt-dashboard #view-dashboard,
  .mt-dashboard #view-analytics,
  .mt-dashboard #view-pages {
    background: transparent !important;
  }

  .mt-dashboard .views-container {
    background: transparent !important;
    box-shadow: none !important;
  }

  .mt-dashboard .desk-home,
  .mt-dashboard #dAn-wrap,
  .mt-dashboard #pages-wrap,
  .mt-dashboard #auto-wrap,
  .mt-dashboard #dCrm-wrap {
    position: relative;
    z-index: 1;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .mt-dashboard #view-automations {
    background: transparent !important;
  }

  .mt-dashboard .desk-home .mt-dash-grid,
  .mt-dashboard #dAn-wrap .mt-dash-grid,
  .mt-dashboard #pages-wrap .mt-dash-grid,
  .mt-dashboard #auto-wrap .mt-dash-grid,
  .mt-dashboard #dCrm-wrap .mt-dash-grid {
    background: transparent;
  }

  /* Sidebar flush sinistra, tutta l'altezza viewport (mockup) */
  .mt-dashboard #desktopSidebar.sidebar {
    align-self: stretch;
    flex-shrink: 0;
    min-height: 100vh;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none !important;
    border-right: 1px solid var(--mt-divider) !important;
    background: var(--mt-glass-bg-strong) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    position: sticky;
    top: 0;
  }
}
