/* styles.css — Conferência de Benefícios · RN Tintas × Alelo
   Visual Nubank (cartões arredondados, respiro, uma cor de destaque por contexto)
   sobre o Design System oficial da RN Tintas (branding book):
   vermelho #e40421 · azul #26348b · navy #000942 · profundo #180094 ·
   verde neon #3cff00 · branco · cinza #f0f0f0 · texto #222.
   Só os blocos de marca Alelo usam as cores da Alelo (--al-*). */

:root {
  /* ---- RN Tintas — cores oficiais do branding book ---- */
  --rn-red:     #e40421;   /* primário: ação, alerta, valor negativo */
  --rn-blue:    #26348b;   /* secundário: navegação, dados, badges info */
  --rn-navy:    #000942;   /* base escura: header, faixas, overlays */
  --rn-navy-2:  #0b1560;
  --rn-navy-3:  #141a6e;
  --rn-deep:    #180094;   /* profundo: cards de destaque, contraste */
  --rn-green:   #3cff00;   /* destaque/ativo: sucesso, conferido, tags */
  --rn-white:   #ffffff;
  /* ---- Alelo (marca da fonte Alelo — exceção permitida) ---- */
  --al-green:   #008060;
  --al-lime:    #bdd753;
  --al-deep:    #015850;
  --al-deep-2:  #026a54;
  --al-deep-3:  #01463f;
  /* ---- neutros (cinzas do próprio branding book) ---- */
  --ink:        #222222;
  --ink-2:      #555555;
  --muted:      #888888;
  --line:       #e0e0e0;
  --line-2:     #eeeeee;
  --paper:      #ffffff;
  --paper-2:    #f0f0f0;   /* superfície neutra do DS */
  --paper-3:    #f7f7f8;
  /* ---- tints derivados das cores do DS (via alpha, como as sombras) ---- */
  --blue-tint:  rgba(38,52,139,.08);   /* zebra / chip azul */
  --blue-tint-2:rgba(38,52,139,.05);
  --green-tint: rgba(60,255,0,.16);    /* sucesso / conferido */
  --green-line: rgba(60,255,0,.55);
  --red-tint:   rgba(228,4,33,.10);
  --deep-tint:  rgba(24,0,148,.10);
  /* ---- tipografia (mantida do projeto) ---- */
  --disp: "Archivo", "Open Sans", system-ui, sans-serif;
  --sans: "Open Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* ---- forma / sombra (sombra em Navy, nunca preto puro) ---- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow:    0 1px 2px rgba(0,9,66,.04), 0 6px 20px rgba(0,9,66,.06);
  --shadow-lg: 0 10px 40px rgba(0,9,66,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper-2); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { font-family: var(--disp); letter-spacing: -.02em; margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.oculto { display: none !important; }

/* ===================== HEADER (topbar RN navy + Alelo verde angulado) ===================== */
.topbar { position: sticky; top: 0; z-index: 50; height: 66px; display: flex; align-items: stretch; overflow: hidden; box-shadow: 0 1px 0 rgba(0,9,66,.10); }
.topbar-rn { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 13px; padding: 0 52px 0 clamp(16px,4vw,40px); background: linear-gradient(96deg, var(--rn-navy) 0%, #101c66 58%, var(--rn-blue) 100%); }
.topbar-logo { height: 25px; width: auto; display: block; flex: none; }
.topbar-div { width: 1px; height: 26px; background: rgba(255,255,255,.16); flex: none; }
.topbar-titulos { flex: none; display: flex; flex-direction: column; gap: 2px; }
.topbar-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 600; white-space: nowrap; }
.topbar-app { font-family: var(--disp); font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
.topbar-flex { flex: 1; min-width: 8px; }
.topbar-al { flex: none; margin-left: -40px; align-items: center; gap: 12px; padding: 0 clamp(16px,4vw,40px) 0 58px; background: linear-gradient(96deg, var(--al-deep) 0%, var(--al-green) 100%); clip-path: polygon(38px 0, 100% 0, 100% 100%, 0 100%); display: flex; }
.topbar-al > * { align-self: center; }
.topbar-alelo { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar-alelo-chip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff; }
.topbar-alelo-chip img { width: 18px; height: 18px; display: block; }
.topbar-alelo-nome { font-family: var(--disp); font-weight: 800; font-size: 18px; color: #fff; line-height: 1; letter-spacing: -.01em; }
.topbar-alelo-nome .lime { color: var(--al-lime); }
.topbar-div-al { width: 1px; height: 26px; background: rgba(255,255,255,.22); flex: none; }
.tb-btn { appearance: none; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; flex: none; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.tb-ghost { border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.86); }
.tb-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.42); }
.tb-ghost-al { border: 1px solid rgba(255,255,255,.26); background: transparent; color: #fff; font-family: var(--sans); }
.tb-ghost-al:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.tb-solid { border: 0; background: #fff; color: var(--al-deep); font-family: var(--disp); font-weight: 700; }
.tb-solid:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.tb-export { border: 0; background: var(--rn-red); color: #fff; font-family: var(--disp); font-weight: 700; box-shadow: 0 4px 16px rgba(228,4,33,.32); }
.tb-export:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(228,4,33,.4); }
.topbar-al .user-nome { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.8); flex: none; }
@media (max-width: 720px){ .topbar-titulos, .topbar-al .user-nome { display: none; } }

/* ===================== TRILHA DE PASSOS (1–4) ===================== */
.trilha { position: sticky; top: 66px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 clamp(16px,4vw,40px); }
.trilha-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.trilha-inner::-webkit-scrollbar { display: none; }
.passo { appearance: none; background: none; border: 0; position: relative; display: flex; align-items: center; gap: 11px; padding: 14px 26px 13px 4px; white-space: nowrap; cursor: pointer; text-align: left; }
.passo-circ { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; flex: none; background: #f0f0f0; color: #888; transition: background .18s, color .18s; }
.passo.ativo .passo-circ { background: var(--rn-red); color: #fff; }
.passo.feito .passo-circ { background: var(--rn-navy); color: #fff; }
.passo.feito .passo-circ::after { content: "✓"; }
.passo.feito .passo-circ { font-size: 0; }
.passo.feito .passo-circ::after { font-size: 12px; }
.passo-txt { display: flex; flex-direction: column; gap: 1px; }
.passo-etapa { font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: #888; font-weight: 700; }
.passo-rot { font-family: var(--disp); font-size: 15px; font-weight: 700; color: #bbb; transition: color .18s; }
.passo.ativo .passo-rot { color: var(--ink); }
.passo.feito .passo-rot { color: var(--ink-2); }
.passo.ativo::after { content: ""; position: absolute; left: 4px; right: 26px; bottom: 0; height: 3px; background: var(--rn-red); border-radius: 3px 3px 0 0; }

/* ===================== WIZARD (seções dos passos) ===================== */
main { display: block; }
.wiz-sec { max-width: 1080px; margin: 0 auto; padding: 52px clamp(18px,4vw,32px) 110px; animation: wizUp .42s cubic-bezier(.2,.8,.2,1) both; }
.wiz-sec[data-wiz="mes"] { max-width: 780px; }
.wiz-sec[data-wiz="conferir"] { max-width: 1000px; }
.wiz-sec[data-wiz="resultado"] { max-width: 1400px; padding: 26px clamp(16px,3vw,32px) 110px; }
@keyframes wizUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wiz-h1 { font-size: clamp(26px,3.6vw,34px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; line-height: 1.13; }
.wiz-sub { color: var(--ink-2); font-size: 15px; margin: 0 0 30px; max-width: 60ch; }
.wiz-acoes { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.wiz-passo-n { font-size: 13px; color: var(--muted); max-width: 40ch; }
.wiz-aviso { background: var(--red-tint); color: var(--rn-red); font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: var(--r-sm); margin-top: 18px; }

/* botões vermelhos do wizard */
.btn-red { appearance: none; border: 0; background: var(--rn-red); color: #fff; font-family: var(--disp); font-size: 15px; font-weight: 700; padding: 15px 30px; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 20px rgba(228,4,33,.26); transition: transform .14s, box-shadow .16s, filter .16s; }
.btn-red:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(228,4,33,.32); }
.btn-red:disabled { background: #d7d7d7; box-shadow: none; cursor: not-allowed; color: #fff; }
.btn-grande { font-size: 16px; font-weight: 800; padding: 17px 38px; }
.btn-pill-ghost { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--rn-blue); font-size: 13px; font-weight: 700; padding: 11px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: border-color .16s, background .16s; }
.btn-pill-ghost:hover { border-color: var(--rn-blue); background: #f5f6fc; }

/* ---- Passo 1: card do mês ---- */
.card-mes { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; }
.card-mes-label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.card-mes-input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 19px; font-weight: 700; color: var(--rn-navy); background: #fbfcfd; font-variant-numeric: tabular-nums; outline: none; transition: border-color .16s, box-shadow .16s; }
.card-mes-input:focus { border-color: var(--rn-blue); box-shadow: 0 0 0 4px rgba(38,52,139,.1); }
.card-mes-atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.card-mes-atalhos-rot { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
#mesesRapidos { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.atalho-mes { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: border-color .16s, color .16s, background .16s; }
.atalho-mes:hover { border-color: var(--rn-blue); color: var(--rn-blue); background: #f5f6fc; }

/* ---- Passo 2: quadros de upload ---- */
.wiz-arq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.grupo-arq-label { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.grupo-arq-label .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.grupo-arq-label .dot.al { background: var(--al-green); }
.grupo-arq-label .dot.rn { background: var(--rn-red); }
.grupo-arq-label span:last-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.quadros { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 30px; }
.quadros.duo { max-width: 720px; }
.quadro { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; cursor: pointer; min-height: 132px; text-align: left; transition: border-color .16s, box-shadow .16s, background .16s; }
.quadro:hover { border-color: var(--rn-blue); box-shadow: var(--shadow); }
.quadro.drag { border-color: var(--rn-blue); background: #f5f6fc; border-style: dashed; }
.quadro.ok { border-color: var(--green-line); background: rgba(60,255,0,.05); }
.quadro.erro { border-color: var(--rn-red); background: var(--red-tint); }
.quadro input[type=file] { display: none; }
.quadro-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.quadro.ok .quadro-tag { color: var(--al-green); }
.quadro-nome { font-size: 16.5px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); margin-top: 8px; }
.quadro-arq { font-size: 11.5px; color: var(--muted); margin-top: 5px; word-break: break-all; }
.quadro-flex { flex: 1; min-height: 10px; }
.quadro-estado { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.quadro.ok .quadro-estado { color: var(--al-green); }
.quadro.erro .quadro-estado { color: var(--rn-red); }

/* barra de progresso sticky */
.barra-prog { position: sticky; bottom: 18px; margin-top: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 2px 4px rgba(0,9,66,.04), 0 14px 34px rgba(0,9,66,.09); padding: 20px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.barra-prog-txt { flex: 1; min-width: 240px; }
.barra-prog-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.barra-prog-label { font-size: 14px; font-weight: 700; }
.barra-prog-cont { font-size: 13px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.barra-prog-cont b { color: var(--rn-red); font-size: 16px; }
.barra-prog-trilho { height: 7px; background: #f0f0f0; border-radius: 999px; overflow: hidden; }
.barra-prog-trilho span { display: block; height: 100%; background: var(--rn-blue); border-radius: 999px; transition: width .3s cubic-bezier(.2,.8,.2,1); }
.barra-prog-trilho span.cheio { background: linear-gradient(90deg, var(--rn-blue), var(--rn-green)); }
.barra-prog-dica { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.barra-prog-dica.pronto { color: var(--al-green); font-weight: 600; }

/* ---- Passo 3: conferir ---- */
.conf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.conf-arquivos { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.conf-arquivos-tit { padding: 16px 22px; border-bottom: 1px solid var(--line-2); background: var(--paper-3); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.conf-arq-lin { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line-2); }
.conf-arq-check { width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: #00622a; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.conf-arq-txt { flex: 1; min-width: 0; }
.conf-arq-nome { font-size: 13.5px; font-weight: 700; }
.conf-arq-arq { font-size: 11px; color: var(--muted); word-break: break-all; }
.conf-arq-linhas { font-size: 12px; color: var(--ink-2); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.conf-trocar { appearance: none; border: 0; background: none; color: var(--rn-blue); font-size: 12.5px; font-weight: 700; padding: 14px 22px; cursor: pointer; width: 100%; text-align: left; }
.conf-trocar:hover { background: #f5f6fc; }
.conf-regras { display: flex; flex-direction: column; gap: 14px; }
.regra-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.regra-pino { width: 4px; align-self: stretch; border-radius: 999px; flex: none; }
.regra-pino.al { background: var(--al-green); }
.regra-pino.navy { background: var(--rn-navy); }
.regra-pino.vm { background: var(--rn-red); }
.regra-corpo { flex: 1; }
.regra-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.regra-tit { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.regra-badge { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.regra-badge.verde { background: var(--green-tint); color: #00622a; }
.regra-badge.vermelho { background: var(--red-tint); color: var(--rn-red); }
.regra-corpo p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.regra-nota { background: rgba(38,52,139,.06); border: 1px solid rgba(38,52,139,.14); border-radius: 16px; padding: 16px 20px; font-size: 13px; color: var(--rn-blue); line-height: 1.6; }

/* ===================== PASSO 4 — RESULTADO ===================== */
.subabas { position: sticky; top: 66px; z-index: 39; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 clamp(16px,4vw,40px); }
.subabas-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subabas-inner::-webkit-scrollbar { display: none; }
.subaba { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; font-family: var(--disp); font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; padding: 15px 16px; white-space: nowrap; display: flex; align-items: center; gap: 7px; transition: color .15s, border-color .15s; }
.subaba:hover { color: var(--ink-2); }
.subaba.ativa { color: var(--rn-red); border-bottom-color: var(--rn-red); }
.subaba-cont { font-family: var(--mono); font-size: 11px; font-weight: 600; background: #f0f0f0; color: var(--ink-2); padding: 1px 7px; border-radius: 999px; }
.subaba.ativa .subaba-cont { background: var(--red-tint); color: var(--rn-red); }
.subabas-flex { flex: 1; min-width: 14px; }
.subabas-refazer { appearance: none; border: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; align-self: center; transition: color .16s, background .16s; }
.subabas-refazer:hover { color: var(--rn-red); background: #fceff1; }
.res-topo { margin-bottom: 20px; }
.res-topo-rot { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.res-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rn-green); box-shadow: 0 0 0 3px rgba(60,255,0,.22); }
.res-dot.leitura { background: var(--muted); box-shadow: 0 0 0 3px rgba(136,136,136,.22); }
.res-topo-rot span:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.res-titulo { font-size: clamp(24px,3.1vw,30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.res-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kpi-res { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(0,9,66,.04), 0 8px 26px rgba(0,9,66,.05); padding: 24px; cursor: pointer; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.kpi-res:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-res-faixa { position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.kpi-res.kpi-red .kpi-res-faixa { background: var(--rn-red); }
.kpi-res.kpi-navy .kpi-res-faixa { background: var(--rn-blue); }
.kpi-res.kpi-plain .kpi-res-faixa { background: var(--rn-navy); }
.kpi-res-rot { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kpi-res-val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 29px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 12px; color: var(--ink); white-space: nowrap; }
.kpi-res.kpi-red .kpi-res-val { color: var(--rn-red); }
.kpi-res.kpi-navy .kpi-res-val { color: var(--rn-blue); }
.kpi-res-val.money { font-size: 25px; }
.kpi-res-sub { font-size: 12.5px; color: var(--muted); margin-top: 9px; line-height: 1.4; }
.res-painel { margin-top: 30px; animation: wizIn .3s ease both; }
@keyframes wizIn { from { opacity: 0; } to { opacity: 1; } }

/* Quem perdeu */
.perdeu-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.perdeu-filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1 1 auto; min-width: 0; }
.campo.busca, #fBuscaPerdeu { border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font-size: 14px; width: 250px; max-width: 100%; background: var(--paper); outline: none; font-family: var(--sans); transition: border-color .16s, box-shadow .16s; }
#fBuscaPerdeu:focus { border-color: var(--rn-blue); box-shadow: 0 0 0 4px rgba(38,52,139,.09); }
.pill-filtro { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 12.5px; font-weight: 600; padding: 9px 15px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.pill-filtro:hover { border-color: var(--rn-navy); }
.pill-filtro.ativa { background: var(--rn-navy); color: #fff; border-color: var(--rn-navy); }
.pill-toggle { border-style: dashed; }
.pill-toggle.ativa { border-style: solid; background: var(--rn-blue); border-color: var(--rn-blue); }
.perdeu-dir { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.perdeu-conf { display: flex; flex-direction: column; gap: 5px; min-width: 170px; }
.perdeu-conf-txt { font-size: 11.5px; color: var(--ink-2); font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.perdeu-conf-trilho { height: 5px; background: #f0f0f0; border-radius: 999px; overflow: hidden; }
.perdeu-conf-trilho span { display: block; height: 100%; background: var(--rn-green); border-radius: 999px; transition: width .3s; }
.perdeu-tab { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.perdeu-scroll { max-height: 620px; overflow: auto; }
.perdeu-head, .perdeu-lin { display: flex; align-items: center; gap: 14px; padding: 15px 24px; min-width: 1020px; }
.perdeu-head { position: sticky; top: 0; z-index: 2; background: var(--paper-3); border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.perdeu-lin { border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.perdeu-lin:hover { background: #fafbfe; }
.perdeu-lin.conf { background: rgba(60,255,0,.05); }
.pc-chk { width: 22px; flex: none; }
.pc-chk input { width: 17px; height: 17px; accent-color: var(--rn-blue); cursor: pointer; }
.pc-nome { flex: 1; min-width: 190px; display: flex; align-items: center; gap: 8px; overflow: hidden; font-size: 14px; }
.pc-loja { width: 168px; flex: none; font-size: 12px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-mot { width: 160px; flex: none; }
.pc-det { width: 132px; flex: none; font-size: 12.5px; color: var(--ink-2); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-alelo { width: 104px; flex: none; text-align: right; font-size: 12.5px; color: var(--ink-2); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-desc { width: 90px; flex: none; text-align: right; font-size: 14px; font-weight: 800; color: var(--rn-red); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pc-mais { width: 24px; flex: none; color: #aaa; font-size: 16px; text-align: center; }
.sel-local { display: inline-flex; }
.sel-local select { appearance: none; border: 1px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink-2); font-size: 12.5px; font-weight: 600; font-family: var(--sans); padding: 9px 30px 9px 15px; border-radius: 999px; cursor: pointer; outline: none; transition: border-color .16s; }
.sel-local select:hover { border-color: var(--rn-navy); }
.sel-local select:focus { border-color: var(--rn-blue); box-shadow: 0 0 0 4px rgba(38,52,139,.09); }
.mot-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mot-ponto { background: var(--blue-tint); color: var(--rn-blue); }
.mot-esq { background: var(--green-tint); color: #00622a; }
.mot-ambos { background: var(--red-tint); color: var(--rn-red); }
.perdeu-vazio { padding: 44px 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* modo leitura (histórico) */
.leitura-aviso { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(38,52,139,.05); border: 1px solid rgba(38,52,139,.14); border-radius: 16px; padding: 16px 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 22px; }
.leitura-ico { font-size: 22px; flex: none; }
.leitura-aviso > div { flex: 1; min-width: 220px; }
.res-agregado { margin-top: 4px; }
.res-ag-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1200; background: var(--rn-navy); color: #fff; font-size: 14px; font-weight: 600; padding: 13px 22px; border-radius: 999px; box-shadow: 0 12px 34px rgba(0,9,66,.32); animation: toastUp .3s ease both; }
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* overlay processando (conferindo arquivo por arquivo) */
.proc-overlay { position: fixed; inset: 0; z-index: 1300; background: rgba(0,9,66,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: wizIn .2s ease both; }
.proc-card { background: #fff; border-radius: 22px; padding: 34px 38px; width: min(430px, 100%); box-shadow: 0 30px 80px rgba(0,9,66,.4); animation: procPop .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes procPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.proc-topo { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.proc-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #f0f0f0; border-top-color: var(--rn-red); animation: procSpin .8s linear infinite; display: block; flex: none; }
@keyframes procSpin { to { transform: rotate(360deg); } }
.proc-titulo { font-family: var(--disp); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.proc-etapas { display: flex; flex-direction: column; gap: 13px; }
.proc-etapa { display: flex; align-items: center; gap: 12px; }
.proc-marca { width: 20px; height: 20px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: #f2f3f7; color: #fff; transition: background .2s; }
.proc-marca.ok { background: var(--green-tint); color: #00622a; }
.proc-marca.agora { background: var(--rn-red); color: #fff; }
.proc-texto { font-size: 13.5px; color: #b4b9c4; font-weight: 400; transition: color .2s, font-weight .2s; }
.proc-texto.ok { color: var(--ink); font-weight: 700; }
.proc-texto.agora { color: var(--rn-red); font-weight: 700; }

/* bloqueio (mês já conferido) */
.bloqueio-mes { display: flex; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; align-items: flex-start; }
.bloqueio-ico { font-size: 32px; flex: none; }
.bloqueio-corpo h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.bloqueio-corpo p { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.bloqueio-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================== FICHA DO COLABORADOR (drawer à direita) ===================== */
.ficha { position: fixed; inset: 0; z-index: 1400; display: flex; justify-content: flex-end; }
.ficha-fundo { position: absolute; inset: 0; background: rgba(0,9,66,.42); backdrop-filter: blur(3px); animation: wizIn .22s ease both; }
.ficha-painel { position: relative; width: min(460px, 100%); background: var(--paper); height: 100%; overflow-y: auto; box-shadow: -18px 0 60px rgba(0,9,66,.28); animation: fichaSlide .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fichaSlide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ficha-topo { position: sticky; top: 0; background: var(--rn-navy); padding: 24px 28px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ficha-topo-txt { min-width: 0; }
.ficha-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: 7px; }
.ficha-nome { margin: 0; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.025em; line-height: 1.25; }
.ficha-chips { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ficha-chip { font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
.ficha-selo { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 6px; }
.ficha-selo.copeira { background: rgba(0,128,96,.18); color: #bdf5d8; }
.ficha-selo.afast { background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.ficha-fechar { appearance: none; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; flex: none; line-height: 1; transition: background .15s; }
.ficha-fechar:hover { background: rgba(255,255,255,.26); }
.ficha-corpo { padding: 26px 28px 40px; }
.ficha-sec-tit { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.ficha-campos { border: 1px solid var(--paper-2); border-radius: 14px; overflow: hidden; }
.ficha-campo { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.ficha-campo:last-child { border-bottom: 0; }
.ficha-campo-rot { font-size: 12px; color: var(--muted); flex: none; }
.ficha-campo-val { font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ficha-regras-tit { margin: 26px 0 12px; }
.ficha-regras { display: flex; flex-direction: column; gap: 9px; }
.ficha-regra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 11px; background: var(--paper-3); border: 1px solid var(--paper-2); }
.ficha-regra.mau { background: var(--red-tint); border-color: rgba(228,4,33,.16); }
.ficha-regra-rot { font-size: 13px; font-weight: 700; }
.ficha-regra-val { font-size: 13px; font-weight: 700; color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.ficha-regra.mau .ficha-regra-val { color: var(--rn-red); }
.ficha-resultado { margin-top: 18px; padding: 16px 18px; border-radius: 13px; font-size: 14px; font-weight: 700; }
.ficha-resultado.perdeu { background: var(--rn-red); color: #fff; }
.ficha-resultado.ok { background: var(--green-tint); color: #00622a; }


/* ===================== TELA DE LOGIN (split: imagem | painel) ===================== */
.login-gate { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 1.15fr 0.85fr; background: var(--paper); }

/* lado esquerdo: imagem + overlay + arte de marca */
.login-arte { position: relative; overflow: hidden; }
.login-arte-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-arte-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,9,66,.82) 0%, rgba(38,52,139,.55) 45%, rgba(0,9,66,.35) 100%); }
.login-arte-conteudo { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: clamp(28px, 5vw, 64px); color: #fff; }
.login-marca-row { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.login-marca-rn { height: 46px; width: auto; object-fit: contain; }
.login-marca-x { font-family: var(--disp); font-weight: 800; font-size: 24px; color: rgba(255,255,255,.7); }
.login-marca-alelo { display: inline-flex; align-items: center; gap: 8px; }
.login-alelo-chip { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; }
.login-alelo-chip img { width: 24px; height: 24px; }
.login-alelo-nome { font-family: var(--disp); font-weight: 800; font-size: 26px; color: #fff; }
.login-alelo-nome .lime { color: var(--rn-green); }
.login-arte-titulo { font-family: var(--disp); font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; margin: 0; }
.login-arte-tag { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); max-width: 42ch; margin: 0; }
.login-arte-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.login-chip { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; }

/* lado direito: painel do formulário */
.login-painel { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--paper); width: 100%; max-width: 380px; }
.login-logo { height: 40px; width: auto; object-fit: contain; margin-bottom: 18px; }
.login-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.login-titulo { font-family: var(--disp); font-size: 30px; font-weight: 800; margin: 6px 0 4px; }
.login-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.login-input-wrap { position: relative; display: block; }
.login-input-wrap input { width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.login-input-wrap input:focus { outline: none; border-color: var(--rn-blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.login-olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 16px; line-height: 1; padding: 6px; opacity: .5; }
.login-olho:hover, .login-olho.ativo { opacity: 1; }
.login-form .btn { margin-top: 6px; width: 100%; justify-content: center; }
.login-erro { background: var(--red-tint); color: var(--rn-red); font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: var(--r-sm); }
.login-ok { background: var(--green-tint, rgba(60,255,0,.12)); color: #1f7a00; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: var(--r-sm); }
.login-rodape { margin-top: 20px; font-size: 12px; color: var(--muted); text-align: center; }

/* telas estreitas: só o painel (a arte vira faixa superior curta) */
@media (max-width: 820px) {
  .login-gate { grid-template-columns: 1fr; grid-template-rows: 190px 1fr; }
  .login-arte-conteudo { padding: 18px 22px; gap: 8px; }
  .login-arte-titulo { font-size: 22px; }
  .login-arte-tag, .login-arte-chips { display: none; }
}

/* barra de usuário no subhead */
.subhead-user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-nome { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.link-conta { background: none; border: 0; color: var(--rn-blue); cursor: pointer; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.link-conta:hover { text-decoration: underline; }
.link-sair { background: none; border: 0; color: var(--rn-red); cursor: pointer; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.link-sair:hover { text-decoration: underline; }

/* ===================== MODAL (trocar senha) ===================== */
.modal-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,9,66,.5); backdrop-filter: blur(2px); }
.modal-card { position: relative; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 24px 70px rgba(0,9,66,.4); padding: 32px 30px; width: 100%; max-width: 400px; }
.modal-fechar { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-fechar:hover { color: var(--ink); }
.modal-titulo { font-family: var(--disp); font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.modal-acoes { display: flex; gap: 10px; margin-top: 8px; }
.modal-acoes .btn { flex: 1; justify-content: center; }
.btn-fantasma { background: none; color: var(--ink-2); border: 1px solid var(--line); }
.btn-fantasma:hover { background: var(--blue-tint); }

/* modal largo: ver resumo do mês */
.modal-card-largo { max-width: 720px; max-height: 88vh; overflow-y: auto; }
.mes-cabec { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mes-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mes-meta { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.4; }
.mes-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.mes-kpi { background: var(--blue-tint); border-radius: var(--r-sm); padding: 12px 14px; min-width: 0; overflow: hidden; }
.mes-kpi.az { background: var(--blue-tint); }
.mes-kpi.vm { background: var(--red-tint); }
.mes-kpi-val { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mes-kpi.vm .mes-kpi-val { color: var(--rn-red); }
.mes-kpi-rot { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.25; }
.mes-sub { font-family: var(--disp); font-size: 14px; font-weight: 700; margin: 22px 0 8px; color: var(--ink-2); }
.mes-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.mes-tab th, .mes-tab td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.mes-tab th.num, .mes-tab td.num { text-align: right; font-family: var(--mono); }
.mes-tab .mes-tot td { border-top: 2px solid var(--line); background: var(--blue-tint); }
.mes-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mes-bloco { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.mes-bloco-tit { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mes-bloco-lin { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
.mes-bloco-lin span { color: var(--ink-2); }
.mes-bloco-lin b { font-family: var(--mono); }
.mes-bloco-tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.mes-bloco-tot b { color: var(--rn-red); }
.mes-nota { font-size: 12px; color: var(--muted); background: var(--blue-tint); border-radius: var(--r-sm); padding: 10px 14px; margin: 18px 0; line-height: 1.5; }
.link-ver { color: var(--rn-blue); cursor: pointer; margin-right: 12px; }
.link-ver:hover { text-decoration: underline; }

/* ===================== NAVEGAÇÃO POR ABAS ===================== */
.abas { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; gap: 4px; padding: 0 clamp(16px,5vw,60px); overflow-x: auto; box-shadow: 0 1px 0 rgba(0,9,66,.03); }
.aba { font-family: var(--disp); font-weight: 700; font-size: 15px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; padding: 16px 18px; white-space: nowrap; transition: color .15s, border-color .15s; }
.aba:hover { color: var(--ink); }
.aba.ativa { color: var(--rn-red); border-bottom-color: var(--rn-red); }
.aba-count { font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--blue-tint); color: var(--rn-blue); padding: 1px 8px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: middle; }

/* ===================== LAYOUT / PAINÉIS ===================== */
main { width: 100%; margin: 0; padding: 0; }
.aba-painel { display: none; animation: fadeIn .35s ease; }
.aba-painel.ativo { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.painel-head { margin-bottom: 22px; }
.painel-head h2 { font-size: 26px; font-weight: 800; }
.painel-desc { color: var(--muted); font-size: 14px; margin: 6px 0 0; max-width: 74ch; }
.painel-desc b { color: var(--ink-2); }

/* ===================== UPLOADS ===================== */
.uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.uploads.duo { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
@media (max-width: 860px){ .uploads,.uploads.duo{ grid-template-columns:1fr; } }
.grupo-uploads-label { font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin: 26px 0 12px; display:flex; align-items:center; gap:8px; }
.dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.dot.rn { background: var(--rn-red); } .dot.al { background: var(--al-green); }
.drop { background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 20px; cursor: pointer; transition: .15s; min-height: 128px; position: relative; box-shadow: var(--shadow); }
.drop:hover { border-color: var(--muted); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.drop.drag { border-color: var(--rn-blue); background: var(--blue-tint); }
.drop.ok { border-style: solid; border-color: var(--rn-green); background: var(--green-tint); }
.drop.erro { border-style: solid; border-color: var(--rn-red); background: var(--red-tint); }
.drop .tag { font-family: var(--mono); font-size: 10px; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); }
.drop .nome { font-family: var(--disp); font-weight: 800; font-size: 17px; margin: 6px 0 2px; }
.drop .arq { font-family: var(--mono); font-size: 11px; color: var(--ink-2); word-break: break-all; margin-top: 8px; }
.drop .estado { font-family: var(--mono); font-size: 11px; margin-top: 8px; color: var(--muted); }
.drop.ok .estado { color: var(--rn-navy); font-weight: 600; } .drop.erro .estado { color: var(--rn-red); }
.drop input[type=file]{ display:none; }
@keyframes okpop { 0%{ transform:scale(.97);} 55%{ transform:scale(1.02);} 100%{ transform:scale(1);} }
.drop.ok { animation: okpop .4s cubic-bezier(.2,.8,.2,1); }

/* ===================== PROGRESSO ===================== */
.progresso { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow); }
.progresso-topo { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
.progresso-label { font-weight: 700; font-size: 14px; }
.progresso-cont { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.progresso-cont b { color: var(--rn-red); font-size: 16px; }
.progresso-barra { height: 8px; background: var(--paper-2); border-radius: var(--r-pill); overflow: hidden; }
.progresso-barra span { display:block; height:100%; width:0; background: linear-gradient(90deg, var(--rn-blue), var(--rn-green)); border-radius:var(--r-pill); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.progresso-dica { margin-top:10px; font-size: 13px; color: var(--muted); }
.progresso-dica.pronto { color: var(--rn-navy); font-weight:600; }

/* ===================== AÇÕES / BOTÕES ===================== */
.acoes { margin-top: 24px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.competencia { display:flex; align-items:center; gap:8px; }
.competencia label { font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.competencia input { font-family:var(--mono); border:1px solid var(--line); border-radius:var(--r-sm); padding:10px 12px; font-size:14px; background:var(--paper); }
.btn { font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing:.01em; border:0; border-radius: var(--r-pill); padding: 13px 26px; cursor:pointer; transition:.14s; background: var(--rn-red); color:var(--rn-white); }
.btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform:none; filter:none; }
.btn.sec { background: var(--paper); color: var(--ink-2); border:1px solid var(--line); }
.btn.sec:hover { border-color: var(--muted); filter:none; }
.btn.al { background: var(--al-green); }
.btn.xlsx { background: var(--rn-navy); font-size: 13px; padding: 11px 18px; }
@keyframes pulseReady { 0%,100% { box-shadow: 0 0 0 0 rgba(228,4,33,.4); } 50% { box-shadow: 0 0 0 10px rgba(228,4,33,0); } }
.btn.pronto { animation: pulseReady 1.6s ease-out infinite; }

.avisos { margin-top: 16px; }
.aviso { border-left: 4px solid var(--rn-red); background: var(--red-tint); padding: 12px 16px; margin-bottom:10px; font-size:14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.aviso b { font-family: var(--mono); }

/* regras (details) */
.regras-det { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 20px; box-shadow: var(--shadow); }
.regras-det summary { cursor:pointer; font-family:var(--disp); font-weight:700; font-size:14px; padding:14px 0; color: var(--ink); }
.regras-corpo { font-size: 13.5px; color: var(--ink-2); padding: 4px 0 16px; line-height: 1.65; }
.regras-corpo p { margin: 0 0 10px; }

/* ===================== FLUXO GUIADO (aba Importar) ===================== */
.passo-num { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--rn-navy); color: var(--rn-white); display: inline-flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 800; font-size: 16px; }
/* etapa 1 — escolher o mês */
.etapa-mes { display: flex; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); align-items: flex-start; max-width: 620px; }
.etapa-mes-corpo { flex: 1; }
.etapa-mes-label { font-family: var(--disp); font-weight: 700; font-size: 18px; display: block; margin-bottom: 12px; }
.etapa-mes-linha { display: flex; gap: 12px; flex-wrap: wrap; }
.etapa-mes-linha input { font-family: var(--mono); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; background: var(--paper); }
.etapa-mes-dica { margin-top: 12px; font-size: 13px; color: var(--muted); }
.etapa-mes-dica.erro { color: var(--rn-red); font-weight: 600; }
/* bloqueio — mês já conferido */
.bloqueio-mes { display: flex; gap: 20px; background: var(--paper); border: 1px solid var(--rn-blue); border-left: 5px solid var(--rn-blue); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--shadow); align-items: flex-start; max-width: 720px; }
.bloqueio-ico { font-size: 34px; line-height: 1; }
.bloqueio-corpo h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.bloqueio-corpo p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-bottom: 18px; max-width: 60ch; }
.bloqueio-corpo p b { color: var(--ink); }
.bloqueio-acoes { display: flex; gap: 12px; flex-wrap: wrap; }
/* etapa 2 — uploads */
.etapa-uploads-topo { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.etapa-uploads-head { flex: 1; }
.etapa-uploads-titulo { font-family: var(--disp); font-weight: 800; font-size: 20px; }
.etapa-uploads-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.etapa-uploads-sub b { color: var(--rn-blue); }
.btn.pequeno { font-size: 13px; padding: 9px 16px; }

/* ===================== KPIs (Visão geral) ===================== */
.kpis { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
@media (max-width: 900px){ .kpis{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .kpis{ grid-template-columns: 1fr; } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--line); }
.kpi-al   { border-top-color: var(--al-green); }
.kpi-red  { border-top-color: var(--rn-red); }
.kpi-blue { border-top-color: var(--rn-blue); }
.kpi-navy { border-top-color: var(--rn-navy); }
.kpi-green{ border-top-color: var(--rn-green); }
.kpi-rot { font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.kpi-val { font-family: var(--disp); font-weight: 800; font-size: 34px; margin-top: 10px; line-height:1; }
.kpi-val.money { font-family: var(--mono); font-size: 28px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); transition: transform .18s, box-shadow .18s; }

/* ===================== BARRA DE FILTROS (Visão geral) ===================== */
.vg-barra { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin: 26px 0 12px; flex-wrap:wrap; }
.vg-filtros { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
.campo { border:1px solid var(--line); border-radius:var(--r-pill); padding:11px 16px; font-size:14px; font-family:var(--sans); background:var(--paper); box-shadow: var(--shadow); }
.busca { width: 260px; max-width: 100%; }
.campo-sel { display:flex; flex-direction:column; gap:5px; }
.campo-sel span { font-family:var(--mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); padding-left:4px; }
.campo-sel select { border:1px solid var(--line); border-radius:var(--r-pill); padding:11px 16px; font-size:14px; font-family:var(--sans); background:var(--paper); cursor:pointer; box-shadow: var(--shadow); }
.vg-barra-dir { display:flex; align-items:center; gap:14px; }
.vg-cont { font-family:var(--mono); font-size:13px; color:var(--ink-2); font-weight:600; white-space:nowrap; }
.check-linha { display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink-2); margin-bottom:8px; cursor:pointer; }
.check-linha input { width:16px; height:16px; accent-color: var(--rn-blue); cursor:pointer; }
.check-dica { color: var(--muted); font-size:12.5px; }

/* ===================== TABELAS ===================== */
.tabela-wrap { background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); margin-top:14px; }
.tabela-wrap > .cap { padding:14px 20px; font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); border-bottom:1px solid var(--line-2); background:var(--paper-3); }
table { width:100%; border-collapse: collapse; font-size:13.5px; }
th,td { text-align:left; padding:11px 18px; border-top:1px solid var(--line-2); }
th { font-family:var(--mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); background:var(--paper-3); position:sticky; top:0; z-index:1; }
td.num, th.num { text-align:right; }
td.num { font-family:var(--mono); font-variant-numeric: tabular-nums; }
/* zebra azul-clarinho (par recebe leve tinta azul do DS) */
tbody tr:nth-child(even) { background: var(--blue-tint-2); }
tbody tr:hover { background: var(--blue-tint); }
.scroll-y { max-height: 560px; overflow-y:auto; }
/* quem perdeu: marcador de barra vermelha à esquerda (sem fundo vermelho) */
.linha-perdeu td:first-child { box-shadow: inset 3px 0 0 var(--rn-red); }
.forte { font-weight: 700; color: var(--rn-red); }
.estourou { color: var(--rn-red); font-weight: 600; }
.motivo { color: var(--ink-2); font-size: 13px; }
.sub-cel { font-size:11px; color:var(--muted); }
.sub-cel-td { font-size:12px; color:var(--muted); }
.vazio { padding: 26px; text-align:center; color:var(--muted); font-family:var(--mono); font-size:13px; }
.sem-par { font-family: var(--mono); font-size: 11px; color: var(--muted); font-style: italic; }

/* colunas ordenáveis */
th.sortable { cursor:pointer; user-select:none; padding-right: 26px; position: sticky; }
th.sortable::after { content:"⇅"; opacity:.35; margin-left:6px; font-size:11px; }
th.sortable.sort-asc::after { content:"↑"; opacity:1; color: var(--rn-blue); }
th.sortable.sort-desc::after { content:"↓"; opacity:1; color: var(--rn-blue); }
th.sortable:hover { color: var(--ink); }

/* chips / tags / badges */
.chip { font-family:var(--mono); font-size:10.5px; font-weight:600; padding:3px 10px; border-radius:var(--r-pill); letter-spacing:.03em; white-space:nowrap; }
.chip-rn { background: var(--blue-tint); color: var(--rn-blue); }
.chip-foco { background: var(--deep-tint); color: var(--rn-deep); }
.badge { font-family:var(--mono); font-size:10px; padding:2px 8px; border-radius:var(--r-pill); text-transform:uppercase; letter-spacing:.04em; font-weight:600; }
.badge.copeira { background: var(--al-green); color: var(--rn-white); }
.badge.afast { background: var(--paper-2); color: var(--muted); }
.tag-sim { font-family:var(--mono); font-size:11px; font-weight:600; color:var(--rn-red); background:var(--red-tint); padding:2px 10px; border-radius:var(--r-pill); }
.tag-nao { font-family:var(--mono); font-size:11px; color:var(--muted); }

/* medidor (distância até o limite) */
td.med { width: 30%; min-width: 150px; }
.med-barra { position:relative; height:8px; background:var(--paper-2); border-radius:var(--r-pill); }
.med-fill { position:absolute; left:0; top:0; bottom:0; background: var(--rn-blue); border-radius:var(--r-pill); }
.med-fill.est { background: var(--rn-red); }
.med-limite { position:absolute; top:-3px; bottom:-3px; width:2px; background: var(--ink-2); opacity:.5; }

/* cartão-resumo (Ponto / Esquecimentos) — acento azul, número em vermelho */
.cartao-resumo { background: var(--paper); border:1px solid var(--line); border-left: 5px solid var(--rn-blue); border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 8px; }
.cr-num { font-family: var(--disp); font-size: 15px; color: var(--ink-2); }
.cr-num b { font-size: 40px; font-weight: 800; color: var(--rn-red); margin-right: 8px; }
.cr-frase { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; max-width: 74ch; }

/* ===================== ABA ALELO ===================== */
.resumo-alelo { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom: 26px; }
.resumo-alelo .faixa-total { grid-column: 1 / -1; }
@media (max-width:760px){ .resumo-alelo{ grid-template-columns:1fr; } }
.grupo-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow); overflow:hidden; }
.grupo-card header { padding:18px 22px; border-bottom:1px solid var(--line-2); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.grupo-card header .v { font-family:var(--mono); font-size:24px; font-weight:700; }
.grupo-card .mini { display:grid; grid-template-columns:repeat(3,1fr); }
.grupo-card .mini > div, .grupo-card .mini > .mini-link { padding:14px 18px; border-right:1px solid var(--line-2); text-align:left; }
.grupo-card .mini > *:last-child { border-right:0; }
.grupo-card .mini .k { font-family:var(--mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.grupo-card .mini .v { font-family:var(--mono); font-size:20px; font-weight:700; margin-top:3px; }
.grupo-card .v.bom{ color:var(--rn-navy); }
.grupo-card .v.mau{ color:var(--rn-red); }
.mini-link { background: var(--red-tint); border:0; cursor:pointer; font:inherit; transition: filter .15s; }
.mini-link:hover { filter: brightness(.97); }
.mini-link .k { color: var(--rn-red); }
.faixa-total { background: var(--rn-navy); color:var(--rn-white); border-radius:var(--r-lg); padding:20px 26px; display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
.faixa-total .k { font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; opacity:.82; }
.faixa-total .v { font-family:var(--mono); font-size:30px; font-weight:800; }

/* blocos de marca (Alelo / RN) */
.marca-bloco { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 20px; background: var(--paper); border: 1px solid var(--line); }
.marca-barra { display:flex; align-items:center; gap:14px; padding: 16px 22px; color: var(--rn-white); }
.marca-barra h3 { font-size: 17px; font-weight: 800; flex: 1; }
.marca-qtd { font-family: var(--mono); font-size: 15px; font-weight: 700; background: rgba(255,255,255,.22); padding: 3px 14px; border-radius: var(--r-pill); }
.marca-logo { display:inline-flex; align-items:center; justify-content:center; background: var(--rn-white); border-radius: 10px; padding: 7px 10px; }
.marca-logo img { height: 22px; width:auto; display:block; }
.marca-logo-rn { background: transparent; padding: 0; }
.marca-logo-rn img { height: 30px; }
.marca-alelo .marca-barra { background: linear-gradient(100deg, var(--al-deep), var(--al-green)); }
.marca-alelo { border-color: var(--al-green); }
.marca-rn .marca-barra { background: linear-gradient(100deg, var(--rn-navy), var(--rn-blue)); }
.marca-rn { border-color: var(--rn-blue); }
.marca-frase { margin: 0; padding: 16px 22px; color: var(--ink-2); font-size: 14px; line-height: 1.6; border-bottom: 1px solid var(--line-2); background: var(--paper-3); }
.marca-frase b { color: var(--ink); }
.marca-bloco .tabela-wrap { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.tudo-certo { padding: 22px; color: var(--rn-navy); font-size: 14px; font-weight: 600; background: var(--green-tint); }

/* ===================== ESTADO VAZIO ===================== */
.estado-vazio { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 56px 24px; text-align: center; box-shadow: var(--shadow); }
.estado-vazio.pequeno { padding: 40px 24px; }
.estado-vazio .ev-ico { font-size: 40px; }
.estado-vazio p { color: var(--muted); font-size: 15px; margin: 14px auto 20px; max-width: 48ch; }
.estado-vazio p b { color: var(--ink-2); }

/* ===================== HISTÓRICO / RODAPÉ ===================== */
.hist-acoes { display:flex; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.hist-btns { display:flex; gap:12px; }
.link-edit { color:var(--rn-blue); cursor:pointer; font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.link-del { color:var(--rn-red); cursor:pointer; font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.rodape { margin-top:56px; padding-top:20px; border-top:1px solid var(--line); font-family:var(--mono); font-size:11px; color:var(--muted); }

/* ===================== MOVIMENTO ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .reveal { opacity:1; transform:none; }
}

/* ===================== AVISAR GERENTES (sub-aba, Fase 1) ===================== */
.ger-bloco { background:var(--paper); border:1px solid var(--line); border-radius:var(--r-md); padding:20px 22px; margin-bottom:18px; box-shadow:var(--shadow); }
.ger-bloco-tit { font-family:var(--disp); font-weight:700; font-size:16px; color:var(--rn-navy); display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.ger-num { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:var(--r-pill); background:var(--rn-blue); color:#fff; font-size:13px; font-family:var(--mono); }
.ger-editar-tpl { margin-left:auto; color:var(--rn-blue); font-size:12px; font-family:var(--mono); cursor:pointer; }
.ger-editar-tpl:hover { text-decoration:underline; }

/* Bloco A */
.ger-linhaA { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.ger-link { color:var(--rn-blue); font-size:13px; font-family:var(--mono); }
.ger-limite { margin-left:auto; }
.ger-limite input { width:72px; font-family:var(--mono); text-align:center; }
.ger-mapa-resumo { margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.ger-pill { font-family:var(--mono); font-size:11px; padding:3px 10px; border-radius:var(--r-pill); }
.ger-pill.ok { background:var(--blue-tint); color:var(--rn-blue); }
.ger-pill.warn { background:var(--red-tint); color:var(--rn-red); }
.ger-erro { color:var(--rn-red); font-size:13px; }

.ger-vazio { text-align:center; padding:34px 16px; color:var(--ink-2); }
.ger-vazio-ic { font-size:38px; margin-bottom:8px; }
.ger-vazio-dica { font-size:13px; color:var(--muted); margin-top:6px; }

/* Bloco B — diagnóstico */
.ger-diag-nums { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.ger-stat { flex:1 1 120px; min-width:0; background:var(--paper-3); border:1px solid var(--line); border-radius:var(--r-sm); padding:12px 14px; display:flex; flex-direction:column; }
.ger-stat b { font-family:var(--mono); font-size:24px; color:var(--rn-navy); line-height:1; }
.ger-stat span { font-size:12px; color:var(--ink-2); margin-top:4px; }
.ger-stat.ok b { color:var(--al-green); }
.ger-stat.warn { border-color:var(--rn-red); }
.ger-stat.warn b { color:var(--rn-red); }
.ger-tab { width:100%; border-collapse:collapse; font-size:14px; }
.ger-tab th, .ger-tab td { text-align:left; padding:8px 12px; border-bottom:1px solid var(--line-2); }
.ger-tab th { font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.ger-tab td.num, .ger-tab th.num { text-align:right; font-family:var(--mono); }
.ger-tab tbody tr:nth-child(even), .ger-tab tr:nth-child(even) { background:var(--blue-tint-2); }
.ger-td-ok { color:var(--al-green); font-weight:600; }
.ger-avisos { margin:12px 0 0; padding-left:18px; color:var(--ink-2); font-size:13px; }
.ger-avisos li { margin:2px 0; }

/* Bloco C — mensagens */
.ger-copiar-todas { margin-left:12px; }
.ger-cards { display:grid; gap:14px; }
.ger-card { border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; }
.ger-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; background:var(--paper-3); border-bottom:1px solid var(--line); }
.ger-fone { font-family:var(--mono); color:var(--rn-blue); font-size:13px; }
.ger-card-lojas { font-family:var(--mono); font-size:11px; color:var(--muted); margin-left:6px; }
.ger-msg { margin:0; padding:14px 16px; white-space:pre-wrap; font-family:var(--sans); font-size:14px; line-height:1.55; color:var(--ink); }
.btn.ghost { background:transparent; border:1px solid var(--rn-blue); color:var(--rn-blue); }
.btn.ghost:hover { background:var(--blue-tint); }

/* editor de modelo */
.ger-tpl-box { display:flex; flex-direction:column; gap:6px; padding:14px; margin-bottom:14px; background:var(--paper-3); border:1px solid var(--line); border-radius:var(--r-sm); }
.ger-tpl-box label { font-size:12px; font-family:var(--mono); color:var(--ink-2); margin-top:6px; }
.ger-tpl-box small { color:var(--muted); }
.ger-tpl-box textarea { width:100%; font-family:var(--mono); font-size:13px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--r-sm); resize:vertical; }
.ger-tpl-acoes { display:flex; gap:10px; justify-content:flex-end; margin-top:10px; }

/* ===================== CONECTAR WHATSAPP (Fase 2) ===================== */
.wa-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin:0 2px; background:var(--muted); vertical-align:middle; }
.wa-dot.open { background:var(--rn-green); box-shadow:0 0 0 2px rgba(60,255,0,.25); }
.wa-dot.connecting { background:#e8a400; }
.wa-dot.close, .wa-dot.none { background:var(--rn-red); }
.wa-dot.erro { background:var(--rn-red); }

.wa-aviso { background:var(--red-tint); color:var(--rn-red); font-size:12.5px; line-height:1.45; padding:10px 12px; border-radius:var(--r-sm); margin-bottom:14px; }
.wa-corpo { min-height:80px; }
.wa-status-linha { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.wa-badge { font-family:var(--mono); font-size:13px; padding:5px 12px; border-radius:var(--r-pill); background:var(--paper-2); }
.wa-badge.ok { background:var(--green-tint); color:var(--al-green); }
.wa-badge.wait { background:rgba(232,164,0,.14); color:#8a6100; }
.wa-badge.off { background:var(--red-tint); color:var(--rn-red); }
.wa-badge.err { background:var(--red-tint); color:var(--rn-red); }
.wa-num { font-family:var(--mono); font-size:13px; color:var(--ink-2); }
.wa-qrbox { text-align:center; padding:10px 0; }
.wa-qrbox img { width:236px; height:236px; image-rendering:pixelated; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff; }
.wa-qr-dica { font-size:12.5px; color:var(--ink-2); margin:10px auto 0; max-width:280px; line-height:1.5; }

/* ===================== DISPARO (Fase 3) ===================== */
.ger-card-acoes { display:flex; gap:8px; }
.ger-enviar { padding:6px 14px; }
.ger-envio-status { font-family:var(--mono); font-size:11px; margin-left:8px; }
.ger-envio-status.enviando { color:#8a6100; }
.ger-envio-status.ok { color:var(--al-green); }
.ger-envio-status.erro { color:var(--rn-red); }
.ger-card.enviando { outline:2px solid rgba(232,164,0,.4); }

.ger-disparo-barra { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:12px 14px; margin-bottom:14px; background:var(--paper-3); border:1px solid var(--line); border-radius:var(--r-sm); }
.ger-disparo-info { flex:1 1 240px; min-width:0; font-size:13px; color:var(--ink-2); font-family:var(--mono); }
.ger-prog-trilho { height:6px; background:var(--line); border-radius:var(--r-pill); margin-top:8px; overflow:hidden; }
.ger-prog-fill { height:100%; width:0; background:var(--rn-blue); transition:width .3s ease; }
.ger-disparo-acoes { display:flex; gap:10px; }
.ger-disparar-todos { background:var(--al-green); }
.ger-disparar-todos:hover { filter:brightness(1.05); }
.ger-enviar.ger-ja-enviado { background:var(--paper-2); color:var(--al-green); border:1px solid var(--al-green); cursor:default; opacity:.9; }
