/* bloco b2 · Compras, Orçamento, Contratos, Equipe, Materiais (prefixo b2-) */

/* textos auxiliares em células */
.b2-sub { display: block; font-size: 11.5px; color: var(--ink-muted); margin-top: 3px; line-height: 1.3; font-weight: 400; max-width: 260px; }
.b2-sub--al, .b2-al { color: var(--alert); }
.b2-mono { font: 500 12px var(--font-mono); color: var(--ink-muted); }
.b2-nota { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-muted); margin: 12px 0 0; line-height: 1.45; }
.b2-nota b { color: var(--ink); font-weight: 500; }
.b2-obr { display: block; font-size: 13px; line-height: 1.4; max-width: 300px; color: var(--ink-muted); }
.b2-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.b2-priv { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 2px 9px; border-radius: 99px; background: var(--purple-tint); color: var(--purple-ink); font-size: 12px; font-weight: 500; vertical-align: 1px; white-space: nowrap; }

/* faixa de filtros/regras acima dos quadros */
.b2-kfil { padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b2-regras { display: flex; flex-wrap: wrap; gap: 8px; }
.b2-regras span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 10px; background: var(--surface-sunken); font-size: 12.5px; color: var(--ink-muted); }
.b2-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.b2-sw input { display: none; }
.b2-sw span { width: 36px; height: 20px; border-radius: 99px; background: var(--surface-strong); position: relative; transition: background .2s; }
.b2-sw span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.b2-sw input:checked + span { background: var(--purple); } .b2-sw input:checked + span::after { left: 18px; }
.b2-kc__v { font: 500 15px var(--font-sans, inherit); letter-spacing: -.2px; margin: 2px 0 6px; }
.b2-kc__v small { display: block; font: 400 11.5px var(--font-mono); color: var(--ink-faint); margin-top: 2px; }

/* linha do tempo (andamento da compra / envio) */
.b2-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.b2-tl__i { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 0 0 18px; }
.b2-tl__i:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line-strong); }
.b2-tl__i.is-ok:not(:last-child)::before { background: var(--mint-strong); }
.b2-tl__d { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 500 12.5px var(--font-mono); background: var(--surface-sunken); color: var(--ink-faint); box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; z-index: 1; }
.b2-tl__i.is-ok .b2-tl__d { background: var(--mint-strong); color: #0b2b16; box-shadow: none; }
.b2-tl__i.is-agora .b2-tl__d { background: var(--purple); color: #fff; box-shadow: 0 0 0 5px var(--purple-tint); }
.b2-tl__i.is-trava .b2-tl__d { background: var(--alert); color: #fff; box-shadow: 0 0 0 5px #fdebe4; font-weight: 700; }
.b2-tl__b { flex: 1; min-width: 0; padding-top: 5px; }
.b2-tl__b > b { display: block; font-weight: 500; font-size: 14.5px; }
.b2-tl__i.is-fut .b2-tl__b > b { color: var(--ink-muted); font-weight: 400; }
.b2-tl__b > small { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; line-height: 1.4; }
.b2-tl__i.is-agora .b2-tl__b, .b2-tl__i.is-trava .b2-tl__b { padding: 10px 14px 14px; margin-top: -4px; border-radius: 14px; background: var(--purple-tint); }
.b2-tl__i.is-trava .b2-tl__b { background: #fdebe4; }
.b2-tl__a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.b2-tl__i > .mv-av { margin-top: 3px; }

/* saldo antes / depois */
.b2-saldo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--surface-sunken); margin: 4px 0 14px; }
.b2-saldo > div small { display: block; font-size: 12px; color: var(--ink-muted); }
.b2-saldo > div b { font-size: 19px; font-weight: 500; letter-spacing: -.3px; }
.b2-saldo > span { color: var(--ink-faint); }
.b2-saldo > div.is-neg b { color: var(--alert); }
.b2-ad > small { display: block; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 4px; }
.b2-kv { margin-top: 12px; }

/* mini tabela dentro de card */
.b2-mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.b2-mini th { text-align: left; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-faint); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.b2-mini td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.b2-mini .num { text-align: right; font-variant-numeric: tabular-nums; }
.b2-mini--l td { padding: 13px 8px; }
.b2-mini tr.is-now td { background: var(--purple-tint); }

/* opções e cotações no passo a passo */
.b2-opts3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b2-cots { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.b2-cot { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--line-strong); color: var(--ink-muted); font-size: 13px; }
.b2-cot.is-on { border-style: solid; border-color: var(--mint-strong); background: var(--mint-tint); color: var(--mint-ink); }
.b2-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 8px 0; cursor: pointer; }
.b2-check small { font-size: 12px; }
.b2-checks { max-height: 320px; overflow: auto; padding-right: 4px; }
.b2-ents { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.b2-ent { display: grid; grid-template-columns: 28px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 10px; align-items: end; }
.b2-ent .k-f { margin-bottom: 8px; }
.b2-ent__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); font: 500 12px var(--font-mono); margin-bottom: 17px; }
.b2-ent .k-dots { margin-bottom: 14px; font-size: 18px; }

