
/*MENU RECOLHIDO: 96px na barra, e o conteudo acompanha*/
html[data-sidebar="colapsada"] .sidebar {
  width: 96px;
}

html[data-sidebar="colapsada"] .header {
  left: 96px;
}

html[data-sidebar="colapsada"] .conteudo {
  margin-left: 96px;
}

html {
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  scrollbar-color: #e5e5e5 transparent;
  scrollbar-width: thin;
}

/*display NA CLASSE VENCE O [hidden] DO NAVEGADOR: ISSO DEVOLVE A PRIORIDADE*/
[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #e5e5e5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #8a8a8a;
}

body {
  background-color: #f4f4f5;
  color: #1a1a1a;
  min-height: 100vh;
  display: flow-root;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 20%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    circle at top left,
    #5e141d 0%,
    #dd5b12 100%
  );
  background-size: 160% 160%;
  animation: login-fundo-respira 16s ease-in-out infinite;
  border-right: 0;
}

.sidebar__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #5a5a5a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.sidebar__link:hover {
  background-color: #f4f4f5;
}

.sidebar__link--ativo {
  background-color: #f4f4f5;
  color: #1a1a1a;
  font-weight: 600;
}

.sidebar__link-icone {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar__topo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 84px;
  /*MESMO RECUO DO CABECALHO DO INDEX: A LOGO CAI NA MESMA COLUNA*/
  padding: 0 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

/*O <a> inline em volta da logo ganha o espaco do descendente da linha e
  empurra a imagem 4px para cima. Como flex, ele cola na imagem.*/
.sidebar__logo-link {
  display: flex;
  align-items: center;
}

html[data-sidebar="colapsada"] .sidebar__topo {
  padding: 25px 16px;
  gap: 8px;
  justify-content: center;
}

html[data-sidebar="colapsada"] .sidebar__link-texto {
  display: none;
}

/*RECOLHER: NO RODAPE DA SIDEBAR, MESMO PADRAO DO PAINEL
  (.painel-nav__colapsar em painel.css) e da Base (base.css).*/
.sidebar__espaco {
  flex: 1;
}

.sidebar__colapsar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar__colapsar:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sidebar__colapsar svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

html[data-sidebar="colapsada"] .sidebar__colapsar svg {
  transform: rotate(180deg);
}

html[data-sidebar="colapsada"] .sidebar__colapsar {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

html[data-sidebar="colapsada"] .sidebar__colapsar-texto {
  display: none;
}

html[data-sidebar="colapsada"] .sidebar__link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

html[data-sidebar="colapsada"] .sidebar__menu {
  padding: 16px 8px;
}

.header {
  position: fixed;
  top: 0;
  left: 20%;
  right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #ececec;
  z-index: 900;
}

/* ==========================================================================
   ACOES DO CABECALHO: FOTO, NOME, MENU E SAIR
   Mesma estrutura do .topo do resto do site (index.css), com estilo
   proprio aqui — igual ao mesmo bloco em base.css.
   ========================================================================== */

.topo__acoes {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 50px;
}

.topo__perfil {
  position: relative;
}

.topo__usuario {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.topo__usuario:hover {
  background-color: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 26, 26, 0.08);
}

.topo__usuario:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

.topo__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  flex-shrink: 0;
  border-radius: 4px;
  background-color: #dd5b12;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #fff;
  overflow: hidden;
}

/*FOTO DE PERFIL: PREENCHE O QUADRADO SEM DISTORCER*/
.topo__avatar-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topo__usuario-texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.topo__usuario-nome {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #1a1a1a;
}

.topo__usuario-setor {
  font-size: 0.6875rem;
  color: #dd5b12;
}

.topo__usuario-seta {
  color: #8a8a8a;
  transition: transform 0.2s ease;
}

.topo__usuario[aria-expanded="true"] .topo__usuario-seta {
  transform: rotate(180deg);
}

/*MENU DO PERFIL*/
.topo__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  min-width: 12.5rem;
  padding: 0.375rem;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.12);
}

