/* Nexus Tap — casca do app e telas */

/* ---------- Marca ---------- */
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.marca svg { width: 30px; height: 30px; }
.marca b { font-size: 1.15rem; font-weight: 700; font-stretch: 82%; letter-spacing: -.01em; }
.marca b span { font-weight: 500; opacity: .7; }

/* ---------- Casca ---------- */
.casca { min-height: 100dvh; }
.trilho { display: none; }
.topo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: calc(.6rem + env(safe-area-inset-top)) 16px .6rem;
  background: color-mix(in oklab, var(--folha) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.topo.rolou { border-bottom-color: var(--linha); }
.topo-acoes { display: flex; gap: .5rem; align-items: center; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--tinta); color: var(--folha);
  display: grid; place-items: center; font-weight: 700; font-size: var(--t-sm);
  font-stretch: var(--gravado); overflow: hidden; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.botao-tema {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linha); background: var(--superficie);
  color: var(--tinta-2); display: grid; place-items: center; cursor: pointer; flex: none;
}
.botao-tema:hover { color: var(--tinta); border-color: var(--tinta-3); }
.botao-tema svg { width: 20px; height: 20px; overflow: visible; }
/* Sol ↔ lua: quem sai apaga o traço (.2s) e encolhe (.7s); quem entra cresce (.7s) e desenha o traço a partir de .3s */
.botao-tema path { stroke-dasharray: 1 1; transform-box: fill-box; transform-origin: 50% 50%; }
.botao-tema .tema-sol path, .botao-tema.e-escuro .tema-lua path {
  stroke-dashoffset: 0; transform: scale(1);
  transition: stroke-dashoffset .4s cubic-bezier(.25, .8, .3, 1) .3s, transform .7s ease-out;
}
.botao-tema .tema-lua path, .botao-tema.e-escuro .tema-sol path {
  stroke-dashoffset: 1; transform: scale(0);
  transition: stroke-dashoffset .2s ease-out, transform .7s ease-out;
}

.conteudo { padding: 8px 16px calc(var(--barra-h) + 40px + env(safe-area-inset-bottom)); max-width: 1220px; margin: 0 auto; }
.cabeca-tela { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.5rem; }
.cabeca-tela h1 { font-size: var(--t-xl); letter-spacing: -.02em; }
.cabeca-tela p { color: var(--tinta-2); margin-top: .35rem; max-width: 62ch; }
.cabeca-tela .acoes { display: flex; gap: .5rem; flex-wrap: wrap; }
.voltar { display: inline-flex; align-items: center; gap: .3rem; color: var(--tinta-2); text-decoration: none; font-size: var(--t-sm); font-weight: 500; margin-bottom: .4rem; }
.voltar svg { width: 16px; height: 16px; }

