:root {
  --orange: #F58220;
  --orange-dark: #E06A00;
  --orange-light: #FFF4E8;
  --orange-glow: rgba(245, 130, 32, 0.25);
  --black: #141414;
  --white: #ffffff;
  --gray-50: #FAFAFB;
  --gray-100: #F0F1F4;
  --gray-200: #E4E6EB;
  --gray-400: #9CA3AF;
  --gray-600: #5F6672;
  --gray-800: #2B2F36;
  --shadow-sm: 0 4px 16px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 20, 20, 0.12);
  --shadow-lg: 0 24px 60px rgba(245, 130, 32, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Poppins", "Segoe UI", sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.site-header--light {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.logo-link--brand {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.logo-link--brand .logo {
  height: 44px;
  width: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-link {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-link:hover { color: var(--orange); }
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 75;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 8px 24px var(--orange-glow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.85);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-white {
  background: var(--white);
  color: var(--orange-dark);
}
.btn-ghost {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero homepage */
.hero-full {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: 620px;
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(245, 130, 32, 0.9) 0%,
    rgba(245, 130, 32, 0.75) 35%,
    rgba(245, 130, 32, 0.45) 60%,
    rgba(245, 130, 32, 0.2) 100%
  );
}
.hero-full-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0;
}
.hero-full-inner--solo {
  grid-template-columns: 1fr;
  justify-items: start;
  max-width: 760px;
}
.hero-copy { color: var(--white); max-width: 560px; }
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
}
.hero-copy p {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  opacity: 0.95;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-promo-img {
  width: min(100%, 480px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Stats */
.stats-bar {
  background: var(--white);
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
.stat-item {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid var(--gray-100);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--orange);
  line-height: 1.1;
}
.stat-item span {
  color: var(--gray-600);
  font-size: 0.88rem;
}

/* Sections */
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}
.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}
.section-head p { margin: 0; color: var(--gray-600); }

.about-section {
  padding: 5rem 0;
  background: var(--gray-50);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}
.about-text p { color: var(--gray-600); margin: 0 0 1rem; }
.feature-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--gray-800);
  font-weight: 500;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.about-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  min-height: 440px;
}
.about-card-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}
.about-card-caption-inner {
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.96), rgba(224, 106, 0, 0.94));
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.22);
  color: var(--white);
}
.about-card-caption h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}
.about-card-caption p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.95;
}

/* Jobs grid */
.jobs-section { padding: 4rem 0 5rem; }
.jobs-filters {
  margin: 0 0 1.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: opacity 0.2s ease;
}
.jobs-filters.is-filtering {
  opacity: 0.72;
  pointer-events: none;
}
.jobs-results-count {
  margin: 0 0 1rem;
}
.jobs-grid {
  transition: opacity 0.18s ease;
}
.jobs-filters.is-filtering + .jobs-results .jobs-grid {
  opacity: 0.55;
}
.stat-card--warn {
  border-color: #ffcc80;
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
}
.stat-card--warn .stat-value {
  color: #e65100;
}
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform 0.2s, box-shadow 0.2s;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.job-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.job-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(160deg, #fff4e8, #ffe0b2);
}
.job-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.job-card-body { padding: 1.35rem; }
.job-card-body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.3;
}
.job-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-600);
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}
.job-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-soft { background: var(--gray-100); color: var(--gray-800); }
.badge-light {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.job-date { color: var(--gray-400); font-size: 0.85rem; margin: 0 0 1rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  padding: 3rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { margin: 0 0 0.35rem; font-size: 1.75rem; }
.cta-band p { margin: 0; opacity: 0.92; }

/* Vaga detail page */
.vaga-hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center right;
  overflow: hidden;
  padding: 3rem 0 4rem;
}
.vaga-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(245, 130, 32, 0.9) 0%,
    rgba(245, 130, 32, 0.75) 35%,
    rgba(245, 130, 32, 0.45) 60%,
    rgba(245, 130, 32, 0.2) 100%
  );
}
.vaga-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: end;
}
.vaga-hero-content { color: var(--white); }
.vaga-hero-content .job-card-badge {
  position: static;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.vaga-hero-content .job-card-badge--paused {
  background: #fff3cd;
  color: #6d4c00;
}
.vaga-paused-note {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.45;
}
.vaga-hero-content h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
}
.vaga-hero-location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.vaga-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.92rem;
  opacity: 0.95;
}
.vaga-hero-photo img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.vaga-page { padding: 2.5rem 0 4rem; }
.vaga-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
.vaga-panel {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.vaga-panel h2, .vaga-panel h3 { margin-top: 0; }
.vaga-panel--accent {
  background: linear-gradient(160deg, var(--orange-light), #fff);
  border-color: rgba(245,130,32,0.2);
}
.vaga-panel--sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
.panel-icon { margin-right: 0.35rem; }
.bullet-list { padding-left: 1.2rem; margin: 0; }
.bullet-list li { margin-bottom: 0.5rem; color: var(--gray-800); }
.bullet-list--light li { color: var(--gray-800); }
.rich-text { color: var(--gray-600); }

/* Form */
.form-wrap { padding: 2rem 0 4rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gray-800); font-weight: 600; }
.form-page { max-width: 820px; margin: 0 auto; }
.form-page-head h1 { margin: 0.25rem 0 0.5rem; }
.form-page-head p { margin: 0; color: var(--gray-600); }
.form-page--locked .candidatura-form {
  opacity: 0.72;
}
.candidatura-form > fieldset,
.candidatura-form fieldset.form-section,
.candidatura-form fieldset.candidatura-lock,
.form-section {
  border: 0 !important;
  outline: none;
  box-shadow: none;
  min-inline-size: 0;
  border-radius: 0;
}
.candidatura-form > fieldset {
  margin: 0;
  padding: 0;
}
.form-section {
  padding: 0 0 1.25rem;
  margin: 0 0 1.25rem;
}
.form-section legend {
  font-weight: 700;
  color: var(--orange-dark);
  padding: 0;
  margin: 0 0 0.75rem;
  float: none;
  width: auto;
}
.candidatura-form .form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; max-width: 100%; }
.form-field.full { grid-column: 1 / -1; }
.form-field span { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); }
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--gray-50);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.form-field textarea {
  resize: vertical;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.form-field input[type="file"] {
  padding: 0.65rem 0.75rem;
  overflow: hidden;
}
.form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background: var(--white);
}

