/* Recolhe os mesmos controles; permissões e formulários continuam com seus módulos. */
#vue_menu_toggle[hidden], #vue_menu_panel[hidden] { display: none !important; }
#vue_menu_toggle {
  width: calc(100% - 32px); min-height: 44px; margin: 0 16px 10px;
  padding: 8px 12px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border: 1px solid var(--vue-line); border-radius: 10px;
  background: var(--vue-surface); color: var(--vue-ink); font: 600 14px/1.4 system-ui;
  text-align: left; cursor: pointer;
}
#vue_menu_current { min-width: 0; overflow-wrap: anywhere; }
.vue-menu-action { display: flex; align-items: center; gap: 7px; flex: none; color: var(--vue-blue); }
.vue-menu-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#vue_menu_toggle[aria-expanded=true] svg { transform: rotate(180deg); }
#vue_menu_toggle[data-new=true] .vue-menu-action::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vue-blue);
}
#vue_menu_tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 10px; }
#vue_menu_tools #vue_admin_access:not([hidden]), #vue_menu_tools #vue_update_access {
  flex: 1 1 auto; width: auto; min-height: 44px; max-width: 100%; margin: 0;
}
#vue_menu_tools #vue_admin_access[hidden] { display: none !important; }
#vue_menu_tools #vue_admin_access span { display: none; }
#vue_menu_tools .vue-language {
  width: 100%; justify-content: space-between; color: var(--vue-muted); margin: 0 !important;
}
#vue_menu_tools .vue-language select { min-height: 44px; max-width: 65%; }

/* Um único scroll de página no Canhoto, inclusive em paisagem e na lista do mapa. */
body.entregas-mode #app { display: block; overflow-y: auto; overflow-x: hidden; }
body.entregas-mode #entregas_vue { overflow: visible; min-height: 0; }
body.entregas-mode #entregas_vue .en-mapa-clientes { max-height: none; overflow-y: visible; }

@media (max-width: 767px), (orientation: landscape) and (max-height: 600px) {
  .topbar {
    min-height: calc(env(safe-area-inset-top) + 60px + var(--vue-notice-space));
    padding-top: calc(env(safe-area-inset-top) + 10px + var(--vue-notice-space));
    padding-bottom: 10px;
  }
  .brand-logo { width: 94px; }
  .userbadge { top: calc(env(safe-area-inset-top) + 8px + var(--vue-notice-space)); }
  #vue_menu_panel { padding-bottom: 10px; }
  #vue_menu_panel .modes, body.entregas-mode #vue_menu_panel .modes {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; padding: 0 16px 10px; overflow: visible;
  }
  #vue_menu_panel .modes::after { display: none; }
  #vue_menu_panel .modes .chip {
    min-width: 0; width: 100%; min-height: 44px; padding: 10px;
    white-space: normal; overflow-wrap: anywhere; align-items: center; justify-content: flex-start;
    border: 1px solid var(--vue-line); border-radius: 10px; font-size: 13px;
  }
  #vue_menu_panel .modes .chip.active { background: var(--vue-soft); border-color: var(--vue-blue); }
  #vue_menu_panel .modes .chip.active::after { display: none; }
  #vue_menu_panel #insp_acesso { margin-inline: 16px; }
  body.entregas-mode #entregas_vue { padding-inline: 16px; }
}
