/* NFeWeb: o que e so deste sistema. O layout comum (cabecalho, menu, login, janelas) fica no netserv_layout.css
   e o de cadastros/consultas no cadastro2.css, iguais aos do SacwinWeb. */

/* check do "repetir a senha" no 1o acesso (mostraCheck, funcoes.js) */
.check-svg {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	pointer-events: none;
}

/* ---------------------------------------------------------------- tela inicial */
.nw-inicio {
	--nw-nfe: #2a78d6;
	--nw-nfce: #1baf7a;
	--nw-mdfe: #eb6834;
	max-width: 1000px;
	margin: 0 auto;
	padding: 8px 4px 24px;
}

.nw-inicio__cab {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 18px;
}

.nw-inicio__titulo {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: var(--a2-header, #2b3643);
}

.nw-inicio__data {
	display: inline-block;
	color: #6c7a89;
}

.nw-inicio__data::first-letter { text-transform: uppercase; }

.nw-inicio__vazio {
	padding: 16px;
	border: 1px dashed #c2cad8;
	border-radius: 6px;
	color: #6c7a89;
}

/* atalhos de emissao: entram em sequencia, sobem no hover e o icone balanca */
.nw-atalhos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.nw-atalho {
	--nw-cor: var(--nw-nfe);
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 18px;
	overflow: hidden;
	border: 1px solid #e1e5ec;
	border-radius: 10px;
	background: #fff;
	color: #2b3643;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	opacity: 0;
	animation: nw-entra .45s cubic-bezier(.2, .8, .3, 1) forwards;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}

.nw-atalho--nfce { --nw-cor: var(--nw-nfce); }
.nw-atalho--mdfe { --nw-cor: var(--nw-mdfe); }

/* brilho que atravessa o cartao no hover */
.nw-atalho::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}

.nw-atalho::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--nw-cor);
	transform: scaleY(.35);
	transition: transform .25s;
}

.nw-atalho:hover,
.nw-atalho:focus-visible {
	transform: translateY(-4px);
	border-color: var(--nw-cor);
	box-shadow: 0 10px 24px rgba(30, 50, 80, .12);
	color: #2b3643;
	text-decoration: none;
	outline: none;
}

.nw-atalho:hover::before,
.nw-atalho:focus-visible::before { transform: scaleY(1); }
.nw-atalho:hover::after,
.nw-atalho:focus-visible::after { animation: nw-brilho .7s ease-out; }
.nw-atalho:active { transform: translateY(-1px) scale(.99); }

.nw-atalho__icone {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--nw-cor);
	color: #fff;
	font-size: 22px;
	transition: transform .3s;
}

.nw-atalho:hover .nw-atalho__icone,
.nw-atalho:focus-visible .nw-atalho__icone { animation: nw-balanca .6s ease-in-out; }