/* Checkboxes / radios — padrão único em todo o sistema */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid #c5cad3;
  background: #fff;
  color: #fff;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input[type="checkbox"] {
  border-radius: 0.3rem;
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="checkbox"]::before,
input[type="radio"]::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  transform: scale(0);
  transition: transform 0.12s ease;
  box-shadow: inset 1em 1em currentColor;
}
input[type="checkbox"]::before {
  width: 0.65rem;
  height: 0.4rem;
  box-shadow: none;
  background: transparent;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  transform: scale(0) rotate(45deg);
  transform-origin: center;
  margin-top: -0.1rem;
}
input[type="radio"]::before {
  border-radius: 50%;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: var(--orange);
  background: var(--orange);
}
input[type="checkbox"]:checked::before {
  transform: scale(1) rotate(45deg);
}
input[type="radio"]:checked::before {
  transform: scale(1);
  background: #fff;
  box-shadow: none;
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-glow);
  border-color: var(--orange);
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ui-check,
.filter-check,
.remember-row,
.privacy-consent-label,
.pcd-type-item,
.pretensao-option,
.settings-toggle {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  line-height: 1.4;
  color: var(--gray-800);
}
.ui-check > span,
.filter-check > span,
.remember-row > span,
.privacy-consent-label > span,
.pcd-type-item > span,
.pretensao-option > span,
.settings-toggle > span {
  font-weight: 600;
  font-size: 0.92rem;
}
.ui-check input,
.filter-check input,
.remember-row input,
.privacy-consent-label input,
.pcd-type-item input,
.pretensao-option input,
.settings-toggle input {
  margin-top: 0.12rem;
  width: 1.15rem;
  height: 1.15rem;
  max-width: 1.15rem;
  min-width: 1.15rem;
  padding: 0;
}
.ui-check--card,
.settings-toggle {
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ui-check--card:hover,
.settings-toggle:hover {
  border-color: rgba(245, 130, 32, 0.45);
  background: rgba(245, 130, 32, 0.04);
}
.ui-check--card:has(input:checked),
.settings-toggle:has(input:checked) {
  border-color: rgba(245, 130, 32, 0.55);
  background: rgba(245, 130, 32, 0.08);
}
.ui-check--card > span,
.settings-toggle > span {
  font-weight: 700;
}
.cep-status {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--gray-600);
  min-height: 1.15em;
}
.cep-status.is-loading { color: var(--orange-dark); }
.cep-status.is-ok { color: #2e7d32; }
.cep-status.is-error { color: #c62828; }
input.cep-locked[readonly] {
  background: var(--gray-100);
  color: var(--gray-800);
  cursor: default;
}

.privacy-consent {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}
.privacy-consent-label {
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.45;
}
.privacy-consent-label a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-consent-hint {
  margin: 0.55rem 0 0 1.7rem;
  font-size: 0.82rem;
}
.cand-privacy-meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--gray-600);
}
.cand-privacy-meta a {
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.form-hint {
  color: var(--gray-600);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}
.form-grid .full-span {
  grid-column: 1 / -1;
}
.pcd-extra {
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(245, 130, 32, 0.04);
}
.pcd-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.pcd-type-item {
  align-items: center;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.pcd-type-item:hover {
  background: rgba(245, 130, 32, 0.06);
}
.pcd-type-item:has(input:checked) {
  border-color: rgba(245, 130, 32, 0.35);
  background: rgba(245, 130, 32, 0.08);
}
.pcd-type-item > span {
  font-weight: 500;
}
.pretensao-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.35rem 0 0.65rem;
}
.pretensao-option {
  align-items: center;
  font-size: 0.92rem;
}
.pretensao-option > span {
  font-weight: 500;
}
.pretensao-field #pretensao_salarial:disabled {
  opacity: 0.55;
  background: var(--gray-100);
  cursor: not-allowed;
}

.detail-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.detail-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange-light);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.detail-block.full { grid-column: 1 / -1; }
.detail-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--orange-dark);
}
.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail-list li { margin-bottom: 0.4rem; font-size: 0.92rem; }
.pre-wrap { white-space: pre-wrap; }
.admin-detail h2 { margin: 0 0 0.35rem; }

/* ---- Detalhe do candidato ---- */
.cand-page-header h1 {
  margin: 0.2rem 0 0;
}
.cand-back {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
}
.cand-back:hover { color: var(--orange-dark); }

.cand-hero {
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(245, 130, 32, 0.08), transparent 42%),
    var(--white);
}
.cand-hero-main {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.cand-avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--orange-light);
  border: 2px solid #fff;
  box-shadow: 0 8px 24px rgba(245, 130, 32, 0.18);
}
.cand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cand-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.cand-hero-info { min-width: 0; flex: 1; }
.cand-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.2rem;
}
.cand-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.cand-social-name {
  margin: 0 0 0.35rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}
.cand-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}
.cand-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.82rem;
}
.cand-meta-sep { color: var(--gray-400); }
.cand-hero-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.9rem;
}
.cand-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.cand-file-missing {
  font-size: 0.86rem;
  color: var(--gray-600);
}
.cand-hero-triagem {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
  margin: 0;
  padding: 0.4rem 0.5rem 0.4rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  flex: 0 1 auto;
  max-width: 100%;
}
.cand-hero-triagem-field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
}
.cand-hero-triagem-field > span {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gray-700);
  white-space: nowrap;
}
.cand-hero-triagem-field select {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--white);
  width: auto;
  min-width: 9.5rem;
  max-width: 13rem;
  box-sizing: border-box;
}
.cand-hero-triagem-field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.cand-hero-triagem .btn {
  flex-shrink: 0;
}
.cand-hero-triagem-updated {
  font-size: 0.75rem;
  color: var(--gray-500);
  white-space: nowrap;
  padding-right: 0.15rem;
}
@media (max-width: 720px) {
  .cand-hero-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cand-hero-triagem {
    width: 100%;
    justify-content: flex-start;
  }
  .cand-hero-triagem-field {
    flex: 1 1 auto;
  }
  .cand-hero-triagem-field select {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}

.cand-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1.15rem;
  align-items: start;
}
.cand-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.cand-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
.cand-section,
.cand-aside-card {
  padding: 1.15rem 1.25rem;
}
.cand-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--gray-100);
}
.cand-section-head h3,
.cand-aside-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}
.cand-lgpd {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a5a00;
  background: #fff3cd;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.cand-section--sensitive {
  border-color: #f0e0b2;
  background: linear-gradient(180deg, #fffdf8, #fff);
}

.cand-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}
.cand-field {
  min-width: 0;
}
.cand-field--wide {
  grid-column: 1 / -1;
}
.cand-field dt {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}
.cand-field dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-800);
  word-break: break-word;
  line-height: 1.4;
}
.cand-field a {
  font-weight: 600;
  word-break: break-all;
}
.cand-prose {
  margin: 0;
  color: var(--gray-800);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cand-aside-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.cand-aside-updated {
  font-size: 0.8rem;
  color: var(--gray-600);
}
.cand-aside-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}
.cand-reapply-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cand-reapply-item {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: #fafafa;
}
.cand-reapply-item.is-current {
  border-color: #fdba74;
  background: #fff7ed;
}
.cand-reapply-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.cand-reapply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}
.cand-aside .triagem-form {
  margin-top: 0;
}
.cand-aside .triagem-form .form-field,
.cand-aside .admin-form .form-field {
  margin-bottom: 0.65rem;
}
.cand-aside-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.cand-aside .btn.btn-sm {
  width: auto;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}
