/* ===== Reset/Boas práticas ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
:where(img, svg) { display: block; max-width: 100%; }
:where(button, input, label) { font: inherit; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Design tokens (padrão) ===== */
:root{
  --bg: #0f172a;               /* slate-900 */
  --card: #0b1220cc;           /* translucent */
  --muted: #94a3b8;            /* slate-400 */
  --text: #e2e8f0;             /* slate-200 */
  --primary: #a00e45;
  --primary-600: #A00E45FF;
  --ring: #60a5fa;             /* blue-400 */
  --danger: #ef4444;           /* red-500 */
  --success: #4ade80;          /* green-400 */
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.25);
  --radius: 16px;
}

/* ===== Base ===== */
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 20% -10%, #1e293b, transparent),
    radial-gradient(900px 700px at 120% 10%, #0e7490, transparent),
    linear-gradient(180deg, #0b1220, #0b1220 60%, #050a16 100%);
  color:var(--text);
  display:grid;
  place-items:center;
  padding:24px;
}

/* ===== Layout genérico de página interna (ex: cadastro voluntário) ===== */
/* Use um wrapper <div class="page"> em telas internas. */
.page{
  width:100%;
  max-width:1100px;
  margin:0 auto;
}

/* Dentro de .page o card pode ser mais largo */
.page .card{
  max-width:100%;
}

/* ===== Componentes base ===== */
.card{
  width:100%;
  max-width:420px;                 /* padrão estreito (login) */
  background:var(--card);
  backdrop-filter: blur(10px);
  border:1px solid rgba(148,163,184,.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:28px;
  animation: fadeIn .6s ease;
}
@keyframes fadeIn{
  from{opacity:0; transform:translateY(8px)}
  to{opacity:1; transform:translateY(0)}
}

/* Card header genérico (título + logo + ações) */
.card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

/* Marca / título em cartões estreitos (login) */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}

.logo{
  width:58px;
  height:54px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: conic-gradient(from 200deg, #ffffff, #ffffff 35%, #ffffff 75%, rgb(255, 255, 255));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15), 0 6px 18px rgba(34,197,94,.35);
}
.logo svg{
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

h1{
  font-size:20px;
  margin:0;
}
p.sub{
  margin:2px 0 0;
  color:var(--muted);
  font-size:14px;
}

/* Título + logo inline (uso geral) */
.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.header-row h1 {
  margin: 0;
}
.logo-inline {
  height: 34px;
  width: auto;
}

/* Helpers de texto */
.subtitle{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.text-center{
  text-align:center;
}

/* ===== Campos genéricos ===== */
form{
  display:grid;
  gap:14px;
  margin-top:10px;
}

/* Grupo de campo genérico */
.field{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:4px;
}
label{
  font-weight:600;
  font-size:13px;
  color:#cbd5e1;
}

/* Linha com múltiplos campos (ex: telefones, sexo/tipo) */
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
 /* flex-direction: column;*/
}
 
.field label {
  font-size: 13px;
  font-weight: 600;
}

.field-row > .field{
  flex:1 1 150px;
}

/* Inputs padrão (login + telas internas) */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.25);
  background: rgba(2,6,23,.6);
  color:var(--text);
  outline:none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size:14px;
}
textarea{
  resize:vertical;
}

input::placeholder,
textarea::placeholder{
  color:#64748b;
}
input:focus,
select:focus,
textarea:focus{
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(96,165,250,.18);
  background: rgba(2,6,23,.8);
}

/* Campo de login tinha padding diferente, mantemos compatibilidade no olho */
input[type="email"], input[type="password"]{
  padding:14px 44px 14px 14px;
}

/* Toggle de mostrar senha (login) */
.toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  opacity:.8;
}

/* Campos desabilitados “só leitura” */
.input-disabled {
  background: rgba(15,23,42,.6);
  color: #9ca3af;
  cursor: not-allowed;
}

/* ===== Botões ===== */
.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  font-weight:700;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  background:linear-gradient(180deg, var(--primary), var(--primary-600));
  color:#ffffff;
  text-shadow:0 1px 0 rgba(255,255,255,.2);
  box-shadow: 0 8px 18px rgba(232, 63, 128, 0.39), inset 0 0 0 1px rgba(255,255,255,.22);
  transition: transform .05s ease, filter .15s ease;
}
.btn:active{
  transform: translateY(1px);
}

/* Botão secundário (ex: "Menu") */
.btn-secondary{
  appearance:none;
  border:1px solid rgba(148,163,184,.5);
  background:rgba(15,23,42,.9);
  color:var(--text);
  border-radius:12px;
  padding:12px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}

/* Botão ocupar largura total */
.btn-block{
  width:100%;
  justify-content:center;
}

