/* ==========================================================================
   INGRA — Processos: cards da lista, stepper "Fase do processo" e vínculos
   ========================================================================== */

/* Cards do topo da lista */
.ig-proc-resumo { gap: 16px; }
.ig-proc-resumo a.ig-card { text-decoration: none; }
.ig-proc-meta-de { font-size: 15px; font-weight: 700; color: var(--ig-muted); margin-left: 4px; }
.ig-proc-link { color: var(--ig-link, #006699); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ig-card .ig-proc-link { color: var(--ig-accent); }
.ig-proc-bars { height: 170px; }
.ig-proc-bars a.ig-bar-col { text-decoration: none; }
.ig-proc-bars a.ig-bar-col:hover .ig-bar-fill { filter: brightness(1.15); }
.ig-proc-bars .ig-bar-lbl { text-align: center; line-height: 1.2; min-height: 2.4em; }

/* Stepper "Fase do processo" */
.ig-fase {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: linear-gradient(160deg, #01324e 0%, #001b29 100%);
    border: 1px solid rgba(45, 212, 234, .16); border-radius: 20px; padding: 18px 20px; color: var(--ig-ink, #eaf7fc);
    box-shadow: 0 18px 40px -24px rgba(0, 54, 80, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ig-fase-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ig-fase-titulo { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 700; }
.ig-fase-etapa { font-size: 12.5px; color: var(--ig-muted, #8fb9cd); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ig-fase-etapa strong { color: #fff; font-weight: 700; }
.ig-fase-cliente {
    display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ig-accent, #2dd4ea); background: rgba(45, 212, 234, .1); border: 1px solid rgba(45, 212, 234, .25); border-radius: 999px; padding: 3px 8px;
}
.ig-fase-ic-sm { width: 13px; height: 13px; }

.ig-fase-trilha { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.ig-fase-passo { position: relative; }
.ig-fase-passo::before {
    content: ''; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px;
    background: rgba(255, 255, 255, .1); z-index: 0;
}
.ig-fase-passo:first-child::before { display: none; }
.ig-fase-passo.feito::before,
.ig-fase-passo.atual::before { background: linear-gradient(90deg, #006699, #2dd4ea); box-shadow: 0 0 10px rgba(45, 212, 234, .4); }
.ig-fase-passo button {
    position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: none; border: 0; padding: 0 2px; cursor: pointer; font: inherit; color: inherit;
}
.ig-fase-bolha {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #02263b; border: 2px solid rgba(143, 185, 205, .35); color: rgba(234, 247, 252, .6);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ig-fase-ic { width: 18px; height: 18px; }
.ig-fase-nome { font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ig-muted, #8fb9cd); }
.ig-fase-passo button:hover .ig-fase-bolha { transform: translateY(-2px); border-color: var(--ig-accent, #2dd4ea); }
.ig-fase-passo.feito .ig-fase-bolha { background: rgba(45, 212, 234, .14); border-color: rgba(45, 212, 234, .55); color: var(--ig-accent, #2dd4ea); }
.ig-fase-passo.atual .ig-fase-bolha {
    background: var(--ig-accent, #2dd4ea); border-color: var(--ig-accent, #2dd4ea); color: #001b29;
    box-shadow: 0 0 0 5px rgba(45, 212, 234, .18), 0 0 20px rgba(45, 212, 234, .5);
}
.ig-fase-passo.atual .ig-fase-nome { color: #fff; }
.ig-fase-passo.interna .ig-fase-bolha { border-style: dashed; }

.ig-fase-datas {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0 0; padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.ig-fase-datas div { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 12px; }
.ig-fase-datas dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ig-muted, #8fb9cd); }
.ig-fase-datas dd { margin: 2px 0 0; font-size: 14px; font-weight: 800; color: #fff; }
.ig-fase-datas div.vazio dd { color: rgba(143, 185, 205, .5); }

@media (max-width: 900px) {
    .ig-fase-trilha { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
    .ig-fase-passo::before { display: none; }
}

/* Processos vinculados */
.ig-vinc { display: flex; flex-direction: column; gap: 14px; }
.ig-vinc-grupo { display: flex; flex-direction: column; gap: 8px; }
.ig-vinc-rotulo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ig-text-2, #64748b); }
.ig-vinc-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; text-decoration: none;
    background: var(--ig-surface-2, #f8fafc); border: 1px solid rgba(0, 102, 153, .14); color: var(--ig-text, #0f2a3d); transition: border-color .15s ease, background .15s ease;
}
.ig-vinc-item:hover { border-color: #2dd4ea; background: var(--ig-surface-brand, #eef6fb); }
.ig-vinc-item span { display: flex; flex-direction: column; min-width: 0; }
.ig-vinc-item strong { font-size: 13.5px; }
.ig-vinc-item small { font-size: 12px; color: var(--ig-text-2, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-vinc-ic { width: 18px; height: 18px; color: var(--ig-link, #006699); flex: none; }
.ig-vinc-vazio { font-size: 13px; color: var(--ig-text-2, #64748b); margin: 0; }