.cand-aside .btn.btn-block {
  width: auto;
}
.cand-aside-log-form {
  margin-bottom: 0.85rem;
}
.cand-aside .comentarios-head {
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.cand-aside .comentarios-card {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .cand-layout {
    grid-template-columns: 1fr;
  }
  .cand-aside {
    position: static;
    order: -1;
  }
}
@media (max-width: 640px) {
  .cand-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .cand-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
  .cand-name { font-size: 1.25rem; }
  .cand-fields {
    grid-template-columns: 1fr;
  }
  .cand-field--wide { grid-column: auto; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  max-width: 100%;
  min-width: 0;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
.alert-error { background: #ffebee; color: #b71c1c; }
.alert-success { background: #e8f5e9; color: #1b5e20; }
.triagem-pending-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #fff7ed;
  border: 1px solid rgba(245, 130, 32, 0.35);
  color: #9a3412;
}

.success-page { text-align: center; padding: 3rem 2rem; }
.success-protocol {
  display: inline-block;
  margin: 0.75rem 0;
  padding: 0.75rem 1.25rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 1.1rem;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-lg);
}
.success-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.muted { color: var(--gray-600); }
.empty-state { text-align: center; padding: 3rem 2rem; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo {
  height: 88px;
  width: auto;
  max-width: 280px;
  margin-bottom: 1.25rem;
  display: block;
  object-fit: contain;
}
.footer-brand p { color: rgba(255,255,255,0.75); margin: 0; max-width: 320px; }
.site-footer h4 { margin: 0 0 0.75rem; color: var(--orange); }
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}
.footer-list li { margin-bottom: 0.45rem; }
.footer-list a { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Admin (unchanged core) */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--gray-50);
  max-width: 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}
.admin-body .btn {
  font-size: 13px;
  padding: 0.55rem 1.1rem;
}
.admin-body .btn-sm {
  font-size: 12px;
  padding: 0.4rem 0.85rem;
}
.admin-body .btn-lg {
  font-size: 13px;
  padding: 0.7rem 1.25rem;
}
.admin-body .page-header h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.admin-body h2 {
  font-size: 15px;
  line-height: 1.3;
}
.admin-body h3 {
  font-size: 14px;
  line-height: 1.3;
}
.admin-body .form-field span,
.admin-body .filter-label,
.admin-body .text-muted {
  font-size: 12px;
}
.admin-body input:not([type="checkbox"]):not([type="radio"]),
.admin-body select,
.admin-body textarea {
  font-size: 13px;
}
.admin-body .data-table th {
  font-size: 11px;
}
.admin-body .data-table td {
  font-size: 12px;
}
.admin-body .btn-action {
  font-size: 12px;
}
.admin-body .status-badge,
.admin-body .triagem-badge,
.admin-body .filter-chip,
.admin-body .cand-chip,
.admin-body .feed-chip,
.admin-body .feed-canal {
  font-size: 11px;
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 13px;
}
.sidebar-brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.admin-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.admin-nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.logo-sm { height: 28px; }
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.sidebar-nav a {
  color: var(--white);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 13px;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
}
.sidebar-link-lgpd,
.sidebar-link-badged {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #F58220;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.admin-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(6px);
}
.admin-topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.admin-topbar-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 0;
  text-align: right;
}
.admin-topbar-user strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}
.admin-topbar-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}
.admin-topbar-version {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.admin-topbar-version:hover {
  border-color: rgba(245, 130, 32, 0.35);
  color: var(--orange-dark, #c45a0a);
  background: #fff7ed;
}
.admin-topbar-logout {
  margin: 0;
  flex-shrink: 0;
}
.admin-topbar-logout .btn {
  min-height: 2.35rem;
  padding: 0.55rem 1rem;
  border-color: rgba(245, 130, 32, 0.35);
  background: #fff;
  color: var(--orange-dark, #c45a0a);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}
.admin-topbar-logout .btn:hover {
  background: var(--orange, #F58220);
  color: #fff;
  border-color: var(--orange, #F58220);
}
.text-muted {
  color: var(--gray-600);
  margin-top: 0;
  margin-bottom: 1rem;
}
.field-optional {
  font-style: normal;
  font-weight: 500;
  color: var(--gray-500, #888);
  font-size: 0.85em;
}
.admin-main {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.stats-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.report-intro { margin: 0 0 1rem; }
.report-grid {
  margin-bottom: 1.15rem;
}
.report-funnel {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.report-funnel li,
.report-funnel a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  color: inherit;
  text-decoration: none;
}
.report-funnel a:hover {
  border-color: rgba(245, 130, 32, 0.4);
  background: #fff8f3;
}
.report-funnel-label {
  flex: 1;
  min-width: 140px;
  font-weight: 600;
  color: var(--gray-800);
}
.report-funnel strong {
  font-size: 1.25rem;
  color: var(--orange-dark);
}
.report-funnel-meta {
  width: 100%;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.stat-card { text-align: center; }
.stat-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.stat-card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(245, 130, 32, 0.35);
}
.stat-label { display: block; color: var(--gray-600); font-size: 0.9rem; }
.stat-value { font-size: 2rem; color: var(--orange-dark); }
.stat-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.filter-bar {
  padding: 1rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 251, 0.98)),
    var(--gray-50);
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.filter-bar--compact {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: var(--white);
}
.filter-bar--audit {
  flex-wrap: wrap;
}
.filter-bar--audit .filter-actions {
  flex: 1 1 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
}
@media (min-width: 900px) {
  .filter-bar--audit .filter-actions {
    flex: 0 0 auto;
    align-self: flex-end;
    padding-top: 0;
  }
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(180px, 100%);
}
.filter-field--grow {
  flex: 1 1 220px;
  min-width: min(220px, 100%);
}
.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.filter-field select,
.filter-field input[type="search"],
.filter-field input[type="text"],
.filter-field input[type="date"],
.filter-form select,
.filter-form input[type="search"],
.filter-form input[type="text"],
.filter-form input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background-color: var(--white);
  color: var(--gray-800);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 2.2rem 0.55rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.filter-field select,
.filter-form > label > select,
.filter-bar select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gray-600) 50%),
    linear-gradient(135deg, var(--gray-600) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.filter-field input[type="search"],
.filter-field input[type="text"] {
  padding-right: 0.85rem;
}
.filter-field select:hover,
.filter-field input:hover,
.filter-form select:hover,
.filter-form input:hover {
  border-color: rgba(245, 130, 32, 0.45);
}
.filter-field select:focus,
.filter-field input:focus,
.filter-form select:focus,
.filter-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background-color: #fff;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.filter-clear {
  white-space: nowrap;
}
.filter-check {
  align-items: center;
  font-size: 0.92rem;
}
.filter-check > span {
  font-weight: 500;
}
.filter-check--pill {
  min-height: 2.55rem;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.filter-check--pill:hover {
  border-color: rgba(245, 130, 32, 0.45);
}
.filter-check--pill:has(input:checked) {
  border-color: rgba(245, 130, 32, 0.55);
  background: rgba(245, 130, 32, 0.08);
  color: var(--orange-dark);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.12);
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(245, 130, 32, 0.12);
}
.filter-chip--count {
  background: var(--gray-100);
  color: var(--gray-600);
  border-color: transparent;
}

@media (max-width: 760px) {
  .filter-bar {
    padding: 0.85rem;
  }
  .filter-field,
  .filter-field--grow,
  .filter-check--pill,
  .filter-actions {
    width: 100%;
    min-width: 0;
  }
  /* Evita altura vazia: flex-basis 220px no eixo vertical (coluna no mobile) */
  .filter-field--grow {
    flex: none;
  }
  .filter-actions {
    margin-left: 0;
  }
  .filter-actions .btn {
    width: 100%;
  }
}
.data-table--clickable .clickable-row { cursor: pointer; }
.data-table--clickable .clickable-row:hover { background: rgba(245, 130, 32, 0.06); }
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 130, 32, 0.12), transparent 40%),
    var(--gray-50);
  padding: 2rem 1rem;
}
.maintenance-wrap {
  max-width: 520px;
  text-align: center;
}
.maintenance-logo {
  height: 48px;
  width: auto;
  margin: 0 auto 1.25rem;
  display: block;
}
.maintenance-wrap h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}
.maintenance-wrap p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.55;
}
.maintenance-wrap .muted {
  margin-top: 1rem;
  font-size: 0.85rem;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.data-table th { font-size: 0.85rem; color: var(--gray-600); }
.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.data-table .actions {
  gap: 0.4rem;
  max-width: 22rem;
}
.inline-form-delete { display: inline; margin: 0; }

/* Botões de ação em tabelas (links e submits) */
.data-table .actions a:not(.btn),
.data-table .actions button:not(.btn),
.btn-action,
.btn-link-danger,
.btn-link-mute,
.btn-link-activate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.38rem 0.72rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-800);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.data-table .actions a:not(.btn):hover,
.data-table .actions button:not(.btn):hover,
.btn-action:hover,
.btn-link-danger:hover,
.btn-link-mute:hover,
.btn-link-activate:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.08);
}