/* Linha de ações no rodapé dos cards (ex: salvar + menu) */
.actions-row{
  margin-top:16px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* ===== Feedback / helpers ===== */
.helper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:2px;
}
.hint{
  font-size:12px;
  color:var(--muted);
}

.error{
  display:none;
  margin-top:6px;
  color:var(--danger);
  font-size:13px;
  font-weight:600;
}
.success{
  display:none;
  margin-top:6px;
  color:var(--success);
  font-size:13px;
  font-weight:700;
}

/* Shake de erro no login */
.shake{ animation:shake .35s ease; }
@keyframes shake{
  10%{transform:translateX(-4px)}
  30%{transform:translateX(4px)}
  50%{transform:translateX(-3px)}
  70%{transform:translateX(3px)}
  100%{transform:translateX(0)}
}

/* Footer global */
footer{
  margin-top:14px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

a{
  color:#93c5fd;
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

/* ========================================= */
/* ===== Layout para páginas de SURVEY ===== */
/* ========================================= */

/* body das páginas de pesquisa:
   nos templates de survey, use:
   <body class="survey-body"> */
.survey-body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 20% -10%, #1e293b, transparent),
    radial-gradient(900px 700px at 120% 10%, #0e7490, transparent),
    linear-gradient(180deg, #0b1220, #0b1220 60%, #050a16 100%);
  color:var(--text);
  min-height:100vh;
  display:block;           /* override do grid do body padrão */
  padding:16px 12px;
}

/* Container geral */
.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
}

/* Container mais estreito (formulário de respostas, telas simples) */
.container-narrow{
  width:100%;
  max-width:640px;
  margin:0 auto;
}

/* Cabeçalho de página */
.page-header{
  margin-bottom:16px;
}
.page-header h1{
  font-size:24px;
  margin:0 0 4px 0;
}

/* Ações no topo (botões, links) */
.page-actions{
  margin-bottom:16px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Card adaptado para survey (mais largo, usa largura total do container) */
.survey-body .card{
  max-width:100%;
  padding:20px 20px;
}

/* Formularios gerais das páginas de survey */
.survey-body .form{
  display:grid;
  gap:14px;
  margin-top:10px;
}
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}
.form-group label{
  font-weight:600;
  font-size:13px;
  color:#cbd5e1;
}

/* Campos genéricos de input/textarea/select dentro das páginas de survey */
.survey-body input[type="text"],
.survey-body input[type="number"],
.survey-body input[type="email"],
.survey-body select,
.survey-body textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.25);
  background: rgba(2,6,23,.6);
  color:var(--text);
  outline:none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size:14px;
}
.survey-body textarea{
  resize:vertical;
}
.survey-body input::placeholder,
.survey-body textarea::placeholder{
  color:#64748b;
}
.survey-body input:focus,
.survey-body textarea:focus,
.survey-body select:focus{
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(96,165,250,.18);
  background: rgba(2,6,23,.8);
}

.form-actions{
  margin-top:8px;
}

/* Mensagens de feedback (flash) */
.flash-messages{
  list-style:none;
  padding:0;
  margin:8px 0 16px 0;
}
.flash{
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
  margin-bottom:6px;
  background: rgba(15,23,42,.85);
  border:1px solid rgba(148,163,184,.35);
}
.flash-success{ border-color: var(--success); color: var(--success); }
.flash-warning{ border-color: #facc15; color:#facc15; }
.flash-danger{ border-color: var(--danger); color: var(--danger); }

/* Blocos de perguntas */
.question-block{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(15,23,42,.7);
  border:1px solid rgba(148,163,184,.2);
}
.question-title{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
}
.question-number{
  font-weight:700;
  color:#cbd5e1;
}
.required{
  color:#f97316;
  font-weight:700;
  margin-left:4px;
}
.help-text{
  font-size:12px;
  color:var(--muted);
}

/* Opções (radio/checkbox) */
.options-group{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.option{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
}

/* Tabelas responsivas */
.table-responsive{
  width:100%;
  overflow-x:auto;
}
.table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.table th,
.table td{
  padding:8px 10px;
  border-bottom:1px solid rgba(148,163,184,.25);
  text-align:left;
}
.table thead th{
  background:rgba(15,23,42,.9);
  font-weight:600;
}
.table-striped tbody tr:nth-child(odd){
  background:rgba(15,23,42,.6);
}
.table-hover tbody tr:hover{
  background:rgba(30,64,175,.4);
}
.table-small th,
.table-small td{
  font-size:12px;
}

/* Ajustes de ações em tabela */
.table-actions{
  white-space:nowrap;
}
.separator{
  margin:0 4px;
}

/* Listas de tokens */
.token-list{
  list-style:none;
  padding:0;
  margin:4px 0 0 0;
}
.token-list li{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  padding:4px 0;
}

/* Grades de checkboxes para áreas (voluntário, etc) */
.checkbox-grid {
  display: flex;
  flex-direction: column;   /* um item por linha */
  gap: 4px;
}

/* cada item ocupa 100% da largura do card */
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(148,163,184,.35);
  box-sizing: border-box;
}

/* texto do label se ajusta e quebra linha se precisar */
.checkbox-item span {
  flex: 1;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: break-word;
}

/* cor do check nos navegadores que suportam accent-color */
/* checkbox em si, tamanho fixo */
.checkbox-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #A00E45;   /* cor do check, quando suportado */
}

