/* ===================================================================
   atacado.css -- o tira-pedidos do cliente (at-*).
   Cores e fontes da rede (as mesmas da radio e da vitrine): vermelho =
   acao, amarelo = destaque, tinta = informacao.
   Nenhum estilo em linha: a CSP do site (style-src 'self') nao deixa.

   A LISTA e o centro de tudo. Ela tem dois desenhos, com o mesmo HTML:
     celular  (< 900px)  foto | nome sobre "fabricante . estoque . preco" | quantidade
     computador          tabela de 7 colunas, 34px por linha (28px no modo compacto)
   =================================================================== */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("fontes/archivo-latin.cd56e2ec63d7.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fontes/inter-latin.260c81a4759b.woff2") format("woff2");
}

:root {
  --vermelho: #D81E2C; --vermelho-2: #B3141F; --vermelho-fundo: #FDECEE;
  --canario: #FFF212; --canario-2: #FFD100; --canario-fundo: #FFFCDC;
  --tinta: #17110F; --tinta-2: #453B37; --tinta-3: #6E605A;
  --papel: #FFFFFF; --fundo: #FAF7F5; --fundo-2: #F1ECE9; --linha: #E9E2DE; --linha-2: #D8CFCA;
  --ok: #0B7A46; --ok-fundo: #E8F5EE; --alerta: #9C5400; --alerta-fundo: #FFF2E0;
  --raio: 12px; --raio-p: 8px;
  --sombra: 0 1px 2px rgba(23, 17, 15, .05), 0 6px 18px rgba(23, 17, 15, .06);
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --barra: 68px;
  --colunas: 40px minmax(0, 1fr) 190px 124px 96px 96px 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--texto); font-size: 15px; line-height: 1.45; color: var(--tinta); background: var(--fundo); }
h1, h2 { font-family: var(--display); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 22px; }
h1 b { color: var(--vermelho); }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
:focus-visible { outline: 3px solid var(--canario-2); outline-offset: 2px; }
/* Com !important: um campo "so para leitor de tela" dentro de um formulario nao pode herdar a largura
   dos campos de verdade -- o campo escondido do nome de usuario alargava a pagina inteira no celular. */
