* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f1f4f8;
  color: #14253d;
}

.app {
  max-width: 560px;
  margin: auto;
  min-height: 100vh;
  padding: 20px 16px 40px;
}

.topo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 28px;
}

.marca {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #14253d;
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: bold;
}

h1 { font-size: 22px; margin: 0; }
h2 { font-size: 19px; margin: 0 0 12px; }
p { color: #68778b; font-size: 14px; }

.painel {
  background: white;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px #14253d0a;
}

input, select {
  width: 100%;
  padding: 15px;
  border: 1px solid #d6dfe9;
  border-radius: 10px;
  font-size: 16px;
  margin: 8px 0 14px;
  background: white;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  font-weight: bold;
  background: #14253d;
  color: white;
  cursor: pointer;
}

form button { width: 100%; }

.atalhos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.atalhos button {
  min-height: 85px;
  background: white;
  color: #14253d;
  box-shadow: 0 4px 18px #14253d0a;
}

.sair {
  background: transparent;
  color: #68778b;
  width: 100%;
}

.mensagem { color: #b42318; }
[hidden] { display: none !important; }

.linha-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.linha-titulo h2 { margin: 0; }

.botao-pequeno {
  padding: 11px 13px;
  font-size: 13px;
  white-space: nowrap;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

h3 {
  font-size: 16px;
  margin: 25px 0 12px;
}

.registro {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
}

.registro p { margin-bottom: 0; }

.sucesso {
  color: #167347;
  font-weight: 600;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}


.resumo-presencas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.resumo-presencas span {
  background: #edf2f7;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: bold;
}

.registro button {
  width: 100%;
  margin-top: 5px;
}

.registro [role="status"]:empty {
  display: none;
}


.lista-presencas {
  margin: 16px 0;
}

.linha-presenca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid #e2e8f0;
}

.nome-presenca {
  flex: 1;
  min-width: 0;
}

.nome-presenca strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.nome-presenca small {
  display: block;
  color: #68778b;
  font-size: 12px;
  margin-top: 4px;
}

.botoes-presenca {
  display: flex;
  gap: 5px;
  align-items: center;
}

.botoes-presenca button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  background: #edf2f7;
  color: #14253d;
}

.botoes-presenca .presenca-p.ativo {
  background: #16834b;
  color: white;
}

.botoes-presenca .presenca-f.ativo {
  background: #c62828;
  color: white;
}

.presenca-outros {
  width: 52px;
  height: 42px;
  padding: 0 4px;
  margin: 0;
  font-size: 14px;
}

.salvar-presencas {
  width: 100%;
  margin-top: 12px;
}
