/* O estilo do coletor: a tela pequena dos Zebra (320 a 360 pontos de largura), o dedo com luva e a luz do depósito — letra grande, botão
   alto, contraste forte. As cores das funções são as que o operador já conhece do coletor antigo. Sem nada de fora: só este arquivo. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.3 Roboto, "Segoe UI", Arial, sans-serif; color: #14202b; background: #e9eef2;
  -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; overscroll-behavior-y: contain;
}
b { font-weight: bold; }

/* o topo: o Voltar, o nome da tela e quem está no coletor */
#topo { position: -webkit-sticky; position: sticky; top: 0; z-index: 2; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
        min-height: 50px; padding: 4px 8px; background: #14202b; color: #fff; }
#titulo { -webkit-flex: 1; flex: 1; font-size: 19px; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#quem { margin-left: 8px; max-width: 40%; font-size: 15px; color: #ffd84d; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#volta { margin: 0 10px 0 0; padding: 0 12px; min-height: 42px; border: 0; border-radius: 8px; background: #33475a; color: #fff; font: bold 17px/1 inherit; }

/* a espera da resposta do servidor: a faixa que anda no alto */
#espera { position: fixed; left: 0; right: 0; top: 0; z-index: 5; height: 6px; background: #ffd84d; overflow: hidden; }
#espera:after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: #14202b; -webkit-animation: anda 1s linear infinite; animation: anda 1s linear infinite; }
@-webkit-keyframes anda { from { left: -40%; } to { left: 100%; } }
@keyframes anda { from { left: -40%; } to { left: 100%; } }

/* o recado que some sozinho (o do coletor antigo): vermelho, ou verde quando deu certo */
#nota { padding: 9px 10px; background: #b3261e; color: #fff; font-size: 18px; font-weight: bold; text-align: center; }
#nota.bom { background: #1b7a34; }

