/* SeaConstrux — tema padrão SeaTech (MKT-001 / MKT-CONSTRUX-001)
   Primária #C59A11 · Apoio #8A6C0C · "Sea" em preto (branco no escuro) · fundos neutros (preto/grafite e off-white) · Poppins */
@font-face { font-family: Inter; src: url(/fonts/Inter-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-SemiBold.woff) format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Light.woff) format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Bold.woff) format('woff'); font-weight: 600 700; font-display: swap; }

:root {
  --ouro: #C59A11; --ouro-escuro: #8A6C0C; --ouro-claro: #F6EBC6; --ouro-fundo: #FBF6E6;
  --escuro: #0E0E11; --escuro-2: #1C1C21; --apoio: #8A6C0C; 
  --ok: #0E9F6E; --ok-fundo: #E3F6EE; --atencao: #C27803; --atencao-fundo: #FDF2DC; --perigo: #D92D20; --perigo-fundo: #FDECEA; --info: #4A4A52; --info-fundo: #EFEEEA;
  --fundo: #F6F5F2; --card: #FFFFFF; --texto: #18181B; --texto-2: #5C5C64; --texto-3: #8E8E95; --borda: #E7E5E0; --borda-2: #D4D1C9;
  --sombra: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --raio: 12px; --raio-p: 8px; --side: 256px;
  --fonte: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fonte-titulo: Poppins, Inter, system-ui, sans-serif;
}
[data-tema="escuro"] {
  --fundo: #0B0B0D; --card: #141417; --texto: #EDEDED; --texto-2: #A8A8AE; --texto-3: #76767D; --borda: #26262B; --borda-2: #35353B;
  --ouro-fundo: #2A230C; --ouro-claro: #3A2F0E; --ok-fundo: #0C2A22; --atencao-fundo: #2E2208; --perigo-fundo: #33110F; --info-fundo: #1E1E22; --info: #B5B5BC;
  --sombra: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--fonte); font-size: 14px; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
a { color: var(--ouro-escuro); text-decoration: none; } a:hover { text-decoration: underline; }
[data-tema="escuro"] a { color: var(--ouro); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; font-family: var(--fonte-titulo); }
.kpi .val { font-family: var(--fonte-titulo); }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; } h4 { font-size: 13px; }
small, .p { font-size: 12px; color: var(--texto-2); }
.muted { color: var(--texto-3); }
hr { border: 0; border-top: 1px solid var(--borda); margin: 16px 0; }
::selection { background: var(--ouro-claro); }

