/* ELS — aparência do M43 v3 (cores, fonte, cantos, cartões, selos) com menu lateral de ícones de traço fino.
   O quadro de disjuntores continua como o elemento próprio do ELS. */
:root {
  --bg: #f4f5f7; --surface: #fff; --surface-2: #f0f2f5; --text: #1c2430; --muted: #5d6878; --line: #d9dee5;
  --accent: #0b5cad; --on-accent: #fff; --radius: 10px; --r-ctl: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --vidro: rgb(255 255 255 / .85); --veu: rgb(0 0 0 / .35);
  --sucesso: #1d7a43; --erro: #b42318; --aviso: #9a6200;
  --cobre: #a8642a; --cobre-luz: #d39158; --disjuntor: #1c2430; --etiqueta: #f1f1f1; --desarme: #d23a2a; --alerta: #9a6200; --ok: #1d7a43;
  --lateral: 216px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c; --surface: #1b2129; --surface-2: #232b35; --text: #e6eaf0; --muted: #9aa5b4; --line: #2f3945;
    --accent: #5aa2f0; --on-accent: #0d1520;
    --vidro: rgb(27 33 41 / .85); --veu: rgb(0 0 0 / .55);
    --sucesso: #5cc489; --erro: #f07a6e; --aviso: #e0b050;
    --cobre: #c98a4b; --cobre-luz: #e6a970; --disjuntor: #0f1318; --etiqueta: #e6eaf0; --desarme: #f07a6e; --alerta: #e0b050; --ok: #5cc489;
  }
}
:root[data-theme="dark"] {
  --bg: #12161c; --surface: #1b2129; --surface-2: #232b35; --text: #e6eaf0; --muted: #9aa5b4; --line: #2f3945;
  --accent: #5aa2f0; --on-accent: #0d1520;
  --vidro: rgb(27 33 41 / .85); --veu: rgb(0 0 0 / .55);
  --sucesso: #5cc489; --erro: #f07a6e; --aviso: #e0b050;
  --cobre: #c98a4b; --cobre-luz: #e6a970; --disjuntor: #0f1318; --etiqueta: #e6eaf0; --desarme: #f07a6e; --alerta: #e0b050; --ok: #5cc489;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 var(--font); color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctl); }
h1, h2, h3 { margin: 0; font-weight: 600; }
.sec { color: var(--muted); }
.caption, .peq { font-size: 13px; line-height: 1.4; color: var(--muted); }
.linha { display: flex; gap: 8px; align-items: center; }

/* ---------- botões e campos (padrão M43 v3) ---------- */
.btn, .bt { min-height: 36px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); color: var(--text); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s; }
.btn:hover, .bt:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.accent:hover { filter: brightness(1.08); }
.btn.sutil { background: transparent; border-color: transparent; }
.btn.sutil:hover { background: var(--surface-2); }
.bt.peq { min-height: 0; padding: 3px 9px; font-size: 13px; }
.link { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: var(--r-ctl); }
.link:hover { background: var(--surface-2); }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.campo input:not([type=range]):not([type=checkbox]):not([type=radio]), .campo select, .campo textarea, .entrada {
  width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); }
.campo input:focus, .campo select:focus, .campo textarea:focus, .entrada:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; margin-right: 6px; }

/* ---------- topo + menu lateral ---------- */
.topo { position: sticky; top: 0; z-index: 6; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.topo .marca { font-weight: 700; letter-spacing: .3px; }
.topo .marca span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.topo .dir { margin-left: auto; display: flex; gap: 12px; align-items: center; color: var(--muted); }
.lateral { position: fixed; top: 52px; left: 0; bottom: 0; width: var(--lateral); background: var(--surface); border-right: 1px solid var(--line);
  padding: 12px 10px; z-index: 5; overflow-y: auto; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-ctl);
  background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: background .15s var(--ease), color .15s var(--ease); }
