.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.page-header__title {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading);
}

.page-header__icon {
  color: var(--brand-700);
}

.page-header__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

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

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.section-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

.section-card__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.94rem;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.page-title {
  margin: 0 0 .35rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading);
}

.page-title__icon {
  color: var(--brand-700);
}

.page-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: .96rem;
}

.page-toolbar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.section-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.section-card,
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem !important;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: .45rem;
  flex-wrap: wrap;
}

.row-link {
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.row-link:hover {
  background: var(--surface-soft);
  transform: translateX(-3px);
}

/* =========================
   HEADER DO WIZARD DO RDO
   (usa as classes atuais do _header.html)
========================= */

.rdo-wizard-header {
  --wizard-accent: #2563eb;
  --wizard-accent-strong: #1d4ed8;
  --wizard-accent-soft: rgba(37, 99, 235, 0.12);
  --wizard-accent-soft-2: rgba(37, 99, 235, 0.18);
  --wizard-track: rgba(148, 163, 184, 0.32);
  --wizard-done: #198754;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.rdo-wizard-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.rdo-wizard-titulo {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}

.rdo-wizard-subtitulo {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.rdo-wizard-contador {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.rdo-wizard-atual-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.rdo-wizard-atual {
  min-width: 260px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wizard-accent-soft), var(--wizard-accent-soft-2));
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.10);
  color: var(--wizard-accent-strong);
  text-align: center;
}

.rdo-wizard-atual .numero {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wizard-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex: 0 0 36px;
}

.rdo-wizard-atual .titulo {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.rdo-wizard-acoes {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rdo-wizard-acoes .btn {
  min-width: 150px;
}

.rdo-wizard-progresso-wrap {
  margin-top: 18px;
  position: relative;
  padding: 10px 4px 0;
}

.rdo-wizard-trilho {
  position: relative;
  height: 8px;
  background: var(--wizard-track);
  border-radius: 999px;
  overflow: visible;
}

.rdo-wizard-preenchido {
  height: 8px;
  background: var(--wizard-accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.rdo-wizard-marcadores {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.rdo-wizard-marcador {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid #cbd5e1;
  box-shadow: 0 0 0 2px var(--surface);
  transition: all 0.2s ease;
}

.rdo-wizard-marcador.done {
  background: var(--wizard-done);
  border-color: var(--wizard-done);
}

.rdo-wizard-marcador.active {
  width: 22px;
  height: 22px;
  background: #fff;
  border-color: var(--wizard-accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.rdo-wizard-marcador.todo {
  background: var(--surface);
  border-color: #cbd5e1;
}

/* DARK MODE */
html[data-theme="dark"] .rdo-wizard-header {
  --wizard-track: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .rdo-wizard-atual {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.22));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

html[data-theme="dark"] .rdo-wizard-marcador {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px var(--surface);
}

html[data-theme="dark"] .rdo-wizard-marcador.todo {
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .rdo-wizard-marcador.active {
  background: #eaf2ff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.22);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .rdo-wizard-header {
    padding: 14px;
    border-radius: 16px;
  }

  .rdo-wizard-topo {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .rdo-wizard-titulo {
    font-size: 1.08rem;
  }

  .rdo-wizard-subtitulo {
    font-size: 0.88rem;
  }

  .rdo-wizard-contador {
    font-size: 0.9rem;
  }

  .rdo-wizard-atual-wrap {
    margin-top: 12px;
    justify-content: flex-start;
  }

  .rdo-wizard-atual {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    gap: 8px;
    border-radius: 14px;
    justify-content: flex-start;
  }

  .rdo-wizard-atual .numero {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    font-size: 0.92rem;
  }

  .rdo-wizard-atual .titulo {
    font-size: 0.98rem;
    white-space: normal;
  }

  .rdo-wizard-acoes {
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .rdo-wizard-acoes .btn {
    width: 100%;
    min-width: 0;
  }

  .rdo-wizard-progresso-wrap {
    margin-top: 14px;
  }

  .rdo-wizard-trilho,
  .rdo-wizard-preenchido {
    height: 7px;
  }

  .rdo-wizard-marcador {
    width: 15px;
    height: 15px;
    border-width: 2px;
  }

  .rdo-wizard-marcador.active {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 575.98px) {
  .page-header__title {
    font-size: 1.3rem;
  }

  .form-actions,
  .page-actions {
    width: 100%;
  }

  .form-actions .btn,
  .page-actions .btn {
    width: 100%;
  }
}