/* ===== Responsividade ===== */
@media (max-width: 768px){
  body{
    padding:16px 8px;
  }

  .page{
    max-width:100%;
  }

  .card{
    padding:20px 16px;
  }

  .card-header{
    flex-direction:column;
    align-items:stretch;
  }

 

  .checkbox-grid{
    flex-direction:column;
  }

    .actions-row .btn,
  .actions-row .btn-secondary,
  .actions-row a.btn,
  .actions-row button.btn{
    width:100%;
    text-align:center;
  }

  footer{
    text-align:center;
    font-size:11px;
    margin-top:12px;
  }

  .page-header h1{
    font-size:20px;
  }

  .survey-body{
    padding:12px 8px;
  }
}

/* ===== Landing (home inicial estilo Figma) ===== */

/* Aplica layout centrado só na landing */
.landing-page{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:32px 16px;
}

/* Card maior, parecido com o frame do Figma */
.landing-card{
  width: 100%;
  max-width:1100px;
  padding:28px 32px;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 65%);
  border-radius:24px;
}

/* Cabeçalho */
.landing-brand{
  align-items:flex-start;
  gap:14px;
}

.landing-pills{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 9px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:0.02em;
  text-transform:uppercase;
  border:1px solid transparent;
}

.pill-primary{
  background:linear-gradient(135deg, #fb7185, #a00e45);
  border-color:rgba(252, 165, 165, .7);
  color:white;
}

.pill-outline{
  background:rgba(15,23,42,.7);
  border-color:rgba(148,163,184,.6);
  color:var(--muted);
}

/* Grid: texto à esquerda, logo à direita */
.landing-hero{
  margin-top:26px;
  display:grid;
  grid-template-columns: 1fr;   /* só uma coluna, sem espaço vazio à direita */
  gap:24px;
  align-items:center;
}

.landing-hero-text{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.landing-title{
  margin:0;
  font-size:26px;
}

.landing-text{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

/* Cards Administração / Voluntário */
.landing-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.landing-option{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px;
  border-radius:22px;
  text-decoration:none;
  color:#f9fafb;
  box-shadow:0 20px 40px rgba(0,0,0,.6);
  border:1px solid rgba(15,23,42,.7);
}

.landing-option-header{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.landing-icon-circle{
  width:36px;
  height:36px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.65);
  box-shadow:0 0 0 1px rgba(15,23,42,.7);
}

.landing-icon-circle svg{
  width:22px;
  height:22px;
}

.landing-option-title{
  margin:0 0 3px 0;
  font-size:15px;
}

.landing-option-desc{
  margin:0;
  font-size:12px;
  color:#e5e7eb;
}

/* Gradientes dos cards (rosa / verde) */
.landing-option--admin{
  background:linear-gradient(135deg, #7f1d4c, #a00e45);
}

.landing-option--volunteer{
  background:linear-gradient(135deg, #166534, #16a34a);
}

/* Chips de rodapé dos cards */
.landing-chip{
  align-self:flex-start;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  background:rgba(15,23,42,.85);
  border:1px solid rgba(148,163,184,.6);
  color:#e5e7eb;
}

.landing-chip--soft{
  background:rgba(22,163,74,.20);
  border-color:rgba(74,222,128,.6);
}

/* Logo grande à direita, com “card branco” arredondado */
.landing-hero-visual{
  display:flex;
  justify-content:flex-end;
}

.landing-logo-card{
  background:#ffffff;
  border-radius:32px;
  padding:32px;
  box-shadow:0 26px 50px rgba(0,0,0,.7);
  border:1px solid rgba(15,23,42,.5);
  max-width:430px;
  width:100%;
}

.landing-logo-card img{
  display:block;
  width:100%;
  height:auto;
}

/* Rodapé da landing */
.landing-footer{
  margin-top:24px;
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

/* Responsivo */
@media (max-width: 900px){
  .landing-card{
    padding:20px 18px;
  }

  .landing-hero{
    grid-template-columns:1fr;
  }

  .landing-hero-visual{
    justify-content:center;
    order:-1; /* logo vai pra cima no mobile */
  }
}

@media (max-width: 640px){
  .landing-options{
    grid-template-columns:1fr;
  }

  .landing-title{
    font-size:22px;
  }
}

.cpf-error-msg{
  margin-top: 2px;
  font-size: 12px;
  color: #fecaca;           /* vermelho clarinho */
}

.input-error{
  border-color: #f97373 !important;
  box-shadow: 0 0 0 2px rgba(248,113,113,.35) !important;
}

/* container geral das áreas */
.areas-wrapper{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

/* cada label inteiro é clicável */
.area-option{
  display: flex;
  align-items: stretch;
  cursor: pointer;
  gap: 6px;
  font-size: 14px;
}

/* esconde o checkbox "feio", mas mantém acessível */
.area-option input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* chip visual com ícone + texto */
.area-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35); /* slate-400 */
  background: rgba(15,23,42,0.8);           /* fundo dark */
  color: var(--foreground, #e5e7eb);
  width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.area-chip:hover{
  background: rgba(30,64,175,0.25); /* leve realce */
  border-color: rgba(96,165,250,0.7);
  transform: translateY(-1px);
}

.area-icon img{
  width: 20px;
  height: 20px;
  display: block;
}

.area-text{
  flex: 1;
}

/* estado selecionado (checkbox marcado) */
.area-option input[type="checkbox"]:checked + .area-chip{
  background: rgba(59,130,246,0.25);         /* variação de --primary-soft */
  border-color: var(--primary, #3b82f6);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.4);
}

.areas-list{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* cada linha (checkbox + texto + ícone) */
.area-row{
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(30,41,59,0.8);
  cursor: pointer;
  gap: 8px;
}

.area-row input[type="checkbox"]{
  margin: 0 6px 0 0;
}

.area-name{
  flex: 1;              /* ocupa o meio, empurra o ícone pra direita */
  white-space: nowrap;  /* opcional pra não quebrar a linha do texto */
}

.area-icon{
  margin-left: auto;                 /* empurra pro canto direito */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;              /* bolinha */
  background: #f472b6;               /* rosa (rose-400) */
}

.area-icon img{
  width: 16px;
  height: 16px;
  display: block;
}

@page {
  size: A4 landscape;
  margin: 5mm;
  scale: 80%;
}

@media print {
  body {
    background:#ffffff;
    padding:0;
    zoom: 0.8;
  }
  .cert-wrapper {
    box-shadow:none;
    border-radius:0;
    width: 100%;
    max-width: none;
  }
  .print-btn-wrapper { 
    display:none; 
  }
}
.menu-card--disabled{
  cursor: not-allowed;
  pointer-events: none;
  opacity: .55;
  filter: grayscale(.2);
}

.menu-card {
  width: 100%;
  max-width: 420px;
}

/* ===========================
   CADASTRO DE PESSOA (ACF)
   =========================== */

.cadastro-page .card{
  max-width: 100%;
  padding: 18px 18px 20px;
}

/* Header (título + textos + foto) */
.cadastro-page .card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.cadastro-page .card-header-text h1{
  margin:0;
  font-size:20px;
}

.cadastro-page .muted{
  font-size:13px;
}

.cadastro-page .meta{
  font-size:11px;
  color:#64748b;
  margin-top:4px;
  line-height:1.3;
}

/* Foto */
.cadastro-page .foto-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  cursor:pointer;
  user-select:none;
}

.cadastro-page .foto-box{
  width:68px;
  height:68px;
  border-radius:999px;
  overflow:hidden;
  border:2px solid #1f2937;
  background:#020617;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.cadastro-page .foto-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cadastro-page .foto-label{
  font-size:11px;
  color:#9ca3af;
  text-align:center;
  max-width:110px;
  line-height:1.2;
}

/* Mensagens flash */
.cadastro-page .flash-messages{
  margin:4px 0 8px;
  font-size:12px;
}

.cadastro-page .flash{
  padding:6px 9px;
  border-radius:8px;
  margin-bottom:4px;
  background:rgba(15,23,42,.9);
  border:1px solid rgba(148,163,184,.35);
}

.cadastro-page .flash.error{
  background:rgba(127,29,29,.26);
  border-color:#b91c1c;
  color:#fecaca;
}

.cadastro-page .flash.success{
  background:rgba(22,163,74,.22);
  border-color:#16a34a;
  color:#bbf7d0;
}

/* Form principal (aproveita .field e .field-row globais) */
.cadastro-page form#cadastroForm{
  display:flex;
  flex-direction:column;
  gap:10px;           /* menos espaço vertical */
  margin-top:4px;
}

/* Linha com campos lado a lado (telefones, email/sexo/tipo etc) */
.cadastro-page .field-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.cadastro-page .field-row .field{
  flex:1 1 140px;
}

/* Textarea mais baixinho */
.cadastro-page textarea{
  min-height:70px;
}

/* Ações do rodapé (botões) */
.cadastro-page .actions-row{
  margin-top:12px;
  margin-bottom:6px;
  justify-content:flex-start;
}

/* Botões da tabela de resultados (editar/família/docs) */
.cadastro-page .acoes-cell .btn{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
}

/* Divisor + título da seção de pesquisa */
.cadastro-page .divider{
  border:none;
  border-bottom:1px solid #1f2937;
  margin:14px 0 8px;
}

.cadastro-page .section-title{
  font-size:15px;
  margin-bottom:2px;
}

/* Pesquisa */
.cadastro-page .search-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:6px 0 6px;
  align-items:flex-end;
}

.cadastro-page .search-row .field{
  flex:1;
}

/* Tabela de pessoas – usa largura total, com leve estilo */
.cadastro-page .table-wrapper{
  width:100%;
  overflow-x:auto;
  border-radius:10px;
  border:1px solid #371f1f;
  background:#171202dd;
  margin-top:6px;
}

.cadastro-page #tabelaPessoas{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  min-width:420px;
}

.cadastro-page #tabelaPessoas th,
.cadastro-page #tabelaPessoas td{
  padding:6px 8px;
  text-align:left;
}

.cadastro-page #tabelaPessoas thead{
  background:rgba(15,23,42,.9);
}

.cadastro-page #tabelaPessoas tbody tr:nth-child(even){
  background:rgba(15,23,42,.7);
}

.cadastro-page #tabelaPessoas tbody tr:nth-child(odd){
  background:rgba(15,23,42,.5);
}

.cadastro-page .acoes-cell{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}

/* Rodapé da página */
.cadastro-page footer{
  margin-top:10px;
  text-align:center;
  font-size:11px;
  color:#94a3b8;
  opacity:.7;
}

/* Mobile – botões em coluna e card um pouco mais compacto */
@media (max-width: 768px){
  .cadastro-page .card{
    padding:16px 14px 18px;
  }

  .cadastro-page .card-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .cadastro-page .actions-row{
    flex-direction:column;
    align-items:stretch;
  }
  .cadastro-page .actions-row .btn,
  .cadastro-page .actions-row .btn-secondary,
  .cadastro-page .actions-row a.btn{
    width:100%;
    justify-content:center;
  }
}

/* Grid específico para filtros de protocolo: 2 linhas x 3 colunas */
.protocolo-grid {
  display: grid;                 /* sobrescreve o flex da checkbox-grid */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

/* Ajuste para telas bem pequenas (opcional, mas ajuda na responsividade) */
@media (max-width: 640px) {
  .protocolo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =============================
   Protocolo – cards de entrega
   ============================= */

.proto-card{
  border-radius: 16px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(15,23,42,.9);
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Cabeçalho */
.proto-header{
  display:grid;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1.2fr);
  gap:8px;
  align-items:center;
}

.proto-header-main{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.proto-nome{
  font-weight:600;
  font-size:14px;
}

.proto-id{
  font-size:11px;
  color:var(--muted);
}

.proto-header-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:12px;
  text-align:right;
}

.proto-mes{
  font-weight:500;
}

.proto-status{
  color:var(--muted);
}

/* Protocolo pill */
.proto-pill{
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.5);
  background:rgba(15,23,42,.85);
  font-size:12px;
  white-space:nowrap;
}

.proto-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.8);
}

