:root {
	--fundo: #f2f4f8;
	--superficie: #ffffff;
	--linha: #e4e7ee;
	--linha-forte: #d5dae3;
	--tinta: #111827;
	--tinta-2: #374151;
	--suave: #6b7280;
	--primaria: #2563eb;
	--primaria-escura: #1d4ed8;
	--marca-1: #f97316;
	--marca-2: #e11d48;
	--azul: #2563eb;
	--ambar: #d97706;
	--verde: #16a34a;
	--cinza: #64748b;
	--vermelho: #dc2626;
	--whats: #25d366;
	--whats-escuro: #008069;
	--bolha-saida: #d9fdd3;
	--chat-fundo: #efeae2;
	--raio: 12px;
	--sombra-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--sombra-2: 0 8px 24px rgba(16, 24, 40, .12);
	--topo: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background: var(--fundo);
	color: var(--tinta);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
}
body.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ---------- avatar e botões de ícone ---------- */
.avatar {
	width: 40px; height: 40px; flex: none;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px; color: #fff;
	background: #94a3b8;
	letter-spacing: .3px;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; background: linear-gradient(135deg, #334155, #0f172a); }
.icon-btn {
	width: 38px; height: 38px;
	border-radius: 10px;
	border: 1px solid var(--linha);
	background: var(--superficie);
	color: var(--tinta-2);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 18px;
	transition: background .15s, color .15s;
}
.icon-btn:hover { background: #f3f4f6; color: var(--tinta); }
.icon-btn-claro { border-color: transparent; background: transparent; }

/* ---------- cabeçalho ---------- */
.app-header {
	height: var(--topo); flex: none;
	display: flex; align-items: center; gap: 20px;
	padding: 0 20px;
	background: var(--superficie);
	border-bottom: 1px solid var(--linha);
	z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
	width: 40px; height: 40px; flex: none;
	border-radius: 11px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--marca-1), var(--marca-2));
	color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
	box-shadow: 0 4px 10px rgba(225, 29, 72, .25);
}
.brand-text { min-width: 0; }
.brand-name { font-weight: 800; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; color: var(--suave); white-space: nowrap; }

.header-status { display: flex; align-items: center; gap: 8px; margin: 0 auto; flex-wrap: nowrap; }
.status-pill {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #f3f4f6;
	border: 1px solid var(--linha);
	font-size: 12.5px; color: var(--tinta-2);
	white-space: nowrap;
}
.status-pill .rotulo { color: var(--suave); }
.status-pill .valor { font-weight: 600; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.status-pill i { font-size: 14px; }
.status-pill.ok { background: #ecfdf3; border-color: #bbf0cf; color: #166534; }
.status-pill.ok .dot { background: var(--verde); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.status-pill.ok .rotulo { color: #15803d; }
.status-pill.alerta { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.status-pill.alerta .dot { background: var(--vermelho); }
.status-pill.alerta .rotulo { color: #b91c1c; }
.status-pill.neutro { background: #f8fafc; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.relogio { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; margin-right: 6px; }
.relogio strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.relogio small { font-size: 11.5px; color: var(--suave); white-space: nowrap; }
.user-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 2px; border-radius: 999px; }
.user-menu { min-width: 240px; border-radius: 12px; border-color: var(--linha); }

/* ---------- faixas de aviso ---------- */
.faixa-aviso { flex: none; padding: 8px 20px; font-size: 13px; background: #fef2f2; color: #991b1b; border-bottom: 1px solid #fecaca; }
.faixa-som { background: #fffbeb; color: #92400e; border-color: #fde68a; cursor: pointer; }

/* ---------- abas no celular ---------- */
.abas-mobile { display: none; }

/* ---------- corpo ---------- */
.app-body { flex: 1; min-height: 0; display: flex; }

/* ---------- painel de conversas (estilo WhatsApp Web) ---------- */
.painel-chat {
	width: 400px; flex: none;
	display: flex; flex-direction: column;
	background: var(--superficie);
	border-right: 1px solid var(--linha);
	min-height: 0;
}
.chat-lista, .chat-aberto { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.chat-topo h2 { font-size: 18px; font-weight: 800; margin: 0; }
.contador { font-size: 12px; font-weight: 600; color: var(--suave); background: #f3f4f6; border-radius: 999px; padding: 2px 9px; }
.chat-busca { margin: 0 14px 10px; position: relative; }
.chat-busca i, .busca-pedido i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--suave); font-size: 14px; }
.chat-busca input, .busca-pedido input {
	width: 100%; height: 38px;
	border: 1px solid transparent; border-radius: 10px;
	background: #f0f2f5;
	padding: 0 12px 0 34px;
	font-size: 13.5px; outline: none;
}
.chat-busca input:focus, .busca-pedido input:focus { background: #fff; border-color: #bfdbfe; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

.conv-lista { flex: 1; overflow-y: auto; min-height: 0; }
.conv-item {
	display: flex; align-items: center; gap: 12px;
	width: 100%; border: 0; background: transparent; text-align: left;
	padding: 10px 16px;
	position: relative;
	cursor: pointer;
}
.conv-item::after { content: ""; position: absolute; left: 68px; right: 0; bottom: 0; border-bottom: 1px solid #f0f2f5; }
.conv-item:hover { background: #f5f6f6; }
.conv-item.ativa { background: #f0f2f5; }
.conv-corpo { flex: 1; min-width: 0; }
.conv-linha { display: flex; align-items: baseline; gap: 8px; }
.conv-nome { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-hora { font-size: 12px; color: var(--suave); flex: none; }
.conv-hora.nova { color: var(--whats-escuro); font-weight: 600; }
.conv-previa { flex: 1; min-width: 0; font-size: 13px; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-previa .quem { color: var(--tinta-2); }
.conv-tags { display: flex; gap: 6px; margin-top: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag-pedido { background: #eff6ff; color: var(--primaria-escura); }
.tag-equipe { background: #fef3c7; color: #92400e; }
.nao-lidas { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--whats); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }

.vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; color: var(--suave); text-align: center; font-size: 13.5px; }
.vazio i { font-size: 30px; color: #cbd5e1; }

/* conversa aberta */
.chat-cabecalho { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f0f2f5; border-bottom: 1px solid var(--linha); }
.chat-quem { flex: 1; min-width: 0; }
.chat-nome { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-tel { font-size: 12px; color: var(--suave); }
.robo-badge { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.robo-badge.ativo { background: #dcfce7; color: #166534; }
.robo-badge.pausado { background: #fef3c7; color: #92400e; }
.robo-badge.desligado { background: #f1f5f9; color: #475569; }
.chat-pedidos { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--linha); }
.chat-pedidos:empty { display: none; }
.chip-pedido { border: 1px solid var(--linha); background: #fff; border-radius: 999px; font-size: 12px; padding: 3px 10px; color: var(--tinta-2); cursor: pointer; }
.chip-pedido:hover { border-color: var(--linha-forte); background: #f8fafc; }
.chip-pedido .ponto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.chat-mensagens {
	flex: 1; min-height: 0; overflow-y: auto;
	padding: 14px 16px 10px;
	background-color: var(--chat-fundo);
	background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px);
	background-size: 18px 18px;
	display: flex; flex-direction: column; gap: 3px;
}
.data-sep { align-self: center; background: #fff; color: #54656f; font-size: 11.5px; padding: 4px 12px; border-radius: 8px; margin: 10px 0 6px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.bolha {
	max-width: 82%;
	padding: 6px 9px 7px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
	font-size: 13.8px; line-height: 1.4;
	position: relative;
	word-wrap: break-word; overflow-wrap: anywhere;
}
.bolha.entrada { align-self: flex-start; border-top-left-radius: 2px; }
.bolha.saida { align-self: flex-end; background: var(--bolha-saida); border-top-right-radius: 2px; }
.bolha.mesmo-autor { border-radius: 8px; }
.bolha .autor { font-size: 11.5px; font-weight: 700; margin-bottom: 2px; }
.bolha .autor.robo { color: #00a884; }
.bolha .autor.equipe { color: #c2410c; }
.bolha .hora { float: right; font-size: 10.5px; color: #667781; margin: 6px 0 -4px 10px; }
.bolha .midia { display: inline-flex; align-items: center; gap: 6px; color: #54656f; font-style: italic; }
.bolha.enviando { opacity: .6; }

.chat-escrever { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #f0f2f5; }
.chat-escrever textarea {
	flex: 1; resize: none; max-height: 120px;
	border: 0; border-radius: 10px;
	padding: 10px 12px;
	font: inherit; font-size: 14px; line-height: 1.35;
	outline: none; background: #fff;
}
.btn-enviar { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--whats-escuro); color: #fff; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.btn-enviar:disabled { opacity: .5; }
.chat-nota { font-size: 11.5px; color: var(--suave); background: #f0f2f5; padding: 0 14px 10px; text-align: center; }

/* ---------- área de pedidos ---------- */
.area-pedidos { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 18px 20px 0; min-height: 0; }

.indicadores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; flex: none; }
.indicador {
	display: flex; align-items: center; gap: 12px;
	background: var(--superficie);
	border: 1px solid var(--linha);
	border-radius: var(--raio);
	padding: 14px 16px;
	box-shadow: var(--sombra-1);
	min-width: 0;
}
.indicador small { display: block; font-size: 12px; color: var(--suave); font-weight: 500; }
.indicador strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ind-icone { width: 42px; height: 42px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.ind-icone.azul { background: #eff6ff; color: var(--azul); }
.ind-icone.verde { background: #f0fdf4; color: var(--verde); }
.ind-icone.roxo { background: #f5f3ff; color: #7c3aed; }
.ind-icone.laranja { background: #fff7ed; color: #ea580c; }
.ind-extra { display: inline-block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--vermelho); }

.barra-quadro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; flex: none; flex-wrap: wrap; }
.barra-quadro h1 { font-size: 18px; font-weight: 800; margin: 0; }
.busca-pedido { position: relative; width: 260px; }
.busca-pedido input { background: #fff; border-color: var(--linha); }

/* ---------- quadro (kanban) ---------- */
.quadro { flex: 1; min-height: 0; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 18px; }
.coluna {
	flex: 1 1 0; min-width: 290px;
	display: flex; flex-direction: column;
	background: #e9edf3;
	border-radius: 14px;
	min-height: 0;
}
.coluna[data-status="novo"] { --cor: var(--azul); }
.coluna[data-status="enviado"] { --cor: var(--ambar); }
.coluna[data-status="entregue"] { --cor: var(--verde); }
.coluna[data-status="cancelado"] { --cor: var(--cinza); }
.coluna-topo { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.coluna-cor { width: 10px; height: 10px; border-radius: 3px; background: var(--cor); }
.coluna-topo h2 { font-size: 14px; font-weight: 700; margin: 0; }
.coluna-qtd { font-size: 12px; font-weight: 700; color: var(--cor); background: #fff; border-radius: 999px; padding: 1px 9px; }
.coluna-total { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--suave); }
.coluna-cartoes { flex: 1; min-height: 80px; overflow-y: auto; padding: 2px 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.coluna-vazia { border: 2px dashed #cdd5e0; border-radius: 12px; padding: 22px 12px; text-align: center; color: #94a3b8; font-size: 13px; }
.coluna-vazia i { display: block; font-size: 22px; margin-bottom: 4px; }

/* cartão do pedido */
.cartao {
	background: var(--superficie);
	border-radius: var(--raio);
	box-shadow: var(--sombra-1);
	border: 1px solid var(--linha);
	border-left: 4px solid var(--cor-cartao, var(--azul));
	padding: 12px 14px 12px 12px;
	cursor: grab;
	transition: box-shadow .15s, transform .15s;
	position: relative;
}
.cartao:hover { box-shadow: var(--sombra-2); }
.cartao[data-status="novo"] { --cor-cartao: var(--azul); }
.cartao[data-status="enviado"] { --cor-cartao: var(--ambar); }
.cartao[data-status="entregue"] { --cor-cartao: var(--verde); }
.cartao[data-status="cancelado"] { --cor-cartao: var(--cinza); opacity: .8; cursor: default; }
.cartao.alerta-novo { animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); } 50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); } }
.sortable-ghost { opacity: .35; }
.sortable-drag { transform: rotate(1.5deg); box-shadow: var(--sombra-2); }

.cartao-topo { display: flex; align-items: center; gap: 8px; }
.cartao-numero { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.selo-novo { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--azul); border-radius: 6px; padding: 2px 7px; }
.cartao-tempo { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--suave); display: inline-flex; align-items: center; gap: 4px; }
.cartao-tempo.atrasado { color: var(--vermelho); }
.cartao-cliente { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cartao-cliente .avatar { width: 28px; height: 28px; font-size: 11px; }
.cartao-cliente-nome { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.cartao-cliente-tel { font-size: 12px; color: var(--suave); }
.cartao-itens { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--linha); font-size: 13px; }
.cartao-itens li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: var(--tinta-2); }
.cartao-itens .qtd { font-weight: 700; color: var(--tinta); margin-right: 4px; }
.cartao-itens .preco { color: var(--suave); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cartao-endereco { display: flex; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--suave); line-height: 1.35; }
.cartao-endereco i { color: var(--vermelho); margin-top: 1px; }
.cartao-obs { margin-top: 6px; font-size: 12.5px; background: #fffbeb; color: #92400e; border-radius: 8px; padding: 5px 8px; }
.cartao-total { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-width: 0; }
.cartao-total strong { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-pag { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: var(--tinta-2); }
.chip-pag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao-prazo { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.prazo-texto { font-size: 11.5px; color: var(--suave); white-space: nowrap; }
.prazo-barra { flex: 1; height: 4px; border-radius: 4px; background: #eef2f7; overflow: hidden; }
.prazo-barra span { display: block; height: 100%; border-radius: 4px; background: var(--verde); transition: width .4s; }
.prazo-barra.medio span { background: #f59e0b; }
.prazo-barra.estourado span { background: var(--vermelho); }
.cartao-acoes { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.acao-icone { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--linha); background: #fff; color: var(--tinta-2); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.acao-icone:hover { background: #f3f4f6; color: var(--tinta); }
.acao-principal { flex: 1; height: 34px; border-radius: 9px; border: 0; font-weight: 600; font-size: 13px; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.acao-principal.despachar { background: var(--ambar); }
.acao-principal.despachar:hover { background: #b45309; }
.acao-principal.entregar { background: var(--verde); }
.acao-principal.entregar:hover { background: #15803d; }
.cartao .dropdown-menu { font-size: 13px; border-radius: 10px; }
.status-final { flex: 1; font-size: 12.5px; color: var(--suave); }

/* ---------- configurações e confirmação ---------- */
.modal-content { border-radius: 16px; border: 0; box-shadow: var(--sombra-2); }
.config-bloco { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.config-bloco:first-child { padding-top: 4px; }
.config-bloco:last-child { border-bottom: 0; padding-bottom: 4px; }
.config-texto strong { display: block; font-size: 14px; }
.config-texto small { display: block; color: var(--suave); margin-top: 2px; }
.som-escolha { display: flex; gap: 6px; flex-wrap: wrap; }
.som-escolha .form-select { width: auto; flex: 1; min-width: 190px; }
.som-escolha .btn { flex: none; white-space: nowrap; }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.confirmar-icone { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: #fef2f2; color: var(--vermelho); display: flex; align-items: center; justify-content: center; font-size: 24px; }

.toast { border-radius: 12px; box-shadow: var(--sombra-2); background: #111827; color: #fff; }
.toast .btn-close { filter: invert(1); }
.frame-impressao { position: fixed; width: 0; height: 0; border: 0; visibility: hidden; }

/* ---------- telas menores ---------- */
@media (max-width: 1500px) {
	.painel-chat { width: 360px; }
}
@media (max-width: 1200px) {
	.header-status .rotulo { display: none; }
}
@media (max-width: 1250px) {
	.indicadores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.relogio { display: none; }
}
@media (max-width: 991.98px) {
	.app-header { gap: 10px; padding: 0 12px; }
	.brand-sub { display: none; }
	.header-status { display: none; }
	.abas-mobile { display: flex; flex: none; background: var(--superficie); border-bottom: 1px solid var(--linha); }
	.aba { flex: 1; border: 0; background: transparent; padding: 10px; font-weight: 600; color: var(--suave); border-bottom: 2px solid transparent; }
	.aba.ativa { color: var(--primaria); border-bottom-color: var(--primaria); }
	.badge-aba { background: var(--whats); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 6px; margin-left: 4px; }
	.app-body[data-aba="pedidos"] .painel-chat { display: none; }
	.app-body[data-aba="conversas"] .area-pedidos { display: none; }
	.painel-chat { width: 100%; border-right: 0; }
	.area-pedidos { padding: 12px 12px 0; overflow-y: auto; }
	.quadro { flex-direction: column; overflow: visible; }
	.coluna { min-width: 0; flex: none; }
	.coluna-cartoes { overflow: visible; }
	.barra-quadro > div { width: 100%; }
	.busca-pedido { flex: 1; width: auto; }
	.indicador { padding: 12px; gap: 10px; }
	.indicador strong { font-size: 17px; }
	.ind-icone { width: 36px; height: 36px; font-size: 16px; }
}

/* ---------- tela de entrada ---------- */
.tela-entrada { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--superficie); }
.entrada-marca {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 48px 56px;
	color: #fff;
	background: radial-gradient(1200px 600px at -10% -20%, rgba(249, 115, 22, .55), transparent 60%),
		radial-gradient(900px 600px at 110% 120%, rgba(225, 29, 72, .55), transparent 60%),
		#111827;
}
.entrada-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.entrada-logo .brand-mark { box-shadow: none; }
.entrada-titulo { max-width: 520px; }
.entrada-titulo h1 { font-size: 38px; font-weight: 800; line-height: 1.12; letter-spacing: -.8px; margin: 0 0 14px; }
.entrada-titulo p { font-size: 16px; color: rgba(255, 255, 255, .78); margin: 0; }
.entrada-recursos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.entrada-recursos li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.entrada-recursos i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.entrada-rodape { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.entrada-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--fundo); }
.cartao-entrada { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--linha); border-radius: 18px; box-shadow: var(--sombra-1); padding: 36px 32px; }
.cartao-entrada h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.3px; }
.cartao-entrada .form-label { font-weight: 600; font-size: 13px; color: var(--tinta-2); }
.cartao-entrada .form-control { height: 46px; border-radius: 10px; border-color: var(--linha-forte); }
.cartao-entrada .form-control:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.btn-entrar { height: 48px; border-radius: 10px; font-weight: 700; background: var(--primaria); border-color: var(--primaria); }
.btn-entrar:hover { background: var(--primaria-escura); border-color: var(--primaria-escura); }
.demo-aviso { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; background: #eff6ff; color: #1e40af; border-radius: 10px; padding: 10px 12px; margin-bottom: 18px; }
.entrada-topo-mobile { display: none; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
@media (max-width: 991.98px) {
	.tela-entrada { grid-template-columns: 1fr; }
	.entrada-marca { display: none; }
	.entrada-form { min-height: 100dvh; flex-direction: column; gap: 22px; padding: 28px 16px; }
	.entrada-topo-mobile { display: flex; }
	.cartao-entrada { padding: 26px 20px; border-radius: 16px; }
}

/* ---------- barra de navegação do administrador ---------- */
.navegacao { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 20px; background: var(--superficie); border-bottom: 1px solid var(--linha); }
.nav-item { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; color: var(--tinta-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.nav-item i { font-size: 17px; color: var(--suave); }
.nav-item:hover { background: #f1f5f9; color: var(--tinta); }
.nav-item.ativo { background: linear-gradient(135deg, var(--marca-1), var(--marca-2)); color: #fff; box-shadow: 0 4px 12px rgba(225, 29, 72, .25); }
.nav-item.ativo i { color: #fff; }
.nav-curto { display: none; }
a.status-pill { text-decoration: none; }
a.status-pill:hover { filter: brightness(.97); }

/* ---------- páginas do administrador ---------- */
.pagina { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px 96px; }
.pagina-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pagina-topo h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.3px; }
.pagina-topo p { margin: 0; color: var(--suave); max-width: 760px; }
.pagina-grade { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.secoes { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; background: var(--superficie); border: 1px solid var(--linha); border-radius: 14px; padding: 8px; box-shadow: var(--sombra-1); }
.secoes a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--tinta); text-decoration: none; font-weight: 600; font-size: 14px; }
.secoes a i { font-size: 16px; color: var(--primaria); }
.secoes a:hover { background: #f1f5f9; }
.secoes a.ativo { background: #eff6ff; color: var(--primaria-escura); }
.secoes-conteudo { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }

.bloco { background: var(--superficie); border: 1px solid var(--linha); border-radius: 14px; box-shadow: var(--sombra-1); scroll-margin-top: 16px; overflow: hidden; }
.bloco-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 6px; }
.bloco-topo h2 { font-size: 16px; font-weight: 800; margin: 0 0 3px; display: flex; align-items: center; gap: 8px; }
.bloco-topo p { margin: 0; color: var(--suave); font-size: 13px; }
.bloco-corpo { padding: 12px 20px 18px; }
.bloco-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--linha); background: #fafbfc; }
.switch-grande .form-check-input { width: 3.2em; height: 1.7em; }

.linha-campos { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.campo-curto, .campo-largo { display: block; font-weight: 600; font-size: 13px; color: var(--tinta-2); }
.grupo-prazo { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 500; color: var(--suave); }
.grupo-prazo input { width: 84px; }
.busca-bairro { width: 240px; }
.contador-bairros { flex: none; font-size: 12px; font-weight: 700; color: var(--primaria-escura); background: #eff6ff; border-radius: 999px; padding: 4px 10px; }

.tabela-bairros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bairro-linha { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--linha); border-radius: 10px; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.bairro-linha:hover { border-color: var(--linha-forte); }
.bairro-linha.marcado { border-color: #bfdbfe; background: #f5f9ff; }
.bairro-linha .form-check-input { margin: 0; flex: none; width: 1.15em; height: 1.15em; }
.bairro-nome { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; }
.bairro-linha:not(.marcado) .bairro-nome { color: var(--suave); font-weight: 500; }
.campo-dinheiro { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.campo-dinheiro > span { font-size: 12px; color: var(--suave); }
.campo-dinheiro input { width: 88px; height: 34px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; }
.campo-dinheiro input::placeholder { font-size: 13px; }
.adicionar-bairro { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--linha); }
.adicionar-bairro > .form-control { flex: 1; height: 38px; }

.bloco-parte { padding: 16px 20px 18px; border-top: 1px solid var(--linha); }
.bloco-topo + .bloco-parte { border-top: 0; padding-top: 8px; }
.subtitulo { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.parte-texto { color: var(--suave); font-size: 13px; margin: 0 0 12px; }
.parte-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.parte-acoes { display: flex; justify-content: flex-end; margin-top: 14px; }
.selo-whats { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.selo-whats .dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.selo-whats.ok { background: #ecfdf3; color: #166534; }
.selo-whats.ok .dot { background: var(--verde); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.selo-whats.alerta { background: #fef2f2; color: #991b1b; }
.selo-whats.alerta .dot { background: var(--vermelho); }
.whats-conectado { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border: 1px solid #bbf0cf; background: #f6fef9; border-radius: 12px; }
.whats-icone { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--whats); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.whats-quem { flex: 1; min-width: 160px; }
.whats-quem strong { display: block; font-size: 17px; }
.whats-quem small { color: var(--suave); }
.whats-vincular { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.whats-qr { width: 260px; height: 260px; border: 1px solid var(--linha); border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.whats-qr img { width: 100%; height: 100%; object-fit: contain; }
.whats-qr-espera { display: flex; align-items: center; gap: 8px; color: var(--suave); }
.whats-passos h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.whats-passos ol { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 6px; }
.whats-codigo { border-top: 1px dashed var(--linha); padding-top: 12px; }
.whats-codigo small { color: var(--suave); }
.whats-codigo-linha { display: flex; gap: 8px; margin: 8px 0; max-width: 380px; }
.whats-codigo-linha .btn { flex: none; white-space: nowrap; }
.whats-codigo-valor { font-size: 28px; font-weight: 800; letter-spacing: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; background: #f3f4f6; border-radius: 10px; padding: 8px 14px; display: inline-block; margin-bottom: 6px; user-select: all; }

.dias { display: flex; flex-direction: column; gap: 6px; }
.dia { display: grid; grid-template-columns: 52px 110px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--linha); border-radius: 10px; }
.dia strong { font-size: 14px; }
.dia-horas { display: flex; align-items: center; gap: 8px; color: var(--suave); }
.dia-horas input { width: 120px; height: 36px; }
.dia-fechado { display: none; color: var(--suave); font-style: italic; }
.dia.fechado { background: #fafbfc; }
.dia.fechado .dia-horas { display: none; }
.dia.fechado .dia-fechado { display: block; }
.dia.fechado strong { color: var(--suave); }
#mensagem-fechado { margin-top: 6px; }
.previa { margin-top: 12px; background: var(--chat-fundo); border-radius: 12px; padding: 12px 14px; }
.previa small { display: block; color: #54656f; margin-bottom: 6px; }
.bolha-previa { display: inline-block; max-width: 520px; background: #fff; border-radius: 8px; padding: 7px 10px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); white-space: pre-line; font-size: 13.8px; }

.grade-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grade-campos label { font-weight: 600; font-size: 13px; color: var(--tinta-2); display: flex; flex-direction: column; gap: 6px; }
.grade-campos label.largo { grid-column: 1 / -1; }
.grade-campos .form-control, .grade-campos .form-select { font-weight: 400; height: 40px; }

.tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--suave); padding: 10px 20px; border-bottom: 1px solid var(--linha); background: #fafbfc; }
.tabela td { padding: 10px 20px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.inativo td { opacity: .55; }
.novo-usuario { padding: 18px 20px 20px; border-top: 1px solid var(--linha); background: #fafbfc; }
.novo-usuario h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.senha-nova { font-size: 24px; font-weight: 800; letter-spacing: 2px; font-family: ui-monospace, Menlo, Consolas, monospace; background: #f3f4f6; border-radius: 10px; padding: 10px; user-select: all; }
.confirmar-icone.azul { background: #eff6ff; color: var(--primaria); }

/* produtos */
.filtros-produtos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filtros-produtos .busca-pedido { width: 280px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--linha); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.chip:hover { border-color: var(--linha-forte); }
.chip.ativo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chip-falta.ativo { background: var(--vermelho); border-color: var(--vermelho); }
.bloco-produtos { margin-bottom: 16px; }
.bloco-produtos .bloco-topo { padding-bottom: 12px; }
.tabela-produtos td:first-child { min-width: 220px; }
.caixa-campos { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qtd-caixa { display: inline-flex; align-items: center; gap: 6px; color: var(--suave); font-size: 12.5px; }
.qtd-caixa input { width: 70px; height: 34px; }
.campo-estoque { display: inline-flex; align-items: center; gap: 6px; }
.campo-estoque input { width: 84px; height: 34px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; }
.estoque-situacao { font-size: 12px; font-weight: 700; white-space: nowrap; }
.campo-estoque.baixo input { border-color: #fcd34d; background: #fffbeb; }
.campo-estoque.baixo .estoque-situacao { color: var(--ambar); }
.campo-estoque.zerado input { border-color: #fca5a5; background: #fef2f2; }
.campo-estoque.zerado .estoque-situacao { color: var(--vermelho); }
.estoque { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--verde); }
tr.em-falta .estoque { color: var(--vermelho); }
tr.em-falta td:first-child strong { color: var(--suave); }
tr.alterado td { background: #fffbeb; }
.btn-novo-produto { flex: none; white-space: nowrap; }
.produto-nome { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.editar-produto { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--linha); background: #fff; color: var(--suave); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.editar-produto:hover { color: var(--primaria); border-color: #bfdbfe; background: #f5f9ff; }
#modal-produto .campo-dinheiro { display: flex; }
#modal-produto .campo-dinheiro input { width: 100%; flex: 1; height: 40px; }
#modal-produto .estoque-novo { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
.opcao-fardo { display: flex; align-items: center; gap: 12px; background: var(--superficie); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--sombra-1); }
.opcao-fardo label { cursor: pointer; margin: 0; }
.opcao-fardo strong { display: block; font-size: 14px; }
.opcao-fardo small { display: block; color: var(--suave); font-size: 12.5px; }
.sem-desconto .preco-fardo { display: none !important; }
.com-desconto .fardo-total { display: none !important; }
.fardo-total { font-weight: 700; color: var(--tinta-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fardo-total:not(.vazio-fardo)::before { content: "= "; font-weight: 500; color: var(--suave); }
.fardo-total.vazio-fardo { font-weight: 500; color: var(--suave); }
tr.alterado td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.barra-salvar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 24px; background: #111827; color: #fff; border-radius: 14px; padding: 10px 12px 10px 20px; box-shadow: var(--sombra-2); transition: transform .25s; z-index: 30; }
.barra-salvar.visivel { transform: translate(-50%, 0); }

/* faturamento: plano, próxima fatura e funcionalidades */
.faixa-plano { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; padding: 10px 14px 10px 18px; margin-bottom: 16px; }
.plano-atual, .plano-total { display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; }
.plano-atual small, .plano-total small { color: var(--suave); font-size: 12px; font-weight: 600; }
.btn-plano { background: #ecfdf3; color: #166534; border: 1px solid #bbf0cf; font-weight: 800; font-size: 13.5px; border-radius: 9px; padding: 4px 12px; white-space: nowrap; }
.btn-plano:hover { background: #dcfce7; color: #14532d; }
.plano-aviso { flex: 1; min-width: 0; }
.aviso-fatura { display: flex; align-items: center; gap: 8px; max-width: 100%; width: fit-content; background: #eff6ff; color: #1e40af; border-radius: 9px; padding: 6px 12px; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.aviso-fatura > i { flex: none; }
.aviso-fatura > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.aviso-curto { display: none; }
.aviso-fatura.neutro { background: #f1f5f9; color: #475569; }
.plano-total strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plano-ver { flex: none; height: 34px; padding: 0 12px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1279.98px) {
	.aviso-longo { display: none; }
	.aviso-curto { display: inline; }
}
.modulos { display: flex; flex-direction: column; }
.modulo { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; column-gap: 14px; row-gap: 2px; padding: 14px 20px; border-top: 1px solid var(--linha); }
.modulo-icone { grid-column: 1; grid-row: 1 / 3; }
.modulo-cabeca { grid-column: 2; grid-row: 1; }
.modulo-corpo { grid-column: 2; grid-row: 2; }
.modulo-preco { grid-column: 3; grid-row: 1 / 3; }
.modulo .form-switch { grid-column: 4; grid-row: 1 / 3; }
.modulo-preco-curto { display: none; }
.modulo-icone { width: 46px; height: 46px; border-radius: 12px; background: #f1f5f9; color: var(--suave); display: inline-flex; align-items: center; justify-content: center; font-size: 21px; }
.modulo.ligado .modulo-icone { background: linear-gradient(135deg, var(--marca-1), var(--marca-2)); color: #fff; }
.modulo-cabeca strong { display: block; font-size: 15px; }
.modulo-cabeca label { cursor: pointer; }
.modulo-corpo small { display: block; color: var(--suave); font-size: 13px; }
.modulo-corpo small { display: block; }
.btn-detalhes { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 0; border: 0; background: none; color: var(--primaria); font-size: 12.5px; font-weight: 600; }
.btn-detalhes:hover, .btn-detalhes:focus { color: var(--primaria-escura); text-decoration: underline; outline: none; }
.popover-modulo { max-width: 360px; border-color: var(--linha); box-shadow: var(--sombra-2); font-family: inherit; }
.popover-modulo .popover-header { font-weight: 800; font-size: 14px; background: #f8fafc; }
.popover-modulo .popover-body { font-size: 13px; color: var(--tinta-2); }
.pop-resumo { margin: 0 0 8px; color: var(--suave); }
.pop-titulo { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--suave); margin: 8px 0 4px; }
.pop-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.pop-lista li { display: flex; gap: 7px; align-items: baseline; }
.pop-lista i { color: var(--verde); font-size: 12px; flex: none; }
.pop-lista.breve i { color: var(--ambar); }
.pop-preco { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--linha); }
.modulo-breve { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; font-size: 13px; color: var(--tinta-2); }
.modulo-breve li.pronto { display: flex; gap: 7px; align-items: baseline; }
.modulo-breve li.pronto i { color: var(--verde); font-size: 12px; flex: none; }
.selo-breve { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; background: #fef3c7; color: #92400e; border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.modulo-preco { font-weight: 800; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.modulo-preco small { font-weight: 500; color: var(--suave); font-size: 12px; margin-left: 2px; }
.plano-secao { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--suave); margin: 4px 0 8px; }
.plano-secao:not(:first-child) { margin-top: 18px; }
.plano-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plano-grade > div { background: #f8fafc; border: 1px solid var(--linha); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.plano-grade small { display: block; color: var(--suave); font-size: 12px; }
.plano-grade strong { display: block; overflow-wrap: anywhere; }
.plano-linha { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--linha); border-radius: 10px; margin-bottom: 6px; }
.plano-total-modal small { display: block; color: var(--suave); font-size: 12px; }
#modal-plano .modulos { margin: 10px -16px 0; }
#modal-plano .modulo { padding: 12px 16px; }
.rodape-plano { display: block; }
.rodape-normal, .rodape-confirmar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rodape-confirmar { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; }
.confirmar-texto { min-width: 0; }
.confirmar-texto > strong { display: block; }
#modulo-valores strong { white-space: nowrap; }
.confirmar-texto small { display: block; color: var(--tinta-2); }
.confirmar-botoes { display: flex; gap: 8px; flex: none; }
.rodape-normal.d-none, .rodape-confirmar.d-none { display: none !important; }
.plano-total-modal strong { font-size: 20px; font-weight: 800; }

/* faturamento */
.fatura-destaque { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; border-left: 4px solid var(--azul); }
.fatura-destaque.vencida { border-left-color: var(--vermelho); }
.fatura-destaque.hoje { border-left-color: var(--ambar); }
.fatura-destaque.paga { border-left-color: var(--verde); }
.fatura-resumo { display: flex; flex-direction: column; gap: 2px; }
.fatura-resumo small { color: var(--suave); }
.fatura-resumo strong { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fatura-resumo .fatura-em-dia { font-size: 20px; color: var(--verde); }
.fatura-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.fatura-acoes .btn { height: 42px; font-weight: 600; }
.selo-fatura { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #dbeafe; color: #1e40af; }
.selo-fatura.paga { background: #dcfce7; color: #166534; }
.selo-fatura.vencida { background: #fee2e2; color: #991b1b; }
.selo-fatura.hoje { background: #fef3c7; color: #92400e; }
.selo-fatura.cancelada { background: #f1f5f9; color: #475569; }

/* atividades */
.filtros-atividades { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filtros-atividades .form-select { width: auto; min-width: 190px; }
.selo-acao { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.selo-acao.verde { background: #dcfce7; color: #166534; }
.selo-acao.azul { background: #dbeafe; color: #1e40af; }
.selo-acao.laranja { background: #ffedd5; color: #9a3412; }
.selo-acao.roxo { background: #ede9fe; color: #5b21b6; }
.selo-acao.vermelho { background: #fee2e2; color: #991b1b; }
.tabela-atividades .detalhe { color: var(--suave); font-size: 12.5px; margin-top: 2px; }

/* ---------- balcão ---------- */
.faixa-teste { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.balcao { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.balcao-lista { display: flex; flex-direction: column; min-height: 0; background: var(--superficie); border-right: 1px solid var(--linha); }
.balcao-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; }
.balcao-topo h1 { font-size: 20px; font-weight: 800; margin: 0; }
.vendido-hoje { font-size: 12.5px; color: var(--suave); }
.vendido-hoje strong { color: var(--verde); }
.abrir-comanda { display: flex; gap: 8px; padding: 0 14px 12px; }
.abrir-comanda .form-control { height: 42px; }
.abrir-comanda .btn { flex: none; height: 42px; font-weight: 600; }
.abas-balcao { display: flex; border-bottom: 1px solid var(--linha); padding: 0 8px; }
.aba-balcao { flex: 1; border: 0; background: none; padding: 10px 6px; font-weight: 600; font-size: 13.5px; color: var(--suave); border-bottom: 2px solid transparent; }
.aba-balcao.ativa { color: var(--primaria); border-bottom-color: var(--primaria); }
.comandas { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.comanda-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--linha); background: #fff; border-radius: 12px; padding: 12px 14px; color: var(--tinta); }
.comanda-item:hover { border-color: var(--linha-forte); background: #f8fafc; }
.comanda-item.ativa { border-color: var(--primaria); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.comanda-item.cancelada { opacity: .65; }
.comanda-item-nome { flex: 1; min-width: 0; }
.comanda-item-nome strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comanda-item-nome small { color: var(--suave); font-size: 12.5px; }
.comanda-item-total { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.balcao-comanda { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.comanda-vazia { flex: 1; }
.comanda-aberta { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.comanda-cabecalho { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--superficie); border-bottom: 1px solid var(--linha); }
.voltar-lista { display: none; }
.comanda-quem { flex: 1; min-width: 0; }
.comanda-quem h2 { font-size: 20px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.comanda-numero { color: var(--suave); font-weight: 600; font-size: 15px; }
.comanda-quem small { color: var(--suave); }
.selo-comanda { flex: none; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.selo-comanda.aberta { background: #dcfce7; color: #166534; }
.selo-comanda.fechada { background: #dbeafe; color: #1e40af; }
.selo-comanda.cancelada { background: #f1f5f9; color: #475569; }

.lancar { position: relative; padding: 14px 22px; background: var(--superficie); border-bottom: 1px solid var(--linha); }
.lancar-linha { display: flex; gap: 10px; }
.busca-produto { position: relative; flex: 1; min-width: 0; }
.busca-produto i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--suave); }
.busca-produto input { width: 100%; height: 46px; border: 1px solid var(--linha-forte); border-radius: 12px; padding: 0 14px 0 40px; font-size: 15px; outline: none; }
.busca-produto input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.qtd-lancar { flex: none; display: flex; align-items: center; border: 1px solid var(--linha-forte); border-radius: 12px; overflow: hidden; background: #fff; }
.qtd-lancar button { width: 40px; height: 44px; border: 0; background: #f8fafc; color: var(--tinta-2); }
.qtd-lancar button:hover { background: #eef2f7; }
.qtd-lancar input { width: 52px; height: 44px; border: 0; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; appearance: textfield; outline: none; }
.qtd-lancar input::-webkit-inner-spin-button, .qtd-lancar input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.resultados { position: absolute; left: 22px; right: 22px; top: calc(100% - 6px); z-index: 25; background: #fff; border: 1px solid var(--linha); border-radius: 12px; box-shadow: var(--sombra-2); max-height: 60vh; overflow-y: auto; }
.resultado { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #f0f2f5; }
.resultado:last-child { border-bottom: 0; }
.resultado.primeiro { background: #f8fbff; }
.resultado-nome { flex: 1; min-width: 0; }
.resultado-nome small { display: block; color: var(--suave); font-size: 12px; }
.resultado-botoes { display: flex; gap: 6px; flex: none; }
.resultado-botoes .btn { font-weight: 600; white-space: nowrap; }
.resultado-botoes .btn span { font-weight: 500; opacity: .85; margin-left: 4px; }
.sem-resultado { padding: 14px; color: var(--suave); }
.resultado-nome .sem-estoque { color: var(--vermelho); font-weight: 600; }

.itens-comanda { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 22px; display: flex; flex-direction: column; gap: 6px; }
.item-lancado { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; }
.item-hora { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--suave); font-size: 13px; }
.item-desc { min-width: 0; overflow-wrap: anywhere; }
.item-desc small { display: block; color: var(--suave); font-size: 12px; }
.item-valor { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-acoes { display: flex; gap: 6px; }
.acao-icone.tirar:hover { color: var(--vermelho); border-color: #fecaca; }
.acao-icone.confirmar { width: auto; padding: 0 10px; background: var(--vermelho); border-color: var(--vermelho); color: #fff; font-size: 12.5px; font-weight: 700; }
.item-lancado.tirado { background: #fafafa; }
.item-lancado.tirado .item-texto, .item-lancado.tirado .item-valor { text-decoration: line-through; color: var(--suave); }
.motivo-cancelada { background: #f1f5f9; border-radius: 10px; padding: 8px 12px; color: var(--tinta-2); font-size: 13px; }

.comanda-rodape { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 14px 22px; background: var(--superficie); border-top: 1px solid var(--linha); }
.comanda-total small { display: block; color: var(--suave); font-size: 12.5px; }
.comanda-total strong { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.comanda-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.comanda-acoes .btn { height: 44px; font-weight: 600; }

#modal-fechar .modal-dialog, #modal-cancelar .modal-dialog { max-width: 400px; }
.rodape-fechar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.rodape-fechar > .btn { margin: 0; height: 46px; font-weight: 600; white-space: nowrap; }
.fechar-total { font-size: 30px; font-weight: 800; text-align: center; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.formas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.formas .btn { font-weight: 600; height: 44px; padding: 0 4px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.recebido { display: block; margin-top: 14px; font-weight: 600; font-size: 13px; }
.recebido .campo-dinheiro { display: flex; margin-top: 6px; }
.recebido .campo-dinheiro input { width: 100%; flex: 1; height: 42px; font-size: 16px; }
.troco { margin-top: 10px; text-align: center; font-weight: 800; font-size: 18px; color: var(--verde); }
.troco.falta { color: var(--vermelho); }

@media (max-width: 991.98px) {
	/* moldura no celular: altura real da tela e o menu do administrador vira barra inferior */
	body.app { height: 100dvh; }
	.app-header { height: auto; min-height: 58px; flex-wrap: wrap; row-gap: 8px; padding: 8px 12px; }
	.brand-mark { width: 38px; height: 38px; }
	.header-actions { margin-left: auto; gap: 8px; }
	.header-status:not(:empty) { display: flex; order: 3; width: 100%; gap: 6px; margin: 0; }
	.header-status .status-pill { padding: 4px 10px; font-size: 12px; }
	#st-loja { min-width: 0; }
	#st-loja .valor { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
	#st-whats.ok .valor { display: none; }
	.app-body { flex-direction: column; }
	.app-body > .painel-chat, .app-body > .area-pedidos, .app-body > .pagina, .app-body > .balcao { flex: 1 1 auto; min-height: 0; }
	.navegacao { order: 99; justify-content: space-around; gap: 4px; padding: 6px 6px; background: #0f172a; border: 0; }
	.nav-item { flex: 1; max-width: 100px; height: auto; flex-direction: column; gap: 3px; padding: 7px 0 6px; font-size: 11.5px; color: #e2e8f0; text-align: center; }
	.nav-item i { font-size: 21px; color: #e2e8f0; }
	.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
	.nav-item.ativo { box-shadow: none; }
	/* 6 botões no celular: nomes curtos para caber */
	.navegacao:has(.nav-item:nth-child(6)) .nav-nome { display: none; }
	.navegacao:has(.nav-item:nth-child(6)) .nav-curto { display: inline; }
	.navegacao:has(.nav-item:nth-child(6)) .nav-item { font-size: 11px; }
	body:has(.navegacao) .toast-container { bottom: 64px !important; }
	.area-pedidos { padding: 12px 10px 0; }
	.busca-pedido input, .chat-busca input, .chat-escrever textarea { font-size: 16px; }

	/* balcão: lista ou comanda, e a página rola inteira */
	.balcao { display: block; overflow-y: auto; }
	.balcao-lista { border-right: 0; min-height: 100%; }
	.comandas { overflow: visible; padding-bottom: 18px; }
	.balcao.com-comanda .balcao-lista, .balcao:not(.com-comanda) .balcao-comanda { display: none; }
	.balcao-comanda { min-height: 100%; }
	.voltar-lista { display: inline-flex; }
	.comanda-cabecalho { position: sticky; top: 0; z-index: 6; padding: 10px 12px; }
	.comanda-quem h2 { font-size: 18px; }
	.lancar, .itens-comanda, .comanda-rodape { padding-left: 12px; padding-right: 12px; }
	.itens-comanda { overflow: visible; flex: 1 0 auto; }
	.busca-produto input, .abrir-comanda .form-control, .qtd-lancar input { font-size: 16px; }
	.qtd-lancar button { width: 36px; }
	.qtd-lancar input { width: 40px; }
	.resultados { position: static; margin-top: 10px; max-height: none; overflow: visible; box-shadow: none; }
	.resultado { flex-direction: column; align-items: stretch; gap: 8px; }
	.resultado-botoes .btn { flex: 1; height: 40px; }
	.item-lancado { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px 10px; }
	.item-acoes { grid-column: 2 / -1; justify-content: flex-end; }
	.comanda-rodape { position: sticky; bottom: 0; z-index: 5; }
	.comanda-rodape { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
	.comanda-total { display: flex; align-items: baseline; justify-content: space-between; width: 100%; }
	.comanda-total strong { font-size: 22px; }
	.comanda-acoes { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.comanda-acoes .btn { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
	#btn-fechar { grid-column: 1 / -1; order: -1; }
	.comanda-acoes .btn:only-child { grid-column: 1 / -1; }
	/* aviso no alto, para não cobrir o Fechar conta */
	body:has(.balcao) .toast-container { top: 8px; bottom: auto !important; }

	/* páginas do administrador */
	.pagina { padding: 14px 10px 96px; }
	.pagina-topo { margin-bottom: 12px; }
	.pagina-topo h1 { font-size: 20px; }
	.pagina-topo p { font-size: 13px; }
	.pagina-grade { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.secoes { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; background: none; border: 0; padding: 0; box-shadow: none; }
	.secoes a { gap: 6px; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--linha-forte); font-size: 13.5px; }
	.secoes a.ativo { border-color: var(--primaria); }
	.secoes-conteudo { gap: 12px; }
	.bloco-topo { gap: 12px; padding: 14px 14px 6px; }
	.bloco-corpo { padding: 10px 14px 14px; }
	.bloco-rodape { padding: 10px 14px; }
	.bloco-rodape .btn { flex: 1; height: 44px; }
	.tabela th, .tabela td { padding: 8px 12px; }

	/* entrega: bairros em uma coluna, sem rolagem */
	.bloco-topo:has(.contador-bairros) { flex-direction: column; gap: 8px; }
	.linha-campos { flex-direction: column; align-items: stretch; gap: 10px; }
	.busca-bairro { width: 100%; }
	.tabela-bairros { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.bairro-linha { min-height: 54px; }
	.bairro-linha .form-check-input { width: 1.35em; height: 1.35em; }
	.bairro-nome { font-size: 14.5px; }
	.bairro-linha .campo-dinheiro input { width: 96px; height: 40px; }
	.adicionar-bairro { flex-wrap: wrap; }
	.adicionar-bairro > .form-control { flex: 1 1 100%; height: 44px; }
	.adicionar-bairro .campo-dinheiro { flex: 1; }
	.adicionar-bairro .campo-dinheiro input { width: 100%; height: 44px; }
	.adicionar-bairro .btn { height: 44px; }

	/* horário: liga/desliga e dia na linha de cima, horas embaixo */
	.bloco-parte { padding: 14px; }
	.parte-acoes .btn { flex: 1; height: 44px; }
	.whats-vincular { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.whats-passos { width: 100%; }
	.whats-conectado .btn { width: 100%; height: 44px; }
	.whats-codigo-linha { max-width: none; }
	.whats-codigo-linha .form-control { font-size: 16px; }
	.dia { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; padding: 10px 12px; }
	.dia-horas { grid-column: 1 / -1; }
	.dia-horas input { flex: 1; width: auto; min-width: 0; height: 44px; }
	.dia-fechado { grid-column: 3; grid-row: 1; }
	.grade-campos { grid-template-columns: minmax(0, 1fr); }

	/* usuários em cartões */
	.tabela-usuarios, .tabela-usuarios tbody { display: block; }
	.tabela-usuarios thead { display: none; }
	.tabela-usuarios tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; padding: 12px 14px; border-bottom: 1px solid #f0f2f5; }
	.tabela-usuarios td { display: block; padding: 0 !important; border: 0 !important; }
	.tabela-usuarios td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
	.tabela-usuarios td:nth-child(2), .tabela-usuarios td:nth-child(3), .tabela-usuarios td:nth-child(4) { grid-column: 1; padding-left: 40px !important; font-size: 13px; overflow-wrap: anywhere; }
	.tabela-usuarios td:nth-child(2) { color: var(--suave); }
	.tabela-usuarios td:nth-child(4)::before { content: "Último acesso: "; }
	.tabela-usuarios td:nth-child(5) { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
	.tabela-usuarios .acao-icone { width: 40px; height: 40px; }
	.novo-usuario { padding: 14px; }
	.novo-usuario .btn { width: 100%; height: 44px; }

	/* produtos: cada produto vira um cartão que usa a largura toda */
	.filtros-produtos { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
	.filtros-produtos .busca-pedido { width: 100%; }
	.chip { padding: 7px 12px; }
	.bloco-produtos { margin-bottom: 12px; }
	.bloco-produtos .bloco-topo { padding: 12px 14px 8px; }
	.tabela-produtos, .tabela-produtos tbody { display: block; }
	.tabela-produtos thead { display: none; }
	.tabela-produtos tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px; column-gap: 8px; row-gap: 10px; padding: 12px 14px 14px; border-top: 1px solid #f0f2f5; }
	.tabela-produtos td { display: block; border: 0 !important; padding: 0 !important; min-width: 0 !important; background: transparent !important; }
	.tabela-produtos td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; align-self: center; }
	.tabela-produtos td:nth-child(1) strong { font-size: 15px; }
	.tabela-produtos td:nth-child(5) { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
	.tabela-produtos td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
	.tabela-produtos .campo-estoque { display: flex; gap: 10px; }
	.tabela-produtos .campo-estoque input { width: calc(50% - 4px); height: 44px; font-size: 16px; }
	.tabela-produtos .estoque { flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; }
	.tabela-produtos td:nth-child(2) { grid-column: 1; grid-row: 2; }
	.tabela-produtos td:nth-child(3) { grid-column: 2 / 4; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) 64px; column-gap: 8px; }
	.tabela-produtos td[data-rotulo]::before, .tabela-produtos .qtd-caixa::before { display: block; font-size: 11px; line-height: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--suave); margin-bottom: 5px; }
	.tabela-produtos td[data-rotulo]::before { content: attr(data-rotulo); }
	.tabela-produtos td:nth-child(3)::before { grid-column: 1; grid-row: 1; }
	.tabela-produtos .caixa-campos { display: contents; }
	.tabela-produtos td:nth-child(3) .campo-dinheiro { grid-column: 1; grid-row: 2; }
	.tabela-produtos .qtd-caixa { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 0; font-size: 0; }
	.tabela-produtos .qtd-caixa::before { content: "Qtd."; }
	.tabela-produtos .campo-dinheiro { display: flex; width: 100%; position: relative; }
	.tabela-produtos .campo-dinheiro > span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; pointer-events: none; }
	.tabela-produtos .campo-dinheiro input { width: 100%; height: 44px; font-size: 16px; padding-left: 32px; }
	.tabela-produtos .qtd-caixa input { width: 100%; height: 44px; font-size: 16px; text-align: center; padding: 0 4px; }
	.tabela-produtos .fardo-total { grid-column: 1; grid-row: 2; display: flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 8px; background: #f8fafc; border: 1px dashed var(--linha-forte); font-size: 16px; }
	.tabela-produtos .fardo-total::before { content: none !important; }
	.opcao-fardo { padding: 12px 14px; margin-bottom: 12px; }
	.pagina-topo:has(.btn-novo-produto) { flex-direction: column; align-items: stretch; gap: 10px; }
	.btn-novo-produto { height: 44px; }
	.editar-produto { width: 36px; height: 36px; font-size: 15px; }
	#modal-produto .form-control, #modal-produto .form-select { font-size: 16px; }
	.tabela-produtos tr.alterado { box-shadow: inset 3px 0 0 #f59e0b; background: #fffbeb; }
	.tabela-produtos tr.alterado td:first-child { box-shadow: none; }
	.barra-salvar > span { font-size: 13px; line-height: 1.25; }
	.barra-salvar .btn { white-space: nowrap; }
	.barra-salvar { left: 10px; right: 10px; bottom: 72px; transform: translateY(calc(100% + 96px)); justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; }
	.barra-salvar.visivel { transform: translateY(0); }

	/* plano e funcionalidades no celular */
	.faixa-plano { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; }
	.plano-atual small, .plano-total small { display: none; }
	.plano-total { margin-left: auto; }
	.plano-total strong::after { content: "/mês"; font-size: 12px; font-weight: 600; color: var(--suave); margin-left: 2px; }
	.plano-ver { width: 36px; height: 34px; padding: 0; justify-content: center; }
	.plano-ver span { display: none; }
	.plano-aviso { order: 4; flex: 1 1 100%; }
	.aviso-fatura { width: auto; font-size: 12.5px; }
	.modulo { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 14px; row-gap: 10px; }
	.modulo-icone { width: 42px; height: 42px; font-size: 19px; grid-row: 1; }
	.modulo-cabeca { grid-column: 2; grid-row: 1; align-self: center; }
	.modulo .form-switch { grid-column: 3; grid-row: 1; }
	.modulo-corpo { grid-column: 1 / -1; grid-row: 2; }
	.modulo-preco { display: none; }
	.modulo-preco-curto { display: block; font-weight: 800; font-size: 14px; color: var(--tinta-2); }
	.plano-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
	.plano-grade > div:first-child { grid-column: 1 / -1; }
	.plano-grade > div { padding: 8px 10px; }
	.rodape-confirmar { flex-direction: column; align-items: stretch; }
	.confirmar-botoes .btn { flex: 1; height: 42px; }

	/* faturas em cartões */
	.fatura-acoes { width: 100%; }
	.fatura-acoes .btn { flex: 1 1 100%; height: 44px; }
	.tabela-faturas, .tabela-faturas tbody { display: block; }
	.tabela-faturas thead { display: none; }
	.tabela-faturas tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; padding: 12px 14px; border-bottom: 1px solid #f0f2f5; }
	.tabela-faturas td { display: block; padding: 0 !important; border: 0 !important; }
	.tabela-faturas td:nth-child(1) { grid-column: 1; grid-row: 1; }
	.tabela-faturas td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
	.tabela-faturas td:nth-child(2) { grid-column: 1 / -1; color: var(--suave); font-size: 13px; }
	.tabela-faturas td:nth-child(3) { grid-column: 1; font-size: 13px; }
	.tabela-faturas td:nth-child(3)::before { content: "Vence "; color: var(--suave); }
	.tabela-faturas td:nth-child(5) { grid-column: 2; text-align: right; }
	.tabela-faturas td:nth-child(6) { grid-column: 1 / -1; text-align: left !important; }
	.tabela-faturas td:nth-child(6) .btn { width: 100%; margin-top: 6px; height: 40px; }

	/* atividades em cartões */
	.filtros-atividades { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
	.filtros-atividades .form-select { min-width: 0; width: 100%; }
	.filtros-atividades .form-select:first-child { grid-column: 1 / -1; }
	.tabela-atividades, .tabela-atividades tbody { display: block; }
	.tabela-atividades thead { display: none; }
	.tabela-atividades tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; padding: 12px 14px; border-bottom: 1px solid #f0f2f5; }
	.tabela-atividades td { display: block; padding: 0 !important; border: 0 !important; }
	.tabela-atividades td:nth-child(1) { grid-column: 3; grid-row: 1; align-self: center; font-size: 12px; }
	.tabela-atividades td:nth-child(2) { grid-column: 1 / 3; grid-row: 1; min-width: 0; overflow: hidden; font-weight: 600; }
	.tabela-atividades td:nth-child(3) { grid-column: 1; grid-row: 2; }
	.tabela-atividades td:nth-child(4) { grid-column: 2 / 4; grid-row: 2; font-size: 13.5px; overflow-wrap: anywhere; }
}

/* ---------- nova conversa (comercial) ---------- */
.conv-nova-btn { margin-left: auto; font-size: 19px; }
.chat-nova { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-nova-topo { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px; }
.chat-nova-topo h2 { font-size: 18px; font-weight: 800; margin: 0; }
.avatar-numero { background: #00a884; font-size: 17px; }
