/* ERP Comercial Chile v10.23.1
   Corrige el encogimiento flex del workspace para recuperar el scroll interno
   y devuelve el encabezado de marca lateral a un tamaño compacto. */

html,
body,
#root {
  height: 100%;
}

#root > div.flex,
#root main.flex {
  min-height: 0 !important;
}

#root main.flex {
  height: 100dvh !important;
  max-height: 100dvh !important;
}

#root main > .responsive-workspace {
  min-height: 0 !important;
  flex: 1 1 0% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

#root aside.no-print > div:nth-child(2) {
  min-height: 0 !important;
  overflow-y: auto !important;
}

@media (min-width: 1024px) {
  #root aside.no-print > div:first-child {
    padding: 0.625rem !important;
  }

  #root aside.no-print > div:first-child > div {
    gap: 0.625rem !important;
    padding: 0.625rem !important;
    border-radius: 1rem !important;
  }

  #root aside.no-print > div:first-child > div > div:first-child {
    width: 2.25rem !important;
    height: 2.25rem !important;
    flex-basis: 2.25rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.75rem !important;
  }

  #root aside.no-print > div:first-child h1 {
    font-size: 0.875rem !important;
    line-height: 1.15 !important;
  }

  #root aside.no-print > div:first-child p {
    margin-top: 0.125rem !important;
    font-size: 0.5625rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 1023px) {
  #root main > .responsive-workspace {
    scrollbar-gutter: auto;
  }
}