/* Grid de totais */
.proto-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:8px;
}

.proto-box{
  border-radius:12px;
  border:1px solid rgba(30,41,59,.9);
  background:rgba(135, 53, 71, 0.9);
  padding:6px 8px;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.proto-box-title{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.proto-box-main{
  font-size:14px;
  font-weight:600;
}

.proto-box-sub{
  font-size:11px;
  color:var(--muted);
}

/* Rodapé */
.proto-footer{
  border-top:1px dashed rgba(30,41,59,.9);
  padding-top:6px;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:12px;
}

.proto-obs{
  color:var(--muted);
}

/* Mobile ajustes */
@media (max-width: 768px){
  .proto-header{
    grid-template-columns: minmax(0,1fr);
    gap:4px;
  }

  .proto-header-meta{
    text-align:left;
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px;
  }
}

/* Grid de impressão dentro da cert-wrapper */
.print-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 cards por linha em A4 landscape */
  gap:8px;
}

/* Cards um pouco mais compactos na impressão */
.proto-card-print{
  padding:8px 10px;
}

/* Em tela menor (se alguém abrir isso no mobile) */
@media (max-width: 900px){
  .print-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

.resumo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .resumo-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid #000;
    display: inline-block;
}

.actions-row .btn {
  /*flex: 1;*/           /* todos os botões com a mesma largura */
  text-align: center;
}

.field-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.field-group-buttons .field {
  margin-bottom: 0;
  flex: 1 1 150px;
}

.field-group-buttons .btn {
  width: 100%;
  text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
  .field-group-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .field-group-buttons .field {
    margin-bottom: 0;
  }

  .field-group-buttons .btn {
    margin-top: 0;
  }

  .field-group-buttons .field label {
    display: none;
  }
}

/* Versão mais “compacta” só para a página de protocolo/cadastro */
.cadastro-page .field-group-buttons {
  margin-top: 4px;          /* encosta mais no campo de cima */
}

.cadastro-page .field-group-buttons .field {
  gap: 0;                   /* tira espaço interno entre label e botão */
}

/* Mobile: praticamente cola um botão no outro */
@media (max-width: 600px) {
  .cadastro-page .field-group-buttons {
    flex-direction: column;
    gap: 4px;               /* espaço real entre os botões */
  }
}


.card-title-row{
  display: flex;
  align-items: center;
  gap: 8px;           /* espaço entre logo e texto */
}

.card-title-logo{
  height: 28px;       /* ajusta o tamanho que ficar mais bonito */
  width: auto;
  border-radius: 6px; /* opcional, só pra suavizar */
}

.link-like-input {
  cursor: pointer;
  color: #60a5fa;
  text-decoration: underline;
}

/* 🔧 REMOVER ESPAÇOS EM BRANCO NO MOBILE PARA A TELA DE PROTOCOLO */

@media (max-width: 600px) {

  /* Remove espaço interno vertical dos grupos de botões */
  .field-group-buttons {
    margin-top: 0 !important;
    gap: 4px !important;
  }

  .field-group-buttons .field {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ocultar completamente labels vazios sem deixar altura */
  .field-group-buttons .field label {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Reduz espaço entre os campos Ano/Mês/Categoria */
  .field-row {
    gap: 8px !important;
    margin-bottom: 0 !important;
  }

  /* Remove espaço extra criado pelo form/grid */
  form.form {
    gap: 10px !important;
  }

  /* Remove padding adicional do card nessa página */
  .survey-body .card {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  /* Tira espaço antes da lista */
  #lista-protocolo {
    margin-top: 4px !important;
  }
}

/* destaque quando houve retirada/entrega */
.proto-box-highlight {
  background-color: #1b5d3b;   /* um tom mais forte que o padrão */
  /* se quiser mais destaque ainda:
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transform: scale(1.01);
  */
}

.despesas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .despesas-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.despesa-item {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
}

.despesa-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.despesa-nome {
  font-weight: 500;
}

.despesa-valor-atual {
  font-size: 0.9rem;
  opacity: 0.85;
}

.despesa-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.despesa-range {
  flex: 1;
}

.despesa-number {
  width: 90px;
}

.total-despesas-field {
  margin-top: 1rem;
}

.total-despesas-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #111827;
  border: 1px solid rgba(248,113,113,0.6);
  font-weight: 600;
}

/* ============================
   Entrevista – Etapa 5/6
   ============================ */

/* Deixa o card ocupar mais largura e mantém o padrão visual */
.entrevista-card {
  max-width: 100%;
}

/* Títulos das seções dentro da entrevista */
.entrevista-card .section-title {
  margin: 0 0 4px;
  font-size: 15px;
}

/* Texto menor para ajuda */
.entrevista-card .muted,
.entrevista-card .hint {
  font-size: 12px;
}

/* Label + botão de microfone na mesma linha, responsivo */
.field-label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Botão de microfone mais compacto */
.btn-mic {
  appearance: none;
  border: 1px solid rgba(148,163,184,.55);
  background: rgba(15,23,42,.95);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Wrapper das tabelas (pendências) com scroll horizontal */
.entrevista-card .table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(30,41,59,.85);
  background: rgba(15,23,42,.9);
}

/* Tabelas de pendências com estilo consistente com o resto do sistema */
.entrevista-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px; /* deixa scroll horizontal se ficar apertado no mobile */
}

.entrevista-card thead th {
  padding: 6px 8px;
  text-align: left;
  background: rgba(15,23,42,.95);
  border-bottom: 1px solid rgba(30,41,59,.9);
  font-weight: 600;
}

.entrevista-card tbody td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(30,41,59,.7);
  vertical-align: top;
}

