/* LEAL3D_V63_REV9_PADRONIZACAO_CONTROLES_SCROLLBARS */

/* ============================================================
   CONTROLES INFERIORES DO PREVIEW
   Mesmo componente visual usado no canto superior esquerdo.
   ============================================================ */

#vectorStage .l3d-selection-modes {
  top: auto !important;
  right: auto !important;
  bottom: 12px !important;
  left: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

#vectorStage .l3d-selection-modes.hidden {
  display: none !important;
}

#vectorStage .l3d-selection-modes button {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  white-space: nowrap !important;
}

#vectorStage .l3d-selection-reprocess,
#modelStage .l3d-selection-review {
  right: 12px !important;
  bottom: 12px !important;
}

/* ============================================================
   COLUNA DE ETAPAS
   O título fica fixo. O container abaixo ocupa todo o restante.
   ============================================================ */

@media (min-width: 1280px) {
  .workspace > .workflow,
  #chaveirosWorkspace > .kc-workflow {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .workflow > .workflow-section-title,
  .kc-workflow > .workflow-section-title {
    box-sizing: border-box !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 12px !important;
  }

  .l3d-workflow-scroll-body {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .l3d-workflow-scroll-body > .session:last-child,
  .l3d-workflow-scroll-body > .kc-session:last-child {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1279.98px) {
  .l3d-workflow-scroll-body {
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
  }
}

@media (max-width: 760px) {
  #vectorStage .l3d-selection-modes {
    bottom: 10px !important;
    left: 10px !important;
    max-width: calc(100% - 20px) !important;
  }

  #vectorStage .l3d-selection-reprocess,
  #modelStage .l3d-selection-review {
    right: 10px !important;
    bottom: 10px !important;
  }
}