#tela { max-width: 520px; margin: 0 auto; padding: 8px 8px 24px; }
h2 { margin: 12px 2px 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #4a5a68; }
p { margin: 8px 2px; }
.centro { text-align: center; }
.dica { text-align: center; color: #4a5a68; }
.erro { min-height: 22px; text-align: center; color: #b3261e; font-size: 18px; font-weight: bold; }

/* os botões */
.b { display: block; width: 100%; min-height: 54px; margin: 8px 0; padding: 8px 10px; border: 0; border-radius: 10px; background: #cfd9e1; color: #14202b;
     font: bold 20px/1.15 Roboto, "Segoe UI", Arial, sans-serif; box-shadow: 0 3px 0 rgba(0, 0, 0, .28); }
.b:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: none; }
.b[disabled] { opacity: .38; box-shadow: none; }
.b.fino { min-height: 44px; font-size: 16px; font-weight: normal; background: none; box-shadow: none; text-decoration: underline; }
.lado { display: -webkit-flex; display: flex; margin: 0 -4px; }
.lado .b { -webkit-flex: 1; flex: 1; margin: 6px 4px; }
.menu { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -4px; }
.menu .b { width: calc(50% - 8px); min-height: 74px; margin: 4px; }
.menu .b.larga { width: calc(100% - 8px); min-height: 58px; }

/* o pedido de leitura: o operador lê com o gatilho, não há campo */
.leia { margin: 10px 0; padding: 22px 10px; border: 3px dashed #4a5a68; border-radius: 14px; background: #fff; text-align: center; font-size: 25px; font-weight: bold; }
.leia small { display: block; margin-top: 6px; font-size: 15px; font-weight: normal; }
.leia.pequena { padding: 8px 10px; font-size: 19px; border-width: 2px; }
.leia.pequena .barras { display: none; }
.barras { width: 150px; height: 46px; margin: 0 auto 12px; opacity: .85;
  background: repeating-linear-gradient(90deg, #14202b 0, #14202b 3px, transparent 3px, transparent 5px, #14202b 5px, #14202b 6px, transparent 6px, transparent 10px,
                                        #14202b 10px, #14202b 14px, transparent 14px, transparent 16px, #14202b 16px, #14202b 17px, transparent 17px, transparent 21px); }
.faixa { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #fff; font-size: 18px; }
.faixa b { font-size: 21px; }

/* a entrada: o crachá e a senha de letras */
.senha { height: 46px; margin: 6px 0; border-radius: 8px; background: #fff; text-align: center; font-size: 30px; line-height: 46px; letter-spacing: 8px; }
.senha small { font-size: 15px; letter-spacing: 0; color: #4a5a68; }
.letras { display: -webkit-flex; display: flex; margin: 0 -3px; }
.letras .b { -webkit-flex: 1; flex: 1; min-height: 66px; margin: 4px 3px; font-size: 30px; background: #fff; border: 2px solid #14202b; }
#nome { display: block; width: 100%; height: 54px; margin: 8px 0; padding: 0 10px; border: 2px solid #14202b; border-radius: 8px; background: #fff;
        font: 20px Roboto, "Segoe UI", Arial, sans-serif; -webkit-user-select: text; user-select: text; }

/* as listas */
.grade { width: 100%; margin: 6px 0; border-collapse: collapse; background: #fff; font-size: 15px; }
.grade th { padding: 5px; background: #c3ced7; font-size: 13px; text-align: left; }
.grade td { padding: 5px; border-bottom: 1px solid #b9c4cd; vertical-align: top; overflow-wrap: break-word; word-wrap: break-word; }
.grade .n { text-align: right; white-space: nowrap; font-size: 19px; font-weight: bold; }
.grade .toque { font-weight: bold; text-decoration: underline; }
.cod { color: #c40000; font-weight: bold; }
.grade tr.ultimo td { background: #000; color: #fff; }
.grade tr.ultimo .cod { color: #ff9c9c; }
.grade tr.secao td, .grade tr.lido td { background: aquamarine; }
.grade tr.secao td { font-weight: bold; }
.grade tr.chefe td { background: #000; color: #fff; text-align: center; font-size: 20px; font-weight: bold; }
.grade tr.grupo td:first-child { background: blue; color: #fff; }
.grade tr.total td { background: #c3ced7; font-weight: bold; }
.grade td.frac { background: blue; color: #fff; }
.falta { display: block; background: red; color: #fff; }
.grade.topo td { font-size: 16px; text-align: center; }
.azul { color: blue; font-weight: bold; }

/* o aviso com o bipe: a tela inteira, na cor do aviso, até o operador confirmar */
#aviso { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 10; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
         -webkit-justify-content: center; justify-content: center; padding: 16px; background: yellow; color: #000; text-align: center; overflow: auto; }
#aviso.escuro { color: #fff; }
#aviso-texto { margin-bottom: 22px; font-size: 27px; font-weight: bold; line-height: 1.25; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
#aviso-botoes .b { min-height: 68px; margin: 12px 0; font-size: 25px; background: #14202b; color: #fff; border: 3px solid #fff; }
#aviso-botoes .b.menor { min-height: 52px; font-size: 19px; background: #fff; color: #14202b; border-color: #14202b; }

/* as cores das funções (as do coletor antigo) — no fim, para valerem sobre o fundo branco das caixas */
.c-transf { background: gold; }
.c-local { background: darkseagreen; }
.c-produto { background: cornflowerblue; }
.c-material { background: #f79233; }
.c-invent { background: hotpink; }
.c-repos { background: orangered; }
.c-embarque { background: azure; }
.c-prontos { background: lemonchiffon; }
.c-conferir { background: palegreen; }
.c-nova { background: greenyellow; }
.c-ok { background: #1b7a34; color: #fff; }
.c-perigo { background: #b3261e; color: #fff; }
.c-sair { background: #14202b; color: #fff; }
