:root {
  --fh-black: #000000;
  --fh-graphite: #242525;
  --fh-cyan: #3BBADB;
  --fh-blue: #1A2C53;
  --fh-gray: #D1D1D1;
  --fh-white: #FFFFFF;
  --fh-bg: #F5F8FB;
  --fh-text: #111827;
  --fh-muted: #5F6877;
  --fh-border: #DDE5ED;
  --fh-success: #217A4B;
  --fh-danger: #B42318;
  --fh-warning: #A15C07;
  --fh-radius: 8px;
  --fh-radius-sm: 8px;
  --fh-shadow: 0 20px 60px rgba(26, 44, 83, 0.14);
  --fh-shadow-soft: 0 10px 30px rgba(26, 44, 83, 0.09);
}

/* Fallback mínimo para quando a CDN do Bootstrap estiver indisponível. */
.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

.container {
  max-width: 1140px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.g-3 {
  row-gap: 1rem;
}

.g-4 {
  row-gap: 1.5rem;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.d-none {
  display: none !important;
}

.collapse:not(.show) {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.w-100 {
  width: 100% !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-muted {
  color: var(--fh-muted) !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--fh-border);
}

.table-responsive {
  overflow-x: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  overflow: auto;
  background: rgba(12, 21, 36, 0.52);
}

.modal.show {
  display: block;
}

.modal-dialog {
  width: min(100% - 2rem, 720px);
  margin: 2rem auto;
}

.modal-xl {
  width: min(100% - 2rem, 1140px);
}

.modal-content {
  background: var(--fh-white);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--fh-border);
}

.modal-footer {
  border-top: 1px solid var(--fh-border);
  border-bottom: 0;
}

.modal-body {
  padding: 1rem;
}

.btn-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
}

.btn-close::before {
  content: "x";
  font-size: 1.4rem;
}

.btn-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }

  .col-md-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }

  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-md-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }

  .col-md-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }

  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fh-text);
  background: var(--fh-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font-size: 1rem;
}

button,
a,
input,
select,
textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

a {
  color: var(--fh-blue);
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--fh-cyan);
  color: var(--fh-black);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(59, 186, 219, 0.9);
  outline-offset: 3px;
}

.btn {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
}

.btn-lg {
  min-height: 3.25rem;
  padding-inline: 1.25rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--fh-cyan);
  border-color: var(--fh-cyan);
  color: #031315;
  --bs-btn-bg: var(--fh-cyan);
  --bs-btn-border-color: var(--fh-cyan);
  --bs-btn-color: #031315;
  --bs-btn-hover-bg: #22a8c9;
  --bs-btn-hover-border-color: #22a8c9;
  --bs-btn-hover-color: #031315;
  --bs-btn-active-bg: #168eb0;
  --bs-btn-active-border-color: #168eb0;
  box-shadow: 0 10px 24px rgba(59, 186, 219, 0.24);
}

.btn-outline-primary {
  background: transparent;
  border-color: rgba(26, 44, 83, 0.35);
  color: var(--fh-blue);
  --bs-btn-color: var(--fh-blue);
  --bs-btn-border-color: rgba(26, 44, 83, 0.35);
  --bs-btn-hover-bg: var(--fh-blue);
  --bs-btn-hover-border-color: var(--fh-blue);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--fh-white);
  --bs-btn-border-color: rgba(255, 255, 255, 0.52);
  --bs-btn-color: var(--fh-white);
  --bs-btn-hover-bg: var(--fh-white);
  --bs-btn-hover-border-color: var(--fh-white);
  --bs-btn-hover-color: var(--fh-blue);
}

.btn-outline-danger {
  background: transparent;
  border-color: rgba(180, 35, 24, 0.35);
  color: var(--fh-danger);
  --bs-btn-color: var(--fh-danger);
  --bs-btn-border-color: rgba(180, 35, 24, 0.35);
  --bs-btn-hover-bg: var(--fh-danger);
  --bs-btn-hover-border-color: var(--fh-danger);
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  border-radius: 8px;
  border-color: var(--fh-border);
  min-height: 3rem;
}

.form-control-lg,
.form-select-lg {
  min-height: 3.4rem;
  font-size: 1.04rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--fh-cyan);
  box-shadow: 0 0 0 0.22rem rgba(59, 186, 219, 0.2);
}

.form-label,
.choice-group legend {
  font-weight: 800;
  color: var(--fh-graphite);
  margin-bottom: 0.5rem;
}

.choice-group legend {
  float: none;
  font-size: 1rem;
}

.required {
  color: var(--fh-danger);
}

.optional {
  color: var(--fh-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.form-text,
.counter,
.field-status {
  color: var(--fh-muted);
  font-size: 0.94rem;
}

.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fh-blue);
  pointer-events: none;
  z-index: 2;
}

.input-icon .form-control,
.input-icon .form-select {
  padding-left: 2.75rem;
}

.is-invalid,
.was-invalid {
  border-color: var(--fh-danger) !important;
  background-image: none !important;
}

.is-valid {
  border-color: rgba(33, 122, 75, 0.65) !important;
  background-image: none !important;
}

.invalid-feedback {
  color: var(--fh-danger);
  font-weight: 700;
  margin-top: 0.45rem;
}

.invalid-feedback:not(:empty) {
  display: block;
}

.invalid-feedback:not(:empty)::before {
  content: "\F33A";
  font-family: "bootstrap-icons";
  margin-right: 0.35rem;
}

.group-invalid .choice-pill {
  border-color: rgba(180, 35, 24, 0.78);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.alert {
  border-radius: 8px;
  border: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 700;
}

.alert-danger {
  background: #FFF1F0;
  color: var(--fh-danger);
}

.alert-warning {
  background: #FFF6E5;
  color: var(--fh-warning);
}

.alert-success {
  background: #EAF8F0;
  color: var(--fh-success);
}

.section-kicker,
.eyebrow {
  color: var(--fh-cyan);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
}

.brand-logo {
  width: min(190px, 48vw);
  height: auto;
  display: block;
}

.public-hero {
  position: relative;
  overflow: hidden;
  color: var(--fh-white);
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.96) 0%, rgba(36, 37, 37, 0.9) 52%, rgba(26, 44, 83, 0.86) 100%),
    url("../img/logo.png");
  background-repeat: no-repeat;
  background-position: center right clamp(1rem, 8vw, 8rem);
  background-size: min(430px, 54vw) auto;
  min-height: 420px;
  padding-bottom: 5rem;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--fh-cyan), rgba(59, 186, 219, 0.18), var(--fh-cyan));
}