.topo__menu--aberto {
  display: block;
  animation: topo-menu-abre 0.18s ease-out;
}

@keyframes topo-menu-abre {
  from {
    opacity: 0;
    transform: translateY(-0.375rem);
  }
}

.topo__menu-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topo__menu-item svg {
  color: #8a8a8a;
  transition: color 0.2s ease;
}

.topo__menu-item:hover {
  background-color: #f5f5f5;
}

.topo__menu-item:hover svg {
  color: #dd5b12;
}

.topo__menu-divisor {
  display: block;
  height: 1px;
  margin: 0.3125rem 0.25rem;
  background-color: #ececec;
}

/*ITEM COM INTERRUPTOR (Notificações): mesma regra de index.css/portal.css,
  replicada aqui porque nova-solucao.css não herda de index.css.*/
.topo__menu-item--interruptor {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.topo__menu-item--interruptor span:not(.topo__menu-interruptor) {
  flex: 1;
}

.topo__menu-interruptor {
  position: relative;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1rem;
  border-radius: 999px;
  background-color: #e5e5e5;
  transition: background-color 0.15s ease;
}

.topo__menu-interruptor::before {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.25);
  transition: transform 0.15s ease;
}

.topo__menu-item--interruptor[aria-checked="true"] .topo__menu-interruptor {
  background-color: #dd5b12;
}

.topo__menu-item--interruptor[aria-checked="true"] .topo__menu-interruptor::before {
  transform: translateX(0.75rem);
}

/*SAIR*/
.topo__sair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 4px;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.topo__sair:hover {
  background-color: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 26, 26, 0.08);
}

.topo__sair:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .topo__usuario,
  .topo__usuario:hover,
  .topo__usuario:active,
  .topo__sair,
  .topo__sair:hover,
  .topo__sair:active {
    transition: none;
    transform: none;
  }

  .topo__menu--aberto {
    animation: none;
  }
}

.sidebar__logo {
 width: 8.25rem;
  height: auto;
}

html[data-sidebar="colapsada"] .sidebar__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

html[data-sidebar="colapsada"] .sidebar__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.conteudo {
  margin-left: 20%;
  margin-top: 84px;
}

.text-header {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 25px 50px;
}

/* Nova solução */

.registro-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 20px;
}

.registro-secao-titulo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.registro-secao-titulo__texto {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

.registro-secao-titulo__ajuda {
  font-size: 12px;
  color: #8a8a8a;
}

.tipo-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tipo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  background-color: #ffffff;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tipo-card:hover {
  border-color: #8a8a8a;
}

.tipo-card--ativo {
  border-color: #dd5b12;
  box-shadow: 0 0 0 3px rgba(221, 91, 18, 0.1);
}

.tipo-card[data-tipo="erro"].tipo-card--ativo {
  border-color: #b02a2a;
  background-color: #fdeceb;
  box-shadow: none;
}

.tipo-card[data-tipo="procedimento"].tipo-card--ativo {
  border-color: #2f9e44;
  background-color: #eaf7ee;
  box-shadow: none;
}

.tipo-card__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.tipo-card__icone svg {
  width: 16px;
  height: 16px;
}

.tipo-card__icone--erro {
  background-color: #fdeceb;
  color: #b02a2a;
}

.tipo-card__icone--procedimento {
  background-color: #eaf7ee;
  color: #2f9e44;
}

.tipo-card__titulo {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.tipo-card__descricao {
  font-size: 11px;
  color: #5a5a5a;
  line-height: 1.4;
}

.registro-vazio {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  color: #8a8a8a;
  font-size: 13px;
}

.registro-vazio svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.registro-direita {
  position: sticky;
  top: calc(84px + 24px);
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
}

.publicacao-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.publicacao-titulo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

.publicacao-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f0f0f1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #5a5a5a;
}

.publicacao-status__ponto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #8a8a8a;
}

