/* Funções novas (cronograma, portal do cliente, qualidade, compras, CRM, pós-venda). */
.gantt { position: relative; border: 1px solid var(--borda, #e5e7eb); border-radius: 10px; overflow: hidden; background: var(--fundo-cartao, #fff); }
.gantt-cab { position: relative; height: 28px; border-bottom: 1px solid var(--borda, #e5e7eb); margin-left: 34%; font-size: 12px; color: var(--texto-suave, #64748b); }
.gantt-mes { position: absolute; top: 6px; padding-left: 4px; border-left: 1px solid var(--borda, #e5e7eb); white-space: nowrap; }
.gantt-linha { display: grid; grid-template-columns: 34% 1fr; align-items: center; min-height: 44px; border-bottom: 1px solid var(--borda, #f1f5f9); }
.gantt-linha:last-child { border-bottom: 0; }
.gantt-nome { padding: 6px 10px; font-size: 13px; line-height: 1.3; overflow: hidden; }
.gantt-nome small { display: block; color: var(--texto-suave, #64748b); }
.gantt-trilho { position: relative; height: 44px; }
.gantt-barra { position: absolute; height: 10px; border-radius: 6px; }
.gantt-prev { top: 9px; background: #cbd5e1; }
.gantt-real { top: 23px; background: #16a34a; }
.gantt-linha.atrasada .gantt-real { background: #dc2626; }
.gantt-linha.concluida .gantt-real { background: #2563eb; }
.gantt-hoje { position: absolute; top: 0; bottom: 0; width: 2px; background: #f59e0b; z-index: 2; }
.gantt-legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; margin-top: 8px; color: var(--texto-suave, #64748b); }
.gantt-legenda i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.leg-prev { background: #cbd5e1; } .leg-real { background: #16a34a; } .leg-atraso { background: #dc2626; } .leg-ok { background: #2563eb; } .leg-hoje { background: #f59e0b; width: 3px !important; }
.avanco-pct { width: 70px; }
.barra-h { height: 10px; border-radius: 6px; background: var(--fundo-suave, #f1f5f9); overflow: hidden; }
.barra-h > span { display: block; height: 100%; background: #16a34a; }
.barra-h.ponderado > span { background: #2563eb; }
.mapa-comp td.menor { background: #dcfce7; font-weight: 700; }
.mapa-comp td.vazio-c { color: var(--texto-suave, #94a3b8); }
.mapa-comp input { width: 110px; }
.nps-notas { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.nps-notas label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--borda, #cbd5e1); border-radius: 10px; cursor: pointer; font-weight: 700; }
.nps-notas input { position: absolute; opacity: 0; pointer-events: none; }
.nps-notas input:checked + span { color: #fff; }
.nps-notas label:has(input:checked) { background: #16a34a; border-color: #16a34a; color: #fff; }
.pub-cartao { max-width: 760px; margin: 24px auto; padding: 0 16px; }
.pub-cartao .cartao { margin-bottom: 16px; }
.fotos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fotos-grade img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.resp-insp select { min-width: 150px; }
.alerta-baixo { color: #dc2626; font-weight: 700; }
@media (max-width: 700px) {
  .gantt-linha { grid-template-columns: 40% 1fr; }
  .gantt-cab { margin-left: 40%; }
}
