/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Keep the viewport and sidebar height chains explicit; each workspace pane scrolls independently. */
.workspace-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.workspace-shell {
  display: flex;
  height: 100%;
  min-height: 0;
}

.workspace-column {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.workspace-viewport {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

.workspace-sidebar {
  display: none;
}

.workspace-mobile-brand {
  display: flex;
}

/* Narrow windows use the full menu inside the content pane. */
@media (min-width: 1024px) {
  .workspace-sidebar {
    display: flex;
    position: relative;
    z-index: 20;
    flex: 0 0 15rem;
    flex-direction: column;
    min-height: 0;
  }

  .workspace-brand {
    height: 4.5rem;
  }

  .workspace-navigation {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    min-height: 0;
    padding: 0 1rem 1rem;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .workspace-navigation.is-scrolling {
    scrollbar-color: #64748b transparent;
  }

  .workspace-navigation::-webkit-scrollbar {
    width: 6px;
  }

  .workspace-navigation::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 9999px;
  }

  .workspace-navigation::-webkit-scrollbar-track {
    background: transparent;
  }

  .workspace-navigation.is-scrolling::-webkit-scrollbar-thumb {
    background: #64748b;
  }

  .workspace-navigation .workspace-navigation-group {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
  }

  .workspace-navigation .workspace-navigation-title {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
  }

  .workspace-navigation a {
    min-height: 2rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.25rem;
  }

  .workspace-mobile-menu,
  .workspace-mobile-brand {
    display: none;
  }
}
