/* Navegación · PROPUESTA 1: lateral clásica (estilo Zoho Books) + buscador ⌘J + barra inferior en teléfono */
#nav-mode-supervision-block > .nav-section { display: none !important; }
.nv-tree { padding: 6px 8px 16px; }
.nv-mod, .nv-it { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; border-radius: 6px; }
.nv-mod { padding: 9px 10px; margin-top: 4px; color: #e2e8f0; font-weight: 700; font-size: 13.5px; }
.nv-mod:hover, .nv-it:hover { background: rgba(255,255,255,.06); }
.nv-mod.on { color: #fff; }
.nv-dot { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; flex: none; }
.nv-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-chev { color: #94a3b8; font-size: 12px; width: 12px; text-align: center; }
.nv-sub { margin: 2px 0 6px 22px; padding-left: 12px; border-left: 1px solid #334155; }
.nv-it { padding: 7px 10px; color: #94a3b8; font-size: 13px; }
.nv-it.on { background: rgba(113,75,103,.35); color: #fff; font-weight: 600; }
.nv-ic { width: 20px; text-align: center; font-size: 15px; flex: none; }
.nv-badge { background: #3b82f6; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; flex: none; }
.nv-burger, .nv-scrim { display: none; }
/* La fila de pestañas de arriba sobra: el árbol ya las muestra */
.subnavbar-tabs { display: none !important; }
/* Tablet y teléfono: el árbol se abre con ☰ y tapa la pantalla */
@media (max-width: 1024px) {
  .nv-burger { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 22px; cursor: pointer; border-radius: 6px; flex: none; }
  .odoo-sidebar { position: fixed !important; top: var(--topbar-height); bottom: 0; left: 0; z-index: 900; width: 300px !important; min-width: 300px !important; max-width: 88vw !important; transform: translateX(-100%); visibility: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
  body.nv-drawer .odoo-sidebar { transform: none; visibility: visible; }
  body.nv-drawer .nv-scrim { display: block; position: fixed; inset: var(--topbar-height) 0 0 0; background: rgba(15,23,42,.5); z-index: 899; }
}

/* ---------- Buscador de pantallas ---------- */
.nv-find { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; margin: 8px 16px 2px; width: calc(100% - 32px); height: 34px; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid #334155; color: #94a3b8; font-size: 13px; cursor: text; flex: none; }
.nv-find:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }
.nv-find kbd, .nv-pal kbd { font: 600 10.5px ui-monospace, monospace; border: 1px solid #475569; border-radius: 4px; padding: 0 5px; color: #cbd5e1; }
.nv-pal { position: fixed; inset: 0; z-index: 10000; background: rgba(15,23,42,.45); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.nv-pal[hidden] { display: none !important; }
.nv-pal-box { width: min(560px, calc(100vw - 24px)); background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: hidden; }
.nv-pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e2e8f0; }
.nv-pal-in input { flex: 1; border: 0; outline: 0; font: 500 16px Inter, system-ui, sans-serif; color: #1e293b; min-width: 0; }
.nv-pal-in kbd { border-color: #cbd5e1; color: #64748b; }
.nv-res { max-height: 50vh; overflow-y: auto; padding: 6px; }
.nv-cap { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .5px; padding: 6px 10px; }
.nv-r { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: #1e293b; font-weight: 600; font-size: 14px; }
.nv-r small { color: #64748b; font-weight: 500; font-size: 12px; white-space: nowrap; }
.nv-r:hover, .nv-r.sel { background: #f3e8f0; }
.nv-none { padding: 18px; color: #64748b; text-align: center; }

/* ---------- Teléfono: barra inferior ---------- */
.nv-bar { display: none; }
@media (max-width: 640px) {
  .nv-burger { display: none !important; }
  .nv-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: #1e293b; border-top: 1px solid #334155; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .nv-bar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: transparent; color: #cbd5e1; font: 600 11px Inter, system-ui, sans-serif; min-height: 48px; cursor: pointer; border-radius: 8px; }
  .nv-bar button span { font-size: 20px; }
  .nv-bar button.on { color: #fff; background: rgba(113,75,103,.45); }
  .odoo-content-area { padding-bottom: 72px !important; }
  .odoo-sidebar { bottom: 64px !important; }
  body.nv-drawer .nv-scrim { bottom: 64px !important; }
  /* La barra superior original no cabe en un teléfono: quedan marca, escáner y la acción principal */
  .odoo-topbar .topbar-left > div:nth-of-type(2), .odoo-topbar .topbar-left > div:first-of-type > span:nth-child(3), #btn-topbar-e2e-tour, #btn-topbar-thermal-printer, #btn-topbar-tower-tv, #btn-topbar-warehouses, .odoo-topbar .stat-pill { display: none !important; }
  .odoo-topbar .topbar-left > div:first-of-type { white-space: nowrap; }
  .odoo-topbar .topbar-center { flex: 1 1 auto; min-width: 0; margin: 0 8px !important; }
  .odoo-topbar .topbar-left { gap: 8px !important; }
  html, body { max-width: 100vw; overflow-x: hidden; }
}

/* ---------- Barra superior simplificada ---------- */
/* Por CSS (no por JS) para que no destellen al cargar */
#btn-topbar-e2e-tour, #btn-topbar-thermal-printer, #btn-topbar-tower-tv, #btn-topbar-warehouses,
.odoo-topbar .stat-pill, .odoo-topbar .topbar-left > div:first-of-type > span:nth-child(3), .nv-hide { display: none !important; }
.nv-net { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.25); display: inline-block; margin-left: 2px; }
.nv-net.off { width: auto; height: auto; border-radius: 10px; background: #dc2626; box-shadow: none; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; letter-spacing: 0; }
.odoo-topbar .topbar-left > div:nth-of-type(2), .nv-wh { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid rgba(255,255,255,.28) !important; border-radius: 8px; padding: 4px 10px !important; opacity: 1 !important; white-space: nowrap; }
.nv-wh:hover, .nv-wh:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.nv-car { font-size: 11px; opacity: .8; }
