#dispatchRootShell,
#dispatchRootShell *,
#dispatchPrepPanel,
#dispatchPrepPanel *,
#dispatchAreaRectPanelV2,
#dispatchAreaRectPanelV2 *,
#dispatchRoutePanel,
#dispatchRoutePanel *,
#pdModal,
#pdModal *,
#pdDatePicker,
#pdDatePicker * {
  box-sizing: border-box !important;
}

#dispatchActionsMenu.dispatch-actions-menu {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 760 !important;
  display: grid !important;
  justify-items: end !important;
  align-items: start !important;
  gap: 6px !important;
  pointer-events: auto !important;
}

#dispatchActionsMenu .dispatch-actions-main,
#dispatchActionsMain.dispatch-actions-main {
  width: auto !important;
  min-width: 112px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  margin: 0 !important;
}

#dispatchActionsMenu .dispatch-actions-list,
#dispatchActionsList.dispatch-actions-list {
  display: none !important;
  width: 126px !important;
  min-width: 126px !important;
  max-width: 126px !important;
  padding: 7px !important;
  border-radius: 11px !important;
  gap: 5px !important;
  margin: 0 !important;
}

#dispatchActionsMenu.open .dispatch-actions-list,
#dispatchActionsMenu.open #dispatchActionsList {
  display: grid !important;
}

#dispatchActionsMenu .dispatch-actions-list button,
#dispatchActionsList button[data-dispatch-action] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 28px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 6px 7px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  white-space: normal !important;
  text-align: center !important;
  cursor: pointer !important;
}

#dispatchRootShell .dispatch-topbar {
  top: 10px !important;
  left: 10px !important;
  right: 128px !important;
  z-index: 730 !important;
  pointer-events: none !important;
}

#dispatchRootShell .dispatch-topbar-left {
  width: min(760px, calc(100vw - 180px)) !important;
  max-width: calc(100% - 10px) !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

#dispatchRootShell .dispatch-panel {
  padding: 6px !important;
  border-radius: 13px !important;
}

#dispatchRootShell .dispatch-topbar-left select {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  min-width: 108px !important;
  max-width: 150px !important;
  border-radius: 8px !important;
  padding: 7px 9px !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
}

#dispatchRootShell .dispatch-topbar-left input {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  min-width: 170px !important;
  max-width: 240px !important;
  border-radius: 8px !important;
  padding: 7px 9px !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
}

#dispatchRootShell .dispatch-topbar-left button,
#dispatchRootShell .dispatch-topbar-left .dispatch-chip {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#dispatchRootShell .dispatch-selected {
  top: 54px !important;
  left: 10px !important;
  width: 245px !important;
  max-width: 245px !important;
}

#dispatchRootShell .dispatch-emptyhint {
  padding: 7px 9px !important;
  border-radius: 12px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

#dispatchMap,
#dispatchMap *,
.leaflet-container,
.leaflet-container *,
.leaflet-control,
.leaflet-control *,
.leaflet-pane,
.leaflet-pane *,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-popup,
.leaflet-popup * {
  box-sizing: content-box !important;
}

#dispatchPrepPanel .btn,
#dispatchPrepPanel button,
#dispatchAreaRectPanelV2 button,
#dispatchAreaRectPanelV2 input,
#dispatchAreaRectPanelV2 select,
#dispatchRoutePanel button,
#dispatchRoutePanel input,
#dispatchRoutePanel select,
#pdModal button,
#pdModal input,
#pdModal select,
#pdDatePicker button,
#pdDatePicker input {
  max-height: none !important;
}

@media (max-width: 900px) {
  #dispatchRootShell .dispatch-topbar {
    right: 10px !important;
    top: 52px !important;
  }

  #dispatchRootShell .dispatch-topbar-left {
    width: calc(100% - 20px) !important;
    flex-wrap: wrap !important;
  }

  #dispatchRootShell .dispatch-selected {
    top: 112px !important;
  }

  #dispatchActionsMenu.dispatch-actions-menu {
    right: 10px !important;
    top: 10px !important;
  }
}

/* DESPACHO LEGACY OCULTO INICIO */
html body #dispatchRootShell #dispatchPrepareAssignBtn,
html body #dispatchRootShell #dispatchAreaAssignBtn,
html body #dispatchRootShell #dispatchToggleAgendaBtn,
html body #dispatchRootShell #dispatchRouteModeBtn,
html body #dispatchRootShell #dispatchMovePendientesNextBtn,
html body #dispatchRootShell #btnPendientesAsignadasDespacho,
html body #dispatchActionsMenu #dispatchPrepareAssignBtn,
html body #dispatchActionsMenu #dispatchAreaAssignBtn,
html body #dispatchActionsMenu #dispatchToggleAgendaBtn,
html body #dispatchActionsMenu #dispatchRouteModeBtn,
html body #dispatchActionsMenu #dispatchMovePendientesNextBtn,
html body #dispatchActionsMenu #btnPendientesAsignadasDespacho,
html body #dispatchActionsList #dispatchPrepareAssignBtn,
html body #dispatchActionsList #dispatchAreaAssignBtn,
html body #dispatchActionsList #dispatchToggleAgendaBtn,
html body #dispatchActionsList #dispatchRouteModeBtn,
html body #dispatchActionsList #dispatchMovePendientesNextBtn,
html body #dispatchActionsList #btnPendientesAsignadasDespacho,
html body button#dispatchPrepareAssignBtn,
html body button#dispatchAreaAssignBtn,
html body button#dispatchToggleAgendaBtn,
html body button#dispatchRouteModeBtn,
html body button#dispatchMovePendientesNextBtn,
html body button#btnPendientesAsignadasDespacho {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
}

html body #dispatchActionsMenu,
html body #dispatchActionsMain,
html body #dispatchActionsList,
html body #dispatchActionsList button[data-dispatch-action] {
  visibility: visible !important;
  opacity: 1 !important;
}

html body #dispatchActionsList button[data-dispatch-action] {
  position: static !important;
  left: auto !important;
  top: auto !important;
}

html body #dispatchActionsList button[data-dispatch-action="pendientes"] {
  display: flex !important;
}

html body #dispatchActionsList button[data-dispatch-action="mover"] {
  display: flex !important;
}
/* DESPACHO LEGACY OCULTO FIN */
