* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: #EDE8DA;
  color: #23241F;
}
.tela { min-height: 100vh; }
.oculta { display: none !important; }

/* Login */
#tela-login { display: flex; align-items: center; justify-content: center; padding: 20px; }
.card-login { background: #F7F4EC; padding: 32px 28px; border-radius: 16px; max-width: 340px; width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.card-login h1 { font-size: 22px; margin: 0 0 4px; }
.subtitulo { color: #7A7566; font-size: 13px; margin: 0 0 20px; }
#form-login input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #E4DFD2; border-radius: 8px; font-size: 14px; }
#form-login button { width: 100%; padding: 13px; background: #23241F; color: #F7F4EC; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.erro { color: #B84C4C; font-size: 12.5px; margin-top: 8px; min-height: 16px; }

/* Topo */
.topo { display: flex; justify-content: space-between; align-items: center; background: #23241F; color: #F7F4EC; padding: 18px 20px; }
.rotulo { font-size: 11px; letter-spacing: 1.2px; opacity: 0.6; text-transform: uppercase; }
.titulo { font-size: 19px; font-weight: 700; margin-top: 2px; }
.btn-sair { background: transparent; border: 1px solid rgba(247,244,236,0.3); color: #F7F4EC; padding: 6px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; }

/* Lista de visitas (vendedor) */
.lista { padding: 14px 16px; max-width: 480px; margin: 0 auto; }
.item-visita { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 1px solid #E4DFD2; border-radius: 14px; padding: 14px; margin-bottom: 10px; cursor: pointer; }
.stamp { width: 30px; height: 30px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.item-info { flex: 1; min-width: 0; }
.item-cliente { font-size: 14.5px; font-weight: 700; }
.item-endereco { font-size: 11.5px; color: #7A7566; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-status { font-size: 11px; margin-top: 4px; font-weight: 600; }

/* Detalhe / check-in */
.detalhe { padding: 18px 20px; max-width: 480px; margin: 0 auto; }
.btn-voltar { background: none; border: none; color: #7A7566; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 14px; }
.endereco { color: #7A7566; font-size: 12.5px; margin-top: 2px; }
.aviso { margin-top: 16px; background: #EFEADB; border: 1px dashed #C9C1AC; border-radius: 12px; padding: 14px; font-size: 12.5px; color: #5A5648; }
#detalhe-obs { width: 100%; margin-top: 12px; min-height: 80px; border-radius: 10px; border: 1px solid #E4DFD2; padding: 10px; font-size: 13px; font-family: inherit; resize: vertical; }
.btn-principal { width: 100%; margin-top: 14px; background: #23241F; color: #F7F4EC; border: none; border-radius: 10px; padding: 14px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.btn-principal:disabled { opacity: 0.6; }
.card-confirmado { margin-top: 18px; background: #EAF1EC; border: 1px solid #C7DBCC; border-radius: 12px; padding: 14px; }

/* Gestor */
.resumo { display: flex; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.resumo .caixa { background: #FFFFFF; border: 1px solid #E4DFD2; border-radius: 12px; padding: 14px 18px; min-width: 120px; }
.resumo .num { font-size: 26px; font-weight: 700; }
.resumo .rot { font-size: 11px; color: #7A7566; margin-top: 2px; }
.tabela { width: 100%; border-collapse: collapse; margin-top: 18px; padding: 0 20px; }
.tabela th, .tabela td { text-align: left; padding: 10px 20px; font-size: 13px; border-bottom: 1px solid #E4DFD2; }
.tabela th { font-size: 11px; text-transform: uppercase; color: #7A7566; letter-spacing: 0.5px; }

@media (min-width: 700px) {
  .lista, .detalhe { max-width: 600px; }
}