.at-so-leitor { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.at-direita { text-align: right; }
.at-centro { text-align: center; }
.at-so-largo { display: none; }

/* ---------------- Moldura ---------------- */
.at-topo { display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 52px; background: var(--papel); border-bottom: 1px solid var(--linha); }
.at-marca { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.at-marca b { color: var(--vermelho); }
.at-marca span { display: none; }
.at-nav { display: flex; gap: 2px; margin-left: auto; }
.at-nav__l { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: var(--raio-p); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--tinta-2); white-space: nowrap; }
.at-nav__l:hover { background: var(--fundo-2); }
.at-nav__l--ativa { color: var(--vermelho); background: var(--vermelho-fundo); }
.at-conta { position: relative; }
.at-conta summary { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: var(--raio-p); cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; }
.at-conta summary::-webkit-details-marker { display: none; }
.at-conta summary span { display: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-conta summary:hover, .at-conta[open] summary { background: var(--fundo-2); }
.at-conta__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(300px, 86vw); display: grid; gap: 8px; padding: 14px; background: var(--papel); border: 1px solid var(--linha-2); border-radius: var(--raio); box-shadow: var(--sombra); font-size: 13.5px; color: var(--tinta-2); }
.at-conta__menu .at-btn { width: 100%; }
.at-corpo { padding: 0 0 calc(var(--barra) + 24px + env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; }
.at--porta .at-corpo, .at-corpo:only-child { padding-bottom: 32px; }

/* ---------------- Botoes e avisos ---------------- */
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--linha-2); border-radius: var(--raio-p); background: var(--papel); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.at-btn:hover { background: var(--fundo-2); }
.at-btn--principal { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.at-btn--principal:hover { background: var(--vermelho-2); }
.at-btn--fantasma { border-color: transparent; background: transparent; color: var(--tinta-2); }
.at-btn--perigo { color: var(--vermelho-2); border-color: var(--vermelho); }
.at-btn--grande { min-height: 52px; font-size: 17px; width: 100%; }
.at-btn:disabled, .at-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.at-avisos { list-style: none; margin: 12px; padding: 0; display: grid; gap: 8px; }
.at-aviso { margin: 12px; padding: 12px 14px; border-radius: var(--raio-p); border: 1px solid var(--linha-2); background: var(--papel); font-size: 14.5px; }
.at-avisos .at-aviso { margin: 0; }
.at-aviso ul { margin: 6px 0 0; padding-left: 18px; }
.at-aviso--ok { background: var(--ok-fundo); border-color: #BFE3CF; color: #07552F; }
.at-aviso--erro { background: var(--vermelho-fundo); border-color: #F5B5BB; color: #7D0D15; }
.at-aviso--atencao { background: var(--alerta-fundo); border-color: #F3D2A2; color: #6B3A00; }
.at-aviso--info { background: var(--canario-fundo); border-color: #F0E58A; }
.at-aviso--link { display: block; text-decoration: none; }
.at-toast { position: fixed; left: 50%; bottom: calc(var(--barra) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: min(520px, 92vw); padding: 11px 16px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 14px; box-shadow: var(--sombra); text-align: center; }
.at-nota { margin: 8px 12px; font-size: 13px; color: var(--tinta-3); }

/* ---------------- Busca e filtros (ficam presos no topo) ---------------- */
.at-ferramentas { position: sticky; top: 0; z-index: 20; background: var(--fundo); padding: 8px 12px 6px; border-bottom: 1px solid var(--linha); }
.at-busca { position: relative; display: flex; align-items: center; }
.at-busca > .ico { position: absolute; left: 13px; font-size: 18px; color: var(--tinta-3); pointer-events: none; }
.at-busca input { width: 100%; height: 48px; padding: 0 44px 0 40px; border: 2px solid var(--linha-2); border-radius: var(--raio); background: var(--papel); font-size: 16px; -webkit-appearance: none; appearance: none; }
.at-busca input:focus { border-color: var(--vermelho); outline: none; }
.at-busca input::placeholder { font-size: 14px; }
.at-busca input::-webkit-search-cancel-button { display: none; }
.at-busca__limpar { position: absolute; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--tinta-3); font-size: 16px; }
.at-busca--ocupada input { background-image: linear-gradient(90deg, transparent, var(--canario-fundo), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: at-corre 1s linear infinite; }
@keyframes at-corre { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.at-filtros { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.at-filtros::-webkit-scrollbar { display: none; }
.at-filtros select { flex: none; height: 34px; max-width: 190px; padding: 0 28px 0 10px; border: 1px solid var(--linha-2); border-radius: 999px; background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236E605A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; font-size: 13.5px; -webkit-appearance: none; appearance: none; }
.at-filtros select.at-ligado { border-color: var(--vermelho); background-color: var(--vermelho-fundo); font-weight: 600; }
.at-chip { flex: none; position: relative; }
.at-chip input { position: absolute; opacity: 0; inset: 0; }
.at-chip span { display: flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--linha-2); border-radius: 999px; background: var(--papel); font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.at-chip input:checked + span { border-color: var(--vermelho); background: var(--vermelho-fundo); color: var(--vermelho-2); font-weight: 600; }
.at-chip input:focus-visible + span { outline: 3px solid var(--canario-2); outline-offset: 2px; }
.at-chip--modo { display: none; }
.at-corrigido { margin: 8px 12px 0; font-size: 14px; color: var(--alerta); }
.at-dica { display: flex; align-items: center; gap: 12px; margin: 10px 12px 0; padding: 12px 14px; border-radius: var(--raio); background: var(--canario-fundo); border: 1px solid #F0E58A; font-size: 14.5px; }
.at-dica p { flex: 1; }

/* ---------------- A lista ---------------- */
.at-cabeca { display: none; }
.at-lista { background: var(--papel); border-block: 1px solid var(--linha); }
.at-linha { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "foto nome qtd" "foto meta qtd"; column-gap: 10px; row-gap: 1px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--linha); min-height: 62px; }
.at-linha:last-child { border-bottom: 0; }
.at-linha--tem { background: var(--canario-fundo); box-shadow: inset 4px 0 0 var(--canario-2); }
.at-linha--fora .at-nome, .at-linha--fora .at-preco { color: var(--tinta-3); }
.at-foto { grid-area: foto; position: relative; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--linha); border-radius: var(--raio-p); background: var(--fundo); color: var(--linha-2); font-size: 20px; cursor: zoom-in; overflow: hidden; }
.at-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.at-nome { grid-area: nome; align-self: end; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-regra { font-weight: 600; font-size: 11.5px; color: var(--alerta); white-space: nowrap; }
.at-meta { grid-area: meta; align-self: start; display: flex; align-items: baseline; column-gap: 8px; font-size: 12.5px; color: var(--tinta-3); min-width: 0; }
.at-fab { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-fab:empty { display: none; }
.at-faixa { flex: none; white-space: nowrap; font-weight: 600; color: var(--ok); }
.at-faixa--0 { color: var(--tinta-3); }
.at-faixa--1 { color: var(--alerta); }
.at-preco { flex: none; margin-left: auto; font-size: 15px; font-weight: 700; color: var(--tinta); white-space: nowrap; font-variant-numeric: tabular-nums; }
.at-preco small { font-size: 11px; font-weight: 600; color: var(--tinta-3); }
.at-qtd { grid-area: qtd; position: relative; display: flex; align-items: center; }
.at-qtd__i { width: 66px; height: 46px; padding: 0 4px; border: 2px solid var(--linha-2); border-radius: var(--raio-p); background: var(--papel); text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.at-qtd__i::placeholder { color: var(--linha-2); font-weight: 500; }
.at-qtd__i:focus { border-color: var(--vermelho); outline: none; background: #fff; }
.at-qtd__i:disabled { background: var(--fundo-2); border-style: dashed; }
.at-linha--tem .at-qtd__i { border-color: var(--tinta); }
.at-sinal { position: absolute; right: -7px; top: -5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--papel); background: transparent; opacity: 0; transition: opacity .2s; }
.at-linha[data-estado="enviando"] .at-sinal { opacity: 1; background: var(--canario-2); }
.at-linha[data-estado="salvo"] .at-sinal { opacity: 1; background: var(--ok); }
.at-linha[data-estado="pendente"] .at-sinal { opacity: 1; background: var(--alerta); }
.at-linha[data-estado="erro"] .at-sinal { opacity: 1; background: var(--vermelho); }
.at-total { display: none; }
.at-vazio { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; text-align: center; color: var(--tinta-2); }
.at-mais { display: grid; place-items: center; padding: 14px; }
.at--sem-rede .at-ferramentas::after { content: "Sem internet. O que você digitar fica guardado e sobe quando a conexão voltar."; display: block; margin-top: 6px; padding: 6px 10px; border-radius: var(--raio-p); background: var(--alerta-fundo); color: #6B3A00; font-size: 13px; }

/* ---------------- Barra do pedido ---------------- */
.at-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: var(--barra); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--linha-2); box-shadow: 0 -6px 18px rgba(23, 17, 15, .07); }
.at-barra__resumo { flex: 1; min-width: 0; }
.at-barra__linha { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.at-barra__linha strong { font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.at-barra__linha span { font-size: 13px; color: var(--tinta-3); overflow: hidden; text-overflow: ellipsis; }
.at-barra__falta { font-size: 12.5px; color: var(--alerta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-barra__pct { display: block; width: 100%; height: 4px; margin-top: 3px; border: 0; border-radius: 4px; background: var(--fundo-2); -webkit-appearance: none; appearance: none; }
.at-barra__pct::-webkit-progress-bar { background: var(--fundo-2); border-radius: 4px; }
.at-barra__pct::-webkit-progress-value { background: var(--alerta); border-radius: 4px; }
.at-barra__pct::-moz-progress-bar { background: var(--alerta); border-radius: 4px; }
.at-barra__ir { min-height: 50px; padding: 0 18px; font-size: 16px; }

/* ---------------- Janela do produto ---------------- */
.at-janela { width: min(520px, 94vw); max-height: 92vh; padding: 18px; border: 0; border-radius: var(--raio); box-shadow: 0 24px 60px rgba(23, 17, 15, .35); overflow: auto; }
.at-janela::backdrop { background: rgba(23, 17, 15, .55); }
.at-janela__fechar { position: absolute; right: 8px; top: 8px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fundo-2); font-size: 18px; cursor: pointer; }
.at-janela__foto { display: grid; place-items: center; min-height: 220px; margin-bottom: 12px; border-radius: var(--raio-p); background: var(--fundo); color: var(--linha-2); font-size: 56px; }
.at-janela__foto img { max-width: 100%; max-height: 52vh; object-fit: contain; background: #fff; border-radius: var(--raio-p); }
/* Com a foto na janela, o desenho "sem foto" sai: os dois juntos apareciam um em cima do outro. */
.at-janela__foto--tem { background: #fff; }
.at-janela__foto--tem .ico { display: none; }
.at-janela h2 { font-size: 18px; padding-right: 36px; }
.at-ficha { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 12px 0 0; font-size: 14px; }
.at-ficha dt { color: var(--tinta-3); }
.at-ficha dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------------- Paginas (revisar, pedidos, pedido) ---------------- */
.at-titulo { padding: 14px 12px 8px; }
.at-titulo__sub { font-size: 13.5px; color: var(--tinta-3); margin-top: 2px; }
.at-voltar { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--tinta-2); text-decoration: none; }
.at-fecho { display: grid; gap: 12px; padding: 12px; }
.at-bloco { margin: 0; padding: 14px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); min-width: 0; }
.at-bloco legend { padding: 0 6px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.at-bloco legend small { font-weight: 500; color: var(--tinta-3); }
.at-opcao { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 4px; border-bottom: 1px solid var(--linha); cursor: pointer; }
.at-opcao:last-of-type { border-bottom: 0; }
.at-opcao input { width: 20px; height: 20px; accent-color: var(--vermelho); }
.at-opcao__t small { color: var(--tinta-3); }
.at-opcao__d { text-align: right; font-size: 13px; }
.at-opcao__d em { font-style: normal; font-weight: 600; color: var(--ok); }
.at-opcao__d small { display: block; color: var(--tinta-3); }
.at-opcao--fora { opacity: .55; cursor: not-allowed; }
.at-sub { padding: 6px 4px 10px 36px; font-size: 14px; color: var(--tinta-2); }
.at-sub select, .at-bloco textarea { width: 100%; padding: 10px; border: 1px solid var(--linha-2); border-radius: var(--raio-p); background: var(--papel); font-size: 16px; }
.at-prazo { margin-top: 8px; font-size: 13px; color: var(--tinta-3); }
.at-totais p { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14.5px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.at-totais .at-totais__total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--linha); font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--tinta); }
.at-totais .at-barra__falta { display: block; margin: 8px 0 0; font-size: 14px; white-space: normal; }
.at-totais .at-btn { margin-top: 12px; }
.at-totais .at-nota { margin: 10px 0 0; }
.at-pedidos { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 8px; }
.at-pedido { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); text-decoration: none; }
.at-pedido:hover { border-color: var(--linha-2); box-shadow: var(--sombra); }
.at-pedido__n { font-family: var(--display); font-weight: 700; font-size: 17px; }
.at-pedido__d { font-size: 13px; color: var(--tinta-3); }
.at-pedido__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.at-estado { justify-self: end; align-self: center; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--fundo-2); font-family: var(--texto); font-size: 12.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.at-estado--enviado { background: var(--canario-fundo); color: #6B5A00; }
.at-estado--confirmado, .at-estado--no_erp, .at-estado--separacao, .at-estado--saiu, .at-estado--pronto { background: var(--ok-fundo); color: #07552F; }
.at-estado--entregue { background: var(--fundo-2); color: var(--tinta-2); }
.at-estado--cancelado { background: var(--vermelho-fundo); color: #7D0D15; }
.at-sucesso { margin: 4px 12px 12px; padding: 16px; border-radius: var(--raio); background: var(--ok-fundo); border: 1px solid #BFE3CF; color: #07552F; }
.at-sucesso__t { font-family: var(--display); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.at-acoes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.at-acoes form { display: contents; }
.at-tabela-rolagem { overflow-x: auto; background: var(--papel); border-block: 1px solid var(--linha); }
/* Larguras FIXAS nas colunas de numero e quebra em qualquer ponto no nome: nome de remedio tem palavra de
   30 letras sem espaco ("DIPIRONA+CAFEINA+CLORFENIRAMINA"), que empurrava preco e total para fora da tela. */
.at-itens { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.at-itens th { padding: 8px 8px; background: var(--fundo-2); font-size: 12px; font-weight: 600; color: var(--tinta-3); text-align: left; white-space: nowrap; }
.at-itens th:first-child, .at-itens td:first-child { padding-left: 12px; }
.at-itens th:last-child, .at-itens td:last-child { padding-right: 12px; }
.at-itens th:nth-child(2) { width: 50px; }
.at-itens th:nth-child(3) { width: 74px; }
.at-itens th:nth-child(4) { width: 92px; }
.at-itens th.at-direita { text-align: right; }
.at-itens td { padding: 9px 8px; border-top: 1px solid var(--linha); vertical-align: top; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.at-itens td small { display: block; font-size: 12.5px; color: var(--tinta-3); }
.at-itens__corte { background: var(--alerta-fundo); }
.at-itens td small.at-itens__aviso { color: #6B3A00; font-weight: 600; }
.at-duas { display: grid; gap: 12px; padding: 12px; }
.at-cancelar { margin: 0 12px 12px; font-size: 14px; color: var(--tinta-2); }
.at-cancelar summary { cursor: pointer; padding: 8px 0; color: var(--tinta-3); }
.at-cancelar p { margin: 6px 0 10px; }

/* ---------------- Entrada ---------------- */
.at-porta { max-width: 420px; margin: 0 auto; padding: 36px 20px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.at-porta__marca { border-radius: 18px; }
.at-porta__quem { font-weight: 600; color: var(--tinta-2); }
.at-porta .at-aviso { margin: 0; width: 100%; text-align: left; }
.at-form { width: 100%; display: grid; gap: 8px; text-align: left; }
.at-form label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.at-form label small { font-weight: 500; color: var(--tinta-3); }
.at-form input[type="text"], .at-form input[type="password"] { width: 100%; height: 52px; padding: 0 14px; border: 2px solid var(--linha-2); border-radius: var(--raio); background: var(--papel); font-size: 17px; }
.at-form input:focus { border-color: var(--vermelho); outline: none; }
.at-senha { position: relative; }
.at-senha input { padding-right: 52px !important; }
.at-senha__ver { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; font-size: 20px; color: var(--tinta-3); cursor: pointer; }
.at-marcar { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500 !important; font-size: 14px; color: var(--tinta-2); cursor: pointer; }
.at-marcar input { width: 22px; height: 22px; margin: 0; accent-color: var(--vermelho); }
.at-form .at-btn { margin-top: 10px; }
.at-porta__rodape { font-size: 14px; color: var(--tinta-2); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.at-porta__nota { color: var(--tinta-3); font-size: 13px; }

/* ===================================================================
   COMPUTADOR: a lista vira tabela.
   =================================================================== */
@media (min-width: 900px) {
  :root { --barra: 64px; }
  .at-so-largo { display: inline; }
  .at-topo { padding: 6px 20px; gap: 16px; }
  .at-marca span, .at-conta summary span { display: inline; }
  .at-ferramentas { padding: 10px 20px 0; display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
  .at-filtros { margin-top: 0; }
  .at-filtros select { max-width: 176px; }
  .at-chip--modo { display: block; margin-left: auto; }
  .at-busca input { height: 44px; }

  .at-cabeca { display: grid; grid-template-columns: var(--colunas); column-gap: 12px; padding: 6px 20px; background: var(--fundo-2); border-bottom: 1px solid var(--linha-2); font-size: 12px; font-weight: 600; color: var(--tinta-3); }
  .at-ferramentas .at-cabeca { grid-column: 1 / -1; margin: 0 -20px; border-top: 1px solid var(--linha); border-bottom: 0; }
  .at-fab:empty { display: block; }
  .at-linha { grid-template-columns: var(--colunas); grid-template-areas: none; column-gap: 12px; padding: 2px 20px; min-height: 36px; }
  .at-linha > *, .at-meta > * { grid-area: auto; }
  .at-linha:hover { background: var(--fundo); }
  .at-linha--tem, .at-linha--tem:hover { background: var(--canario-fundo); }
  .at-linha:focus-within { background: #FFF8C4; }
  .at-foto { width: 30px; height: 30px; font-size: 15px; border-radius: 6px; }
  .at-nome { align-self: center; display: block; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
  .at-meta { display: contents; }
  .at-fab { max-width: none; font-size: 13px; color: var(--tinta-2); align-self: center; }
  .at-faixa { font-size: 12.5px; align-self: center; }
  .at-preco { margin: 0; text-align: right; font-size: 14px; align-self: center; }
  .at-qtd { justify-content: center; }
  .at-qtd__i { width: 78px; height: 28px; font-size: 14.5px; border-width: 1px; border-radius: 6px; }
  .at-total { display: block; text-align: right; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .at-sinal { right: -4px; top: -4px; width: 10px; height: 10px; }

  .at--compacto .at-linha { min-height: 28px; padding-block: 0; grid-template-columns: 0 minmax(0, 1fr) 190px 124px 96px 96px 104px; }
  .at--compacto .at-cabeca { grid-template-columns: 0 minmax(0, 1fr) 190px 124px 96px 96px 104px; }
  .at--compacto .at-foto { visibility: hidden; width: 0; border: 0; }
  .at--compacto .at-qtd__i { height: 24px; }

  .at-barra { padding-inline: max(20px, calc((100vw - 1280px) / 2 + 20px)); }
  .at-barra__linha strong { font-size: 22px; }
  .at-titulo { padding: 18px 20px 10px; }
  .at-fecho, .at-duas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px 20px; align-items: start; }
  .at-fecho .at-totais { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 12px; }
  .at-fecho .at-bloco:not(.at-totais) { grid-column: 1; }
  .at--revisar .at-corpo { padding-bottom: 32px; }
  .at-pedidos, .at-acoes, .at-aviso, .at-avisos, .at-nota, .at-sucesso, .at-cancelar, .at-corrigido, .at-dica { margin-inline: 20px; padding-inline: 14px; }
  .at-pedidos, .at-acoes { padding-inline: 0; }
  .at-pedido { grid-template-columns: 120px minmax(0, 1fr) 140px 130px; align-items: center; }
  .at-pedido__d { grid-column: 2; grid-row: 1; }
  .at-estado { grid-column: 3; grid-row: 1; }
  .at-pedido__v { grid-column: 4; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .at-topo, .at-barra, .at-acoes, .at-cancelar { display: none; } }