.nw-atalho__texto {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.nw-atalho__texto strong { font-size: 17px; font-weight: 600; }
.nw-atalho__texto small { color: #6c7a89; font-size: 13px; }

.nw-atalho__seta {
	color: #b0bac6;
	transition: transform .2s, color .2s;
}

.nw-atalho:hover .nw-atalho__seta,
.nw-atalho:focus-visible .nw-atalho__seta {
	color: #2b3643;
	transform: translateX(4px);
}

/* grafico das notas emitidas hoje: colunas crescem a partir da base */
.nw-grafico {
	padding: 18px 20px 12px;
	border: 1px solid #e1e5ec;
	border-radius: 10px;
	background: #fff;
	opacity: 0;
	animation: nw-entra .45s .25s cubic-bezier(.2, .8, .3, 1) forwards;
}

.nw-grafico__cab {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.nw-grafico__cab h3 {
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 600;
	color: #2b3643;
}

.nw-grafico__total { color: #6c7a89; }
.nw-grafico__total b { color: #2b3643; font-size: 15px; }

.nw-grafico__atualiza {
	padding: 4px 10px;
	border: 1px solid #e1e5ec;
	border-radius: 6px;
	background: #fff;
	color: #6c7a89;
	font-size: 12px;
}

.nw-grafico__atualiza:hover { color: #2b3643; border-color: #c2cad8; }
.nw-grafico__atualiza:active .fa { animation: nw-gira .5s linear; }

.nw-grafico__area {
	display: flex;
	justify-content: space-around;
	gap: 16px;
	height: 240px;
	padding-top: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #c2cad8;
}

.nw-grafico__coluna {
	--nw-cor: var(--nw-nfe);
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	max-width: 140px;
	outline: none;
}

.nw-grafico__coluna--nfce { --nw-cor: var(--nw-nfce); }
.nw-grafico__coluna--mdfe { --nw-cor: var(--nw-mdfe); }

.nw-grafico__valor {
	flex: none;
	margin-bottom: 4px;
	font-size: 18px;
	font-weight: 600;
	color: #2b3643;
	font-variant-numeric: tabular-nums;
}

.nw-grafico__trilho {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	min-height: 0;
	width: 100%;
	max-width: 64px;
}

.nw-grafico__barra {
	flex: none;
	width: 100%;
	height: 0;
	border-radius: 4px 4px 0 0;
	background: var(--nw-cor);
	transition: height .8s cubic-bezier(.2, .8, .3, 1), filter .15s;
}

.nw-grafico__nome {
	position: absolute;
	bottom: -26px;
	color: #4a5868;
	font-weight: 600;
	white-space: nowrap;
}

.nw-grafico__coluna:hover .nw-grafico__barra,
.nw-grafico__coluna:focus .nw-grafico__barra { filter: brightness(1.08); }

.nw-grafico__dica {
	position: absolute;
	top: 28px;
	z-index: 2;
	padding: 6px 10px;
	border-radius: 6px;
	background: #2b3643;
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .15s, transform .15s;
	pointer-events: none;
}

.nw-grafico__dica:empty { display: none; }

.nw-grafico__coluna:hover .nw-grafico__dica,
.nw-grafico__coluna:focus .nw-grafico__dica {
	opacity: 1;
	transform: none;
}

.nw-grafico__vazio {
	margin: 0 0 4px;
	color: #6c7a89;
	text-align: center;
}

@keyframes nw-entra {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@keyframes nw-brilho {
	from { left: -60%; }
	to { left: 130%; }
}

@keyframes nw-balanca {
	0%, 100% { transform: rotate(0) scale(1); }
	30% { transform: rotate(-12deg) scale(1.1); }
	60% { transform: rotate(8deg) scale(1.1); }
}

@keyframes nw-gira {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.nw-atalho,
	.nw-grafico { animation: none; opacity: 1; }
	.nw-atalho,
	.nw-atalho * ,
	.nw-atalho::after,
	.nw-grafico__barra { animation: none !important; transition: none !important; }
}

/* cadastros (cadastronfe.js): campo escondido pela regra da tela (ex.: CPF x documento estrangeiro). O layout das secoes
   do cadastro2.css poe display:flex nos blocos, que passaria por cima do atributo hidden */
.c2 [hidden]{ display: none !important; }

/* ---------------------------------------------------------------- cadastros: grade filha (details) e janelas */
.nw-detail {
	margin: 18px 0 8px;
	padding: 14px 16px;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	background: #fff;
}

.nw-detail__cab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.nw-detail__titulo {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1f63bd;
}

.nw-detail__grade {
	max-height: 260px;
	overflow: auto;
}

.nw-detail__grade table {
	margin: 0;
}

.nw-detail__grade th {
	position: sticky;
	top: 0;
	background: #f5f7f9;
	font-size: 12px;
	text-transform: uppercase;
}

.nw-detail__acoes {
	width: 70px;
	white-space: nowrap;
}

.nw-detail__acoes img {
	width: 18px;
	margin-right: 6px;
}

.nw-detail__vazio {
	color: #6b7280;
	text-align: center;
}

.nw-modal__caixa {
	width: 760px;
}

.nw-modal__caixa .form-body {
	padding: 10px 22px 0;
}

/* muitos botoes (ex.: Notas Recebidas: manifestacoes, XML e DANFE) quebram a linha em vez de sair da janela */
.nw-modal .sw-modal__rodape {
	flex-wrap: wrap;
}

.nw-simulador {
	min-height: 40px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f5f7f9;
}

.nw-simulador p {
	margin: 0 0 4px;
}

.nw-simulador__erro {
	color: #c0392b;
}

/* ---------------------------------------------------------------- emitentes: certificado, logo e pendencias */
.nw-cert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e3e8ee;
	border-left: 4px solid #9aa5b1;
	border-radius: 8px;
	background: #fafbfc;
}

.nw-cert > .fa { font-size: 22px; color: #9aa5b1; }
.nw-cert--ok { border-left-color: #1caf9a; }
.nw-cert--ok > .fa { color: #1caf9a; }
.nw-cert--vencendo { border-left-color: #e8a317; }
.nw-cert--vencendo > .fa { color: #e8a317; }
.nw-cert--vencido { border-left-color: #c0392b; }
.nw-cert--vencido > .fa { color: #c0392b; }
.nw-cert__texto { flex: 1; min-width: 220px; }
.nw-cert__acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-cert__dica { width: 100%; margin: 4px 0 0; color: #6b7280; font-size: 12px; }

.nw-logo { display: flex; align-items: center; gap: 12px; }
.nw-logo__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 70px;
	border: 1px dashed #cdd4dd;
	border-radius: 8px;
	color: #9aa5b1;
	font-size: 12px;
	overflow: hidden;
}
.nw-logo__img img { max-width: 100%; max-height: 100%; }
.nw-logo__botao { margin: 0; }

.nw-pendencias {
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid #f3d27a;
	border-radius: 8px;
	background: #fff8e6;
	color: #7a5b00;
}
.nw-pendencias ul { margin: 4px 0 0 18px; padding: 0; }

/* ---------------------------------------------------------------- tabelas fiscais: situacao da sincronizacao */
.nw-sincs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0 0 10px;
	font-size: 12px;
}

.nw-sincs__titulo { color: #6b7280; }

.nw-sinc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 4px 3px 10px;
	border: 1px solid #e3e8ee;
	border-radius: 14px;
	background: #fff;
	white-space: nowrap;
}

.nw-sinc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa5b1; }
.nw-sinc--ok::before { background: #1caf9a; }
.nw-sinc--erro::before { background: #c0392b; }
.nw-sinc--parcial::before { background: #e0a800; }

.nw-sinc__botao {
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #4b5563;
	cursor: pointer;
}

.nw-sinc__botao:hover { background: #e5e7eb; }

/* ---------------------------------------------------------------- tela inicial: avisos (certificado, ambiente) */
.nw-avisos { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.nw-aviso { padding: 9px 12px; border-radius: 8px; border: 1px solid; font-size: 13px; }
.nw-aviso--erro { border-color: #f1b0a8; background: #fdecea; color: #8a1f12; }
.nw-aviso--alerta { border-color: #f3d27a; background: #fff8e6; color: #7a5b00; }
.nw-aviso--info { border-color: #c9dcf2; background: #eef5fd; color: #1f4f8a; }

/* ---------------------------------------------------------------- NF-e: totais e situacao na SEFAZ (lateral) */
.nw-totais { font-size: 13px; }
.nw-totais__linha { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #e3e8ee; }
.nw-totais__linha--total { margin: 4px 0; padding: 6px 0; border-bottom: 2px solid #1caf9a; font-size: 15px; }
.nw-totais__parcelas { margin-top: 8px; font-size: 12px; color: #4b5563; }
.nw-totais__pendencia { margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: #fff8e6; color: #7a5b00; font-size: 12px; }
.nw-totais__textos { margin-top: 8px; color: #6b7280; font-size: 11px; line-height: 1.35; }
.nw-sefaz { font-size: 12px; line-height: 1.5; }
.nw-sefaz__rotulo { margin-top: 6px; color: #6b7280; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.nw-sefaz__chave { display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; border-radius: 6px; background: #f3f6f9; font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.45; color: #1f2937; word-break: break-word; }
.nw-sefaz__copiar { flex: none; margin-left: auto; padding: 0 4px; border: 0; background: none; color: #3598dc; cursor: pointer; }
.nw-sefaz__copiar:hover { color: #217ebd; }
.nw-chave { display: inline-block; margin-top: 2px; font-family: Consolas, "Courier New", monospace; font-size: 14px; letter-spacing: .02em; }
.nw-sefaz--autorizada b { color: #1caf9a; }
.nw-sefaz--rejeitada b, .nw-sefaz--denegada b { color: #c0392b; }
.nw-sefaz--enviada b { color: #e8a317; }
.nw-totais, .nw-sefaz { width: 100%; text-align: left; }
.nw-cert__svc { width: 100%; margin: 4px 0 0; color: #b45309; font-weight: 600; }

.nw-eventos { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.nw-evento { padding: 6px 10px; border-left: 3px solid #9aa5b1; background: #fafbfc; }
.nw-evento--registrado { border-left-color: #1caf9a; }
.nw-evento--rejeitado { border-left-color: #c0392b; }
.nw-statussefaz { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.nw-statussefaz--ok { background: #e6f7f3; color: #12806f; }
.nw-statussefaz--erro { background: #fdecea; color: #8a1f12; }

/* ---------------------------------------------------------------- inutilizacao: numeros pendentes da serie */
.nw-inut { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #e3e8ee; border-radius: 10px; background: #fff; }
.nw-inut__cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nw-inut__cab select { max-width: 520px; }
.nw-inut__lista { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.nw-inut__faixa { display: flex; align-items: center; gap: 10px; }
.nw-inut__ok { color: #12806f; }
/* Utilitarios > API: permissoes do token */
.nw-escopos { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 0; }
.nw-escopo { display: inline-flex; align-items: center; gap: 6px; font-weight: normal; margin: 0; }
/* aviso dentro do bloco SEFAZ (MDF-e em aberto, nota do sistema antigo) */
.nw-sefaz__aviso { margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: #fff7e0; color: #7a5b00; font-size: 12px; }
/* acoes no topo das telas de consulta (Movimento > Estoque) */
.nw-painel-acoes { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
/* NF-e: itens numa linha so (produto, quantidade, valor, desconto, CFOP, Incluir) */
.nw-rapido { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(80px, 120px)) minmax(70px, 84px) auto; gap: 8px 10px; align-items: end; margin: 0 0 12px; padding: 12px; border: 1px solid #dfe4eb; border-radius: 8px; background: #f7fafc; }
.nw-rapido__campo label { margin-bottom: 2px; }
.nw-rapido__info { color: #374151; font-weight: 600; }
.nw-rapido__campo .form-group, .nw-rapido__campo label { margin-bottom: 4px; }
.nw-rapido__botao .c2-botao { height: 34px; }
.nw-rapido__dica { grid-column: 1 / -1; margin: 0; color: #6b7280; font-size: 11px; }
.nw-rapido__dica kbd { padding: 1px 4px; font-size: 10px; }
.nw-rapido input { min-width: 0; width: 100%; }
.nw-rapido__produto { position: relative; }
/* desconto e CFOP: o padrao (0,00 / CFOP da regra) em preto, como valor; vazio vale ele */
#nfeRapidoDesc::placeholder, #nfeRapidoCfop::placeholder { color: #1f2937; opacity: 1; }
/* desconto em R$ ou %: botaozinho dentro do campo, a esquerda */
.nw-rapido__desc { position: relative; }
.nw-rapido__desc input { padding-left: 34px; }
.nw-rapido__modo { position: absolute; top: 50%; left: 4px; transform: translateY(-50%); min-width: 26px; height: 22px; padding: 0 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #97a3b3; font-size: 11px; font-weight: 600; line-height: 20px; cursor: pointer; }
.nw-rapido__modo:hover { border-color: #dfe4eb; background: #f3f6f9; color: #3598dc; }
.nw-rapido__modo.is-pct { background: #e6f1fb; color: #217ebd; }
/* situacao do produto escolhido (conferencia do servidor) e da linha de pagamento */
.nw-rapido__status { grid-column: 1 / -1; padding: 7px 10px; border-radius: 6px; background: #eef2f7; color: #374151; font-size: 12.5px; line-height: 1.45; }
.nw-rapido__status--ok { background: #e6f7f3; color: #0f5f53; }
.nw-rapido__status--ok i { color: #1caf9a; }
.nw-rapido__status--falta { background: #fdecea; color: #8a1f12; }
.nw-rapido__status--falta a { color: #8a1f12; font-weight: 600; text-decoration: underline; }
.nw-rapido__status--conferindo { color: #6b7280; }
.nw-rapido__status small { color: inherit; opacity: .8; }
/* linha de pagamento: forma, valor, autorizacao, botao */
.nw-rapido--pag { grid-template-columns: minmax(180px, 1.4fr) minmax(100px, 150px) minmax(120px, 1fr) auto; margin: 12px 0 0; }
.c2[data-c2-modo="edicao"] #detailPagamentos .nw-detail__cab .c2-botao { display: none; }
@media (max-width: 1280px) { .nw-rapido { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; } .nw-rapido__produto { grid-column: 1 / -1; } }
@media (max-width: 700px) { .nw-rapido, .nw-rapido--pag { grid-template-columns: 1fr 1fr; } }
/* NF-e: sugestoes do produto (lista sob o campo): codigo | descricao | aviso | preco */
.nw-sugestoes { position: absolute; z-index: 50; top: 100%; left: 0; right: 0; max-height: 340px; margin-top: 2px; overflow-y: auto; border: 1px solid #cfd8e3; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); }
.nw-sugestoes__item { display: grid; grid-template-columns: minmax(70px, max-content) minmax(0, 1fr) auto minmax(80px, max-content); gap: 12px; align-items: center; padding: 7px 12px; border-bottom: 1px solid #f0f3f7; cursor: pointer; font-size: 13px; line-height: 1.3; }
.nw-sugestoes__item:last-child { border-bottom: 0; }
.nw-sugestoes__item:hover { background: #f5f8fb; }
.nw-sugestoes__item.is-ativo { background: #e6f1fb; box-shadow: inset 3px 0 0 #3598dc; }
.nw-sugestoes__cod { color: #5e6d7e; font-family: Consolas, "Courier New", monospace; font-size: 12px; white-space: nowrap; }
.nw-sugestoes__desc { min-width: 0; color: #1f2937; font-weight: 600; }
.nw-sugestoes__desc small { display: block; margin-top: 1px; color: #6b7280; font-size: 11.5px; font-weight: normal; }
.nw-sugestoes__sem { color: #b45309; }
.nw-sugestoes__preco { color: #1f2937; text-align: right; white-space: nowrap; }
.nw-sugestoes__aviso { padding: 1px 7px; border-radius: 10px; background: #fdecea; color: #8a1f12; font-size: 11px; font-weight: 600; white-space: nowrap; }
.nw-sugestoes__item--falta .nw-sugestoes__desc { color: #6b7280; }
.nw-sugestoes mark { padding: 0; background: #fff3b0; color: inherit; border-radius: 2px; }
.nw-sugestoes__vazio, .nw-sugestoes__mais { padding: 10px 12px; color: #6b7280; font-size: 12px; }
.nw-sugestoes__mais { border-top: 1px solid #f0f3f7; background: #fafbfc; }
/* NF-e: item com falta (produto sem NCM, sem regra fiscal...) na grade */
.nw-detail__grade tr.nw-linha--falta > td { background: #fdf1f0 !important; }
.nw-detail__grade tr.nw-linha--falta > td:nth-child(2) { box-shadow: inset 3px 0 0 #e7505a; }
/* NF-e: grade dos itens ate o fim da tela (nfe.js mede o que sobra); no celular a lateral vem embaixo e ficam os 260px */
@media (min-width: 768px) { #detailItens .nw-detail__grade { max-height: var(--nfe-itens-grade, 260px); } }
/* NF-e: "Para emitir" na lateral */
.nw-checklist { display: flex; flex-direction: column; gap: 4px; width: 100%; font-size: 12px; }
.nw-checklist__resumo { margin-bottom: 4px; padding: 6px 8px; border-radius: 6px; font-weight: 600; }
.nw-checklist__resumo--ok { background: #e6f7f3; color: #12806f; }
.nw-checklist__resumo--falta { background: #fff8e6; color: #7a5b00; }
.nw-checklist__item { display: flex; gap: 6px; align-items: flex-start; padding: 3px 4px; border-radius: 4px; color: #374151; text-decoration: none; }
.nw-checklist__item:hover { background: #f1f5f9; color: #111827; text-decoration: none; }
.nw-checklist__item i { margin-top: 2px; }
.nw-checklist__item--ok i { color: #1caf9a; }
.nw-checklist__item--falta i { color: #d48806; }
/* NF-e: resumo da etapa Revisao */
.nw-revisao { width: 100%; font-size: 13px; }
.nw-revisao__linha { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #e3e8ee; }
.nw-revisao__linha b { text-align: right; }
.nw-revisao__total { display: flex; justify-content: space-between; margin: 6px 0 12px; padding: 8px 0; border-bottom: 2px solid #1caf9a; font-size: 16px; }
.nw-revisao__acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.nw-revisao__faltas { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f3d9a4; border-radius: 6px; background: #fff8e6; color: #5c4400; }
.nw-revisao__faltas ul { margin: 6px 0; padding-left: 18px; }
.nw-revisao__faltas li { margin: 2px 0; }
.nw-revisao__faltas a { color: #5c4400; text-decoration: underline; }
.nw-revisao__faltas small { color: #7a5b00; }
/* MDF-e: NF-e da viagem escolhidas de uma vez */
.nw-mdfenotas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px; border: 1px solid #dfe4eb; border-radius: 8px; background: #f7fafc; }
.nw-mdfenotas p { margin: 2px 0 0; color: #6b7280; font-size: 12px; }
.nw-mdfenotas__caixa { width: min(860px, calc(100vw - 32px)); }
.nw-mdfenotas__filtro { display: flex; gap: 12px; align-items: center; padding: 0 16px 10px; }
.nw-mdfenotas__filtro label { display: flex; gap: 4px; align-items: center; margin: 0; white-space: nowrap; font-weight: normal; }
.nw-mdfenotas__grade { max-height: 55vh; overflow: auto; padding: 0 16px; }
.nw-mdfenotas__conta { margin-right: auto; color: #4b5563; font-size: 12px; }
/* Emitentes: janela do certificado A1 */
.nw-certup__caixa { width: 520px; }
.nw-certup__corpo { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 14px 22px 0; }
.nw-certup__arquivo { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px; border: 2px dashed #cfd8e3; border-radius: 12px; background: #f8fafc; color: #4b5563; font-weight: normal; cursor: pointer; transition: border-color .15s, background .15s; }
.nw-certup__arquivo:hover, .nw-certup__arquivo.is-arrastando { border-color: #3598dc; background: #eef6fd; }
.nw-certup__arquivo.is-escolhido { border-style: solid; border-color: #1caf9a; background: #effaf7; }
.nw-certup__arquivo input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nw-certup__arquivo:focus-within { outline: 2px solid #3598dc; outline-offset: 2px; }
.nw-certup__icone { flex-shrink: 0; font-size: 30px; color: #3598dc; }
.nw-certup__arquivo.is-escolhido .nw-certup__icone::before { content: "\f00c"; color: #1caf9a; }
.nw-certup__texto { display: flex; flex-direction: column; min-width: 0; font-size: 14px; word-break: break-all; }
.nw-certup__texto b { color: #1f2937; }
.nw-certup__texto small { margin-top: 2px; color: #6b7280; font-size: 12px; word-break: normal; }
.nw-certup__campo label { display: block; margin-bottom: 6px; color: #1f2937; font-size: 13px; font-weight: 600; }
.nw-certup__senha { position: relative; }
.nw-certup__senha input { height: 42px; padding-right: 44px; font-size: 15px; }
.nw-certup__olho { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #6b7280; cursor: pointer; }
.nw-certup__olho:hover { background: #f1f5f9; color: #1f2937; }
.nw-certup__dica { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 8px; background: #f3f6f9; color: #4b5563; font-size: 12px; line-height: 1.45; }
.nw-certup__dica i { margin-top: 2px; color: #6b7280; }
.nw-certup__erro { padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b91c1c; font-size: 13px; }
.nw-certup .sw-modal__rodape { margin: 4px -22px 0; }
.nw-certup .sw-modal__rodape .c2-botao i { margin-right: 6px; }

/* tela aberta dentro de outra (iframe ?embutido=1, ex.: cadastrar o cliente na hora pela NF-e): so o formulario */
html.nw-embutido .page-header, html.nw-embutido .page-sidebar-wrapper, html.nw-embutido .page-footer,
html.nw-embutido .page-breadcrumb, html.nw-embutido .scroll-to-top { display: none !important; }
html.nw-embutido body { padding-top: 0 !important; background: #fff; }
html.nw-embutido .page-container { margin-top: 0 !important; }
html.nw-embutido .page-content-wrapper .page-content { margin-left: 0 !important; min-height: 0 !important; padding: 12px 16px !important; }

/* janela com outra tela dentro (iframe) */
.nw-janela { width: min(1100px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(16, 24, 40, .3); overflow: hidden; }
.nw-janela::backdrop { background: rgba(17, 24, 39, .55); }
.nw-janela__cab { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px 0 18px; border-bottom: 1px solid #eef1f4; font-size: 16px; font-weight: 600; }
.nw-janela__fecha { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f5f9; color: #6b7280; font-size: 18px; line-height: 1; cursor: pointer; }
.nw-janela__fecha:hover { background: #fdecea; color: #c0392b; }
.nw-janela iframe { display: block; width: 100%; height: calc(100% - 46px); border: 0; }

/* ---------------------------------------------------------------- tela inicial: painel (pendencias e mes) */
.nw-painel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin: 0 0 18px; }
.nw-painel__bloco { padding: 14px 16px; border: 1px solid #e1e5ec; border-radius: 10px; background: #fff; }
.nw-painel__bloco h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.nw-painel__ok { margin: 0; color: #13795b; font-size: 13px; }
.nw-pendencias { display: flex; flex-direction: column; gap: 6px; }
.nw-pendencia { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid; border-radius: 8px; font-size: 13px; color: inherit; text-decoration: none; }
.nw-pendencia:hover, .nw-pendencia:focus { text-decoration: none; filter: brightness(.97); }
.nw-pendencia b { min-width: 28px; font-size: 16px; text-align: right; }
.nw-pendencia span { flex: 1; }
.nw-pendencia--erro { border-color: #f1b0a8; background: #fdecea; color: #8a1f12; }
.nw-pendencia--alerta { border-color: #f3d27a; background: #fff8e6; color: #7a5b00; }
.nw-pendencia--info { border-color: #c9dcf2; background: #eef5fd; color: #1f4f8a; }
.nw-mes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.nw-mes__cartao { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: #f6f8fa; }
.nw-mes__cartao span { font-size: 12px; color: #4b5563; }
.nw-mes__cartao b { font-size: 22px; line-height: 1.2; }
.nw-mes__cartao small { font-size: 12px; color: #4b5563; }
@media (max-width: 900px) { .nw-painel { grid-template-columns: 1fr; } }

/* uso do plano (tela inicial e Configuracoes) */
.nw-plano-uso { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.nw-plano-uso__linha { display: grid; grid-template-columns: 200px auto 1fr; align-items: center; gap: 10px; }
.nw-plano-uso__barra { display: block; height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; margin-top: 4px; }
.nw-plano-uso__barra i { display: block; height: 100%; background: #1caf9a; }
.nw-plano-uso__barra i.is-alerta { background: #e5a50a; }
.nw-plano-uso__barra i.is-cheio { background: #c0392b; }

/* historico de envios dos webhooks */
.nw-evento--pendente { border-left-color: #e5a50a; }

/* senha: "Alterar minha senha", senha provisoria e "Esqueci a senha" */
.sw-senha { width: 420px; max-width: calc(100vw - 32px); }
.sw-senha .sw-msg__texto { text-align: left; }
.sw-senha__rotulo { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; }
.sw-senha__regra { margin: 0 0 4px; font-size: 12px; color: #4b5563; }
.sw-senha__erro { margin: 10px 0 0; color: #8a1f12; font-size: 13px; }
.sw-login-tela .sw-login__texto { margin: 0 0 12px; font-size: 13px; color: #374151; }
.sw-login-tela .sw-login__texto--regra { font-size: 12px; color: #4b5563; }

/* Usuarios: modelos de grupo */
.ug-modelos { margin: 0 0 12px; }
.ug-modelos select { max-width: 100%; }

/* NF-e: venda fora do estabelecimento (pergunta da remessa no Incluir e saldo na etapa Itens) */
.nw-remessa { width: 100%; font-size: 13px; }
.nw-remessa__cab { margin: 0 0 8px; }
.nw-remessa__saldo { margin: 0 0 8px; }
.nw-remessa__saldo th, .nw-remessa__saldo td { padding: 4px 8px !important; }
.nw-remessa__saldo td:not(:first-child), .nw-remessa__saldo th:not(:first-child) { text-align: right; }
.nw-remessa__zerado td { color: #6b7280; }
.nw-remessa__ligadas { margin: 0; color: #374151; }
.nw-remessa__dica { margin: 6px 0 10px; font-size: 12px; color: #4b5563; }
.nw-remessa__lista { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.nw-remessa__opcao { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 10px; border: 1px solid #d7dee6; border-radius: 6px;
                     background: #fff; color: #1f2937; text-align: left; cursor: pointer; }
.nw-remessa__opcao:hover, .nw-remessa__opcao:focus { border-color: var(--nw-nfe); background: #f3f8fe; }
.nw-remessa__opcao small { color: #4b5563; }
.nw-remessa__erro { margin: 10px 0 0; color: #8a1f12; font-size: 13px; }

/* NF-e: impostos do item (modal do item) */
.nw-imposto__titulo { margin: 12px 0 2px; padding-top: 8px; border-top: 1px solid #e3e8ee; font-size: 14px; font-weight: 600; color: #2b3643; }
.nw-imposto__dica { margin: 2px 0 0; font-size: 12px; color: #4b5563; }

/* ---------------------------------------------------------------- notas recebidas: ver a nota e dar entrada */
.rec-larga { width: min(1100px, calc(100vw - 32px)); }
.rec-corpo { max-height: calc(100vh - 220px); overflow: auto; padding: 2px 22px 14px; }
.rec-secao { margin: 16px 0 0; }
.rec-secao h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #1f63bd; }
.rec-dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; margin: 0; }
.rec-dados dt { color: #5e6d7e; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.rec-dados dd { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.rec-largo { grid-column: 1 / -1; }
.rec-tabela { max-height: 340px; overflow: auto; border: 1px solid #e3e8ee; border-radius: 8px; }
.rec-tabela table { width: 100%; margin: 0; border-collapse: collapse; font-size: 12.5px; }
.rec-tabela th { position: sticky; top: 0; padding: 6px 8px; background: #f5f7f9; color: #5e6d7e; font-size: 11px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.rec-tabela td { padding: 6px 8px; border-top: 1px solid #eef1f4; vertical-align: top; }
.rec-num { text-align: right !important; white-space: nowrap; }
.rec-sub { color: #6b7280; font-size: 12px; }
.rec-texto { margin: 0; font-size: 12.5px; white-space: pre-wrap; }
.rec-ok { color: #12806f; }
.rec-erro { color: #b3303a; }
.rec-resultado { margin: 0 0 12px; }
.rec-resultado > div { margin-top: 4px; }
.rec-check { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: normal; cursor: pointer; }
.rec-item { margin: 0 0 8px; padding: 10px 12px; border: 1px solid #e3e8ee; border-radius: 8px; }
.rec-item--marcado { border-color: #9cc4ee; background: #f7fbff; }
.rec-item__cab { display: flex; align-items: flex-start; gap: 10px; }
.rec-item__cab input { margin-top: 3px; }
.rec-item__cab label { flex: 1; margin: 0; font-weight: normal; cursor: pointer; }
.rec-item__campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 12px; margin: 10px 0 0 24px; }
.rec-item__campos[hidden], .rec-item__grupo[hidden] { display: none; }
.rec-item__grupo { display: contents; }
.rec-item__campos label { display: block; margin: 0 0 2px; color: #5e6d7e; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.rec-item__dois { grid-column: span 2; }
@media (max-width: 760px) { .rec-corpo { padding: 2px 14px 12px; } .rec-item__campos { margin-left: 0; } .rec-item__dois { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- listas de notas: periodo da emissao (nfePeriodoHtml, nfecampos.js) */
.nw-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.nw-periodo__rotulo { color: var(--c2-texto); font-size: 13px; font-weight: 600; }
.nw-periodo__opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.c2 .nw-periodo__opcao[aria-pressed="true"] { border-color: var(--c2-azul); background: var(--c2-azul); color: #fff; }
.c2 .nw-periodo__opcao[aria-pressed="true"]:hover { border-color: var(--c2-azul-2); background: var(--c2-azul-2); }
.nw-periodo__datas { display: flex; align-items: center; gap: 6px; }
.nw-periodo__datas[hidden] { display: none; }
.nw-periodo__datas label { margin: 0; color: var(--c2-texto-2); font-size: 13px; font-weight: 600; }
.c2 .nw-periodo__datas input.form-control { width: 150px; height: 28px; padding: 2px 8px; }
.nw-periodo__texto { color: var(--c2-texto-2); font-size: 12px; }
/* busca por numero ou chave: o periodo nao vale (atalho so contornado) */
.c2 .nw-periodo.is-ignorado .nw-periodo__opcao[aria-pressed="true"] { border-color: var(--c2-azul); background: var(--c2-azul-claro); color: var(--c2-azul-2); }
.nw-periodo.is-ignorado .nw-periodo__texto { color: var(--c2-azul-2); font-weight: 600; }