.publicacao-divisor {
  border-top: 1px solid #e5e5e5;
  margin: 16px 0;
}

.publicacao-campo {
  margin-bottom: 18px;
}

.publicacao-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

/*SETORES: FECHADO PARECE UM SELECT; CLICANDO ABRE A LISTA DE CHECKBOXES*/
.setores-dropdown {
  position: relative;
}

.setores-dropdown__botao {
  display: block;
  text-align: left;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.setores-dropdown__texto {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.setores-dropdown__texto--vazio {
  color: #8a8a8a;
}

.setores-dropdown__painel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 4px;
}

.setores-dropdown__todos {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: none;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: #5a5a5a;
  text-align: left;
  cursor: pointer;
}

.setores-dropdown__todos:hover {
  color: #1a1a1a;
}

.setores-dropdown__lista {
  max-height: 220px;
  overflow-y: auto;
}

.setor-opcao {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
  user-select: none;
}

.setor-opcao:hover {
  background-color: #f4f4f5;
}

.setor-opcao input {
  margin: 0;
  accent-color: #1a1a1a;
  cursor: pointer;
}

/*CONTRIBUINTE FORA DO PROPRIO ALCANCE: a caixa fica visivel e legivel (nao
  soma da lista), so nao clicavel — o texto acinzentado e o cursor mudo sao
  o que avisam que aquele setor nao esta disponivel para esta pessoa.*/
.setor-opcao--travada {
  color: #94a3b8;
  cursor: not-allowed;
}

.setor-opcao--travada:hover {
  background-color: transparent;
}

.setor-opcao--travada input {
  cursor: not-allowed;
}

.publicacao-campo-linha {
  display: flex;
  gap: 8px;
}

.publicacao-select {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background-color: #ffffff;
  cursor: pointer;
}

select.publicacao-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.publicacao-add {
  flex-shrink: 0;
  width: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #ffffff;
  color: #5a5a5a;
  font-size: 16px;
  cursor: pointer;
}

.publicacao-add:hover {
  background-color: #f4f4f5;
}

.publicacao-input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/*AUTOR: texto, não campo — vem da conta de quem cadastra e não se digita.
  Sem borda nem fundo, para não parecer um input desabilitado.*/
.publicacao-autor {
  margin: 0;
  padding: 9px 0;
  font-size: 14px;
  color: #1a1a1a;
}

.publicacao-input:focus {
  border-color: #dd5b12;
  box-shadow: 0 0 0 3px rgba(221, 91, 18, 0.1);
}

.publicacao-input::placeholder {
  color: #8a8a8a;
}

.publicacao-novo-item {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.publicacao-novo-item[hidden] {
  display: none;
}

.publicacao-novo-item .publicacao-select {
  cursor: text;
}

.btn-secundario-pequeno {
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #5a5a5a;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secundario-pequeno:hover {
  background-color: #f4f4f5;
}

.publicacao-erro {
  font-size: 12px;
  color: #b02a2a;
  margin-bottom: 10px;
}

.publicacao-erro:empty {
  display: none;
}

.publicacao-btn {
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
}

.publicacao-btn--principal {
  border: none;
  background-color: #dd5b12;
  color: #ffffff;
}

.publicacao-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.publicacao-btn--principal:hover {
  background-color: #c24f00;
}

.publicacao-btn--secundario {
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
  color: #1a1a1a;
}

.publicacao-btn--secundario:hover {
  background-color: #f4f4f5;
}


/* Campos do registro por tipo */

.registro-campos {
  margin-top: 24px;
}

.campo-em-construcao {
  color: #8a8a8a;
  font-size: 14px;
}

.campo-titulo {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.campo-titulo-input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.campo-titulo-input::placeholder {
  color: #1a1a1a;
  opacity: 0.35;
}

.campo-grupo {
  margin-bottom: 20px;
}

.campo-label {
  display: block;
  font-size: 13px;
  color: #5a5a5a;
  margin-bottom: 8px;
}

.campo-input,
.campo-textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background-color: #ffffff;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.campo-input:focus,
.campo-textarea:focus {
  border-color: #dd5b12;
  box-shadow: 0 0 0 3px rgba(221, 91, 18, 0.1);
}

.campo-input--codigo {
  font-family: "Courier New", Courier, monospace;
}

.campo-linha-dupla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tags-campo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 10px;
}

.tags-campo:focus-within {
  border-color: #dd5b12;
  box-shadow: 0 0 0 3px rgba(221, 91, 18, 0.1);
}

.tag-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f0f0f1;
  border-radius: 6px;
  padding: 4px 6px 4px 10px;
  font-size: 13px;
  color: #1a1a1a;
}

.tag-chip__remover {
  border: none;
  background: none;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.tag-chip__remover:hover {
  color: #b02a2a;
}

.tags-input {
  flex: 1;
  min-width: 100px;
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  color: #1a1a1a;
}

.tags-input::placeholder {
  color: #8a8a8a;
}


/* Passo a passo */

.passo-a-passo {
  margin-bottom: 20px;
}

.passo-a-passo__cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.passo-a-passo__titulo {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.passo-a-passo__dica {
  font-size: 12px;
  color: #8a8a8a;
}

.passos-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

.passo-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
}

.passo-card--arrastando {
  opacity: 0.4;
}

.passo-card__topo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.passo-card__handle {
  flex-shrink: 0;
  width: 18px;
  height: 24px;
  color: #8a8a8a;
  cursor: grab;
}

.passo-card__handle svg {
  width: 100%;
  height: 100%;
}

.passo-card__texto {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
}

.passo-card__texto::placeholder {
  color: #8a8a8a;
}

.passo-card__rodape {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 28px;
}

.passo-card__numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #f0f0f1;
  color: #5a5a5a;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.passo-card__anexar {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: #5a5a5a;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.passo-card__anexar svg {
  width: 15px;
  height: 15px;
}

.passo-card__anexar:hover {
  color: #c24f00;
}

.passo-card__anexar:disabled {
  color: #8a8a8a;
  cursor: not-allowed;
}

.passo-card__remover {
  border: none;
  background: none;
  color: #5a5a5a;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.passo-card__remover:hover {
  color: #b02a2a;
}

.passo-card__imagens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-left: 28px;
}

