/* Zenite Operação — o app da fábrica (produção hoje; estoque e logística depois). Mesma marca e mesmo vocabulário do app de
   Gestão (zenite/app): verde #204641 e estrela #e3b23c, Inter nos números e Jost nos títulos do celular, cartões com borda,
   chips coloridos e barras de progresso (o padrão de Produção › Produtos, pedido do Diogo em 22/10/2026). Vermelho = negativo
   ou acesso encerrado. Pensado primeiro para TABLET e CELULAR (é como a fábrica usa): até 860 px, cabeçalho verde e abas embaixo.
   A CSP não aceita style="..." no HTML: estilo só aqui (ou pelo JS, via elemento.style). Contraste do --suave: 4,5:1 no branco e
   no fundo (o mesmo valor do app de Gestão, medido lá). */
:root {
  --verde: #204641;
  --verde-2: #2a5a53;
  --lat: #14302b;
  --ouro: #e3b23c;
  --fundo: #f3f4f1;
  --sup: #ffffff;
  --borda: #e3e6e1;
  --linha: #eef0ec;
  --tinta: #16211e;
  --suave: #5b6864;
  --neg: #b0302a;
  --neg-bg: #fdecea;
  --amb: #8a5a00;
  --amb-bg: #fff3d4;
  --ok: #1e6b43;
  --ok-bg: #e5f3ea;
  --neu-bg: #eef1ee;
  --raio: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "tnum" 1, "cv11" 1;
  color: var(--tinta);
  background: var(--fundo);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
p, h1, h2, h3, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; }
.logo img { display: block; height: 30px; width: auto; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.sub { color: var(--suave); margin-top: 2px; max-width: 640px; }
.suave { color: var(--suave); font-size: 13px; line-height: 1.45; }
.erro { color: var(--neg); font-size: 14px; }
.erro:empty { display: none; }

/* ---------------------------------------------------------------- entrar e trocar a senha */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(520px 360px at 100% 0, rgba(227, 178, 60, .28), transparent 62%),
    linear-gradient(165deg, #22504a, #163631 75%); }
.login-caixa { width: 100%; max-width: 400px; background: var(--sup); border-radius: 20px; padding: 32px 28px 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.logo-grande img { height: auto; width: 100%; max-width: 190px; margin-bottom: 6px; }
.login-app { font-family: 'Jost', 'Inter', sans-serif; font-size: 22px; font-weight: 600; color: var(--verde); letter-spacing: .01em; }
.login-sub { color: var(--suave); margin: 0 0 22px; }
.login label { display: block; font-size: 13px; font-weight: 500; color: var(--suave); margin: 14px 0 6px; }
.login label:first-child { margin-top: 0; }
.login input { width: 100%; height: 50px; border: 1px solid var(--borda); border-radius: 10px; padding: 0 14px;
  font: inherit; font-size: 17px; background: #fbfbfa; color: var(--tinta); }
.login input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(32, 70, 65, .14); background: var(--sup); }
#codigo { letter-spacing: 8px; font-size: 22px; text-align: center; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 52px; }
.ver-senha { position: absolute; right: 4px; top: 4px; width: 44px; height: 42px; border: 0; border-radius: 8px; background: none;
  color: var(--suave); cursor: pointer; display: grid; place-items: center; }
.ver-senha[aria-pressed="true"] { color: var(--verde); background: var(--neu-bg); }
.login-dica { font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.troca-titulo { margin: 6px 0 8px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 16px;
  border: 0; border-radius: 10px; background: var(--verde); color: #fff; font: inherit; font-size: 16px;
  font-weight: 600; cursor: pointer; text-decoration: none; }
.botao:hover { background: var(--verde-2); }
.botao:disabled { opacity: .6; cursor: wait; }
.botao-curto { width: auto; padding: 0 20px; height: 44px; margin-top: 0; font-size: 14.5px; }
.botao-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.login-outro { display: block; margin: 16px auto 0; font-size: 14px; color: var(--suave); text-align: center; }
.login .erro { margin-top: 14px; }
.login-rodape { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linha); font-size: 12.5px; color: var(--suave); text-align: center; }

/* ---------------------------------------------------------------- estrutura (computador) */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.lateral { background: var(--lat); color: rgba(255, 255, 255, .74); padding: 18px 12px 12px; display: flex; flex-direction: column;
  gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lateral .logo { padding: 2px 10px 4px; }
.lateral .logo img { height: 26px; }
.marca-app { padding: 0 10px 14px; font-family: 'Jost', 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--ouro); letter-spacing: .04em; }
.grupo-menu { display: flex; flex-direction: column; gap: 2px; }
.lateral .sec { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .42);
  padding: 16px 10px 6px; }
.lateral .item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: inherit;
  text-decoration: none; font-weight: 500; position: relative; }
.lateral .item small { margin-left: auto; font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .42); }
.lateral a.item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.lateral .item.ativo { background: rgba(255, 255, 255, .09); color: #fff; }
.lateral .item.ativo::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--ouro); }
.eu { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.eu .inicial { width: 30px; height: 30px; border-radius: 50%; background: var(--ouro); color: var(--lat); font-weight: 700;
  display: grid; place-items: center; flex: none; }
.eu .quem { flex: 1; min-width: 0; color: #fff; font-weight: 500; }
.eu .quem small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .5); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eu .sair { width: 34px; height: 34px; border-radius: 8px; border: 0; background: none; color: rgba(255, 255, 255, .6);
  cursor: pointer; display: grid; place-items: center; flex: none; }
.eu .sair:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.barra { height: 58px; background: var(--sup); border-bottom: 1px solid var(--borda); display: flex; align-items: center;
  gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 5; }
.trilha { color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trilha b { color: var(--tinta); font-weight: 600; }
.topo-celular { display: none; }
.conteudo { padding: 24px 28px 56px; max-width: 1180px; width: 100%; min-width: 0; }
.abas-celular { display: none; }
.sem-menu .lateral .item, .sem-menu .grupo-menu, .sem-menu .eu, .sem-menu .abas-celular { display: none !important; }

/* ---------------------------------------------------------------- peças comuns */
.cab-pagina { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cartao { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 16px 16px; min-width: 0; }
.cartao > h2 { font-size: 13px; font-weight: 600; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2 small { font-weight: 500; color: var(--suave); font-size: 12.5px; white-space: nowrap; }
.aviso-pagina { max-width: 580px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.aviso-pagina h2 { font-size: 16px; }
.aviso-pagina p { line-height: 1.5; }
.q { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.q.red { background: var(--neg-bg); color: var(--neg); }
.q.amb { background: var(--amb-bg); color: var(--amb); }
.q.neu { background: var(--neu-bg); color: #4d5b57; }
.q.ok { background: var(--ok-bg); color: var(--ok); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--neu-bg); color: #4d5b57; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.amb { background: var(--amb-bg); color: var(--amb); }
.chip.red { background: var(--neg-bg); color: var(--neg); }
.acao { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 8px;
  border: 1px solid var(--borda); background: var(--sup); text-decoration: none; white-space: nowrap; color: var(--tinta); cursor: pointer; }
.acao:hover { background: var(--fundo); }
.acao.perigo { color: var(--neg); }
.acao.perigo:hover { background: var(--neg-bg); border-color: #f2c4c0; }
.fechar { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--suave); cursor: pointer;
  display: grid; place-items: center; flex: none; }
.fechar:hover { background: var(--fundo); }
.grade-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cartao.num { display: flex; flex-direction: column; gap: 2px; }
.cartao.num .rot { font-size: 12.5px; font-weight: 600; color: var(--suave); }
.cartao.num b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }

/* ---------------------------------------------------------------- Início */
.inicio-grade { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.coluna { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.faixa-estacao, .faixa-ok { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.faixa-estacao p, .faixa-ok p { flex: 1; min-width: 0; line-height: 1.5; }
.faixa-ok { border-color: #bfe0cc; background: #f5fbf7; }
#sem-nada { margin-bottom: 18px; }
.modulos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modulo { display: flex; flex-direction: column; gap: 6px; color: var(--tinta); text-decoration: none; padding: 16px; transition: border-color .15s; }
.modulo:hover { border-color: #c9d3cf; }
.modulo-cab { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.modulo-titulo { font-size: 15px; font-weight: 600; }
.modulo-texto { color: var(--suave); font-size: 13px; line-height: 1.45; }
.trilho-passos { display: block; height: 6px; border-radius: 999px; background: var(--linha); overflow: hidden; margin-bottom: 10px; }
.trilho-passos span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ouro); }
.passos li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linha); }
.passos li:first-child { border-top: 0; padding-top: 2px; }
.passos .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--neu-bg); color: var(--suave); }
.passos .n .ico { width: 14px; height: 14px; }
.passos .feita .n { background: var(--verde); color: #fff; }
.passos .agora .n { background: var(--ouro); color: var(--lat); font-weight: 700; }
.passos .detalhe { display: block; color: var(--suave); font-size: 12.5px; line-height: 1.4; }
.acesso li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--linha); }
.acesso li:first-child { border-top: 0; padding-top: 0; }
.acesso .nivel { color: var(--suave); font-size: 13px; text-align: right; }

/* ---------------------------------------------------------------- Acessos */
.formulario { margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
.formulario > h2 { margin: 0; font-size: 15px; }
.opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opcoes legend { font-size: 12.5px; font-weight: 600; color: var(--suave); margin-bottom: 6px; padding: 0; }
.opcao { position: relative; display: block; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcao > span { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center;
  min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fbfbfa; }
.opcao > span .ico { grid-row: span 2; color: var(--suave); }
.opcao > span b { font-weight: 600; }
.opcao > span small { grid-column: 2; color: var(--suave); font-size: 12.5px; line-height: 1.35; }
.opcoes.curtas .opcao > span { grid-template-columns: minmax(0, 1fr); min-height: 48px; }
.opcoes.curtas .opcao > span small { grid-column: 1; }
.opcao input:checked + span { border-color: var(--verde); background: #f1f6f4; box-shadow: 0 0 0 3px rgba(32, 70, 65, .1); }
.opcao input:checked + span .ico { color: var(--verde); }
.opcao input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 2px; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.campo label { display: block; font-size: 12.5px; font-weight: 600; color: var(--suave); margin-bottom: 6px; }
.campo label small { font-weight: 400; }
.campo input { width: 100%; height: 44px; border: 1px solid var(--borda); border-radius: 9px; padding: 0 12px; font: inherit; font-size: 15px;
  background: #fbfbfa; color: var(--tinta); }
.campo input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(32, 70, 65, .14); background: var(--sup); }
.linha-botoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.linha-botoes .suave { flex: 1 1 260px; }
.lista-cartao { padding-bottom: 6px; }
.logins { margin: 0 -16px; }
.logins .vazio { padding: 6px 16px 12px; }
.linha-login { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--linha); }
.logins li:first-child { border-top: 0; padding-top: 4px; }
.linha-login.inativo .quem-e b, .linha-login.inativo .q { opacity: .55; }
.quem-e { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quem-e b { font-weight: 600; overflow-wrap: anywhere; }
.quem-e small { color: var(--suave); font-size: 12.5px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lado { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lado .quando { color: var(--suave); font-size: 12.5px; white-space: nowrap; }
.botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------------------- tablet estreito, celular (até 860 px) */
@media (max-width: 860px) {
  .app { display: block; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .lateral, .barra { display: none; }
  .topo-celular { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
    background: var(--verde); color: #fff; position: sticky; top: 0; z-index: 5; }
  .topo-celular img { height: 22px; width: auto; }
  .topo-app { font-family: 'Jost', 'Inter', sans-serif; font-weight: 600; color: var(--ouro); font-size: 16px; letter-spacing: .03em; }
  .topo-eu { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ouro); color: var(--lat);
    font-weight: 700; cursor: pointer; display: grid; place-items: center; }
  .conteudo { padding: 18px 16px 32px; }
  h1 { font-family: 'Jost', 'Inter', sans-serif; font-size: 24px; }
  .cartao { border-radius: 16px; }
  .abas-celular { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--sup); border-top: 1px solid var(--borda); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .abas-celular .item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 10px;
    color: var(--suave); text-decoration: none; font-size: 12px; font-weight: 600; }
  .abas-celular .item .ico { width: 22px; height: 22px; }
  .abas-celular .item.ativo { color: var(--verde); background: #eef4f2; }
  .inicio-grade { grid-template-columns: minmax(0, 1fr); }
  .grade-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-pagina { align-items: stretch; }
  .cab-pagina .botao-curto { width: 100%; height: 48px; }
}
@media (max-width: 560px) {
  .modulos, .opcoes, .campos { grid-template-columns: minmax(0, 1fr); }
  .linha-login { grid-template-columns: 36px minmax(0, 1fr); }
  .lado { grid-column: 1 / -1; align-items: stretch; }
  .lado .quando { white-space: normal; }
  .botoes { justify-content: flex-start; }
  .botoes .acao { flex: 1 1 auto; justify-content: center; }
}