.btn-action--ghost {
  border-color: var(--gray-200);
  background: #fff;
  color: var(--gray-800);
}
.btn-action--ghost:hover {
  border-color: rgba(245, 130, 32, 0.45);
  background: var(--orange-light);
  color: var(--orange-dark);
}

.btn-action--primary {
  border-color: rgba(245, 130, 32, 0.35);
  background: var(--orange-light);
  color: var(--orange-dark);
}
.btn-action--primary:hover {
  border-color: var(--orange);
  background: #ffe8d1;
  color: var(--orange-dark);
}

.btn-link-mute,
.btn-action--mute {
  border-color: #ffe0b2;
  background: #fff8f0;
  color: #e65100;
}
.btn-link-mute:hover,
.btn-action--mute:hover {
  border-color: #ffb74d;
  background: #ffefd9;
  color: #e65100;
}

.btn-link-activate,
.btn-action--activate {
  border-color: #c8e6c9;
  background: #f1faf2;
  color: #2e7d32;
}
.btn-link-activate:hover,
.btn-action--activate:hover {
  border-color: #81c784;
  background: #e8f5e9;
  color: #1b5e20;
}

.btn-link-danger,
.btn-action--danger {
  border-color: #ffcdd2;
  background: #fff5f5;
  color: #c62828;
}
.btn-link-danger:hover,
.btn-action--danger:hover {
  border-color: #ef9a9a;
  background: #ffebee;
  color: #b71c1c;
}
.btn-action--warn {
  border-color: #ffe0b2;
  background: #fff8f0;
  color: #e65100;
}
.btn-action--warn:hover {
  border-color: #ffb74d;
  background: #ffefd9;
  color: #e65100;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  text-transform: capitalize;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  line-height: 1.2;
}
.status-aberta {
  color: #1b5e20;
  background: #e8f5e9;
}
.status-pausada {
  color: #e65100;
  background: #fff3e0;
}
.status-encerrada {
  color: #b71c1c;
  background: #ffebee;
}
.data-table tr.row-inactive td {
  opacity: 0.72;
}
.admin-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.admin-form .form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.admin-form .form-field {
  min-width: 0;
  max-width: 100%;
}
.admin-form .form-field input:not([type="checkbox"]):not([type="radio"]),
.admin-form .form-field select,
.admin-form .form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
}
.admin-form .form-field input[type="file"] {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  max-width: 100%;
}
.preview-img {
  max-width: min(220px, 100%);
  width: 100%;
  height: auto;
  margin-top: 0.75rem;
  border-radius: 10px;
  object-fit: cover;
}
.sidebar-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 600;
}
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 130, 32, 0.22), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(245, 130, 32, 0.12), transparent 40%),
    linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 45%, #111 100%);
  padding: 1.5rem;
}
.login-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: var(--white);
}
.login-aside {
  background: linear-gradient(160deg, #111 0%, #1f1f1f 60%, #2a1808 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}
.login-aside-logo {
  height: 48px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 0.5rem;
}
.login-aside h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--orange);
}
.login-aside p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  max-width: 28ch;
}
.login-card {
  width: 100%;
  text-align: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 2.5rem 2rem;
}
.login-card-head {
  margin-bottom: 0.5rem;
}
.login-card-logo {
  height: 42px;
  margin: 0 auto 1rem;
  display: none;
}
.login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
}
.login-card-head p {
  margin: 0;
  color: var(--gray-600);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.login-form label > span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
}
.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"],
.login-form input[type="tel"],
.login-form input[type="number"],
.login-form input:not([type]) {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--gray-50);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  background: var(--white);
}
.login-form .login-otp-input {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.9rem 0.75rem;
}
.login-form .login-otp-input::placeholder {
  letter-spacing: 0.35em;
  font-weight: 500;
  color: #b0b5bd;
}
.login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.login-actions .btn {
  width: 100%;
}
.remember-row {
  font-size: 0.9rem;
  color: var(--gray-600);
}
.remember-row > span {
  font-weight: 500;
}
.login-footer-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.login-footer-link a {
  color: var(--orange, #F58220);
  font-weight: 600;
  text-decoration: none;
}
.login-footer-link a:hover { text-decoration: underline; }
.recaptcha-wrap {
  margin: 0.75rem 0 0.25rem;
  display: flex;
  justify-content: center;
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-card-logo { display: block; }
  .footer-logo { height: 72px; max-width: 220px; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-full-inner,
  .about-grid,
  .vaga-hero-grid,
  .vaga-layout,
  .footer-grid,
  .cta-band-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-100); padding-bottom: 1rem; }
  .vaga-hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .hero-visual { display: none; }
  .menu-toggle { display: flex; }
  .header-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 70;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  body.nav-open .header-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .admin-body {
    flex-direction: column;
    overflow-x: hidden;
  }
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  }
  .sidebar-brand {
    margin-bottom: 0;
    min-height: 42px;
  }
  .sidebar-brand span {
    font-size: 0.95rem;
  }
  .admin-nav-toggle {
    display: flex;
  }
  .admin-nav-open .admin-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .admin-nav-open .admin-nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .admin-nav-open .admin-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    flex: none;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }
  .admin-nav-open .sidebar-nav {
    max-height: 70vh;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
  }
  .admin-topbar {
    position: sticky;
    top: 0;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    min-height: 0;
  }
  .admin-topbar-meta {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    gap: 0.55rem;
  }
  .admin-topbar-user {
    align-items: flex-start;
    text-align: left;
  }
  .admin-topbar-user strong {
    max-width: 11rem;
  }
  .admin-topbar-logout .btn {
    min-height: 2.15rem;
    padding: 0.45rem 0.8rem;
  }
  .admin-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 1rem 1rem 1.25rem;
    overflow-x: hidden;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .page-header h1 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    word-break: break-word;
  }
  .page-header .btn {
    align-self: flex-start;
  }
  .admin-grid { grid-template-columns: 1fr; }
  .candidatura-form .form-grid,
  .admin-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
  .admin-form.card,
  .card.admin-form {
    padding: 1rem;
    border-radius: 14px;
  }
  .admin-form .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
  }
  .cand-aside .admin-form .btn-primary,
  .cand-aside .admin-form .btn-ghost {
    width: auto;
    margin-top: 0;
  }
  .form-field input:not([type="checkbox"]):not([type="radio"]),
  .form-field select,
  .form-field textarea {
    font-size: 16px; /* evita zoom automático no mobile */
    padding: 0.8rem 0.85rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .form-field textarea {
    field-sizing: content;
    max-height: 50vh;
  }
  .form-field span {
    font-size: 0.88rem;
  }
  .preview-img {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-band-inner { text-align: center; flex-direction: column; }

  .admin-main { padding: 0.75rem; }
  .admin-sidebar { padding: 0.65rem 0.75rem; }
  .sidebar-nav {
    grid-template-columns: 1fr;
  }
  .sidebar-nav a {
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem;
  }
  .page-header h1 { font-size: 1.2rem; }
  .admin-form.card,
  .card.admin-form { padding: 0.85rem; }
  .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .filter-field--grow {
    flex: none;
  }
  .filter-form label,
  .filter-form .btn,
  .filter-form a.btn {
    width: 100%;
  }
  .filter-form input,
  .filter-form select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .admin-body .card {
    padding: 1rem;
    border-radius: 16px;
  }
  .admin-body .stats-grid-admin {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .admin-body .stat-card {
    text-align: left;
  }
  .admin-body .stat-value {
    font-size: 1.65rem;
  }
  .admin-body .table-scroll {
    overflow: visible;
    margin-top: 0.75rem;
  }
  .admin-body .data-table--responsive {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }
  .admin-body .data-table--responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .admin-body .data-table--responsive tbody,
  .admin-body .data-table--responsive tr,
  .admin-body .data-table--responsive td {
    display: block;
    width: 100%;
  }
  .admin-body .data-table--responsive tr {
    padding: 0.8rem;
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  }
  .admin-body .data-table--responsive tr.clickable-row {
    cursor: pointer;
  }
  .admin-body .data-table--responsive tr + tr {
    margin-top: 0.75rem;
  }
  .admin-body .data-table--responsive td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 38%) minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    align-items: start;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    text-align: left;
    word-break: break-word;
  }
  .admin-body .data-table--responsive td::before {
    content: attr(data-label);
    grid-column: 1;
    grid-row: 1;
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    padding-top: 0.15rem;
  }
  .admin-body .data-table--responsive td > * {
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
  }
  .admin-body .data-table--responsive td:first-child {
    padding-top: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--gray-800);
  }
  .admin-body .data-table--responsive td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .admin-body .data-table--responsive td[colspan],
  .admin-body .data-table--responsive td.td-no-label,
  .admin-body .data-table--responsive td.actions,
  .admin-body .data-table--responsive td.audit-col-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.45rem;
    max-width: none;
    text-align: left;
  }
  .admin-body .data-table--responsive td[colspan]::before,
  .admin-body .data-table--responsive td.td-no-label::before,
  .admin-body .data-table--responsive td.actions::before,
  .admin-body .data-table--responsive td.audit-col-actions::before {
    display: none;
  }
  .admin-body .data-table--responsive td.actions > *,
  .admin-body .data-table--responsive td.audit-col-actions > *,
  .admin-body .data-table--responsive td.td-no-label > * {
    grid-column: auto;
  }
  .admin-body .data-table--responsive .actions,
  .admin-body .cand-quick-actions,
  .admin-body .cand-aside-actions {
    gap: 0.45rem;
  }
  .admin-body .data-table--responsive .actions > a,
  .admin-body .data-table--responsive .actions > button,
  .admin-body .data-table--responsive .actions > form,
  .admin-body .data-table--responsive .btn-action {
    flex: 1 1 auto;
    min-width: min(8rem, 100%);
  }
  .admin-body .data-table--responsive .inline-form-delete {
    display: flex;
  }
  .admin-body .data-table--responsive .btn-action,
  .admin-body .data-table--responsive .actions button:not(.btn),
  .admin-body .data-table--responsive .actions a:not(.btn) {
    width: 100%;
    min-height: 2.4rem;
    justify-content: center;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
  }
  .admin-body .audit-table {
    table-layout: auto;
    min-width: 0 !important;
    width: 100%;
  }
  .admin-body .audit-col-when,
  .admin-body .audit-col-action,
  .admin-body .audit-col-who,
  .admin-body .audit-col-ip,
  .admin-body .audit-col-req,
  .admin-body .audit-col-entity,
  .admin-body .audit-col-actions {
    width: auto !important;
    white-space: normal;
  }
  .admin-body .data-table--responsive .audit-who,
  .admin-body .data-table--responsive .audit-meta,
  .admin-body .data-table--responsive .audit-path,
  .admin-body .data-table--responsive .audit-action,
  .admin-body .data-table--responsive .audit-ip {
    display: block;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }
  .admin-body .audit-path {
    margin-top: 0.25rem;
  }
  .admin-body .page-header .actions,
  .admin-body .page-header > .actions {
    align-items: stretch;
  }
  .admin-body .page-header .actions .btn,
  .admin-body .page-header > .btn {
    width: 100%;
  }
}