/* ---------- Splash (padrão SeaTech: símbolo gira, nome abre, barra) ---------- */
#splash { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(160deg, #FFFFFF 0%, #FBF7EA 60%, #F6EDCF 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .35s, visibility .35s; --h: 64px; }
[data-tema="escuro"] #splash { background: linear-gradient(160deg, #0B0B0D 0%, #141417 60%, #1C1A12 100%); }
#splash .marca { display: flex; align-items: center; height: var(--h); }
#splash .simbolo { height: var(--h); width: auto; filter: drop-shadow(0 6px 18px rgba(197,154,17,.35)); animation: sc-gira .95s cubic-bezier(.2,.9,.25,1.15) both; }
#splash .nome { overflow: hidden; height: calc(var(--h) * .62); width: 0; margin-left: 0; animation: sc-abre .75s cubic-bezier(.65,0,.25,1) .55s forwards; }
#splash .nome img { height: 100%; width: auto; display: block; }
#splash .nome img.logo-escuro { display: none; }
[data-tema="escuro"] #splash .nome img.logo-claro { display: none; } [data-tema="escuro"] #splash .nome img.logo-escuro { display: block; }
#splash .barra { position: relative; width: 132px; height: 3px; margin-top: 34px; border-radius: 3px; overflow: hidden; background: rgba(197,154,17,.16); opacity: 0; animation: sc-surge .4s ease 1.1s forwards; }
#splash .barra::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #C59A11, #8A6C0C); animation: sc-corre 1.1s ease-in-out 1.1s infinite; }
#splash .rodape { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); text-align: center; font: 500 11px/1.4 var(--fonte); letter-spacing: .08em; text-transform: uppercase; color: #9A968C; opacity: 0; animation: sc-surge .5s ease .9s forwards; }
#splash.saindo { opacity: 0; visibility: hidden; }
@keyframes sc-gira { from { transform: rotate(-200deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sc-abre { to { width: calc(var(--h) * .62 * 7.43); margin-left: calc(var(--h) * .18); } }
@keyframes sc-surge { to { opacity: 1; } }
@keyframes sc-corre { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { #splash .simbolo, #splash .nome, #splash .barra, #splash .rodape { animation: none; opacity: 1; } #splash .nome { width: calc(var(--h) * .62 * 7.43); margin-left: calc(var(--h) * .18); } }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: var(--side); background: var(--card); color: var(--texto-2); border-right: 1px solid var(--borda); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; transition: transform .2s; }
.side .marca { padding: 18px 18px 12px; display: flex; align-items: center; gap: 10px; }
.side .marca img { height: 30px; }
.logo-claro { display: inline; } .logo-escuro { display: none; }
[data-tema="escuro"] .logo-claro { display: none; } [data-tema="escuro"] .logo-escuro { display: inline; }
.side .empresa-sel { margin: 4px 12px 10px; padding: 9px 12px; border-radius: 10px; background: var(--fundo); border: 1px solid var(--borda); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--texto-2); }
.side .empresa-sel b { color: var(--texto); font-weight: 500; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.side .empresa-sel span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ouro-escuro); font-weight: 600; }
[data-tema="escuro"] .side .empresa-sel span { color: var(--ouro); }
.side nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.side .grupo { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); padding: 14px 10px 6px; font-weight: 500; }
.side a.item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--texto-2); font-size: 13.5px; text-decoration: none; position: relative; }
.side a.item:hover { background: var(--fundo); color: var(--texto); }
.side a.item.ativo { background: var(--ouro-fundo); color: var(--texto); font-weight: 500; }
.side a.item.ativo svg { color: var(--ouro-escuro); opacity: 1; }
[data-tema="escuro"] .side a.item.ativo svg { color: var(--ouro); }
.side a.item.ativo::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--ouro); }
.side a.item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.side a.item .cont { margin-left: auto; background: var(--ouro); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 600; padding: 1px 7px; }
.side .rodape { padding: 12px; border-top: 1px solid var(--borda); font-size: 11px; color: var(--texto-3); text-align: center; }
.principal { flex: 1; margin-left: var(--side); min-width: 0; display: flex; flex-direction: column; }
.topo { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 30; }
.topo .busca { flex: 1; max-width: 520px; position: relative; }
.topo .busca input { width: 100%; padding-left: 36px; background: var(--fundo); border-color: transparent; }
.topo .busca svg { position: absolute; left: 11px; top: 10px; width: 17px; color: var(--texto-3); }
.topo .acoes { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.btn-icone { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--texto-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.btn-icone:hover { background: var(--fundo); color: var(--texto); }
.btn-icone svg { width: 19px; height: 19px; }
.btn-icone .ponto { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--perigo); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ouro); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; cursor: pointer; flex: 0 0 34px; }
.conteudo { padding: 24px; max-width: 1480px; width: 100%; }
.menu-mobile { display: none; }
.aviso-topo { background: var(--atencao-fundo); color: var(--atencao); padding: 9px 24px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.aviso-topo a { color: inherit; font-weight: 600; text-decoration: underline; }

.cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cab .titulo small { display: block; margin-top: 3px; }
.cab .botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.trilha { font-size: 12px; color: var(--texto-3); margin-bottom: 6px; }
.trilha a { color: var(--texto-2); }

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }
.card > .card-cab { padding: 14px 18px; border-bottom: 1px solid var(--borda); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card > .card-corpo { padding: 18px; }
.card.pad { padding: 18px; }
.grade { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; } .g-1-2 { grid-template-columns: 1fr 2fr; }
.linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.linha.entre { justify-content: space-between; }
.coluna { display: flex; flex-direction: column; gap: 10px; }
.mt { margin-top: 16px; } .mt2 { margin-top: 24px; } .mb { margin-bottom: 16px; }
.dir { text-align: right; } .centro { text-align: center; } .nowrap { white-space: nowrap; }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi .rot { font-size: 12px; color: var(--texto-2); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--texto-3); }
.kpi.destaque { background: linear-gradient(135deg, #C59A11 0%, #A9840E 55%, #8A6C0C 100%); color: #fff; border: 0; box-shadow: 0 10px 26px -12px rgba(138,108,12,.6); }
.kpi.destaque .rot, .kpi.destaque .sub { color: rgba(255,255,255,.85); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--borda-2); background: var(--card); color: var(--texto); font: inherit; font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: var(--texto-3); }
.btn svg { width: 16px; height: 16px; }
.btn.prim { background: var(--ouro); border-color: var(--ouro); color: #fff; }
.btn.prim:hover { background: var(--ouro-escuro); border-color: var(--ouro-escuro); }
.btn.escuro { background: var(--escuro); border-color: var(--escuro); color: #fff; }
.btn.perigo { color: var(--perigo); border-color: #F3B9B4; }
.btn.perigo:hover { background: var(--perigo-fundo); }
.btn.leve { border-color: transparent; background: transparent; color: var(--texto-2); }
.btn.leve:hover { background: var(--fundo); color: var(--texto); }
.btn.peq { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.carregando { pointer-events: none; opacity: .75; }
.btn.carregando::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

input, select, textarea { font: inherit; font-size: 13.5px; color: var(--texto); background: var(--card); border: 1px solid var(--borda-2); border-radius: 8px; padding: 0 11px; height: 38px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { padding: 9px 11px; height: auto; min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(197,154,17,.18); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--ouro); vertical-align: middle; }
input[type=file] { padding: 7px; height: auto; }
label.campo { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--texto-2); font-weight: 500; }
label.campo .obrig { color: var(--perigo); }
label.campo .ajuda { font-weight: 400; color: var(--texto-3); font-size: 11.5px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.form > * { grid-column: span 12; }
.form .s2 { grid-column: span 2; } .form .s3 { grid-column: span 3; } .form .s4 { grid-column: span 4; } .form .s5 { grid-column: span 5; }
.form .s6 { grid-column: span 6; } .form .s7 { grid-column: span 7; } .form .s8 { grid-column: span 8; } .form .s9 { grid-column: span 9; }
.form .secao { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ouro-escuro); padding-top: 6px; border-top: 1px dashed var(--borda); }
[data-tema="escuro"] .form .secao { color: var(--ouro); }

.tabela-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-3); padding: 10px 12px; border-bottom: 1px solid var(--borda); white-space: nowrap; background: var(--card); position: sticky; top: 0; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.clicavel { cursor: pointer; }
table.t tbody tr:hover td { background: rgba(197,154,17,.045); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t tfoot td { font-weight: 600; border-top: 2px solid var(--borda); }
table.t .sub td { background: var(--fundo); }
.vazio { padding: 36px 16px; text-align: center; color: var(--texto-3); }
.vazio svg { width: 40px; height: 40px; opacity: .45; display: block; margin: 0 auto 10px; }
.vazio b { display: block; color: var(--texto-2); font-weight: 500; margin-bottom: 4px; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 500; background: var(--fundo); color: var(--texto-2); white-space: nowrap; border: 1px solid transparent; }
.tag.ok { background: var(--ok-fundo); color: var(--ok); } .tag.atencao { background: var(--atencao-fundo); color: var(--atencao); }
.tag.perigo { background: var(--perigo-fundo); color: var(--perigo); } .tag.info { background: var(--info-fundo); color: var(--info); }
.tag.ouro { background: var(--ouro-fundo); color: var(--ouro-escuro); } [data-tema="escuro"] .tag.ouro { color: var(--ouro); }
.tag.contorno { background: transparent; border-color: var(--borda-2); }

.progresso { height: 8px; border-radius: 6px; background: var(--fundo); overflow: hidden; position: relative; min-width: 60px; }
.progresso > i { display: block; height: 100%; border-radius: 6px; background: var(--ouro); transition: width .4s; }
.progresso.apoio > i { background: var(--apoio); } .progresso.ok > i { background: var(--ok); } .progresso.perigo > i { background: var(--perigo); }
.progresso .marca { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--escuro); }
[data-tema="escuro"] .progresso .marca { background: #fff; }
.barra-rot { display: flex; justify-content: space-between; font-size: 12px; color: var(--texto-2); margin-bottom: 5px; }

.abas { display: flex; gap: 2px; border-bottom: 1px solid var(--borda); margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.abas a { padding: 10px 14px; color: var(--texto-2); font-weight: 500; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.abas a:hover { color: var(--texto); }
.abas a.ativo { color: var(--texto); border-bottom-color: var(--ouro); }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filtros input, .filtros select { width: auto; min-width: 160px; }
.pilulas { display: inline-flex; background: var(--fundo); border-radius: 9px; padding: 3px; gap: 2px; }
.pilulas button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font: inherit; font-size: 12.5px; color: var(--texto-2); cursor: pointer; }
.pilulas button.ativo { background: var(--card); color: var(--texto); box-shadow: var(--sombra); font-weight: 500; }

.alerta { display: flex; gap: 10px; padding: 11px 13px; border-radius: 10px; font-size: 13px; align-items: flex-start; border: 1px solid transparent; }
.alerta svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.alerta b { display: block; font-weight: 600; }
.alerta.perigo { background: var(--perigo-fundo); color: var(--perigo); } .alerta.atencao { background: var(--atencao-fundo); color: var(--atencao); }
.alerta.info { background: var(--info-fundo); color: var(--info); } .alerta.ok { background: var(--ok-fundo); color: var(--ok); }
.alerta .txt { color: var(--texto); } .alerta .txt small { color: var(--texto-2); }

/* Modal */
.fundo-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: aparecer .15s; }
.modal { background: var(--card); border-radius: 14px; width: 100%; max-width: 620px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: subir .18s; }
.modal.larg { max-width: 920px; } .modal.xl { max-width: 1180px; } .modal.estreito { max-width: 440px; }
.modal .m-cab { padding: 16px 20px; border-bottom: 1px solid var(--borda); display: flex; align-items: center; justify-content: space-between; }
.modal .m-corpo { padding: 20px; }
.modal .m-rodape { padding: 14px 20px; border-top: 1px solid var(--borda); display: flex; justify-content: flex-end; gap: 8px; background: var(--fundo); border-radius: 0 0 14px 14px; }
@keyframes aparecer { from { opacity: 0; } } @keyframes subir { from { transform: translateY(12px); opacity: 0; } }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--escuro); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 380px; animation: subir .2s; border-left: 4px solid var(--ouro); }
.toast.erro { border-left-color: var(--perigo); } .toast.ok { border-left-color: var(--ok); }

.pop { position: absolute; background: var(--card); border: 1px solid var(--borda); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); z-index: 60; min-width: 220px; padding: 6px; }
.pop a, .pop button.op { display: flex; width: 100%; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 8px; color: var(--texto); border: 0; background: none; font: inherit; font-size: 13px; cursor: pointer; text-align: left; text-decoration: none; }
.pop a:hover, .pop button.op:hover { background: var(--fundo); }
.pop .sep { height: 1px; background: var(--borda); margin: 5px 0; }
.pop.notif { width: 380px; max-height: 480px; overflow-y: auto; padding: 0; }
.notif .n { padding: 12px 14px; border-bottom: 1px solid var(--borda); display: block; color: var(--texto); text-decoration: none; }
.notif .n.nova { background: var(--ouro-fundo); }
.notif .n b { font-weight: 500; display: block; font-size: 13px; }
.busca-res { position: absolute; top: 44px; left: 0; right: 0; }

/* Obras (cards) */
.obras-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.obra-card { cursor: pointer; transition: transform .12s, box-shadow .12s; display: flex; flex-direction: column; overflow: hidden; }
.obra-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.obra-card .capa { height: 92px; background: linear-gradient(135deg, #C59A11 0%, #A9840E 55%, #8A6C0C 100%); position: relative; padding: 14px 16px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; }
.obra-card .capa:not(.foto)::after { display: none; }
.obra-card .capa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.08)); }
.obra-card .capa > * { position: relative; z-index: 1; }
.obra-card .capa h3 { font-size: 15.5px; } .obra-card .capa small { color: #CFCDC7; }
.obra-card .capa .tags { position: absolute; top: 10px; right: 12px; display: flex; gap: 5px; }
.obra-card .corpo { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.obra-card .rodape { padding: 10px 16px; border-top: 1px solid var(--borda); display: flex; justify-content: space-between; font-size: 12px; color: var(--texto-2); }

/* Árvore (EAP) */
.arvore td.nome { min-width: 260px; }
.arvore .ind { display: inline-block; }
.arvore .seta { display: inline-flex; width: 18px; cursor: pointer; color: var(--texto-3); }
.arvore tr.pai td { font-weight: 500; }
.arvore tr.nivel0 td { background: rgba(0,0,0,.025); }
[data-tema="escuro"] .arvore tr.nivel0 td { background: rgba(255,255,255,.025); }
.input-pct { width: 70px; height: 30px; text-align: right; padding: 0 6px; }

/* Gantt */
.gantt { overflow-x: auto; border: 1px solid var(--borda); border-radius: 10px; }
.gantt table { border-collapse: collapse; width: max-content; min-width: 100%; }
.gantt td, .gantt th { border-bottom: 1px solid var(--borda); font-size: 12px; padding: 0; height: 32px; }
.gantt .rot { position: sticky; left: 0; background: var(--card); z-index: 2; padding: 0 10px; min-width: 300px; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--borda); }
.gantt .linha-tempo { position: relative; }
.gantt .barra { position: absolute; top: 8px; height: 16px; border-radius: 5px; background: rgba(138,108,12,.22); overflow: hidden; }
.gantt .barra > i { display: block; height: 100%; background: var(--apoio); }
.gantt .barra.pai { background: rgba(197,154,17,.25); height: 10px; top: 11px; } .gantt .barra.pai > i { background: var(--ouro); }
.gantt .barra.atrasada { outline: 2px solid var(--perigo); }
.gantt .hoje { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--perigo); opacity: .6; z-index: 1; }
.gantt th.mes { font-weight: 500; color: var(--texto-2); text-align: left; padding-left: 6px; border-left: 1px solid var(--borda); }