.public-nav,
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.public-nav {
  padding-top: 1.25rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 2rem;
  padding-top: 4rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 900;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: clamp(1.18rem, 2.6vw, 1.55rem);
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  margin: 0;
  color: var(--fh-white);
}

.hero-assurance {
  display: grid;
  gap: 0.8rem;
}

.hero-assurance span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 1rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-assurance i {
  color: var(--fh-cyan);
  font-size: 1.25rem;
}

.public-main {
  margin-top: -4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.form-shell {
  max-width: 1120px;
}

.form-card,
.login-card,
.filters-panel,
.table-panel,
.chart-card {
  background: var(--fh-white);
  border: 1px solid rgba(221, 229, 237, 0.9);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
}

.form-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.form-card-header,
.dashboard-toolbar,
.filters-header,
.table-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-card-header h2,
.dashboard-toolbar h2 {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  margin: 0;
  font-weight: 900;
  color: var(--fh-blue);
}

.temporary-storage-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: #EFF7FA;
  border: 1px solid rgba(59, 186, 219, 0.22);
  color: #16465B;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.progress-wrap {
  margin: 1.25rem 0 1.5rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 900;
  color: var(--fh-blue);
  margin-bottom: 0.55rem;
}

.progress {
  height: 0.7rem;
  border-radius: 999px;
  background: #E5EDF4;
}

.progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fh-cyan), #72D7ED);
  border-radius: 999px;
}

.step-dots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.step-dots li {
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  background: #EEF3F8;
  color: var(--fh-muted);
  font-weight: 800;
  font-size: 0.86rem;
  padding-inline: 0.55rem;
}

.step-dots li.is-active {
  background: var(--fh-blue);
  color: var(--fh-white);
}

.step-dots li.is-complete {
  background: rgba(33, 122, 75, 0.13);
  color: var(--fh-success);
}

.form-step {
  display: none;
  animation: fadeSlide 220ms ease;
}

.form-step.is-active {
  display: block;
}

.form-step h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 900;
  color: var(--fh-blue);
  margin-bottom: 0.3rem;
}

.form-step h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--fh-cyan);
  color: #031315;
  font-size: 1rem;
}

.step-help {
  color: var(--fh-muted);
  font-weight: 650;
  margin-bottom: 1.5rem;
}

.choice-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-stack,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice-pill {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid var(--fh-border);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: var(--fh-graphite);
  background: var(--fh-white);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  flex: 1 1 auto;
}

.btn-check:checked + .choice-pill {
  border-color: var(--fh-cyan);
  background: rgba(59, 186, 219, 0.12);
  color: var(--fh-blue);
  box-shadow: 0 0 0 4px rgba(59, 186, 219, 0.08);
}

.soft-panel,
.address-search-box,
.upload-box,
.privacy-box {
  padding: 1rem;
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  background: #FBFDFF;
}

.address-search-box {
  margin-bottom: 1.5rem;
}

.selected-file {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--fh-blue);
  font-weight: 800;
  margin-top: 0.75rem;
  word-break: break-word;
}

.privacy-box {
  margin-top: 1rem;
  cursor: pointer;
}

.privacy-box .form-check-input {
  width: 1.35rem;
  height: 1.35rem;
}

.privacy-box .form-check-label {
  font-weight: 750;
  line-height: 1.5;
}

.privacy-box .form-check-input,
.privacy-box .form-check-label,
.privacy-box .link-button {
  cursor: pointer;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--fh-blue);
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}

.review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.review-card {
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  padding: 1rem;
  background: #FBFDFF;
}

.review-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--fh-blue);
}

.review-list {
  display: grid;
  gap: 0.55rem;
}

.review-item {
  display: grid;
  gap: 0.1rem;
}

.review-item dt {
  color: var(--fh-muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.review-item dd {
  margin: 0;
  color: var(--fh-text);
  font-weight: 700;
  word-break: break-word;
}

.review-actions,
.form-navigation,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-actions {
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.form-navigation {
  justify-content: space-between;
  border-top: 1px solid var(--fh-border);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
}

.success-step {
  text-align: center;
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(33, 122, 75, 0.12);
  color: var(--fh-success);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.protocol-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px dashed rgba(59, 186, 219, 0.55);
  border-radius: 8px;
  background: #F7FCFE;
  margin: 1rem 0;
  flex-wrap: wrap;
}

#protocolNumber {
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: var(--fh-blue);
  font-weight: 900;
}

.success-note {
  color: var(--fh-muted);
  font-weight: 700;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-page {
  background:
    linear-gradient(180deg, rgba(26, 44, 83, 0.08), transparent 360px),
    var(--fh-bg);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 44, 83, 0.9)),
    url("../img/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(520px, 78vw) auto;
}

.login-card {
  width: min(100%, 470px);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.login-logo {
  display: block;
  width: 210px;
  margin-bottom: 1.5rem;
}

.login-card h1 {
  color: var(--fh-blue);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.45rem);
}

.login-note {
  color: var(--fh-muted);
  font-weight: 650;
}

.demo-credentials {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 8px;
  background: #EFF7FA;
  color: var(--fh-blue);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--fh-white);
  background: linear-gradient(135deg, var(--fh-black), var(--fh-blue));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.admin-header-inner {
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.admin-logo {
  width: 150px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.admin-brand h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 900;
}

.admin-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-search {
  width: min(340px, 30vw);
}

.quick-search .form-control {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: var(--fh-white);
}

.quick-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.quick-search > i {
  color: var(--fh-cyan);
}

.dashboard-body {
  padding: clamp(1rem, 3vw, 2rem);
}

.dashboard-toolbar {
  margin-bottom: 1rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-card {
  min-height: 124px;
  background: var(--fh-white);
  border: 1px solid rgba(221, 229, 237, 0.92);
  border-radius: 8px;
  box-shadow: var(--fh-shadow-soft);
  padding: 1rem;
  display: grid;
  align-content: space-between;
  gap: 0.75rem;
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: rgba(59, 186, 219, 0.13);
  color: var(--fh-blue);
  font-size: 1.25rem;
}

.summary-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--fh-blue);
}

.summary-card span:last-child {
  color: var(--fh-muted);
  font-weight: 800;
}

.filters-panel,
.table-panel,
.chart-card {
  padding: 1rem;
}

.filters-panel {
  margin-bottom: 1rem;
}

.filters-header h3,
.table-panel h3,
.chart-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--fh-blue);
  margin: 0;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-card {
  min-height: 350px;
  box-shadow: var(--fh-shadow-soft);
}

.chart-card canvas {
  width: 100% !important;
  max-height: 270px;
}

.table-panel {
  box-shadow: var(--fh-shadow-soft);
}

.table-title-row {
  margin-bottom: 0.75rem;
}

#tableCount {
  margin: 0;
  color: var(--fh-muted);
  font-weight: 800;
}

