/* Entrega — projetos, cronograma e presença */

/* ---- lista de projetos ---------------------------------------------- */
.proj-item {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 4px; border-bottom: 1px solid var(--border-soft); cursor: pointer;
}
.proj-item:last-child { border-bottom: none; }
.proj-item:hover { background: var(--surface-2); }
.proj-info { flex: 1; min-width: 0; }
.proj-nome { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.proj-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* A barra é a leitura de relance: quanto do que foi vendido já foi entregue. */
.proj-barra {
  height: 5px; background: var(--surface-3); border-radius: 3px;
  overflow: hidden; margin: 9px 0 6px;
}
.proj-preenchido { height: 100%; background: var(--brand); border-radius: 3px; transition: width .3s; }
.proj-numeros { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--text-faint); }
.proj-pct {
  flex-shrink: 0; font-size: 24px; font-weight: 800;
  color: var(--brand); letter-spacing: -1px;
}

/* ---- detalhe do projeto --------------------------------------------- */
.proj-topo-num {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px; background: var(--surface-2); border-radius: var(--r); padding: 16px;
}
.proj-topo-num > div { text-align: center; }
.proj-topo-num b {
  display: block; font-size: 19px; font-weight: 800;
  color: var(--brand); letter-spacing: -.5px;
}
.proj-topo-num span { font-size: 11px; color: var(--text-faint); }

.bloco-tit {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted); margin: 22px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* ---- cronograma ------------------------------------------------------ */
.enc-lista { display: flex; flex-direction: column; gap: 8px; }
.enc-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--r); padding: 12px 14px;
}
.enc-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--r);
  background: var(--brand); color: var(--brand-contraste);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.enc-corpo { flex: 1; min-width: 0; }
.enc-titulo { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.enc-horas {
  font-size: 11px; background: var(--surface-3); color: var(--text-muted);
  padding: 2px 7px; border-radius: var(--r); font-weight: 600;
}
.enc-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.enc-tops { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
.enc-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--text-faint); }
.enc-data {
  background: var(--surface-3); border: 1px solid var(--border-soft);
  color: var(--text); border-radius: var(--r); padding: 4px 8px; font-size: 12px;
  font-family: inherit;
}

/* ---- turma e presença ------------------------------------------------ */
.part-lista { display: flex; flex-wrap: wrap; gap: 7px; }
.part-item {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--r); padding: 7px 12px; font-size: 12.5px;
  display: flex; align-items: baseline; gap: 8px;
}
.part-cargo { font-size: 11px; color: var(--text-faint); }

.pres-lista {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 320px; overflow-y: auto; margin-bottom: 10px;
}
.pres-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r); cursor: pointer; font-size: 13px;
}
.pres-item:hover { background: var(--surface-2); }
.pres-atalhos { display: flex; gap: 6px; margin-bottom: 4px; }

/* ---- certificados: apuração antes da emissão ---- */
.cert-lista { margin-top: 6px; max-height: 420px; overflow-y: auto; }
.cert-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px; border-bottom: 1px solid var(--border);
}
.cert-item:last-child { border-bottom: none; }
.cert-corpo { flex: 1; min-width: 0; }
.cert-nome { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.cert-meta { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.cert-selo {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r);
}
.cert-selo.ok  { background: var(--green-bg); color: var(--green); }
.cert-selo.apto { background: var(--orange-bg); color: var(--orange); }
.cert-selo.nao { background: var(--surface-3); color: var(--text-faint); }
.aviso-caixa {
  background: var(--orange-bg); border: 1px solid var(--brand); color: var(--brand);
  padding: 12px 15px; border-radius: var(--r); font-size: 13px; line-height: 1.6; margin: 4px 0 14px;
}
