html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Breadcrumb wrapping */
.breadcrumb ul {
  flex-wrap: wrap;
}
.breadcrumb li.is-active a {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Documentos Publicados table — mobile cards */
@media (max-width: 767px) {
  .table-docs-publicados thead {
    display: none;
  }
  .table-docs-publicados tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }
  .table-docs-publicados tbody tr td {
    border: none;
    padding: 0.25rem 0;
  }
  .table-docs-publicados td:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
  }
  .table-docs-publicados td:nth-child(1)::before {
    content: "Tipo";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
  .table-docs-publicados td:nth-child(2)::before {
    content: "Título";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
  .table-docs-publicados td:nth-child(3)::before {
    content: "Data";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
  .table-docs-publicados td:nth-child(4)::before {
    content: "Descrição";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
  .table-docs-publicados td:nth-child(5)::before {
    content: "Download";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
}

/* Privacy tables — mobile cards */
@media (max-width: 767px) {
  .table-privacidade-dados thead { display: none; }
  .table-privacidade-dados tbody tr {
    display: flex; flex-direction: column;
    border: 1px solid #dbdbdb; border-radius: 6px;
    margin-bottom: 0.75rem; padding: 0.75rem;
  }
  .table-privacidade-dados tbody tr td { border: none; padding: 0.25rem 0; }
  .table-privacidade-dados td:not(:last-child) { border-bottom: 1px solid #f0f0f0; margin-bottom: 0.5rem; }
  .table-privacidade-dados td:nth-child(1)::before { content: "Dado"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-privacidade-dados td:nth-child(2)::before { content: "Prazo de retenção"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-privacidade-dados td:nth-child(3)::before { content: "Critério"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }

  .table-privacidade-cookies thead { display: none; }
  .table-privacidade-cookies tbody tr {
    display: flex; flex-direction: column;
    border: 1px solid #dbdbdb; border-radius: 6px;
    margin-bottom: 0.75rem; padding: 0.75rem;
  }
  .table-privacidade-cookies tbody tr td { border: none; padding: 0.25rem 0; }
  .table-privacidade-cookies td:not(:last-child) { border-bottom: 1px solid #f0f0f0; margin-bottom: 0.5rem; }
  .table-privacidade-cookies td:nth-child(1)::before { content: "Nome"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-privacidade-cookies td:nth-child(2)::before { content: "Finalidade"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-privacidade-cookies td:nth-child(3)::before { content: "Duração"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }

  .table-privacidade-versoes thead { display: none; }
  .table-privacidade-versoes tbody tr {
    display: flex; flex-direction: column;
    border: 1px solid #dbdbdb; border-radius: 6px;
    margin-bottom: 0.75rem; padding: 0.75rem;
  }
  .table-privacidade-versoes tbody tr td { border: none; padding: 0.25rem 0; }
  .table-privacidade-versoes td:not(:last-child) { border-bottom: 1px solid #f0f0f0; margin-bottom: 0.5rem; }
  .table-privacidade-versoes td:nth-child(1)::before { content: "Versão"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-privacidade-versoes td:nth-child(2)::before { content: "Data"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-privacidade-versoes td:nth-child(3)::before { content: "Descrição"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }

}

/* ===== SelectGOV Details Page ===== */

/* Sticky status banner */
.status-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  border-radius: 0;
  margin: 0 -0.75rem 1.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}
.status-banner.is-success { background-color: #effaf3; color: #257942; border-bottom: 2px solid #48c774; }
.status-banner.is-warning { background-color: #fffdf5; color: #856404; border-bottom: 2px solid #ffc107; }
.status-banner.is-danger { background-color: #feecf0; color: #cc0f35; border-bottom: 2px solid #f14668; }
.status-banner.is-info { background-color: #eff5fb; color: #1d72aa; border-bottom: 2px solid #3e8ed0; }

/* Confirmation modal */
.modal-card-head { background: #10406c; border-radius: 6px 6px 0 0; }
.modal-card-title { color: #fff; font-size: 1.1rem; }

/* Brand button overrides */
.button.is-primary { background-color: #10406c; border-color: #10406c; color: #fff; }
.button.is-primary:hover { background-color: #0d3356; border-color: #0d3356; color: #fff; }
.button.is-link { background-color: #10406c; border-color: #10406c; color: #fff; }
.button.is-link:hover { background-color: #0d3356; border-color: #0d3356; color: #fff; }
.button.is-link.is-light { background-color: #eff5fb; border-color: #bfd6ed; color: #10406c; }
.button.is-link.is-light:hover { background-color: #dfe9f5; border-color: #a8c3e0; }
.button.is-info { background-color: #3e8ed0; border-color: #3e8ed0; color: #fff; }
.button.is-info:hover { background-color: #3273dc; border-color: #3273dc; }
.button.is-success { background-color: #40885c; border-color: #40885c; color: #fff; }
.button.is-success:hover { background-color: #367a4e; border-color: #367a4e; color: #fff; }
.button.is-success:active { background-color: #2e6d41; border-color: #2e6d41; }

/* Brand tag overrides */
.tag.is-success { background-color: #40885c; color: #fff; }

/* Recurso accordion */
.recurso-detail-inner { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }

/* Brand logo */
.logo-marca { font-size: 24px; font-weight: bold; letter-spacing: -1px; }
.logo-marca.is-footer { font-size: 20px; }
.logo-select { color: #10406c; }
.logo-gov { color: #40885c; }

/* Tabela de inscrições — header com cor da marca */
.table-inscricoes thead th { background-color: #10406c; color: #fff; font-weight: 600; }
.table-inscricoes thead th a { color: #fff; }

/* Cargo accordion card (mobile) */
.cargo-card { border: 1px solid #dbdbdb; border-radius: 6px; margin-bottom: 0.75rem; }
.cargo-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; cursor: pointer; background: #fafafa;
  border-radius: 6px 6px 0 0;
}
.cargo-card-header:hover { background: #f0f0f0; }
.cargo-card-body { padding: 0.75rem 1rem; border-top: 1px solid #dbdbdb; }
.cargo-card-body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; }
.cargo-card-body dt { color: #7a7a7a; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.cargo-card-body dd { margin: 0; font-size: 0.9rem; }
.cargo-card-body dd.full-width { grid-column: 1 / -1; }
.cargo-card-cta { padding: 0.75rem 1rem; border-top: 1px solid #dbdbdb; text-align: center; }

/* Page nav anchors */
.page-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-nav a {
  font-size: 0.85rem; padding: 0.4rem 0.75rem; border: 1px solid #dbdbdb;
  border-radius: 100em; color: #4a4a4a; text-decoration: none; transition: all 0.15s;
}
.page-nav a:hover { border-color: #10406c; color: #10406c; }

/* Table improvements */
.table th { white-space: nowrap; }

/* Responsive: hide cargo table on mobile, show cards */
@media (max-width: 767px) {
  .cargo-table-desktop { display: none; }
  .cargo-cards-mobile { display: block; }
}
@media (min-width: 768px) {
  .cargo-cards-mobile { display: none; }
}

/* Status banner link */
.status-banner-link { color: inherit !important; text-decoration: underline !important; }
.status-banner-link:hover { opacity: 0.85; }

/* Utility: flex gap */
.is-gap-1 { gap: 0.25rem; }
.is-gap-2 { gap: 0.5rem; }
.is-gap-3 { gap: 0.75rem; }
.is-gap-4 { gap: 1rem; }
.gap-sm { gap: 0.4rem; }
.gap-md { gap: 0.5rem; }

/* Inscritos badge */
.tag-inscritos { white-space: nowrap; }

/* Modal footer */
.modal-card-foot-actions { justify-content: flex-end; gap: 0.5rem; }

/* Table column widths */
.th-titulo { width: 250px; }
.th-icon { width: 36px; }
.th-publicacao { width: 130px; }
.th-cargo-afetado { width: 180px; }
.th-download { width: 140px; white-space: nowrap; }

/* Recurso chevron cell */
.td-chevron { text-align: center; vertical-align: middle; }

/* Recurso detail row initial hidden */
.recurso-detail-row { display: none; }

/* ===== Login Page ===== */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10rem);
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 8px;
  border-top: 3px solid #10406c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 2.5rem 2rem 2rem;
}

.login-context {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #eff5fb;
  border-radius: 6px;
  border: 1px solid #bfd6ed;
}

.login-context-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10406c;
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
}

.login-context-text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1a1a1a;
}

.login-context-title {
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.login-context-cargo {
  margin: 0 0 0.15rem;
  color: #4a4a4a;
}

.login-context-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #7a7a7a;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-gov-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #10406c;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 0.375rem;
  text-wrap: balance;
}

.login-subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0;
}

.login-actions {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-gov-button {
  width: 100%;
  height: 48px;
  font-size: 1rem;
  position: relative;
}

.login-gov-button.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.login-gov-button.is-loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.6s linear infinite;
}

.login-gov-button.is-loading .text-black {
  opacity: 0.5;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .login-gov-button.is-loading::after {
    animation: none;
    opacity: 0.5;
  }
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: #7a7a7a;
  text-align: center;
}

.login-footer i {
  font-size: 0.85rem;
  color: #40885c;
}

.login-footer strong {
  color: #4a4a4a;
  font-weight: 600;
}

@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 6px;
  }

  .login-title {
    font-size: 1.25rem;
  }
}

/* Notification inside recurso detail */
.notification-inline { margin-bottom: 0; }

/* Tag rendered by @functions */
.tag-status-inline { white-space: normal; height: auto; padding: 0.3rem 0.5rem; }

/* Recurso accordion (extracted from inline) */
.recurso-row { cursor: pointer; }
.recurso-row.is-expanded { background-color: #f5f5f5 !important; }
.recurso-chevron i { transition: transform 0.25s ease; display: inline-block; }
.recurso-row.is-expanded .recurso-chevron i { transform: rotate(90deg); }
.recurso-detail-row td { padding: 0 !important; border-top: none !important; }
.recurso-detail-inner { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.recurso-detail-content { padding: 1rem 0.75rem; background-color: #fafafa; border-top: 1px solid #e8e8e8; }

/* Review modal - buttons stack on mobile */
@media (max-width: 767px) {
  .revisao-modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .revisao-modal-actions .button {
    width: 100%;
  }
}

/* Confirmar troca de inscricao - buttons stack on mobile */
@media (max-width: 767px) {
  .confirmar-troca-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .confirmar-troca-actions .control {
    width: 100%;
  }
  .confirmar-troca-actions .control .button {
    width: 100%;
  }
}

/* Ações da confirmação de inscrição */
.inscricao-sucesso-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.inscricao-sucesso-actions > a,
.inscricao-sucesso-actions > form,
.inscricao-sucesso-actions > form > button {
  width: 100%;
  height: 100%;
}

.inscricao-sucesso-actions .button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.inscricao-sucesso-actions .button:focus-visible {
  outline: 3px solid rgba(16, 64, 108, 0.4);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .inscricao-sucesso-actions {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
  }

  .inscricao-sucesso-actions .button {
    min-height: 48px;
  }
}

/* ===== Minhas Inscrições ===== */
.inscricoes-page {
  max-width: 60rem;
  margin: 0 auto;
}

/* Summary bar */
.inscricoes-summary {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.inscricoes-summary-card {
  flex: 1;
  min-width: 7rem;
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  border-top: 3px solid #dbdbdb;
}

.inscricoes-summary-card.is-total {
  border-top-color: #10406c;
}

.inscricoes-summary-card.is-aprovadas {
  border-top-color: #40885c;
}

.inscricoes-summary-card.is-pendentes {
  border-top-color: #3e8ed0;
}

.inscricoes-summary-card.is-convocados {
  border-top-color: #10406c;
}

.inscricoes-summary-card.is-encerradas {
  border-top-color: #f14668;
}

.inscricoes-summary-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 0.15rem;
}

.inscricoes-summary-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a4a4a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Table */
.inscricoes-table-desktop .box {
  padding: 0;
  overflow: hidden;
}

.inscricoes-table-desktop .table-container {
  border-radius: 6px;
}

.inscricoes-table-desktop .table th {
  background-color: #f5f5f5;
  color: #4a4a4a;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #10406c;
  padding: 0.75rem 0.75rem;
  white-space: nowrap;
}

.inscricoes-table-desktop .table td {
  padding: 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
}

.inscricoes-table-desktop .table tbody tr:hover {
  background-color: #fafafa;
}

.inscricao-numero {
  font-weight: 600;
  color: #10406c;
  font-size: 0.85rem;
  white-space: nowrap;
}

.inscricao-ano {
  color: #7a7a7a;
  font-size: 0.8rem;
}

.inscricao-data {
  white-space: nowrap;
  color: #4a4a4a;
}

/* Status tags — override is-light for solid contrast */
.inscricoes-page .tag.inscricao-status-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  height: auto;
  min-height: 1.5rem;
  white-space: normal;
  line-height: 1.3;
}

.inscricoes-page .tag.is-success.is-light.inscricao-status-tag {
  background-color: #40885c;
  color: #fff;
}

.inscricoes-page .tag.is-info.is-light.inscricao-status-tag {
  background-color: #3e8ed0;
  color: #fff;
}

.inscricoes-page .tag.is-warning.is-light.inscricao-status-tag {
  background-color: #ffe08a;
  color: #1a1a1a;
}

.inscricoes-page .tag.is-danger.is-light.inscricao-status-tag {
  background-color: #f14668;
  color: #fff;
}

/* Mobile cards */
.inscricoes-cards-mobile {
  display: none;
}

.inscricao-card-mobile {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.inscricao-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  gap: 0.5rem;
}

.inscricao-card-numero {
  font-weight: 700;
  color: #10406c;
  font-size: 0.85rem;
}

.inscricao-card-body {
  padding: 0.75rem 1rem;
}

.inscricao-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.3rem 0;
  gap: 0.5rem;
}

.inscricao-card-row + .inscricao-card-row {
  border-top: 1px solid #f5f5f5;
}

.inscricao-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a7a7a;
  flex-shrink: 0;
}

.inscricao-card-value {
  font-size: 0.85rem;
  color: #1a1a1a;
  text-align: right;
}

.inscricao-card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #f0f0f0;
}

/* Empty state */
.inscricoes-empty {
  text-align: center;
  padding: 4rem 1.5rem;
}

.inscricoes-empty-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 2rem;
  color: #7a7a7a;
}

.inscricoes-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

.inscricoes-empty-text {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0 0 0.25rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.inscricoes-empty-hint {
  font-size: 0.85rem;
  color: #7a7a7a;
  margin: 0 0 1.5rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 767px) {
  .inscricoes-table-desktop { display: none; }
  .inscricoes-cards-mobile { display: block; }

  .inscricoes-summary {
    gap: 0.5rem;
  }

  .inscricoes-summary-card {
    min-width: calc(50% - 0.25rem);
    padding: 0.75rem 1rem;
  }

  .inscricoes-summary-value {
    font-size: 1.35rem;
  }
}

@media (min-width: 768px) {
  .inscricoes-cards-mobile { display: none; }
}

/* ===== Detalhes da Inscrição (Candidato) ===== */
.inscricao-detail-header {
  background: #fff;
  border-radius: 8px;
  border-top: 3px solid #10406c;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.inscricao-detail-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.inscricao-detail-justificativa {
  font-size: 0.85rem;
  color: #4a4a4a;
  font-style: italic;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: #fffdf5;
  border-radius: 4px;
  border-left: 3px solid #ffe08a;
}

.inscricao-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

@media (max-width: 480px) {
  .inscricao-detail-grid {
    grid-template-columns: 1fr;
  }
}

.inscricao-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.inscricao-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inscricao-detail-value {
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.inscricao-detail-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1rem;
}

.inscricao-detail-section .title.is-5 {
  margin-bottom: 1rem;
}

.inscricao-detail-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
  color: #7a7a7a;
}

.inscricao-detail-empty i {
  font-size: 1.1rem;
  color: #dbdbdb;
}

/* Side menu (inscricao detail) */
.menu-inscricao {
  padding: 0.75rem;
}

.menu-inscricao-header {
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.menu-inscricao-nome {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-wrap: balance;
}

.menu-inscricao-linha {
  margin-top: 0.5rem;
}

.menu-inscricao-rotulo {
  display: block;
  font-size: 0.7rem;
  color: #7a7a7a;
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

.menu-inscricao-valor {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.menu-inscricao-tag {
  margin-top: 0.15rem;
}

/* ===== Histórico da Inscrição (Candidato) ===== */
.historico-header {
  margin-bottom: 1.25rem;
}

.historico-header .title {
  margin-bottom: 0.5rem;
}

.historico-introducao {
  color: #4a4a4a;
  line-height: 1.5;
  max-width: 48rem;
}

.historico-aviso-publicacao {
  line-height: 1.5;
  margin-bottom: 1rem;
}

.historico-surface {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #10406c;
  border-radius: 8px;
  overflow: hidden;
}

.historico-table-wrap {
  width: 100%;
}

.table-historico-logs {
  margin-bottom: 0;
  table-layout: fixed;
}

.table-historico-logs th:nth-child(1) {
  width: 10.5rem;
}

.table-historico-logs th:nth-child(2) {
  width: 12rem;
}

.table-historico-logs th:nth-child(3) {
  width: 13rem;
}

.table-historico-logs th,
.table-historico-logs td {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.table-historico-logs td {
  vertical-align: top;
}

.historico-mobile-label {
  display: none;
}

.historico-empty {
  align-items: center;
  color: #4a4a4a;
  display: flex;
  gap: 0.75rem;
  line-height: 1.5;
  min-height: 8rem;
  padding: 1.5rem;
}

.historico-empty .icon {
  color: #7a7a7a;
  flex: 0 0 auto;
}

@media (max-width: 1023px) {
  .historico-layout {
    display: block;
  }

  .historico-menu-column,
  .historico-content-column {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .historico-surface {
    border-radius: 6px;
  }

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

  .table-historico-logs thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .table-historico-logs tbody tr {
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
  }

  .table-historico-logs tbody tr:first-child {
    border-top: 0;
  }

  .table-historico-logs tbody tr:not(:last-child) {
    margin-bottom: 0;
  }

  .table-historico-logs tbody td {
    border: 0;
    padding: 0.5rem 0;
  }

  .historico-mobile-label {
    color: #4a4a4a;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: normal;
    margin-bottom: 0.2rem;
    text-transform: none;
  }

  .historico-empty {
    align-items: flex-start;
    min-height: 0;
    padding: 1.25rem 1rem;
  }
}

/* ===== Meus Documentos (Candidato) ===== */
.documento-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: #7a7a7a;
  background: #fafafa;
  border-radius: 6px;
}

.documento-empty i {
  font-size: 1.25rem;
  color: #dbdbdb;
}

.documento-section-title {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.documento-section-title + .table-container {
  margin-bottom: 1.5rem;
}

.documento-nome {
  margin-bottom: 0.15rem;
}

.documento-descricao {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin-bottom: 0.35rem;
}

.documento-arquivo-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.documento-arquivo-nome {
  font-size: 0.8rem;
  color: #4a4a4a;
  word-break: break-all;
}

/* Documentos table — mobile cards */
@media (max-width: 767px) {
  .table-documentos thead {
    display: none;
  }
  .table-documentos tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }
  .table-documentos tbody tr td {
    border: none;
    padding: 0.25rem 0;
  }
  .table-documentos td:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
  }
  .table-documentos td:nth-child(1)::before {
    content: "Documento";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
  .table-documentos td:nth-child(2)::before {
    content: "Situação";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
  .table-documentos td:nth-child(3)::before {
    content: "Ações";
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
  }
  .table-documentos .documento-arquivo-info {
    flex-wrap: wrap;
  }
}

/* Formulario table — mobile cards */
@media (max-width: 767px) {
  .table-documentos-form thead { display: none; }
  .table-documentos-form tbody tr {
    display: flex; flex-direction: column;
    border: 1px solid #dbdbdb; border-radius: 6px;
    margin-bottom: 0.75rem; padding: 0.75rem;
  }
  .table-documentos-form tbody tr td { border: none; padding: 0.25rem 0; }
  .table-documentos-form td:not(:last-child) { border-bottom: 1px solid #f0f0f0; margin-bottom: 0.5rem; }
  .table-documentos-form td:nth-child(1)::before { content: "Nº"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-documentos-form td:nth-child(2)::before { content: "Documento"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-documentos-form td:nth-child(3)::before { content: "Situação"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
  .table-documentos-form td:nth-child(4)::before { content: "Ação"; display: block; font-size: 0.7rem; font-weight: 600; color: #7a7a7a; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.15rem; }
}

.documento-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.documento-status-ok {
  color: #40885c;
}

.documento-status-pendente {
  color: #7a7a7a;
}

/* Enviar Documento */
.enviar-documento-header {
  margin-bottom: 1rem;
}

.enviar-documento-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.enviar-documento-preview {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #1a1a1a;
}

.enviar-documento-preview .icon {
  color: #40885c;
}

/* ===== Notas e Classificação (Candidato) ===== */
.nota-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.nota-empty i {
  font-size: 1.5rem;
  color: #7a7a7a;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.nota-empty p {
  margin: 0;
}

.nota-empty-hint {
  font-size: 0.85rem;
  color: #7a7a7a;
  margin-top: 0.25rem;
}

.nota-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  padding: 1.25rem;
  border-top: 3px solid #dbdbdb;
  height: 100%;
}

.nota-card-objetiva {
  border-top-color: #10406c;
}

.nota-card-titulos {
  border-top-color: #3e8ed0;
}

.nota-card-final {
  border-top-color: #40885c;
}

.nota-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  margin: 0 0 0.5rem;
}

.nota-card-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
}

.nota-card-max {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin: 0;
}

.nota-card-nao-usada {
  font-size: 0.85rem;
  font-style: italic;
  color: #7a7a7a;
  margin: 0;
}

.nota-posicao {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #10406c;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  background: #eff5fb;
  border-radius: 100em;
  vertical-align: middle;
}

.nota-lancamento {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin: 0.75rem 0 0;
}

/* Barema */
.nota-barema {
  background: #fffdf5;
  border-top: 3px solid #ffb300;
  border-radius: 8px;
  padding: 1rem 1rem 0.5rem;
}

.nota-barema-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  margin-bottom: 0.5rem;
}

.nota-barema-table th {
  font-size: 0.7rem;
}

.nota-barema-header th {
  background-color: #f0f0f0;
  font-weight: 600;
}

.nota-barema-th-num {
  width: 15%;
  text-align: center;
}

.nota-barema-td-num {
  text-align: center;
}

.nota-barema-tfoot td {
  background-color: #f0f0f0;
  font-weight: 700;
}

.nota-barema-total-label {
  text-align: right;
}

.nota-barema-total-valor {
  text-align: center;
  color: #3273dc;
}

/* Histórico de ajustes */
.nota-historico {
  background: #fafafa;
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-top: 1rem;
}

.nota-historico .title.is-5 {
  margin-bottom: 1rem;
}

.nota-historico-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nota-historico-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nota-historico-rotulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a4a4a;
  min-width: 5rem;
}

.nota-historico-valor {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.nota-historico-seta {
  color: #7a7a7a;
  font-size: 0.85rem;
}

/* Classificação */
.nota-classificacao-table th {
  font-size: 0.8rem;
}

.nota-class-th-pos {
  width: 60px;
}

.nota-class-th-nota {
  width: 120px;
  text-align: right;
}

.nota-class-td-pos {
  font-weight: 700;
  text-align: center;
}

.nota-class-td-nota {
  text-align: right;
  font-weight: 700;
}

.nota-class-destaque {
  background-color: #eff5fb !important;
}

.nota-class-destaque td {
  color: #10406c;
}

/* ===== Recursos (Candidato) ===== */
.pre-wrap {
  white-space: pre-wrap;
}

.recurso-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  padding: 1.25rem;
  border-top: 3px solid #dbdbdb;
  height: 100%;
}

.recurso-card-disabled {
  opacity: 0.65;
}

.recurso-card-inscricao {
  border-top-color: #10406c;
}

.recurso-card-nota {
  border-top-color: #3e8ed0;
}

.recurso-card-geral {
  border-top-color: #7a7a7a;
}

.recurso-periodo {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin-top: 0.5rem;
}

.recurso-periodo i {
  margin-right: 0.25rem;
}

.recurso-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
  color: #7a7a7a;
}

.recurso-empty i {
  font-size: 1.1rem;
  color: #dbdbdb;
}

.recurso-decisao {
  background: #f5faff;
  border-top: 3px solid #3e8ed0;
  border-radius: 8px;
  padding: 1.25rem;
}

.recurso-decisao .title.is-6 {
  color: #3e8ed0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.recurso-notas-ajuste {
  background: #fafafa;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.recurso-notas-ajuste p {
  margin-bottom: 0.25rem;
}

.recurso-notas-ajuste p:last-child {
  margin-bottom: 0;
}

.recurso-notas-ajuste .icon {
  color: #7a7a7a;
}

/* Recursos Aplicados */
.recurso-info-callout {
  background: #eff5fb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #1d72aa;
  line-height: 1.5;
}

.recurso-info-callout p {
  margin: 0;
}

.recurso-info-callout p + p {
  margin-top: 0.25rem;
}

.recurso-aplicados-list .title.is-5 {
  margin-bottom: 1rem;
}

.recurso-aplicado-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
  overflow: hidden;
}

.recurso-aplicado-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.recurso-aplicado-tipo {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  margin: 0 0 0.15rem;
}

.recurso-aplicado-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.recurso-aplicado-corpo {
  padding: 1rem 1.25rem 1.25rem;
}

.recurso-aplicado-corpo .heading {
  margin-bottom: 0.15rem;
}

.recurso-aplicado-descricao {
  margin-top: 0.75rem;
}

.recurso-aplicado-docs {
  margin-top: 0.75rem;
}

/* Convocações */
.convocacao-icon {
  font-size: 3rem;
}

.convocacao-icon .fa-check-circle {
  color: #40885c;
}

.convocacao-icon .fa-user-slash {
  color: #ffe08a;
}

/* ===== Home Page (Public) ===== */
.home-page {
  max-width: 56rem;
  margin: 0 auto;
}

.home-header {
  margin-bottom: 1.5rem;
}

.home-header .subtitle {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: #4a4a4a;
}

.home-search {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

.home-search .field.has-addons {
  margin-bottom: 0;
}

.home-counter {
  font-size: 0.85rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.home-card {
  border-top: 3px solid #10406c;
  border-radius: 8px;
  overflow: hidden;
}

.home-card .card-header {
  box-shadow: none;
  border-bottom: 1px solid #f0f0f0;
}

.home-card .card-header-title {
  font-weight: 600;
  font-size: 1rem;
}

.home-card .card-content {
  padding: 1rem 1.25rem;
}

.home-card .card-footer {
  border-top: 1px solid #f0f0f0;
  padding: 0.5rem 1rem;
  justify-content: flex-end;
  align-items: center;
}

.home-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.home-empty i {
  font-size: 1.5rem;
  color: #7a7a7a;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.home-empty p {
  margin: 0;
}

.home-empty-hint {
  font-size: 0.85rem;
  color: #7a7a7a;
  margin-top: 0.25rem;
}

/* ====================================
   Termo de Uso e Aviso de Privacidade
   ==================================== */
.privacidade-title {
    color: #10406c;
}

.privacidade-shield {
    color: #40885c;
}

.privacidade-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 2rem;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.privacidade-toc-item {
    font-size: 0.875rem;
    line-height: 1.5;
}

.privacidade-toc-link {
    color: #10406c;
    text-decoration: none;
    transition: color 0.15s ease;
}

.privacidade-toc-link:hover {
    color: #0d3456;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacidade-toc-header {
    grid-column: 1 / -1;
    font-weight: 600;
    color: #10406c;
    font-size: 0.8125rem;
}

.privacidade-toc-header-mt {
    grid-column: 1 / -1;
    font-weight: 600;
    color: #10406c;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.privacidade-section {
    scroll-margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.privacidade-section h2 {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #10406c;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.privacidade-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.privacidade-section p,
.privacidade-section li {
    line-height: 1.65;
}

.privacidade-section .table thead th {
    background: #f0f4f8;
    border-bottom-width: 2px;
    border-bottom-color: #10406c;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #10406c;
    text-transform: none;
    letter-spacing: normal;
}

.privacidade-part-title {
    color: #10406c;
}

.privacidade-part-title-mt {
    color: #10406c;
    margin-top: 2rem;
}

.privacidade-divider {
    margin: 2.5rem 0;
    border: none;
    border-top: 2px solid #10406c;
    opacity: 0.15;
}

.privacidade-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: #5a5a5a;
}

.privacidade-meta strong {
    font-weight: 600;
}

.privacidade-intro {
    font-size: 1rem;
    line-height: 1.65;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.privacidade-dpo-box {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.privacidade-dpo-box .dpo-header {
    margin-bottom: 0.75rem;
}

.privacidade-dpo-box .dpo-name {
    font-size: 1rem;
    font-weight: 700;
    color: #10406c;
}

.privacidade-dpo-box .dpo-portaria {
    font-size: 0.8125rem;
    color: #5a5a5a;
}

.privacidade-dpo-box .dpo-contact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.privacidade-dpo-box .dpo-contact a {
    color: #10406c;
    text-decoration: none;
}

.privacidade-dpo-box .dpo-contact a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacidade-dpo-box .dpo-contact i {
    width: 1.25rem;
    color: #10406c;
}

.privacidade-dpo-box .dpo-portal {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.privacidade-dpo-box .dpo-portal a {
    color: #10406c;
    font-weight: 500;
    text-decoration: none;
}

.privacidade-dpo-box .dpo-portal a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 768px) {
    .privacidade-toc {
        grid-template-columns: 1fr;
    }

    .privacidade-divider {
        margin: 1.5rem 0;
    }
}