/* Barra inferior (celular), flutuante */
.barra {
  position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: var(--barra-h); border-radius: 22px;
  background: var(--rail); border: 1px solid var(--rail-borda);
  box-shadow: var(--sombra-flutua);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.barra a, .barra button {
  display: grid; justify-items: center; gap: 2px; padding: 6px 0;
  color: var(--rail-tinta); text-decoration: none; font-size: 11px; font-weight: 600;
  background: none; border: 0; cursor: pointer;
}
.barra svg { width: 22px; height: 22px; }
.barra [aria-current="page"] { color: var(--rail-ativo); }
.barra .barra-escanear { position: relative; top: -16px; }
.barra .barra-escanear span.bola {
  width: 60px; height: 60px; border-radius: 20px; background: var(--ambar); color: var(--sobre-ambar);
  display: grid; place-items: center;
  box-shadow: 0 0 0 5px var(--folha), 0 10px 24px -6px rgba(150, 190, 0, .55);
}
.barra .barra-escanear svg { width: 28px; height: 28px; }
.barra .barra-escanear[aria-current="page"] { color: var(--rail-ativo); }

@media (min-width: 960px) {
  .casca { display: grid; grid-template-columns: 276px 1fr; }
  .barra, .topo .marca-celular { display: none; }
  .trilho {
    display: flex; flex-direction: column; gap: 1.25rem;
    position: sticky; top: 16px; margin: 16px 0 16px 16px; height: calc(100dvh - 32px); overflow-y: auto;
    background: var(--rail); color: var(--rail-tinta); padding: 22px 14px;
    border-radius: 24px; border: 1px solid var(--rail-borda);
  }
  .trilho .marca { color: #F5F5F2; padding: 0 8px; }
  .trilho nav { display: grid; gap: 4px; }
  .trilho nav a {
    display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: 0 14px; border-radius: 12px;
    color: var(--rail-tinta); text-decoration: none; font-size: var(--t-sm); font-weight: 500;
    transition: background-color .15s, color .15s;
  }
  .trilho nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .trilho nav a[aria-current="page"] { background: var(--rail-ativo); color: var(--rail-ativo-tinta); font-weight: 600; }
  .trilho nav a svg { width: 20px; height: 20px; }
  .trilho .trilho-escanear { margin: 0 2px; border-radius: 14px; }
  .trilho .trilho-pe { margin-top: auto; display: grid; gap: .5rem; }
  .trilho .eu { display: flex; align-items: center; gap: .65rem; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 0; width: 100%; cursor: pointer; text-align: left; color: inherit; }
  .trilho .eu:hover { background: rgba(255, 255, 255, .09); }
  .trilho .eu .avatar { background: var(--ambar); color: var(--sobre-ambar); }
  .trilho .eu b { display: block; color: #fff; font-size: var(--t-sm); }
  .trilho .eu small { color: #8E8E8E; font-size: var(--t-xs); }
  .topo { padding: 22px 40px 6px; justify-content: flex-end; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: static; }
  .topo .avatar { display: none; }
  .conteudo { padding: 0 40px 48px; }
  .cabeca-tela { margin-top: 0; }
  .cabeca-tela h1 { font-size: var(--t-2xl); }
}


/* ---------- Login ---------- */
.login { min-height: 100dvh; display: grid; background: #0C0C0C; color: #F5F5F2; }
.login-palco {
  position: relative; display: grid; place-items: center; padding: calc(28px + env(safe-area-inset-top)) 16px 34px; overflow: hidden;
  background: radial-gradient(70% 60% at 100% 0%, rgba(201, 243, 29, .35), transparent 65%), radial-gradient(50% 50% at 0% 100%, rgba(201, 243, 29, .10), transparent 70%), #0C0C0C;
}
.login-palco .marca { color: #F5F5F2; }
.login-texto { position: absolute; z-index: 1; top: calc(18px + env(safe-area-inset-top)); left: 16px; }
.login-palco .grade-fundo {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #C9F31D 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 0%, transparent 70%);
}
.login-placa { width: 128px; padding: 26px 14px 12px; margin-top: 34px; transform: rotate(-4deg); }
.login-placa .placa-codigo { font-size: 1.15rem; letter-spacing: .02em; }
/* Letreiro: mistura preenchido e só em traço (como no site da Nexus Go) */
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }
.letreiro { font-family: "Montserrat", var(--fonte-titulo); text-transform: uppercase; font-weight: 900; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.letreiro .cheio { display: block; color: #F5F5F2; }
.letreiro .traco { display: block; color: transparent; -webkit-text-stroke: 2px #F5F5F2; paint-order: stroke fill; }
.letreiro .limao { color: #C9F31D; }
.login-frase { display: none; }
.login-form-lado { background: var(--folha); color: var(--tinta); border-radius: 26px 26px 0 0; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); position: relative; }
.login-form { width: 100%; max-width: 380px; margin: 0 auto; display: grid; gap: 1.1rem; }
.login-form h1 { font-size: var(--t-xl); }
.login-form .dica { font-size: var(--t-xs); color: var(--tinta-3); }
.login-form-lado .botao-tema { position: absolute; top: 16px; right: 16px; }
.senha-caixa { position: relative; }
.senha-caixa .entrada { padding-right: 48px; }
.senha-caixa button { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 44px; border: 0; background: none; color: var(--tinta-3); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }

/* Módulos do QR que "imprimem" uma vez ao abrir o login */
.imprime rect.m { opacity: 0; animation: imprime .32s ease-out var(--d, 0ms) forwards; }
@keyframes imprime { from { opacity: 0; } to { opacity: 1; } }
/* Loop do login: a cada 19 s o QR some de cima para baixo e se forma de novo (app.js) */
.imprime.apagando rect.m { opacity: 1; animation: apaga .28s ease-in var(--s, 0ms) forwards; }
@keyframes apaga { from { opacity: 1; } to { opacity: 0; } }

.login { grid-template-rows: auto 1fr; }
@media (min-width: 720px) {
  .login { grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
  /* escrito à esquerda (centralizado na vertical), placa à direita */
  .login-palco { padding: 40px; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: clamp(24px, 3vw, 72px); }
  .login-texto { position: relative; top: auto; left: auto; grid-column: 1; grid-row: 1; display: grid; justify-items: start; gap: clamp(20px, 3.5vh, 40px); }
  .login-frase { display: block; position: relative; font-size: max(1.4rem, min(2.9vw, 7vh, 4.2rem)); }
  .letreiro > span { white-space: nowrap; }
  .login-placa { grid-column: 2; grid-row: 1; width: min(396px, 20.5vw, 60vh); padding: 34px 22px 20px; margin: 0; transform: rotate(-4deg); }
  .login-placa .placa-codigo { font-size: max(1.3rem, min(2.4rem, 2vw)); }
  .login-form-lado { border-radius: 0; display: grid; place-items: center; padding: 48px; }
}

/* ---------- Cartões de número (Início e Relatórios) ---------- */
.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.numeros > div { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-painel); padding: 1rem 1.1rem; box-shadow: var(--sombra-painel); display: flex; flex-direction: column; }
.numeros .num-icone { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ambar-fundo); color: var(--ambar-tinta); margin-bottom: .8rem; }
.numeros .num-icone svg { width: 18px; height: 18px; }
.numeros .valor { font-family: "Montserrat", var(--fonte); font-size: 2rem; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.numeros .rotulo { font-size: var(--t-sm); color: var(--tinta-2); }
.numeros .delta { font-size: var(--t-xs); color: var(--tinta-3); margin-top: .35rem; }
.numeros .delta.sobe { color: var(--ok); font-weight: 600; }
.numeros .delta.desce { color: var(--perigo); font-weight: 600; }
.numeros > .destaque { background: var(--ambar); border-color: var(--ambar); color: #0C0C0C; }
.numeros > .destaque .rotulo, .numeros > .destaque .delta, .numeros > .destaque .delta.sobe { color: rgba(12, 12, 12, .75); }
.numeros > .destaque .num-icone { background: rgba(12, 12, 12, .12); color: #0C0C0C; }
.numeros > .destaque a { color: #0C0C0C; }
@media (min-width: 720px) { .numeros { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.inicio-grade { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .inicio-grade { grid-template-columns: 1.5fr 1fr; align-items: start; } }

.atalho-escanear {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem; margin-bottom: 1.25rem;
  background: var(--ambar); color: #0C0C0C; border-radius: var(--r-painel); text-decoration: none;
}
.atalho-escanear .bola { width: 52px; height: 52px; border-radius: 16px; background: #0C0C0C; color: #C9F31D; display: grid; place-items: center; flex: none; }
.atalho-escanear .bola svg { width: 26px; height: 26px; }
.atalho-escanear b { display: block; font-size: var(--t-lg); font-stretch: 85%; }
.atalho-escanear small { color: rgba(12, 12, 12, .7); }
@media (min-width: 960px) { .atalho-escanear { display: none; } }

.ao-vivo { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-xs); font-weight: 600; color: var(--ambar-tinta); }
.ao-vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 3px var(--ambar-fundo); }

/* ---------- Escanear ---------- */
.leitor-grade { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .leitor-grade { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.leitor {
  position: relative; border-radius: 20px; overflow: hidden; background: #000;
  aspect-ratio: 3 / 4; max-height: 70dvh; width: 100%;
}
@media (min-width: 720px) { .leitor { aspect-ratio: 4 / 3; } }
.leitor video { width: 100%; height: 100%; object-fit: cover; }
.leitor .mira { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.leitor .mira-quadro {
  width: min(64%, 300px); aspect-ratio: 1; position: relative; border-radius: 22px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
}
.leitor .mira-quadro::before {
  content: ""; position: absolute; inset: -3px; border-radius: 24px; border: 3px solid var(--ambar);
  -webkit-mask: linear-gradient(#000 0 0) top left / 28% 28% no-repeat, linear-gradient(#000 0 0) top right / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom left / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom right / 28% 28% no-repeat;
          mask: linear-gradient(#000 0 0) top left / 28% 28% no-repeat, linear-gradient(#000 0 0) top right / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom left / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom right / 28% 28% no-repeat;
}
.leitor .linha-scan { position: absolute; left: 6%; right: 6%; height: 2px; background: var(--ambar); box-shadow: 0 0 14px 2px rgba(201, 243, 29, .7); border-radius: 2px; animation: varre 2.2s ease-in-out infinite alternate; }
@keyframes varre { from { top: 8%; } to { top: 92%; } }
.leitor .leitor-dica { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #F5F5F2; font-size: var(--t-sm); font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.6); padding: 0 16px; }
.leitor .leitor-controles { position: absolute; top: 12px; right: 12px; display: flex; gap: .5rem; }
.leitor .leitor-controles button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.leitor .leitor-controles svg { width: 20px; height: 20px; }
.leitor.achou .mira-quadro::before { border-color: var(--verde-vivo); -webkit-mask: none; mask: none; }
.leitor.achou .linha-scan { display: none; }

.leitor-parado {
  border-radius: 20px; border: 2px dashed var(--linha); background: var(--superficie);
  padding: 2rem 1.25rem; display: grid; gap: 1rem; justify-items: center; text-align: center;
  transition: border-color .15s, background .15s;
}
.leitor-parado.arrastando { border-color: var(--ambar); background: var(--ambar-fundo); }
.leitor-parado .icone-grande { width: 76px; height: 76px; border-radius: 22px; background: var(--ambar-fundo); color: var(--ambar-tinta); display: grid; place-items: center; }
.leitor-parado .icone-grande svg { width: 38px; height: 38px; }
.leitor-parado h2 { font-size: var(--t-lg); font-stretch: 85%; }
.leitor-parado p { color: var(--tinta-2); max-width: 40ch; font-size: var(--t-sm); }
.leitor-parado .botoes { display: grid; gap: .6rem; width: 100%; max-width: 340px; }
.so-desktop { display: none; }
@media (hover: hover) and (pointer: fine) { .so-desktop { display: initial; } }

.busca-manual { display: flex; gap: .5rem; }
.busca-manual .entrada { flex: 1; }

/* ---------- QR: detalhe/configuração ---------- */
.qr-grade { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .qr-grade { grid-template-columns: 300px 1fr; align-items: start; } }
.qr-placa-lado { display: grid; gap: 1rem; justify-items: center; }
.qr-placa-lado .placa { width: min(280px, 78vw); }
.qr-placa-lado .acoes { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) { .qr-placa-lado { position: sticky; top: 24px; } }

.destino-previa { display: flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--tinta-2); word-break: break-all; }
.historico { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.historico li { display: grid; grid-template-columns: 10px 1fr; gap: .75rem; font-size: var(--t-sm); }
.historico li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--verde-vivo); margin-top: 5px; }
.historico .de-para { color: var(--tinta-3); word-break: break-all; }

/* ---------- Lista de QR ---------- */
.filtros { display: grid; gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 960px) { .filtros { grid-template-columns: minmax(220px, 1fr) auto; align-items: center; } }
.filtros-selects { display: flex; gap: .5rem; flex-wrap: wrap; }
.filtros-selects select { width: auto; min-width: 150px; flex: 1; }
.busca { position: relative; }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tinta-3); pointer-events: none; }
.busca .entrada { padding-left: 38px; }

.qr-mini { width: 40px; height: 40px; border-radius: 8px; background: #fff; padding: 3px; flex: none; border: 1px solid var(--linha); }
.qr-mini svg { width: 100%; height: 100%; }
.marcar { width: 20px; height: 20px; accent-color: var(--verde); cursor: pointer; flex: none; }

.massa {
  position: sticky; bottom: calc(var(--barra-h) + 10px + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  background: var(--tinta); color: var(--folha); padding: .6rem .6rem .6rem 1rem; border-radius: 14px; margin-top: 1rem;
  box-shadow: var(--sombra-flutua);
}
.massa b { margin-right: auto; font-size: var(--t-sm); }
.massa .btn-sec { background: transparent; border-color: rgba(245, 245, 242, .25); color: var(--folha) !important; }
.massa .btn-sec:hover { background: rgba(245, 245, 242, .1); }
@media (min-width: 960px) { .massa { bottom: 16px; } }

.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; border-top: 1px solid var(--linha); font-size: var(--t-sm); color: var(--tinta-3); }

.qr-tabela .so-largo { display: none; }
@media (min-width: 900px) { .qr-tabela .so-largo { display: table-cell; } .qr-tabela .mostrar-estreito { display: none; } }
.qr-tabela td.destino { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tinta-2); }
.qr-tabela a { color: inherit; text-decoration: none; }

/* ---------- Lotes ---------- */
.lote-linha { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1rem 1.1rem; align-items: center; }
.lote-linha .barra-uso { grid-column: 1 / -1; display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--superficie-2); gap: 2px; }
.lote-linha .barra-uso i { display: block; height: 100%; }
.lote-linha .barra-uso i.u-ativo { background: var(--verde); border-radius: 99px 0 0 99px; }
.lote-linha .barra-uso i.u-entregue { background: color-mix(in oklab, var(--verde-vivo) 45%, var(--superficie-2)); }
.legenda { display: flex; gap: 1rem; flex-wrap: wrap; font-size: var(--t-xs); color: var(--tinta-3); }
.legenda span { display: inline-flex; align-items: center; gap: .35rem; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.opcoes-exportar { display: grid; gap: .5rem; }
.opcao { display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--linha); border-radius: 12px; background: var(--superficie); cursor: pointer; text-align: left; width: 100%; }
.opcao:hover { border-color: var(--verde); }
.opcao svg { width: 24px; height: 24px; color: var(--verde); flex: none; }
.opcao b { display: block; font-size: var(--t-sm); }
.opcao small { color: var(--tinta-3); font-size: var(--t-xs); }

/* ---------- Revendedor ---------- */
.cor-marca { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.logo-caixa { width: 64px; height: 64px; border-radius: 14px; border: 1px dashed var(--linha); display: grid; place-items: center; overflow: hidden; background: var(--superficie-2); color: var(--tinta-3); flex: none; }
.logo-caixa img { width: 100%; height: 100%; object-fit: contain; }
.etiqueta { font-size: var(--t-xs); font-weight: 600; padding: .15rem .5rem; border-radius: 6px; background: var(--superficie-2); color: var(--tinta-2); white-space: nowrap; }
.etiqueta.verde { background: var(--verde-fundo); color: var(--verde); }
.etiqueta.vermelha { background: var(--perigo-fundo); color: var(--perigo); }

/* ---------- Relatórios ---------- */
.rel-grade { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .rel-grade.duas { grid-template-columns: 1fr 1fr; } }
.grafico { position: relative; }
.grafico svg { width: 100%; height: auto; overflow: visible; }
.grafico .eixo { fill: var(--tinta-3); font-size: 11px; font-family: var(--fonte); }
.grafico .grade-linha { stroke: var(--linha); stroke-width: 1; }
.grafico .barra-dado { fill: var(--verde); }
.grafico .barra-dado:hover, .grafico .barra-dado.foco { fill: var(--verde-vivo); }
.grafico .alvo { fill: transparent; cursor: default; }
.dica-grafico { position: absolute; pointer-events: none; z-index: 5; background: var(--tinta); color: var(--folha); padding: .45rem .65rem; border-radius: 8px; font-size: var(--t-xs); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--sombra-flutua); }
.dica-grafico b { display: block; font-size: var(--t-sm); }
.mapa-calor { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10px; color: var(--tinta-3); }
.mapa-calor .cel { aspect-ratio: 1; border-radius: 3px; background: var(--superficie-2); }
.mapa-calor .rot { display: flex; align-items: center; }
.mapa-calor .hora { text-align: left; white-space: nowrap; overflow: visible; }
.escala { display: flex; align-items: center; gap: .4rem; font-size: var(--t-xs); color: var(--tinta-3); margin-top: .75rem; }
.escala i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.dividido { display: grid; gap: .8rem; }
.dividido .item { display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: .75rem; font-size: var(--t-sm); }
.dividido .trilha { height: 12px; background: var(--superficie-2); border-radius: 99px; overflow: hidden; }
.dividido .trilha i { display: block; height: 100%; background: var(--verde); border-radius: 0 4px 4px 0; }
.dividido .num { text-align: right; font-stretch: var(--gravado); font-weight: 600; }
.bloqueio { text-align: center; padding: 3rem 1.25rem; display: grid; gap: 1rem; justify-items: center; }
.bloqueio .icone-grande { width: 72px; height: 72px; border-radius: 20px; background: var(--superficie-2); display: grid; place-items: center; color: var(--tinta-2); }
.bloqueio .icone-grande svg { width: 34px; height: 34px; }
.bloqueio h2 { font-size: var(--t-xl); font-stretch: 85%; }
.bloqueio p { max-width: 46ch; color: var(--tinta-2); }

/* ---------- Guia NFC ---------- */
.guia { display: grid; gap: 1.25rem; max-width: 860px; }
.guia h2 { font-size: var(--t-lg); font-stretch: 85%; margin-bottom: .5rem; }
.guia p, .guia li { color: var(--tinta-2); max-width: 70ch; }
.guia ul { padding-left: 1.2rem; margin: .5rem 0 0; display: grid; gap: .35rem; }
.checklist { list-style: none; padding: 0 !important; }
.checklist label { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; color: var(--tinta); }
.checklist input { margin-top: 3px; }
.chip-cap { display: grid; gap: .6rem; margin-top: 1rem; }
.chip-cap .item { display: grid; grid-template-columns: 76px 1fr 96px; gap: .75rem; align-items: center; font-size: var(--t-sm); }
.chip-cap .trilha { height: 14px; border-radius: 4px; background: var(--superficie-2); position: relative; overflow: hidden; }
.chip-cap .trilha i { position: absolute; inset: 0 auto 0 0; background: var(--verde); border-radius: 4px 0 0 4px; }
.chip-cap .trilha.estoura i { background: var(--perigo); }
.bytes-grande { font-size: 3rem; line-height: 1; font-stretch: var(--gravado); font-weight: 700; }

/* ---------- Menu do perfil ---------- */
.menu-perfil { display: grid; gap: .25rem; }
.menu-perfil a, .menu-perfil button { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: 0 .75rem; border-radius: 10px; text-decoration: none; color: var(--tinta); font-weight: 500; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.menu-perfil a:hover, .menu-perfil button:hover { background: var(--superficie-2); }
.menu-perfil svg { width: 20px; height: 20px; color: var(--tinta-2); }

/* ---------- Clientes: lista × grade ---------- */
.alternar-vista { display: flex; gap: .4rem; }
.alternar-vista .chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.alternar-vista .chip svg { width: 18px; height: 18px; }
.avatar-cliente { background: var(--verde-fundo); color: var(--tinta); }
.grade-clientes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cartao-cliente {
  display: grid; gap: .35rem; height: 100%; padding: 1.1rem; text-decoration: none; color: inherit;
  background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-painel);
  transition: border-color .15s;
}
.cartao-cliente:hover { border-color: var(--tinta); }
.cartao-cliente .cartao-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .4rem; }
.cartao-cliente .avatar { width: 46px; height: 46px; border-radius: 14px; }
.cartao-cliente .titulo { font-weight: 600; font-size: var(--t-md); line-height: 1.25; }
.cartao-cliente .sub { color: var(--tinta-3); font-size: var(--t-sm); }
.cartao-cliente .cartao-numeros { display: flex; gap: 1.25rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--linha); font-size: var(--t-xs); color: var(--tinta-3); }
.cartao-cliente .cartao-numeros b { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--tinta); }

/* Colunas de grid podem encolher abaixo do conteúdo (textos com reticências não estouram a tela) */
.inicio-grade > *, .rel-grade > *, .leitor-grade > *, .qr-grade > *, .numeros > * { min-width: 0; }

/* Letreiro do login: as linhas sobem uma a uma, junto com a "impressão" do QR (uma vez, ao abrir) */
.letreiro > span { animation: linha-sobe .75s cubic-bezier(.2, .75, .2, 1) both; }
.letreiro > span:nth-child(1) { animation-delay: .15s; }
.letreiro > span:nth-child(2) { animation-delay: .32s; }
.letreiro > span:nth-child(3) { animation-delay: .49s; }
.letreiro > span:nth-child(4) { animation-delay: .66s; }
@keyframes linha-sobe {
  from { opacity: 0; transform: translateY(.45em); clip-path: inset(-40% -10% 100% -10%); }
  to { opacity: 1; transform: none; clip-path: inset(-40% -10% -40% -10%); }
}
/* cada linha por cima da anterior: acentos (o ^ de VOCÊ) não ficam escondidos */
.letreiro > span { position: relative; }
.letreiro > span:nth-child(2) { z-index: 2; }
.letreiro > span:nth-child(3) { z-index: 3; }
.letreiro > span:nth-child(4) { z-index: 4; }
.login-texto .marca { animation: fade .6s ease-out both; }
.login-placa { animation: placa-entra .8s cubic-bezier(.2, .75, .2, 1) .1s both; }
@keyframes placa-entra { from { opacity: 0; transform: translateY(24px) rotate(-9deg); } to { opacity: 1; transform: rotate(-4deg); } }

/* Tablet (painel estreito): escrito em cima, placa embaixo */
@media (min-width: 720px) and (max-width: 1099px) {
  .login-palco { grid-template-columns: auto; justify-items: start; align-content: center; }
  .login-placa { grid-column: 1; grid-row: 2; justify-self: center; width: min(240px, 30vh); }
  .login-frase { font-size: max(1.4rem, min(4.2vw, 5.5vh)); }
}
