/* Shared interactive components */
.botao,
.botao-contorno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--cor-primaria);
  border-radius: 5px;
  background: var(--cor-primaria);
  color: white;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.botao:hover {
  background: #8c612c;
}
.botao-contorno {
  background: transparent;
  color: var(--cor-primaria);
}
.botao-contorno:hover {
  background: var(--cor-suave);
}
.botao.pequeno {
  padding: 10px 18px;
  min-height: 43px;
}
.botao-texto {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  color: var(--cor-primaria);
  text-decoration: underline;
  font-size: 13px;
}
.painel {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--cor-texto);
  margin-bottom: 18px;
}
input,
select,
textarea {
  width: 100%;
  display: block;
  margin-top: 7px;
  padding: 12px 13px;
  min-height: 46px;
  border: 1px solid var(--cor-borda);
  border-radius: 5px;
  background: white;
  color: var(--cor-texto);
}
input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  display: inline-block;
  margin: 0 10px 0 0;
  accent-color: var(--cor-primaria);
  vertical-align: middle;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.form-linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: var(--cor-suave);
  color: var(--cor-primaria);
}
.badge.confirmado,
.badge.pago,
.badge.concluido {
  background: #eaf3ed;
  color: #32604a;
}
.badge.cancelado,
.badge.expirado,
.badge.nao_compareceu {
  background: #f6eae7;
  color: #974c42;
}
.badge.aguardando_pagamento,
.badge.pendente {
  background: #fbf2df;
  color: #8a6a29;
}
.vazio {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--cor-borda);
  border-radius: 8px;
  color: var(--cor-muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 15px 22px;
  max-width: min(440px, calc(100vw - 32px));
  background: var(--cor-primaria);
  color: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0002;
  font-size: 14px;
}
.toast.erro {
  background: var(--cor-erro);
}
.alerta {
  padding: 14px 18px;
  background: #f5eee5;
  border-radius: 6px;
  font-size: 13px;
  color: var(--cor-primaria);
}
.alerta.erro {
  background: #faeae7;
  color: var(--cor-erro);
}
.carregando {
  padding: 36px;
  text-align: center;
  color: var(--cor-muted);
}
.carregando:before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--cor-borda);
  border-top-color: var(--cor-primaria);
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}
.tabela-wrap {
  overflow-x: auto;
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  background: #faf8f5;
  color: var(--cor-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--cor-borda);
}
tr:last-child td {
  border: 0;
}
tbody tr.clicavel {
  cursor: pointer;
}
tbody tr.clicavel:hover {
  background: #faf7f3;
}
td strong {
  display: block;
  font-weight: 500;
}
td small {
  color: var(--cor-muted);
}
.detalhes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detalhes-grid p {
  margin: 0;
}
.detalhes-grid span {
  display: block;
  font-size: 11px;
  color: var(--cor-muted);
}
.detalhes-grid strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.selo-confirmacao {
  display: grid;
  place-items: center;
  font-size: 28px;
  width: 70px;
  height: 70px;
  background: #eaf3ed;
  color: var(--cor-sucesso);
  border-radius: 50%;
  margin-bottom: 24px;
}
