/* Frontend público do V3RHelp — estilos leves, herdam a fonte do tema. */
.v3rhelp-public {
  --v3rhelp-primary: #092209;
  --v3rhelp-line: #e2e8f0;
  --v3rhelp-muted: #64748b;
  /* Usa 100% da largura disponível (página, container, coluna). */
  width: 100%;
  box-sizing: border-box;
  color: #1e293b;
}
.v3rhelp-brand img {
  max-height: 48px;
  width: auto;
  margin-bottom: 16px;
}
.v3rhelp-public h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.v3rhelp-form,
.v3rhelp-card {
  border: 1px solid var(--v3rhelp-line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}
.v3rhelp-field {
  display: block;
  margin-bottom: 14px;
}
.v3rhelp-field > span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--v3rhelp-muted);
}
.v3rhelp-field input,
.v3rhelp-field select,
.v3rhelp-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  box-sizing: border-box;
}
.v3rhelp-btn {
  display: inline-block;
  background: var(--v3rhelp-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}
.v3rhelp-btn:hover {
  background: #2d5016;
}
.v3rhelp-table {
  width: 100%;
  border-collapse: collapse;
}
.v3rhelp-table th,
.v3rhelp-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--v3rhelp-line);
  font-size: 0.92rem;
}
.v3rhelp-table a {
  text-decoration: none;
  color: inherit;
}
.v3rhelp-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--v3rhelp-line);
  background: #f1f5f9;
  color: #475569;
}
.v3rhelp-pill--open { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.v3rhelp-pill--in_progress { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.v3rhelp-pill--waiting { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.v3rhelp-pill--resolved { background: #e3ece3; color: #071b07; border-color: #93b493; }
.v3rhelp-pill--reopened { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.v3rhelp-pill--cancelled { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.v3rhelp-notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.v3rhelp-notice--success { background: #e3ece3; color: #071b07; }
.v3rhelp-notice--error { background: #fff1f2; color: #be123c; }
.v3rhelp-notice--info { background: #eff6ff; color: #1d4ed8; }
.v3rhelp-ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v3rhelp-thread { margin: 16px 0; }
.v3rhelp-msg {
  border: 1px solid var(--v3rhelp-line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.v3rhelp-msg strong { display: block; margin-bottom: 4px; font-size: 0.85rem; }
.v3rhelp-code code { font-size: 0.85rem; }
.v3rhelp-msg-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.v3rhelp-attach {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--v3rhelp-line);
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  text-decoration: none;
}
.v3rhelp-attach::before { content: "\1F4CE  "; }
.v3rhelp-attach:hover { background: #e2e8f0; }

/* HU-039: dica de reabertura no campo de resposta de um chamado resolvido. */
.v3rhelp-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--v3rhelp-primary);
  background: #f0fdf4;
  color: #334155;
  font-size: 0.85rem;
  border-radius: 0 8px 8px 0;
}

/* HU-040: painel de gestão (status/designação) e paginação da fila na Central. */
.v3rhelp-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 4px 0 16px;
  padding: 12px;
  border: 1px dashed var(--v3rhelp-line);
  border-radius: 8px;
  background: #f8fafc;
}
.v3rhelp-manage-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.v3rhelp-manage-form .v3rhelp-field { margin-bottom: 0; }
.v3rhelp-btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}
.v3rhelp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.v3rhelp-pager-info {
  font-size: 0.85rem;
  color: var(--v3rhelp-muted);
}

/* Anti-spam: honeypot fora da tela (bots preenchem; humanos não veem). */
.v3rhelp-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* #61 — polimento visual da Central pública, alinhado à identidade do painel:
   sombras suaves, foco na cor da marca, cabeçalhos de tabela e hover. */
.v3rhelp-public { font-size: 15px; line-height: 1.5; }
.v3rhelp-brand img { max-height: 52px; }

.v3rhelp-form,
.v3rhelp-card {
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.v3rhelp-public h3 {
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0f172a;
}

.v3rhelp-field > span {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  color: #475569;
}
.v3rhelp-field input,
.v3rhelp-field select,
.v3rhelp-field textarea {
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.v3rhelp-field input:focus,
.v3rhelp-field select:focus,
.v3rhelp-field textarea:focus {
  outline: none;
  border-color: var(--v3rhelp-primary);
  box-shadow: 0 0 0 3px rgba(9, 34, 9, .12);
}

.v3rhelp-btn {
  transition: background-color .15s, box-shadow .15s, transform .02s;
  box-shadow: 0 1px 2px rgba(9, 34, 9, .2);
}
.v3rhelp-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 34, 9, .25);
}
.v3rhelp-btn:active { transform: translateY(1px); }

.v3rhelp-table thead th {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid var(--v3rhelp-line);
}
.v3rhelp-table tbody tr { transition: background-color .12s; }
.v3rhelp-table tbody tr:hover { background: #f8fafc; }
.v3rhelp-table td a code { color: var(--v3rhelp-primary); font-weight: 700; }
.v3rhelp-table td a:hover { color: var(--v3rhelp-primary); text-decoration: underline; }

.v3rhelp-msg { background: #fff; }
.v3rhelp-msg strong { color: #0f172a; }