.passo-card__imagem-item {
  position: relative;
  width: 110px;
  height: 80px;
}

.passo-card__imagem-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.passo-card__imagem-remover {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: #b02a2a;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.passo-card__imagem-remover:hover {
  background-color: #a81f1f;
}

.btn-adicionar-passo {
  border: 1.5px dashed #e5e5e5;
  background: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #5a5a5a;
  font-family: inherit;
  cursor: pointer;
}

.btn-adicionar-passo:hover {
  border-color: #dd5b12;
  color: #c24f00;
}

/* Anexos */

.anexos-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px dashed #e5e5e5;
  border-radius: 10px;
  padding: 24px 16px;
  font-size: 13px;
  color: #8a8a8a;
  cursor: pointer;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.anexos-dropzone:hover,
.anexos-dropzone--sobre {
  border-color: #dd5b12;
  background-color: rgba(221, 91, 18, 0.1);
}

.anexos-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #c24f00;
  text-decoration: underline;
  cursor: pointer;
}

.anexos-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.anexo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 10px;
}

.anexo-item__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: #f0f0f1;
  color: #8a8a8a;
}

.anexo-item__icone svg {
  width: 16px;
  height: 16px;
}

.anexo-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.anexo-item__nome {
  font-size: 13px;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anexo-item__barra {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background-color: #f4f4f5;
  overflow: hidden;
}

.anexo-item__progresso {
  width: 0%;
  height: 100%;
  background-color: #dd5b12;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.anexo-item__remover {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #8a8a8a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.anexo-item__remover:hover {
  color: #b02a2a;
}

/* Soluções relacionadas */

.vincular-campo {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
}

.vincular-campo:focus-within {
  border-color: #dd5b12;
  box-shadow: 0 0 0 3px rgba(221, 91, 18, 0.1);
}

.vincular-icone {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #5a5a5a;
}

.vincular-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 13px;
  color: #1a1a1a;
}

