/* ESTOQUE v3 (16/11/2026, build 203) — layout aprovado por ele (mockup-estoque-v3).
   So aparencia/arrumacao: titulo grande, busca em pilula, marcas em 5 botoes retangulares, aviso "acabando",
   cartao por peca com letra da marca + barrinha de nivel, botao flutuante "Nova peca" no canto.
   Tudo escopado em #tela-estoque.ev3. Nao usa !important em display dos containers que o app esconde/mostra. */

html body #tela-estoque.ev3,html body #tela-estoque.ev3.tela,html body #tela-estoque.ev3.ativa{--v3-fundo:#0c1118;--v3-sup:#151c26;--v3-suave:#1d2633;--v3-txt:#eef2f7;--v3-mudo:#93a1b5;--v3-pri:#6a9bf4;--v3-pri-tx:#08111f;--v3-al:#fb923c;--v3-al-s:#2b1d12;--v3-ok:#4ade80;--v3-trilho:#243041;--v3-sombra:none;background:var(--v3-fundo) !important;background-image:none !important}
html body.tema-claro #tela-estoque.ev3{--v3-fundo:#f3f5f9;--v3-sup:#ffffff;--v3-suave:#e9edf4;--v3-txt:#0f172a;--v3-mudo:#64748b;--v3-pri:#1a3a6b;--v3-pri-tx:#ffffff;--v3-al:#c2410c;--v3-al-s:#fff1e6;--v3-ok:#15803d;--v3-trilho:#e5e9f0;--v3-sombra:0 1px 2px rgba(15,23,42,.05),0 4px 14px rgba(15,23,42,.05)}