/* Auditoria */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.75rem;
}
.audit-table {
  table-layout: fixed;
  min-width: 820px;
}
.audit-table th,
.audit-table td {
  padding: 0.65rem 0.55rem;
  vertical-align: middle;
}
.audit-col-when { width: 12rem; white-space: nowrap; font-size: 0.88rem; }
.audit-col-action { width: 16rem; }
.audit-col-who { width: 12rem; }
.audit-col-ip { width: 8.5rem; }
.audit-col-req { width: 14rem; }
.audit-col-entity { width: 8rem; font-size: 0.88rem; }
.audit-col-actions { width: 6.5rem; text-align: right; }
.audit-action {
  display: inline-block;
  max-width: 100%;
  font-size: 0.78rem;
  word-break: break-word;
  color: var(--gray-800, #222);
  background: var(--gray-100, #f3f3f3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.audit-who {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-who-link {
  color: inherit;
  text-decoration: none;
}
.audit-who-link:hover .audit-who {
  color: var(--orange, #F58220);
  text-decoration: underline;
}
.audit-meta {
  display: block;
  font-size: 0.75rem;
}
.audit-ip {
  font-size: 0.78rem;
  word-break: break-all;
}
.audit-method {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange, #F58220);
  background: rgba(245, 130, 32, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}
.audit-path {
  display: inline;
  font-size: 0.8rem;
  word-break: break-all;
}
.audit-detail-btn {
  padding: 0.35rem 0.7rem !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
}
.audit-modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(640px, calc(100vw - 2rem));
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}
.audit-modal[open],
.audit-modal.is-open {
  display: block;
}
.audit-modal::backdrop {
  background: rgba(20, 20, 20, 0.45);
}
.audit-modal-inner { background: #fff; }
.audit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gray-100, #eee);
}
.audit-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  word-break: break-word;
}
.audit-modal-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-600, #666);
  padding: 0 0.25rem;
}
.audit-modal-body {
  padding: 1rem 1.15rem 1.25rem;
  max-height: min(70vh, 560px);
  overflow: auto;
}
.audit-modal-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.audit-modal-meta > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.audit-modal-meta dt {
  margin: 0;
  color: var(--gray-600, #666);
  font-weight: 600;
}
.audit-modal-meta dd {
  margin: 0;
  word-break: break-word;
}
.audit-modal-body h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600, #666);
}
.audit-modal-json {
  margin: 0;
  padding: 0.85rem;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Triagem / inscritos */
.inscritos-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.12);
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
}
.inscritos-link:hover {
  background: rgba(245, 130, 32, 0.22);
}
.triagem-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.triagem-novo {
  background: #eceff1;
  color: #546e7a;
}
.triagem-em_analise {
  background: #fff3e0;
  color: #ef6c00;
}
.triagem-aprovado {
  background: #e8f5e9;
  color: #2e7d32;
}
.triagem-entrevista {
  background: #e3f2fd;
  color: #1565c0;
}
.triagem-proposta {
  background: #f3e5f5;
  color: #6a1b9a;
}
.triagem-contratado {
  background: #e0f2f1;
  color: #00695c;
}
.triagem-reprovado {
  background: #ffebee;
  color: #c62828;
}
.comunicacao-assunto {
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}
.comunicacao-corpo {
  margin: 0;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Feed compacto (comentários + comunicações) */
.feed-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(52vh, 420px);
  overflow: auto;
}
.feed-item {
  margin: 0;
}
.feed-details {
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  background: var(--gray-50);
  overflow: hidden;
}
.feed-details[open] {
  background: var(--white);
  border-color: var(--gray-200);
}
.feed-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.feed-summary::-webkit-details-marker {
  display: none;
}
.feed-summary::after {
  content: '›';
  flex-shrink: 0;
  color: var(--gray-500);
  font-size: 1.1rem;
  line-height: 1.2;
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}
.feed-details[open] > .feed-summary::after {
  transform: rotate(-90deg);
}
.feed-summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}
.feed-summary-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: right;
}
.feed-author {
  font-size: 0.82rem;
  color: var(--gray-800);
}
.feed-preview {
  font-size: 0.86rem;
  color: var(--gray-700);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-details[open] .feed-preview {
  display: none;
}
.feed-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #eee;
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 600;
}
.feed-canal {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: lowercase;
  background: #eee;
  color: #444;
}
.feed-canal--email {
  background: #fff3e0;
  color: #e65100;
}
.feed-canal--whatsapp {
  background: #e8f5e9;
  color: #2e7d32;
}
.feed-canal--telefone {
  background: #e3f2fd;
  color: #1565c0;
}
.feed-body {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid var(--gray-100);
}
.feed-meta-line {
  margin: 0.55rem 0 0.4rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.lgpd-row-focus {
  background: #fff7ed !important;
  outline: 2px solid #F58220;
  outline-offset: -2px;
}
.alert-warning {
  background: #fff8e1;
  color: #6d4c00;
  border: 1px solid #ffe082;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
}
.backup-codes-once {
  margin: 1rem 0;
}
.backup-codes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.4rem 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.backup-codes-list code {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.lgpd-table td {
  vertical-align: top;
}
.lgpd-titular-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.35;
  min-width: 10rem;
}
.lgpd-titular-cell .text-muted {
  margin: 0;
  font-size: 0.85rem;
}
.lgpd-resumo-cell {
  max-width: 16rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.35;
}
.lgpd-protocol-mensagem {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fafafa;
  border-radius: 10px;
}
.lgpd-protocol-mensagem--modal {
  margin-bottom: 0;
  max-height: 14rem;
  overflow: auto;
}
.lgpd-protocol-mensagem h3,
.lgpd-comments-block h3,
.lgpd-tratar-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.lgpd-protocol-mensagem p {
  margin: 0;
  white-space: pre-wrap;
}
.lgpd-indeferida-hint {
  color: #c62828 !important;
  font-size: 0.88rem;
  margin: 0 0 0.65rem;
}
.lgpd-status-badge {
  vertical-align: middle;
  white-space: nowrap;
}
.lgpd-status-nova { background: #fff3e0; color: #e65100; }
.lgpd-status-em_analise { background: #e3f2fd; color: #1565c0; }
.lgpd-status-em_andamento { background: #e8eaf6; color: #3949ab; }
.lgpd-status-concluida { background: #e8f5e9; color: #2e7d32; }
.lgpd-status-indeferida { background: #ffebee; color: #c62828; }
.lgpd-comments-block {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.lgpd-tratar-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.lgpd-tratar-modal.is-open {
  display: flex;
}
.lgpd-tratar-modal[hidden] {
  display: none !important;
}
.lgpd-tratar-modal.is-open[hidden] {
  display: flex !important;
}
.lgpd-tratar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.lgpd-tratar-modal-inner {
  position: relative;
  z-index: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
body.lgpd-modal-open {
  overflow: hidden;
}
.lgpd-tratar-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.lgpd-tratar-modal-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.lgpd-tratar-sub {
  margin: 0 !important;
  font-size: 0.9rem;
}
.lgpd-tratar-modal-body {
  padding: 1rem 1.15rem 1.15rem;
  overflow: auto;
}
.lgpd-tratar-flash {
  margin: 0 0 1rem;
}
.lgpd-anexo-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.lgpd-anexo-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  padding: 0.45rem 0.65rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}
.lgpd-anexo-name {
  flex: 1 1 10rem;
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}
.lgpd-anexo-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.lgpd-anexo-modal-body {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.lgpd-anexo-modal-body iframe {
  width: 100%;
  height: min(75vh, 720px);
  border: 0;
  background: #fff;
}
.lgpd-anexo-modal-body img {
  max-width: 100%;
  max-height: min(75vh, 720px);
  object-fit: contain;
}
.lgpd-anexo-modal-body .curriculo-fallback {
  color: #fff;
  text-align: center;
  padding: 2rem;
}
.lgpd-tratar-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .lgpd-tratar-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.lgpd-tratar-panel .form-field {
  margin-bottom: 0.75rem;
}

.templates-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.templates-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .templates-layout {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(300px, 420px);
  }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .templates-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  .templates-preview-panel {
    grid-column: 1 / -1;
  }
}
.templates-nav {
  padding: 1rem;
}
.templates-canal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.templates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(70vh, 640px);
  overflow: auto;
}
.templates-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
}
.templates-list-item:hover {
  background: rgba(245, 130, 32, 0.06);
  border-color: rgba(245, 130, 32, 0.2);
}
.templates-list-item.is-active {
  background: rgba(245, 130, 32, 0.1);
  border-color: rgba(245, 130, 32, 0.45);
}
.templates-list-item .text-muted {
  margin: 0;
  font-size: 0.78rem;
}
.templates-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.templates-list-default {
  font-size: 0.78rem;
}
.templates-nav-add {
  width: 100%;
  margin-top: 0.85rem;
}
.templates-editor {
  padding: 1.15rem 1.25rem;
}
.templates-editor-head {
  margin-bottom: 1rem;
}
.templates-editor-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}
.templates-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.templates-toolbar-sep {
  width: 1px;
  align-self: stretch;
  background: var(--gray-200);
  margin: 0 0.15rem;
}
#template-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  min-height: 16rem;
}
.templates-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.templates-danger-zone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.templates-btn-danger {
  color: #b42318;
}
.templates-preview-panel {
  padding: 1rem 1.1rem 1.15rem;
  position: sticky;
  top: 0.75rem;
}
.templates-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.templates-preview-head strong {
  display: block;
  font-size: 13px;
}
.templates-preview-head .text-muted {
  margin: 0.2rem 0 0;
  font-size: 11px;
}
.templates-preview-subject {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
}
.templates-preview-subject .text-muted {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.templates-preview-subject strong {
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}
.templates-preview-reply {
  margin: 0 0 0.55rem;
  font-size: 11px;
}
.templates-preview-frame-wrap {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: #f0f1f3;
  min-height: 420px;
}
.templates-preview-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  height: min(70vh, 640px);
  border: 0;
  background: #f0f1f3;
}
.templates-wa-preview {
  background: #e5ddd5;
  border-radius: 12px;
  padding: 1rem 0.85rem;
  min-height: 280px;
}
.templates-wa-bubble {
  max-width: 92%;
  margin-left: auto;
  background: #dcf8c6;
  color: #111;
  border-radius: 10px 10px 2px 10px;
  padding: 0.65rem 0.75rem;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.templates-create-dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  max-width: min(480px, calc(100vw - 2rem));
  width: 100%;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.18);
}
.templates-create-dialog::backdrop {
  background: rgba(17, 17, 17, 0.45);
}
.templates-create-form {
  padding: 1.15rem 1.25rem 1.25rem;
}
.templates-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.templates-create-head h2 {
  margin: 0;
  font-size: 16px;
}
.templates-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 920px;
}
.settings-admin-links {
  max-width: 920px;
  margin-bottom: 1rem;
}
.settings-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.settings-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.25rem;
  padding: 0.85rem;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fafafa);
  color: var(--gray-800);
}
.settings-link-card:hover {
  border-color: rgba(245, 130, 32, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.settings-link-card strong {
  font-size: 0.98rem;
}
.settings-link-card span {
  color: var(--gray-600);
  font-size: 0.86rem;
  line-height: 1.4;
}
.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  position: sticky;
  top: 0.5rem;
  z-index: 5;
}
.settings-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.settings-nav a:hover {
  color: #e85d04;
  background: #fff7ed;
}
.settings-section {
  margin: 0;
}
.settings-section-head {
  margin-bottom: 1rem;
}
.settings-section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.settings-section-head .text-muted {
  margin: 0;
}
.repeat-field {
  margin-top: 0.75rem;
}
.repeat-field > .filter-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.repeat-field-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.repeat-field-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.repeat-field-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.repeat-field-row input.is-invalid,
.settings-form input.is-invalid {
  border-color: #c62828;
  background: #fff5f5;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}
.repeat-field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}
.repeat-field-error,
.text-danger {
  color: #c62828;
  font-size: 0.88rem;
  margin: 0.4rem 0 0;
}
.settings-actions {
  position: sticky;
  bottom: 0;
  padding: 0.85rem 0;
  background: linear-gradient(180deg, transparent, #f4f5f7 30%);
}
.settings-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.settings-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.settings-form .form-field.full {
  grid-column: 1 / -1;
}
.settings-form .form-field span {
  font-weight: 700;
  font-size: 0.9rem;
}
.settings-form .form-field input:not([type="checkbox"]):not([type="radio"]) {
  padding: 0.65rem 0.8rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  width: 100%;
}
@media (max-width: 720px) {
  .settings-link-grid {
    grid-template-columns: 1fr;
  }
  .settings-form .form-grid {
    grid-template-columns: 1fr;
  }
  .repeat-field-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.triagem-card {
  margin-bottom: 0;
}
.triagem-card h2,
.triagem-card h3 {
  margin: 0;
}
.triagem-form {
  margin-top: 0.75rem;
}
.triagem-form .btn-primary {
  margin-top: 0;
}
.comentarios-card {
  margin-bottom: 0;
}
.comentarios-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.25rem;
}
.comentarios-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.comentarios-empty {
  margin-top: 0.85rem;
}
.comentario-texto {
  margin: 0.55rem 0 0.55rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
}
.comentario-anexos {
  list-style: none;
  margin: 0 0 0.45rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.comentario-anexos a {
  font-size: 0.86rem;
  word-break: break-all;
}

.curriculo-modal {
  border: none;
  border-radius: 14px;
  padding: 0;
  max-width: min(960px, calc(100vw - 1.5rem));
  width: 100%;
  height: min(88vh, 900px);
  max-height: 92vh;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}
.curriculo-modal[open],
.curriculo-modal.is-open {
  display: flex;
}
.curriculo-modal::backdrop {
  background: rgba(20, 20, 20, 0.55);
}
.curriculo-modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  min-height: 0;
}
.curriculo-modal-inner:fullscreen {
  background: #111;
}
.curriculo-modal-inner:fullscreen .curriculo-modal-head {
  background: #1c1c1c;
  border-bottom-color: #333;
  color: #fff;
}
.curriculo-modal-inner:fullscreen .curriculo-modal-sub,
.curriculo-modal-inner:fullscreen .confirm-modal-x {
  color: #cfcfcf;
}
.curriculo-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.curriculo-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.curriculo-modal-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--gray-600);
  word-break: break-all;
}
.curriculo-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}
.curriculo-modal-body {
  flex: 1;
  min-height: 0;
  background: #eceef2;
  position: relative;
}
.curriculo-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.curriculo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 2rem 1.25rem;
  min-height: 280px;
  height: 100%;
  background: #fff;
}
.curriculo-fallback[hidden],
.curriculo-frame[hidden] {
  display: none !important;
}
.curriculo-fallback p {
  margin: 0;
  max-width: 28rem;
}

