/* Estrutura horizontal do ERP RAFISA. Somente apresentação. */
:root{
 --ui-bg:#e1ecf7;--ui-surface:#fff;--ui-soft:#f5f8fc;--ui-input:#fff;
 --ui-line:#d8e0e6;--ui-text:#233744;--ui-muted:#667b89;
 --ui-blue:#245cc8;--ui-blue-hover:#1949aa;--ui-link:#1d57be;--ui-selected:#eaf1ff;
 --ui-sidebar:0px;--rafisa-borda:var(--ui-line);--erp-ink:#112f3e;--erp-accent:#1bb8ab;
}
html.rafisa-dark{
 color-scheme:dark;
 --ui-bg:#141e26;--ui-surface:#1d2b36;--ui-soft:#243541;--ui-input:#182630;
 --ui-line:#3a4b59;--ui-text:#eaf1f5;--ui-muted:#a3b5c2;
 --ui-blue:#3979e6;--ui-blue-hover:#4f8af1;--ui-link:#9fc2ff;--ui-selected:#29446b;
 --rafisa-borda:var(--ui-line);--erp-ink:#0b202c;
}
html body.erp-ui,html body.erp-ui *{font-family:"Segoe UI",Inter,Arial,sans-serif;}
html body.erp-ui .fa,html body.erp-ui .fas,html body.erp-ui .fa-solid{font-family:"Font Awesome 6 Free"!important;font-weight:900;}
html body.erp-ui .far,html body.erp-ui .fa-regular{font-family:"Font Awesome 6 Free"!important;font-weight:400;}
html body.erp-ui .fab,html body.erp-ui .fa-brands{font-family:"Font Awesome 6 Brands"!important;}
html body.erp-ui{background:var(--ui-bg)!important;color:var(--ui-text);font-size:13px;line-height:1.45;}
html body.erp-ui>.flex.min-h-screen{display:block!important;min-height:100vh;}
html:root body.erp-ui #main{margin:0!important;width:100%!important;min-width:0;min-height:calc(100vh - 112px);background:var(--ui-bg)!important;color:var(--ui-text);}
html body.erp-ui [hidden]{display:none!important;}
html body.erp-ui [class*="rounded"]{border-radius:4px!important;}
html body.erp-ui .rounded-full{border-radius:999px!important;}
html body.erp-ui .text-zinc-900,html body.erp-ui .text-zinc-800,html body.erp-ui .text-zinc-700,html body.erp-ui .text-zinc-600{color:var(--ui-text)!important;}
html body.erp-ui .text-zinc-500,html body.erp-ui .text-zinc-400{color:var(--ui-muted)!important;}
html body.erp-ui .bg-white,html body.erp-ui .autoBox{background:var(--ui-surface)!important;}
html body.erp-ui [class~="bg-[#0f27a3]"]{background:var(--ui-blue)!important;color:#fff!important;}
html body.erp-ui [class~="text-[#0f27a3]"]{color:var(--ui-link)!important;}
html body.erp-ui button:focus-visible,html body.erp-ui a:focus-visible,html body.erp-ui summary:focus-visible{outline:2px solid var(--ui-blue);outline-offset:3px;}

/* Cabeçalho horizontal e faixa de módulos. */
html body.erp-ui .erp-masthead{position:sticky;top:0;z-index:60;background:var(--erp-ink);box-shadow:0 3px 12px #112b3e14;}
html body.erp-ui .erp-masthead-linha{display:flex;align-items:center;gap:22px;min-height:66px;padding:0 30px;border-bottom:1px solid #ffffff14;}
html body.erp-ui .erp-marca{display:flex;align-items:center;gap:10px;flex:0 0 192px;color:#fff!important;text-decoration:none;background:transparent!important;}
html body.erp-ui .erp-marca-logo{display:flex;align-items:center;justify-content:center;width:64px;height:38px;padding:4px;background:#fff;border-radius:4px;}
html body.erp-ui .erp-marca-logo img{max-width:100%;max-height:100%;object-fit:contain;}
html body.erp-ui .erp-marca strong{display:block;font-size:16px;letter-spacing:.06em;font-weight:700;}
html body.erp-ui .erp-marca small{display:block;color:#a8c4d0;font-size:10px;letter-spacing:.03em;}
html body.erp-ui .erp-menu-principal{display:flex;align-items:stretch;gap:3px;flex:1;align-self:stretch;}
html body.erp-ui .erp-menu-principal .erp-area{display:flex;align-items:center;gap:7px;min-height:66px;padding:0 12px;border:0;border-bottom:3px solid transparent;border-radius:0!important;background:transparent!important;color:#bdd0d9!important;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;}
html body.erp-ui .erp-menu-principal .erp-area>i{font-size:12px;opacity:.8;}
html body.erp-ui .erp-menu-principal .erp-area:hover{background:#ffffff08!important;color:#fff!important;}
html body.erp-ui .erp-menu-principal .erp-area.ativa{color:#fff!important;border-bottom-color:var(--erp-accent);background:#ffffff0a!important;}
html body.erp-ui .erp-utilitarios{display:flex;align-items:center;gap:13px;margin-left:auto;color:#fff;}
html body.erp-ui .erp-saldo-sicoob{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-height:38px;padding:3px 12px;border:1px solid #ffffff24;border-radius:4px;color:#fff!important;text-decoration:none;white-space:nowrap;line-height:1.2;}
html body.erp-ui .erp-saldo-sicoob:hover{background:#ffffff12!important;}
html body.erp-ui .erp-saldo-sicoob small{font-size:10px;color:#adc4cf;}
html body.erp-ui .erp-saldo-sicoob strong{font-size:13px;font-weight:700;color:#fff;}
html body.erp-ui .erp-utilitarios #themeToggle,html body.erp-ui .erp-sair{display:flex;align-items:center;justify-content:center;min-width:30px;height:32px;padding:0;border:0!important;border-radius:4px!important;background:#ffffff0c!important;color:#d5e6ee!important;text-decoration:none;}
html body.erp-ui .erp-utilitarios #themeToggle:hover,html body.erp-ui .erp-sair:hover{background:#ffffff20!important;}
html body.erp-ui .erp-usuario{display:flex;align-items:center;gap:8px;white-space:nowrap;}
html body.erp-ui .erp-avatar{display:flex;align-items:center;justify-content:center;width:31px;height:31px;background:#2c5365;color:#fff;font-size:13px;font-weight:700;border-radius:4px;}
html body.erp-ui .erp-usuario strong{display:block;font-size:12px;font-weight:600;color:#fff;}
html body.erp-ui .erp-usuario small{display:block;font-size:10px;color:#adc4cf;}
html body.erp-ui .erp-menu-mobile{display:none;}
html body.erp-ui .erp-modulos{background:var(--ui-surface);border-bottom:1px solid var(--ui-line);}
html body.erp-ui .erp-modulos-lista{display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px;min-height:48px;padding:6px 30px;}
html body.erp-ui .erp-modulos-titulo{padding:5px 16px 5px 0;margin-right:5px;border-right:1px solid var(--ui-line);font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;color:var(--ui-muted);white-space:nowrap;}
html body.erp-ui .erp-modulos-lista a{display:flex;align-items:center;gap:7px;min-height:32px;padding:6px 10px;border:1px solid transparent;border-radius:4px!important;background:transparent!important;color:var(--ui-muted)!important;text-decoration:none;font-size:12px;white-space:nowrap;}
html body.erp-ui .erp-modulos-lista a i{font-size:11px;}
html body.erp-ui .erp-modulos-lista a:hover{background:var(--ui-soft)!important;color:var(--ui-text)!important;}
html body.erp-ui .erp-modulos-lista a.atual{background:var(--ui-selected)!important;color:var(--ui-link)!important;border-color:color-mix(in srgb,var(--ui-blue) 20%,transparent);font-weight:600;}
html body.erp-ui .erp-menu-flyout{display:flex;align-items:center;position:relative;}
html body.erp-ui .erp-menu-flyout-trigger{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 10px;border:1px solid transparent;border-radius:4px!important;background:transparent!important;color:var(--ui-muted)!important;font-size:12px;white-space:nowrap;cursor:pointer;}
html body.erp-ui .erp-menu-flyout-trigger:hover{background:var(--ui-soft)!important;color:var(--ui-text)!important;}
html body.erp-ui .erp-menu-flyout-trigger.atual{background:var(--ui-selected)!important;color:var(--ui-link)!important;border-color:color-mix(in srgb,var(--ui-blue) 20%,transparent);font-weight:600;}
html body.erp-ui .erp-menu-flyout-seta{font-size:9px;margin-left:2px;transition:transform .15s ease;}
html body.erp-ui .erp-menu-flyout-trigger[aria-expanded="true"] .erp-menu-flyout-seta{transform:rotate(90deg);}
html body.erp-ui .erp-menu-flyout-painel{position:fixed;left:var(--erp-flyout-left,12px);top:var(--erp-flyout-top,12px);z-index:120;display:flex;flex-direction:column;min-width:205px;padding:5px;border:1px solid var(--ui-line);border-radius:5px!important;background:var(--ui-surface);box-shadow:0 12px 32px #07152135;}
html body.erp-ui .erp-menu-flyout-painel a{display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 11px;border:0;border-radius:4px!important;color:var(--ui-text)!important;text-decoration:none;font-size:12px;white-space:nowrap;}
html body.erp-ui .erp-menu-flyout-painel a i{width:14px;color:var(--ui-link);text-align:center;}
html body.erp-ui .erp-menu-flyout-painel a:hover,html body.erp-ui .erp-menu-flyout-painel a:focus-visible{background:var(--ui-selected)!important;color:var(--ui-link)!important;}
html body.erp-ui .erp-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1760px;margin:0 auto;padding:24px 32px 20px;}
html body.erp-ui .erp-eyebrow{font-size:10px;color:var(--ui-muted);font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:0 0 4px;}
html body.erp-ui .erp-page-heading h1{margin:0;color:var(--ui-text);font-size:25px;line-height:1.2;font-weight:650;letter-spacing:-.025em;}
html body.erp-ui .erp-heading-contexto{display:flex;gap:18px;font-size:11px;color:var(--ui-muted);}
html body.erp-ui .erp-heading-contexto span{display:flex;gap:7px;align-items:center;}
html body.erp-ui #main>.p-7,html body.erp-ui #main>.dashboard-bg-area{padding:0 32px 32px!important;max-width:1760px;margin:0 auto;background:transparent!important;}
html body.erp-ui #main>.p-7>.w-full{max-width:none;}

/* Documentos e cadastros em folhas de trabalho, com cabeçalhos e ações separados. */
html:root body.erp-ui .rafisa-card{background:var(--ui-surface)!important;color:var(--ui-text);border:1px solid var(--ui-line)!important;border-radius:5px!important;box-shadow:0 1px 3px #19334007!important;}
html body.erp-ui .rafisa-card-hover:hover{transform:none;box-shadow:0 2px 8px #19334010!important;}
html body.erp-ui .cliente-secoes,html body.erp-ui .cadastro-unificado{width:100%;max-width:1400px;margin-left:auto;margin-right:auto;}
html body.erp-ui .cadastro-unificado.documento-comercial-largo{max-width:none;}
html body.erp-ui .cadastro-unificado .rafisa-card{margin-bottom:18px;}
html body.erp-ui .cliente-cabecalho,html body.erp-ui .cadastro-unificado .cliente-cabecalho{min-height:58px;padding:12px 18px!important;gap:12px;background:var(--ui-soft)!important;border-bottom:1px solid var(--ui-line)!important;border-radius:5px 5px 0 0!important;}
html body.erp-ui .cliente-cabecalho strong,html body.erp-ui .cliente-cabecalho h3{font-size:14px;letter-spacing:0;color:var(--ui-text);}
html body.erp-ui .cabecalho-cadastro-cliente{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;}
html body.erp-ui .cabecalho-cadastro-cliente>div{grid-column:1;justify-self:start;}
html body.erp-ui .cabecalho-cadastro-cliente>.cliente-cabecalho-titulo-principal{grid-column:2;grid-row:1;justify-self:center;font-size:15px;}
html body.erp-ui .cabecalho-cadastro-cliente>#btnNovo{grid-column:3;grid-row:1;justify-self:end;}
html body.erp-ui .cabecalho-modulo-cadastro{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;}
html body.erp-ui .cabecalho-modulo-cadastro>div:first-child{grid-column:1;justify-self:start;}
html body.erp-ui .cabecalho-modulo-cadastro>.titulo-modulo-cadastro{grid-column:2;grid-row:1;justify-self:center;text-align:center;font-size:15px;}
html body.erp-ui .cabecalho-modulo-cadastro>a,html body.erp-ui .cabecalho-modulo-cadastro>span:last-child{grid-column:3;grid-row:1;justify-self:end;}
html body.erp-ui .cabecalho-modulo-cadastro>h3.titulo-modulo-cadastro{margin:0;display:flex;align-items:center;white-space:nowrap;}
html body.erp-ui .cabecalho-vendedor{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;}
html body.erp-ui .cabecalho-vendedor .titulo-vendedor{grid-column:2;grid-row:1;text-align:center;}
html body.erp-ui .cabecalho-vendedor .titulo-vendedor h3{font-size:15px;}
html body.erp-ui .cabecalho-vendedor .acoes-vendedor{grid-column:3;grid-row:1;justify-self:end;}
html body.erp-ui .cadastro-cabecalho-vendedor{position:relative;}
html body.erp-ui .cadastro-cabecalho-vendedor>a[href="?p=vendedores"]{position:absolute;right:18px;top:50%;transform:translateY(-50%);justify-self:end;}
html body.erp-ui .cabecalho-documento-centralizado{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:18px;}
html body.erp-ui .cabecalho-documento-centralizado .pedido-cabecalho-titulo{grid-column:1;grid-row:1;justify-self:start;text-align:left;font-size:15px;}
html body.erp-ui .cabecalho-documento-centralizado .pedido-cabecalho-pesquisa{grid-column:2;grid-row:1;justify-self:end;}
html body.erp-ui .cabecalho-documento-centralizado .pedido-cabecalho-novo{grid-column:3;grid-row:1;}
html body.erp-ui .cabecalho-documento-centralizado.documento-vendas-cabecalho{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}
html body.erp-ui .cabecalho-documento-centralizado.documento-vendas-cabecalho .pedido-cabecalho-pesquisa{grid-column:1;justify-self:start;}
html body.erp-ui .cabecalho-documento-centralizado.documento-vendas-cabecalho .pedido-cabecalho-titulo{grid-column:2;justify-self:center;text-align:center;}
html body.erp-ui .cabecalho-documento-centralizado.documento-vendas-cabecalho .pedido-cabecalho-novo{grid-column:3;justify-self:end;}
html body.erp-ui .cadastro-grade,html body.erp-ui .cadastro-principal>.grid,html body.erp-ui .cadastro-detalhes>.grid{padding:18px;gap:13px 18px;}
html body.erp-ui .cadastro-unificado label,html body.erp-ui form label{font-size:11px;font-weight:600;line-height:1.4;color:var(--ui-text);}
html body.erp-ui .cadastro-principal>.grid>div>label{font-size:11px;text-transform:none!important;letter-spacing:0!important;}
html body.erp-ui .cadastro-unificado [data-forn-painel]{padding:18px;gap:13px 18px;}
html body.erp-ui .cadastro-abas,html body.erp-ui .cadastro-unificado [role="tablist"]{gap:4px;padding:9px 16px 0;background:var(--ui-soft);border-bottom:1px solid var(--ui-line);}
html body.erp-ui .tab-btn,html body.erp-ui .cadastro-unificado .tab-btn{min-height:35px;height:auto;padding:8px 14px;margin-bottom:-1px;background:transparent!important;color:var(--ui-muted)!important;font-size:12px;font-weight:600;border:1px solid transparent!important;border-bottom:2px solid transparent!important;border-radius:4px 4px 0 0!important;}
html body.erp-ui .tab-btn.active,html body.erp-ui .cadastro-unificado .tab-btn.active{background:var(--ui-surface)!important;color:var(--ui-link)!important;border-color:var(--ui-line)!important;border-bottom-color:var(--ui-surface)!important;box-shadow:inset 0 3px var(--ui-blue)!important;}
html body.erp-ui .tab-btn:hover{color:var(--ui-text)!important;}
html body.erp-ui .cadastro-unificado .cadastro-acoes,html body.erp-ui .cadastro-unificado form>.rafisa-card>.border-t{padding:12px 18px;gap:8px;background:var(--ui-soft);border-top:1px solid var(--ui-line);}
html body.erp-ui .cadastro-unificado .cadastro-acoes button,html body.erp-ui .cadastro-unificado .cadastro-acoes a{min-height:35px;padding:7px 16px;font-size:12px;}
html body.erp-ui .cliente-cabecalho button,html body.erp-ui .cliente-cabecalho a{min-height:35px;padding:7px 13px;border-radius:4px!important;font-size:12px;}

/* Medidas por finalidade: datas, documentos, números e nomes não têm a mesma largura. */
html:root body.erp-ui input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),html:root body.erp-ui select,html:root body.erp-ui textarea,html:root body.erp-ui .compact-input,html body.erp-ui .cadastro-unificado input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),html body.erp-ui .cadastro-unificado select{height:36px;min-height:36px;padding:7px 10px;margin-top:4px;background:var(--ui-input)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;border-radius:4px!important;box-shadow:none!important;font-size:12.5px;line-height:1.35;}
html:root body.erp-ui textarea{height:auto;min-height:78px;padding:9px 11px;resize:vertical;}
html body.erp-ui form label>.compact-input,html body.erp-ui .campo-data-venda>label,html body.erp-ui .cadastro-grade>div>.compact-input{display:block;}
html body.erp-ui input::placeholder,html body.erp-ui textarea::placeholder{color:var(--ui-muted)!important;opacity:.8;}
html body.erp-ui input[readonly],html body.erp-ui input:disabled,html body.erp-ui select:disabled,html body.erp-ui textarea:disabled{background:var(--ui-soft)!important;}
html body.erp-ui .produto-campo-moeda{display:flex;align-items:stretch;min-width:0;}
html body.erp-ui .produto-campo-moeda>span{display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:36px;margin-top:4px;padding:0 8px;background:var(--ui-soft);color:var(--ui-muted);border:1px solid var(--ui-line);border-right:0;border-radius:4px 0 0 4px;font-size:12px;font-weight:600;}
html body.erp-ui .produto-campo-moeda>input.compact-input{flex:1;min-width:0;width:100%;border-top-left-radius:0!important;border-bottom-left-radius:0!important;}
html body.erp-ui input:not([type="checkbox"]):not([type="radio"]):focus,html body.erp-ui select:focus,html body.erp-ui textarea:focus{outline:none!important;border-color:var(--ui-blue)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-blue) 15%,transparent)!important;}
html body.erp-ui input[type="checkbox"],html body.erp-ui input[type="radio"]{accent-color:var(--ui-blue);}
html body.erp-ui .rafisa-grade-conteudo{display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:13px 18px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo]{flex:0 1 210px;max-width:100%;min-width:0!important;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="codigo"]{flex:0 0 84px;width:84px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="data"]{flex:0 0 168px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="uf"]{flex:0 0 80px;width:80px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="numero"]{flex:0 1 145px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="documento"]{flex:0 1 200px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="email"]{flex:0 1 285px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="selecao"]{flex:0 1 230px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="nome"]{flex:1 1 310px;max-width:510px;}
html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="observacao"]{flex:1 0 100%;}
html body.erp-ui #prod_painel_comercial .rafisa-grade-conteudo{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));}
html body.erp-ui .cadastro-grade input[type="date"],html body.erp-ui .cadastro-grade input[name="cep"]{max-width:185px;}
html body.erp-ui .cadastro-grade input[name="uf"]{max-width:80px;}
html body.erp-ui .campo-data-venda-input{width:168px!important;max-width:100%;}
html body.erp-ui #formCompra fieldset.cadastro-principal>.compras-cabecalho-compacto{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:14px 18px;}
html body.erp-ui #formCompra .compras-identificacao-compacta,html body.erp-ui #formCompra .compras-condicoes-compactas{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 16px;min-width:0;width:100%;}
html body.erp-ui #formCompra .compras-datas-compactas{display:flex;flex-wrap:wrap;gap:12px;max-width:100%;}
html body.erp-ui #formCompra .compras-campo-data{flex:0 0 150px;width:150px;max-width:100%;}
html body.erp-ui #formCompra #fornecedorPagamentoCompra{flex:0 1 460px;min-width:0;max-width:100%;}
html body.erp-ui #formCompra .compras-contato-compacto{flex:0 1 300px;min-width:0;max-width:100%;}
html body.erp-ui #formCompra .compras-pagamento-compacto{flex:0 1 260px;min-width:0;max-width:100%;}
html body.erp-ui #formCompra .compras-cabecalho-compacto label{display:block;line-height:1.4;}
html body.erp-ui #formCompra .compras-cabecalho-compacto .compact-input{display:block;width:100%;max-width:100%;height:34px;min-height:34px;padding:6px 9px;}
@media(max-width:600px){html body.erp-ui #formCompra #fornecedorPagamentoCompra{flex-basis:100%;}html body.erp-ui #formCompra .compras-condicoes-compactas>div{flex:1 1 220px;}}
html body.erp-ui #formOrcamento #contatoOrcamento,html body.erp-ui #formOrcamento select[name="forma_pagamento_id"]{max-width:360px;}
html body.erp-ui #formOrcamento input[name="prazo_entrega"]{max-width:280px;}
/* Cabeçalho comercial: dimensões próprias, sem distribuir cada campo pela tela inteira. */
html body.erp-ui #principalOrcamento>.comercial-cabecalho-compacto{display:flex!important;flex-direction:column;align-items:stretch!important;gap:12px!important;padding:14px 18px!important;}
html body.erp-ui #principalOrcamento .comercial-identificacao-compacta,html body.erp-ui #principalOrcamento .comercial-condicoes-compactas{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 16px;min-width:0;width:100%;max-width:100%;}
html body.erp-ui #principalOrcamento .campos-data-venda{flex:0 0 auto;width:auto;max-width:100%;gap:12px;}
html body.erp-ui #principalOrcamento .campo-data-venda{width:150px;flex:0 0 150px;max-width:100%;}
html body.erp-ui #principalOrcamento .campo-data-venda-input{width:100%!important;}
html body.erp-ui #principalOrcamento .comercial-cliente-compacto{flex:0 1 600px;min-width:0;max-width:100%;}
html body.erp-ui #principalOrcamento .pedido-prazo-recomendacao{flex:0 0 100%;min-width:0;margin:0;}
html body.erp-ui #principalOrcamento .comercial-cliente-busca{display:flex;align-items:center;gap:8px;margin-top:4px;}
html body.erp-ui #principalOrcamento .comercial-cliente-busca input{flex:1;min-width:0;margin:0;}
html body.erp-ui #principalOrcamento .comercial-cliente-busca button{align-self:stretch;min-height:34px;margin:0;white-space:nowrap;flex-shrink:0;}
html body.erp-ui #principalOrcamento .comercial-condicoes-compactas>div{flex:0 1 220px;min-width:0;max-width:100%;}
html body.erp-ui #principalOrcamento .comercial-condicoes-compactas>div:has(>select[name="forma_pagamento_id"]){flex-basis:240px;}
html body.erp-ui #principalOrcamento .comercial-condicoes-compactas>div.comercial-prazo-compacto{flex-basis:180px;}
html body.erp-ui #principalOrcamento .comercial-cabecalho-compacto .compact-input{height:34px!important;min-height:34px!important;padding:6px 9px;}
html body.erp-ui #principalOrcamento .comercial-cabecalho-compacto label{display:block;line-height:1.4;}
html body.erp-ui #principalOrcamento #alertaClienteOrcamento:empty{display:none;}
@media(max-width:600px){html body.erp-ui #principalOrcamento .comercial-cliente-compacto{flex-basis:100%;width:100%;}html body.erp-ui #principalOrcamento .comercial-condicoes-compactas>div{flex:1 1 190px;}html body.erp-ui #principalOrcamento>.comercial-cabecalho-compacto{padding:13px!important;}}
/* Endereço de entrega do pedido: identificação, logradouro e localização. */
html body.erp-ui .pedido-entrega{min-width:0;margin-top:4px;}
html body.erp-ui .pedido-entrega h4{margin:0 0 8px;font-size:12px;font-weight:650;}
html body.erp-ui .pedido-entrega-usar-cadastro{display:flex;align-items:center;gap:7px;margin-bottom:12px;}
html body.erp-ui .pedido-entrega-usar-cadastro input[type="checkbox"]{flex:none;margin:0;}
html body.erp-ui .pedido-entrega-salva{margin:0 0 12px;font-size:12px;color:var(--ui-muted);}
html body.erp-ui #enderecoManualPedido{display:flex;flex-direction:column;gap:12px;max-width:1000px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-linha{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;min-width:0;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-campo{display:block;flex:0 1 var(--entrega-largura,220px);min-width:0;max-width:100%;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-rotulo{display:block;line-height:1.4;}
html body.erp-ui #enderecoManualPedido .compact-input{display:block;box-sizing:border-box;width:100%;max-width:100%;height:34px;min-height:34px;}
html body.erp-ui #enderecoManualPedido .campo-cidade-controle{margin-top:0;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-destinatario{--entrega-largura:360px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-telefone{--entrega-largura:180px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-cep{--entrega-largura:120px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-endereco{--entrega-largura:420px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-numero{--entrega-largura:90px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-bairro{--entrega-largura:250px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-cidade{--entrega-largura:300px;}
html body.erp-ui #enderecoManualPedido .pedido-entrega-uf{--entrega-largura:70px;}
@media(max-width:600px){html body.erp-ui #enderecoManualPedido .pedido-entrega-destinatario,html body.erp-ui #enderecoManualPedido .pedido-entrega-endereco,html body.erp-ui #enderecoManualPedido .pedido-entrega-bairro,html body.erp-ui #enderecoManualPedido .pedido-entrega-cidade{flex-basis:100%;}}
html body.erp-ui button:disabled{opacity:.46;cursor:not-allowed;}
html body.erp-ui button[class~="bg-[#0f27a3]"]:hover,html body.erp-ui a[class~="bg-[#0f27a3]"]:hover{background:var(--ui-blue-hover)!important;}

/* Mantém os campos da NF-e alinhados e aproveita a largura do formulário. */
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-superiores{
  grid-template-columns:170px 90px 110px minmax(300px,1.45fr) minmax(220px,.85fr)!important;
  grid-template-areas:"emissao serie numero chave natureza";
  justify-content:stretch;
  gap:12px!important;
}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-superiores>label{min-width:0;}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-emissao>.compact-input,
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-chave>.compact-input,
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-natureza>.compact-input{display:block;width:100%!important;max-width:100%;box-sizing:border-box;}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-serie>.compact-input{display:block;width:100%!important;max-width:100%;box-sizing:border-box;}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-numero>.compact-input{display:block;width:100%!important;max-width:100%;box-sizing:border-box;}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais{
  display:grid!important;
  grid-template-columns:minmax(100px,.7fr) minmax(145px,1fr) minmax(220px,2.5fr) minmax(190px,2.3fr) minmax(210px,2.3fr);
  align-items:end;
  gap:12px!important;
  min-width:0;
}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais>label{
  display:block;
  flex:initial!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%;
  box-sizing:border-box;
}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais>label>.compact-input{
  display:block;
  width:100%!important;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade{
  grid-template-columns:minmax(100px,.7fr) minmax(145px,1fr) minmax(220px,2.5fr) minmax(190px,2.3fr) minmax(210px,2.3fr)!important;
  gap:12px!important;
  min-width:0;
}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade>label{
  grid-column:auto!important;
  min-width:0;
}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade>label>.compact-input{
  display:block;
  width:100%!important;
  min-width:0;
  box-sizing:border-box;
}
@media(max-width:1050px){
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-superiores{
    grid-template-columns:minmax(150px,1fr) 90px 110px!important;
    grid-template-areas:"emissao serie numero" "chave chave chave" "natureza natureza natureza";
  }
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais,
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais>label:first-child,
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais>label:nth-child(2),
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade>label:first-child,
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade>label:nth-child(2){grid-column:span 1;}
}
@media(max-width:600px){
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-superiores,
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais,
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade{grid-template-columns:minmax(0,1fr)!important;}
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-superiores{grid-template-areas:"emissao" "serie" "numero" "chave" "natureza";}
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-campos-comerciais>label,
  html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-pedido-campos-grade>label{grid-column:auto!important;}
}

/* Grades, listas e janelas de pesquisa. */
html body.erp-ui table{border-collapse:separate;border-spacing:0;color:var(--ui-text);font-variant-numeric:tabular-nums;}
html body.erp-ui table thead th{padding:10px 12px;background:var(--ui-soft)!important;color:var(--ui-muted)!important;border-bottom:1px solid var(--ui-line)!important;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.035em;}
html body.erp-ui table tbody td{padding:9px 12px;border-bottom:1px solid var(--ui-line);vertical-align:middle;}
html body.erp-ui table tbody tr:last-child td{border-bottom:0;}
html body.erp-ui table tbody tr:hover{background:var(--ui-soft)!important;}
html body.erp-ui table .compact-input{height:32px!important;min-height:32px!important;}
/* Produtos da NF-e em grupos: a tabela mantém os controles e os vínculos originais. */
html body.erp-ui .nfe-saida-pagina .nfe-itens-quadro{width:100%;min-width:0;max-width:100%;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados{display:grid;grid-template-columns:minmax(0,1fr);position:relative;width:100%!important;min-width:0!important;max-width:100%;border:0;overflow:visible;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody{display:grid;gap:12px;width:100%;min-width:0;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-areas:"nitem codigo produto produto produto produto produto acabamento acabamento acabamento acoes acoes" "xped xped tabela tabela quantidade quantidade preco preco desconto desconto total total";align-items:start;gap:12px;padding:14px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface)!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td{display:block;width:auto!important;min-width:0!important;max-width:100%;padding:0;border:0!important;white-space:normal;cursor:default;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td::before{content:attr(data-rotulo);display:block;min-height:15px;margin-bottom:4px;color:var(--ui-muted);font-size:11px;font-weight:600;line-height:1.4;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-nitemped{grid-area:nitem;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-codigo{grid-area:codigo;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-produto{grid-area:produto;overflow-wrap:anywhere;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acabamento{grid-area:acabamento;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-xped{grid-area:xped;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-tabela{grid-area:tabela;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-quantidade{grid-area:quantidade;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-preco{grid-area:preco;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-desconto{grid-area:desconto;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-total{grid-area:total;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acoes{grid-area:acoes;justify-self:end;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td .compact-input,html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-produto input[data-produto-avulsa]{width:100%!important;min-width:0!important;max-width:100%;box-sizing:border-box;margin-top:0;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-preco>div,html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-desconto>div{display:flex;align-items:center;gap:6px;min-width:0;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-desconto select{flex:0 0 64px;width:64px!important;min-width:64px!important;padding-left:7px;padding-right:20px;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-preco input,html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-desconto input{flex:1;min-width:0!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-total input{font-weight:700;background:var(--ui-soft)!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acabamento>div{flex-wrap:wrap!important;align-items:center;gap:8px!important;min-height:32px;white-space:normal!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acabamento label{white-space:nowrap;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acoes button{min-height:32px;padding:5px 12px;font-size:12px;}
/* Na NF avulsa, dimensiona cada controle pelo conteúdo esperado. */
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-nitemped,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-codigo,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-acabamento,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-xped,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-tabela,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-quantidade,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-preco,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-total{justify-self:start;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-nitemped input{width:82px!important;max-width:100%;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-xped input{width:140px!important;max-width:100%;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-tabela select{width:150px!important;max-width:100%;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-quantidade input{width:120px!important;max-width:100%;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-preco>div{width:100%;max-width:165px;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-preco input{width:110px!important;max-width:110px;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto>div{width:100%;max-width:170px;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto select{flex-basis:54px;width:54px!important;min-width:54px!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto input{width:95px!important;max-width:95px;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-total input{width:160px!important;max-width:100%;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-acabamento>div{max-width:230px;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido>tbody>tr{grid-template-areas:"nitem codigo produto produto produto produto produto produto acabamento acabamento acabamento acabamento" "quantidade quantidade quantidade preco preco preco desconto desconto desconto total total total";}
@media(max-width:1100px){
 html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido)>tbody>tr{grid-template-areas:"nitem nitem codigo codigo produto produto produto produto produto produto produto produto" "acabamento acabamento acabamento acabamento xped xped xped tabela tabela tabela acoes acoes" "quantidade quantidade quantidade preco preco preco desconto desconto desconto total total total";}
}
@media(max-width:650px){
 html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido)>tbody>tr{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"nitem codigo" "produto produto" "acabamento acabamento" "xped tabela" "quantidade preco" "desconto desconto" "total total" "acoes acoes";}
 html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido>tbody>tr{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"nitem codigo" "produto produto" "acabamento acabamento" "quantidade preco" "desconto desconto" "total total";}
}
html body.erp-ui .fluxo-caixa .fluxo-valor-positivo{color:#15803d!important;}
html.rafisa-dark body.erp-ui .fluxo-caixa .fluxo-valor-positivo{color:#4ade80!important;}
html body.erp-ui .overflow-x-auto{scrollbar-color:var(--ui-line) transparent;}
html body.erp-ui dialog,html body.erp-ui .fornecedor-pesquisa,html body.erp-ui .rafisa-pesquisa-padrao{background:var(--ui-surface)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;border-radius:6px!important;box-shadow:0 24px 80px #0a223344!important;}
html body.erp-ui #pesquisaFornecedor .fornecedor-pesquisa-cabecalho{justify-content:space-between;background:var(--ui-blue)!important;color:#fff!important;padding:20px 28px!important;}
html body.erp-ui #pesquisaFornecedor .fornecedor-pesquisa-cabecalho h3{width:auto;margin:0;text-align:left;color:#fff!important;}
html body.erp-ui #pesquisaFornecedor .fornecedor-pesquisa-cabecalho button{position:static;transform:none;width:36px;height:36px;padding:0;color:#fff!important;border:0!important;background:#ffffff26!important;}
html body.erp-ui :is(dialog[id*="pesquisa" i],#modalContaFinanceira,#modalBancoFinanceiro) > div:first-child,
html body.erp-ui #modalPesquisa > div > div:first-child{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px!important;background:var(--ui-blue)!important;color:#fff!important;}
html body.erp-ui :is(dialog[id*="pesquisa" i],#modalContaFinanceira,#modalBancoFinanceiro) > div:first-child :is(h3,strong),
html body.erp-ui #modalPesquisa > div > div:first-child h3{display:flex;align-items:center;gap:10px;margin:0;color:#fff!important;font-size:14px;font-weight:700;}
html body.erp-ui :is(dialog[id*="pesquisa" i],#modalContaFinanceira,#modalBancoFinanceiro) > div:first-child :is(h3,strong):not(:has(i,span))::before,
html body.erp-ui #modalPesquisa > div > div:first-child h3:not(:has(i,span))::before{content:"";display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;border-radius:9px;background:#ffffff26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/16px 16px no-repeat;}
html body.erp-ui :is(dialog[id*="pesquisa" i],#modalContaFinanceira,#modalBancoFinanceiro) > div:first-child button,
html body.erp-ui #modalPesquisa > div > div:first-child button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;padding:0;border:0!important;border-radius:50%!important;background:#ffffff26!important;color:#fff!important;}
html body.erp-ui dialog::backdrop{background:#0b203a80;backdrop-filter:blur(2px);}
html body.erp-ui .rafisa-pesquisa-cabecalho{background:var(--ui-blue)!important;color:#fff!important;border-bottom:1px solid #ffffff18!important;}
html body.erp-ui .rafisa-pesquisa-padrao>div:first-child:not(.rafisa-pesquisa-resultados):not(.rafisa-pesquisa-cabecalho){background:var(--erp-ink)!important;color:#fff!important;border-bottom:1px solid #ffffff18!important;}
html body.erp-ui .rafisa-pesquisa-cabecalho{padding:16px 20px;}
html body.erp-ui .rafisa-pesquisa-cabecalho button{color:#fff!important;background:#ffffff15!important;border:1px solid #ffffff30!important;}
html body.erp-ui .rafisa-pesquisa-filtros{padding:18px 20px;background:var(--ui-soft)!important;color:var(--ui-text)!important;}
html body.erp-ui .rafisa-pesquisa-tabela tbody tr:hover,html body.erp-ui .rafisa-pesquisa-tabela tbody tr:focus-visible{background:var(--ui-selected)!important;}
@media(min-width:1450px){
  html body.erp-ui .nfe-saida-pagina{width:calc(100% - 40px)!important;max-width:1680px!important;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido)>tbody>tr{
    grid-template-columns:60px 60px minmax(280px,2.4fr) 165px 100px 100px 85px 135px 150px 150px 88px;
    grid-template-areas:"nitem codigo produto acabamento xped tabela quantidade preco desconto total acoes";
    gap:8px;
    align-items:start;
    padding:12px;
  }
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido)>tbody>tr>td{justify-self:stretch;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-nitemped input,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-xped input,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-tabela select,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-quantidade input,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-total input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-preco>div,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto>div{width:100%;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-preco input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto input{width:86px!important;max-width:86px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-acabamento>div{max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-acoes{justify-self:end;}
}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acoes [data-remover-item-nfe]{color:#b91c1c!important;border-color:#dc2626!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acoes [data-remover-item-nfe]:hover{background:#fee2e2!important;color:#991b1b!important;}
html.rafisa-dark body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acoes [data-remover-item-nfe]{color:#fca5a5!important;border-color:#ef4444!important;}
html.rafisa-dark body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acoes [data-remover-item-nfe]:hover{background:#7f1d1d!important;color:#fff!important;}
html body.erp-ui .nfe-saida-pagina .nfe-campo-obrigatorio{color:#dc2626!important;font-weight:800;}
html.rafisa-dark body.erp-ui .nfe-saida-pagina .nfe-campo-obrigatorio{color:#f87171!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-rotulo-html::before{display:none!important;content:none!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td .nfe-item-rotulo{display:block;min-height:15px;margin-bottom:4px;color:var(--ui-muted);font-size:11px;font-weight:600;line-height:1.4;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acabamento>div{display:flex;flex-direction:column!important;flex-wrap:nowrap!important;align-items:flex-start!important;justify-content:center;gap:3px!important;min-height:0;white-space:normal!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-acabamento label{margin:0;line-height:1.25;}
@media(min-width:1450px){html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido)>tbody>tr{grid-template-columns:60px 60px minmax(280px,2.4fr) 120px 100px 100px 85px 135px 150px 150px 88px;}}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-codigo{justify-self:stretch!important;width:60px!important;min-width:60px!important;max-width:60px!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados td.nfe-item-codigo .nfe-item-codigo-valor{display:flex;align-items:center;justify-content:flex-start;width:60px!important;height:32px;min-width:60px!important;max-width:60px;min-height:32px;padding:7px 10px;border:1px solid var(--ui-line);border-radius:4px;background:var(--ui-input)!important;color:var(--ui-text);font-size:12px;font-weight:600;line-height:1.35;box-sizing:border-box;white-space:nowrap;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td{align-self:start;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td::before,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td .nfe-item-rotulo{min-height:16px;height:16px;line-height:16px;margin-bottom:4px;white-space:nowrap;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td .nfe-item-rotulo{display:block;flex:none;margin:0 0 4px!important;padding:0;box-sizing:border-box;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td .compact-input{margin-top:0!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td.nfe-item-preco>div,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td.nfe-item-desconto>div,
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td.nfe-item-acabamento>div{margin:0!important;}
html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados>tbody>tr>td.nfe-item-acoes button{margin:0!important;}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-totais{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;align-items:end;}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-totais>label{grid-column:auto!important;display:block;min-width:0;}
html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-totais .compact-input{display:block;width:100%!important;max-width:100%;box-sizing:border-box;}
@media(max-width:900px){html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-totais{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:520px){html body.erp-ui .nfe-saida-pagina #preparacaoNfe .nfe-avulsa-totais{grid-template-columns:minmax(0,1fr)!important;}}
html body.erp-ui .dashboards-pedidos-vazio{border-color:var(--ui-line)!important;background:var(--ui-soft)!important;color:var(--ui-muted)!important;}

/* Visão geral em faixa de indicadores e bancada de ferramentas. */
html body.erp-ui .dashboard-bg-area{min-height:0;}
html body.erp-ui .dashboard-bg-area::before,html body.erp-ui .dashboard-bg-area::after{display:none!important;}
html body.erp-ui .dashboard-content{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px!important;max-width:none;}
html body.erp-ui .dashboard-content>.dashboard-indicadores-ordem,html body.erp-ui .dashboard-content>.dashboard-vendas{display:contents!important;}
html body.erp-ui .dashboard-content .dashboard-indicadores-ordem>.rafisa-card,html body.erp-ui .dashboard-content .dashboard-vendas>.rafisa-card{min-height:152px;padding:17px 18px!important;border-top:1px solid var(--ui-line)!important;border-radius:5px!important;box-shadow:inset 0 3px var(--ui-blue)!important;}
html body.erp-ui .dashboard-content .dashboard-indicadores-ordem>.rafisa-card:first-child{box-shadow:inset 0 3px #d79742!important;}
html body.erp-ui .dashboard-content .dashboard-vendas>.painel-pedidos{box-shadow:inset 0 3px #139b91!important;}
html body.erp-ui .dashboard-content .dashboard-vendas>.painel-faturamento{box-shadow:inset 0 3px #8672c6!important;}
html body.erp-ui .dashboard-indicadores-ordem>.rafisa-card>.absolute,html body.erp-ui .dashboard-vendas>.rafisa-card>.absolute{display:none;}
html body.erp-ui .dashboard-indicadores-ordem .text-\[24px\],html body.erp-ui .dashboard-vendas .text-\[24px\]{font-size:25px;line-height:1.15;letter-spacing:-.035em;}
html body.erp-ui .dashboard-vendas .text-\[10px\].uppercase::before{display:none!important;}
html body.erp-ui .dashboard-content>.rafisa-inicio-ferramentas{display:grid!important;grid-column:1/-1!important;grid-row:auto!important;grid-template-columns:minmax(280px,.8fr) minmax(320px,1.7fr) minmax(240px,.8fr);gap:20px;align-items:stretch;}
html body.erp-ui .dashboard-content>.rafisa-inicio-ferramentas>*{grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;min-width:0;}
html body.erp-ui #calculadoraPreco{padding:20px!important;}
html body.erp-ui #tituloCalculadoraPreco{margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--ui-line);font-size:14px;}
html body.erp-ui .calculadora-preco-campos{gap:16px;}
html body.erp-ui .calculadora-preco-resultado{background:var(--ui-soft);border:1px solid var(--ui-line);border-left:3px solid var(--ui-blue);border-radius:3px!important;padding:14px;}
html body.erp-ui .rafisa-inicio-ferramentas>.rafisa-card:has(>#atalhosRapidos){padding:18px!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;max-width:none!important;}
html body.erp-ui .rafisa-inicio-ferramentas>.rafisa-card:has(>#atalhosRapidos)>.absolute{display:none;}
html body.erp-ui #atalhosRapidos>p{font-size:12px;color:var(--ui-text)!important;letter-spacing:0!important;text-transform:none;font-weight:700;padding-bottom:12px;border-bottom:1px solid var(--ui-line);}
html body.erp-ui #atalhosRapidos>.rafisa-atalhos-lista{gap:2px;margin-top:10px;}
html body.erp-ui #atalhosRapidos .rafisa-atalho{min-height:36px;height:auto;padding:6px 4px;background:transparent!important;color:var(--ui-text)!important;border:0;border-bottom:1px solid var(--ui-line);border-radius:0!important;font-size:12px;}
html body.erp-ui #atalhosRapidos .rafisa-atalho:last-child{border-bottom:0;}
html body.erp-ui #atalhosRapidos .rafisa-atalho:hover{background:var(--ui-selected)!important;color:var(--ui-link)!important;}
html body.erp-ui #atalhosRapidos .rafisa-atalho-icone{background:var(--ui-soft)!important;color:var(--ui-link)!important;border-radius:3px!important;}
html body.erp-ui .dashboard-pendencias{padding:18px!important;}
html body.erp-ui .dashboard-pendencias>h3{font-size:12px;text-transform:none;letter-spacing:0;padding-bottom:12px;border-bottom:1px solid var(--ui-line);}
html body.erp-ui .dashboard-pendencias>div{background:var(--ui-soft)!important;border-color:var(--ui-line)!important;min-height:120px;}

html body.erp-ui .dashboard-investimentos-painel{container-type:inline-size;}
html body.erp-ui .dashboard-investimentos-painel>.dashboard-pendencias-grade{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;min-height:0;padding:0;background:transparent!important;border:0!important;}
html body.erp-ui .dashboard-pendencias-coluna,html body.erp-ui .dashboard-investimentos-coluna{min-width:0;padding:0 18px;}
html body.erp-ui .dashboard-pendencias-coluna{padding-left:0;border-right:1px solid var(--ui-line);}
html body.erp-ui .dashboard-investimentos-coluna{padding-right:0;}
html body.erp-ui .dashboard-painel-cabecalho{display:flex;align-items:center;justify-content:space-between;gap:10px;}
html body.erp-ui .dashboard-painel-titulo{margin:0;padding:0 0 11px;border-bottom:1px solid var(--ui-line);font-size:12px;font-weight:700;color:var(--ui-text);}
html body.erp-ui .dashboard-investimentos-link{color:var(--ui-link);font-size:10px;font-weight:700;text-decoration:none;white-space:nowrap;}
html body.erp-ui .dashboard-pendencias-vazio,html body.erp-ui .dashboard-investimentos-vazio{margin-top:12px;padding:12px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:4px;color:var(--ui-muted);font-size:11px;line-height:1.45;}
html body.erp-ui .dashboard-pendencias-vazio p{margin:0;}
html body.erp-ui .dashboard-pendencias-lembrete{border-left:3px solid #cba34c;color:var(--ui-text);}
html body.erp-ui .dashboard-pendencias-lembrete strong{color:#cba34c;}
html body.erp-ui .dashboard-investimentos-resumo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;}
html body.erp-ui .dashboard-investimentos-resumo>div{min-width:0;padding:9px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:4px;}
html body.erp-ui .dashboard-investimentos-resumo small,html body.erp-ui .dashboard-investimento-item small{display:block;color:var(--ui-muted);font-size:9px;line-height:1.35;}
html body.erp-ui .dashboard-investimentos-resumo strong{display:block;margin-top:4px;color:var(--ui-text);font-size:13px;font-variant-numeric:tabular-nums;}
html body.erp-ui .dashboard-investimentos-composicao{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px;padding-top:6px;border-top:1px solid var(--ui-line);}
html body.erp-ui .dashboard-investimentos-composicao>span{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;}
html body.erp-ui .dashboard-investimentos-composicao small{font-size:8px!important;white-space:nowrap;}
html body.erp-ui .dashboard-investimentos-composicao b{color:var(--ui-text);font-size:8px;font-variant-numeric:tabular-nums;white-space:nowrap;}
html body.erp-ui .dashboard-investimentos-resumo .dashboard-investimentos-rendimento{color:#168455;}
html body.erp-ui .dashboard-investimentos-lista{display:grid;gap:0;}
html body.erp-ui .dashboard-investimento-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--ui-line);}
html body.erp-ui .dashboard-investimento-item>div{min-width:0;}
html body.erp-ui .dashboard-investimento-item>div>strong{display:block;overflow:hidden;color:var(--ui-text);font-size:10px;text-overflow:ellipsis;white-space:nowrap;}
html body.erp-ui .dashboard-investimento-item>strong{flex:0 0 auto;color:var(--ui-text);font-size:10px;font-variant-numeric:tabular-nums;}
html body.erp-ui .dashboard-investimentos-historico{margin-top:10px;}
html body.erp-ui .dashboard-investimentos-historico h4{margin:0 0 5px;color:var(--ui-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;}
html body.erp-ui .dashboard-investimento-movimento{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;align-items:center;gap:6px;padding:5px 0;border-bottom:1px solid var(--ui-line);font-size:9px;}
html body.erp-ui .dashboard-investimento-movimento>span:first-child{font-size:8px;font-weight:700;}
html body.erp-ui .dashboard-investimento-movimento .movimento-aporte{color:#168455;}
html body.erp-ui .dashboard-investimento-movimento .movimento-retirada{color:#c24141;}
html body.erp-ui .dashboard-investimento-movimento .movimento-saldo-inicial{color:var(--ui-muted);}
html body.erp-ui .dashboard-investimento-movimento-nome{overflow:hidden;color:var(--ui-text);text-overflow:ellipsis;white-space:nowrap;}
html body.erp-ui .dashboard-investimento-movimento time{color:var(--ui-muted);white-space:nowrap;}
html body.erp-ui .dashboard-investimento-movimento strong{color:var(--ui-text);font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap;}
html body.erp-ui .dashboard-investimentos-nota{margin:8px 0 0;color:var(--ui-muted);font-size:9px;line-height:1.4;}
@container (max-width:620px){html body.erp-ui .dashboard-investimentos-painel>.dashboard-pendencias-grade{grid-template-columns:minmax(0,1fr);gap:14px;}html body.erp-ui .dashboard-pendencias-coluna{padding:0 0 14px;border-right:0;border-bottom:1px solid var(--ui-line);}html body.erp-ui .dashboard-investimentos-coluna{padding:0;}}

@media(max-width:1350px){
 html body.erp-ui .erp-masthead-linha{gap:12px;padding:0 22px;}
 html body.erp-ui .erp-marca{flex-basis:155px;}
 html body.erp-ui .erp-marca small{font-size:9px;}
 html body.erp-ui .erp-menu-principal .erp-area{padding:0 9px;font-size:11px;}
 html body.erp-ui .erp-usuario>span:last-child{display:none;}
 html body.erp-ui .dashboard-content{gap:14px!important;}
 html body.erp-ui .dashboard-content>.rafisa-inicio-ferramentas{gap:14px;}
}
@media(max-width:1100px){
 html body.erp-ui .erp-menu-principal .erp-area>i{display:none;}
 html body.erp-ui .erp-marca{flex-basis:145px;}
 html body.erp-ui .dashboard-content{grid-template-columns:repeat(2,minmax(0,1fr));}
 html body.erp-ui .dashboard-content>.rafisa-inicio-ferramentas{grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
 html body.erp-ui .dashboard-content>.rafisa-inicio-ferramentas>#calculadoraPreco{grid-column:auto!important;}
}
@media(max-width:850px){
 html body.erp-ui .cabecalho-modulo-cadastro,html body.erp-ui .cabecalho-vendedor{grid-template-columns:minmax(0,1fr) auto;}
 html body.erp-ui .cadastro-cabecalho-vendedor>a[href="?p=vendedores"]{position:static;grid-column:2;grid-row:1;transform:none;}
 html body.erp-ui .cabecalho-modulo-cadastro>.titulo-modulo-cadastro,html body.erp-ui .cabecalho-vendedor .titulo-vendedor{grid-column:1/-1;grid-row:1;justify-self:center;}
 html body.erp-ui .cabecalho-modulo-cadastro>div:first-child{grid-column:1;grid-row:2;}
 html body.erp-ui .cabecalho-modulo-cadastro>a,html body.erp-ui .cabecalho-modulo-cadastro>span:last-child{grid-column:2;grid-row:2;}
 html body.erp-ui .cabecalho-vendedor .acoes-vendedor{grid-column:1/-1;grid-row:2;justify-self:center;}
 html body.erp-ui .cabecalho-cadastro-cliente{grid-template-columns:minmax(0,1fr) auto;}
 html body.erp-ui .cabecalho-cadastro-cliente>.cliente-cabecalho-titulo-principal{grid-column:1/-1;grid-row:1;}
 html body.erp-ui .cabecalho-cadastro-cliente>div{grid-column:1;grid-row:2;}
 html body.erp-ui .cabecalho-cadastro-cliente>#btnNovo{grid-column:2;grid-row:2;}
 html body.erp-ui .erp-masthead-linha{flex-wrap:wrap;min-height:60px;padding:9px 16px;gap:12px;}
 html body.erp-ui .erp-marca{flex:0 0 auto;margin-right:auto;}
 html body.erp-ui .erp-menu-mobile{display:flex;align-items:center;gap:7px;min-height:33px;padding:5px 10px;background:#ffffff10;color:#fff;border:1px solid #ffffff30;border-radius:4px;}
 html body.erp-ui .erp-menu-principal{display:none;order:4;flex:1 0 100%;padding:5px 0;gap:4px;flex-wrap:wrap;}
 html body.erp-ui .erp-masthead.menu-aberto .erp-menu-principal{display:flex;}
 html body.erp-ui .erp-menu-principal .erp-area{min-height:34px;padding:6px 12px;border-bottom-width:2px;}
 html body.erp-ui .erp-menu-principal .erp-area>i{display:inline-block;}
 html body.erp-ui .erp-utilitarios{margin-left:0;gap:8px;}
 html body.erp-ui .erp-modulos-lista{padding:7px 16px;flex-wrap:nowrap;overflow-x:auto;}
 html body.erp-ui .erp-modulos-titulo{display:none;}
 html body.erp-ui .erp-page-heading{padding:20px 18px 16px;}
 html body.erp-ui .erp-heading-contexto{font-size:10px;}
 html body.erp-ui .erp-heading-contexto>span:last-child{display:none;}
 html body.erp-ui #main>.p-7,html body.erp-ui #main>.dashboard-bg-area{padding:0 18px 24px!important;}
 html body.erp-ui .cabecalho-documento-centralizado{grid-template-columns:1fr auto;gap:10px;}
 html body.erp-ui .cabecalho-documento-centralizado .pedido-cabecalho-titulo{grid-column:1/-1;grid-row:1;}
 html body.erp-ui .cabecalho-documento-centralizado .pedido-cabecalho-pesquisa{grid-column:1;grid-row:2;justify-self:start;}
 html body.erp-ui .cabecalho-documento-centralizado .pedido-cabecalho-novo{grid-column:2;grid-row:2;}
 html body.erp-ui .cabecalho-documento-centralizado.documento-vendas-cabecalho{grid-template-columns:minmax(0,1fr) auto;}
 html body.erp-ui .cabecalho-documento-centralizado.documento-vendas-cabecalho .pedido-cabecalho-titulo{grid-column:1/-1;grid-row:1;}
 html body.erp-ui .cabecalho-documento-centralizado.documento-vendas-cabecalho .pedido-cabecalho-pesquisa{grid-column:1;grid-row:2;}
}
@media(max-width:560px){
 html body.erp-ui .erp-marca-logo{width:52px;height:33px;}
 html body.erp-ui .erp-marca strong{font-size:13px;}
 html body.erp-ui .erp-marca small{font-size:8px;}
 html body.erp-ui .erp-usuario{display:none;}
 html body.erp-ui .erp-menu-mobile span{display:none;}
 html body.erp-ui .erp-page-heading h1{font-size:21px;}
 html body.erp-ui .dashboard-content{grid-template-columns:1fr;}
 html body.erp-ui .dashboard-content>.rafisa-inicio-ferramentas{grid-template-columns:1fr;}
 html body.erp-ui .dashboard-content>.rafisa-inicio-ferramentas>#calculadoraPreco{grid-column:auto!important;}
 html body.erp-ui .cadastro-grade,html body.erp-ui .cadastro-principal>.grid,html body.erp-ui .cadastro-detalhes>.grid{padding:13px;gap:13px;}
 html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo]{flex:1 1 100%;}
 html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="uf"],html body.erp-ui .rafisa-grade-conteudo>[data-medida-campo="codigo"]{flex:0 0 84px;}
 html body.erp-ui #prod_painel_comercial .rafisa-grade-conteudo{grid-template-columns:1fr;}
}
@media print{
 html body.erp-ui .erp-masthead,html body.erp-ui .erp-page-heading{display:none!important;}
 html:root body.erp-ui #main{margin:0!important;width:100%!important;}
}
@media(prefers-reduced-motion:reduce){
 html body.erp-ui *,html body.erp-ui *::before,html body.erp-ui *::after{transition:none!important;scroll-behavior:auto!important;}
}

html body.erp-ui .contas-pagar-grade{padding:14px!important;gap:8px 12px!important;}
html body.erp-ui .contas-pagar-grade>label>.compact-input{margin-top:4px!important;}
html body.erp-ui .contas-receber-grade{padding:14px!important;gap:8px 12px!important;}
html body.erp-ui .contas-receber-grade>label>.compact-input{margin-top:4px!important;}
@media(min-width:768px){
 html body.erp-ui .contas-pagar-grade>label:has(input[name="emissao"]){grid-column:span 2/span 2!important;}
 html body.erp-ui .contas-pagar-grade>label:has(#tipoFavorecidoPagar){grid-column:span 2/span 2!important;}
 html body.erp-ui .contas-pagar-grade>label:has(#pagarFornecedor){grid-column:span 6/span 6!important;}
 html body.erp-ui .contas-pagar-grade>label:has(input[name="documento"]){grid-column:span 3/span 3!important;}
 html body.erp-ui .contas-pagar-grade>label:has(#pagarCategoria),html body.erp-ui .contas-pagar-grade>label:has(#pagarSubcategoria){grid-column:span 4/span 4!important;}
 html body.erp-ui .contas-receber-grade>label:has(input[name="emissao"]){grid-column:span 2/span 2!important;}
 html body.erp-ui .contas-receber-grade>label:has(#receberCliente){grid-column:span 6/span 6!important;}
 html body.erp-ui .contas-receber-grade>label:has(input[name="documento"]){grid-column:span 3/span 3!important;}
 html body.erp-ui .contas-receber-grade>label:has(#receberCategoria),html body.erp-ui .contas-receber-grade>label:has(#receberSubcategoria){grid-column:span 4/span 4!important;}
}

/* Formulário de usuários e tabela compartilham a mesma largura útil. */
html body.erp-ui .usuarios-pagina{width:100%;max-width:1760px;min-width:0;margin:0 auto;}
html body.erp-ui .usuarios-criar-card,html body.erp-ui .usuarios-tabela-card{width:100%;max-width:none!important;min-width:0;margin-left:0!important;margin-right:0!important;}
html body.erp-ui .usuarios-criar-card{padding:22px!important;}
html body.erp-ui .usuarios-criar-cabecalho{margin-bottom:16px!important;}
html body.erp-ui .usuarios-criar-grid{display:grid!important;grid-template-columns:minmax(220px,1.3fr) minmax(155px,1fr) minmax(155px,1fr) minmax(135px,.8fr) 88px;align-items:end;gap:12px;width:100%;max-width:100%;min-width:0;margin:0;}
html body.erp-ui .usuarios-criar-grid>.usuarios-campo{grid-column:auto!important;min-width:0;max-width:100%;}
html body.erp-ui .usuarios-criar-grid label{display:block;min-width:0;margin:0;font-size:10px;}
html body.erp-ui .usuarios-criar-grid input,html body.erp-ui .usuarios-criar-grid select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:42px;margin-top:7px;padding:0 11px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-input);color:var(--ui-text);font-size:12px;}
html body.erp-ui .usuarios-criar-grid .usuarios-campo-criar button{width:100%;height:42px;border-radius:5px!important;white-space:nowrap;}
html body.erp-ui .usuarios-tabela-scroll{width:100%;min-width:0;overflow-x:auto;}
html body.erp-ui .usuarios-tabela{width:100%;min-width:720px;table-layout:fixed;}
html body.erp-ui .usuarios-tabela th,html body.erp-ui .usuarios-tabela td{overflow-wrap:anywhere;}
html body.erp-ui .usuarios-tabela th:nth-child(1){width:6%;}
html body.erp-ui .usuarios-tabela th:nth-child(2){width:38%;}
html body.erp-ui .usuarios-tabela th:nth-child(3){width:18%;}
html body.erp-ui .usuarios-tabela th:nth-child(4){width:15%;}
html body.erp-ui .usuarios-tabela th:nth-child(5){width:23%;}
@media(max-width:1050px){html body.erp-ui .usuarios-criar-grid{grid-template-columns:repeat(2,minmax(0,1fr));}html body.erp-ui .usuarios-campo-nome{grid-column:1/-1!important;}html body.erp-ui .usuarios-campo-criar{grid-column:2!important;justify-self:end;width:min(100%,150px);}}
@media(max-width:560px){html body.erp-ui .usuarios-criar-card{padding:16px!important;}html body.erp-ui .usuarios-criar-grid{grid-template-columns:minmax(0,1fr);gap:12px;}html body.erp-ui .usuarios-campo-nome,html body.erp-ui .usuarios-campo-criar{grid-column:auto!important;justify-self:stretch;width:auto;}html body.erp-ui .usuarios-tabela{min-width:680px;}}

/* NF-e avulsa: compacta a sequência após acabamento e acomoda o seletor do desconto. */
@media(min-width:1450px){
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido)>tbody>tr{
    grid-template-columns:60px 60px minmax(280px,2.4fr) 115px 92px 100px 80px 125px 160px 150px 88px;
    column-gap:6px;
  }
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-xped input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-quantidade input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-preco>div{max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-preco input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto>div{max-width:160px;gap:6px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto select{flex:0 0 70px;width:70px!important;min-width:70px!important;padding-left:7px;padding-right:20px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-agrupados:not(.nfe-itens-pedido) td.nfe-item-desconto input{width:84px!important;max-width:84px;}
}

/* NF-e por pedido: mantém os campos do pedido em uma faixa, como na NF avulsa. */
@media(min-width:1450px){
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido>tbody>tr{
    grid-template-columns:60px 60px minmax(280px,2.4fr) 130px 120px 150px 175px 160px;
    grid-template-areas:"nitem codigo produto acabamento quantidade preco desconto total";
    column-gap:8px;
  }
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-quantidade input,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-preco input,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-total input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-desconto>div{width:100%;max-width:175px;gap:6px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-desconto select{flex:0 0 70px;width:70px!important;min-width:70px!important;padding-left:7px;padding-right:20px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-desconto input{width:95px!important;max-width:95px;}
}

/* NF-e por pedido: mesmos campos e ordem visual da NF avulsa; pedido apenas preenche os valores. */
html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido>tbody>tr{
  grid-template-areas:"nitem codigo produto produto produto produto produto acabamento acabamento acabamento acoes acoes" "xped xped tabela tabela quantidade quantidade preco preco desconto desconto total total";
}
@media(max-width:1100px){
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido>tbody>tr{
    grid-template-areas:"nitem nitem codigo codigo produto produto produto produto produto produto produto produto" "acabamento acabamento acabamento acabamento xped xped xped tabela tabela tabela acoes acoes" "quantidade quantidade quantidade preco preco preco desconto desconto desconto total total total";
  }
}
@media(max-width:650px){
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido>tbody>tr{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"nitem codigo" "produto produto" "acabamento acabamento" "xped tabela" "quantidade preco" "desconto desconto" "total total" "acoes acoes";
  }
}
@media(min-width:1450px){
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido>tbody>tr{
    grid-template-columns:60px 60px minmax(280px,2.4fr) 115px 92px 100px 80px 125px 160px 150px 88px;
    grid-template-areas:"nitem codigo produto acabamento xped tabela quantidade preco desconto total acoes";
    column-gap:6px;
  }
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-nitemped input{width:60px!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-xped input,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-tabela select,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-quantidade input,
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-total input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-preco>div{width:100%;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-preco input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-desconto>div{width:100%;max-width:160px;gap:6px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-desconto select{flex:0 0 70px;width:70px!important;min-width:70px!important;padding-left:7px;padding-right:20px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-desconto input{width:84px!important;max-width:84px;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-total input{width:100%!important;max-width:100%;}
  html body.erp-ui .nfe-saida-pagina .nfe-itens-pedido td.nfe-item-acabamento>div{max-width:100%;}
}
/* Ações que cancelam, inativam, removem ou estornam usam sempre o mesmo estilo de perigo. */
html body.erp-ui button[data-rafisa-danger],
html body.erp-ui a[data-rafisa-danger],
html body.erp-ui input[type="submit"][data-rafisa-danger]{
  color:#fff!important;
  background-color:#dc2626!important;
  border-color:#dc2626!important;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;
}
html body.erp-ui button[data-rafisa-danger]:not(:disabled):hover,
html body.erp-ui a[data-rafisa-danger]:hover,
html body.erp-ui input[type="submit"][data-rafisa-danger]:not(:disabled):hover{
  color:#fff!important;
  background-color:#b91c1c!important;
  border-color:#b91c1c!important;
}
html body.erp-ui button[data-rafisa-danger]:focus-visible,
html body.erp-ui a[data-rafisa-danger]:focus-visible,
html body.erp-ui input[type="submit"][data-rafisa-danger]:focus-visible{
  outline:2px solid #fca5a5;
  outline-offset:2px;
}
html body.erp-ui button[data-rafisa-danger]:disabled,
html body.erp-ui input[type="submit"][data-rafisa-danger]:disabled{
  opacity:.55;
  cursor:not-allowed;
}
