/* Fase 9 — Layout: nav no header, Obra em abas, hero Orçamento */

/* —— Nav compacto no header —— */
.f9-hdr-step{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;padding:6px 4px;min-height:36px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.95);cursor:pointer;font-family:inherit;font-size:12px;font-weight:700;letter-spacing:.2px;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.15s}
.f9-hdr-step.active{background:var(--amber);color:#1a2332;border-color:var(--amber);box-shadow:0 1px 6px rgba(0,0,0,.12)}
.f9-hdr-step.done{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35)}
.f9-hdr-step.f9-hdr-sep{margin-left:2px;border-left:2px solid rgba(255,255,255,.35)}
@media(max-width:720px){
 .f9-hdr-step{flex:0 0 auto;min-width:58px;max-width:88px;padding:5px 6px;font-size:10px;min-height:32px}
}
@media(min-width:721px) and (max-width:960px){
 .f9-hdr-step{font-size:11px;padding:5px 3px;min-height:34px}
}

/* —— Legado fases (não usado na barra; mantido se referenciado) —— */
.f9-phases{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0 8px 6px}
.f9-phase{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;padding:8px 4px;border:1.5px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);cursor:pointer;font-family:inherit;transition:.15s}
.f9-phase-ico{font-size:16px;line-height:1;flex-shrink:0}
.f9-phase-lab{font-size:10px;font-weight:700;letter-spacing:.2px;text-align:center;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.f9-phase.active{background:var(--amber);color:#1a2332;border-color:var(--amber);box-shadow:0 2px 8px rgba(0,0,0,.15)}
.f9-phase.done{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.45)}
.f9-substeps{padding-top:0;padding-bottom:8px;min-height:60px}
.f9-substeps.f9-phases{grid-template-columns:repeat(3,1fr)}
.f9-substep-spacer{min-height:52px;pointer-events:none;visibility:hidden}
.f9-substep.active{background:var(--amber);color:#1a2332;border-color:var(--amber);box-shadow:0 2px 8px rgba(0,0,0,.15)}
.f9-substep.done{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.45)}
@media(max-width:720px){
 .f9-phase-lab{font-size:9px}
 .steps-dots{display:none}
}

/* —— Obra: 3 abas —— */
.f9-obra-nav{background:var(--card);border:1.5px solid var(--line);border-radius:14px;padding:10px;margin-bottom:12px;box-shadow:0 1px 3px rgba(20,30,50,.06)}
.f9-obra-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.f9-obra-tab{padding:12px 8px;border:1.5px solid var(--navy);border-radius:10px;background:#eef3fb;font-size:14px;font-weight:700;color:var(--navy);cursor:pointer;font-family:inherit;text-align:center;line-height:1.3;transition:.15s}
.f9-obra-tab.active{background:#eef3fb;color:var(--navy);border-color:var(--navy);box-shadow:inset 0 -3px 0 var(--amber);font-weight:800}
.f9-obra-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding-top:4px;flex-wrap:wrap}
.f9-obra-foot .btn{width:auto;min-width:120px;flex:1;max-width:200px}

/* —— Orçamento: hero —— */
.f9-resumo-hero{margin-bottom:12px;padding:16px!important;background:linear-gradient(135deg,#fff 0%,#eef3fb 100%);border:1.5px solid rgba(31,56,100,.15)!important}
.f9-resumo-lab{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.35px}
.f9-resumo-val{font-size:28px;font-weight:800;color:var(--navy);line-height:1.15;margin:4px 0 2px}
.f9-resumo-sub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f9-resumo-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.f9-resumo-btns .btn{margin:0;font-size:13px;padding:11px 10px}
@media(max-width:520px){.f9-resumo-btns{grid-template-columns:1fr}}

/* Hub compacto */
.f9-hub .f8-acc-sum{padding:12px 14px;font-size:13px}
.f9-hub .f8-acc-hint{font-size:10px}

/* —— Serviços: subcategoria + adicionar manual —— */
.f9-subhead{display:flex;align-items:center;gap:8px;padding:8px 10px;margin:8px 0 4px;background:#f4f6f9;border-left:3px solid #1f3864;border-radius:0 6px 6px 0;font-size:12.5px;font-weight:700;color:#1f3864}
.f9-subhead-tit{flex:1;min-width:0}
.f9-subhead-meta{font-size:11px;color:#6b7686;font-weight:600;white-space:nowrap}
.f9-subhead-add{flex-shrink:0;padding:4px 10px;border:1px solid var(--navy);border-radius:6px;background:#fff;color:var(--navy);font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;transition:.15s}
.f9-subhead-add:hover{background:#eef3fb}
.f9-addserv-wrap{margin:6px 0 10px;padding:4px 0;text-align:center}
.f9-addserv-btn{padding:6px 14px;border:1.5px solid var(--navy);border-radius:8px;background:#fff;color:var(--navy);font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
.f9-addserv-btn:hover{background:#eef3fb}
.f9-addserv-form{margin:6px 0 12px;padding:12px;background:#eef3fb;border:2px dashed var(--navy);border-radius:8px}
.f9-addserv-form-tit{font-size:12.5px;font-weight:700;color:var(--navy);margin-bottom:6px}
.f9-addsub-wrap{display:flex;justify-content:flex-end;padding:8px 12px 10px}
.f9-addsub-btn{padding:6px 12px;border:1px solid var(--navy);border-radius:8px;background:var(--navy);color:#fff;font-size:11.5px;font-weight:700;cursor:pointer;font-family:inherit;transition:.15s;white-space:nowrap}
.f9-addsub-btn:hover{background:var(--navy2);border-color:var(--navy2)}
.f9-addsub-form{margin:6px 0 12px;padding:12px;background:#eef3fb;border:2px dashed var(--navy);border-radius:8px}
.f9-addsub-form-tit{font-size:12.5px;font-weight:700;color:var(--navy);margin-bottom:6px}