.foto-modal {
  border: none;
  border-radius: 14px;
  padding: 0;
  max-width: min(860px, calc(100vw - 1.5rem));
  width: 100%;
  height: min(88vh, 860px);
  max-height: 92vh;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}
.foto-modal[open],
.foto-modal.is-open {
  display: flex;
}
.foto-modal::backdrop {
  background: rgba(20, 20, 20, 0.55);
}
.foto-modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  min-height: 0;
}
.foto-modal-inner:fullscreen {
  background: #111;
}
.foto-modal-inner:fullscreen .curriculo-modal-head {
  background: #1c1c1c;
  border-bottom-color: #333;
  color: #fff;
}
.foto-modal-inner:fullscreen .curriculo-modal-sub,
.foto-modal-inner:fullscreen .confirm-modal-x {
  color: #cfcfcf;
}
.foto-modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141414;
  padding: 1rem;
  overflow: auto;
}
.foto-modal-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.comment-modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(560px, calc(100vw - 2rem));
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}
.comment-modal[open],
.comment-modal.is-open {
  display: block;
}
.comment-modal::backdrop {
  background: rgba(20, 20, 20, 0.45);
}
.comment-modal-inner { background: #fff; }
.comment-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gray-100);
}
.comment-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.comment-modal-body {
  padding: 1rem 1.15rem 0.25rem;
}
.comment-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.15rem 1.15rem;
  border-top: 1px solid var(--gray-100);
  margin-top: 0.5rem;
}
.dropzone-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.dropzone-hint {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}
.file-dropzone {
  position: relative;
  border: 1.5px dashed var(--gray-300, #c5c5c5);
  border-radius: 10px;
  background: var(--gray-50);
  padding: 1.15rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-dropzone:hover,
.file-dropzone:focus,
.file-dropzone.is-dragover {
  border-color: var(--primary, #e85d04);
  background: #fff8f3;
  outline: none;
}
.file-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.file-dropzone-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.file-dropzone-sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.file-dropzone-browse {
  color: var(--primary, #e85d04);
  text-decoration: underline;
  font-weight: 600;
}
.file-dropzone-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.file-dropzone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-size: 0.86rem;
}
.file-dropzone-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-dropzone-remove {
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  flex-shrink: 0;
}
.file-dropzone-remove:hover {
  color: #c62828;
}

.btn-danger {
  background: #c62828;
  border: 1px solid #c62828;
  color: #fff;
}
.btn-danger:hover {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}

.confirm-modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(440px, calc(100vw - 2rem));
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}
.confirm-modal[open],
.confirm-modal.is-open {
  display: block;
}
.confirm-modal::backdrop {
  background: rgba(20, 20, 20, 0.45);
}
.confirm-modal-inner { background: #fff; }
.confirm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gray-100);
}
.confirm-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.confirm-modal-x {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-600);
  padding: 0 0.25rem;
}
.confirm-modal-body {
  padding: 1rem 1.15rem 1.25rem;
}
.confirm-modal-body p {
  margin: 0 0 1.15rem;
  color: var(--gray-800);
  line-height: 1.45;
}
.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.email-footer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.55rem;
}
.email-footer-toolbar .btn {
  font-size: 0.78rem;
}
#email-footer-html {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 12rem;
}
.email-footer-preview-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.email-footer-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}
.email-footer-preview-head strong {
  font-size: 0.95rem;
}
.email-footer-preview-card {
  max-width: 600px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}