.recruitment-table {
  --bs-table-bg: transparent;
  min-width: 1240px;
}

.recruitment-table th {
  white-space: nowrap;
  color: var(--fh-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.recruitment-table td {
  vertical-align: middle;
  color: var(--fh-graphite);
  font-weight: 650;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 250px;
}

.table-actions .btn {
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.table-actions .action-label {
  display: inline;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge-new {
  background: rgba(59, 186, 219, 0.14);
  color: #0B6078;
}

.badge-viewed {
  background: rgba(33, 122, 75, 0.12);
  color: var(--fh-success);
}

.badge-hot {
  background: #FFEAE8;
  color: #B42318;
}

.badge-warm {
  background: #FFF3DB;
  color: #A15C07;
}

.badge-cold {
  background: #E9F3FF;
  color: #1A5D97;
}

.candidate-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.detail-section {
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  padding: 1rem;
  background: #FBFDFF;
}

.detail-section h3 {
  color: var(--fh-blue);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.detail-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.detail-item {
  display: grid;
  gap: 0.1rem;
}

.detail-item dt {
  color: var(--fh-muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.detail-item dd {
  margin: 0;
  font-weight: 720;
  word-break: break-word;
}

.admin-edit-panel {
  margin-top: 1rem;
  border-top: 1px solid var(--fh-border);
  padding-top: 1rem;
}

.resume-preview {
  min-height: 460px;
  display: grid;
  place-items: center;
  background: #F7FAFD;
}

.resume-preview iframe,
.resume-preview img {
  width: 100%;
  max-height: 70vh;
  border: 0;
  border-radius: 8px;
  background: var(--fh-white);
}

.resume-preview img {
  object-fit: contain;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--fh-muted);
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

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

  .form-card-header,
  .dashboard-toolbar,
  .filters-header,
  .table-title-row,
  .admin-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header-actions,
  .quick-search {
    width: 100%;
  }

  .admin-header-actions {
    align-items: stretch;
  }

  .admin-header-actions .btn {
    width: 100%;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .step-dots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 1.02rem;
  }

  .public-hero {
    min-height: 520px;
  }

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-card {
    border-radius: 8px;
    padding: 1rem;
  }

  .step-dots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-pill {
    width: 100%;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .form-navigation,
  .nav-actions,
  .review-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .form-navigation .btn,
  .nav-actions .btn,
  .review-actions .btn {
    width: 100%;
  }

  .admin-logo {
    width: 128px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-responsive {
    overflow: visible;
  }

  .recruitment-table {
    min-width: 0;
  }

  .recruitment-table thead {
    display: none;
  }

  .recruitment-table,
  .recruitment-table tbody,
  .recruitment-table tr,
  .recruitment-table td {
    display: block;
    width: 100%;
  }

  .recruitment-table tr {
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.85rem;
    background: var(--fh-white);
    box-shadow: var(--fh-shadow-soft);
  }

  .recruitment-table td {
    border: 0;
    display: grid;
    grid-template-columns: minmax(100px, 40%) 1fr;
    gap: 0.75rem;
    padding: 0.45rem 0;
  }

  .recruitment-table td::before {
    content: attr(data-label);
    color: var(--fh-muted);
    font-size: 0.86rem;
    font-weight: 900;
  }

  .table-actions {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-note,
  .protocol-box {
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Redesign visual: camada de acabamento institucional mais limpa e menos genérica. */
:root {
  --fh-bg: #EEF3F8;
  --fh-surface: #FFFFFF;
  --fh-surface-soft: #F8FBFE;
  --fh-ink: #0C1524;
  --fh-line: #D8E2EC;
  --fh-shadow: 0 18px 42px rgba(12, 21, 36, 0.12);
  --fh-shadow-soft: 0 10px 24px rgba(12, 21, 36, 0.08);
}

body {
  background:
    linear-gradient(180deg, rgba(26, 44, 83, 0.06), rgba(26, 44, 83, 0) 360px),
    var(--fh-bg);
  color: var(--fh-ink);
}

.btn {
  border-radius: 8px;
  letter-spacing: 0;
}

.btn-primary {
  --bs-btn-bg: #2CB6DA;
  --bs-btn-border-color: #2CB6DA;
  --bs-btn-hover-bg: #169FC3;
  --bs-btn-hover-border-color: #169FC3;
  box-shadow: 0 12px 22px rgba(44, 182, 218, 0.25);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-light {
  box-shadow: none;
}

.btn-outline-secondary {
  background: transparent;
  border-color: #B8C4D2;
  color: #354256;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #354256;
  border-color: #354256;
  color: #FFFFFF;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--fh-blue);
  border-color: var(--fh-blue);
  color: #FFFFFF;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--fh-blue);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: var(--fh-danger);
  border-color: var(--fh-danger);
  color: #FFFFFF;
}

.form-control,
.form-select {
  border: 1px solid #CFDAE6;
  background-color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(12, 21, 36, 0.02);
}

.form-control:hover,
.form-select:hover {
  border-color: #AFC0D2;
}

.form-label,
.choice-group legend {
  color: #182235;
  font-size: 0.96rem;
}

.section-kicker,
.eyebrow {
  color: #25B8DD;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.public-hero {
  min-height: 390px;
  padding-bottom: 7rem;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.96) 0%, rgba(23, 31, 39, 0.96) 48%, rgba(26, 44, 83, 0.94) 100%);
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(59, 186, 219, 0.14) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 64%);
  background-size: 84px 100%, 100% 100%;
  opacity: 0.38;
}

.public-hero::after {
  height: 5px;
  background: linear-gradient(90deg, #3BBADB 0%, #FFFFFF 46%, #3BBADB 100%);
  opacity: 0.95;
}

.public-nav {
  position: relative;
  z-index: 2;
  padding-top: 1rem;
}

.public-nav .btn {
  flex: 0 0 auto;
  max-width: 190px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.public-nav .brand-logo,
.admin-logo,
.login-logo {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  object-fit: contain;
}

.public-nav .brand-logo {
  width: 260px;
  height: 74px;
  padding: 0.3rem;
}

.hero-content {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  align-items: center;
  padding-top: 3rem;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h1 {
  font-size: clamp(2.85rem, 6.5vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-note {
  border-radius: 8px;
  border-color: rgba(59, 186, 219, 0.38);
  background: rgba(59, 186, 219, 0.12);
  color: #EAFBFF;
}

.hero-assurance {
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 1.35rem;
  align-content: center;
}

.hero-assurance span {
  background: rgba(4, 12, 20, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.public-main {
  margin-top: -5.75rem;
}

.form-card {
  border-radius: 12px;
  border: 1px solid rgba(216, 226, 236, 0.95);
  border-top: 5px solid #3BBADB;
  box-shadow: 0 24px 70px rgba(12, 21, 36, 0.16);
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.form-card-header {
  align-items: flex-start;
  border-bottom: 1px solid #E3EBF3;
  padding-bottom: 1.1rem;
  margin-bottom: 1rem;
}

.form-card-header h2,
.dashboard-toolbar h2 {
  color: #132447;
  line-height: 1.08;
}

.temporary-storage-note {
  background: #F1FAFD;
  border-color: #BCEBF6;
  color: #17546A;
}

.progress-wrap {
  padding: 1rem;
  border: 1px solid #E2EAF2;
  background: #F7FAFD;
  border-radius: 10px;
}

.progress-meta {
  color: #132447;
}

.step-dots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-dots li {
  background: #FFFFFF;
  border: 1px solid #DAE5EF;
  color: #536173;
  border-radius: 8px;
}

.step-dots li.is-active {
  background: #132447;
  border-color: #132447;
  color: #FFFFFF;
}

.step-dots li.is-complete {
  background: #E8F8FC;
  border-color: #A9E6F4;
  color: #11677E;
}

.form-step h3 {
  color: #132447;
  border-bottom: 1px solid #E6EEF5;
  padding-bottom: 0.85rem;
  margin-bottom: 0.5rem;
}

.form-step h3 span {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 8px;
  background: #132447;
  color: #FFFFFF;
  box-shadow: inset 0 -3px 0 rgba(59, 186, 219, 0.35);
}

.step-help {
  max-width: 780px;
  color: #59677A;
}

.section-divider {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #E3EBF3;
}

.section-divider h4 {
  margin: 0;
  color: #132447;
  font-size: 1rem;
  font-weight: 900;
}

.input-icon > i {
  color: #227C99;
}

.choice-pill {
  border-radius: 8px;
  border-width: 1px;
  background: #FFFFFF;
  box-shadow: 0 6px 14px rgba(12, 21, 36, 0.04);
}

.btn-check:checked + .choice-pill {
  background: #E9F9FD;
  border-color: #3BBADB;
  color: #132447;
  box-shadow: inset 4px 0 0 #3BBADB, 0 10px 18px rgba(59, 186, 219, 0.12);
}

.soft-panel,
.address-search-box,
.upload-box,
.privacy-box,
.review-card,
.detail-section {
  background: #FFFFFF;
  border-color: #DCE7F1;
  box-shadow: 0 8px 18px rgba(12, 21, 36, 0.04);
}

.upload-box {
  border-style: dashed;
  border-width: 2px;
  background: #F8FCFE;
}

.privacy-box {
  background: #F8FAFC;
}

.review-card header {
  border-bottom: 1px solid #E3EBF3;
  padding-bottom: 0.7rem;
}

.review-card h4,
.detail-section h3 {
  color: #132447;
}

.form-navigation {
  background: #F8FAFC;
  border: 1px solid #E0E8F0;
  border-radius: 10px;
  padding: 1rem;
}

.success-icon {
  border-radius: 12px;
}

.protocol-box {
  background: #FFFFFF;
  border-color: #3BBADB;
}

.admin-login {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 44, 83, 0.92));
}

.login-card {
  border-top: 5px solid #3BBADB;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.login-logo {
  width: 260px;
  height: 76px;
  padding: 0.35rem;
}

.admin-header {
  background: #07111F;
  border-bottom: 4px solid #3BBADB;
}

.admin-header-inner {
  padding-block: 0.95rem;
}

.admin-logo {
  width: 210px;
  height: 60px;
  padding: 0.25rem;
}

.admin-brand h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.quick-search .form-control {
  background: #111C2A;
  border-color: #344356;
}

.dashboard-body {
  max-width: 1800px;
  margin-inline: auto;
}

.dashboard-toolbar {
  background: #FFFFFF;
  border: 1px solid #DAE5EF;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--fh-shadow-soft);
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #DAE5EF;
  border-left: 5px solid #3BBADB;
  background: #FFFFFF;
  box-shadow: var(--fh-shadow-soft);
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #3BBADB, transparent);
}

.summary-icon {
  background: #EAF9FD;
  color: #126D85;
}

.summary-card strong {
  color: #132447;
}

.filters-panel,
.chart-card,
.table-panel {
  border: 1px solid #DAE5EF;
  border-radius: 12px;
  box-shadow: var(--fh-shadow-soft);
}

.filters-panel {
  background: #FFFFFF;
}

.filters-header {
  border-bottom: 1px solid #E3EBF3;
  padding-bottom: 0.85rem;
}

.chart-card {
  background: #FFFFFF;
  min-height: 330px;
}

.chart-card h3,
.filters-header h3,
.table-panel h3 {
  color: #132447;
}

.table-panel {
  background: #FFFFFF;
}

.table-responsive {
  border: 1px solid #E3EBF3;
  border-radius: 10px;
}

.recruitment-table {
  margin-bottom: 0;
}

.recruitment-table thead {
  background: #F0F5FA;
}

.recruitment-table th {
  color: #132447;
  border-bottom: 1px solid #D7E2EC;
}

.recruitment-table tbody tr:hover {
  background: #F8FCFE;
}

.table-actions .btn {
  border-radius: 7px;
}

.badge-soft {
  border-radius: 7px;
}

.modal-content {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 32px 90px rgba(12, 21, 36, 0.28);
}

.modal-header {
  border-bottom-color: #E0E8F0;
}

@media (max-width: 991.98px) {
  .public-hero {
    min-height: 470px;
    padding-bottom: 6rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 2.2rem;
  }

  .hero-assurance {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 0;
    padding-top: 1rem;
  }

  .step-dots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .public-nav .brand-logo {
    width: 230px;
    height: 66px;
  }
}

@media (max-width: 767.98px) {
  .public-hero {
    min-height: 560px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .form-card {
    border-radius: 10px;
  }

  .progress-wrap {
    padding: 0.8rem;
  }

  .step-dots {
    grid-template-columns: 1fr 1fr;
  }

  .admin-header-inner,
  .dashboard-toolbar {
    gap: 0.9rem;
  }

  .admin-logo {
    width: 190px;
    height: 56px;
  }
}

.admin-header .quick-search {
  display: none;
}

.table-panel-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-search {
  width: min(360px, 52vw);
}

.summary-card {
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.summary-card.is-selected {
  border-color: #3BBADB;
  border-left-color: #132447;
  background: #EAF9FD;
  box-shadow: 0 0 0 3px rgba(59, 186, 219, 0.18), var(--fh-shadow-soft);
}

.recruitment-table {
  min-width: 1120px;
}

.recruitment-table th[data-sort-field] {
  cursor: pointer;
  user-select: none;
}

.recruitment-table th[data-sort-field]::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  margin-left: 0.35rem;
  color: #7B8797;
  font-size: 0.75rem;
}

.recruitment-table th:last-child,
.recruitment-table td:last-child {
  position: sticky;
  right: 0;
  background: #FFFFFF;
  z-index: 2;
  box-shadow: -8px 0 18px rgba(12, 21, 36, 0.08);
}

.recruitment-table th:last-child {
  background: #F0F5FA;
  z-index: 3;
}

.table-actions {
  min-width: 180px;
  max-width: 220px;
}

.table-actions .btn {
  min-height: 2.1rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
}

.modal-footer {
  justify-content: flex-end;
}

.history-section {
  grid-column: 1 / -1;
}

.history-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.2rem;
}

.history-list li {
  padding: 0.75rem;
  border: 1px solid #E1EAF2;
  border-radius: 8px;
  background: #F8FBFE;
}

.history-list strong,
.history-list span {
  display: block;
}

.history-list span {
  color: #5F6877;
  font-size: 0.86rem;
  font-weight: 700;
}

.history-list p {
  margin: 0.35rem 0 0;
}

@media (max-width: 767.98px) {
  .table-panel-tools,
  .table-search {
    width: 100%;
  }
}

.public-page {
  background:
    linear-gradient(180deg, #FFFFFF 0, #F6FAFC 18rem, #EEF5F8 100%) !important;
}

/* Public form shell polish. */
.form-card {
  border-radius: 10px !important;
  border-top-width: 4px !important;
  box-shadow: 0 18px 46px rgba(12, 21, 36, 0.11) !important;
  padding-top: clamp(1rem, 2.2vw, 1.7rem) !important;
}

.form-card-header {
  align-items: center !important;
  padding-bottom: 0.85rem !important;
  margin-bottom: 0.85rem !important;
}

.form-card-header h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem) !important;
  line-height: 1.1 !important;
}

.form-card-header .btn {
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
}

.temporary-storage-note {
  padding: 0.7rem 0.85rem !important;
  margin-bottom: 0.95rem !important;
}

.progress-wrap {
  margin-top: 0.95rem !important;
  padding: 0.85rem !important;
}

/* Admin table: keep actions visible without horizontal scrolling. */
.table-panel-tools {
  justify-content: flex-end !important;
}

.table-panel-tools #exportXlsxBtn {
  order: 3;
}

@media (min-width: 992px) {
  .table-panel .table-responsive {
    overflow-x: visible !important;
  }

  .recruitment-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed;
    font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  }

  .recruitment-table th,
  .recruitment-table td {
    padding: 0.42rem 0.3rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.22;
  }

  .recruitment-table th {
    font-size: clamp(0.58rem, 0.64vw, 0.7rem);
  }

  .recruitment-table th[data-sort-field]::after {
    margin-left: 0.15rem;
    font-size: 0.58rem;
  }

  .recruitment-table th:last-child,
  .recruitment-table td:last-child {
    position: static !important;
    box-shadow: none !important;
  }

  .recruitment-table th:nth-child(1),
  .recruitment-table td:nth-child(1) {
    width: 7.5%;
  }

  .recruitment-table th:nth-child(2),
  .recruitment-table td:nth-child(2) {
    width: 11.5%;
  }

  .recruitment-table th:nth-child(3),
  .recruitment-table td:nth-child(3) {
    width: 4.5%;
  }

  .recruitment-table th:nth-child(4),
  .recruitment-table td:nth-child(4) {
    width: 10%;
  }

  .recruitment-table th:nth-child(5),
  .recruitment-table td:nth-child(5) {
    width: 8.5%;
  }

  .recruitment-table th:nth-child(6),
  .recruitment-table td:nth-child(6) {
    width: 7%;
  }

  .recruitment-table th:nth-child(7),
  .recruitment-table td:nth-child(7) {
    width: 8%;
  }

  .recruitment-table th:nth-child(8),
  .recruitment-table td:nth-child(8) {
    width: 6.5%;
  }

  .recruitment-table th:nth-child(9),
  .recruitment-table td:nth-child(9) {
    width: 8%;
  }

  .recruitment-table th:nth-child(10),
  .recruitment-table td:nth-child(10) {
    width: 6%;
  }

  .recruitment-table th:nth-child(11),
  .recruitment-table td:nth-child(11) {
    width: 7%;
  }

  .recruitment-table th:nth-child(12),
  .recruitment-table td:nth-child(12) {
    width: 5.5%;
  }

  .recruitment-table th:nth-child(13),
  .recruitment-table td:nth-child(13) {
    width: 10%;
  }

  .recruitment-table .badge-soft {
    max-width: 100%;
    white-space: normal;
    padding: 0.24rem 0.35rem;
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .table-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(1.75rem, 1fr));
    gap: 0.25rem !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .table-actions .btn {
    width: 100%;
    min-height: 1.75rem !important;
    padding: 0.2rem !important;
    font-size: 0 !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .table-actions .btn i {
    font-size: 0.95rem;
  }

  .table-actions .action-label {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .table-panel-tools #exportXlsxBtn {
    width: auto;
  }

  .recruitment-table th:last-child,
  .recruitment-table td:last-child {
    position: static !important;
    box-shadow: none !important;
  }

  .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
    max-width: none;
  }

  .table-actions .btn {
    flex: 1 1 8rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
  }
}

/* Public header revised: direct entry, less visual noise. */
.public-hero {
  background: #FFFFFF !important;
  color: #10203E !important;
  padding: 0 0 0.85rem !important;
  border-bottom: 1px solid #DFEAF2 !important;
  box-shadow: none !important;
}

.public-hero::after {
  height: 3px !important;
  background: linear-gradient(90deg, #3BBADB 0%, #1A2C53 100%) !important;
}

.public-nav {
  min-height: 68px;
  padding-top: 0.55rem !important;
  padding-right: 2.25rem !important;
  padding-bottom: 0.55rem !important;
  padding-left: 1rem !important;
  border-bottom: 1px solid #EDF3F7;
}

.public-nav .brand-logo {
  width: min(176px, 50vw) !important;
  max-height: 50px;
}

.public-nav .btn {
  width: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border-color: #CBD8E3 !important;
  color: #1A2C53 !important;
  background: #FFFFFF !important;
  font-size: 0;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
}

.public-nav .btn i {
  font-size: 1rem;
  margin: 0;
}

.hero-content {
  padding-top: 0.85rem !important;
  padding-bottom: 0.45rem !important;
}

.hero-copy {
  max-width: 760px !important;
  padding: 0.1rem 0 0.15rem 1rem !important;
  border-top: 0 !important;
  border-left: 4px solid #3BBADB;
}

.hero-copy .eyebrow {
  color: #1688A4 !important;
  font-size: 0.72rem !important;
  margin-bottom: 0.25rem !important;
}

.hero-copy h1 {
  color: #081A3C !important;
  font-size: clamp(1.85rem, 3.7vw, 3rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 0.45rem !important;
}

.hero-subtitle {
  max-width: 650px !important;
  color: #3D4A5C !important;
  font-size: clamp(0.98rem, 1.45vw, 1.08rem) !important;
  line-height: 1.5 !important;
  margin-bottom: 0.5rem !important;
}

.hero-note {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #146F86 !important;
  font-size: 0.94rem !important;
  font-weight: 800;
}

.public-main {
  padding-top: 0.75rem !important;
}

@media (max-width: 575.98px) {
  .public-nav {
    min-height: 62px;
  }

  .public-nav .brand-logo {
    width: min(160px, 58vw) !important;
  }

  .public-nav .btn {
    width: 2.45rem;
    min-width: 2.45rem;
    padding-inline: 0 !important;
    font-size: 0;
  }

  .public-nav .btn i {
    font-size: 1rem;
  }

  .hero-copy {
    padding-left: 0.8rem !important;
  }
}

/* Modern resume upload control. */
.upload-box {
  padding: 1.15rem !important;
  background: #FFFFFF !important;
  border-color: #D8E6EF !important;
}

.resume-upload-control {
  position: relative;
}

.resume-file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  overflow: hidden;
}

.resume-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 5.8rem;
  padding: 1rem;
  border: 1.5px dashed #A9DDEA;
  border-radius: 10px;
  background: linear-gradient(180deg, #F8FDFF 0%, #F2FAFD 100%);
  color: #132447;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.resume-dropzone:hover,
.resume-file-input:focus ~ .resume-dropzone,
.resume-file-input:focus-visible ~ .resume-dropzone {
  border-color: #3BBADB;
  background: #EFFBFE;
  box-shadow: 0 0 0 4px rgba(59, 186, 219, 0.12);
}

.resume-dropzone:active {
  transform: translateY(1px);
}

.resume-file-input.is-invalid ~ .resume-dropzone {
  border-color: var(--fh-danger);
  background: #FFF7F6;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.resume-file-input.is-valid ~ .resume-dropzone {
  border-color: rgba(33, 122, 75, 0.7);
  background: #F3FBF6;
}

.resume-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 10px;
  background: #FFFFFF;
  color: #1688A4;
  box-shadow: 0 10px 22px rgba(12, 21, 36, 0.08);
  font-size: 1.55rem;
}

.resume-dropzone-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.resume-dropzone-copy strong {
  font-size: 1.05rem;
  color: #0D1F43;
}

.resume-dropzone-copy small {
  color: #536173;
  font-weight: 750;
  line-height: 1.35;
}

.resume-dropzone-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: #132447;
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.resume-dropzone-action:hover {
  background: #1A2C53;
  box-shadow: 0 10px 22px rgba(19, 36, 71, 0.18);
}

.resume-dropzone-action:active {
  transform: translateY(1px);
}

.resume-dropzone-action-secondary {
  background: #FFFFFF;
  color: #132447;
  border: 1px solid #C9D8E4;
}

.resume-dropzone-action-secondary:hover {
  background: #F3F8FB;
}

.resume-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.resume-file-status {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.6rem;
  margin-top: 0.75rem !important;
  padding: 0.65rem 0.75rem;
  border: 1px solid #E0EAF2;
  border-radius: 8px;
  background: #FBFDFF;
  color: #536173 !important;
  font-weight: 800;
}

.resume-file-status i {
  color: #1688A4;
  font-size: 1.05rem;
}

.resume-file-status.is-filled {
  border-color: #BCEBF6;
  background: #EFFBFE;
  color: #132447 !important;
}

.resume-file-status strong,
.resume-file-status small {
  display: block;
}

.resume-file-status small {
  color: #5B6675;
  font-size: 0.84rem;
  font-weight: 750;
  margin-top: 0.12rem;
}

#removeFileBtn {
  margin-top: 0.75rem;
}

@media (max-width: 575.98px) {
  .resume-dropzone {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .resume-upload-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .resume-dropzone-action {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Ajustes solicitados: topo mais limpo, logo sem cartão e ícone do cadeado centralizado. */
.public-nav {
  justify-content: center !important;
  position: relative;
}

.public-nav .brand-logo,
.admin-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  object-fit: contain;
}

.public-nav .brand-logo {
  width: min(184px, 54vw) !important;
  height: auto !important;
  max-height: 54px;
}

.public-nav .btn {
  position: absolute;
  right: 1rem;
  margin-right: 0 !important;
}

.public-nav .btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.hero-content {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  margin-inline: auto !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}

.hero-subtitle {
  margin-inline: auto;
}

.hero-note {
  justify-content: center;
}

.section-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #FFFFFF;
  border: 1px solid #DAE5EF;
  border-radius: 12px;
  box-shadow: var(--fh-shadow-soft);
}

.section-control-row h3 {
  margin: 0;
  color: #132447;
  font-size: 1.1rem;
  font-weight: 900;
}

.section-control-row p {
  margin: 0.2rem 0 0;
  color: var(--fh-muted);
  font-weight: 700;
}

.summary-card,
.chart-card canvas {
  cursor: pointer;
}

.summary-card.is-selected {
  outline: 3px solid rgba(59, 186, 219, 0.35);
  outline-offset: 2px;
}

.pagination-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border: 1px solid #E3EBF3;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #FFFFFF;
}

.page-size-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-size-control .form-label {
  margin: 0;
  white-space: nowrap;
}

.pagination .page-link {
  color: #132447;
  font-weight: 800;
}

.pagination .active .page-link {
  color: #FFFFFF;
  background: #1A2C53;
  border-color: #1A2C53;
}

@media (min-width: 992px) {
  .recruitment-table th:nth-child(1),
  .recruitment-table td:nth-child(1) {
    width: 7.5%;
  }

  .recruitment-table th:nth-child(2),
  .recruitment-table td:nth-child(2) {
    width: 11%;
  }

  .recruitment-table th:nth-child(3),
  .recruitment-table td:nth-child(3) {
    width: 8.5%;
  }

  .recruitment-table th:nth-child(4),
  .recruitment-table td:nth-child(4) {
    width: 8%;
  }

  .recruitment-table th:nth-child(5),
  .recruitment-table td:nth-child(5) {
    width: 4.5%;
  }

  .recruitment-table th:nth-child(6),
  .recruitment-table td:nth-child(6) {
    width: 7%;
  }

  .recruitment-table th:nth-child(7),
  .recruitment-table td:nth-child(7) {
    width: 8%;
  }

  .recruitment-table th:nth-child(8),
  .recruitment-table td:nth-child(8) {
    width: 8.5%;
  }

  .recruitment-table th:nth-child(9),
  .recruitment-table td:nth-child(9) {
    width: 8.5%;
  }

  .recruitment-table th:nth-child(10),
  .recruitment-table td:nth-child(10) {
    width: 6.5%;
  }

  .recruitment-table th:nth-child(11),
  .recruitment-table td:nth-child(11) {
    width: 6%;
  }

  .recruitment-table th:nth-child(12),
  .recruitment-table td:nth-child(12) {
    width: 7%;
  }

  .recruitment-table th:nth-child(13),
  .recruitment-table td:nth-child(13) {
    width: 5.5%;
  }

  .recruitment-table th:nth-child(14),
  .recruitment-table td:nth-child(14) {
    width: 10%;
  }
}

@media (max-width: 575.98px) {
  .public-nav {
    justify-content: flex-start !important;
    padding-right: 4.5rem !important;
  }

  .public-nav .brand-logo {
    width: min(150px, 54vw) !important;
  }

  .section-control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .section-control-row .btn {
    width: 100%;
  }
}

/* Correção da tabela: manter a formatação original com rolagem horizontal contida. */
.admin-section-stack {
  margin-bottom: 1rem;
}

.admin-section-stack .section-control-row {
  margin-bottom: 0.75rem;
}

.table-panel .table-responsive {
  overflow-x: auto !important;
  overflow-y: visible;
}

.recruitment-table {
  min-width: 1500px !important;
  width: 100% !important;
  table-layout: auto !important;
  font-size: 0.82rem !important;
}

.recruitment-table th,
.recruitment-table td {
  padding: 0.65rem 0.7rem !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.35 !important;
}

.recruitment-table td:nth-child(2) {
  min-width: 190px;
}

.recruitment-table td:nth-child(3) {
  min-width: 190px;
}

.recruitment-table td:nth-child(7),
.recruitment-table td:nth-child(8),
.recruitment-table td:nth-child(9) {
  min-width: 170px;
}

.recruitment-table th:last-child,
.recruitment-table td:last-child {
  min-width: 250px;
}

@media (min-width: 992px) {
  .recruitment-table th,
  .recruitment-table td {
    width: auto !important;
  }
}

@media (max-width: 767.98px) {
  .recruitment-table {
    min-width: 0 !important;
    font-size: 1rem !important;
  }

  .recruitment-table th,
  .recruitment-table td {
    white-space: normal !important;
  }

  .pagination-shell,
  .page-size-control {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Final admin table correction: no horizontal scroll on desktop. */
@media (min-width: 768px) {
  .table-panel .table-responsive {
    overflow-x: visible !important;
  }

  .recruitment-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    font-size: clamp(0.62rem, 0.68vw, 0.76rem) !important;
  }

  .recruitment-table th,
  .recruitment-table td {
    min-width: 0 !important;
    padding: 0.42rem 0.28rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.2 !important;
  }

  .recruitment-table th {
    font-size: clamp(0.56rem, 0.6vw, 0.68rem) !important;
  }

  .recruitment-table th:nth-child(1),
  .recruitment-table td:nth-child(1) {
    width: 7.5% !important;
  }

  .recruitment-table th:nth-child(2),
  .recruitment-table td:nth-child(2) {
    width: 11% !important;
  }

  .recruitment-table th:nth-child(3),
  .recruitment-table td:nth-child(3) {
    width: 8.5% !important;
  }

  .recruitment-table th:nth-child(4),
  .recruitment-table td:nth-child(4) {
    width: 7.5% !important;
  }

  .recruitment-table th:nth-child(5),
  .recruitment-table td:nth-child(5) {
    width: 4.5% !important;
  }

  .recruitment-table th:nth-child(6),
  .recruitment-table td:nth-child(6) {
    width: 7% !important;
  }

  .recruitment-table th:nth-child(7),
  .recruitment-table td:nth-child(7) {
    width: 8% !important;
  }

  .recruitment-table th:nth-child(8),
  .recruitment-table td:nth-child(8) {
    width: 8% !important;
  }

  .recruitment-table th:nth-child(9),
  .recruitment-table td:nth-child(9) {
    width: 7.5% !important;
  }

  .recruitment-table th:nth-child(10),
  .recruitment-table td:nth-child(10) {
    width: 6% !important;
  }

  .recruitment-table th:nth-child(11),
  .recruitment-table td:nth-child(11) {
    width: 6% !important;
  }

  .recruitment-table th:nth-child(12),
  .recruitment-table td:nth-child(12) {
    width: 6.5% !important;
  }

  .recruitment-table th:nth-child(13),
  .recruitment-table td:nth-child(13) {
    width: 5% !important;
  }

  .recruitment-table th:nth-child(14),
  .recruitment-table td:nth-child(14) {
    width: 7% !important;
  }

  .table-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(1.6rem, 1fr));
    gap: 0.22rem !important;
    min-width: 0 !important;
  }

  .table-actions .btn {
    width: 100%;
    min-height: 1.72rem !important;
    padding: 0.18rem !important;
    font-size: 0 !important;
  }

  .table-actions .btn i {
    font-size: 0.92rem;
  }

  .table-actions .action-label {
    display: none;
  }
}

/* Cleaner pagination. */
.pagination-shell {
  margin-top: 0.85rem;
  border: 1px solid #D8E6EF !important;
  border-radius: 12px !important;
  background: #F8FBFE !important;
  box-shadow: 0 8px 18px rgba(12, 21, 36, 0.04);
}

.pagination-shell nav {
  display: flex;
  justify-content: center;
}

.pagination {
  gap: 0.35rem;
}

.pagination .page-item {
  display: inline-flex;
}

.pagination .page-link {
  min-width: 2.2rem;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #C9D9E8;
  border-radius: 999px !important;
  background: #FFFFFF;
  color: #132447;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  border-color: #3BBADB;
  background: #EAF9FD;
  color: #132447;
}

.pagination .active .page-link {
  border-color: #1A2C53 !important;
  background: #1A2C53 !important;
  color: #FFFFFF !important;
}

.pagination .disabled .page-link {
  opacity: 0.45;
  background: #EDF3F7;
}

.page-size-control {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D8E6EF;
}

.page-size-control .form-select {
  width: auto;
  min-width: 4.25rem;
  border-radius: 999px;
  font-weight: 800;
}

/* Final alignment fixes requested after QA. */
.public-nav > .btn {
  inline-size: 2.45rem !important;
  block-size: 2.45rem !important;
  min-inline-size: 2.45rem !important;
  min-block-size: 2.45rem !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
  font-size: 0 !important;
  position: absolute !important;
  top: 50% !important;
  right: 1rem !important;
  transform: translateY(-50%) !important;
}

.public-nav > .btn i,
.public-nav > .btn .bi {
  display: block !important;
  inline-size: 1rem !important;
  block-size: 1rem !important;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  text-align: center !important;
}

.pagination-shell {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center !important;
  gap: 0.75rem !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0.85rem !important;
  visibility: visible !important;
}

.pagination-shell nav {
  justify-content: flex-end !important;
}

.pagination-shell nav.d-none {
  display: none !important;
}

.page-size-control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.55rem !important;
  align-self: center !important;
  width: max-content !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

.page-size-control .form-label {
  margin: 0 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.page-size-control .form-select {
  height: 2.2rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.1 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 767.98px) {
  .table-panel .table-responsive {
    overflow-x: visible !important;
  }

  .pagination-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .pagination-shell nav {
    justify-content: center !important;
  }

  .page-size-control {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: space-between !important;
  }
}

/* Inline table header controls. */
.table-title-row {
  display: grid !important;
  grid-template-columns: max-content minmax(300px, 1fr) minmax(340px, auto);
  align-items: center !important;
  gap: 0.85rem !important;
}

.table-title-row > div:first-child {
  min-width: max-content;
}

.table-pagination-inline {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  justify-self: stretch;
  grid-template-columns: max-content minmax(0, 1fr);
}

.table-pagination-inline nav {
  justify-content: flex-start !important;
}

.table-panel-tools {
  min-width: 0;
}

.table-search {
  width: clamp(210px, 22vw, 340px) !important;
}

@media (max-width: 1199.98px) {
  .table-title-row {
    grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
  }

  .table-pagination-inline {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .table-panel-tools {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 767.98px) {
  .table-title-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch !important;
  }

  .table-title-row > div:first-child,
  .table-pagination-inline,
  .table-panel-tools {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    width: 100%;
  }

  .table-pagination-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-pagination-inline nav {
    justify-content: center !important;
  }

  .table-search {
    width: 100% !important;
  }
}