/* cabecalho antigo e abas antigas: trocados pelo topo novo */
html body #tela-estoque.ev3 > .header{display:none !important}
html body #tela-estoque.ev3 #est-abas{display:none !important}
#ev3-top{display:flex;align-items:center;gap:8px;padding:12px 16px 0}
#ev3-top .ev3-esp{flex:1}
html body .ev3-circ{width:44px !important;height:44px !important;min-height:0 !important;border-radius:50% !important;border:0;background:var(--v3-sup);color:var(--v3-txt);display:flex;align-items:center;justify-content:center;box-shadow:var(--v3-sombra);padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body:not(.tema-claro) .ev3-circ{border:1px solid var(--v3-suave)}
.ev3-circ svg{width:21px;height:21px}
#ev3-tit{padding:10px 18px 0}
#ev3-tit h1{font-size:30px;font-weight:700;letter-spacing:-.02em;color:var(--v3-txt);margin:0;line-height:1.15}
#ev3-tit p{font-size:15px;color:var(--v3-mudo);margin:2px 0 0}

/* busca em pilula (camera e microfone continuam dentro) */
html body #tela-estoque.ev3 #est-busca-wrap{padding:14px 16px 0 !important}
html body #tela-estoque.ev3 #est-busca{height:50px !important;border-radius:999px !important;background:var(--v3-suave) !important;border:0 !important;color:var(--v3-txt) !important;font-size:15.5px !important;padding-left:44px !important}
html body #tela-estoque.ev3 #est-busca::placeholder{color:var(--v3-mudo)}

/* marcas: 5 botoes iguais na mesma linha, cantos levemente arredondados */
html body #tela-estoque.ev3 #est-filtros-wrap{gap:6px !important;padding:12px 16px 0 !important;overflow:visible !important}
html body #tela-estoque.ev3 #est-filtros-wrap .est-filtro{flex:1 1 0 !important;min-width:0 !important;height:40px !important;padding:0 4px !important;border-radius:10px !important;border:0 !important;background:var(--v3-sup) !important;color:var(--v3-txt) !important;box-shadow:var(--v3-sombra);font-size:14px !important;font-weight:500 !important;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;overflow:hidden}
html body:not(.tema-claro) #tela-estoque.ev3 #est-filtros-wrap .est-filtro{border:1px solid var(--v3-suave) !important}
html body #tela-estoque.ev3 #est-filtros-wrap .est-filtro.ativo{background:var(--v3-pri) !important;color:var(--v3-pri-tx) !important;font-weight:600 !important;box-shadow:none}
html body #tela-estoque.ev3 #ef-Makita::before,html body #tela-estoque.ev3 #ef-Bosch::before,html body #tela-estoque.ev3 #ef-Dewalt::before{content:"";width:7px;height:7px;border-radius:50%;flex-shrink:0}
html body #tela-estoque.ev3 #ef-Makita::before{background:#0e9f9b}
html body #tela-estoque.ev3 #ef-Bosch::before{background:#d92d20}
html body #tela-estoque.ev3 #ef-Dewalt::before{background:#e3a008}
html body #tela-estoque.ev3 #ef-baixo,html body #tela-estoque.ev3 #ef-catalogo{display:none !important}

/* Exportar/Importar vao para o menu; Nova peca vira botao flutuante */
html body #tela-estoque.ev3 #est-exportar-wrap{padding:0 !important;height:0;overflow:visible}
html body #tela-estoque.ev3 #est-exportar-wrap{background:none !important;border:0 !important;box-shadow:none !important}
html body #tela-estoque.ev3 #est-exportar-wrap > *:not(.est-novo),html body #tela-estoque.ev3 #est-exportar-wrap > #btn-est-exportar,html body #tela-estoque.ev3 #est-exportar-wrap > [id]:not(.est-novo){display:none !important}
html body #tela-estoque.ev3 #est-exportar-wrap .est-novo{position:fixed !important;right:10px;bottom:calc(var(--ev3-nav,68px) + 12px + var(--ev3-fab-extra,0px) + env(safe-area-inset-bottom,0px));z-index:50;height:46px !important;width:auto !important;flex:none !important;padding:0 14px 0 11px !important;border-radius:13px !important;background:var(--v3-pri) !important;color:var(--v3-pri-tx) !important;font-size:15px !important;font-weight:600 !important;box-shadow:0 6px 16px rgba(26,58,107,.32) !important;display:flex;align-items:center;gap:6px;border:0 !important}
html body #tela-estoque.ev3 #est-exportar-wrap .est-novo svg{width:19px;height:19px}

/* resumo antigo e dica: trocados pelo subtitulo e pelo aviso */
html body #tela-estoque.ev3 #est-resumo-cards,html body #tela-estoque.ev3 #est-dica{display:none !important}
#ev3-aviso{margin:12px 16px 0;display:flex;align-items:center;gap:10px;background:var(--v3-al-s);border-radius:16px;padding:11px 12px 11px 14px;cursor:pointer;border:0;width:calc(100% - 32px);text-align:left;font-family:inherit}
#ev3-aviso .ic{width:36px;height:36px;border-radius:10px;background:var(--v3-al);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
#ev3-aviso .ic svg{width:19px;height:19px}
#ev3-aviso .t{flex:1;min-width:0;font-size:15px;line-height:1.3;color:var(--v3-txt)}
#ev3-aviso .t strong{display:block;font-weight:600}
#ev3-aviso .t span{color:var(--v3-mudo);font-size:14px}
#ev3-aviso .ver{font-size:15px;font-weight:600;color:var(--v3-al)}

/* barra Cards/Tabela vira linha "Todas as pecas" + botao pequeno */
html body #tela-estoque.ev3 #mkt-est-bar{padding:14px 18px 0 !important;display:flex;align-items:center}
html body #tela-estoque.ev3 #mkt-est-bar::before{content:attr(data-ev3-rot);flex:1;font-size:14.5px;color:var(--v3-mudo)}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-bar{margin:0 !important;width:auto !important}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-seg{display:flex;background:var(--v3-suave) !important;border:0 !important;border-radius:999px !important;padding:3px !important;gap:0 !important}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-op{height:32px !important;min-height:0 !important;padding:0 12px !important;border-radius:999px !important;border:0 !important;background:transparent !important;color:var(--v3-mudo) !important;font-size:13.5px !important;font-weight:600 !important;box-shadow:none !important}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-op.mkt-on{background:var(--v3-sup) !important;color:var(--v3-txt) !important;box-shadow:var(--v3-sombra) !important}

/* lista: um cartao arredondado por peca */
html body #tela-estoque.ev3 #est-lista{padding:10px 16px 84px !important}
html body #tela-estoque.ev3 .est-item{background:var(--v3-sup) !important;border:0 !important;border-radius:18px !important;box-shadow:var(--v3-sombra) !important;margin:0 0 8px !important;padding:12px 14px 12px 12px !important}
html body:not(.tema-claro) #tela-estoque.ev3 .est-item{border:1px solid var(--v3-suave) !important}
html body #tela-estoque.ev3 .est-item::before,html body #tela-estoque.ev3 .est-item::after{display:none !important}
html body #tela-estoque.ev3 .est-item-header{display:flex !important;align-items:center !important;gap:12px !important;padding:0 !important}
html body #tela-estoque.ev3 .ev3-av{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;flex-shrink:0}
html body #tela-estoque.ev3 .ev3-av-Bosch{background:#fde8e6;color:#c4231a}
html body #tela-estoque.ev3 .ev3-av-Makita{background:#dff5f4;color:#0b7c79}
html body #tela-estoque.ev3 .ev3-av-Dewalt{background:#fdf3d7;color:#9a6a00}
html body #tela-estoque.ev3 .ev3-av-Outra{background:var(--v3-suave);color:var(--v3-mudo)}
html body:not(.tema-claro) #tela-estoque.ev3 .ev3-av-Bosch{background:#3a1d1b;color:#f87171}
html body:not(.tema-claro) #tela-estoque.ev3 .ev3-av-Makita{background:#123331;color:#2dd4bf}
html body:not(.tema-claro) #tela-estoque.ev3 .ev3-av-Dewalt{background:#352b10;color:#fbbf24}
html body #tela-estoque.ev3 .est-info{flex:1 !important;min-width:0 !important}
html body #tela-estoque.ev3 .est-item-desc{font-size:16px !important;font-weight:600 !important;color:var(--v3-txt) !important;line-height:1.25 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #tela-estoque.ev3 .est-maq{font-size:14px !important;color:var(--v3-mudo) !important;margin-top:2px !important;font-weight:400 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #tela-estoque.ev3 .est-maq .est-maq-t,html body #tela-estoque.ev3 .est-maq .est-maq-m{color:var(--v3-mudo) !important;font-weight:400 !important;font-size:14px !important}
html body #tela-estoque.ev3 .est-item:not(.aberto) .est-maq.ev3-so-aberto{display:none !important}
html body #tela-estoque.ev3 .est-sub{margin-top:2px !important;gap:6px !important}
html body #tela-estoque.ev3 .est-sub .marca-tag{display:none !important}
html body #tela-estoque.ev3 .est-item-codigo{font-size:14px !important;color:var(--v3-mudo) !important;letter-spacing:.02em;font-weight:400 !important;background:none !important;padding:0 !important}
html body #tela-estoque.ev3 .est-status{display:none !important}
html body #tela-estoque.ev3 .ev3-nv{display:flex;align-items:center;gap:8px;margin-top:7px}
html body #tela-estoque.ev3 .ev3-trilho{flex:1;height:5px;border-radius:9px;background:var(--v3-trilho);overflow:hidden}
html body #tela-estoque.ev3 .ev3-trilho i{display:block;height:100%;border-radius:9px;background:var(--v3-ok)}
html body #tela-estoque.ev3 .ev3-nv.baixo .ev3-trilho i{background:var(--v3-al)}
html body #tela-estoque.ev3 .ev3-nv small{font-size:13px;color:var(--v3-mudo);white-space:nowrap}
html body #tela-estoque.ev3 .ev3-nv.baixo small{color:var(--v3-al)}
html body #tela-estoque.ev3 .est-q{flex-shrink:0 !important;min-width:48px;height:48px;border-radius:14px;background:var(--v3-suave);display:flex !important;flex-direction:column;align-items:center;justify-content:center;padding:0 6px !important;margin:0 !important}
html body #tela-estoque.ev3 .est-q .est-qtd-badge{background:none !important;border:0 !important;box-shadow:none !important;color:var(--v3-txt) !important;font-size:19px !important;font-weight:700 !important;padding:0 !important;min-width:0 !important;height:auto !important;line-height:1.1 !important;width:auto !important}
html body #tela-estoque.ev3 .est-q small{font-size:11.5px !important;color:var(--v3-mudo) !important;line-height:1.1}
html body #tela-estoque.ev3 .est-item.alerta .est-q,html body #tela-estoque.ev3 .est-item.zerado .est-q{background:var(--v3-al-s)}
html body #tela-estoque.ev3 .est-item.alerta .est-q .est-qtd-badge,html body #tela-estoque.ev3 .est-item.zerado .est-q .est-qtd-badge{color:var(--v3-al) !important}

/* menu (relogio e ...) */
#ev3-menu{position:fixed;inset:0;z-index:100000;background:rgba(8,12,20,.45);display:none;align-items:flex-end;justify-content:center}
#ev3-menu.on{display:flex}
#ev3-menu .fl{width:100%;max-width:520px;background:var(--v3m-sup,#fff);border-radius:20px 20px 0 0;padding:10px 12px calc(16px + env(safe-area-inset-bottom,0px))}
#ev3-menu .pg{width:40px;height:5px;border-radius:9px;background:#cbd5e1;margin:2px auto 10px}
#ev3-menu .tm{font-size:15px;font-weight:600;color:#64748b;padding:2px 8px 8px}
#ev3-menu button{width:100%;height:52px;display:flex;align-items:center;gap:12px;padding:0 12px;border:0;background:transparent;border-radius:12px;font-size:16px;font-weight:500;color:#0f172a;font-family:inherit;text-align:left;cursor:pointer}
#ev3-menu button.on{background:#e2eaf7;color:#1a3a6b;font-weight:600}
#ev3-menu button svg{width:21px;height:21px;color:#475569;flex-shrink:0}
body:not(.tema-claro) #ev3-menu .fl{background:#151c26}
body:not(.tema-claro) #ev3-menu button{color:#eef2f7}
body:not(.tema-claro) #ev3-menu button.on{background:#1b2a42;color:#9cc0ff}
body:not(.tema-claro) #ev3-menu button svg{color:#93a1b5}
body:not(.tema-claro) #ev3-menu .pg{background:#334155}

/* o "‹ Voltar" flutuante ficava em cima do botao Nova peca; no Estoque v3 ja existe o voltar no topo */
html body:has(#tela-estoque.ev3.ativa) .btn-voltar-float{display:none !important}

/* fundo: a regra geral do vidro (css-22) usa 5 :not(#id); aqui precisa ser mais forte */
html body.tema-claro #tela-estoque.ev3.tela:not(#ev3-x1):not(#ev3-x2):not(#ev3-x3):not(#ev3-x4):not(#ev3-x5),html body #tela-estoque.ev3.tela:not(#ev3-x1):not(#ev3-x2):not(#ev3-x3):not(#ev3-x4):not(#ev3-x5){background:var(--v3-fundo) !important;background-image:none !important}
/* marcas: as regras antigas por id (#ef-Makita etc., index.html) tinham borda e letra colorida */
html body #tela-estoque.ev3 #est-filtros-wrap #ef-todas.est-filtro,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Makita.est-filtro,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Bosch.est-filtro,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Dewalt.est-filtro,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Outra.est-filtro{border:0 !important;background:var(--v3-sup) !important;color:var(--v3-txt) !important;font-weight:500 !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-filtros-wrap #ef-todas.est-filtro,html body:not(.tema-claro) #tela-estoque.ev3 #est-filtros-wrap #ef-Makita.est-filtro,html body:not(.tema-claro) #tela-estoque.ev3 #est-filtros-wrap #ef-Bosch.est-filtro,html body:not(.tema-claro) #tela-estoque.ev3 #est-filtros-wrap #ef-Dewalt.est-filtro,html body:not(.tema-claro) #tela-estoque.ev3 #est-filtros-wrap #ef-Outra.est-filtro{border:1px solid var(--v3-suave) !important}
html body #tela-estoque.ev3 #est-filtros-wrap #ef-todas.est-filtro.ativo,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Makita.est-filtro.ativo,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Bosch.est-filtro.ativo,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Dewalt.est-filtro.ativo,html body #tela-estoque.ev3 #est-filtros-wrap #ef-Outra.est-filtro.ativo{background:var(--v3-pri) !important;color:var(--v3-pri-tx) !important;font-weight:600 !important;border-color:transparent !important}
html body.tema-claro #tela-estoque.ev3 #est-lista .est-item,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.alerta,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.zerado{border:0 !important;border-color:transparent !important}

/* b212: contorno escuro nos botoes (busca, marcas, Cards/Tabela, circulos do topo, cartoes, aviso, Nova peca) */
html body #tela-estoque.ev3{--v3-bd:#1a3a6b}
html body:not(.tema-claro) #tela-estoque.ev3{--v3-bd:#4a6fa8}
html body #tela-estoque.ev3 #est-busca{border:2px solid var(--v3-bd) !important;background:var(--v3-sup) !important}
html body #tela-estoque.ev3 #est-filtros-wrap .est-filtro,html body:not(.tema-claro) #tela-estoque.ev3 #est-filtros-wrap .est-filtro{border:2px solid var(--v3-bd) !important}
html body #tela-estoque.ev3 #est-filtros-wrap .est-filtro.ativo{border-color:var(--v3-bd) !important}
html body .ev3-circ,html body:not(.tema-claro) .ev3-circ{border:2px solid var(--v3-bd) !important}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-seg{border:2px solid var(--v3-bd) !important}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-op.mkt-on{border:1.5px solid var(--v3-bd) !important}
html body #tela-estoque.ev3 .est-item,html body:not(.tema-claro) #tela-estoque.ev3 .est-item{border:2px solid var(--v3-bd) !important}
html body #tela-estoque.ev3 .est-item.alerta{border-color:var(--v3-al) !important}
html body #tela-estoque.ev3 #ev3-aviso{border:2px solid var(--v3-al)}
html body #tela-estoque.ev3 #est-exportar-wrap .est-novo{border:2px solid var(--v3-bd) !important}

/* b213: busca retangular com borda azul-marinho; marcas viram o botao Filtro; aviso "acabando" vai para o menu */
html body #tela-estoque.ev3 #est-busca{border-radius:8px !important;height:50px !important;border:2px solid #1a3a6b !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-busca{border-color:#4a6fa8 !important}
html body #tela-estoque.ev3 #est-filtros-wrap{display:none !important}
html body #tela-estoque.ev3 #ev3-aviso{display:none !important}
html body #tela-estoque.ev3 #est-busca-wrap{align-items:stretch !important;gap:8px}
html body #tela-estoque.ev3 #ev3-filtro{flex:0 0 auto;height:50px;min-width:92px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;border:2px solid var(--v3-bd);background:var(--v3-sup);color:var(--v3-txt);font:700 15px inherit;font-family:inherit;cursor:pointer}
html body #tela-estoque.ev3 #ev3-filtro svg{width:18px;height:18px}
html body #tela-estoque.ev3 #ev3-filtro.on{background:var(--v3-pri);color:var(--v3-pri-tx)}

/* b214: cartao claro no estilo aprovado (barra colorida, quadro da peca, minimo e botoes - e + na base), Filtro com contadores */
html body #tela-estoque.ev3{--v3-lin:#dbe3ee;--v3-sec:#33405a;--v3-azul:#2f6fe0;--v3-verm:#c62828;--v3-barra:#3aa66a}
html body:not(.tema-claro) #tela-estoque.ev3{--v3-lin:#243041;--v3-sec:#b9c6e0;--v3-verm:#f87171}
html body #tela-estoque.ev3 #est-lista .est-item,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item{position:relative;padding:0 !important;overflow:hidden;border:1px solid var(--v3-lin) !important;border-left:6px solid var(--v3-barra) !important;border-radius:10px !important;margin:0 0 10px !important}
html body #tela-estoque.ev3 #est-lista .est-item.alerta,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.alerta,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.alerta{border-color:var(--v3-lin) !important;border-left-color:#f0a528 !important}
html body #tela-estoque.ev3 #est-lista .est-item.zerado,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.zerado,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.zerado{border-color:var(--v3-lin) !important;border-left-color:#d9534f !important}
html body #tela-estoque.ev3 #est-lista .est-item > :not(.est-item-header){margin-left:10px !important;margin-right:10px !important}
html body #tela-estoque.ev3 #est-lista .est-item.aberto{padding-bottom:10px !important}
html body #tela-estoque.ev3 #est-lista .est-item-header.ev3-h2{display:grid !important;grid-template-columns:64px minmax(0,1fr);grid-template-areas:"av info" "q foot";column-gap:12px;row-gap:8px;align-items:start !important;padding:10px !important;margin:0 !important}
html body #tela-estoque.ev3 #est-lista .est-item.aberto .est-item-header.ev3-h2{margin-bottom:8px !important}
html body #tela-estoque.ev3 #est-lista .ev3-av{grid-area:av;width:64px;height:64px;border-radius:8px;border:1px solid var(--v3-lin);font-size:26px}
html body #tela-estoque.ev3 #est-lista .est-info{grid-area:info;min-width:0 !important;padding-right:22px}
html body #tela-estoque.ev3 #est-lista .est-item-codigo{display:block;font-size:15.5px !important;font-weight:700 !important;color:var(--v3-txt) !important;line-height:1.25}
html body #tela-estoque.ev3 #est-lista .est-item-desc{font-size:12.5px !important;font-weight:500 !important;text-transform:uppercase;color:var(--v3-sec) !important;margin-top:1px}
html body #tela-estoque.ev3 #est-lista .ev3-l3{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:5px}
html body #tela-estoque.ev3 #est-lista .ev3-l3 .marca-tag{display:inline-block !important;font-size:12px !important;font-weight:700 !important;padding:0 6px !important;border-radius:3px !important;line-height:1.5;border:0 !important;background:transparent;color:var(--v3-mudo)}
html body #tela-estoque.ev3 #est-lista .ev3-l3 .marca-tag.Bosch{color:var(--v3-verm) !important}
html body #tela-estoque.ev3 #est-lista .ev3-l3 .marca-tag.Makita{background:#d5f0ee !important;color:#0b6e69 !important}
html body #tela-estoque.ev3 #est-lista .ev3-l3 .marca-tag.Dewalt{background:#fcd34d !important;color:#3b2f00 !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .ev3-l3 .marca-tag.Makita{background:#123331 !important;color:#2dd4bf !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .ev3-l3 .marca-tag.Dewalt{background:#352b10 !important;color:#fbbf24 !important}
html body #tela-estoque.ev3 #est-lista .ev3-l3 .est-maq{margin:0 !important;font-size:12.5px !important}
html body #tela-estoque.ev3 #est-lista .est-q{grid-area:q;display:flex !important;flex-direction:row !important;align-items:baseline;justify-content:flex-start;gap:4px;background:none !important;height:auto !important;min-width:0 !important;border-radius:0 !important;padding:0 !important;margin:0 !important}
html body #tela-estoque.ev3 #est-lista .est-q .est-qtd-badge{font-size:16px !important;font-weight:700 !important}
html body #tela-estoque.ev3 #est-lista .est-q small{font-size:12px !important;text-transform:uppercase;color:var(--v3-mudo) !important}
html body #tela-estoque.ev3 #est-lista .ev3-foot{grid-area:foot;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--v3-lin);padding-top:8px;min-width:0}
html body #tela-estoque.ev3 #est-lista .ev3-mn{font-size:13px;font-weight:700;color:var(--v3-mudo);white-space:nowrap}
html body #tela-estoque.ev3 #est-lista .ev3-mn::after{content:"Mín.: " attr(data-min) " un"}
html body #tela-estoque.ev3 #est-lista .est-item.alerta .ev3-mn{color:var(--v3-verm)}
html body #tela-estoque.ev3 #est-lista .est-item.alerta .ev3-mn::after{content:"BAIXO: " attr(data-min) " un"}
html body #tela-estoque.ev3 #est-lista .est-item.zerado .ev3-mn{color:var(--v3-verm)}
html body #tela-estoque.ev3 #est-lista .est-item.zerado .ev3-mn::after{content:"ZERADA · mín. " attr(data-min) " un"}
html body #tela-estoque.ev3 #est-lista .ev3-foot .est-ctrl-qtd{display:flex !important;align-items:center;gap:10px;border:0 !important;background:none !important;padding:0 !important;margin:0 !important;flex-shrink:0}
html body #tela-estoque.ev3 #est-lista .ev3-foot .est-ctrl-btn{width:38px !important;height:38px !important;min-width:0 !important;padding:0 !important;border-radius:8px !important;border:0 !important;font-size:20px !important;line-height:1;display:flex;align-items:center;justify-content:center;font-weight:600}
html body #tela-estoque.ev3 #est-lista .ev3-foot .est-ctrl-btn.menos{background:var(--v3-suave) !important;color:var(--v3-mudo) !important}
html body #tela-estoque.ev3 #est-lista .ev3-foot .est-ctrl-btn.mais{background:var(--v3-azul) !important;color:#fff !important}
html body #tela-estoque.ev3 #est-lista .ev3-foot .est-ctrl-num{font-size:15px !important;font-weight:600 !important;color:var(--v3-txt) !important;min-width:22px;text-align:center}
html body #tela-estoque.ev3 #est-lista .ev3-dots{position:absolute;top:4px;right:2px;width:36px;height:36px;border:0;background:none;color:var(--v3-mudo);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
html body #tela-estoque.ev3 #est-lista .ev3-dots svg{width:18px;height:18px;transform:rotate(90deg)}
#ev3-menu button span{flex:1}
#ev3-menu button em{font-style:normal;font-weight:600;font-size:14px;min-width:30px;text-align:center;padding:2px 10px;border-radius:12px;background:#e3e8ef;color:#334155}
body:not(.tema-claro) #ev3-menu button em{background:#243041;color:#eef2f7}

/* b215: busca em destaque numa faixa azul-marinho, fundo branco, cartoes brancos com BORDA ESCURA, quantidade grande a direita */
html body #tela-estoque.ev3{--v3-faixa:#1a3a6b}
html body:not(.tema-claro) #tela-estoque.ev3{--v3-faixa:#14284b}
html body.tema-claro #tela-estoque.ev3{--v3-fundo:#ffffff;--v3-sup:#ffffff}
html body #tela-estoque.ev3 #ev3-top{background:var(--v3-faixa);padding:14px 16px 0}
html body #tela-estoque.ev3 #ev3-tit{background:var(--v3-faixa);padding:6px 18px 0}
html body #tela-estoque.ev3 #ev3-tit h1{color:#fff !important;font-size:24px;font-weight:600}
html body #tela-estoque.ev3 #ev3-tit p{color:#b9c9e6 !important}
html body .ev3-circ,html body:not(.tema-claro) .ev3-circ{border:0 !important;background:rgba(255,255,255,.14) !important;color:#fff !important;box-shadow:none !important;width:40px !important;height:40px !important}
html body #tela-estoque.ev3 #est-busca-wrap{background:var(--v3-faixa);padding:14px 16px 0 !important;display:block !important}
html body #tela-estoque.ev3 #est-busca-wrap > div > span:first-child{display:none !important}
html body #tela-estoque.ev3 #est-busca-wrap #est-busca{height:56px !important;border:0 !important;border-radius:16px !important;color:#111827 !important;font-size:15.5px !important;font-weight:500 !important;padding:0 104px 0 48px !important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3a6b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center / 22px 22px !important}
html body #tela-estoque.ev3 #est-busca-wrap #est-busca::placeholder{color:#6b7280 !important;font-weight:400}
html body #tela-estoque.ev3 #est-busca-wrap #est-busca:focus{box-shadow:0 0 0 3px #8fb0ff !important}
html body #tela-estoque.ev3 #mk-evf-cam:not([data-ocupado="1"]),html body #tela-estoque.ev3 #mk-evf-mic:not([data-ocupado="1"]){background:#eef2f9 !important;color:#1a3a6b !important}
html body #tela-estoque.ev3 #mk-evf-cam,html body #tela-estoque.ev3 #mk-evf-mic{width:40px !important;height:40px !important;border-radius:12px !important}
html body #tela-estoque.ev3 #mk-evf-cam{right:52px !important}
html body #tela-estoque.ev3 #mk-evf-mic{right:8px !important}
html body #tela-estoque.ev3 #ev3-filtro{display:none !important}
#ev3-dica{background:var(--v3-faixa);color:#b9c9e6;font-size:12.5px;padding:10px 20px 20px;border-radius:0 0 22px 22px}
#ev3-chips{display:flex;gap:8px;padding:14px 16px 2px;overflow-x:auto;scrollbar-width:none}
#ev3-chips::-webkit-scrollbar{display:none}
#ev3-chips button{flex:none;padding:8px 14px;border-radius:20px;border:2px solid var(--v3-bd);background:var(--v3-sup);color:var(--v3-txt);font:500 13.5px inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
#ev3-chips button b{font-weight:500;opacity:.65;margin-left:4px}
#ev3-chips button.on{background:#e2eaf7;color:#1a3a6b;font-weight:600}
body:not(.tema-claro) #ev3-chips button.on{background:#1b2a42;color:#9cc0ff}
#ev3-res{margin:12px 16px 0;align-items:center;background:#e2eaf7;border-radius:14px;padding:10px 14px;color:#1a3a6b}
#ev3-res i{display:none}
#ev3-res b{display:block;font-weight:600;font-size:14.5px}
#ev3-res small{font-size:12.5px;color:#4a5f86}
body:not(.tema-claro) #ev3-res{background:#1b2a42;color:#9cc0ff}
html body #tela-estoque.ev3 #mkt-est-bar{justify-content:flex-end}
html body #tela-estoque.ev3 #mkt-est-bar::before{display:none !important}
html body #tela-estoque.ev3 #est-lista{padding:10px 16px 96px !important}
html body #tela-estoque.ev3 #est-lista .est-item,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item,html body #tela-estoque.ev3 #est-lista .est-item.alerta,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.alerta,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.alerta,html body #tela-estoque.ev3 #est-lista .est-item.zerado,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.zerado,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.zerado{border:2px solid var(--v3-bd) !important;border-left:2px solid var(--v3-bd) !important;border-radius:16px !important;background:var(--v3-sup) !important;margin:0 0 10px !important}
html body #tela-estoque.ev3 #est-lista .est-item-header.ev3-h2{grid-template-columns:44px minmax(0,1fr) auto !important;grid-template-areas:"av info q" !important;align-items:center !important;column-gap:12px !important;row-gap:0 !important;padding:13px !important}
html body #tela-estoque.ev3 #est-lista .ev3-av{width:44px;height:44px;border:0;border-radius:12px;font-size:17px;font-weight:600}
html body #tela-estoque.ev3 #est-lista .est-info{padding-right:0}
html body #tela-estoque.ev3 #est-lista .est-item-codigo{font-size:15.5px !important;font-weight:600 !important}
html body #tela-estoque.ev3 #est-lista .ev3-l2{font-size:13px;color:var(--v3-sec);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
html body #tela-estoque.ev3 #est-lista .ev3-l2 .est-item-desc,html body #tela-estoque.ev3 #est-lista .ev3-l2 .est-maq{display:inline !important;font-size:13px !important;text-transform:none !important;font-weight:400 !important;color:var(--v3-sec) !important;margin:0 !important;white-space:nowrap}
html body #tela-estoque.ev3 #est-lista .ev3-l2 .est-maq::before{content:" · "}
html body #tela-estoque.ev3 #est-lista .ev3-nv{margin-top:8px}
html body #tela-estoque.ev3 #est-lista .ev3-trilho{height:4px}
html body #tela-estoque.ev3 #est-lista .est-item.alerta .ev3-trilho i{background:#f08a24}
html body #tela-estoque.ev3 #est-lista .est-item.zerado .ev3-trilho i{background:#e5484d}
html body #tela-estoque.ev3 #est-lista .est-q{grid-area:q;display:flex !important;flex-direction:column !important;align-items:flex-end !important;justify-content:center;background:none !important;height:auto !important;min-width:44px !important;padding:0 !important;gap:2px}
html body #tela-estoque.ev3 #est-lista .est-q .est-qtd-badge{font-size:22px !important;font-weight:600 !important;line-height:1 !important}
html body #tela-estoque.ev3 #est-lista .est-q small:not(.est-disp){display:none !important}
html body #tela-estoque.ev3 #est-lista .ev3-mn{font-size:12px;color:var(--v3-mudo)}
html body #tela-estoque.ev3 #est-lista .ev3-mn::after{content:"mín. " attr(data-min)}
html body #tela-estoque.ev3 #est-lista .est-item.alerta .ev3-mn{color:#c2410c;font-weight:600}
html body #tela-estoque.ev3 #est-lista .est-item.zerado .ev3-mn,html body #tela-estoque.ev3 #est-lista .est-item.zerado .est-q .est-qtd-badge{color:var(--v3-verm) !important}
html body #tela-estoque.ev3 #est-lista .est-item.zerado .ev3-mn::after{content:"zerada · mín. " attr(data-min)}
html body #tela-estoque.ev3 #est-exportar-wrap .est-novo{height:52px !important;border-radius:26px !important;border:0 !important;background:#2f6fe0 !important;color:#fff !important;padding:0 20px 0 16px !important;font-size:15px !important;box-shadow:0 6px 16px rgba(26,58,107,.35) !important}

/* b216: tira o quadrado em volta da quantidade, chips cabem os 4, Cards/Tabela alinhado */
html body #tela-estoque.ev3 #est-lista .est-item .est-q,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item .est-q,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item .est-q,html body #tela-estoque.ev3 #est-lista .est-item.alerta .est-q,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.alerta .est-q,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.alerta .est-q,html body #tela-estoque.ev3 #est-lista .est-item.zerado .est-q,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.zerado .est-q,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.zerado .est-q{border:0 !important;box-shadow:none !important;border-radius:0 !important;background:none !important;outline:0 !important}
html body #tela-estoque.ev3 #est-lista .est-item .est-q .est-qtd-badge,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item .est-q .est-qtd-badge,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item .est-q .est-qtd-badge,html body #tela-estoque.ev3 #est-lista .est-item.alerta .est-q .est-qtd-badge,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.alerta .est-q .est-qtd-badge,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.alerta .est-q .est-qtd-badge,html body #tela-estoque.ev3 #est-lista .est-item.zerado .est-q .est-qtd-badge,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.zerado .est-q .est-qtd-badge,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.zerado .est-q .est-qtd-badge{border:0 !important;box-shadow:none !important;border-radius:0 !important;background:none !important;outline:0 !important;padding:0 !important}
html body #tela-estoque.ev3 #est-lista .est-item.alerta .ev3-mn::after,html body.tema-claro #tela-estoque.ev3 #est-lista .est-item.alerta .ev3-mn::after,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.alerta .ev3-mn::after{content:"mín. " attr(data-min)}
#ev3-chips{gap:6px;padding:14px 14px 2px}
#ev3-chips button{padding:7px 10px;font-size:12.5px;border-width:1.5px}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-op{display:inline-flex !important;flex-direction:row !important;align-items:center;gap:5px;white-space:nowrap;height:30px !important;padding:0 11px !important;font-size:13px !important}
html body #tela-estoque.ev3 #mkt-est-bar .mkt-seg{border-width:1.5px !important}

/* b218: Cards/Tabela vai para o menu (tres pontinhos); personalidade nos cartoes; menu rolavel */
html body #tela-estoque.ev3 #mkt-est-bar{display:none !important}
#ev3-menu .fl{max-height:78vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
#ev3-menu button span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ev3-menu button em{font-style:normal;font-size:13px;font-weight:700;color:#64748b;background:#eef2f7;border-radius:999px;padding:2px 9px}
body:not(.tema-claro) #ev3-menu button em{background:#243246;color:#b7c4d8}
#ev3-chips button{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}
html body #tela-estoque.ev3 #est-lista .est-item{box-shadow:inset 6px 0 0 #1f9d57,var(--v3-sombra) !important;border-left-width:2px !important}
html body #tela-estoque.ev3 #est-lista .est-item.alerta{box-shadow:inset 6px 0 0 #f59e0b,var(--v3-sombra) !important}
html body #tela-estoque.ev3 #est-lista .est-item.zerado{box-shadow:inset 6px 0 0 #dc2626,var(--v3-sombra) !important}
html body #tela-estoque.ev3 .ev3-cl{display:flex;align-items:center;gap:8px;min-width:0}
html body #tela-estoque.ev3 .ev3-cl .est-item-codigo{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #tela-estoque.ev3 .ev3-tag{flex-shrink:0;font-size:11.5px;font-weight:700;letter-spacing:.02em;color:var(--v3-pri);background:var(--v3-suave);border-radius:7px;padding:2px 7px}
html body #tela-estoque.ev3 .ev3-av-Bosch{box-shadow:inset 0 0 0 2px #c4231a}
html body #tela-estoque.ev3 .ev3-av-Makita{box-shadow:inset 0 0 0 2px #0b7c79}
html body #tela-estoque.ev3 .ev3-av-Dewalt{box-shadow:inset 0 0 0 2px #d4a300}

/* b219: modelo C do estoque (escolhido por ele) — quadradinho da quantidade no canto de cima, a direita */
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c{position:relative;box-shadow:var(--v3-sombra) !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c .est-item-header.ev3-h2{display:block !important;padding:12px 64px 12px 14px !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c .ev3-av,html body #tela-estoque.ev3 #est-lista .est-item.ev3c .ev3-cl,html body #tela-estoque.ev3 #est-lista .est-item.ev3c .ev3-l2,html body #tela-estoque.ev3 #est-lista .est-item.ev3c .ev3-nv{display:none !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c .est-info{padding:0 !important}
.ev3c-pills{display:flex;gap:6px;align-items:center;margin-bottom:5px;flex-wrap:wrap}
.ev3c-pill{font-size:11px;font-weight:700;border-radius:6px;padding:2px 7px;letter-spacing:.02em;background:var(--v3-suave);color:var(--v3-mudo)}
.ev3c-Bosch{background:#fcebeb;color:#791f1f}
.ev3c-Makita{background:#e1f5ee;color:#085041}
.ev3c-Dewalt{background:#fff3c4;color:#5c4400}
.ev3c-tp{background:var(--v3-suave);color:var(--v3-mudo)}
body:not(.tema-claro) .ev3c-Bosch{background:#3a1d1b;color:#f87171}
body:not(.tema-claro) .ev3c-Makita{background:#123331;color:#2dd4bf}
body:not(.tema-claro) .ev3c-Dewalt{background:#352b10;color:#fbbf24}
.ev3c-nome{font-size:16px;font-weight:700;line-height:1.25;color:var(--v3-txt);overflow-wrap:anywhere}
.ev3c-sub{font-size:13px;color:var(--v3-mudo);margin-top:2px;overflow-wrap:anywhere}
.ev3c-preco{font-size:15px;font-weight:700;color:#3b6d11;margin-top:5px}
body:not(.tema-claro) .ev3c-preco{color:#86efac}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .est-q{position:absolute !important;top:10px;right:10px;grid-area:auto;min-width:44px;height:auto !important;padding:4px 8px 5px !important;border-radius:9px !important;background:#eaf3de !important;display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center;gap:0;margin:0 !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .est-q .est-qtd-badge{font-size:17px !important;font-weight:700 !important;line-height:1.1 !important;color:#27500a !important;padding:0 !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .est-q .est-disp{display:none !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .ev3-mn{font-size:10.5px;line-height:1.1;color:#3b6d11}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.alerta .est-q,html body #tela-estoque.ev3 #est-lista .est-item.ev3c.zerado .est-q{background:#fcebeb !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.alerta .est-q .est-qtd-badge,html body #tela-estoque.ev3 #est-lista .est-item.ev3c.zerado .est-q .est-qtd-badge,html body #tela-estoque.ev3 #est-lista .est-item.ev3c.alerta .ev3-mn,html body #tela-estoque.ev3 #est-lista .est-item.ev3c.zerado .ev3-mn{color:#791f1f !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .ev3-mn::after{content:"mín. " attr(data-min) !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .est-q{background:#14301c !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .est-q .est-qtd-badge,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.ev3c .ev3-mn{color:#86efac !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.alerta .est-q,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.zerado .est-q{background:#3a1d1b !important}
html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.alerta .est-q .est-qtd-badge,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.zerado .est-q .est-qtd-badge,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.alerta .ev3-mn,html body:not(.tema-claro) #tela-estoque.ev3 #est-lista .est-item.ev3c.zerado .ev3-mn{color:#f87171 !important}
/* b301: card mais baixo + folha de +/− ao segurar */
html body #tela-estoque.ev3 #est-lista .est-item.ev3c .est-item-header.ev3-h2{padding:8px 60px 8px 12px !important}
html body #tela-estoque.ev3 #est-lista .est-item.ev3c{margin-bottom:8px !important}
.ev3c-pills{margin-bottom:2px !important}
html body #tela-estoque .ev3c-nome{font-size:16px !important;line-height:1.2 !important;margin:0 !important}
html body #tela-estoque .ev3c-sub{font-size:13px !important;margin:1px 0 0 !important;line-height:1.25 !important}
html body #tela-estoque .ev3c-preco{font-size:15px !important;margin-top:2px !important}
#ev3-folha{position:fixed;inset:0;z-index:100200;background:rgba(10,20,40,.45);display:flex;align-items:flex-end;justify-content:center}
#ev3-folha .ev3f-box{width:100%;max-width:520px;background:#fff;border-radius:18px 18px 0 0;padding:16px 16px 22px;display:flex;flex-direction:column;gap:12px}
#ev3-folha .ev3f-nome{font:900 17px Roboto,Arial,sans-serif;color:#0d2347;text-align:center}
#ev3-folha .ev3f-cod{font:600 13px Roboto,Arial,sans-serif;color:#64748b;text-align:center;margin-top:-8px}
#ev3-folha .ev3f-qt{display:flex;align-items:center;justify-content:center;gap:22px}
#ev3-folha .ev3f-qt span{font:900 30px Roboto,Arial,sans-serif;color:#0d2347;min-width:56px;text-align:center}
#ev3-folha .ev3f-b{width:58px;height:50px;border-radius:13px;border:2px solid #1a3a6b;background:#fff;color:#1a3a6b;font:900 28px Roboto,Arial,sans-serif;line-height:1}
#ev3-folha .ev3f-x{height:42px;border-radius:13px;border:2px solid #c0392b;background:#fff;color:#c0392b;font:800 14px Roboto,Arial,sans-serif}
#ev3-folha .ev3f-ok{height:42px;border-radius:13px;border:0;background:#1a3a6b;color:#fff;font:800 15px Roboto,Arial,sans-serif}