.vincular-input::placeholder {
  color: #8a8a8a;
}

.relacionadas-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.vincular-resultados {
  margin-top: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background-color: #ffffff;
  max-height: 200px;
  overflow-y: auto;
}

.vincular-resultados[hidden] {
  display: none;
}

.vincular-resultado-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  background: none;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
  cursor: pointer;
}

.vincular-resultado-item:last-child {
  border-bottom: none;
}

.vincular-resultado-item:hover {
  background-color: #f4f4f5;
}

.vincular-resultados__vazio {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  color: #8a8a8a;
}

.relacionada-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e5e5;
  background-color: #f0f0f1;
  border-radius: 10px;
  padding: 8px 12px;
}

.relacionada-item__titulo {
  font-size: 13px;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relacionada-item__remover {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.relacionada-item__remover:hover {
  color: #b02a2a;
}

.campo-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  margin-top: 28px;
}

.campo-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #dd5b12;
  cursor: pointer;
}


/* ==========================================================================
   TIPOGRAFIA DO PROJETO: POPPINS NO CORPO, SORA NOS TITULOS
   ========================================================================== */

.text-header,
.solucao-card__titulo,
.solucao-card__autor,
.solucao-card__avatar,
.painel__titulo,
.painel__secao-titulo,
.campo-titulo-input,
.confirmar-modal__titulo,
.tipo-card__titulo,
.registro-secao-titulo__texto,
.publicacao-titulo,
.passo-a-passo__titulo,
.publicacao-btn {
  font-family: "Sora", system-ui, sans-serif;
}

/* ==========================================================================
   SIDEBAR: TOPO BRANCO, CORPO NO DEGRADE
   ========================================================================== */

/*O @keyframes estava so no login.css: sem ele aqui, o fundo ficava parado.*/
@keyframes login-fundo-respira {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 60%; }
}

.sidebar {
  border-right: 0;
}

/*A FAIXA DA LOGO ACOMPANHA O CABECALHO: MESMO BRANCO, MESMA LINHA EMBAIXO*/
.sidebar__topo {
  background-color: #ffffff;
  border-bottom-color: #e5e5e5;
  /*RISCO QUE SEPARA O BOTAO DE RECOLHER DO TITULO DA PAGINA*/
  border-right: 1px solid #e5e5e5;
}

/*O botao de recolher mudou de lugar — saiu do topo branco e foi pro
  rodape da faixa laranja (mesmo padrao do Painel/Base, ver o bloco
  .sidebar__colapsar mais acima neste arquivo). O hover "botao Entrar do
  login" so fazia sentido sobre fundo branco; sobre o degrade la embaixo
  ele nao se aplica mais — o estilo padrao (fundo transparente, texto
  claro) definido acima ja resolve.*/

/*DO MENU PARA BAIXO E LARANJA: OS CINZAS DO TEMA SOMEM, O TEXTO VIRA CLARO*/
.sidebar__link {
  color: rgba(255, 255, 255, 0.82);
}

.sidebar__link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/*SELECIONADO: MESMO BOTAO DO LOGIN E DO INICIO (COR, BRILHO E SUBIDA NO HOVER)*/
.sidebar__link--ativo {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background-color: #c77240;
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar__link--ativo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.sidebar__link--ativo:hover::before {
  animation: sidebar-brilho 0.7s ease;
}

@keyframes sidebar-brilho {
  from { left: -60%; }
  to { left: 130%; }
}

.sidebar__link--ativo:hover {
  background-color: #b0602f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(199, 114, 64, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .sidebar__link--ativo:hover {
    transform: none;
  }

  .sidebar__link--ativo:hover::before {
    animation: none;
  }
}