/* orçamento */
.b2-pilha { height: 12px; }
.b2-leg { margin-top: 10px; flex-wrap: wrap; }
.b2-pilhas { display: flex; flex-direction: column; gap: 4px; }
.b2-pl { display: grid; grid-template-columns: 240px minmax(0, 1fr) 190px; gap: 16px; align-items: center; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; }
.b2-pl:hover { background: var(--surface-sunken); }
.b2-pl b { font: 500 12px var(--font-mono); color: var(--ink-faint); margin-right: 4px; }
.b2-pl em { font-style: normal; font: 400 12px var(--font-mono); color: var(--ink-muted); text-align: right; white-space: nowrap; }
.b2-pago { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.b2-pago span { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.b2-pago i { font-style: normal; font: 400 11.5px var(--font-mono); color: var(--ink-muted); }
.b2-big { font-size: 34px; font-weight: 500; letter-spacing: -1px; line-height: 1.1; margin-bottom: 8px; }
.b2-big small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); margin-top: 4px; }
.b2-cond { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.b2-cond > b { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.b2-etapas { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.b2-etapas span { width: 18px; height: 6px; border-radius: 4px; background: var(--surface-strong); }
.b2-etapas span.ok { background: var(--mint-strong); } .b2-etapas span.on { background: var(--purple); }
.b2-etapas b { font-size: 12.5px; font-weight: 500; margin-left: 6px; }

/* equipe */
.b2-horas { display: flex; flex-direction: column; gap: 5px; min-width: 70px; align-items: flex-end; }
.b2-horas .mv-bar { width: 70px; height: 5px; }
.b2-avs { display: flex; align-items: center; }
.b2-avs .mv-av { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface-raised); }
.b2-avs span { margin-left: 14px; font-size: 12.5px; color: var(--ink-muted); }
.b2-raci-leg { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; padding: 0 4px; }
.b2-raci-leg span { display: inline-flex; align-items: center; gap: 6px; }
.b2-rc { width: 34px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font: 600 12.5px var(--font-mono); color: var(--ink-faint); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .1s; }
span.b2-rc { cursor: default; width: 26px; height: 24px; }
button.b2-rc:hover { transform: scale(1.08); box-shadow: inset 0 0 0 1.5px var(--purple-300); }
.b2-rc.is-R { background: var(--purple); color: #fff; box-shadow: none; }
.b2-rc.is-A { background: var(--ink); color: #fff; box-shadow: none; }
.b2-rc.is-C { background: var(--mint-tint); color: var(--mint-ink); box-shadow: inset 0 0 0 1px var(--mint-strong); }
.b2-rc.is-I { background: var(--surface-strong); color: var(--ink-muted); }
.b2-rc.is-foco { outline: 2px solid var(--orange); outline-offset: 1px; }
#kt-eq-raci .k-t td, #kt-eq-raci .k-t th { padding-left: 6px; padding-right: 6px; text-align: center; }
#kt-eq-raci .k-t td:nth-child(2), #kt-eq-raci .k-t th:nth-child(2) { text-align: left; min-width: 260px; }

/* organograma */
.b2-orgcard { overflow: hidden; }
.b2-org { position: relative; display: grid; grid-template-columns: max-content max-content; justify-content: space-between; gap: 40px; overflow-x: auto; padding: 8px 4px 16px; }
.b2-org__svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.b2-org__svg path { fill: none; stroke: var(--purple); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: .75; }
.b2-org__svg circle { fill: var(--purple); }
.b2-org__svg text { font: 500 10.5px var(--font-mono); fill: var(--purple-ink); paint-order: stroke; stroke: var(--surface-raised); stroke-width: 4px; }
.b2-org__lado { position: relative; z-index: 1; }
.b2-org__lado > h4 { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 0 0 14px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-muted); }
.b2-org__lado.is-cu > h4 { color: var(--orange); }
.b2-tree, .b2-tree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.b2-tree ul { padding-top: 16px; position: relative; }
.b2-tree li { position: relative; padding: 16px 3px 0; display: flex; flex-direction: column; align-items: center; }
.b2-tree > li { padding-top: 0; }
.b2-tree li::before, .b2-tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 16px; border-top: 1.5px solid var(--line-strong); }
.b2-tree li::after { right: auto; left: 50%; border-left: 1.5px solid var(--line-strong); }
.b2-tree li:only-child::before, .b2-tree li:only-child::after, .b2-tree > li::before, .b2-tree > li::after { display: none; }
.b2-tree li:only-child { padding-top: 16px; }
.b2-tree li:only-child::after { display: block; border-top: 0; width: 0; left: 50%; }
.b2-tree > li:only-child { padding-top: 0; } .b2-tree > li:only-child::after { display: none; }
.b2-tree li:first-child::before, .b2-tree li:last-child::after { border: 0 none; }
.b2-tree li:last-child::before { border-right: 1.5px solid var(--line-strong); border-radius: 0 8px 0 0; }
.b2-tree li:first-child::after { border-radius: 8px 0 0 0; }
.b2-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 16px; border-left: 1.5px solid var(--line-strong); }
.b2-oc { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; width: 138px; padding: 7px 8px; border-radius: 14px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(0,0,0,.04); text-align: left; cursor: pointer; }
.b2-oc:hover { box-shadow: inset 0 0 0 1.5px var(--purple-300), 0 4px 12px rgba(0,0,0,.06); }
.b2-oc.is-cu { box-shadow: inset 0 0 0 1px rgba(255,138,61,.45); }
.b2-oc.is-par { box-shadow: inset 0 0 0 1.5px var(--purple-300); }
.b2-oc.is-vago { background: var(--surface-sunken); box-shadow: inset 0 0 0 1.5px var(--line-strong); border: 1.5px dashed var(--orange); }
.b2-oc__t { min-width: 0; display: flex; flex-direction: column; }
.b2-oc__t b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-oc__t small { font-size: 11px; color: var(--ink-muted); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b2-oc__v { font-style: normal; font-size: 11px; font-weight: 500; color: var(--orange); margin-top: 2px; }
.b2-oc--leaf { width: 138px; padding: 6px 9px; border-radius: 12px; }
.b2-leaves { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; padding-left: 12px; border-left: 1.5px solid var(--line-strong); position: relative; }

@media (max-width: 1200px) { .b2-opts3 { grid-template-columns: 1fr; } .b2-pl { grid-template-columns: 1fr; gap: 4px; } }
.b2-nw { white-space: nowrap; }
