/* Tema por loja: vem do servidor em <html data-tema>. Pares de cor conferidos por teste (WCAG AA). */
:root, [data-tema="neutro"] {
  --fundo: #F3F4F6; --superficie: #FFFFFF; --campo: #FFFFFF; --texto: #14161B; --suave: #545A66; --borda: #E0E3E9;
  --topo: #14161B; --sobre-topo: #FFFFFF; --linha-topo: #3A3F4A; --destaque: #14161B; --sobre-destaque: #FFFFFF; --secundario: #EBEDF1; --sobre-secundario: #14161B;
  --forte: #14161B; --erro: #B42318; --certo: #067647; --aviso-fundo: #FEF0C7; --aviso-texto: #6B2A0C; color-scheme: light;
}
[data-tema="preto"] {
  --fundo: #111111; --superficie: #1E1E1C; --campo: #141413; --texto: #F5F4EF; --suave: #BDBCB4; --borda: #43433E;
  --topo: #1D1D1B; --sobre-topo: #F5F4EF; --linha-topo: #F5F4EF; --destaque: #F5F4EF; --sobre-destaque: #111111; --secundario: #33332F; --sobre-secundario: #F5F4EF;
  --forte: #FFFFFF; --erro: #FF9B91; --certo: #8FD98A; --aviso-fundo: #3D3210; --aviso-texto: #FFE9A8; color-scheme: dark;
}
[data-tema="bege"] {
  --fundo: #F0E0D7; --superficie: #F8F6F2; --campo: #FFFFFF; --texto: #3B2A1E; --suave: #6A5442; --borda: #D3BCAA;
  --topo: #F7F5F1; --sobre-topo: #2A1B10; --linha-topo: #C69670; --destaque: #A27F60; --sobre-destaque: #160C05; --secundario: #E3CDBD; --sobre-secundario: #3B2A1E;
  --forte: #6B4A2F; --erro: #9C1C12; --certo: #2B5A17; --aviso-fundo: #F6E3B4; --aviso-texto: #4A3500; color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 17px/1.4 "Segoe UI", system-ui, sans-serif; min-height: 100vh; overflow-wrap: anywhere; }
h1 { font-size: 1.35rem; margin: 0; } h2 { font-size: 1rem; margin: 12px 0 8px; color: var(--suave); } p { margin: 8px 0; } hr { border: 0; border-top: 1px solid var(--borda); margin: 12px 0; width: 100%; }
small { display: block; font-size: .82rem; color: var(--suave); }
.topo { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--topo); color: var(--sobre-topo); border-bottom: 3px solid var(--linha-topo); flex-wrap: wrap; }
.topo .marca { flex: 1; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: inherit; line-height: 1.15; white-space: nowrap; }
.topo .marca { display: flex; align-items: center; gap: 12px; } .topo .marca img { width: 44px; height: 44px; flex: none; }
.topo nav { display: flex; gap: 8px; flex-wrap: wrap; }
main { max-width: 1320px; margin: 0 auto; padding: 18px 20px 40px; }
.b { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 18px; border: 1px solid var(--borda); border-radius: 12px; background: var(--secundario); color: var(--sobre-secundario); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.b:hover { filter: brightness(1.06); } .b:disabled { opacity: .55; cursor: default; }
.b.principal, .b.marcado { background: var(--destaque); color: var(--sobre-destaque); border-color: var(--destaque); }
.b.perigo { color: var(--erro); border-color: var(--erro); background: transparent; } .b.pequeno { min-height: 44px; padding: 4px 14px; font-size: .92rem; } .b.largo { width: 100%; margin-top: 10px; }
:focus-visible { outline: 3px solid var(--forte); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--texto); background: var(--campo); border: 1px solid var(--borda); border-radius: 12px; padding: 10px 14px; min-height: 48px; width: 100%; min-width: 0; }
input[type=checkbox] { width: 24px; min-height: 24px; height: 24px; } textarea { resize: vertical; } ::placeholder { color: var(--suave); opacity: 1; }
.busca { margin: 10px 0; }
.campo { display: block; margin: 10px 0; } .campo > span { display: block; font-size: .88rem; color: var(--suave); margin-bottom: 4px; }
.marcar { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: 18px; padding: 18px; }
.estreito { max-width: 440px; margin: 24px auto; } .medio { max-width: 680px; margin: 0 auto; } .centro { text-align: center; }
.barra { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; } .barra h1 { flex: 1; } .barra input { width: auto; }
/* ---------- menu da loja (esquerda; no celular vira gaveta) ---------- */
.com-menu { display: grid; grid-template: "topo topo" auto "menu tela" 1fr / 212px minmax(0, 1fr); } .com-menu > .topo { grid-area: topo; } .com-menu > main { grid-area: tela; width: 100%; } .com-menu > #avisos, .com-menu > #fundo-menu { position: fixed; }
.lateral { grid-area: menu; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--superficie); border-right: 1px solid var(--borda); }
.lateral a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 12px; color: var(--texto); text-decoration: none; font-weight: 600; flex-wrap: wrap; } .lateral a:hover { background: var(--secundario); }
.lateral a[aria-current] { background: var(--destaque); color: var(--sobre-destaque); } .lateral svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.selo { flex-basis: 100%; color: var(--aviso-texto); background: var(--aviso-fundo); border-radius: 8px; padding: 2px 8px; text-align: center; } .so-celular { display: none; }
#fundo-menu { inset: 0; background: rgba(0, 0, 0, .5); z-index: 5; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* ---------- painel ---------- */
.painel { display: flex; flex-direction: column; gap: 16px; } .titulo { color: inherit; font-size: 1.1rem; margin: 0 0 8px; }
.frase { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--superficie); border: 1px solid var(--borda); border-left: 6px solid var(--destaque); font-size: 1.2rem; font-weight: 700; } .frase:empty { display: none; }
.sistema { margin: 0; color: var(--texto); opacity: .85; } .sistema.alerta { opacity: 1; font-weight: 700; padding: 10px 14px; border: 2px solid currentColor; border-radius: 10px; }
.quadros { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.5fr; gap: 16px; } .quadro h2 { margin-top: 0; } .quadro p { margin: 4px 0; } .numero { font-size: 1.7rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.barra-meta { display: block; width: 100%; height: 16px; border-radius: 8px; margin: 8px 0; } .barra-meta .trilho { fill: var(--secundario); } .barra-meta .feito { fill: var(--destaque); } .barra-meta .marca { fill: var(--texto); }
.faixas { font-size: .92rem; } .faixas .junto { padding: 3px 0; }
.grafico { min-height: 378px; } .grafico svg { display: block; max-width: 100%; touch-action: pan-y; } .grafico .rotulo { fill: var(--suave); font-size: 12.5px; } .grafico .forte { fill: var(--texto); font-weight: 700; font-size: 14px; } .grafico .meio { text-anchor: middle; } .grafico .fechado { opacity: .55; }
.grafico .eixo { stroke: var(--borda); } .grafico .grade-meta { stroke: var(--borda); stroke-dasharray: 2 4; } .grafico .guia { stroke: var(--suave); stroke-dasharray: 2 3; } .grafico .dia { fill: var(--destaque); }
.grafico .acumulado { fill: none; stroke: var(--forte); stroke-width: 3; stroke-linejoin: round; } .grafico .ritmo { fill: none; stroke: var(--suave); stroke-width: 2; stroke-dasharray: 7 5; } .grafico .ponta { fill: var(--forte); stroke: var(--superficie); stroke-width: 2; }
.legenda { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: .9rem; color: var(--suave); } .legenda span::before { content: ""; display: inline-block; width: 22px; margin-right: 8px; vertical-align: middle; border-top: 3px solid var(--forte); } .legenda .l-ritmo::before { border-top: 2px dashed var(--suave); } .legenda .l-dia::before { width: 12px; height: 12px; border: 0; border-radius: 3px; background: var(--destaque); }
.leitura { font-size: .95rem; min-height: 1.4em; } .rolar { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: .92rem; } th, td { padding: 6px 10px; border-bottom: 1px solid var(--borda); text-align: right; white-space: nowrap; } th:first-child { text-align: left; } summary { cursor: pointer; padding: 8px 0; }
/* ---------- campos: lista de escolha, foto, cliente, abas ---------- */
.com-lista .nota { max-height: 5.6em; overflow: auto; } .com-lista { min-width: 0; } .escolhas { border: 1px solid var(--forte); border-radius: 12px; background: var(--campo); max-height: 260px; overflow: auto; margin-top: -6px; } .opcao { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--borda); } .opcao:last-child { border-bottom: 0; } .opcao:hover, .opcao[aria-selected="true"] { background: var(--secundario); color: var(--sobre-secundario); } .opcao small { color: inherit; opacity: .85; } .opcao.nova { font-weight: 700; color: var(--forte); position: sticky; bottom: 0; background: var(--campo); border-top: 1px solid var(--borda); }
.errado { border-color: var(--erro); } .nota { margin-top: 4px; } .nota:empty { display: none; } .nota.alerta { color: var(--erro); } h3 { font-size: 1rem; margin: 14px 0 0; } .marcar.curto { margin: -4px 0 8px; font-size: .92rem; }
.com-arroba { display: flex; align-items: stretch; } .com-arroba > span { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--borda); border-right: 0; border-radius: 12px 0 0 12px; background: var(--secundario); color: var(--sobre-secundario); font-weight: 700; } .com-arroba > input { border-radius: 0 12px 12px 0; }
.endereco { grid-template-columns: repeat(6, 1fr); } .endereco > :nth-child(1) { grid-column: span 4; } .endereco > :nth-child(n+2) { grid-column: span 2; } .endereco > :nth-child(6) { grid-column: span 2; } .endereco > :nth-child(7) { grid-column: span 4; }
.foto-produto { display: flex; gap: 16px; flex-wrap: wrap; } .quadro-foto { width: 260px; max-width: 100%; aspect-ratio: 1; border: 1px solid var(--borda); border-radius: 14px; overflow: hidden; background: #FFFFFF; display: flex; align-items: center; justify-content: center; } .quadro-foto .suave { color: #5C5B55; } .quadro-foto canvas { width: 100%; height: 100%; touch-action: none; cursor: grab; } .quadro-foto canvas:active { cursor: grabbing; } .foto-atual { width: 100%; height: 100%; object-fit: contain; }
.lado-foto { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; } .ajustes-foto small { flex: none; } .ajustes-foto { display: flex; flex-direction: column; gap: 10px; width: 100%; } .zoom { padding: 0; min-height: 44px; border: 0; background: none; accent-color: var(--forte); }
.abas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ladrilhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 24px auto; max-width: 900px; }
.ladrilho { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 150px; padding: 24px; border-radius: 20px; background: var(--superficie); border: 1px solid var(--borda); color: var(--texto); text-decoration: none; }
.ladrilho strong { font-size: 1.5rem; } .ladrilho span { color: var(--suave); } .ladrilho.menor { min-height: 96px; } .ladrilho.menor strong { font-size: 1.1rem; } .ladrilho:hover { border-color: var(--forte); }
.ladrilho.destaque { background: var(--destaque); color: var(--sobre-destaque); border-color: var(--destaque); } .ladrilho.destaque span { color: inherit; }
.ladrilho.loja-istore { background: #111111; color: #F5F4EF; border-bottom: 6px solid #F5F4EF; } .ladrilho.loja-istore span { color: #BDBCB4; }
.ladrilho img { width: 64px; height: 64px; margin-bottom: 6px; }
.ladrilho.loja-homeware { background: #F7F5F1; color: #3B2A1E; border-bottom: 6px solid #C69670; } .ladrilho.loja-homeware span { color: #6A5442; }
.lista { display: flex; flex-direction: column; gap: 8px; }
.linha { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 14px; background: var(--superficie); color: var(--texto); border: 1px solid var(--borda); border-radius: 14px; font: inherit; text-align: left; flex-wrap: wrap; }
button.linha { cursor: pointer; flex-wrap: nowrap; } button.linha:hover { border-color: var(--forte); } .linha.solta { border: 0; padding: 4px 0; min-height: 44px; } .linha.escolhida { margin: 10px 0; border-color: var(--forte); } .linha.apagada { opacity: .75; }
.linha.cancelada > strong, .linha.cancelada .cresce > strong { text-decoration: line-through; }
.cresce { flex: 1; min-width: 0; } .direita { text-align: right; white-space: nowrap; } .suave { color: var(--suave); } .alerta { color: var(--erro); font-weight: 600; } .certo { color: var(--certo); font-weight: 600; } .vazio { color: var(--suave); text-align: center; padding: 24px 0; }
.caixa-aviso { background: var(--aviso-fundo); color: var(--aviso-texto); border-radius: 12px; padding: 12px; margin: 10px 0; }
.mini, .media { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--secundario); } .media { width: 96px; height: 96px; }
.junto { display: flex; align-items: center; gap: 10px; } .junto > .b { flex: none; min-width: 84px; white-space: nowrap; } .junto > .b[aria-label] { min-width: 44px; } .quebra { flex-wrap: wrap; } .linha-foto { padding: 4px 0; } .obs { white-space: pre-wrap; }
.botoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.grande { font-size: 1.6rem; font-weight: 700; } .valorzao { font-size: 2.4rem; font-weight: 800; color: var(--forte); }
.venda { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.lado { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 108px); padding: 0; } .rola { overflow: auto; padding: 4px 18px 12px; } .pe { padding: 12px 18px 18px; border-top: 1px solid var(--borda); }
.formas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .formas .b:last-child { grid-column: 1 / -1; } .formas .b { padding: 6px 8px; font-size: .95rem; }
.pagamento { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--borda); } .pagamento > .junto { margin-bottom: 8px; } .pagamento .junto input { max-width: 150px; }
.parcela { display: grid; grid-template-columns: 52px 1fr 1.3fr; gap: 8px; align-items: center; margin: 6px 0; } .parcela input { padding: 6px 8px; min-height: 44px; }
.sugestoes > * { flex: none; } .sugestoes { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; } .itens { margin-top: 10px; }
.trocado { color: var(--forte); font-weight: 600; } .item { display: grid; grid-template-columns: 48px minmax(110px, 1fr) 104px auto 92px 106px 44px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--borda); }
.item .b { padding: 0; width: 44px; min-height: 44px; } .mais-menos { display: flex; gap: 4px; } .qtd { width: 58px; text-align: center; padding: 4px; min-height: 44px; } .desc { padding: 4px 8px; min-height: 40px; text-align: right; }
.total { margin-bottom: 4px; }
.janela { border: 1px solid var(--borda); border-radius: 18px; background: var(--superficie); color: var(--texto); padding: 22px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; } .janela::backdrop { background: rgba(0, 0, 0, .55); } .janela h2 { color: inherit; font-size: 1.25rem; margin-top: 0; }
/* ---------- tela Vendas ---------- */
.filtros { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; } .atalhos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .atalhos input, .atalhos select { width: auto; min-height: 44px; padding: 6px 12px; } .atalhos label { display: flex; gap: 6px; align-items: center; } .filtros .busca { margin: 0; }
.resumo-vendas { display: flex; gap: 10px 32px; flex-wrap: wrap; align-items: baseline; padding: 14px 18px; margin-bottom: 14px; background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; } .resumo-vendas strong { font-size: 1.35rem; margin-right: 6px; }
.tabela-vendas { background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; overflow: hidden; } .tabela-vendas .lv { display: grid; grid-template-columns: 118px 92px minmax(160px, 1.2fr) 124px minmax(130px, 1fr) 124px; gap: 12px; align-items: center; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--borda); background: none; color: inherit; font: inherit; text-align: left; }
.sem-lucro .lv { grid-template-columns: 118px 92px minmax(160px, 1.4fr) 124px minmax(130px, 1fr) !important; } .tabela-vendas button.lv { cursor: pointer; } .tabela-vendas button.lv:hover { background: var(--secundario); color: var(--sobre-secundario); } .tabela-vendas .lv:last-child { border-bottom: 0; } .tabela-vendas .cab { font-size: .88rem; font-weight: 700; color: var(--suave); } .lv .num { text-align: right; white-space: nowrap; } .lv > * { min-width: 0; } .lv.cancelada .valor { text-decoration: line-through; } .lv .selo { display: inline-block; margin-top: 2px; } .paginas { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
/* ---------- fiscal ---------- */
.quadros.fiscais { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 12px 0; } .etiqueta { display: inline-block; background: var(--aviso-fundo); color: var(--aviso-texto); border-radius: 8px; padding: 2px 10px; font-size: .82rem; font-weight: 700; } .ladrilho.apagado { opacity: .8; border-style: dashed; }
.barra select { width: auto; } .fiscais .numero { font-size: 1.4rem; } table.fiscal td { vertical-align: top; } table.fiscal td:first-child, table.fiscal td:last-child { white-space: normal; } .barra h1 { min-width: 170px; } table.fiscal { overflow-wrap: normal; } table.fiscal td:first-child { text-align: left; min-width: 220px; } table.fiscal td:last-child { min-width: 190px; }
#avisos { position: fixed; left: 0; right: 0; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 9; padding: 0 12px; }
.aviso { background: #17620A; color: #FFFFFF; border-radius: 12px; padding: 12px 20px; font-weight: 600; max-width: 640px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); } .aviso.erro { background: #A61B10; }
/* Na venda o espaço é dos produtos: em tela de notebook o menu fica estreito, com o nome embaixo do desenho. */
@media (min-width: 1101px) and (max-width: 1600px) {
  [data-tela="venda"] .com-menu { grid-template-columns: 96px minmax(0, 1fr); } [data-tela="venda"] .lateral { padding: 16px 6px; } [data-tela="venda"] .lateral a { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 2px; font-size: .78rem; min-height: 64px; text-align: center; overflow-wrap: normal; }
  [data-tela="venda"] .venda { grid-template-columns: minmax(0, 1fr) 390px; }
}
@media (max-width: 1250px) { .quadros { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .com-menu { display: block; } .so-celular { display: inline-flex; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: min(280px, 82vw); z-index: 6; padding-top: 24px; transform: translateX(-100%); visibility: hidden; transition: transform .18s, visibility .18s; overflow: auto; } .menu-aberto .lateral { transform: none; visibility: visible; box-shadow: 0 0 32px rgba(0, 0, 0, .4); }
}
@media (max-width: 900px) {
  .tabela-vendas { background: none; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 8px; overflow: visible; } .tabela-vendas .cab { display: none; } .tabela-vendas .lv, .tabela-vendas .lv:last-child { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; border: 1px solid var(--borda); border-radius: 14px; background: var(--superficie); } .lv .quando { order: 3; } .lv .numero-venda { order: 2; text-align: right; } .lv .quem { order: 1; } .lv .valor { order: 4; } .lv .forma { order: 5; } .lv .lucro { order: 6; } .sem-lucro .lv { grid-template-columns: minmax(0, 1fr) auto !important; } .lv .lucro::before { content: "lucro "; color: var(--suave); }
  .venda { grid-template-columns: minmax(0, 1fr); } .lado { position: static; max-height: none; } .pe { position: sticky; bottom: 0; background: var(--superficie); border-radius: 0 0 18px 18px; }
  main { padding: 12px 12px 30px; } .topo { padding: 8px 12px; gap: 6px 12px; } .topo .marca { font-size: 1.6rem; } .cartao { padding: 14px; } .lado { padding: 0; }
  .item { grid-template-columns: 48px minmax(0, 1fr) 44px; } .item > :nth-child(1) { order: 1; } .item > :nth-child(2) { order: 2; } .item > :nth-child(7) { order: 3; } .item > :nth-child(4) { order: 5; grid-column: 1 / 4; } .item > :nth-child(3) { order: 4; } .item > :nth-child(5) { order: 6; } .item > :nth-child(6) { order: 7; }
  .item .valor { grid-column: 1 / 4; } .item .desconto { grid-column: 1 / 4; display: flex; gap: 10px; align-items: center; } .item .desconto input { width: 120px; }
}
@media (max-width: 560px) { .quadros { grid-template-columns: minmax(0, 1fr); gap: 12px; } .endereco { grid-template-columns: 1fr 1fr; } .endereco > :nth-child(n) { grid-column: span 1; } .endereco > :nth-child(1) { grid-column: 1 / -1; } .com-menu .topo .marca { font-size: 1.35rem; } .topo .marca img { width: 36px; height: 36px; } .topo .marca { gap: 10px; } .topo .marca { flex-basis: 100%; } .topo nav { width: 100%; } .topo nav .b { flex: 1 1 auto; min-height: 44px; padding: 4px 8px; font-size: .92rem; } .topo nav .quem { overflow: hidden; white-space: nowrap; }  div.linha:not(.solta) > .cresce { flex: 1 1 190px; } }

/* ---- emissão de notas (fiscal, etapa 2) ---- */
.faixa-emissor { background: var(--superficie); border: 1px solid var(--borda); border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; }
.etiqueta.amb-desligado { background: var(--secundario); color: var(--sobre-secundario); }
.etiqueta.amb-homologacao { background: var(--aviso-fundo); color: var(--aviso-texto); }
.etiqueta.amb-producao { background: var(--certo); color: #FFFFFF; }
.etiqueta.alerta { background: var(--aviso-fundo); color: var(--erro); }
.opcoes-nota { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.opcoes-nota .opcao ul { padding-left: 18px; margin: 8px 0; }
.opcoes-nota .opcao li { margin: 4px 0; }
.resumo-nota { padding-left: 18px; line-height: 1.5; max-width: 70ch; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.filtros select, .filtros input { min-width: 0; max-width: 100%; }
.item-nota { padding: 10px 12px; }
.apagado { color: var(--suave); }
code { overflow-wrap: anywhere; }

/* Notas emitidas: filtros em grade, rótulo em cima, botões à direita */
.filtros-notas { margin-bottom: 14px; } .filtros-notas .grade { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); } .filtros-notas input, .filtros-notas select { min-width: 0; width: 100%; } .filtros-notas .botoes { justify-content: flex-end; margin-top: 8px; }
.total-nota .total-valor { font-size: 1.5rem; }
.total-nota { border-width: 2px; }
.janela:has(.conferencia) { width: min(760px, calc(100vw - 24px)); }
.conferencia { display: flex; flex-direction: column; gap: 12px; } .conferencia h3 { margin: 0 0 8px; font-size: 1.02rem; } .conferencia p { margin: 0; }
.conf-faixa { margin: 0; font-weight: 700; } .conf-producao { background: var(--erro); color: #fff; border-radius: 12px; padding: 12px; }
.conf-bloco { border: 1px solid var(--borda); border-radius: 14px; padding: 14px 16px; }
.conf-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px 18px; margin-top: 8px; }
.conf-grade .conf-par { flex-direction: column; align-items: flex-start; gap: 2px; } .conf-grade .conf-par span { font-size: .85rem; }
.conf-par { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; } .conf-par span { color: var(--suave); } .conf-par strong { overflow-wrap: anywhere; }
.conf-itens { display: flex; flex-direction: column; } .conf-item { padding: 10px 0; border-top: 1px solid var(--borda); display: flex; flex-direction: column; gap: 3px; } .conf-item:first-child { border-top: 0; padding-top: 0; }
.conf-item-topo { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; } .conf-item-linha { font-size: .95rem; }
.conf-totais { background: var(--fundo, transparent); } .conf-total { border-top: 2px solid var(--borda); margin-top: 6px; padding-top: 10px; } .conf-total span { color: var(--texto); font-weight: 700; } .conf-total strong { font-size: 1.5rem; }

/* ================= VISUAL 2.0 (proposta 02/12/2026): acabamento profissional, vale para todos os temas ================= */
:root { --sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 6px rgba(16, 24, 40, .06); --sombra-alta: 0 10px 30px rgba(16, 24, 40, .12); --raio: 14px; }
[data-tema="preto"] { --sombra: 0 1px 0 rgba(255, 255, 255, .03), 0 2px 10px rgba(0, 0, 0, .35); --sombra-alta: 0 12px 34px rgba(0, 0, 0, .5); }
body { font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.numero, .valorzao, .grande, .total-valor, .conf-total strong, td, .lv .num { font-variant-numeric: tabular-nums; }
/* topo */
.topo { position: sticky; top: 0; z-index: 4; padding: 10px 24px; border-bottom-width: 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.topo .marca { font-size: 1.55rem; font-weight: 800; } .topo .marca img { width: 38px; height: 38px; }
.topo .b { min-height: 40px; border-radius: 10px; background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.topo .b:hover { background: color-mix(in srgb, currentColor 10%, transparent); filter: none; }
main { padding: 24px 24px 48px; }
/* cartões, linhas, ladrilhos */
.cartao, .ladrilho, .tabela-vendas, .resumo-vendas, .frase, .faixa-emissor { box-shadow: var(--sombra); } /* linhas de lista sem sombra: leveza */
.cartao { border-radius: 16px; padding: 20px; } .linha.solta { box-shadow: none; }
.ladrilho { transition: transform .12s ease, box-shadow .12s ease; } .ladrilho:hover { transform: translateY(-1px); box-shadow: var(--sombra-alta); } /* listas longas sem animação (leveza) */
.ladrilhos { gap: 20px; margin: 36px auto; max-width: 980px; }
.ladrilho { min-height: 160px; padding: 26px 28px; border-radius: 20px; position: relative; overflow: hidden; }
.ladrilho::after { content: "→"; position: absolute; right: 24px; bottom: 20px; font-size: 1.3rem; opacity: .35; transition: transform .12s ease, opacity .12s ease; }
.ladrilho:hover::after { transform: translateX(4px); opacity: .8; }
.ladrilho strong { font-size: 1.35rem; letter-spacing: -.01em; }
/* botões e campos */
.b { border-radius: 10px; font-weight: 650; transition: background-color .12s ease, box-shadow .12s ease, transform .06s ease; }
.b:active { transform: translateY(1px); } .b.principal { box-shadow: 0 1px 2px rgba(16, 24, 40, .18); }
.b:not(.principal):not(.perigo):not(.marcado) { background: var(--superficie); }
.b:not(.principal):not(.perigo):not(.marcado):hover { background: var(--secundario); filter: none; }
input, select, textarea { border-radius: 10px; transition: border-color .12s ease, box-shadow .12s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forte); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forte) 22%, transparent); }
.campo > span { font-weight: 600; font-size: .82rem; }
/* menu lateral */
.lateral { padding: 18px 12px; gap: 2px; } .lateral a { min-height: 44px; border-radius: 10px; font-weight: 600; transition: background-color .12s ease; }
.lateral a[aria-current] { box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
/* tabelas e etiquetas */
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); font-weight: 700; } tbody tr:hover td { background: color-mix(in srgb, var(--secundario) 55%, transparent); }
.etiqueta { border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.caixa-aviso { border-radius: 12px; border: 1px solid color-mix(in srgb, var(--aviso-texto) 18%, transparent); }
/* janelas */
.janela { border-radius: 20px; padding: 26px; box-shadow: var(--sombra-alta); border-color: transparent; } .janela::backdrop { background: rgba(10, 12, 16, .55); } /* sem desfoque: pesa em computador simples */
.janela h2 { text-transform: none; letter-spacing: -.01em; font-size: 1.3rem; font-weight: 750; }
/* painel */
.quadro .numero { font-size: 1.85rem; letter-spacing: -.02em; } .frase { border-left-width: 5px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* início: saudação e ícones */
.boas-vindas { max-width: 980px; margin: 28px auto 0; } .boas-vindas h1 { font-size: 1.9rem; } .boas-vindas p { margin: 4px 0 0; font-size: 1.05rem; }
.boas-vindas + .ladrilhos { margin-top: 22px; }
.ladrilho { justify-content: flex-start; align-items: flex-start; padding-right: 56px; } .ladrilho.menor { min-height: 0; }
.topo .b.b:not(.principal):not(.perigo):not(.marcado) { background: transparent; color: var(--sobre-topo); border-color: color-mix(in srgb, var(--sobre-topo) 30%, transparent); }
.topo .b.b:not(.principal):not(.perigo):not(.marcado):hover { background: color-mix(in srgb, var(--sobre-topo) 12%, transparent); }
.icone-ladrilho { width: 44px; height: 44px; padding: 10px; margin-bottom: 10px; border-radius: 12px; background: var(--secundario); fill: none; stroke: var(--texto); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dica-atalhos { flex-basis: auto; color: var(--suave); font-size: .8rem; margin-right: 8px; }
/* lápis (admin) ao lado de cada venda: botão separado, por cima da ponta da linha */
.lv-com-lapis { position: relative; } .lv-com-lapis .lv, .tabela-vendas:not(.sem-lucro) .lv.cab { padding-right: 64px; }
.lv-com-lapis .lapis { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-height: 40px; width: 40px; padding: 0; font-size: 1.1rem; }
.opcoes-alterar { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
@media (max-width: 900px) { .lv-com-lapis .lapis { top: 12px; transform: none; } }
.topo .quem { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; font-weight: 650; opacity: .9; } /* nome do usuário: só texto (para trocar de usuário: Sair) */
.lapis-texto { flex: none; font-size: .88rem; font-weight: 650; color: var(--suave); padding: 6px 10px; border: 1px solid var(--borda); border-radius: 8px; white-space: nowrap; } button.linha:hover .lapis-texto { color: var(--texto); border-color: var(--forte); }