/* Checkbox de status dentro da tabela um pouco mais organizado */
.entrevista-card tbody td .checkbox-item {
  border-radius: 999px;
  padding: 4px 8px;
}

/* Botão "Remover" de novas pendências menor */
.entrevista-card .btn-remover-pendencia {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Área de texto com margem menor entre os blocos */
.entrevista-card textarea.textarea {
  min-height: 80px;
}

/* MOBILE: ajuste fino para telas pequenas */
@media (max-width: 768px) {
  .entrevista-card {
    padding: 16px 14px;
  }

  .entrevista-card h1 {
    font-size: 18px;
  }

  .entrevista-card .section-title {
    font-size: 14px;
  }

  /* Campos em coluna, com menos espaço */
  .entrevista-card .field-row {
    flex-direction: column;
    gap: 8px;
  }

  /* Botão de microfone vai pra linha de baixo se precisar */
  .field-label-with-action {
    align-items: flex-start;
  }

  /* Ações finais (Voltar / Salvar) em coluna, full width */
  .entrevista-card .actions-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
  }

  .entrevista-card .actions-row .btn,
  .entrevista-card .actions-row .btn-secondary,
  .entrevista-card .actions-row a.btn {
    width: 100%;
    justify-content: center;
  }

  /* Tabelas continuam scrolláveis, mas texto menor no mobile */
  .entrevista-card table {
    font-size: 12px;
    min-width: 420px;
  }
}

