/* Aba Clientes: cada cliente é uma linha (nome, tipo de obra, m², data, situação); os detalhes abrem ao clicar */
.pj-linha{padding:0;overflow:hidden;margin:6px 0}
.pj-linha>summary,.pj-cab{display:grid;grid-template-columns:16px minmax(110px,1.5fr) minmax(140px,1.6fr) minmax(90px,1fr) minmax(90px,1fr) 66px 90px 144px;gap:10px;align-items:center}
.pj-contato{display:flex;flex-direction:column;min-width:0;font-size:.88rem;line-height:1.3;color:var(--muted)}
.pj-contato>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* cores das situações (Solicitações e Orçamentos salvos) */
.stc-gray{--c:#374151;--cb:#e5e7eb}.stc-blue{--c:#1e3a8a;--cb:#dbeafe}.stc-amber{--c:#78350f;--cb:#fde68a}.stc-teal{--c:#115e59;--cb:#ccfbf1}.stc-purple{--c:#5b21b6;--cb:#ede9fe}.stc-lime{--c:#365314;--cb:#d9f99d}.stc-orange{--c:#7c2d12;--cb:#fed7aa}.stc-green{--c:#14532d;--cb:#bbf7d0}.stc-greens{--c:#064e3b;--cb:#6ee7b7}.stc-slate{--c:#0f172a;--cb:#cbd5e1}.stc-red{--c:#7f1d1d;--cb:#fecaca}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .stc-gray{--c:#d1d5db;--cb:#374151}:root:not([data-theme="light"]) .stc-blue{--c:#bfdbfe;--cb:#1e3a8a}:root:not([data-theme="light"]) .stc-amber{--c:#fde68a;--cb:#78350f}:root:not([data-theme="light"]) .stc-teal{--c:#99f6e4;--cb:#115e59}:root:not([data-theme="light"]) .stc-purple{--c:#ddd6fe;--cb:#4c1d95}:root:not([data-theme="light"]) .stc-lime{--c:#d9f99d;--cb:#3f6212}:root:not([data-theme="light"]) .stc-orange{--c:#fed7aa;--cb:#7c2d12}:root:not([data-theme="light"]) .stc-green{--c:#bbf7d0;--cb:#14532d}:root:not([data-theme="light"]) .stc-greens{--c:#a7f3d0;--cb:#064e3b}:root:not([data-theme="light"]) .stc-slate{--c:#e2e8f0;--cb:#334155}:root:not([data-theme="light"]) .stc-red{--c:#fecaca;--cb:#7f1d1d}}
:root[data-theme="dark"] .stc-gray{--c:#d1d5db;--cb:#374151}:root[data-theme="dark"] .stc-blue{--c:#bfdbfe;--cb:#1e3a8a}:root[data-theme="dark"] .stc-amber{--c:#fde68a;--cb:#78350f}:root[data-theme="dark"] .stc-teal{--c:#99f6e4;--cb:#115e59}:root[data-theme="dark"] .stc-purple{--c:#ddd6fe;--cb:#4c1d95}:root[data-theme="dark"] .stc-lime{--c:#d9f99d;--cb:#3f6212}:root[data-theme="dark"] .stc-orange{--c:#fed7aa;--cb:#7c2d12}:root[data-theme="dark"] .stc-green{--c:#bbf7d0;--cb:#14532d}:root[data-theme="dark"] .stc-greens{--c:#a7f3d0;--cb:#064e3b}:root[data-theme="dark"] .stc-slate{--c:#e2e8f0;--cb:#334155}:root[data-theme="dark"] .stc-red{--c:#fecaca;--cb:#7f1d1d}
.pill[class*="stc-"]{background:var(--cb);color:var(--c);border:1px solid var(--c);font-weight:700}
.btn.chip-st[class*="stc-"]{background:var(--cb);color:var(--c);border:2px solid var(--c);font-weight:700}
.btn.chip-st[class*="stc-"].on{background:var(--c);color:var(--cb);box-shadow:0 0 0 2px var(--cb),0 0 0 4px var(--c)}
.pj-linha>summary{list-style:none;cursor:pointer;padding:10px 12px;min-height:46px}
.pj-linha>summary::-webkit-details-marker{display:none}
.pj-linha>summary:hover{background:var(--soft)}
.pj-linha>summary:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.pj-linha[open]>summary{background:var(--soft);border-bottom:1px solid var(--line)}
.pj-seta{width:0;height:0;border-left:7px solid var(--muted);border-top:5px solid transparent;border-bottom:5px solid transparent;transition:transform .15s}
.pj-linha[open] .pj-seta{transform:rotate(90deg)}
.pj-nome{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pj-tipo,.pj-cid,.pj-m2,.pj-data{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.93rem}
.pj-st{justify-self:end;white-space:nowrap}
.pj-novo{background:var(--ok);color:#fff}
.pj-meta{display:none}
.pj-corpo{padding:12px 14px 14px}
.pj-barra{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0 10px}
.pj-busca{flex:1 1 240px;max-width:420px}
.pj-cab{padding:0 12px 2px;font-size:.74rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.pj-cab span:last-child{justify-self:end}
@media(max-width:720px){
  .pj-cab{display:none}
  .pj-linha>summary{grid-template-columns:16px minmax(0,1fr) auto;grid-template-areas:"seta nome st" ". meta meta" ". meta2 meta2";row-gap:2px}
  .pj-meta+.pj-meta{grid-area:meta2}.pj-meta:empty{display:none}
  .pj-seta{grid-area:seta}.pj-nome{grid-area:nome}.pj-st{grid-area:st}
  .pj-tipo,.pj-cid,.pj-m2,.pj-data,.pj-contato{display:none}
  .pj-meta{display:block;grid-area:meta;color:var(--muted);font-size:.9rem;min-width:0;white-space:normal;line-height:1.35}
}
/* Menu lateral. Cada aba continua sendo um botão .tab dentro de nav.tabs.
   Computador (900 px ou mais): menu fixo à esquerda, com ícone e nome.
   Celular e tablet em pé: botão ☰ no topo abre o menu por cima da tela. */
.menu-btn{display:none}
.barra-inf{display:none}
#menuVeu{display:none}
.tab::before,.bi::before{content:"";flex:none;width:18px;height:18px;background:currentColor;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
header.top .tabs{position:fixed;left:0;top:var(--topo-h,59px);bottom:0;width:216px;max-width:none;margin:0;padding:12px 10px 20px;display:flex;flex-direction:column;flex-wrap:nowrap;gap:2px;overflow-y:auto;background:#1B3F8B;z-index:28}
header.top .tab{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;color:#dbe5fb;padding:10px 12px;font-size:.95rem;font-weight:600;white-space:normal}
header.top .tab:hover{background:rgba(255,255,255,.12)}
header.top .tab:focus-visible{outline:2px solid #fff;outline-offset:1px}
header.top .tab[aria-selected="true"]{background:#fff;color:#1B3F8B}
header.top .tab .cnt{margin-left:auto;background:var(--edge);color:#18252E}
header.top .tab .tab-lock{margin-left:auto!important}
header.top .evt-pill{width:100%;margin:0 0 8px;justify-content:flex-start;text-align:left;white-space:normal}
body.bloqueado .menu-btn{display:none!important}
@media(min-width:900px){
  .layout,.aviso-topo{max-width:1240px;margin-left:max(216px,calc(50vw - 512px));margin-right:0}
  .demo{padding-left:216px}
}
@media(max-width:899px){
  .menu-btn{display:inline-flex}
  header.top .tabs{width:min(290px,84vw);transform:translateX(-105%);transition:transform .2s ease;visibility:hidden}
  body.menu-aberto header.top .tabs{transform:none;visibility:visible;box-shadow:0 0 30px rgba(0,0,0,.45)}
  body.menu-aberto #menuVeu{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:27}
  header.top .tab{padding:12px 14px;font-size:1rem}
}
@media(max-width:899px){
  .menu-btn{display:none!important}
  body:not(.bloqueado){padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
  body:not(.bloqueado) .barra-inf{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:26;background:#1B3F8B;padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -2px 12px rgba(0,0,0,.25)}
  .bi{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:#dbe5fb;font:inherit;font-size:.7rem;font-weight:600;line-height:1.1;padding:6px 2px;border-radius:10px;text-align:center;cursor:pointer;position:relative}
  .bi::before{width:24px;height:24px}
  .bi[aria-current="page"]{background:#fff;color:#1B3F8B}
  .bi:focus-visible{outline:2px solid #fff;outline-offset:1px}
  .bi .bi-n{position:absolute;top:2px;left:calc(50% + 6px);background:#F2B705;color:#18252E;border-radius:9px;font-size:.62rem;padding:0 5px;min-width:16px;line-height:16px}
  .bi[data-go="mais"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E")}
  body.menu-aberto header.top .tabs{bottom:0}
}
@media print{header.top .tabs,.menu-btn,#menuVeu,.barra-inf{display:none!important}.layout,.aviso-topo{margin-left:auto;margin-right:auto}.demo{padding-left:0}}
.tab[data-tab="visao"]::before,.bi[data-go="visao"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='8' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='15' width='7' height='6' rx='1.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='8' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='15' width='7' height='6' rx='1.5'/%3E%3C/svg%3E")}
.tab[data-tab="projetos"]::before,.bi[data-go="projetos"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.5 2.7-6 6-6s6 2.5 6 6'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M17 14c2.5.2 4 2.2 4 5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.5 2.7-6 6-6s6 2.5 6 6'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M17 14c2.5.2 4 2.2 4 5'/%3E%3C/svg%3E")}
.tab[data-tab="obra"]::before,.bi[data-go="obra"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E")}
.tab[data-tab="orcamento"]::before,.bi[data-go="orcamento"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2.5'/%3E%3Crect x='8' y='5.5' width='8' height='3.5' rx='.8'/%3E%3Cpath d='M9 13h.01M12 13h.01M15 13h.01M9 16.5h.01M12 16.5h.01M15 16.5h.01' stroke-width='2.6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2.5'/%3E%3Crect x='8' y='5.5' width='8' height='3.5' rx='.8'/%3E%3Cpath d='M9 13h.01M12 13h.01M15 13h.01M9 16.5h.01M12 16.5h.01M15 16.5h.01' stroke-width='2.6'/%3E%3C/svg%3E")}
.tab[data-tab="salvos"]::before,.bi[data-go="salvos"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6a2 2 0 0 1 2-2h4l2 2h6a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6a2 2 0 0 1 2-2h4l2 2h6a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3C/svg%3E")}
.tab[data-tab="contratos"]::before,.bi[data-go="contratos"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E")}
.tab[data-tab="parametros"]::before,.bi[data-go="parametros"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E")}
.tab[data-tab="conta"]::before,.bi[data-go="conta"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20c0-4 3.4-6.5 7.5-6.5s7.5 2.5 7.5 6.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20c0-4 3.4-6.5 7.5-6.5s7.5 2.5 7.5 6.5'/%3E%3C/svg%3E")}
.tab[data-tab="ajuda"]::before,.bi[data-go="ajuda"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.6 9.4a2.5 2.5 0 1 1 3.6 2.2c-.8.5-1.2 1-1.2 2M12 16.8h.01' stroke-width='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.6 9.4a2.5 2.5 0 1 1 3.6 2.2c-.8.5-1.2 1-1.2 2M12 16.8h.01' stroke-width='2'/%3E%3C/svg%3E")}
.tab[data-tab="admin"]::before,.bi[data-go="admin"]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 4.5 3 7.5 7 9 4-1.5 7-4.5 7-9V6z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 4.5 3 7.5 7 9 4-1.5 7-4.5 7-9V6z'/%3E%3C/svg%3E")}

/* Filtros da lista de solicitações */
.pjf{background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:12px 0 14px;display:grid;gap:14px}
.pjf-tit{font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.pjf-pills{display:flex;flex-wrap:wrap;gap:8px}
.pjf-pill{border:1.5px solid var(--line);background:var(--cb,#fff);color:inherit;border-radius:999px;padding:8px 16px;font:inherit;font-weight:600;cursor:pointer;min-height:40px;transition:background .15s,border-color .15s,color .15s}
.pjf-pill:hover{border-color:var(--primary)}
.pjf-pill.on{background:var(--primary);border-color:var(--primary);color:#fff}
.pjf-grade{display:grid;grid-template-columns:1.8fr 1.2fr 1.1fr 1.1fr;gap:12px}
.pjf-c label{display:block;font-size:.8rem;font-weight:700;margin-bottom:4px;color:var(--muted)}
.pjf-c select,.pjf-c input{width:100%}
.pjf .row{margin:0}
.pjf-res{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 10px}
.pjf-cont{font-size:1.02rem}
.pjf-cont b{font-size:1.3rem}
.pjf-acoes{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pjf-vazio{text-align:center;padding:26px 12px 18px;border:2px dashed var(--line);border-radius:16px}
.pjf-vazio h3{margin:6px 0 4px;font-size:1.1rem}
.pjf-ico{font-size:2.2rem}
.pjf-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px auto 4px;max-width:680px}
.pjf-tile{border:1.5px solid var(--line);background:var(--cb,#fff);border-radius:14px;padding:14px 8px;cursor:pointer;font:inherit;color:inherit;display:flex;flex-direction:column;gap:2px;align-items:center;transition:transform .12s,border-color .12s,box-shadow .12s}
.pjf-tile:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.pjf-tile b{font-size:1.9rem;line-height:1.1;color:var(--primary)}
.pjf-tile span{font-size:.85rem;color:var(--muted);font-weight:600}
.pjf-nada{text-align:center;padding:18px 0}
@media (max-width:820px){.pjf-grade{grid-template-columns:1fr 1fr}.pjf-nome{grid-column:1/-1}.pjf-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
