/* NauasX app-v3 — Início: usa o estilo dos módulos (/contratos/estilo.css) e só acrescenta o que é desta página */
.carregando { padding: 40px; color: var(--texto-3); text-align: center; }

/* ---------- login: boas-vindas | cartão | ilustração (desktop); marca + cartão (celular) */
body.pg-login { background-color: #f3f5f9;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 56, 100, .07) 1px, transparent 0),
    radial-gradient(900px 520px at 12% 0%, rgba(47, 111, 214, .08), transparent 70%), radial-gradient(700px 520px at 100% 100%, rgba(31, 56, 100, .07), transparent 70%);
  background-size: 22px 22px, auto, auto; }
.lg-pagina { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 32px clamp(16px, 5vw, 72px); max-width: 1440px; margin: 0 auto; box-sizing: border-box; }
.lg-boas { justify-self: end; max-width: 330px; color: var(--marinho); }
.lg-boas small { display: block; font-size: 15px; letter-spacing: 2.5px; text-transform: uppercase; color: #3d5072; font-weight: 500; }
.lg-boas h1 { margin: 10px 0 12px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: .5px; text-transform: none; font-weight: 700; color: var(--marinho); }
.lg-boas p { margin: 0; font-size: 18px; line-height: 1.45; color: #3d5072; }
.lg-meio { display: flex; justify-content: center; }
.lg-ilus { justify-self: start; width: 100%; max-width: 520px; }
.lg-ilus svg { width: 100%; height: auto; display: block; }
.lg-cx { width: 100%; max-width: 380px; background: #fff; border: 1px solid #e6eaf1; border-radius: 14px; box-shadow: 0 18px 50px rgba(16, 30, 60, .10); padding: 34px 32px 26px; display: grid; gap: 14px; }
.lg-marca { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 10px; }
.lg-marca img { border-radius: 11px; }
.lg-marca b { display: block; font-size: 23px; color: var(--marinho); letter-spacing: 1px; line-height: 1.1; font-weight: 800; }
.lg-marca span { display: block; font-size: 11.5px; color: #3d5072; letter-spacing: 2.2px; text-transform: uppercase; margin-top: 3px; font-weight: 600; }
.lg-tit { margin: 0 0 -2px; font-size: 15px; font-weight: 700; color: var(--texto-2); }
.lg-campo { display: grid; gap: 6px; font-size: 13px; color: var(--texto-2); font-weight: 600; }
.lg-cx .lg-rot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-campo input { height: 46px; border: 1px solid #d9dfe8; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 400; color: var(--texto); background: #f6f8fb; width: 100%; box-sizing: border-box; }
.lg-campo input::placeholder { color: #8a94a6; }
.lg-campo input:focus { outline: 3px solid var(--azul-claro); border-color: var(--azul); background: #fff; }
.lg-esq { justify-self: start; font-size: 14px; color: var(--texto-2); text-decoration: none; margin-top: 2px; }
.lg-esq:hover { color: var(--azul); text-decoration: underline; }
.lg-lembrar { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-2); font-weight: 600; cursor: pointer; }
.lg-lembrar input { width: 16px; height: 16px; accent-color: var(--marinho-2); margin: 0; }
.lg-btn { height: 48px !important; margin-top: 6px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 8px !important; }
.lg-cx .lg-btn { background: linear-gradient(180deg, #2a5a9e, var(--marinho)); border-color: var(--marinho); }
.lg-cx .lg-btn:hover { background: linear-gradient(180deg, #2f6fd6, #24467e); }
.lg-dev { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--texto-3); display: grid; gap: 2px; }
.lg-dev b { color: #56627a; font-size: 14px; letter-spacing: .5px; } .lg-dev span { font-size: 11.5px; }
.lg-erro { background: var(--vermelho-claro); color: var(--vermelho); border-radius: 10px; padding: 10px 12px; font-size: 14px; text-align: center; }
.lg-rod { color: var(--texto-3); font-size: 12.5px; margin-top: 18px; }
/* tablet: sem a ilustração */
@media (max-width: 1100px) {
  .lg-pagina { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); max-width: 900px; }
  .lg-ilus { display: none; }
}
/* celular: boas-vindas curtas em cima, cartão ocupando a largura */
@media (max-width: 720px) {
  .lg-pagina { grid-template-columns: 1fr; gap: 18px; padding: 28px 16px 24px; align-content: center; }
  .lg-boas { justify-self: center; text-align: center; max-width: 400px; }
  .lg-boas small { font-size: 12px; letter-spacing: 2px; } .lg-boas h1 { font-size: 26px; margin: 6px 0 6px; } .lg-boas p { font-size: 14.5px; }
  .lg-cx { padding: 26px 20px 20px; max-width: 420px; }
}

/* topo: conta com foto (igual aos módulos) */
.btn-topo.conta-topo { width: auto; padding: 0 8px 0 4px; gap: 8px; border-radius: 22px; }
.btn-topo.conta-topo .nome-topo { font-weight: 600; font-size: 14px; color: #fff; }
.btn-topo.conta-topo svg.ic { width: 16px; height: 16px; opacity: .8; }
.avatar.foto { overflow: hidden; background: #fff; padding: 0; } .avatar.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.m { width: 44px; height: 44px; font-size: 16px; }
.topo .marca { cursor: pointer; border-radius: 8px; padding: 4px 8px 4px 4px; }
.topo .marca:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.topo .marca svg.ic { width: 16px; height: 16px; opacity: .8; margin-left: -4px; }
.sis-cab { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; color: var(--texto-3); text-transform: uppercase; letter-spacing: .4px; }
.menu-susp a.sis-item { display: flex; gap: 12px; align-items: center; padding: 10px 16px; min-width: 290px; color: var(--texto); text-decoration: none !important; }
.menu-susp a.sis-item:hover { background: var(--fundo); }
.menu-susp a.sis-item small { display: block; color: var(--texto-3); font-size: 12px; font-weight: 400; }
.menu-susp a.sis-item.sel { background: var(--azul-claro); }
.sis-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--azul-claro); color: var(--marinho); display: grid; place-items: center; flex: none; }
.sis-item.sel .sis-ic { background: var(--marinho); color: #fff; }
.sis-atual { margin-left: auto; font-size: 11px; color: var(--marinho); font-weight: 700; }

/* ---------- resumo */
.esqueleto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.esqueleto i { height: 110px; border-radius: var(--raio); background: linear-gradient(90deg, #e8edf5 25%, #f4f7fb 50%, #e8edf5 75%); background-size: 200% 100%; animation: brilho 1.2s infinite; }
@keyframes brilho { to { background-position: -200% 0; } }
.cartao h2 { display: flex; align-items: center; gap: 8px; }
.cartao h2 svg.ic { width: 18px; height: 18px; color: var(--marinho); }
.kpi-lk { display: block; color: inherit; text-decoration: none !important; position: relative; overflow: hidden; }
a.kpi-lk[href]:hover { border-color: var(--azul); }
.kpi-lk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--borda); }
.kpi-cab { display: flex; justify-content: space-between; align-items: center; }
.kpi-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--fundo); }
.kpi-ic svg.ic { width: 18px; height: 18px; }
.kpi .val { font-size: clamp(19px, 1.8vw, 25px); white-space: nowrap; }
.kpi.k-verde::before { background: var(--verde); } .kpi.k-verde .kpi-ic { color: var(--verde); background: var(--verde-claro); }
.kpi.k-vermelho::before { background: var(--vermelho); } .kpi.k-vermelho .kpi-ic { color: var(--vermelho); background: var(--vermelho-claro); }
.kpi.k-azul::before { background: var(--azul); } .kpi.k-azul .kpi-ic { color: var(--azul); background: var(--azul-claro); } .kpi.k-azul .val { color: var(--marinho); }
.hub-atencao { margin-top: 16px; }
.hub-al { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.al { display: flex; align-items: center; gap: 12px; border: 1px solid var(--borda); border-radius: 10px; padding: 12px; color: var(--texto); text-decoration: none !important; min-width: 0; }
.al:hover { border-color: var(--azul); background: var(--fundo); }
.al-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--fundo); color: var(--texto-2); }
.al-txt { display: grid; min-width: 0; flex: 1; }
.al-txt span { font-size: 12.5px; color: var(--texto-2); } .al-txt b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-txt small { font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al > svg.ic { width: 16px; height: 16px; color: var(--texto-3); }
.al.vermelho .al-ic { background: var(--vermelho-claro); color: var(--vermelho); } .al.vermelho b { color: var(--vermelho); }
.al.ambar .al-ic { background: var(--ambar-claro); color: var(--ambar); } .al.ambar b { color: var(--ambar); }
.al.azul .al-ic { background: var(--azul-claro); color: var(--marinho); }
.al.verde .al-ic { background: var(--verde-claro); color: var(--verde); }
.hub-l2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-top: 16px; }
.hub-l3 { margin-top: 16px; }
.hub-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hub-cab h2 { margin: 0; } .hub-cab a { font-size: 13px; }
.leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--texto-2); }
.leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.leg i.e, .g-e { background: #2e9e63; fill: #2e9e63; } .leg i.s, .g-s { background: #d0605e; fill: #d0605e; }
.leg i.ep, .g-ep { background: #b9e2cb; fill: #b9e2cb; } .leg i.sp, .g-sp { background: #f2c4c3; fill: #f2c4c3; }
.g-svg { width: 100%; height: 240px; display: block; }
.g-lin { stroke: #eef1f6; stroke-width: 1; } .g-base { stroke: #cfd7e4; stroke-width: 1; }
.g-eixo { font-size: 10px; fill: var(--texto-3); }
.g-mes { font-size: 11px; fill: var(--texto-3); } .g-mes.atual { fill: var(--marinho); font-weight: 700; }
.g-atual { fill: var(--azul-claro); opacity: .7; }
.lista-hoje { display: grid; }
.lh { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f3f8; }
.lh:last-child { border-bottom: 0; }
.lh-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--azul-claro); color: var(--marinho); flex: none; }
.lh-ic svg.ic { width: 17px; height: 17px; }
.lh-txt { display: grid; flex: 1; min-width: 0; }
.lh-txt span { font-size: 13.5px; font-weight: 600; } .lh-txt small { font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lst { list-style: none; margin: 0; padding: 0; display: grid; }
.lst li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f3f8; min-width: 0; }
.lst li:last-child { border-bottom: 0; }
.lst .etq { font-size: 11px; padding: 1px 8px; flex: none; }
.lst-txt { display: grid; flex: 1; min-width: 0; }
.lst-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst-txt small { font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13.5px; }
.lst-v.r { color: var(--verde); } .lst-v.p { color: var(--vermelho); }

@media (max-width: 1100px) { .hub-kpis, .hub-al, .esqueleto { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .hub-l2 { grid-template-columns: 1fr; } .hub-l3 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 680px) { .hub-kpis, .hub-al, .hub-l3, .esqueleto { grid-template-columns: 1fr !important; } .g-svg { height: 200px; } }

/* ================================================================ moldura: caminho, quadros dos módulos e páginas sobrepostas */
.topo .marca { margin-right: 2px; }
.caminho { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.cm-volta { width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.cm-volta:hover:not(:disabled) { background: rgba(255,255,255,.22); }
.cm-volta:disabled { opacity: .35; cursor: default; }
.cm-volta svg.ic { width: 18px; height: 18px; }
.caminho ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0; overflow: hidden; }
.caminho li { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.caminho li > svg.ic { width: 14px; height: 14px; opacity: .55; flex: none; margin: 0 2px; color: #fff; }
.caminho li button { border: 0; background: none; color: rgba(255,255,255,.78); font: inherit; font-size: 14px; padding: 5px 8px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 0; }
.caminho li button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.caminho li button svg.ic { width: 15px; height: 15px; flex: none; }
.caminho li:not(.atual) button:hover { background: rgba(255,255,255,.12); color: #fff; }
.caminho li.atual button { color: #fff; font-weight: 600; cursor: default; }
.caminho li.cam button { background: rgba(255,255,255,.1); }
.caminho li.atual.cam button { background: rgba(255,255,255,.2); }

/* menu: telas do módulo aberto, logo abaixo dele */
.lateral .sub { margin: 2px 0 6px; border-left: 2px solid var(--azul-claro); margin-left: 30px; }
.lateral .sub a { padding: 7px 14px 7px 14px; font-size: 13.5px; gap: 10px; border-left: 0; }
.lateral .sub a svg.ic { width: 16px; height: 16px; }
.lateral .sub a.ativo { background: none; color: var(--marinho); font-weight: 700; }
.lateral .sub a.ativo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--marinho); margin-left: -18px; margin-right: 6px; flex: none; }
.lateral .sub-mais svg.ic { transition: transform .15s; } .lateral .sub-mais.aberto svg.ic { transform: rotate(180deg); }
body.recolhido .lateral .sub { margin-left: 0; border-left: 0; }
body.recolhido .lateral .sub a { justify-content: center; padding: 9px 0; }
body.recolhido .lateral .sub a.ativo::before, body.recolhido .lateral .sub-mais { display: none; }

/* quadros: cada módulo fica carregado e só troca a visibilidade */
#quadros { display: none; }
body.modo-quadro #quadros { display: block; }
body.modo-quadro .principal { display: none; }
iframe.quadro { position: fixed; top: 56px; left: var(--lateral); right: 0; bottom: 0; width: calc(100% - var(--lateral)); height: calc(100% - 56px); border: 0; background: var(--fundo); visibility: hidden; transition: left .15s, width .15s; }
iframe.quadro.vis { visibility: visible; }

/* páginas sobrepostas: cada uma desliza por cima da anterior; as de baixo aparecem como faixas à esquerda */
.camada { position: fixed; top: 56px; left: var(--lateral); right: 0; bottom: 0; z-index: 25; pointer-events: none; }
.camada-fundo { position: absolute; inset: 0; background: rgba(16, 30, 60, .28); opacity: 0; transition: opacity .18s; pointer-events: auto; cursor: pointer; }
.camada-folha { position: absolute; top: 0; bottom: 0; right: 0; left: calc(28px + (var(--n) - 1) * 22px); background: var(--fundo); box-shadow: -10px 0 30px rgba(16, 30, 60, .22); border-left: 1px solid var(--borda);
  display: flex; flex-direction: column; transform: translateX(40px); opacity: 0; transition: transform .18s ease-out, opacity .18s; pointer-events: auto; border-radius: 12px 0 0 0; overflow: hidden; }
.camada.aberta .camada-fundo { opacity: 1; } .camada.aberta .camada-folha { transform: none; opacity: 1; }
.camada + .camada .camada-fundo { background: rgba(16, 30, 60, .14); }
.camada-cab { height: 44px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 18px; background: #fff; border-bottom: 1px solid var(--borda); }
.camada-tit { flex: 1; font-weight: 600; color: var(--marinho); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-cam { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--texto-2); display: grid; place-items: center; cursor: pointer; }
.btn-cam:hover { background: var(--fundo); color: var(--texto); }
.btn-cam svg.ic { width: 18px; height: 18px; }
iframe.quadro-cam { flex: 1; width: 100%; border: 0; background: var(--fundo); }

@media (max-width: 860px) {
  iframe.quadro, .camada { left: 0; width: 100%; }
  .camada-folha { left: calc(10px + (var(--n) - 1) * 10px); }
  .caminho li:not(.atual):not(:nth-last-child(2)) { display: none; }
  .caminho li button span { max-width: 150px; }
  .topo .marca .txt { display: none; }
}
.lateral .sub a.lado { font-weight: 600; font-size: 14px; }
.lateral .sub a.lado.ativo { color: var(--marinho); }
.lateral .sub a.lado.ativo::before { display: none; }
.lateral .sub2 { margin: 0 0 4px 22px; border-left: 2px solid var(--azul-claro); }
.lateral .sub2 a { font-size: 13px; padding: 6px 12px; }
body.recolhido .lateral .sub2 { margin-left: 0; border-left: 0; }
.cm-volta[hidden] { display: none; }
.topo .cm-volta { margin-right: 2px; }
.caminho ol { margin-left: -6px; }

/* ================================================================ sino de notificações */
.btn-topo.sino { position: relative; }
.btn-topo.sino.tem svg.ic { animation: balanca 1.2s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes balanca { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.sino-n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--marinho); }
.menu-susp.sino-painel { width: min(420px, calc(100vw - 16px)); padding: 0; display: flex; flex-direction: column; max-height: min(620px, calc(100vh - 80px)); overflow: hidden; }
.sn-cab { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.sn-cab b { font-size: 16px; }
.sn-lidas { border: 0; background: none; color: var(--azul); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.sn-lidas:hover:not(:disabled) { background: var(--azul-claro); } .sn-lidas:disabled { color: var(--texto-3); cursor: default; }
.sn-filtros { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; border-bottom: 1px solid var(--borda); }
.sn-filtros button { border: 1px solid var(--borda); background: #fff; border-radius: 20px; padding: 4px 11px; font: inherit; font-size: 12.5px; color: var(--texto-2); cursor: pointer; white-space: nowrap; }
.sn-filtros button.sel { background: var(--marinho); border-color: var(--marinho); color: #fff; }
.sn-lista { overflow-y: auto; flex: 1; }
.sn-dia { position: sticky; top: 0; background: #f8f9fc; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--texto-3); padding: 6px 16px; border-bottom: 1px solid #eef1f6; }
.sn-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f3f8; background: #fff; padding: 10px 16px; font: inherit; color: var(--texto); cursor: default; position: relative; }
.sn-item.lk { cursor: pointer; } .sn-item.lk:hover { background: var(--fundo); }
.sn-item.novo { background: #f3f7ff; } .sn-item.novo::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--azul); }
.sn-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--fundo); color: var(--texto-2); }
.sn-ic svg.ic { width: 18px; height: 18px; }
.sn-ic.verde { background: var(--verde-claro); color: var(--verde); } .sn-ic.vermelho { background: var(--vermelho-claro); color: var(--vermelho); }
.sn-ic.azul { background: var(--azul-claro); color: var(--marinho); } .sn-ic.ambar { background: var(--ambar-claro); color: var(--ambar); }
.sn-txt { display: grid; flex: 1; min-width: 0; }
.sn-txt b { font-size: 13.5px; font-weight: 600; }
.sn-txt small { font-size: 12.5px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-dir { display: grid; justify-items: end; flex: none; }
.sn-dir b { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sn-dir b.pos { color: var(--verde); } .sn-dir b.neg { color: var(--vermelho); } .sn-dir b.neu { color: var(--texto-3); text-decoration: line-through; }
.sn-dir small { font-size: 11.5px; color: var(--texto-3); white-space: nowrap; }
.sn-vazio { padding: 30px 16px; text-align: center; color: var(--texto-3); margin: 0; }
.sn-rod { padding: 8px 16px; font-size: 11.5px; color: var(--texto-3); border-top: 1px solid var(--borda); background: #fbfcfe; }
.sn-toast { position: fixed; top: 64px; right: 16px; z-index: 60; width: min(360px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--borda);
  border-left: 4px solid var(--azul); border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 34px rgba(16, 30, 60, .18); cursor: pointer; transform: translateY(-10px); opacity: 0; transition: transform .25s, opacity .25s; }
.sn-toast.vis { transform: none; opacity: 1; }
@media (max-width: 860px) { .menu-susp.sino-painel { left: 8px !important; right: 8px !important; width: auto; } }
.sn-cab, .sn-filtros, .sn-rod { flex: none; }
.sn-lista { min-height: 0; }
.sn-filtros { flex-wrap: wrap; overflow: visible; }
/* NAUAS = Início: casinha no lugar do logo */
.topo .marca-casa { gap: 9px; }
.topo .marca-casa .casa-ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.topo .marca-casa .casa-ic svg.ic { width: 19px; height: 19px; color: #fff; opacity: 1; margin: 0; stroke-width: 2.2; }
.topo .marca-casa:hover .casa-ic { background: rgba(255,255,255,.24); }
.topo .marca .txt-home { display: none; white-space: nowrap; }
body.na-home .topo .marca .txt { display: none; }
body.na-home .topo .marca .txt-home { display: inline-flex; align-items: baseline; gap: 7px; }
.topo .marca .txt-home b { font-weight: 800; letter-spacing: .5px; font-size: 16px; }
.topo .marca .txt-home span { font-weight: 300; font-size: 15px; letter-spacing: .3px; opacity: .9; }
@media (max-width: 860px) { body.na-home .topo .marca .txt-home { display: inline-flex; } body.na-home .topo .marca .txt-home span { display: none; } }

/* números do Painel geral no mesmo desenho do painel de Vendas: compactos, mesma altura, o principal em destaque */
.hub-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hub-al { gap: 12px; margin-bottom: 18px; }
.hub-sec { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--texto); margin: 2px 0 10px; }
.hub-sec svg.ic { width: 18px; height: 18px; color: var(--ambar); }
.hk { display: block; position: relative; background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 14px 16px; min-width: 0; color: inherit; text-decoration: none !important; }
a.hk:hover { border-color: var(--azul); box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.hk .rot { font-size: 12px; color: var(--texto-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-right: 18px; }
.hk .val { font-size: 24px; font-weight: 700; color: var(--marinho); margin-top: 4px; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk .sub { font-size: 12.5px; color: var(--texto-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk > svg.ic { position: absolute; top: 14px; right: 12px; width: 16px; height: 16px; color: var(--texto-3); }
.hk-total { background: var(--marinho); border-color: var(--marinho); }
.hk-total .rot, .hk-total .sub { color: rgba(255,255,255,.78); } .hk-total .val { color: #fff; }
.hk-total.neg .val { color: #ffb4b4; } a.hk-total:hover { border-color: var(--marinho-2); }
.hk-verde .val { color: var(--verde); } .hk-vermelho .val { color: var(--vermelho); } .hk-ambar .val { color: var(--ambar); } .hk-azul .val { color: var(--marinho); }
@media screen and (max-width: 680px) { .hub-kpis { grid-template-columns: 1fr 1fr !important; gap: 8px; } .hub-kpis .hk-total { grid-column: 1 / -1; } .hk { padding: 12px; } .hk .val { font-size: 20px; } }
@media screen and (max-width: 680px) { .hub-kpis .hk:nth-child(4) { grid-column: 1 / -1; } .hub-al { grid-template-columns: 1fr 1fr !important; gap: 8px; } .hk-al .val { font-size: 18px; } }

/* faturamento no Painel geral: barra da meta (animada) e evolução de 12 meses */
.hub-fat { margin-bottom: 18px; }
.hub-meta .hm-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.hub-meta .hm-num b { font-size: 26px; color: var(--marinho); font-variant-numeric: tabular-nums; }
.hub-meta .hm-num span { color: var(--texto-2); }
.hub-meta .hm-num strong { margin-left: auto; font-size: 22px; color: var(--marinho); }
.hm-barra { position: relative; height: 22px; background: #edf1f7; border-radius: 999px; overflow: visible; }
.hm-enche { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; transition: width 1.6s cubic-bezier(.22,.9,.3,1);
  background-color: #2f6fd6; background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%, transparent);
  background-size: 28px 28px; animation: hm-listras 1.1s linear infinite; }
.hub-meta.no-ritmo .hm-enche { background-color: #2f6fd6; } .hub-meta.ok .hm-enche { background-color: #18a06b; } .hub-meta.atras .hm-enche { background-color: #e08a1e; }
.hub-meta.ok .hm-num strong { color: #18864b; } .hub-meta.atras .hm-num strong { color: #c26a00; }
.hm-esperado { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--marinho); border-radius: 2px; opacity: .55; }
.hm-sub { margin-top: 10px; font-size: 13.5px; color: var(--texto-2); }
@keyframes hm-listras { from { background-position: 0 0; } to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .hm-enche { transition: none; animation: none; } }
.leg i.fp, .hf-pilha i.fp { background: #2f6fd6; } .leg i.fs, .hf-pilha i.fs { background: #18a06b; } .leg i.fc, .hf-pilha i.fc { background: #f0a43a; }
.hf-meses { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding-top: 6px; }
.hf-mes { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.hf-mes b { font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; } .hf-mes span { color: var(--texto-2); }
.hf-col { height: 140px; width: 100%; display: flex; justify-content: center; align-items: flex-end; border-bottom: 1px solid var(--borda); }
.hf-pilha { width: 70%; max-width: 30px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.hf-pilha i { display: block; width: 100%; } .hf-pilha i:first-child { border-radius: 3px 3px 0 0; }
.hub-fat > * { min-width: 0; } .hf-meses { max-width: 100%; }
@media (max-width: 680px) { .hub-meta .hm-num b { font-size: 22px; } .hub-meta .hm-num strong { font-size: 19px; } .hf-mes { flex-basis: 30px; } .hf-mes b { font-size: 9.5px; } }
.hub-l2.hub-fat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .hub-l2.hub-fat { grid-template-columns: minmax(0, 1fr); } }
/* 12 meses cabem sem rolagem: valor de cada mês no passar do mouse */
.hf-mes { flex: 1 1 0; min-width: 0; } .hf-mes b { display: none; } .hf-meses { overflow: visible; } .hf-mes span { font-size: 10.5px; white-space: nowrap; }

/* metas do mês: um bloco por meta (vendas e lucro) */
.hm-bloco + .hm-bloco { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--borda); }
.hm-tit { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); }
.hm-tit small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hm-bloco .hm-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.hm-bloco .hm-num b { font-size: 24px; color: var(--marinho); font-variant-numeric: tabular-nums; }
.hm-bloco .hm-num span { color: var(--texto-2); }
.hm-bloco .hm-num strong { margin-left: auto; font-size: 20px; color: var(--marinho); }
.hm-bloco.ok .hm-enche { background-color: #18a06b; } .hm-bloco.atras .hm-enche { background-color: #e08a1e; } .hm-bloco.no-ritmo .hm-enche { background-color: #2f6fd6; }
.hm-bloco.ok .hm-num strong { color: #18864b; } .hm-bloco.atras .hm-num strong { color: #c26a00; }
@media (max-width: 680px) { .hm-bloco .hm-num b { font-size: 20px; } .hm-bloco .hm-num strong { font-size: 18px; } }

/* dica do Resultado do mês: bom, apertado ou ruim para o ponto do mês (aparece ao passar o mouse ou focar) */
.hk.tem-dica { position: relative; overflow: visible; }
.hk-dica { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: min(360px, 86vw); background: #fff; color: var(--texto);
  border: 1px solid var(--borda); border-left: 4px solid #2f6fd6; border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(15, 30, 60, .18); font-size: 13px; line-height: 1.45; text-transform: none; letter-spacing: 0; font-weight: 400; }
.hk-dica b { display: block; font-size: 14px; margin-bottom: 4px; } .hk-dica p { margin: 0 0 6px; } .hk-dica small { color: var(--texto-2); font-size: 11.5px; }
.hk-dica-bom { border-left-color: #18a06b; } .hk-dica-bom b { color: #18864b; }
.hk-dica-atencao { border-left-color: #e08a1e; } .hk-dica-atencao b { color: #c26a00; }
.hk-dica-ruim { border-left-color: #c94a4a; } .hk-dica-ruim b { color: #c94a4a; }
.hk.tem-dica:hover .hk-dica, .hk.tem-dica:focus .hk-dica, .hk.tem-dica:focus-within .hk-dica { display: block; }
.hk-sel { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 18px; }
.hk-sel-bom { background: #d9f3e5; color: #12703f; } .hk-sel-atencao { background: #ffe9c9; color: #8a4a00; } .hk-sel-ruim { background: #ffd9d9; color: #a32020; }

/* análise em todos os cartões do Painel */
.hk-sel-info { background: #e3ecfb; color: #1f4f9e; } .hk-dica-info { border-left-color: #2f6fd6; } .hk-dica-info b { color: #1f4f9e; }
.hub-kpis, .hub-al { overflow: visible; } .hk.tem-dica:hover { z-index: 41; }
.hub-al .hk.tem-dica .hk-dica { top: calc(100% + 6px); }
.hub-kpis .hk:nth-child(4n) .hk-dica, .hub-al .hk:nth-child(4n) .hk-dica { left: auto; right: 0; }
/* metas: mercadorias x serviços */
.hm-partes { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; }
.hm-partes i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hm-partes i.fp { background: #2f6fd6; } .hm-partes i.fs { background: #18a06b; } .hm-partes small { color: var(--texto-2); }

/* como se forma o faturamento */
.hub-comp { margin-bottom: 16px; } .hub-comp summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.hub-comp summary::-webkit-details-marker { display: none; } .hub-comp summary h2 { margin: 0; } .hub-comp summary .fraco { font-size: 12.5px; }
.hub-comp-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
.hub-comp-t td { padding: 7px 8px; border-bottom: 1px solid var(--borda); vertical-align: top; }
.hub-comp-t td:first-child { white-space: nowrap; font-weight: 600; } .hub-comp-t td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hub-comp-t td:last-child { font-size: 12.5px; }
.hub-comp-t i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hub-comp-t i.fp { background: #2f6fd6; } .hub-comp-t i.fs { background: #18a06b; } .hub-comp-t i.fc { background: #f0a43a; }
.hub-comp-t tr.sub td { background: #f3f7fd; } .hub-comp-t tr.tot td { background: #eaf1fb; border-bottom: 0; } .hub-comp-t tr.tot td:first-child, .hub-comp-t tr.tot td.num b { color: var(--marinho); }
.hub-comp-nota { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 12.5px; color: var(--texto-2); } .hub-comp-nota svg.ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
@media (max-width: 680px) { .hub-comp-t td:last-child { display: none; } }

/* faixa de versão nova */
.nova-versao { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  width: min(760px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--borda); border-left: 5px solid #2f6fd6; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 34px rgba(15, 30, 60, .22); }
.nova-versao .nv-txt { flex: 1 1 260px; font-size: 13.5px; } .nova-versao svg.ic { color: #2f6fd6; width: 20px; height: 20px; }
/* aviso de pedidos de liberação pendentes */
a.hub-lib { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: #fff4e5; border: 1px solid #f3c98b; color: var(--texto); text-decoration: none !important; }
a.hub-lib:hover { border-color: #e08a1e; } .hub-lib-ic svg.ic { width: 24px; height: 24px; color: #c26a00; }
.hub-lib-txt { flex: 1 1 260px; display: flex; flex-direction: column; } .hub-lib-txt b { color: #8a4a00; } .hub-lib-txt small { color: var(--texto-2); }

/* esqueci a senha */
.lg-link { display: block; text-align: center; margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.lg-txt { margin: 0 0 10px; font-size: 14px; color: var(--texto); } .lg-txt.fraco { color: var(--texto-2); font-size: 12.5px; margin-top: 10px; }
.lg-form { display: grid; gap: 12px; } .lg-vias { display: grid; gap: 8px; } .lg-vias .btn { height: 44px; justify-content: center; }
.lg-ok { display: flex; gap: 10px; align-items: flex-start; background: #e3f4ea; color: #12703f; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.lg-ok svg.ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* tela bloqueada */
#bloqueio { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(15, 30, 55, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.bloqueado #quadros, body.bloqueado #camadas, body.bloqueado .principal { filter: blur(6px); }
.blq-cx { width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 26px 24px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.blq-av .avatar { width: 64px; height: 64px; font-size: 22px; } .blq-nome { font-size: 17px; margin-top: 4px; }
.blq-sub { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2, #6b778a); font-size: 13px; margin-bottom: 6px; } .blq-sub svg { width: 15px; height: 15px; }
.blq-cx .lg-campo { width: 100%; text-align: left; } .blq-cx .lg-btn { width: 100%; }
.blq-erro { width: 100%; background: #fdecec; color: #b42318; border-radius: 8px; padding: 6px 10px; font-size: 13px; }

/* logo da Invycta: cartão do login, "Desenvolvido por" e Painel geral */
.lg-marca { flex-direction: column; gap: 6px; }
.lg-marca img { width: 200px; max-width: 70%; height: auto; border-radius: 0; }
.lg-marca span { font-size: 11px; letter-spacing: 3px; color: #3d5072; text-transform: uppercase; font-weight: 600; }
.lg-dev { margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--texto-3); }
.lg-dev img { width: 104px; height: auto; filter: grayscale(1); opacity: .55; }
.lg-dev span:last-child { font-size: 11.5px; }
.hub-tit-logo { justify-content: flex-start; gap: 18px; }
.hub-tit-logo .acoes { margin-left: auto; }
.hub-logo { height: 56px; width: auto; flex: none; }
/* tema escuro: o TECH azul-marinho some no fundo escuro; a versão com o TECH branco (30/11/2026) */
html[data-tema="escuro"] .hub-logo, html[data-tema="escuro"] .lg-marca img { content: url("/contratos/marcas/logo-empresa-escuro.png"); }
@media (max-width: 720px) { .hub-logo { height: 40px; } .hub-tit-logo { gap: 12px; } }
/* menu da foto: dados do RH */
.conta-rh { padding: 10px 16px 12px; border-bottom: 1px solid var(--borda); display: grid; gap: 6px; font-size: 13px; max-width: 320px; }
.conta-rh .crh-lin { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: baseline; }
.conta-rh .crh-lin span { color: var(--texto-3); font-size: 12px; } .conta-rh .crh-lin b { color: var(--texto); font-weight: 600; overflow-wrap: anywhere; }

/* ================================================================ BARRA SUPERIOR v2 (28/11/2026): clara, com empresa e filial à esquerda e os recursos à direita.
   Linha 1 (56 px): menu | Empresa / Filial logada | configurações, ajuda, notificações, mensagens, WhatsApp | tema claro/escuro | usuário.
   Linha 2 (40 px, a FAIXA): voltar, Início (NAUAS) e o caminho. Tudo que ficava a 56 px do topo desce para 96 px. */
body { --topo-1: 56px; --topo-h: 56px; }   /* barra de uma linha só (a faixa de 40 px saiu em 28/11/2026) */
.topo.topo-v2 { height: var(--topo-1); background: var(--cartao); color: var(--texto); border-bottom: 1px solid var(--borda); gap: 4px; padding: 0 12px 0 8px; box-shadow: 0 1px 2px rgba(16, 30, 60, .04); }
.topo-v2 .btn-topo { color: var(--texto-2); }
.topo-v2 .btn-topo:hover { background: var(--fundo); color: var(--texto); }
.topo-v2 .btn-topo svg.ic { width: 20px; height: 20px; }
.tp-emp { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; margin-left: 4px; font-size: 13.5px; color: var(--texto-2); line-height: 1.25; cursor: default; }
.tp-lin { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.tp-lin > span { overflow: hidden; text-overflow: ellipsis; }
.tp-lin b { font-weight: 500; color: var(--texto); }
.tp-lin svg.ic { width: 15px; height: 15px; flex: none; color: var(--texto-3); }
.tp-acoes { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.topo-v2 .tp-ic { width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 10px; }
.topo-v2 .tp-ic svg.ic { width: 19px; height: 19px; }
.topo-v2 .sino-n { top: 2px; right: 0; }
.tp-tema { display: flex; border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; height: 44px; margin-right: 8px; flex: none; background: var(--cartao); }
.tp-tema button { width: 52px; border: 0; background: none; color: var(--texto-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.tp-tema button:hover { background: var(--fundo); color: var(--texto); }
.tp-tema button.ativo { background: #0ea5e9; color: #fff; }
.tp-tema button svg.ic { width: 20px; height: 20px; }
.topo-v2 .btn-topo.conta-topo { padding: 0 8px 0 4px; height: 44px; }
.topo-v2 .btn-topo.conta-topo .nome-topo { color: var(--texto); font-weight: 600; font-size: 15px; }
.topo-v2 .avatar:not(.foto) { background: #0ea5e9; color: #fff; }
/* faixa de navegação */
.faixa { position: fixed; top: var(--topo-1); left: 0; right: 0; height: 40px; z-index: 29; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 10px; background: var(--fundo); border-bottom: 1px solid var(--borda); }
.faixa .marca { display: flex; align-items: center; gap: 8px; color: var(--marinho); font-weight: 700; font-size: 14px; letter-spacing: .4px; white-space: nowrap; padding: 3px 8px 3px 3px; border-radius: 8px; text-decoration: none; }
.faixa .marca:hover { background: var(--cartao); text-decoration: none; }
.faixa .marca .casa-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--azul-claro); display: grid; place-items: center; }
.faixa .marca .casa-ic svg.ic { width: 17px; height: 17px; color: var(--marinho); }
.faixa .marca .txt-home { display: none; }
body.na-home .faixa .marca .txt { display: none; }
body.na-home .faixa .marca .txt-home { display: inline-flex; align-items: baseline; gap: 6px; }
.faixa .marca .txt-home span { font-weight: 400; color: var(--texto-2); }
.faixa .cm-volta { width: 30px; height: 30px; background: var(--cartao); color: var(--texto-2); border: 1px solid var(--borda); }
.faixa .cm-volta:hover:not(:disabled) { background: var(--azul-claro); color: var(--marinho); }
.faixa .caminho li > svg.ic { color: var(--texto-3); }
.faixa .caminho li button { color: var(--texto-2); font-size: 13.5px; }
.faixa .caminho li:not(.atual) button:hover { background: var(--cartao); color: var(--texto); }
.faixa .caminho li.atual button { color: var(--texto); }
.faixa .caminho li.cam button { background: var(--azul-claro); }
.faixa .caminho li.atual.cam button { background: var(--azul-claro); color: var(--marinho); }
/* tudo que ficava logo abaixo do topo desce a altura da faixa */
.lateral { top: var(--topo-h); }
.principal { margin-top: var(--topo-h); min-height: calc(100vh - var(--topo-h)); }
iframe.quadro { top: var(--topo-h); height: calc(100% - var(--topo-h)); }
.camada { top: var(--topo-h); }
body.pg-login { --topo-h: 0px; }
/* janelas da barra (ajuda, mensagens, WhatsApp) */
.tp-pop { min-width: 300px; max-width: min(380px, calc(100vw - 16px)); padding-bottom: 6px; }
.tp-pop-cab { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; font-size: 15px; }
.tp-pop-sec { padding: 10px 16px 4px; font-size: 11.5px; font-weight: 700; color: var(--texto-3); text-transform: uppercase; letter-spacing: .4px; border-top: 1px solid var(--borda); margin-top: 4px; }
.tp-dica { padding: 5px 16px; font-size: 13.5px; color: var(--texto-2); display: flex; gap: 8px; align-items: center; }
.tp-dica svg.ic { width: 16px; height: 16px; flex: none; }
.tp-dica kbd { border: 1px solid var(--borda-forte); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font: 600 12px/18px inherit; background: var(--fundo); color: var(--texto); }
.tp-pop a.item svg.ic, .tp-pop button.item svg.ic { width: 18px; height: 18px; flex: none; color: var(--texto-2); }
.tp-msg { align-items: flex-start !important; }
.tp-msg span { display: grid; gap: 1px; min-width: 0; }
.tp-msg small { font-size: 12.5px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-pop-rod { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px 6px; border-top: 1px solid var(--borda); margin-top: 6px; font-size: 13px; }
.tp-zap-st { display: flex; align-items: center; gap: 8px; padding: 2px 16px 10px; font-size: 13.5px; }
.tp-zap-st:empty { display: none; }
.tp-zap-ponto { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--texto-3); }
.tp-zap-ponto.ok { background: #22c55e; } .tp-zap-ponto.off { background: #e5484d; }
/* tablet e celular: empresa numa linha só; ajuda, mensagens e WhatsApp continuam; configurações sai (está no menu) */
@media (max-width: 1100px) { .tp-fil { display: none; } .tp-emp { font-size: 13px; } }
@media (max-width: 860px) {
  body.menu-aberto .fundo-lateral { inset: var(--topo-h) 0 0 0; }
  .tp-emp .tp-lin > span { max-width: 34vw; }
  .tp-tema { height: 36px; margin-right: 4px; } .tp-tema button { width: 36px; }
  #b-config { display: none; }
  .topo-v2 .tp-ic { width: 34px; min-width: 34px; }
}
@media (max-width: 560px) {
  .tp-emp { display: none; }
  .tp-tema button:not(.ativo) { display: none; } .tp-tema button { width: 38px; }
  .topo-v2 .btn-topo.conta-topo svg.ic:last-child { display: none; }
}

/* ================================================================ SEGUNDO FATOR (28/11/2026): aviso de IP estrangeiro, código depois da senha, ativação no menu */
.lg-aviso { display: flex; gap: 10px; align-items: flex-start; background: var(--ambar-claro); color: #7a4d06; border: 1px solid #f0d49a; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; }
.lg-aviso svg.ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ambar); }
.lg-txt { margin: 0; font-size: 14px; color: var(--texto-2); line-height: 1.45; }
.lg-campo input.lg-codigo { font-size: 26px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; height: 56px; }
.lg-erro[hidden] { display: none; }
.conta-2fa { padding: 10px 16px; border-bottom: 1px solid var(--borda); font-size: 13.5px; }
.conta-2fa:empty { display: none; }
.c2fa-lin { display: flex; align-items: center; gap: 8px; }
.c2fa-lin > span { flex: 1; }
.c2fa-lin svg.ic { width: 17px; height: 17px; color: var(--texto-2); flex: none; }
.c2fa-on { color: var(--verde); } .c2fa-off { color: var(--texto-3); }
.c2fa-bt { height: 30px !important; padding: 0 12px !important; font-size: 13px !important; }
.c2fa-dica { font-size: 12px; margin-top: 6px; line-height: 1.4; }
.c2fa-fundo { position: fixed; inset: 0; z-index: 200; background: rgba(16, 30, 60, .45); display: grid; place-items: center; padding: 16px; }
.c2fa-cx { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cartao); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; }
.c2fa-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--borda); font-size: 16px; }
.c2fa-corpo { padding: 16px 20px; display: grid; gap: 12px; font-size: 14px; color: var(--texto-2); }
.c2fa-corpo p { margin: 0; }
.c2fa-passos { margin: 0; padding-left: 20px; display: grid; gap: 4px; line-height: 1.45; }
.c2fa-qr { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 10px; width: 200px; height: 200px; margin: 0 auto; border: 1px solid var(--borda); }
.c2fa-qr svg { width: 180px; height: 180px; }
.c2fa-chave { text-align: center; font-size: 12.5px; } .c2fa-chave code { display: inline-block; margin-top: 4px; font-size: 13px; letter-spacing: 1px; color: var(--texto); background: var(--fundo); padding: 2px 6px; border-radius: 5px; user-select: all; }
.c2fa-rod { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--borda); }
.c2fa-aviso { position: fixed; top: calc(var(--topo-h, 96px) + 10px); left: 50%; transform: translateX(-50%); z-index: 210; background: #12301f; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }
html[data-tema="escuro"] .lg-aviso { color: #f0cf8e; border-color: #5a4520; }

/* crédito da base de países DB-IP Lite (licença CC BY 4.0): no rodapé da entrada e na Ajuda */
.lg-dev .lg-credito, .lg-credito { font-size: 10.5px; color: var(--texto-3); text-decoration: none; opacity: .85; margin-top: 2px; }
.lg-credito:hover { text-decoration: underline; color: var(--texto-2); }
.tp-credito { font-size: 11.5px; border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 8px; }
.tp-credito a { color: inherit; }

/* ================================================================ MENU DO NOME simples e menor (28/11/2026) */
.menu-susp.conta-menu { width: 300px; max-width: calc(100vw - 16px); min-width: 0; padding: 4px 0; }
.conta-menu .cm-cab { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--borda); }
.conta-menu .cm-cab .avatar { width: 36px; height: 36px; flex: none; font-size: 14px; }
.conta-menu .cm-quem { min-width: 0; display: grid; line-height: 1.3; }
.conta-menu .cm-quem b { font-size: 13.5px; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-menu .cm-quem small { font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-menu .conta-2fa { padding: 6px 14px; font-size: 13px; }
.conta-menu .c2fa-lin svg.ic { width: 16px; height: 16px; }
.conta-menu .c2fa-bt { height: 26px !important; padding: 0 10px !important; font-size: 12.5px !important; }
.conta-menu button.item, .conta-menu a.item { padding: 8px 14px; gap: 10px; font-size: 13.5px; }
.conta-menu .item svg.ic { width: 17px; height: 17px; }
.conta-menu .cm-sep { border-top: 1px solid var(--borda); margin: 4px 0; }
.conta-menu .cm-mais { border-bottom: 1px solid var(--borda); }
.conta-menu .cm-mais summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13.5px; color: var(--texto); cursor: pointer; }
.conta-menu .cm-mais summary::-webkit-details-marker { display: none; }
.conta-menu .cm-mais summary:hover { background: var(--fundo); }
.conta-menu .cm-mais summary span { flex: 1; }
.conta-menu .cm-mais summary svg.ic { width: 17px; height: 17px; }
.conta-menu .cm-mais summary svg.ic:last-child { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform .15s; opacity: .6; }
.conta-menu .cm-mais[open] summary svg.ic:last-child { transform: none; }
.conta-menu .cm-mais .sis-cab { padding: 6px 14px 2px 41px; font-size: 11px; }
.conta-menu .cm-mais a.item { padding: 7px 14px 7px 41px; font-size: 13px; }
.conta-menu .cm-mais a.item svg.ic { display: none; }

/* ================================================================ BARRA SUPERIOR v3 (28/11/2026): volta a barra escura de uma linha (caminho junto),
   com os botões novos: configurações, ajuda, notificações, mensagens, WhatsApp, tema claro/escuro e usuário. Sem empresa/filial. */
.topo-v3 .caminho { flex: 1; }
.topo-v3 .tp-acoes { display: flex; align-items: center; gap: 0; margin: 0 6px 0 8px; flex: none; }
.topo-v3 .tp-ic { width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 10px; color: rgba(255, 255, 255, .85); }
.topo-v3 .tp-ic:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topo-v3 .tp-ic svg.ic { width: 19px; height: 19px; }
.topo-v3 .sino-n { top: 2px; right: 0; }
.topo-v3 .tp-tema { display: flex; background: transparent; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; overflow: hidden; height: 36px; margin-right: 6px; flex: none; }
.topo-v3 .tp-tema button { width: 40px; border: 0; background: none; color: rgba(255, 255, 255, .75); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.topo-v3 .tp-tema button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topo-v3 .tp-tema button.ativo { background: #0ea5e9; color: #fff; }
.topo-v3 .tp-tema button svg.ic { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .topo-v3 #b-config, .topo-v3 #b-ajuda { display: none; }
  .topo-v3 .tp-ic { width: 34px; min-width: 34px; }
  .topo-v3 .tp-tema button:not(.ativo) { display: none; } .topo-v3 .tp-tema button { width: 34px; }
  .topo-v3 .tp-acoes { margin: 0 2px; }
}
/* celular: o caminho precisa de espaço; tema vai para o menu do nome e o WhatsApp (com as mensagens dos clientes) sai da barra */
.conta-menu .cm-so-cel { display: none; }
@media (max-width: 560px) {
  .topo-v3 .tp-tema, .topo-v3 #b-zap { display: none; }
  .conta-menu .cm-so-cel { display: flex; }
}

/* submenu do WhatsApp: subtítulos das mensagens dos clientes */
.tp-pop-sub { padding: 6px 16px 2px; font-size: 12px; font-weight: 600; color: var(--texto-2); }

/* aviso de mensagem nova do Chat (canto de cima, à direita, abaixo da barra) */
.chat-avisos { position: fixed; top: 64px; right: 16px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.chat-aviso { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 12px 12px 14px; border: 1px solid var(--borda); border-left: 4px solid #0ea5e9;
  border-radius: 12px; background: var(--cartao, #fff); color: var(--texto); box-shadow: 0 10px 30px rgba(15, 23, 42, .18); text-align: left; cursor: pointer; font: inherit;
  animation: chat-aviso-entra .25s ease-out; transition: opacity .25s, transform .25s; }
.chat-aviso.cli { border-left-color: #25d366; }
.chat-aviso:hover { box-shadow: 0 12px 34px rgba(15, 23, 42, .26); }
.chat-aviso.saindo { opacity: 0; transform: translateX(24px); }
.chat-aviso .avatar { width: 42px; height: 42px; flex: none; font-size: 15px; background: #0ea5e9; color: #fff; }
.chat-aviso.cli .avatar:not(.foto) { background: #25d366; }
.chat-aviso .ca-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-aviso .ca-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-aviso .ca-txt small { font-size: 11.5px; }
.chat-aviso .ca-txt > span { font-size: 13px; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.chat-aviso .ca-x { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--texto-3); }
.chat-aviso .ca-x:hover { background: var(--fundo-2, rgba(0,0,0,.06)); }
.chat-aviso .ca-x svg { width: 15px; height: 15px; }
@keyframes chat-aviso-entra { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .chat-avisos { top: 60px; right: 12px; left: 12px; width: auto; } }
/* usuários novos no Control (aviso no Início) */
a.hub-nu { background: #eef4ff; border-color: #b8cdf0; } a.hub-nu:hover { border-color: #5b84c9; }
a.hub-nu .hub-lib-ic svg.ic { color: #2b5aa8; } a.hub-nu .hub-lib-txt b { color: #1f3864; }
.hub-nu-passos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hub-nu-passos span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: #fff; border: 1px solid #cfd8e6; color: #5b6576; }
.hub-nu-passos span.ok { background: #e3f4e8; border-color: #b9dfc6; color: #1d6b38; }
.hub-nu-passos svg.ic { width: 13px; height: 13px; }
.hub-sec-sub { font-size: 12px; font-weight: 400; margin-left: 4px; }
@media screen and (max-width: 680px) { .hub-luc .hk .val { font-size: 17px; } .hub-luc .hk .sub { white-space: normal; } }
/* "Como se forma o faturamento do mês" começa fechado (30/11/2026): seta à direita mostra que abre */
.hub-comp summary::after { content: ''; margin-left: auto; align-self: center; width: 8px; height: 8px; border-right: 2px solid var(--texto-2); border-bottom: 2px solid var(--texto-2); transform: rotate(45deg); transition: transform .15s; }
.hub-comp[open] summary::after { transform: rotate(-135deg); }
.hub-comp:not([open]) { padding-top: 14px; padding-bottom: 14px; }

/* ---------- rodapé do menu lateral: versão do sistema + Novidades e Tutoriais (módulo Ajuda), 30/11/2026 */
.lateral .rodape { white-space: normal; padding: 12px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.lateral .rodape .rp-ver { padding: 0 20px 4px; color: var(--texto-2); font-size: 12.5px; }
.lateral .rodape .rp-ver b { color: var(--texto); font-weight: 600; }
.lateral .rodape .rp-ver span { font-variant-numeric: tabular-nums; }
.lateral .rodape a.rp-link { padding: 5px 20px; gap: 8px; font-size: 12.5px; color: var(--azul); border-left: 0; }
.lateral .rodape a.rp-link:hover { text-decoration: underline; }
.lateral .rodape a.rp-link svg.ic { width: 15px; height: 15px; }
.lateral .rodape .rp-nauas { padding: 4px 20px 0; font-size: 11.5px; color: var(--texto-3); }
.tp-ver { margin-left: auto; padding-left: 10px; font-size: 12px; color: var(--texto-3); }

/* aviso da folha de pagamento no alto do Painel geral (01/12/2026) */
.hub-fp { margin-bottom: 16px; border-left: 4px solid #e08a1e; }
.hub-fp h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hub-fp .lst li { padding: 0; }
.hub-fp .lst li > a, .hub-fp .lst li > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; flex: 1; min-width: 0; color: var(--texto); text-decoration: none; }
.hub-fp .lst li > a:hover b { text-decoration: underline; }
.hub-fp .lst-txt b, .hub-fp .lst-txt small { white-space: normal; }
.hub-fp .lst li > a svg.ic { width: 16px; height: 16px; color: var(--texto-3); flex: none; }
@media (max-width: 600px) {   /* celular: etiqueta e valor em cima, texto embaixo com a largura toda */
  .hub-fp .lst li > a, .hub-fp .lst li > div { flex-wrap: wrap; row-gap: 4px; }
  .hub-fp .lst-txt { order: 3; flex-basis: 100%; }
  .hub-fp .lst-v { margin-left: auto; }
}
