.br-scrim.foco {
  background: var(--surface-overlay-scrim);
  bottom: 0;
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 999;
}
.br-scrim.foco .br-modal {
  left: 50%;
  max-height: 90%;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1000;
}
.br-scrim.foco.active {
  display: block;
}
.br-scrim.inibicao {
  position: relative;
}
.br-scrim.inibicao::before {
  background: var(--surface-overlay-scrim);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.br-scrim.legibilidade {
  position: relative;
}
.br-scrim.legibilidade .scrim-text {
  background: var(--surface-overlay-text);
  bottom: 0;
  left: 0;
  padding: var(--spacing-scale-3x) var(--spacing-scale-baseh);
  position: absolute;
  width: 100%;
}

.br-scrim-util.foco {
  background: var(--surface-overlay-scrim);
  bottom: 0;
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 999;
}
.br-scrim-util.foco .br-modal {
  left: 50%;
  max-height: 90%;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1000;
}
.br-scrim-util.foco.active {
  display: block;
}
.br-scrim-util.inibicao {
  position: relative;
}
.br-scrim-util.inibicao::before {
  background: var(--surface-overlay-scrim);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.br-scrim-util.legibilidade {
  position: relative;
}
.br-scrim-util.legibilidade .scrim-text {
  background: var(--surface-overlay-text);
  bottom: 0;
  left: 0;
  padding: var(--spacing-scale-3x) var(--spacing-scale-baseh);
  position: absolute;
  width: 100%;
}

.highlight:hover {
  background-color: yellow; /* Cor de fundo ao passar o mouse */
}
.highlight {
  font-weight: bold; /* Deixar o texto em negrito */
  padding: 0 5px; /* Adicionar algum espaçamento ao redor do texto */
}

.icon-links {
margin-top: 20px;
text-align: center; /* Centralizar os ícones */
}
.icon-link {
margin-right: 20px;
font-size: 1.2em;
text-decoration: none; /* Remover sublinhado dos links */
color: inherit; /* Manter a cor do texto */
}
.icon-link:last-child {
margin-right: 0; /* Remover margem direita do último ícone */
}


.p-3 {
margin-bottom: 20px;
}

.upload-label {
display: block;
margin-bottom: 10px;
font-weight: bold;
color: #333;
}

.upload-input {
display: inline-block;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f8f8f8;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 10px;
}

.upload-input:hover {
background-color: #e0e0e0;
}

.error {
border: 2px solid red;
}

.error-text {
color: red;
}


.link-no-color-change:visited {
  color: inherit;
}


.delete-button {
  background-color: red;
  color: white;
  border: none;
  padding: 10px 20px;
}

/* Home */
#main > .container-fluid.d-flex > .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.home-page-shell {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.home-page {
  background: #f7f9fc;
  color: #1f2937;
  font-family: Rawline, Raleway, Arial, sans-serif;
  margin: -1rem auto 0;
  max-width: 1180px;
  padding: 1.5rem;
  width: 100%;
}

.home-hero {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(16, 84, 151, 0.95), rgba(28, 114, 111, 0.92)),
    url("ubs1.png") center 30%/cover;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(13, 48, 84, 0.18);
  color: #ffffff;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 320px;
  overflow: hidden;
  padding: 2rem;
}

.home-hero__content {
  max-width: 720px;
}

.home-hero__logo {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  display: block;
  height: auto;
  margin-bottom: 1.25rem;
  max-width: 220px;
  padding: 0.75rem 1rem;
}

.home-eyebrow {
  color: #0c615e;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.home-hero .home-eyebrow {
  color: #d8fff5;
}

.home-hero h1,
.home-card h2 {
  letter-spacing: 0;
  margin: 0;
}

.home-hero h1 {
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.12;
  max-width: 680px;
}

.home-hero p {
  color: #eef8ff;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 1rem 0 0;
  max-width: 620px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.home-button--primary {
  background: #1351b4;
  color: #ffffff;
}

.home-button--primary:hover {
  background: #0c326f;
  color: #ffffff;
}

.home-button--secondary {
  background: #ffffff;
  color: #1351b4;
}

.home-button--secondary:hover {
  background: #edf5ff;
  color: #0c326f;
}

.home-button--accent {
  background: #f7c948;
  box-shadow: 0 10px 18px rgba(97, 71, 0, 0.22);
  color: #1f2937;
}

.home-button--accent:hover {
  background: #f0b429;
  color: #111827;
}

.home-hero__form {
  margin: 0;
}

.home-hero__form .home-button {
  border: 0;
  cursor: pointer;
}

.home-button--disabled,
.home-button--disabled:hover {
  background: #6b7280;
  color: #ffffff;
  cursor: not-allowed;
  transform: none;
}

.home-status-card {
  align-self: end;
  background: rgba(255, 255, 255, 0.96);
  border-left: 5px solid #f7c948;
  border-radius: 8px;
  color: #1f2937;
  padding: 1.25rem;
}

.home-status-card__label {
  color: #6b7280;
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.home-status-card strong {
  color: #0c615e;
  display: block;
  font-size: 1.15rem;
  line-height: 1.3;
}

.home-status-card p {
  color: #4b5563;
  line-height: 1.5;
  margin: 0.65rem 0 0;
}

.home-alert {
  align-items: center;
  background: #fff5f5;
  border: 1px solid #f2b8b5;
  border-radius: 8px;
  color: #b42318;
  display: flex;
  font-weight: 700;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
}

.home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-top: 1rem;
}

.home-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.08);
  padding: 1.35rem;
}