.nav button:hover { background: var(--surface-2); color: var(--text); }
.nav button[aria-current="page"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.nav button[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- página ---------- */
.pagina { margin-left: var(--lateral); max-width: calc(1180px + var(--lateral)); padding: 24px 24px 140px; }
.pagina h1 { font-size: 24px; line-height: 1.2; margin-bottom: 4px; }
.cab { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cab .acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filtros { display: flex; gap: 12px; align-items: center; margin: 16px 0 20px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* cartões no padrão M43 v3 (fundo branco, contorno fino, canto 10 px) */
.kpi, .quadro, .reg, .pasta, .wfoto, .relatorio { border: 1px solid var(--line); }
.quadro:hover, .reg:hover, .wfoto:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.quadro, .reg, .wfoto, .kpi { transition: border-color .15s var(--ease); }

/* números-chave */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.kpi b { font-size: 34px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.alarme b { color: var(--desarme); }

/* ---------- quadro de distribuição (conteúdo-herói) ---------- */
.quadro { background: var(--surface); border-radius: var(--radius); margin-bottom: 24px; padding-bottom: 24px; }
.barramento { padding: 24px 24px 16px; }
.barramento h2 { font-size: 22px; line-height: 1.3; margin-bottom: 16px; }
.barramento h2 small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 12px; letter-spacing: 0; }
.barra { height: 6px; border-radius: 1px; background: linear-gradient(var(--cobre-luz), var(--cobre)); }
.trilho { display: flex; flex-wrap: wrap; gap: 16px; padding: 0 24px; }
.dj { width: 120px; background: var(--disjuntor); border-radius: var(--radius); padding: 10px 10px 12px; cursor: pointer; border: 0;
  text-align: left; color: var(--etiqueta); position: relative; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.35;
  transition: transform .3s var(--ease); }
.dj::before { content: ""; position: absolute; top: -16px; left: 50%; width: 2px; height: 16px; background: var(--cobre); }
.dj:hover { transform: translateY(-2px); }
.dj .alavanca { height: 44px; border-radius: 2px; background: #00000055; position: relative; }
.dj .alavanca i { position: absolute; left: 24%; right: 24%; height: 20px; border-radius: 2px; background: var(--etiqueta); top: 4px; transition: top .3s var(--ease); }
.dj.desarmado .alavanca i { top: 20px; background: var(--desarme); }
.dj.concluido .alavanca i { background: var(--ok); }
.dj .nome { min-height: 48px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dj .carga { height: 2px; background: #ffffff22; overflow: hidden; }
.dj .carga b { display: block; height: 100%; background: var(--etiqueta); }
.dj.desarmado .carga b { background: var(--desarme); }
.dj .rodape { display: flex; justify-content: space-between; color: #9a9ca0; font-variant-numeric: tabular-nums; }
.dj .fila { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dj.alerta .rodape span:last-child { color: var(--alerta); }
.dj.pulso .alavanca i { animation: pulso .4s var(--ease) 2; }
@keyframes pulso { 50% { top: 12px; } }
.vazio { padding: 64px 16px; text-align: center; color: var(--muted); }
.vazio b { color: var(--text); font-weight: 500; }
.ilustra { display: block; width: 160px; height: 80px; margin: 0 auto 24px; }

/* ---------- painel lateral de lançamento ---------- */
.gaveta { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--bg); z-index: 10; padding: 40px 32px; overflow-y: auto;
  box-shadow: -1px 0 0 var(--line); animation: entra .4s var(--ease); }
.gaveta h2 { font-size: 28px; line-height: 1.2; }
.gaveta .onde { color: var(--muted); margin: 8px 0 40px; font-size: 14px; }
.cronometro { font-size: 40px; line-height: 1; font-weight: 500; min-width: 120px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#gVoz { height: 32px; padding: 0 10px; }
#gVoz[aria-pressed="true"] { color: var(--erro); }
#gVoz[aria-pressed="true"] svg { animation: ouvindo 1s ease-in-out infinite; }
@keyframes ouvindo { 50% { opacity: .35; } }
#gGuardar { width: 100%; }
@keyframes entra { from { transform: translateX(24px); opacity: 0; } }

/* ---------- fila do HINC ---------- */
.filabar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; width: min(560px, calc(100% - 32px)); z-index: 6;
  background: var(--vidro); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius);
  padding: 12px 12px 12px 24px; display: flex; gap: 16px; align-items: center; box-shadow: 0 0 0 1px var(--line); }
.filabar .btn { margin-left: auto; }

/* ---------- diálogos ---------- */
dialog { border: 0; border-radius: var(--radius); background: var(--bg); color: var(--text); width: min(720px, calc(100% - 32px)); padding: 0; }
dialog::backdrop { background: var(--veu); backdrop-filter: blur(4px); }
dialog .corpo { padding: 40px 40px 24px; }
dialog h2 { font-size: 28px; line-height: 1.2; margin-bottom: 24px; }
dialog .rodape { display: flex; gap: 16px; padding: 0 40px 40px; }
dialog .rodape .btn { flex: 1; }
.previa { width: 100%; border-collapse: collapse; font-size: 14px; }
.previa th { font-weight: 500; color: var(--muted); text-align: left; padding: 0 8px 12px; font-size: 13px; }
.previa td { height: 48px; padding: 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.previa .de { color: var(--muted); text-decoration: line-through; margin-right: 6px; }
.erro { color: var(--erro); }
#dBoasVindas { width: min(480px, calc(100% - 32px)); text-align: center; }

/* ---------- avisos ---------- */
.toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: min(420px, calc(100% - 32px));
  background: var(--text); color: var(--bg); border-radius: var(--radius); padding: 12px 20px; font-size: 14px; animation: desce .3s var(--ease); }
.toast.erro { background: var(--erro); color: #fff; }
@keyframes desce { from { transform: translate(-50%, -8px); opacity: 0; } }

/* ---------- arquivos ---------- */
.trilha { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin-right: auto; }
.trilha button { background: none; border: 0; padding: 4px 8px; border-radius: var(--radius); cursor: pointer; color: var(--muted); font-weight: 500; }
.trilha button:last-child { color: var(--text); }
.trilha button:hover { background: var(--surface); }
.trilha span { color: var(--muted); }
#aBusca { font: inherit; font-size: 14px; padding: 8px 12px; min-width: 220px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.pasta .meta-emp { color: var(--muted); font-size: 13px; margin-left: auto; }
.pasta { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); }
.pasta li + li { border-top: 1px solid var(--line); }
.pasta a, .pasta button { display: flex; gap: 16px; width: 100%; min-height: 48px; padding: 8px 24px; background: none; border: 0;
  text-align: left; color: var(--text); text-decoration: none; cursor: pointer; align-items: center; transition: background .2s var(--ease); }
.pasta a:hover, .pasta button:hover { background: var(--surface-2); }
.pasta svg { width: 16px; height: 16px; flex: none; opacity: .7; }
.pasta .meta { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- WhatsApp ---------- */
.subtitulo { font-size: 22px; margin: 64px 0 24px; }
.wqr-corpo { display: flex; gap: 40px; padding: 0 24px; align-items: center; flex-wrap: wrap; }
.wqr-img { background: #fff; padding: 16px; border-radius: var(--radius); width: 248px; height: 248px; }
.wqr-img img, .wqr-img canvas { width: 216px !important; height: 216px !important; }
.wqr-corpo ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; max-width: 380px; }
.wfotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wfoto { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.wfoto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); display: block; }
.wfoto .info { padding: 16px; display: grid; gap: 12px; }
.wfoto .ok { color: var(--sucesso); font-size: 13px; word-break: break-word; }
.wfoto .vazio { padding: 40px 16px; }
.wmsgs li { min-height: 48px; padding: 12px 24px; display: flex; gap: 16px; align-items: baseline; }
.wmsgs .eu { color: var(--accent); font-weight: 500; flex: none; }
.wmsgs .ele { font-weight: 500; flex: none; }
.wmsgs .hora { margin-left: auto; color: var(--muted); font-size: 13px; flex: none; }

/* ---------- entrar ---------- */
.entrar { max-width: 380px; margin: 18vh auto 0; padding: 0 16px; }
.entrar h1 { font-size: 48px; line-height: 1.1; margin-bottom: 8px; letter-spacing: -.03em; }
.entrar .caption { margin-bottom: 64px; }
.entrar .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 760px) {
  .navbar { grid-template-columns: auto 1fr; padding: 8px 16px; height: auto; row-gap: 4px; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
  .navbar .acoes .sec { display: none; }
  .pagina { padding: 24px 16px 160px; }
  .pagina h1 { font-size: 36px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 16px; } .kpi b { font-size: 36px; }
  .cab .acoes { width: 100%; margin-left: 0; } .cab .acoes .btn { flex: 1; }
  .dj { width: calc(50% - 8px); }
  .trilho, .barramento { padding-left: 16px; padding-right: 16px; }
  dialog .corpo { padding: 24px 16px 16px; } dialog .rodape { padding: 0 16px 24px; flex-direction: column; }
  .gaveta { padding: 24px 16px; }
}

/* ---------- diário ---------- */
.dfiltros .entrada { width: auto; min-width: 160px; }
.dfiltros select.entrada { min-width: 280px; max-width: 100%; }
.relatorio { background: var(--surface); border-radius: var(--radius); padding: 16px 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.relatorio .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.relatorio select.entrada { width: auto; min-width: 200px; }
.dia { font-size: 13px; color: var(--muted); margin: 40px 0 12px; }
.reg { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; display: grid; gap: 12px; }
.reg .topo { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.reg .hora { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.reg .quem { color: var(--muted); }
.reg .obra { color: var(--muted); font-size: 13px; }
.reg .gps { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; }
.reg .gps.longe { color: var(--desarme); }
.reg .fotos { display: flex; gap: 8px; flex-wrap: wrap; }
.reg .fotos img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.nprev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nprev img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
#dNovo { width: min(560px, calc(100% - 32px)); }
@media (max-width: 760px) { .dfiltros .entrada, .dfiltros select.entrada, .relatorio select.entrada { width: 100%; min-width: 0; } .relatorio .acoes .btn { flex: 1; } }

/* ---------- linha do tempo por obra ---------- */
.linha-grade { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.lobras { position: sticky; top: 68px; max-height: calc(100vh - 96px); overflow-y: auto; }
.lobras button { flex-direction: column; align-items: flex-start; gap: 2px; }
.lobras button[aria-current="true"] { background: var(--surface-2); }
.lobras .emp { font-size: 12px; color: var(--muted); }
.lobras .n { font-size: 12px; color: var(--accent); }
.ltitulo { font-size: 28px; line-height: 1.2; margin: 0 0 24px; }
.lchips { display: flex; gap: 8px; flex-wrap: wrap; margin-right: auto; }
.chip { border: 0; border-radius: 999px; padding: 6px 14px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lfiltros .entrada { width: auto; }
.ev { display: grid; grid-template-columns: 56px 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ev .h { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; padding-top: 2px; }
.ev .f { font-size: 12px; font-weight: 500; padding-top: 3px; }
.ev .f[data-f="HINC"] { color: #e3a008; } .ev .f[data-f="Prevision"] { color: #3ab0a0; } .ev .f[data-f="Sienge"] { color: #e0362b; }
.ev .f[data-f="WhatsApp"] { color: #25a35a; } .ev .f[data-f="Diário"] { color: var(--accent); }
.ev .t { font-weight: 500; } .ev .d { color: var(--muted); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.vsub { font-size: 16px; margin: 24px 0 8px; }
.vlin { display: grid; grid-template-columns: 1fr 260px auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.vlin .a { font-size: 12px; color: var(--alerta); }
#dVinc { width: min(900px, calc(100% - 32px)); }
#dVinc .corpo { max-height: 70vh; overflow-y: auto; }
@media (max-width: 900px) { .linha-grade { grid-template-columns: 1fr; } .lobras { position: static; max-height: 260px; }
  .ev { grid-template-columns: 48px 1fr; } .ev .f { grid-column: 2; padding: 0; } .ev > div:last-child { grid-column: 2; }
  .vlin { grid-template-columns: 1fr; } }

/* ---------- celular: menu lateral vira barra de ícones embaixo ---------- */
@media (max-width: 760px) {
  .lateral { top: auto; bottom: 0; width: 100%; height: 60px; padding: 4px 6px; border-right: 0; border-top: 1px solid var(--line); }
  .nav { flex-direction: row; justify-content: space-around; }
  .nav button { flex-direction: column; gap: 2px; min-height: 50px; padding: 4px 6px; font-size: 11px; flex: 1; align-items: center; }
  .nav button[aria-current="page"]::before { left: 25%; right: 25%; top: -4px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .pagina { margin-left: 0; padding: 16px 16px 150px; }
  .topo .marca span { display: none; }
  .filabar { bottom: 72px; }
}

/* ---------- situação atual da obra ---------- */
.sit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sit-kpis .kpi b { font-size: 28px; }
.sit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.sit h3 { font-size: 15px; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.sit h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.sit table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sit td, .sit th { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sit th { color: var(--muted); font-weight: 600; font-size: 12px; }
.sit tr:last-child td { border-bottom: 0; }
.sit .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.barra-av { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; min-width: 80px; position: relative; }
.barra-av b { display: block; height: 100%; background: var(--accent); }
.barra-av i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); opacity: .5; }
.selo { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.selo.ok { color: var(--ok); border-color: var(--ok); } .selo.ruim { color: var(--erro); border-color: var(--erro); } .selo.aviso { color: var(--aviso); border-color: var(--aviso); }
.sit .mais { margin-top: 8px; }
@media (max-width: 760px) { .sit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sit .oc { display: none; } }

.eform { margin-top: 12px; flex-wrap: wrap; } .eform .entrada { width: auto; flex: 1; min-width: 160px; }
.ponto-dia { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

/* ponto eletrônico */
.pmeses { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
.pmeses button { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; color: var(--text); font: inherit; cursor: pointer; display: grid; gap: 2px; text-align: center; }
.pmeses button b { font-size: 13px; font-weight: 600; } .pmeses button span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pmeses button[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.pmeses button:disabled { opacity: .45; cursor: default; }
.ptab td.h { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptab td.h a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.ptab td.h .gps { font-size: 11px; color: var(--muted); display: block; border: 0; }
.ptab tr.fds td { color: var(--muted); }
.ptab tfoot td { font-weight: 600; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .pmeses { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* esteira */
.nav .cont { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 18px; text-align: center; }
.est-grade { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.caixa-cab { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.caixa-cab h2, .kanban h3 { font-size: 18px; font-weight: 600; } .caixa-cab small, .kanban h3 small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.caixa-cab .entrada { width: auto; max-width: 260px; }
.caixa .lchips { margin-bottom: 16px; }
.chip .n { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
.cx-dia { font-size: 12px; color: var(--muted); margin: 18px 0 8px; display: flex; justify-content: space-between; }
.cx { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; border-left: 3px solid var(--line); }
.cx[data-tipo="Citou você"] { border-left-color: var(--accent); } .cx[data-tipo="Direto"] { border-left-color: var(--ok); }
.cx[data-tipo="Diário"] { border-left-color: var(--aviso); }
.cx .topo-cx { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cx .topo-cx b { color: var(--text); font-weight: 600; font-size: 13px; }
.cx .txt { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cx .txt.aberto { display: block; }
.cx .acoes-cx { display: flex; gap: 8px; }
.cx .acoes-cx .btn { min-height: 30px; padding: 0 12px; font-size: 13px; }
.kanban { display: grid; gap: 20px; }
.kanban section { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.kanban h3 { margin-bottom: 10px; }
.card-e { width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; color: var(--text); font: inherit; cursor: pointer; display: grid; gap: 4px; }
.card-e:hover { border-color: var(--accent); }
.card-e .t { font-weight: 600; } .card-e .m { font-size: 12px; color: var(--muted); }
.card-e .q { font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.origem { margin: -8px 0 20px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; max-height: 160px; overflow: auto; }
.esacao { border: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; } .esacao legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.esacao label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.esduas { gap: 16px; } .esduas .campo { flex: 1; min-width: 0; }
@media (max-width: 1000px) { .est-grade { grid-template-columns: 1fr; } }

/* barra superior: conexões */
.conex { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.conex + .dir { margin-left: 12px; }
.conex span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--surface); font-size: 12px; color: var(--muted); white-space: nowrap; }
.conex span b { font-weight: 600; color: var(--text); }
.conex span i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.conex span.velho i { background: var(--aviso); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aviso) 22%, transparent); }
.conex span.erro i { background: var(--erro); box-shadow: 0 0 0 3px color-mix(in srgb, var(--erro) 22%, transparent); }
@media (max-width: 1100px) { .conex span em { display: none; } }
@media (max-width: 700px) { .conex span b { display: none; } .conex span { padding: 6px; } }
.esacao input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

/* quantitativos */
#aLista li.com-acao { display: flex; align-items: center; } #aLista li.com-acao > a { flex: 1; min-width: 0; }
#aLista li.com-acao .btn { flex: none; width: auto; margin-right: 12px; min-height: 32px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.qped { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.qped h3 { font-size: 15px; margin-bottom: 8px; }
.qlin { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.qlin:first-of-type { border-top: 0; } .qarq { flex: 1; min-width: 200px; overflow-wrap: anywhere; } .qres { flex-basis: 100%; }
.qlin .btn { min-height: 30px; font-size: 13px; }

/* menu Quantitativos */
.qgrupo { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 10px; margin: 0 0 10px; }
.qgrupo legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.qgrupo legend label, .qpdf { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.qpdf { padding: 5px 0; border-top: 1px solid var(--line); font-size: 14px; }
.qpdf:first-of-type { border-top: 0; }
.qpdf span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qpdf.vazio-pdf { opacity: .55; cursor: default; }
.qgrupo input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.qacoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.qacoes .btn { width: auto; }
.qplan { list-style: none; padding: 0; margin: 0; }
.qplan li { display: flex; gap: 10px; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.qplan li:first-child { border-top: 0; }

/* quantitativo na tela */
.qdet-cab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.qdet-cab h2 { font-size: 20px; margin: 6px 0 2px; }
.qdet-cab .acoes { display: flex; gap: 8px; flex-wrap: wrap; } .qdet-cab .btn { width: auto; }
.btn.perigo { color: var(--erro); }
.qresumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.qk { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.qk b { font-size: 24px; font-variant-numeric: tabular-nums; } .qk span { font-size: 12px; color: var(--muted); }
.qk.correcao { border-left: 4px solid var(--erro); } .qk.incompat { border-left: 4px solid var(--aviso); }
.qabas { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 8px 0 10px; scrollbar-width: thin; }
.qabas button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 10px; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.qabas button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.qabas small { color: var(--muted); font-weight: 400; }
.qbusca { max-width: 320px; margin-bottom: 10px; }
.qfiltros { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.qfiltros .chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.qfiltros .chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.qalerta { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.qalerta.correcao { border-left-color: var(--erro); } .qalerta.incompat { border-left-color: var(--aviso); }
.qalerta.feito { opacity: .55; } .qalerta.feito b { text-decoration: line-through; }
.qres-chk { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); cursor: pointer; }
.qres-chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--ok); }
.qtab { overflow-x: auto; max-height: 65vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.qtab table { font-size: 13px; } .qtab th { position: sticky; top: 0; background: var(--surface); z-index: 1; white-space: nowrap; }
.qtab td { max-width: 420px; }
.qtab tr.qpend td { background: color-mix(in srgb, var(--aviso) 12%, transparent); }
.qtab tr.st-ok td:nth-last-child(2) { color: var(--ok); font-weight: 600; } .qtab tr.st-atencao td:nth-last-child(2) { color: var(--aviso); font-weight: 600; }
@media (max-width: 760px) { .qresumo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* solicitação Sienge */
.solaviso { border: 1px solid var(--line); border-left: 4px solid var(--aviso); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.solaviso .btn { width: auto; min-height: 26px; padding: 0 8px; font-size: 13px; }
.solcab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-bottom: 12px; }
.solcab .solobs { grid-column: 1 / -1; }
.solcab select, .solcab input { width: 100%; }
.qtab select { max-width: 340px; width: 100%; font: inherit; font-size: 13px; padding: 4px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.qtab .solq { width: 90px; text-align: right; font: inherit; font-size: 13px; padding: 4px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.qtab tr.sol-fora td { opacity: .6; }
.qtab input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.solres { display: grid; gap: 2px; max-height: 180px; overflow-y: auto; margin-top: 4px; }
.solop { text-align: left; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.solop:hover { border-color: var(--accent); }
.solfaltas { font-size: 13px; columns: 2; margin: 6px 0 10px; }
.solpre { max-height: 360px; overflow: auto; font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
@media (max-width: 760px) { .solcab { grid-template-columns: 1fr; } .solfaltas { columns: 1; } }
.qtab .solconf { color: var(--aviso); font-weight: 600; }

/* terceirizados */
.tin { width: 100%; font: inherit; font-size: 13px; padding: 4px 6px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.tin.tun { width: 64px; }
.tbar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--ok); }
.btn.tenv { display: inline-flex; align-items: center; gap: 6px; width: auto; }
.btn.tenv.confirmar { border-color: var(--aviso); color: var(--aviso); }
.tst { font: inherit; font-size: 13px; padding: 3px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.tfotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tfotos img { width: 100px; height: 75px; object-fit: cover; border-radius: 6px; margin: 4px 4px 0 0; }
label.btn { cursor: pointer; width: auto; display: inline-flex; align-items: center; }

/* programação de entrega */
.solprog td { vertical-align: top; }
.solprog select { max-width: 260px; }
.solprog input[type=date] { font: inherit; font-size: 13px; padding: 3px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.solq.soln { width: 52px; }
.solant { white-space: nowrap; font-size: 12px; color: var(--muted); } .solant input { margin: 0 6px 4px 2px; }
.soldt div { font-size: 13px; white-space: nowrap; }
.solac { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; } .solac .btn { width: auto; min-height: 28px; font-size: 13px; }
.solmot { max-width: 180px; }
.solfaltas1 { font-size: 12px; margin: 4px 0 0 16px; max-width: 280px; }
.qtab tr.sol-atraso td { background: color-mix(in srgb, var(--erro) 8%, transparent); }

/* edição do diário e ajuste do ponto (só admin) */
.reg-acoes { margin-top: 6px; } .reg-acoes .btn { width: auto; min-height: 28px; font-size: 13px; }
.deform .campo { margin-bottom: 8px; } .deform textarea { width: 100%; }
.detira { display: inline-flex; flex-direction: column; gap: 2px; font-size: 12px; margin-right: 6px; cursor: pointer; }
.detira img { width: 90px; height: 68px; object-fit: cover; border-radius: 6px; }
.plapis { width: auto; min-height: 22px; padding: 0 6px; margin-left: 4px; font-size: 12px; }
#pManualBar { margin: 0 0 10px; } #pManualBar .btn { width: auto; }

/* Gantt da programação de entrega */
.gantt { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 13px; }
.grow { display: grid; grid-template-columns: minmax(260px, 32%) 1fr; min-width: 860px; border-top: 1px solid var(--line); }
.grow.gcab { border-top: 0; background: var(--surface); position: sticky; top: 0; z-index: 2; }
.glab { padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; border-right: 1px solid var(--line); min-width: 0; }
.gnome { flex: 1 1 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ggrupo { cursor: pointer; } .ggrupo:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.ggrupo:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ggrupo.gatraso .glab { box-shadow: inset 3px 0 0 var(--erro); }
.gchev { width: 12px; color: var(--muted); } .ggrupo .gnome { flex-basis: calc(100% - 20px); }
.gitem { background: color-mix(in srgb, var(--surface) 60%, transparent); } .gitem .glab { padding-left: 30px; } .gitem .gnome { font-size: 12px; }
.gtrilha { position: relative; min-height: 34px; }
.gregua { min-height: 30px; }
.gtick { position: absolute; top: 4px; transform: translateX(-1px); border-left: 1px solid var(--line); padding-left: 3px; font-size: 11px; color: var(--muted); height: 22px; white-space: nowrap; }
.gtick b { color: var(--text); margin-right: 3px; font-weight: 600; }
.gseg { position: absolute; top: 11px; height: 12px; border-radius: 3px; }
.gitem .gseg { top: 14px; height: 6px; }
.gapr { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.gcot { background: var(--accent); }
.gent { background: var(--aviso); } .gent.fraco { opacity: .45; }
.gfol { background: color-mix(in srgb, var(--line) 80%, var(--muted)); }
.gins { background: var(--ok); }
.gmarco { position: absolute; top: 6px; width: 2px; height: 22px; background: var(--erro); }
.gdiam { position: absolute; top: 11px; width: 10px; height: 10px; background: var(--aviso); transform: translateX(-5px) rotate(45deg); border-radius: 2px; }
.ghoje { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--accent); z-index: 1; }
.glegenda { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); min-width: 860px; }
.glegenda span { display: inline-flex; align-items: center; gap: 5px; }
.glegenda i { display: inline-block; width: 16px; height: 8px; border-radius: 2px; }
.glegenda .gmarcoL { width: 2px; height: 12px; background: var(--erro); } .glegenda .ghojeL { width: 0; height: 12px; border-left: 2px dashed var(--accent); }

/* terceirizados: orçamento e Prevision */
.tbar { position: relative; overflow: visible; }
.tbar b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--accent); }
.qtab tr.talerta td:first-child { box-shadow: inset 3px 0 0 var(--aviso); }
.qtab select[data-c="orc"], .qtab select[data-c="tarefa"] { max-width: 240px; }

/* ponto: dias sem marcação, ocorrência e excluir */
.ptab tr.psem td { color: var(--muted); } .ptab tr.pocorr td { background: color-mix(in srgb, var(--aviso) 7%, transparent); }
.pexcl { width: auto; min-height: 24px; font-size: 12px; margin-left: 6px; padding: 0 6px; }
.pmot { max-width: 140px; margin-left: 4px; }

.soldata input[type=date] { font: inherit; font-size: 12px; padding: 2px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.soldata { white-space: nowrap; }
.gsol { position: absolute; top: 10px; width: 8px; height: 12px; background: var(--erro); border-radius: 2px; transform: translateX(-4px); }
.gsol.prog { background: var(--accent); }

/* pedidos programados (pedido do mês) */
.solpeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 14px; }
.solped { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; }
.solped.atr { border-left-color: var(--erro); }
.solped-cab { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gped { position: absolute; top: 7px; width: 12px; height: 12px; background: var(--accent); transform: translateX(-6px) rotate(45deg); border: 2px solid var(--bg, var(--surface)); z-index: 1; }
.glegenda .gpedL { width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }

.solped .btn { width: auto; justify-self: start; min-height: 28px; font-size: 13px; }
.solpedtab { margin-bottom: 14px; }
.solconfchk { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; margin-top: 2px; } .solconfchk input { width: 14px; height: 14px; accent-color: var(--ok); }

.solnova { border: 1px dashed var(--accent); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 8px; }

/* pedido editável */
.solpedit td { vertical-align: top; } .solpedit select { max-width: 220px; }
.solpedit input[type=date] { font: inherit; font-size: 12px; padding: 2px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.solpedac { white-space: nowrap; } .solpedac .btn { width: auto; min-height: 26px; font-size: 12px; padding: 0 6px; }

.eobras { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; padding: 8px 0 4px; font-size: 13px; }
.eobras label { display: flex; gap: 6px; align-items: center; } .eobras input { width: 15px; height: 15px; accent-color: var(--accent); }
.eobras .qacoes { grid-column: 1 / -1; } .eobras .btn { width: auto; }

/* diário de obra para o Sienge */
#dSienge h4 { margin: 12px 0 6px; font-size: 14px; }
.dsturno { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .dsturno input, .dsturno select { width: auto; }
.dsfotos { display: flex; flex-wrap: wrap; gap: 8px; }
.dsfotos label { display: inline-flex; flex-direction: column; gap: 2px; font-size: 12px; cursor: pointer; }
.dsfotos img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; }
#dSienge textarea { width: 100%; }

/* diário de obra: perguntas e selfie */
.dcclima { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dcclima label { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.dcclima input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.dcgrade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dselfie { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; vertical-align: middle; margin-left: 4px; }
.cf-sw { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; font-size: 14px; } .cf-sw input { width: 18px; height: 18px; accent-color: var(--accent); }

.enotif { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); } .enotif input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ---------- fichas HINC ---------- */
.hgrade { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .hgrade { grid-template-columns: 1fr; } }
.hlista { display: flex; flex-direction: column; gap: 6px; }
.hlista button { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--text); cursor: pointer; }
.hlista button[aria-current] { border-color: var(--accent); }
.hlista .caption { display: block; margin-top: 2px; }
.hed { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; }
.hed .linha { display: flex; gap: 12px; flex-wrap: wrap; } .hed .linha .campo { flex: 1; min-width: 150px; }
.hed .campo input, .hed .campo select, .hed .campo textarea { width: 100%; }
.hpessoas { display: flex; flex-wrap: wrap; gap: 4px 16px; max-height: 140px; overflow: auto; font-size: 14px; }
.hck { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; } .hck input[type=text] { flex: 1; }
.hconf { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.hconf ul { margin: 4px 0 8px 18px; padding: 0; } .hconf .e { color: var(--erro); } .hconf .a { color: var(--aviso); }
.hconf table { width: 100%; border-collapse: collapse; font-size: 13px; } .hconf td { border-top: 1px solid var(--line); padding: 4px 6px; vertical-align: top; }
.hbotoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* histórico do insumo na solicitação */
.solhist { font-size: 12px; color: var(--aviso); margin-top: 3px; line-height: 1.35; }
.solhist.nunca { color: var(--muted); }
.solhist.cheio { color: var(--erro); font-weight: 600; }

/* menu agrupado */
.nav-grupo { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }
.nav-grupo:first-child { padding-top: 4px; }
/* seletores do cabeçalho na mesma linha dos botões */
.cab .acoes .entrada { width: auto; min-width: 200px; max-width: 320px; }
@media (max-width: 760px) { .nav-grupo { display: none; } .cab .acoes .entrada { width: 100%; max-width: none; } }

/* fichas HINC: responsáveis e predecessoras como etiquetas */
.hescolha { display: flex; flex-direction: column; gap: 8px; }
.hchips { display: flex; flex-wrap: wrap; gap: 6px; }
.hchips:empty::before { content: "Ninguém escolhido"; color: var(--muted); font-size: 13px; }
.hchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--surface-2);
  border: 1px solid var(--line); font-size: 14px; }
.hchip.fixo { padding-right: 12px; border-color: var(--accent); }
.hchip small { color: var(--accent); font-size: 11px; }
.hchip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 99px; }
.hchip button:hover { color: var(--erro); background: var(--surface); }
.hescolha select.entrada { max-width: 360px; }
.hed .linha { align-items: flex-end; }
.hed .campo input[type=checkbox] { width: 18px; height: 18px; }
.hed .campo label small { margin-left: 6px; }
.hed .hmarco { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; color: var(--text); }
.hed .hpct { display: flex; gap: 6px; align-items: center; } .hed .hpct input { flex: 1; } .hed .hpct .btn { white-space: nowrap; padding: 7px 10px; }

/* menu Solicitações */
.smbarra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; } .smbarra .caption { margin-right: auto; }
.smlista { display: flex; flex-direction: column; gap: 8px; }
.smsc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.smsc.nova { border-left: 3px solid var(--aviso); }
.smsc-cab { display: grid; grid-template-columns: 130px minmax(160px, 1fr) auto; gap: 4px 16px; width: 100%; padding: 12px 16px; background: none; border: 0;
  color: var(--text); text-align: left; cursor: pointer; align-items: center; }
.smsc-cab:hover { background: var(--surface-2); border-radius: var(--radius); }
.smsc-n { font-weight: 600; } .smsc-r { grid-column: 1 / -1; }
.smsc .qtab { padding: 0 16px 12px; }
.smcab { gap: 12px; } .smcab .campo { flex: 1; min-width: 180px; }
.avtab select, .avtab input[type=date] { max-width: 220px; }
.avbusca { margin: 10px 0; max-width: 640px; } .avbusca .cf-res { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.avbusca .cf-res button { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 6px 10px; color: var(--text); cursor: pointer; }
.avbusca .cf-res button:hover { border-color: var(--accent); }
.chip .cont { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--aviso); color: var(--on-accent); font-size: 11px; line-height: 16px; text-align: center; margin-left: 4px; }
@media (max-width: 760px) { .smsc-cab { grid-template-columns: 1fr; } }
.smels table, .avtab { width: 100%; } .smels td, .smels th { padding: 8px 10px; text-align: left; }

/* menu Projetos */
.pjlista { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); } .pjlista li + li { border-top: 1px solid var(--line); }
.pjgrupo { margin-bottom: 18px; } .pjgrupo h3 small { color: var(--muted); font-weight: 400; }
.pjarq { display: flex; align-items: center; gap: 12px; padding: 6px 16px; min-height: 48px; }
.pjarq .pjnome { flex: 1; min-width: 0; overflow-wrap: anywhere; } .pjarq .meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pjarq .btn { min-height: 32px; padding: 4px 12px; width: auto; } .pjfmt { min-width: 72px; text-align: center; }
.pj-pdf { color: var(--erro); border-color: var(--erro); } .pj-dwg, .pj-dxf { color: var(--accent); border-color: var(--accent); }
.pj-ifc { color: var(--sucesso); border-color: var(--sucesso); } .pj-skp, .pj-rvt { color: var(--aviso); border-color: var(--aviso); }
@media (max-width: 760px) { .pjarq { flex-wrap: wrap; } .pjarq .meta, .pjsem { width: 100%; } }
.smfiltro { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.smfiltro .entrada { width: auto; min-width: 0; } .smfiltro select.entrada { min-width: 240px; max-width: 360px; }
.smfiltro label { display: inline-flex; align-items: center; gap: 6px; } .smfiltro .btn { min-height: 32px; padding: 4px 10px; }
@media (max-width: 760px) { .smfiltro select.entrada { width: 100%; max-width: none; } }
.qper { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qper > label:first-child { margin-right: 12px; } .qper .entrada { width: auto; min-height: 30px; padding: 4px 8px; }
.qper label.caption { display: inline-flex; gap: 6px; align-items: center; }
.qper .chip { border: 1px solid var(--line); }
/* terceirizados: resumo por apropriação */
#tApropObras .sit { margin-top: 14px; } #tApropObras summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.taprop td.neg { color: var(--erro); font-weight: 600; } .taprop .ttot td { border-top: 2px solid var(--line); }
.tbar.aprop { position: relative; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; min-width: 120px; }
.tbar.aprop i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sucesso); border-radius: 99px; }
.tbar.aprop i.c { background: color-mix(in srgb, var(--accent) 45%, transparent); }
/* WhatsApp: abas e busca na agenda */
.wabas { margin: 6px 0 14px; } .wabas .chip .cont { background: var(--aviso); }
.agbusca { position: relative; margin: 6px 0; max-width: 520px; }
.agres { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.agres button { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 6px 10px; color: var(--text); cursor: pointer; }
.agres button:hover { border-color: var(--accent); }
[data-wpainel] > h2.subtitulo:first-child { margin-top: 4px; }
.subtitulo2 { font-size: 15px; margin: 14px 0 4px; }
#eLista li { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.ponto-dia { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
#eLista li .btn { width: auto; min-height: 32px; padding: 4px 12px; flex: none; }
#eLista li .ele { min-width: 160px; }
.tapsel { margin-top: 3px; max-width: 360px; }
