/* MBM NEXUS · SUPER ADMIN
   Identidade: mesa de controle do proprietário. Menu lateral em ardósia escura com a marca laranja
   MBM; área de trabalho clara e fria, para leitura longa de números. Uma família (Archivo) usada em
   duas larguras: expandida para títulos e valores, normal para o resto. */
:root {
  --ink: #18202c; --ink-2: #222c3b; --ink-3: #2e3a4c; --ink-text: #c9d1dc; --ink-muted: #8794a6;
  --page: #eef0f2; --surface: #ffffff; --sunk: #f6f7f8;
  --line: #dde1e6; --line-strong: #c3c9d1;
  --text: #18202c; --muted: #5b6575; --faint: #8a93a1;
  --accent: #e8641a; --accent-ink: #b44a0d; --accent-soft: #fdeadb;
  --ok: #1d7a52; --ok-bg: #e2f2e9; --warn: #9a6200; --warn-bg: #fbefd2;
  --crit: #b3302a; --crit-bg: #fbe3e0; --neutral: #3a5795; --neutral-bg: #e4eaf6; --off: #646c79; --off-bg: #eceef1;
  --r-panel: 12px; --r-ctrl: 7px; --r-pill: 999px;
  --side: 252px; --gutter: 28px;
  --sombra: 0 1px 0 rgba(24, 32, 44, .04), 0 1px 2px rgba(24, 32, 44, .06);
  --f: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 15px/1.5 var(--f); font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-stretch: 118%; letter-spacing: -.01em; margin: 0; color: var(--text); }