/* ============================
   Entrevista Etapa 5 – MOBILE
   Ajuste da tabela de novas pendências
   ============================ */
@media (max-width: 768px) {

  /* Essa tabela vira "cards" empilhados, não colunas */
  .entrevista-card #novaPendTable {
    min-width: 0;
    border-collapse: separate;
  }

  /* Esconde o cabeçalho no mobile */
  .entrevista-card #novaPendTable thead {
    display: none;
  }

  /* Cada tr vira um card separado */
  .entrevista-card #novaPendTable tbody tr {
    display: block;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(30,41,59,0.9);
    border-radius: 12px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  /* Cada célula ocupa 100% da largura */
  .entrevista-card #novaPendTable tbody td {
    display: block;
    width: 100%;
    border-bottom: none;
    padding: 4px 0;
  }

  /* Descrição primeiro, com um espacinho a mais */
  .entrevista-card #novaPendTable tbody td:nth-child(1) {
    margin-bottom: 4px;
  }

  .entrevista-card #novaPendTable tbody td:nth-child(1) .textarea {
    width: 100%;
  }

  /* Foto logo abaixo, ocupando a linha inteira */
  .entrevista-card #novaPendTable tbody td:nth-child(2) input[type="file"] {
    width: 100%;
  }

  /* Checkbox "Resolvida?" centralizado */
  .entrevista-card #novaPendTable tbody td:nth-child(3) {
    text-align: center;
  }

  /* Botão "Remover" sozinho embaixo, full-width e centralizado */
  .entrevista-card #novaPendTable tbody td:nth-child(4) {
    text-align: center;
    margin-top: 4px;
  }

  .entrevista-card #novaPendTable tbody td:nth-child(4) .btn-remover-pendencia {
    width: 100%;
    justify-content: center;
  }
}


