/* ESTOQUE — redesenho de 04/11/2026 (build 144).
   Padrao shadcn/ui: controles do mesmo assunto agrupados, alturas iguais (44), margem lateral 14, raio 12, borda var(--eb).
   Os containers que o JS esconde/mostra (est-busca-wrap, est-filtros-wrap, est-exportar-wrap, est-resumo-cards)
   NAO levam !important no display: o app limpa o display inline ao trocar de aba e o layout tem que vir daqui. */

/* ---- abas Pecas / Historico / Relatorio / Notas ---- */
#tela-estoque #est-abas{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#tela-estoque #est-abas::-webkit-scrollbar{display:none}
#tela-estoque #est-abas .est-filtro{flex:1 0 auto;height:40px;padding:0 10px;font-size:14px;white-space:nowrap}

/* ---- busca: linha inteira (camera e microfone ficam dentro do campo) ---- */
#tela-estoque #est-busca-wrap{display:block;padding:12px 14px 0 !important}
#tela-estoque #est-busca-wrap > div:first-child{width:100%}
#tela-estoque #est-busca{height:48px;font-size:15px !important;border-radius:12px !important}

/* ---- filtros: uma faixa so, rola de lado (nunca quebra em duas linhas) ---- */
#tela-estoque #est-filtros-wrap{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:12px 14px 6px !important}
#tela-estoque #est-filtros-wrap::-webkit-scrollbar{display:none}
#tela-estoque #est-filtros-wrap .est-filtro{flex:0 0 auto;height:36px;padding:0 14px;font-size:14px;white-space:nowrap}

/* ---- acoes: Nova peca (principal) + Exportar|Importar (grupo) ---- */
#tela-estoque #est-exportar-wrap{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;padding:6px 14px 0 !important}
#tela-estoque #est-exportar-wrap .est-novo{flex:1 1 130px;height:44px;padding:0 14px;border-radius:12px;font-size:15px;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
#tela-estoque #est-exportar-wrap .mk-ic{width:18px;height:18px;flex:0 0 auto}
/* Exportar sozinho (quem nao tem o Importar) */
#tela-estoque #est-exportar-wrap > #btn-est-exportar{flex:1 1 130px !important;width:auto !important;height:44px !important;border-radius:12px !important;border:1.5px solid var(--eb) !important;background:var(--ec) !important;color:var(--et) !important;font-size:15px !important;font-weight:800 !important;display:flex !important;align-items:center;justify-content:center;gap:6px;padding:0 12px !important;white-space:nowrap}
/* grupo Exportar | Importar: uma caixa so, divisor fino no meio, cantos arredondados so por fora */
#tela-estoque #mkf-imp-wrap{flex:1.35 1 190px;display:flex !important;align-items:stretch;height:44px;border:1.5px solid var(--eb) !important;border-radius:12px !important;background:var(--ec) !important;overflow:hidden}
#tela-estoque #mkf-imp-wrap > button{flex:1 1 0 !important;min-width:0;width:auto !important;height:100% !important;border:0 !important;border-radius:0 !important;background:transparent !important;color:var(--et) !important;font-size:15px !important;font-weight:800 !important;display:flex !important;align-items:center;justify-content:center;gap:6px;padding:0 8px !important;white-space:nowrap}
#tela-estoque #mkf-imp-wrap > #mkf-imp-btn{border-left:1.5px solid var(--eb) !important}

/* ---- resumo: 3 numeros compactos numa linha (quebra 2+1 so com letra muito grande) ---- */
#tela-estoque #est-resumo-cards{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px 0 !important}
#tela-estoque .est-resumo-mini{flex:1 1 92px;display:flex;flex-direction:column;justify-content:center;min-height:62px;padding:8px 6px !important;border-radius:12px !important}
#tela-estoque .est-resumo-mini-val{font-size:22px !important}
#tela-estoque .est-resumo-mini-label{font-size:13px !important;line-height:1.15;margin-top:2px !important}

/* ---- dica + Cards/Tabela (os dois continuam separados, como ele pediu) ---- */
#tela-estoque .est-dica{font-size:13px !important;line-height:1.3;padding:10px 16px 0 !important}
#tela-estoque .mkt-bar{margin:8px 0 10px !important}
#tela-estoque .mkt-op{height:40px;font-size:14px;border-radius:12px}
#tela-estoque #est-lista{padding-top:2px !important}
