/* ═══ 4.3 · revisão da Joana de 21/10: orçamento, preços e produtos, lista de orçamentos ═══ */
/* passo 1 · cliente: mais baixo, lista de clientes sobreposta (não empurra a página) */
.card.c43{padding-top:10px;padding-bottom:12px}
.card.c43 .ch{margin-bottom:6px;align-items:center}
.cf43 .lbl{font-size:10.5px;margin-bottom:3px}
.cf43 .inp{min-height:34px;padding-top:5px;padding-bottom:5px}
.cf43a{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px}
.cf43b{display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:10px;align-items:start;margin-top:8px}
.cf43b .opts.one .opt{min-height:34px;padding:4px 10px}
.cf43 #cli_nome,.cf43 #nc_nome{font-weight:600}
.cf43c{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:10px;align-items:end;margin-top:8px}
.cf43c.um{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.cf43c .lbl{font-size:10.5px;margin-bottom:3px}
.cf43c .inp{min-height:34px}
.cf43c #cliGo{min-height:36px;white-space:nowrap}
.hw43{position:relative}
.hits43{position:absolute;left:0;top:calc(100% + 4px);z-index:60;width:max(100%,660px);max-width:calc(100vw - 280px);max-height:330px;overflow:auto;background:#fff;border:1px solid var(--bd);border-radius:10px;box-shadow:0 14px 34px rgba(19,40,41,.16);padding:4px}
.hits43:empty{display:none}
.hh43{font-size:11px;color:var(--mu);padding:5px 9px 4px}
.h43{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;width:100%;text-align:left;border:0;background:none;border-radius:8px;padding:6px 9px;cursor:pointer;color:var(--tx)}
.h43:hover,.h43.on{background:#eef4f4}
.h43 .av{width:28px;height:28px;border-radius:50%;background:#e4eded;color:#2b696e;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
.h43 .av svg.i40{width:14px;height:14px}
.h43t{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.h43t b{font-size:13px;color:var(--ink);font-weight:600}
.h43t em,.h43t i{font-style:normal;font-size:11.5px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h43t i{font-size:11px;color:#5f6d6f}
.h43 .go{font-size:11.5px;font-weight:600;color:var(--ac);white-space:nowrap}
.cn43{font-size:11.5px;color:var(--mu);display:inline-flex;align-items:center;gap:5px;margin-left:12px;font-weight:400;letter-spacing:0;text-transform:none}
.cn43[hidden]{display:none}
.cn43 b{color:var(--ink);font-weight:600}
.cn43.ok{color:#2b696e}
.cn43 svg.i40{width:13px;height:13px}
.card.done.c43d{padding-top:8px;padding-bottom:8px}
.card.done.c43d .sumtx{font-size:12.5px}
.card.done.c43d .cn43{margin-left:6px}
/* passo 2 · trabalho: medidas, opções e quantidade no fim */
.er43{margin-top:6px;font-size:12px;color:#b03a2e;font-weight:600}
.er43:empty,.er43[hidden]{display:none}
.totbar.t43{margin-top:10px;display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.totbar.t43 .q43 .lbl{margin-bottom:3px}
.totbar.t43 .q43 .step .inp{width:72px;text-align:center;min-height:36px}
.totbar.t43 .tv43{display:flex;flex-direction:column;gap:1px;margin-right:auto}
.totbar.t43 .tv43>span{font-size:11.5px;color:var(--mu)}
.totbar.t43 .tv43 b{font-family:var(--disp);font-size:22px;color:var(--ink)}
.btn.dis43{opacity:.45}
.opt .ol small,.opt small{font-weight:500}
/* preços e produtos: opções editáveis */
.oe43w{display:flex;flex-direction:column;gap:10px}
.oe43n{font-size:11.5px;color:var(--mu);background:var(--sf2);border-radius:8px;padding:6px 10px}
.oe43{border:1px solid var(--bd);border-radius:10px;padding:8px 10px;background:#fff}
.oe43h{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.oe43h b{font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--tit,#1d4c4f)}
.oe43h .mu{font-size:11px}
.oe43h .btn{margin-left:auto}
.oe43r{display:flex;align-items:center;gap:6px;padding:3px 0;flex-wrap:wrap}
.oe43r+.oe43r{border-top:1px dashed var(--bd)}
.oe43r .inp.sm43,.lim43 .inp.sm43,.oe43 select.sm43{min-height:30px;padding:3px 8px;font-size:12.5px;width:auto;flex:1 1 140px;min-width:0}
.inp.sm43.w70{flex:0 0 76px;width:76px;text-align:right}
.inp.sm43.w80{flex:0 0 86px;width:86px}
.inp.sm43.w90{flex:0 0 120px;width:120px}
.inp.sm43.mono{font-family:ui-monospace,Consolas,monospace;text-transform:uppercase}
.oe43r .mu.xs{white-space:nowrap}
.oe43r .btn.ib{flex:none}
.cp43{width:34px;height:30px;border:1px solid var(--bd);border-radius:7px;padding:2px;background:#fff;cursor:pointer;flex:none}
.lim43{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.lim43>span{display:flex;align-items:center;gap:6px;font-size:12.5px;flex-wrap:wrap}
.lim43>span b{min-width:110px;font-weight:600;color:var(--ink)}
.std43{display:flex;flex-direction:column;gap:2px;margin-top:6px;align-items:flex-start}
.std43 .oe43r{width:100%}
.oe43g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
@media (max-width:1100px){.oe43g{grid-template-columns:1fr}}
/* lista de orçamentos: indicadores, filtros no cabeçalho, ações em ícones */
.lt43{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;margin-bottom:10px}
.kpi43{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
button.kp.k43{text-align:left;cursor:pointer;font:inherit;color:inherit;padding:5px 12px 6px}
button.kp.k43 b{font-size:16px}
button.kp.k43 em{font-size:11px}
button.kp.k43:hover{border-color:var(--k)}
button.kp.k43.on{background:color-mix(in srgb,var(--k) 9%,#fff);border-color:var(--k);box-shadow:inset 0 0 0 1px var(--k)}
.lt43r{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;gap:6px}
.lt43r .mu{white-space:nowrap}
.lt43r .lnk42{font-size:11.5px}
.fx43{display:inline-flex;align-items:center;gap:4px;font-size:11px;background:#fdf3e2;color:#8a5a14;border-radius:10px;padding:1px 8px;margin-left:6px}
.tab.l43 .tr{font-size:12.5px;gap:8px;padding-left:12px;padding-right:12px}
.tab.l43 .tr.cl{min-height:44px}
.th.th43{padding-top:5px;padding-bottom:5px;overflow:visible}
.thf43{appearance:none;-webkit-appearance:none;border:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%237a857e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center;font:inherit;font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--mu);cursor:pointer;padding:3px 13px 3px 2px;max-width:100%;min-width:0;border-radius:6px;outline:none}
.thf43:hover{color:var(--ink);background-color:#fff}
.thf43.on{color:#1d4c4f;background-color:#deefef;padding-left:6px;text-transform:none;letter-spacing:0;font-size:11.5px}
.thf43.r{justify-self:end}
.thf43 option{text-transform:none;letter-spacing:0;font-weight:500;color:var(--tx)}
.thq43{display:flex;align-items:center;gap:5px;min-width:0;border-radius:6px;padding:0 6px 0 2px}
.thq43 svg.i40{width:13px;height:13px;color:var(--mu);flex:none}
.thq43 input{border:0;background:transparent;font:inherit;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink);min-width:0;width:100%;padding:3px 0;outline:none}
.thq43 input::placeholder{color:var(--mu)}
.thq43 input:not(:placeholder-shown){text-transform:none;letter-spacing:0;font-size:12px}
.thq43:focus-within,.thq43:has(input:not(:placeholder-shown)){background:#fff;box-shadow:0 0 0 1px var(--bd)}
.n43{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.n43 b{font-size:11.5px;font-weight:600;color:var(--ink);white-space:nowrap;letter-spacing:-.01em}
.n43 span{font-size:11px;color:var(--mu)}
.tab.l43 .d.c43 b{font-size:12.5px}
.tab.l43 .d.c43 span{font-size:11.5px}
.tab.l43 .t43{font-size:12.5px;color:var(--ink)}
.tab.l43 .stsel{font-size:11.5px;padding:2px 20px 2px 9px;max-width:100%}
.dec43.st-gr{background-color:var(--sf2);color:var(--mu);font-weight:600}
.uc43{border:0;background:none;padding:2px 4px;border-radius:6px;font:inherit;font-size:11.5px;color:var(--tx);display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap;max-width:100%;overflow:hidden}
.uc43:hover{background:var(--sf2)}
.uc43.mu{color:var(--mu)}
.uc43 svg.i40{width:13px;height:13px;flex:none}
.uc43.wa svg.i40{color:#25d366}.uc43.tel svg.i40{color:#d93025}.uc43.em svg.i40{color:#1a6fd1}.uc43.sms svg.i40{color:#d08a1e}.uc43.pres svg.i40,.uc43.out svg.i40{color:#55657a}
.ac43{display:flex;gap:4px;justify-content:flex-end;flex-wrap:nowrap}
.ac43 .btn.sm.ib{width:26px;min-width:26px;height:26px;min-height:26px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.ac43 .btn.sm.ib svg.i40{width:14px;height:14px}
.btn.k41.lg{--k:#55657a}
.xp43 .ax43{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:10px 18px;align-items:start;background:var(--sf2);border-radius:10px;padding:8px 12px;margin-top:8px}
.xp43 .ax43 .ag41{min-width:0}
.ct43l{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.ct43i{display:grid;grid-template-columns:22px 104px minmax(0,1fr) auto 16px;gap:8px;align-items:center;border:0;background:none;text-align:left;font:inherit;font-size:12px;padding:3px 6px;border-radius:7px;cursor:pointer;color:var(--tx)}
.ct43i:hover{background:var(--sf2)}
.ct43i b{font-weight:600;color:var(--ink)}
.ct43i span:not(.k43){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct43i em{font-style:normal;font-size:11px;color:var(--mu)}
.ct43i>svg.i40{width:13px;height:13px;color:var(--mu)}
.ct43i .k43 svg.i40{width:14px;height:14px}
.k43.wa svg.i40{color:#25d366}.k43.tel svg.i40{color:#d93025}.k43.em svg.i40{color:#1a6fd1}.k43.sms svg.i40{color:#d08a1e}.k43.pres svg.i40,.k43.out svg.i40{color:#55657a}
.ct43 .opts.one .opt{display:inline-flex;align-items:center;gap:5px}
.ct43 .opts.one .opt svg.i40{width:14px;height:14px}
/* comerciais e origem do cliente nas Definições */
.com43s{display:flex;align-items:center;gap:14px;justify-content:space-between;background:var(--sf2);border-radius:10px;padding:8px 12px}
.com43s>span{display:flex;flex-direction:column;gap:2px}
.com43s b{color:var(--ink);font-size:13px}
@media (max-width:1280px){.kpi43 button.kp.k43 em{display:none}}
@media (max-width:700px){
 .cf43a,.cf43b,.cf43c,.cf43c.um{grid-template-columns:1fr}
 .hits43{width:100%;max-width:100%}
 .totbar.t43{flex-direction:column;align-items:stretch}
}
.stsel.st43s{background-image:none;padding-right:10px;display:inline-block;white-space:nowrap;cursor:default}
/* linha do tempo: passo de um módulo por ativar fica cinzento, com cadeado */
.p41.lk43 i{background:#f1f2ee;border-color:#ccd2d3;color:#7d877f}
.p41.lk43 i::after{display:none}
.p41.lk43 b,.p41.lk43 span{color:#9aa39c;font-weight:500}
.p41.lk43{cursor:pointer}