/* Gráficos */
.graf { width: 100%; display: block; }
.graf text { fill: var(--texto-3); font-size: 11px; font-family: var(--fonte); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--texto-2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Mapa comparativo */
.mapa td.melhor { background: var(--ok-fundo) !important; color: var(--ok); font-weight: 600; }
.mapa td.escolhido { outline: 2px solid var(--ouro); outline-offset: -2px; }
.mapa td.oferta { cursor: pointer; }

/* Galeria */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.galeria .foto { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--fundo); position: relative; cursor: pointer; }
.galeria .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria .foto .leg { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 11px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.soltar { border: 2px dashed var(--borda-2); border-radius: 12px; padding: 22px; text-align: center; color: var(--texto-2); cursor: pointer; transition: .15s; }
.soltar:hover, .soltar.sobre { border-color: var(--ouro); background: var(--ouro-fundo); }

/* Autenticação — mesmo layout das telas de acesso SeaTech (SeaDesk/SeaAgenda), nas cores do SeaConstrux */
.lg-shell { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr; overflow: hidden; background: linear-gradient(160deg, #FFFFFF 0%, #FBF7EA 55%, #F6EDCF 100%); }
.lg-brand { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 4rem 1.5rem 6.5rem; }
.lg-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(138,108,12,.13) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(at 35% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(at 35% 40%, #000 0%, transparent 70%); }
.lg-orb { position: absolute; border-radius: 9999px; display: none; }
.lg-orb-1 { width: 260px; height: 260px; top: -130px; left: 9%; background: linear-gradient(145deg, #D9AE22 0%, #8A6C0C 100%); box-shadow: 0 30px 60px -20px rgba(138,108,12,.5); }
.lg-orb-2 { width: 90px; height: 90px; top: 64px; left: calc(9% + 250px); background: linear-gradient(145deg, #FBF3D9, #F1DE9C); opacity: .9; }
.lg-ondas { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; }
.lg-conteudo { position: relative; z-index: 2; width: 100%; max-width: 34rem; text-align: center; }
.lg-logo { display: block; width: clamp(240px, 70vw, 340px); height: auto; margin: 0 auto; filter: drop-shadow(0 14px 28px rgba(14,14,17,.12)); }
.lg-logo.logo-escuro { display: none; } [data-tema="escuro"] .lg-logo.logo-claro { display: none; } [data-tema="escuro"] .lg-logo.logo-escuro { display: block; }
.lg-tagline { margin-top: 1rem; font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #8A6C0C; }
.lg-titulo { display: none; margin-top: 2.5rem; font: 700 2rem/1.2 var(--fonte-titulo); letter-spacing: -.02em; color: #18181B; }
.lg-titulo span { background: linear-gradient(135deg, #C59A11, #8A6C0C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-recursos { display: none; margin: 2rem 0 0; padding: 0; list-style: none; }
.lg-recurso { display: flex; align-items: center; gap: .9rem; text-align: left; }
.lg-recurso .ico { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #C59A11, #8A6C0C); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; box-shadow: 0 6px 14px -6px rgba(138,108,12,.55); }
.lg-recurso .ico svg { width: 20px; height: 20px; }
.lg-recurso b { display: block; font-size: .9rem; font-weight: 600; color: #27272A; }
.lg-recurso small { font-size: .8rem; color: #71717A; }
.lg-lado-form { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem 2.5rem; margin-top: -1px; background: linear-gradient(180deg, #17150F 0%, #111111 60%, #0A0A0A 100%); }
.lg-fundo-form { display: none; position: absolute; inset: 0 0 0 -170px; width: calc(100% + 170px); height: 100%; }
.lg-brilho { position: absolute; border-radius: 9999px; filter: blur(70px); pointer-events: none; }
.lg-brilho-1 { width: 380px; height: 380px; right: -60px; top: 12%; background: rgba(197,154,17,.28); }
.lg-brilho-2 { width: 300px; height: 300px; right: 30%; bottom: -80px; background: rgba(138,108,12,.25); }
.lg-caixa { position: relative; z-index: 10; width: 100%; max-width: 28rem; }
.lg-caixa.larga { max-width: 34rem; }
.lg-cartao { background: #fff; color: #18181B; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 40px 80px -20px rgba(0,0,0,.55), 0 12px 30px -10px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06); }
.lg-acento { height: 4px; width: 48px; border-radius: 9999px; background: linear-gradient(90deg, #C59A11, #8A6C0C); margin-bottom: 1.25rem; }
.lg-cartao h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; color: #18181B; }
.lg-cartao .sub { font-size: .875rem; color: #71717A; margin: 0 0 1.5rem; }
.lg-cartao label.campo { color: #3F3F46; font-size: .75rem; }
.lg-cartao input, .lg-cartao select { background: #fff; color: #18181B; border-color: #D4D4D8; height: 42px; }
.lg-cartao .com-icone { position: relative; }
.lg-cartao .com-icone > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #A1A1AA; pointer-events: none; }
.lg-cartao .com-icone input { padding-left: 36px; }
.lg-cartao .olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #A1A1AA; cursor: pointer; padding: 6px; display: flex; }
.lg-cartao .olho svg { width: 17px; height: 17px; }
.lg-cartao .btn.prim { height: 46px; font-weight: 600; box-shadow: 0 8px 18px -8px rgba(197,154,17,.7); }
.lg-cartao a { color: #8A6C0C; font-weight: 500; }
.lg-cartao .rodape-cartao { text-align: center; font-size: .78rem; color: #71717A; margin-top: 1.5rem; }
.lg-caps { display: none; margin-top: 6px; font-size: .75rem; color: #B45309; }
.lg-links { text-align: center; margin-top: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.55); display: grid; gap: .5rem; }
.lg-links a { color: rgba(255,255,255,.65); } .lg-links a:hover { color: #fff; }
.lg-tema { position: fixed; top: 1rem; right: 1rem; z-index: 30; width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(255,255,255,.85); color: #18181B; border: 1px solid rgba(14,14,17,.12); box-shadow: 0 6px 18px -6px rgba(14,14,17,.3); }
.lg-tema svg { width: 19px; height: 19px; }
.lg-subir { animation: lgSobe .6s cubic-bezier(.2,.7,.2,1) both; } .lg-subir-2 { animation-delay: .08s; } .lg-subir-3 { animation-delay: .16s; }
@keyframes lgSobe { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1024px) {
  .lg-shell { grid-template-columns: 1.08fr 1fr; }
  .lg-brand { padding: 4rem 6rem 4rem 4rem; }
  .lg-orb { display: block; }
  .lg-ondas { width: calc(100% + 220px); height: 210px; }
  .lg-conteudo { text-align: left; }
  .lg-logo { width: clamp(340px, 30vw, 470px); margin: 0 0 0 -.5rem; }
  .lg-titulo { display: block; } .lg-recursos { display: grid; gap: 1rem; }
  .lg-lado-form { background: transparent; padding: 3rem 3rem 3rem 5rem; }
  .lg-fundo-form { display: block; }
  .lg-tema { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(6px); }
}
@media (min-width: 640px) { .lg-cartao { padding: 2.5rem; } }
[data-tema="escuro"] .lg-shell { background: linear-gradient(160deg, #0B0B0D 0%, #141417 55%, #1A1812 100%); }
[data-tema="escuro"] .lg-dots { background-image: radial-gradient(rgba(227,199,102,.08) 1px, transparent 1px); }
[data-tema="escuro"] .lg-orb-2 { background: linear-gradient(145deg, #2A2614, #1E1B10); }
[data-tema="escuro"] .lg-tagline { color: #E3C766; }
[data-tema="escuro"] .lg-titulo, [data-tema="escuro"] .lg-recurso b { color: #EDEDED; }
[data-tema="escuro"] .lg-recurso small { color: #A1A1AA; }
[data-tema="escuro"] .lg-onda-a { opacity: .16; } [data-tema="escuro"] .lg-onda-b { opacity: .55; } [data-tema="escuro"] .lg-onda-linha { stroke-opacity: .15; }
[data-tema="escuro"] .lg-ondas path:nth-of-type(3) { fill: #141417; }
[data-tema="escuro"] .lg-fita-1 { opacity: .28; }
[data-tema="escuro"] .lg-cartao { background: #18181B; color: #EDEDED; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 12px 30px -10px rgba(0,0,0,.5), 0 0 0 1px rgba(197,154,17,.18); }
[data-tema="escuro"] .lg-cartao h1 { color: #EDEDED; } [data-tema="escuro"] .lg-cartao label.campo { color: #D4D4D8; }
[data-tema="escuro"] .lg-cartao input, [data-tema="escuro"] .lg-cartao select { background: #0F0F12; color: #EDEDED; border-color: #3F3F46; }
[data-tema="escuro"] .lg-cartao a { color: #E3C766; }
[data-tema="escuro"] .lg-tema { background: rgba(24,24,27,.85); color: #EDEDED; border-color: rgba(197,154,17,.3); }
.perfis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perfil-op { border: 2px solid var(--borda); border-radius: 12px; padding: 16px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 6px; background: var(--card); text-align: left; font: inherit; color: var(--texto); }
.perfil-op:hover { border-color: var(--ouro); }
.perfil-op.sel { border-color: var(--ouro); background: var(--ouro-fundo); }
.perfil-op svg { width: 28px; height: 28px; color: var(--ouro); }
.perfil-op b { font-size: 14.5px; } .perfil-op span { font-size: 12px; color: var(--texto-2); }
.lg-cartao .perfil-op { background: #fff; border-color: #E4E4E7; color: #18181B; } .lg-cartao .perfil-op span { color: #71717A; }
.lg-cartao .perfil-op.sel { background: #FBF6E6; border-color: #C59A11; }
[data-tema="escuro"] .lg-cartao .perfil-op { background: #0F0F12; border-color: #3F3F46; color: #EDEDED; } [data-tema="escuro"] .lg-cartao .perfil-op.sel { background: #241D08; border-color: #C59A11; }
.passos { display: flex; gap: 6px; margin-bottom: 18px; } .passos i { flex: 1; height: 4px; border-radius: 3px; background: #E4E4E7; } .passos i.on { background: var(--ouro); }

/* Portal */
.portal-topo { background: var(--card); color: var(--texto); padding: 16px 0; border-bottom: 1px solid var(--borda); box-shadow: 0 1px 0 rgba(197,154,17,.25); }
.ph-sub { color: var(--texto-3); } .ph-txt { color: var(--texto-2); } .ph-forte { color: var(--texto); }
.portal-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.portal-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #FFFFFF 0%, #FCF8EC 55%, #F6EDCF 100%); border: 1px solid var(--borda); color: var(--texto); border-radius: 16px; padding: 28px; margin: 22px 0; display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
.portal-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #C59A11, #8A6C0C); }
[data-tema="escuro"] .portal-hero:not(.foto) { background: linear-gradient(135deg, var(--card), #1C1A12); }
.portal-hero.foto { color: #fff; border: 0; } .portal-hero.foto .ph-sub { color: #A9A7A1; } .portal-hero.foto .ph-txt { color: #CFCDC7; } .portal-hero.foto .ph-forte { color: #fff; }
@media (max-width: 760px) { .portal-hero { grid-template-columns: 1fr; } }
.anel { width: 180px; height: 180px; }

/* Impressão de relatórios */
@media print {
  .side, .topo, .nao-imprimir, .abas, .toasts, .aviso-topo { display: none !important; }
  .principal { margin: 0 !important; } .conteudo { padding: 0 !important; max-width: none; }
  body { background: #fff; font-size: 11px; } .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .relatorio-cab { display: flex !important; }
}
.relatorio-cab { display: none; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ouro); padding-bottom: 10px; margin-bottom: 14px; }

/* Responsivo */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g-2-1, .g-1-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .side { transform: translateX(-100%); } .side.aberta { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .principal { margin-left: 0; } .menu-mobile { display: inline-flex; } .conteudo { padding: 16px; } .topo { padding: 0 12px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .form .s2, .form .s3, .form .s4, .form .s5, .form .s6, .form .s7, .form .s8, .form .s9 { grid-column: span 12; }
  .portal-hero { grid-template-columns: 1fr; } .pop.notif { width: 92vw; right: 4vw !important; }
}
