:root {
  --azul: #1B3B6F;
  --azul-claro: #2C4F86;
  --azul-fundo: #EAF0FA;
  --fundo: #F3F4F7;
  --branco: #FFFFFF;
  --texto: #1C2130;
  --texto-medio: #475467;
  --texto-fraco: #667085;
  --texto-apagado: #98A2B3;
  --borda: #E4E7EC;
  --verde-fundo: #E6F4EA;
  --verde: #15803D;
  --laranja-fundo: #FEF3E2;
  --laranja: #B45309;
  --vermelho: #B42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  -webkit-tap-highlight-color: transparent;
}

.tela {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
}

.aviso-offline {
  background: var(--laranja-fundo);
  color: var(--laranja);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
}

.aviso-fila {
  background: var(--azul-fundo);
  color: var(--azul);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
}

/* Cabeçalhos */
.topo-azul {
  background: var(--azul);
  padding: 28px 22px 22px;
  border-radius: 0 0 24px 24px;
}

.topo-azul .saudacao { font-size: 13px; font-weight: 600; color: #B9C7DE; }
.topo-azul .nome { font-size: 20px; font-weight: 800; color: #fff; }

.linha-topo { display: flex; align-items: center; justify-content: space-between; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--azul-claro); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

.etiquetas { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.etiqueta {
  background: var(--azul-claro);
  color: #E7ECF5;
  font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
}

.barra-titulo {
  display: flex; align-items: center;
  padding: 20px 16px 12px;
}

.botao-voltar {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; border: 1px solid var(--borda);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--texto); font-size: 20px; font-weight: 700;
}

.barra-titulo h1 {
  flex-grow: 1; text-align: center; margin: 0 40px 0 0;
  font-size: 17px; font-weight: 800;
}

.chips { display: flex; gap: 8px; padding: 0 20px 8px; flex-wrap: wrap; }

.chip {
  background: #EEF1F5; color: var(--texto-fraco);
  font-size: 12px; font-weight: 700;
  padding: 7px 10px; border-radius: 8px;
}

/* Conteúdo */
.conteudo { flex-grow: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.rodape { padding: 12px 20px 28px; }

.titulo-secao {
  font-size: 13px; font-weight: 800; color: var(--texto-fraco);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin: 8px 0 0;
}

/* Lista de funcionários */
.lista { display: flex; flex-direction: column; gap: 10px; }

.item-lista {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 2px solid var(--borda);
  font-family: inherit; font-size: 16px; font-weight: 700; color: var(--texto);
  cursor: pointer; min-height: 60px;
}

.item-lista[aria-pressed="true"] { border-color: var(--azul); background: var(--azul-fundo); }

.item-lista .iniciais {
  width: 36px; height: 36px; border-radius: 50%;
  background: #EEF1F5; color: var(--texto-fraco);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-right: 12px;
}

.item-lista[aria-pressed="true"] .iniciais { background: var(--azul); color: #fff; }

.item-lista .esquerda { display: flex; align-items: center; }

/* Cartões de ação */
.cartao-acao {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--borda); border-radius: 16px;
  padding: 18px; text-decoration: none; color: inherit;
}

.cartao-acao .icone {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 22px;
}

.cartao-acao .icone.azul { background: var(--azul-fundo); }
.cartao-acao .icone.laranja { background: #FDEFE9; }
.cartao-acao .titulo { font-size: 16px; font-weight: 700; }
.cartao-acao .subtitulo { font-size: 13px; font-weight: 500; color: var(--texto-fraco); margin-top: 2px; }
.cartao-acao .seta { color: var(--texto-apagado); font-size: 20px; }

/* Formulário */
.campo { display: flex; flex-direction: column; }
.campo label, .rotulo { font-size: 13px; font-weight: 700; color: var(--texto-fraco); margin-bottom: 6px; }

select, input[type="number"], input[type="text"] {
  width: 100%; height: 56px; padding: 0 16px;
  background: #fff; border: 1.5px solid var(--borda); border-radius: 12px;
  font-family: inherit; font-size: 16px; font-weight: 700; color: var(--texto);
  appearance: none;
}

select { background-image: linear-gradient(45deg, transparent 50%, var(--texto-apagado) 50%), linear-gradient(135deg, var(--texto-apagado) 50%, transparent 50%); background-position: calc(100% - 20px) 25px, calc(100% - 14px) 25px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }

select:focus, input:focus { outline: none; border-color: var(--azul); }
select:disabled, input:disabled { background: var(--fundo); color: var(--texto-apagado); }

.campo-com-sufixo { position: relative; }
.campo-com-sufixo .sufixo {
  position: absolute; right: 16px; top: 0; height: 56px;
  display: flex; align-items: center;
  font-size: 14px; font-weight: 700; color: var(--texto-apagado);
}
.campo-com-sufixo input { padding-right: 52px; }

.caixa-marcar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.caixa-marcar input { width: 20px; height: 20px; accent-color: var(--azul); margin: 0; }
.caixa-marcar label { font-size: 13px; font-weight: 600; color: var(--texto-fraco); margin: 0; }

.cartao-relogio {
  background: #fff; border: 1.5px solid var(--borda); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}

.cartao-relogio .cabecalho { display: flex; align-items: center; gap: 10px; }
.cartao-relogio .nome { font-size: 15px; font-weight: 800; }
.cartao-relogio .ultima { font-size: 12px; font-weight: 600; color: var(--texto-apagado); }

.selo { font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
.selo.ativo { background: var(--verde-fundo); color: var(--verde); }
.selo.manutencao { background: var(--laranja-fundo); color: var(--laranja); }

/* Botões */
.botao-principal {
  display: block; width: 100%; text-align: center; text-decoration: none;
  height: 56px; line-height: 56px; border: none; border-radius: 14px;
  background: var(--azul); color: #fff;
  font-family: inherit; font-size: 17px; font-weight: 700;
  cursor: pointer;
}

.botao-principal:disabled { background: var(--borda); color: var(--texto-apagado); cursor: default; }

.botao-texto {
  display: block; text-align: center; text-decoration: none;
  padding: 16px 0 24px; font-size: 14px; font-weight: 700; color: var(--texto-apagado);
  background: none; border: none; width: 100%; font-family: inherit; cursor: pointer;
}

/* Últimos lançamentos */
.mini-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--borda); border-radius: 12px;
  padding: 12px 14px;
}
.mini-item .principal { font-size: 14px; font-weight: 700; }
.mini-item .secundario { font-size: 12px; font-weight: 500; color: var(--texto-fraco); }
.mini-item .hora { font-size: 12px; font-weight: 600; color: var(--texto-apagado); }

/* Confirmação */
.centro {
  flex-grow: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px; gap: 20px;
}

.circulo-sucesso {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--verde-fundo); color: var(--verde);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 700;
}

.erro { color: var(--vermelho); font-size: 13px; font-weight: 700; }

.logo { height: 64px; object-fit: contain; }

.vazio { text-align: center; color: var(--texto-apagado); font-size: 14px; font-weight: 600; padding: 24px; }