/* =======================================================
   ENTREVISTA – ETAPA 6 (Resumo e histórico)
   ======================================================= */

.entrevista-card {
  max-width: 100%;
}

/* Seções de resumo dentro da entrevista */
.entrevista-card .resumo-section {
  margin-bottom: 1.5rem;
}

.entrevista-card .resumo-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.entrevista-card .resumo-sub {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

/* Grids de resumo – por padrão 1 coluna, em telas maiores 2/3 colunas */
.entrevista-card .resumo-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.entrevista-card .resumo-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .entrevista-card .resumo-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .entrevista-card .resumo-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cards mini de resumo (dados gerais, financeiro etc.) */
.entrevista-card .resumo-card-mini {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.9rem;
}

.entrevista-card .resumo-label-mini {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.entrevista-card .resumo-valor-mini {
  font-size: 1rem;
  font-weight: 500;
}

/* Destaque saldo positivo/negativo */
.entrevista-card .saldo-pos {
  border-color: rgba(34,197,94,0.8);
}

.entrevista-card .saldo-neg {
  border-color: rgba(248,113,113,0.9);
}

/* Caixinhas de texto (observações, voz etc.) */
.entrevista-card .texto-caixa {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Lista de pendências */
.entrevista-card .pendencias-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.entrevista-card .pend-card {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entrevista-card .pend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.entrevista-card .pend-status {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.entrevista-card .pend-status.aberta {
  background: rgba(248,113,113,0.16);
  color: #fecaca;
  border: 1px solid rgba(248,113,113,0.7);
}

.entrevista-card .pend-status.resolvida {
  background: rgba(34,197,94,0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.7);
}

/* Histórico de entrevistas */
.entrevista-card .hist-lista {
  margin-top: 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.35);
  overflow: hidden;
}

/* Mobile: linhas empilhadas */
.entrevista-card .hist-row {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  align-items: flex-start;
}

.entrevista-card .hist-row > div + div {
  margin-top: 2px;
}

.entrevista-card .hist-row:nth-child(odd) {
  background: rgba(15,23,42,0.7);
}

.entrevista-card .hist-row:nth-child(even) {
  background: rgba(15,23,42,0.95);
}

.entrevista-card .hist-row.atual {
  box-shadow: inset 0 0 0 1px rgba(248,113,113,0.9);
}

.entrevista-card .hist-head {
  font-weight: 600;
  background: #020617 !important;
}

/* Desktop: vira 3 colunas */
@media (min-width: 768px) {
  .entrevista-card .hist-row {
    grid-template-columns: 110px 120px 1fr;
    row-gap: 0;
  }
  .entrevista-card .hist-row > div + div {
    margin-top: 0;
  }
}

.entrevista-card .hist-chip {
  display: inline-flex;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.8rem;
}

/* Ações finais (Voltar / Concluir) */
.entrevista-card .actions-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* Mobile: botões empilhados, full width */
@media (max-width: 768px) {
  .entrevista-card {
    padding: 16px 14px;
  }

  .entrevista-card h1 {
    font-size: 18px;
  }

  .entrevista-card .resumo-title {
    font-size: 14px;
  }

  .entrevista-card .resumo-sub {
    font-size: 12px;
  }

  .entrevista-card .actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .entrevista-card .actions-row .btn,
  .entrevista-card .actions-row .btn-secondary,
  .entrevista-card .actions-row a.btn {
    width: 100%;
    justify-content: center;
  }
}

/* =======================================================
   ENTREVISTA – ETAPA 1 (Dados gerais)
   ======================================================= */

.entrevista-card {
  max-width: 100%;
}

/* Títulos de bloco da etapa 1 */
.entrevista-etapa1 .section-title {
  margin: 1.2rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Deixar os hints um pouco menores */
.entrevista-etapa1 .hint {
  font-size: 0.85rem;
}

/* A linha de campos (data + entrevistador, pares de números etc.) */
.entrevista-etapa1 .field-row {
  display: flex;
  gap: 12px;
}

/* Mobile: campos em coluna, ocupando 100% */
@media (max-width: 768px) {
  .entrevista-card {
    padding: 16px 14px;
  }

  .entrevista-card h1 {
    font-size: 18px;
  }

  .entrevista-etapa1 .section-title {
    font-size: 14px;
  }

  .entrevista-etapa1 .field-row {
    flex-direction: column;
    gap: 8px;
  }

  /* Botões finais empilhados e full width */
  .entrevista-etapa1 .actions-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
  }

  .entrevista-etapa1 .actions-row .btn,
  .entrevista-etapa1 .actions-row .btn-secondary,
  .entrevista-etapa1 .actions-row a.btn {
    width: 100%;
    justify-content: center;
  }
}

/* Desktop: mantém os botões lado a lado */
.entrevista-etapa1 .actions-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* ENTREVISTA – ETAPA 1 (ajuste de espaçamentos no mobile) */
@media (max-width: 768px) {

  /* Menos “respiro” no topo do card */
  .entrevista-card {
    padding: 12px 12px 16px;
  }

  .entrevista-etapa1 .card-header-text h1 {
    margin-bottom: 2px;
  }

  .entrevista-etapa1 .card-header-text .subtitle {
    margin-bottom: 4px;
  }

  .entrevista-etapa1 .card-header-text .meta {
    margin-bottom: 8px;
  }

  /* Form mais compacto */
  .entrevista-etapa1 .form {
    gap: 8px;
  }

  /* Cada bloco de campo com menos margem */
  .entrevista-etapa1 .field {
    margin-bottom: 6px;
  }

  .entrevista-etapa1 .field-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
  }

  /* Títulos de seção mais próximos */
  .entrevista-etapa1 .section-title {
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
    font-size: 14px;
  }

  /* Radios/checkbox mais coladinhos */
  .entrevista-etapa1 .checkbox-grid {
    row-gap: 3px;
  }

  /* Ações finais já tínhamos empilhado, só manter */
  .entrevista-etapa1 .actions-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  .field-row {
    flex-direction: column;
  }
  .field-row .field {
    flex: 0 0 auto;
  }
}

/* =======================================================
   Assinatura da Entrevista (mobile-friendly)
   ======================================================= */

.assinatura-card .section-title {
  margin: 1rem 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.signature-wrapper {
  margin-top: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #0b1120;
  height: 180px;            /* altura padrão mobile */
  overflow: hidden;
}

.signature-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;       /* evita scroll enquanto assina */
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.assinatura-actions {
  margin-top: 1.2rem;
}

/* Mobile – botões full width */
@media (max-width: 768px) {
  .assinatura-actions {
    flex-direction: column;
    gap: 8px;
  }

  .assinatura-actions .btn,
  .assinatura-actions .btn-secondary,
  .assinatura-actions a.btn {
    width: 100%;
    justify-content: center;
  }
}

.assinatura-anterior {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
}

.assinatura-anterior-info {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.assinatura-anterior img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: #020617;
}