.home-card__header {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.home-card__icon {
  align-items: center;
  background: #e7f6f2;
  border-radius: 8px;
  color: #0c615e;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.home-card h2 {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-card h3 {
  color: #374151;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
}

.home-card p {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.home-card p:last-child {
  margin-bottom: 0;
}

.home-doc-section + .home-doc-section {
  margin-top: 1.15rem;
}

.home-doc-links {
  display: grid;
  gap: 0.65rem;
}

.home-doc-link,
.home-related a {
  align-items: center;
  border-radius: 8px;
  color: #1351b4;
  display: flex;
  gap: 0.7rem;
  line-height: 1.35;
  text-decoration: none;
}

.home-doc-link {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-weight: 700;
  padding: 0.85rem;
}

.home-doc-link i {
  color: #0c615e;
  min-width: 20px;
  text-align: center;
}

.home-doc-note {
  color: #b45309;
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.home-doc-link .fa-file-pdf {
  color: #b42318;
}

.home-doc-link:hover,
.home-related a:hover {
  background: #edf5ff;
  color: #0c326f;
  text-decoration: none;
}

.home-related {
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
}

.home-related a {
  font-weight: 700;
  padding: 0.45rem 0.25rem;
}

.home-steps {
  margin-top: 1rem;
}

.home-step-list {
  counter-reset: none;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-step-list li {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 0.8rem;
  padding: 0.95rem;
}

.home-step-list li > span {
  align-items: center;
  background: #1351b4;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.home-step-list strong {
  color: #111827;
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.home-step-list p {
  font-size: 0.92rem;
  margin: 0;
}

.home-cta {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0 0.5rem;
}

@media (max-width: 900px) {
  .home-page {
    padding: 1rem;
  }

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

  .home-status-card {
    align-self: stretch;
  }

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

@media (max-width: 560px) {
  .home-page {
    margin-top: -0.5rem;
    padding: 0.75rem;
  }

  .home-hero {
    padding: 1.25rem;
  }

  .home-hero__logo {
    max-width: 180px;
  }

  .home-hero h1 {
    font-size: 1.75rem;
  }

  .home-card {
    padding: 1rem;
  }

  .home-card__header {
    align-items: flex-start;
  }

  .home-hero__actions,
  .home-button,
  .home-cta form {
    width: 100%;
  }
}

/* Confirmation */
.confirmation-shell {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  padding: 1.5rem;
  width: 100%;
}

.confirmation-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
  display: grid;
  gap: 2rem;
  grid-template-columns: 320px minmax(0, 1fr);
  max-width: 980px;
  overflow: hidden;
  padding: 2rem;
  width: 100%;
}

.confirmation-visual {
  align-items: center;
  background: #e7f6f2;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 280px;
  padding: 1.25rem;
}

.confirmation-visual img {
  height: auto;
  max-width: 100%;
}

.confirmation-content {
  color: #374151;
  font-family: Rawline, Raleway, Arial, sans-serif;
}

.confirmation-eyebrow {
  color: #0c615e;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.confirmation-content h1 {
  color: #111827;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0 0 1rem;
}

.confirmation-content p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

.confirmation-lead {
  color: #1f2937;
  font-size: 1.08rem;
  font-weight: 600;
}

.confirmation-link {
  align-items: center;
  color: #1351b4;
  display: inline-flex;
  font-weight: 800;
  gap: 0.5rem;
  margin-top: 0.25rem;
  text-decoration: none;
}

.confirmation-link:hover {
  color: #0c326f;
  text-decoration: underline;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.confirmation-button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.confirmation-button:hover {
  text-decoration: none;
}

.confirmation-button--primary {
  background: #1351b4;
  color: #ffffff;
}

.confirmation-button--primary:hover {
  background: #0c326f;
  color: #ffffff;
}

.confirmation-button--secondary {
  background: #f8fafc;
  border: 1px solid #d1d5db;
  color: #1351b4;
}

.confirmation-button--secondary:hover {
  background: #edf5ff;
  color: #0c326f;
}

.confirmation-button .fa-file-pdf {
  color: #b42318;
}

@media (max-width: 820px) {
  .confirmation-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .confirmation-visual {
    min-height: 180px;
  }
}

@media (max-width: 560px) {
  .confirmation-shell {
    padding: 0.75rem;
  }

  .confirmation-content h1 {
    font-size: 1.65rem;
  }

  .confirmation-actions,
  .confirmation-button {
    width: 100%;
  }
}
