/* Painel PS — identidade OM30 (manual da marca): vermelho #E00034 → vinho #8F0029, grafite #1D232B, fonte Outfit. */
:root {
  --om30: #e00034; --om30-vinho: #8f0029; --om30-grad: linear-gradient(160deg, #e5003b 0%, #b8002f 55%, #8f0029 100%);
  --grafite: #1d232b; --grafite-2: #2a323c;
  --bg: #f3f4f6; --surface: #ffffff; --ink: #1d232b; --ink-2: #47515c; --muted: #7b8591; --faint: #aab2bb;
  --line: #e3e6ea; --line-2: #eef0f3;
  --pri: #1d232b; --pri-hover: #333c47;
  --clin: #2f6fd6; --ped: #23955a; --den: #7c5cd6; --out: #94a0ab;
  --warn: #b85c00; --warn-soft: #fff3e3; --danger: #c8102e; --danger-soft: #fdebee; --ok: #1f8a4c; --ok-soft: #e7f5ed;
  --info: #2f6fd6; --info-soft: #eaf1fd;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .04);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 Outfit, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--om30); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.vazio { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ---------- carregando ---------- */
.carregando-tela { min-height: 100vh; display: grid; place-items: center; background: var(--grafite); }
.carregando-tela img { width: 64px; animation: pulsa 1.2s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .45; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.login-marca { position: relative; overflow: hidden; background: var(--grafite); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-marca::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--om30-grad); opacity: .16; }
.login-marca img { height: 34px; width: auto; align-self: flex-start; }
.login-marca h2 { font-size: 40px; line-height: 1.1; font-weight: 600; margin: 0 0 12px; letter-spacing: -.5px; max-width: 460px; }
.login-marca h2 span { color: #ff3d63; }
.login-marca p { margin: 0; color: #c3c9d0; font-size: 15px; max-width: 420px; }
.login-marca small { color: #8b949e; font-size: 12.5px; position: relative; z-index: 1; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-caixa { width: 100%; max-width: 380px; }
.login-caixa h1 { font-size: 26px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.3px; }
.login-caixa p.sub { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.campo { display: block; margin-bottom: 14px; }
.campo > span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.campo input, .campo select { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #d4d9df; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--grafite); box-shadow: 0 0 0 3px rgba(29, 35, 43, .1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-hover); }
.btn-pri:disabled { opacity: .6; cursor: default; }
.btn-marca { background: var(--om30); color: #fff; }
.btn-marca:hover { background: #c4002d; }
.btn-sec { background: #fff; border-color: #d4d9df; color: var(--ink); }
.btn-sec:hover { background: #f6f7f9; }
.btn-perigo { background: #fff; border-color: #f0c2ca; color: var(--danger); }
.btn-perigo:hover { background: var(--danger-soft); }
.btn-pq { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-bloco { width: 100%; height: 46px; margin-top: 8px; font-size: 15px; }
.msg-erro { background: var(--danger-soft); color: #8c0b20; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; }
.topo-escuro { background: var(--grafite); color: #fff; }
.topo-linha { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topo-marca { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
.topo-marca img { height: 26px; width: auto; display: block; }
.topo-marca .divisor { width: 1px; height: 28px; background: rgba(255, 255, 255, .18); }
.topo-marca b { font-size: 16px; font-weight: 600; display: block; line-height: 1.15; }
.topo-marca span { font-size: 12px; color: #aeb6bf; display: block; }
.filtros { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.seletor { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px 0 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .06); min-width: 0; }
.seletor label { font-size: 12px; color: #aeb6bf; font-weight: 500; white-space: nowrap; }
.seletor select, .seletor input { border: 0; background: transparent; height: 34px; padding: 0 8px 0 0; font-weight: 600; font-size: 13.5px; min-width: 0; max-width: 300px; color: #fff; color-scheme: dark; }
.seletor select option { color: var(--ink); background: #fff; }
.seletor select:focus, .seletor input:focus { outline: none; }
.usuario { position: relative; }
.usuario-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: #eef0f3; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.usuario-btn .avatar { background: var(--om30-grad); color: #fff; }
.usuario-btn .nome { font-weight: 500; font-size: 13.5px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: 44px; min-width: 230px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .16); padding: 6px; display: none; }
.menu.aberto { display: block; }
.menu .quem { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.menu .quem b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.menu button:hover { background: var(--bg); }
.liga { width: 30px; height: 18px; border-radius: 9px; background: #cfd5db; position: relative; flex: none; transition: background .15s; }
.liga::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.liga.on { background: var(--om30); }
.liga.on::after { left: 14px; }
.topo-abas { background: var(--surface); border-bottom: 1px solid var(--line); }
.abas { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; overflow-x: auto; }
.aba { border: 0; background: transparent; padding: 12px 14px 13px; font-weight: 500; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.aba:hover { color: var(--ink); }
.aba.ativa { color: var(--ink); font-weight: 600; border-bottom-color: var(--om30); }
.aba .selo { font-size: 10.5px; font-weight: 600; color: var(--om30); background: #fde8ed; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.faixa-demo { background: #fff6e6; border-bottom: 1px solid #f3dcae; color: #7a4a00; font-size: 13px; }
.faixa-demo div { max-width: 1280px; margin: 0 auto; padding: 8px 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.faixa-demo b { font-weight: 600; }
.faixa-demo button { border: 0; background: transparent; color: #7a4a00; text-decoration: underline; padding: 0; font-size: 13px; }

/* ---------- conteúdo ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 24px; }
.titulo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.titulo h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.3px; }
.titulo .sobre { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--om30); margin-bottom: 2px; }
.titulo .atualizado { font-size: 12.5px; color: var(--muted); }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cartao-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.cartao-topo h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cartao-topo p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.secao { margin-bottom: 20px; }
.grade-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .rot { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .val { font-size: 34px; font-weight: 600; letter-spacing: -.8px; margin-top: 2px; line-height: 1.1; }
.kpi .val small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi .det { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.kpi.destaque { background: var(--grafite); border-color: var(--grafite); color: #fff; }
.kpi.destaque .rot, .kpi.destaque .det, .kpi.destaque .val small { color: #aeb6bf; }
.kpi.destaque::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--om30-grad); opacity: .35; }

/* jornada */
.jornada { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 26px 20px 22px; }
.etapa { position: relative; text-align: center; padding: 0 8px; }
.etapa::before { content: ""; position: absolute; top: 22px; left: 50%; right: -50%; height: 2px; background: linear-gradient(90deg, var(--line) 0%, var(--line) 100%); z-index: 0; }
.etapa:last-child::before { display: none; }
.etapa-ic { position: relative; z-index: 1; width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 15px; border: 2px solid var(--grafite); }
.etapa:last-child .etapa-ic { background: var(--grafite); color: #fff; }
.etapa b { display: block; font-size: 14.5px; font-weight: 600; }
.etapa span { font-size: 12.5px; color: var(--muted); }
.tempo-entre { position: absolute; top: 9px; left: 100%; transform: translateX(-50%); z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow); }
.tempo-entre.lento { border-color: #f4b9c5; color: var(--om30-vinho); background: #fff5f7; }
.tempo-entre.sem { color: var(--faint); font-weight: 500; }
.jornada-rodape { border-top: 1px solid var(--line-2); padding: 12px 20px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.jornada-rodape b { color: var(--ink); font-weight: 600; }

/* especialidades */
.grade-esp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.esp { padding: 18px 20px; }
.esp-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.esp-topo b { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.esp-topo b i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.esp-topo .qtd { font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
.esp .linha { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.esp .linha span:first-child { color: var(--muted); }
.esp .linha span:last-child { font-weight: 600; }

/* gráfico por hora */
.grafico { padding: 12px 20px 16px; overflow-x: auto; }
.grafico svg { display: block; min-width: 560px; width: 100%; height: 220px; }
.grafico .barra { fill: #5b6775; }
.grafico .barra.pico { fill: var(--om30); }
.grafico .barra:hover { opacity: .85; }
.grafico text { font-size: 11px; fill: var(--muted); font-family: Outfit, system-ui, sans-serif; }
.grafico .valor { fill: var(--ink-2); font-weight: 600; }
.grafico .grade-linha { stroke: var(--line-2); }

/* tabelas */
.barra-ferr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); }
.chip.ativo { border-color: var(--grafite); background: var(--grafite); color: #fff; }
.chip.ativo .muted { color: #aeb6bf; }
.busca, .filtro-sel { height: 34px; padding: 0 12px; border: 1px solid #d4d9df; border-radius: 10px; background: #fff; }
.busca { margin-left: auto; width: 220px; max-width: 100%; }
.busca:focus, .filtro-sel:focus { outline: none; border-color: var(--grafite); }
.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: #fafbfc; }
.senha-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; font-weight: 600; font-size: 13px; letter-spacing: .3px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 25%, #fff); }
.etiqueta { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 11%, #fff); white-space: nowrap; }
.sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.vezes { font-weight: 600; }
.vezes.varias { color: var(--warn); }
.alerta { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--warn); background: var(--warn-soft); padding: 1px 8px; border-radius: 999px; }
.historico td { background: #fafbfc; padding: 4px 16px 14px 32px; }
.linha-tempo { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.linha-tempo li { position: relative; padding: 4px 0 4px 16px; font-size: 13px; color: var(--ink-2); }
.linha-tempo li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--om30); }
.linha-tempo b { color: var(--ink); font-weight: 600; }

/* equipe */
.grade-equipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.equipe-lista { padding: 8px 20px 16px; }
.pessoa { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.pessoa:first-child { border-top: 0; }
.pessoa .info { flex: 1; min-width: 0; }
.pessoa .info b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa .info span { font-size: 12px; color: var(--muted); }
.pessoa .qtd { font-weight: 600; font-size: 17px; }

/* frequentadores / médicos */
.aviso-lgpd { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--info-soft); color: #1d3f78; font-size: 13px; margin-bottom: 18px; }
.aviso-lgpd b { font-weight: 600; }
.grade-ubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.ubs { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; text-align: left; }
.ubs:hover { border-color: #c9cfd6; }
.ubs.ativo { border-color: var(--grafite); box-shadow: 0 0 0 1px var(--grafite); }
.ubs b { display: block; font-size: 14px; font-weight: 600; }
.ubs .linha-ubs { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ubs .linha-ubs strong { display: block; font-size: 20px; font-weight: 600; color: var(--ink); }
.visitas { display: flex; align-items: center; gap: 8px; }
.visitas .n { font-size: 17px; font-weight: 600; min-width: 22px; }
.pontos { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.pontos i { width: 4px; border-radius: 2px; background: #c3c9d0; }
.pontos i.v { background: var(--grafite); }
.sinais { display: flex; flex-wrap: wrap; gap: 4px; }
.situacao { height: 30px; border: 1px solid #d4d9df; border-radius: 8px; padding: 0 8px; background: #fff; font-size: 12.5px; }
.situacao.s-pendente { border-color: #f0d4a8; background: var(--warn-soft); }
.situacao.s-contato { border-color: #c5d6f5; background: var(--info-soft); }
.situacao.s-acomp { border-color: #b9e0c8; background: var(--ok-soft); }
.medico-cid { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.medico-cid .barra-h { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.medico-cid .barra-h span { display: block; height: 100%; background: #5b6775; border-radius: 3px; }
.medico-cid.csap .barra-h span { background: var(--om30); }
.medico-cid code { font-family: Outfit, sans-serif; font-weight: 600; color: var(--ink-2); min-width: 44px; }
.medico-cid .desc { color: var(--muted); min-width: 0; flex: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grade-medicos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.medico { padding: 18px 20px; }
.medico-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.medico-topo b { display: block; font-size: 15px; font-weight: 600; }
.medico-topo span { font-size: 12.5px; color: var(--muted); }
.medico-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.medico-nums div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.medico-nums strong { display: block; font-size: 18px; font-weight: 600; }
.medico-nums span { font-size: 11.5px; color: var(--muted); }
.legenda { display: flex; gap: 14px; font-size: 12px; color: var(--muted); padding: 0 20px 16px; }
.legenda i { display: inline-block; width: 10px; height: 6px; border-radius: 3px; margin-right: 5px; vertical-align: 1px; }

/* usuários */
.acessos { display: flex; flex-wrap: wrap; gap: 4px; }
.acao-linha { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.fundo-modal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 26, .5); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 24, 40, .25); }
.modal-topo { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-topo h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-topo button { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); }
.modal-corpo { padding: 20px 22px 8px; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; }
.opcoes { display: flex; gap: 8px; margin-bottom: 14px; }
.opcao { flex: 1; border: 1px solid #d4d9df; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.opcao input { margin-right: 6px; accent-color: var(--grafite); }
.opcao.sel { border-color: var(--grafite); background: #f4f5f7; }
.opcao b { font-size: 13.5px; font-weight: 600; }
.opcao small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.lista-unidades { border: 1px solid #d4d9df; border-radius: 10px; max-height: 220px; overflow: auto; padding: 4px 0; margin-bottom: 14px; }
.lista-unidades label { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.lista-unidades input { accent-color: var(--grafite); }
.lista-unidades label:hover { background: #fafbfc; }
.lista-unidades .todas { border-bottom: 1px solid var(--line-2); font-weight: 600; }
.campo .senha-linha { display: flex; gap: 8px; margin: 0; }
.senha-linha input { flex: 1; }
.senha-gerada { font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 600; background: var(--bg); border: 1px dashed #c3c9d0; border-radius: 10px; padding: 10px 12px; margin: 6px 0 12px; user-select: all; }

@media (max-width: 1050px) {
  .grade-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-esp, .grade-equipe, .grade-medicos { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .login-marca { padding: 28px 24px; gap: 28px; }
  .login-marca h2 { font-size: 28px; }
  .login-marca::after { display: none; }
}
@media (max-width: 640px) {
  .topo-linha, .abas, main, .faixa-demo div { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 16px; }
  .topo-marca .divisor, .topo-marca div:last-child span { display: none; }
  .grade-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 26px; }
  .jornada { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .etapa:nth-child(2)::before { display: none; }
  .filtros, .seletor { width: 100%; }
  .seletor select, .seletor input { flex: 1; max-width: none; }
  .busca { margin-left: 0; width: 100%; }
  .usuario-btn .nome { display: none; }
  .medico-nums { grid-template-columns: 1fr 1fr; }
}