h1 { font-size: 1.62rem; font-weight: 700; line-height: 1.15; }
h2 { font-size: 1.08rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 650; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.num { font-stretch: 112%; font-weight: 650; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- entrada ---------- */
.entrada { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.entrada-marca { background: var(--ink); color: var(--ink-text); padding: 56px clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.entrada-marca .rede { position: absolute; inset: auto -80px -120px auto; width: 560px; opacity: .5; pointer-events: none; }
.entrada-marca h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); font-stretch: 125%; line-height: 1.02; max-width: 12ch; margin-top: 36px; }
.entrada-marca p { max-width: 42ch; color: var(--ink-text); font-size: 1.02rem; }
.entrada-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.entrada-form form { width: 100%; max-width: 360px; }
.entrada-form h2 { font-size: 1.35rem; margin-bottom: 4px; }
.demo { margin-top: 22px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-ctrl); background: var(--sunk); font-size: .86rem; color: var(--muted); }
.demo code { color: var(--text); font-weight: 600; }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo-marca { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.logo-marca svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; }
.logo b { font-stretch: 125%; font-size: 1.04rem; letter-spacing: .02em; display: block; line-height: 1.1; }
.logo small { color: var(--ink-muted); font-size: .76rem; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; background: var(--ink); color: var(--ink-text); display: flex; flex-direction: column; padding: 20px 14px 16px; z-index: 30; }
.lateral .logo { padding: 2px 8px 22px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--ink-text); text-decoration: none; font-weight: 500; position: relative; }
.menu a:hover { background: var(--ink-2); color: #fff; }
.menu a[aria-current="page"] { background: var(--ink-3); color: #fff; }
.menu a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.menu .cont { margin-left: auto; font-size: .74rem; min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--crit); color: #fff; text-align: center; font-weight: 650; }
.menu .grupo { color: var(--ink-muted); font-size: .76rem; padding: 16px 10px 6px; }
.lateral-pe { border-top: 1px solid var(--ink-3); padding: 14px 8px 0; font-size: .8rem; color: var(--ink-muted); display: grid; gap: 8px; }
.lateral-pe .quem { color: var(--ink-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lateral-pe button { background: none; border: 1px solid var(--ink-3); color: var(--ink-text); border-radius: var(--r-ctrl); padding: 6px 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center; }
.lateral-pe button:hover { border-color: var(--ink-muted); color: #fff; }
.modo-local { display: inline-flex; align-items: center; gap: 6px; }
.modo-local::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e3a008; }

.principal { min-width: 0; }
.topo { position: sticky; top: 0; z-index: 20; background: rgba(238, 240, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 14px var(--gutter); }
.topo h1 { font-size: 1.28rem; }
.topo .acoes-topo { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topo .menu-btn { display: none; }
.chip-data { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.chip-data.simulada { background: var(--warn-bg); border-color: #e9cf8f; color: var(--warn); font-weight: 600; }
.conteudo { padding: 24px var(--gutter) 64px; max-width: 1320px; }
.faixa-dev { background: var(--ink); color: var(--ink-text); font-size: .78rem; padding: 6px var(--gutter); display: flex; gap: 10px; align-items: center; }
.faixa-dev b { color: #ffd3b5; font-weight: 600; }

/* ---------- blocos ---------- */
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--sombra); }
.painel-cab { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.painel-cab .dir { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.painel-corpo { padding: 14px 18px 18px; }
.grade { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 18px; }
.intro { color: var(--muted); max-width: 70ch; margin: -4px 0 18px; }

/* indicadores: uma faixa contínua dividida, não cartões soltos */
.indicadores { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--sombra); }
.indicadores.q4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ind { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.ind:first-child { border-left: 0; }
.ind .rot { color: var(--muted); font-size: .84rem; }
.ind .val { font-size: clamp(1.15rem, 1.55vw, 1.62rem); font-stretch: 116%; font-weight: 700; line-height: 1.2; margin-top: 4px; white-space: nowrap; }
.ind .sub { font-size: .8rem; color: var(--faint); margin-top: 2px; }
.ind.destaque .val { color: var(--accent-ink); }
.ind.alerta .val { color: var(--crit); }
button.ind { background: none; border: 0; border-left: 1px solid var(--line); text-align: left; cursor: pointer; }
button.ind:first-child { border-left: 0; }
button.ind:hover .rot { color: var(--text); text-decoration: underline; }

/* mapa da carteira: cada quadrado é um professor */
.carteira { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
.carteira button { aspect-ratio: 1; border-radius: 7px; border: 0; cursor: pointer; font-size: .7rem; font-weight: 700; font-stretch: 112%; display: grid; place-items: center; position: relative; padding: 0; }
.carteira button:hover, .carteira button:focus-visible { transform: scale(1.12); z-index: 2; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.t-em_dia { background: var(--ok); color: #fff; } .t-em_tolerancia { background: #e0a020; color: #3b2700; } .t-suspensa, .t-bloqueado { background: var(--crit); color: #fff; }
.t-isenta { background: var(--neutral); color: #fff; } .t-excluido, .t-cancelada, .t-sem_assinatura { background: repeating-linear-gradient(135deg, #d7dbe1 0 4px, #eceef1 4px 8px); color: var(--off); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dica { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: .8rem; line-height: 1.35; max-width: 260px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.dica b { display: block; font-weight: 650; }

/* ---------- estado (ícone + texto, nunca só cor) ---------- */
.estado { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.estado svg.i { width: 14px; height: 14px; stroke-width: 2.2; }
.estado.ok { background: var(--ok-bg); color: var(--ok); } .estado.atencao { background: var(--warn-bg); color: var(--warn); }
.estado.critico { background: var(--crit-bg); color: var(--crit); } .estado.neutro { background: var(--neutral-bg); color: var(--neutral); }
.estado.apagado { background: var(--off-bg); color: var(--off); }

/* ---------- tabelas ---------- */
.tabela-box { overflow-x: auto; border-top: 1px solid var(--line); }
table.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tabela th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tabela th button:focus-visible { outline: 2px solid var(--accent); }
.tabela td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover { background: #fafbfc; }
.tabela .dir, .tabela th.dir { text-align: right; }
.tabela .fraco td { color: var(--faint); }
.tabela tfoot td { font-weight: 650; background: var(--sunk); border-top: 1px solid var(--line-strong); }
.pessoa { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; font-stretch: 112%; }
.pessoa b { display: block; font-weight: 600; line-height: 1.25; }
.pessoa small { color: var(--faint); font-size: .8rem; }
.vazio { padding: 40px 20px; text-align: center; color: var(--muted); }
.vazio .btn { margin-top: 12px; }
.lista-cartoes { display: none; }

/* ---------- filtros e formulários ---------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 18px; }
.busca { position: relative; flex: 1 1 240px; max-width: 360px; }
.busca svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.busca input[type=search] { padding-left: 34px; }
.segmento { display: inline-flex; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-ctrl); padding: 2px; flex-wrap: wrap; }
.segmento button { border: 0; background: none; padding: 5px 11px; border-radius: 5px; cursor: pointer; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.segmento button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--sombra); }
.segmento .n { color: var(--faint); font-weight: 500; margin-left: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=month], input[type=search], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-ctrl); background: var(--surface); min-height: 38px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 76px; resize: vertical; }
.campo { display: grid; gap: 5px; }
.campo > span { font-size: .84rem; font-weight: 600; color: var(--muted); }
.campo small { color: var(--faint); font-size: .78rem; }
.form-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grade .todo { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.erro-form { color: var(--crit); font-size: .86rem; min-height: 1.2em; margin-top: 10px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 8px 15px; border-radius: var(--r-ctrl); cursor: pointer; font-weight: 600; min-height: 38px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #d4570f; border-color: #d4570f; }
.btn.sec { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.sec:hover { border-color: var(--text); background: var(--surface); }
.btn.perigo { background: var(--crit); border-color: var(--crit); }
.btn.perigo:hover { background: #962620; }
.btn.fantasma { background: none; border-color: transparent; color: var(--accent-ink); padding-inline: 8px; }
.btn.fantasma:hover { background: var(--accent-soft); }
.btn.peq { min-height: 32px; padding: 5px 10px; font-size: .86rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icone-btn { border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 6px; color: inherit; display: inline-grid; place-items: center; }
.icone-btn:hover { background: var(--sunk); }

/* ---------- ficha do professor ---------- */
.ficha-cab { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 20px; }
.ficha-cab .avatar { width: 58px; height: 58px; font-size: 1.1rem; background: var(--ink); }
.ficha-cab h1 { font-size: 1.5rem; }
.ficha-cab .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.dados div { padding: 13px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dados dt { font-size: .8rem; color: var(--muted); }
.dados dd { margin: 2px 0 0; font-weight: 600; font-stretch: 108%; }
.voltar { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: .88rem; margin-bottom: 12px; }
.voltar:hover { color: var(--text); }
.aviso { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-ctrl); font-size: .9rem; align-items: flex-start; }
.aviso.critico { background: var(--crit-bg); color: #7a1f1a; } .aviso.atencao { background: var(--warn-bg); color: #6a4300; } .aviso.info { background: var(--neutral-bg); color: #263d6b; }
.linha-tempo { list-style: none; margin: 0; padding: 0; }
.linha-tempo li { display: grid; grid-template-columns: 112px 22px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.linha-tempo li:last-child { border-bottom: 0; }
.linha-tempo time { color: var(--faint); font-size: .8rem; padding-top: 1px; }
.linha-tempo .ic { color: var(--muted); }
.linha-tempo .ic.critico { color: var(--crit); } .linha-tempo .ic.ok { color: var(--ok); } .linha-tempo .ic.atencao { color: var(--warn); }
.linha-tempo small { color: var(--muted); display: block; }
.senha-unica { font: 700 1.3rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; background: var(--sunk); border: 1px dashed var(--line-strong); border-radius: var(--r-ctrl); padding: 12px; text-align: center; margin: 10px 0; user-select: all; }

/* ---------- gráficos ---------- */
.grafico { width: 100%; position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .eixo text { fill: var(--faint); font-size: 11px; }
.grafico .grade-l { stroke: var(--line); stroke-width: 1; }
.grafico .base { stroke: var(--line-strong); }
.grafico .rotulo { fill: var(--muted); font-size: 11px; font-weight: 600; }
.grafico .alvo { cursor: default; fill: transparent; }
.grafico .barra { transition: opacity .12s; }
.grafico .foco .barra:not(.ativa) { opacity: .45; }
.leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.barra-h { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) minmax(54px, auto); gap: 10px; align-items: center; font-size: .86rem; padding: 4px 0; }
.barra-h .trilho { height: 12px; background: var(--sunk); border-radius: 3px; overflow: hidden; display: flex; gap: 2px; }
.barra-h .trilho i { display: block; height: 100%; border-radius: 0 3px 3px 0; }
.barra-h .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-h .v { text-align: right; font-weight: 650; white-space: nowrap; }
.distribuicao { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 6px 0 4px; }
.distribuicao i { display: block; height: 100%; }

/* ---------- modal e avisos ---------- */
.modal-fundo { position: fixed; inset: 0; background: rgba(16, 22, 32, .48); z-index: 100; display: grid; place-items: center; padding: 16px; animation: aparece .14s ease-out; }
.modal { background: var(--surface); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.modal.largo { width: min(780px, 100%); }
.modal-top { display: flex; align-items: center; padding: 18px 20px 6px; gap: 10px; }
.modal-top h2 { font-size: 1.15rem; }
.modal-top .icone-btn { margin-left: auto; }
.modal-corpo { padding: 10px 20px; overflow-y: auto; }
.modal-acoes { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }
@keyframes aparece { from { opacity: 0; } }
#avisos { position: fixed; bottom: 18px; right: 18px; z-index: 120; display: grid; gap: 8px; }
.aviso-t { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-size: .9rem; display: flex; gap: 9px; align-items: center; max-width: 380px; transition: opacity .3s, transform .3s; }
.aviso-t.erro { background: var(--crit); }
.aviso-t.sai { opacity: 0; transform: translateY(6px); }
.abas { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.abas button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }

/* ---------- impressão de relatório ---------- */
@media print {
  .lateral, .topo, .faixa-dev, .nao-imprime, #avisos { display: none !important; }
  .app { display: block; } body { background: #fff; } .painel { box-shadow: none; }
  .conteudo { padding: 0; max-width: none; }
}

/* ---------- tablet: menu só com ícones ---------- */
@media (max-width: 1180px) {
  :root { --side: 76px; --gutter: 22px; }
  .lateral { padding-inline: 10px; align-items: center; }
  .lateral .logo { padding: 2px 0 20px; } .lateral .logo span, .menu .rotulo, .menu .grupo, .lateral-pe .quem, .lateral-pe .txt { display: none; }
  .menu a { justify-content: center; padding: 11px; } .menu a[aria-current="page"]::before { left: -10px; }
  .menu .cont { position: absolute; top: 2px; right: 2px; min-width: 18px; padding: 0 4px; font-size: .68rem; }
  .lateral-pe { padding-inline: 0; } .lateral-pe .modo-local { justify-content: center; }
  .indicadores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .indicadores .ind:nth-child(4) { border-left: 0; } .indicadores .ind:nth-child(n+4) { border-top: 1px solid var(--line); }
  .indicadores.q4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicadores.q4 .ind:nth-child(3) { border-left: 0; } .indicadores.q4 .ind:nth-child(4) { border-left: 1px solid var(--line); }
  .indicadores.q4 .ind:nth-child(n+3) { border-top: 1px solid var(--line); }
  .g-21 { grid-template-columns: 1fr; }
  .entrada { grid-template-columns: 1fr; } .entrada-marca { padding-block: 36px; } .entrada-marca h1 { margin-top: 20px; }
}
/* ---------- celular: menu escondido, abre por cima ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; align-items: stretch; padding: 20px 14px 16px; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .app.menu-aberto .lateral { transform: none; }
  .app.menu-aberto::after { content: ""; position: fixed; inset: 0; background: rgba(16, 22, 32, .45); z-index: 25; }
  .lateral .logo span, .menu .rotulo, .menu .grupo, .lateral-pe .quem, .lateral-pe .txt { display: revert; }
  .lateral .logo { padding: 2px 8px 22px; } .menu a { justify-content: flex-start; padding: 10px; }
  .menu .cont { position: static; margin-left: auto; }
  .topo .menu-btn { display: inline-grid; margin-left: -6px; }
  .topo { padding-block: 10px; } .topo h1 { font-size: 1.08rem; } .topo .chip-data .txt { display: none; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .indicadores, .indicadores.q4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicadores .ind { border-left: 0 !important; border-top: 1px solid var(--line); }
  .indicadores .ind:nth-child(-n+2) { border-top: 0; } .indicadores .ind:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .ind .val { font-size: 1.3rem; }
  .form-grade { grid-template-columns: 1fr; }
  .tabela-box.vira-cartao table { display: none; }
  .tabela-box.vira-cartao .lista-cartoes { display: grid; }
  .lista-cartoes { gap: 0; }
  .cartao-l { padding: 13px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; cursor: pointer; }
  .cartao-l .lin { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .88rem; }
  .ficha-cab .acoes { margin-left: 0; width: 100%; }
  .linha-tempo li { grid-template-columns: 22px minmax(0, 1fr); } .linha-tempo time { grid-column: 2; order: 2; }
  .barra-h { grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) minmax(44px, auto); }
  .modal-fundo { place-items: end center; padding: 0; } .modal { border-radius: 14px 14px 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.so-imprime { display: none; }
@media print { .so-imprime { display: block !important; margin-bottom: 12px; } }