.email-footer-preview-mockhead {
  background: #111;
  color: #F58220;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0.85rem 1.15rem;
  font-size: 1.15rem;
}
.email-footer-preview-mockbody {
  padding: 1rem 1.15rem 0.35rem;
  color: var(--gray-500);
  font-size: 0.88rem;
}
.email-footer-preview-body {
  padding: 0.85rem 1.15rem 1.15rem;
  border-top: 1px solid var(--gray-100);
  color: #888;
  font-size: 12px;
  line-height: 1.45;
  font-family: Arial, Helvetica, sans-serif;
}
.email-footer-preview-body a {
  color: #F58220;
  text-decoration: none;
}
.email-footer-preview-body a:hover {
  text-decoration: underline;
}

/* Paginação admin */
.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-100);
}
.admin-pagination-meta {
  margin: 0;
  font-size: 0.88rem;
}
.admin-pagination-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.admin-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-pagination-page:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}
.admin-pagination-page.is-current {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.admin-pagination-ellipsis {
  color: var(--gray-500);
  padding: 0 0.15rem;
  user-select: none;
}
.admin-pagination-nav .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 640px) {
  .admin-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-pagination-nav {
    justify-content: center;
  }
}

/* Changelog */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 52rem;
}
.changelog-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.changelog-version {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.changelog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.14);
  color: var(--orange-dark, #c45a0a);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.changelog-title {
  margin: 0.35rem 0 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.changelog-date {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.changelog-entry--current {
  border-color: rgba(245, 130, 32, 0.35);
  box-shadow: 0 0 0 1px rgba(245, 130, 32, 0.08);
}
.changelog-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.changelog-change {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
}
.changelog-change-type {
  display: inline-flex;
  justify-content: center;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-700);
}
.changelog-change--added .changelog-change-type {
  background: #e8f5e9;
  color: #1b5e20;
}
.changelog-change--fixed .changelog-change-type {
  background: #fff3e0;
  color: #e65100;
}
.changelog-change--security .changelog-change-type {
  background: #e3f2fd;
  color: #0d47a1;
}
.changelog-change--removed .changelog-change-type {
  background: #ffebee;
  color: #b71c1c;
}
.changelog-change-text {
  color: var(--gray-800);
  min-width: 0;
}
@media (max-width: 560px) {
  .changelog-entry-head {
    flex-direction: column;
    gap: 0.35rem;
  }
  .changelog-change {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .changelog-change-type {
    justify-self: start;
  }
}

/* Refinos finais de leitura do admin em celulares */
@media (max-width: 760px) {
  .admin-body .data-table--responsive th,
  .admin-body .data-table--responsive td,
  .admin-body .audit-table th,
  .admin-body .audit-table td {
    width: auto !important;
  }
  .admin-body .audit-table {
    min-width: 0 !important;
    table-layout: auto !important;
  }
  .admin-body .data-table--responsive td {
    min-width: 0;
  }
  .admin-body .data-table--responsive td > * {
    min-width: 0;
    max-width: 100%;
  }
  .admin-body .data-table--responsive td a:not(.btn):not(.btn-action) {
    overflow-wrap: anywhere;
  }
  .admin-body .data-table--responsive .audit-who,
  .admin-body .data-table--responsive .audit-meta {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
  }
  .admin-body .audit-action,
  .admin-body .audit-ip,
  .admin-body .audit-path {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-body .report-funnel li,
  .admin-body .report-funnel a {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-body .report-funnel-label {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .admin-pagination {
    gap: 0.65rem;
  }
  .admin-pagination-meta {
    text-align: center;
  }
  .admin-pagination-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .admin-pagination-nav .btn {
    width: 100%;
  }
  .admin-pagination-page,
  .admin-pagination-ellipsis {
    min-width: 2.25rem;
    height: 2.25rem;
  }
}
