/* PontoFlow — Design system
   Paletas: corporate (padrão), blue, emerald, dark. Todas as cores passam por tokens. */
@font-face { font-family: "Inter"; src: url("fontes/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900;
  font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
  U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fontes/inter-latin-ext-wght.woff2") format("woff2"); font-weight: 100 900;
  font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
  U+2C60-2C7F, U+A720-A7FF; }

:root, [data-paleta="corporate"] {
  color-scheme: light;
  --primaria: #10233F; --primaria-2: #1B3A66; --acento: #39D6B0; --acento-texto: #08261F; --azul: #647FEA;
  --fundo: #F3F6FA; --card: #FFFFFF; --card-2: #F7F9FC; --borda: #E4EAF1; --borda-forte: #CFD8E3;
  --texto: #18283D; --texto-2: #52627A; --texto-3: #6F7E93;
  --lateral: #10233F; --lateral-texto: #C3CFDF; --lateral-ativo: rgba(57,214,176,.14); --lateral-borda: rgba(255,255,255,.08);
  --heroi: linear-gradient(140deg, #10233F 0%, #1B3A66 100%); --heroi-texto: #FFFFFF;
  --foco: #647FEA; --sombra: 0 1px 2px rgba(16,35,63,.06), 0 6px 24px rgba(16,35,63,.06);
  --sombra-alta: 0 12px 40px rgba(16,35,63,.18);
  --ok: #0ca30c; --aviso: #fab219; --serio: #ec835a; --critico: #d03b3b; --info: #647FEA;
  --ok-fundo: rgba(12,163,12,.10); --aviso-fundo: rgba(250,178,25,.16); --serio-fundo: rgba(236,131,90,.14);
  --critico-fundo: rgba(208,59,59,.10); --info-fundo: rgba(100,127,234,.12); --neutro-fundo: #EEF2F7;
  --serie-1: #2a78d6; --serie-2: #eb6834; --grade: #e1e0d9; --eixo: #c3c2b7;
}
[data-paleta="blue"] {
  --primaria: #0B2A6F; --primaria-2: #1E4FD8; --acento: #22C3E6; --acento-texto: #04263A; --azul: #2F6BFF;
  --fundo: #F2F6FD; --borda: #E0E8F5; --texto: #13234A; --texto-2: #4D5F84;
  --lateral: #0B2A6F; --lateral-ativo: rgba(34,195,230,.16);
  --heroi: linear-gradient(140deg, #0B2A6F 0%, #1E4FD8 100%); --foco: #2F6BFF;
}
[data-paleta="emerald"] {
  --primaria: #0B3B2E; --primaria-2: #136B52; --acento: #34D399; --acento-texto: #052E21; --azul: #1F9D74;
  --fundo: #F1F7F4; --borda: #DDEBE4; --texto: #12302A; --texto-2: #4B665D;
  --lateral: #0B3B2E; --lateral-ativo: rgba(52,211,153,.16);
  --heroi: linear-gradient(140deg, #0B3B2E 0%, #136B52 100%); --foco: #1F9D74;
}
[data-paleta="dark"] {
  color-scheme: dark;
  --primaria: #A78BFA; --primaria-2: #7C5CF0; --acento: #38BDF8; --acento-texto: #081B2A; --azul: #A78BFA;
  --fundo: #171B2B; --card: #222839; --card-2: #1C2131; --borda: #31384C; --borda-forte: #444C63;
  --texto: #F5F6FA; --texto-2: #B3BACD; --texto-3: #8E96AD;
  --lateral: #12162A; --lateral-texto: #B3BACD; --lateral-ativo: rgba(167,139,250,.16);
  --heroi: linear-gradient(140deg, #2A2350 0%, #1F2D56 100%); --foco: #A78BFA;
  --sombra: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25); --sombra-alta: 0 16px 48px rgba(0,0,0,.5);
  --neutro-fundo: #2A3045; --info: #A78BFA; --info-fundo: rgba(167,139,250,.16);
  --serie-1: #3987e5; --serie-2: #d95926; --grade: #2c2c2a; --eixo: #383835;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px;
  line-height: 1.45; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--azul); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 700; } h2 { font-size: 17px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--texto-2); } .fraco { color: var(--texto-3); } .peq { font-size: 12px; }
.oculto { display: none !important; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botões ---------- */
.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; cursor: pointer; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .08s, opacity .15s; position: relative; user-select: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primario { background: var(--primaria); color: #fff; }
[data-paleta="dark"] .btn-primario { color: #120F24; }
.btn-primario:hover:not(:disabled) { box-shadow: 0 6px 18px color-mix(in srgb, var(--primaria) 35%, transparent); }
.btn-acento { background: var(--acento); color: var(--acento-texto); }
.btn-secundario { background: var(--card); border-color: var(--borda-forte); color: var(--texto); }
.btn-secundario:hover:not(:disabled) { background: var(--card-2); }
.btn-fantasma { background: transparent; color: var(--texto-2); }
.btn-fantasma:hover:not(:disabled) { background: var(--neutro-fundo); color: var(--texto); }
.btn-perigo { background: var(--critico); color: #fff; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-icone { width: 40px; padding: 0; }
.btn-sm.btn-icone { width: 32px; }
.btn .spin { display: none; }
.btn.carregando { color: transparent !important; pointer-events: none; }
.btn.carregando .spin { display: block; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: gira .7s linear infinite; }
.btn-secundario.carregando .spin, .btn-fantasma.carregando .spin { border-color: var(--borda); border-top-color: var(--texto); }
.btn.sucesso { background: var(--ok) !important; color: #fff !important; border-color: transparent; }
.btn.erro { animation: treme .35s; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .rotulo { font-size: 12.5px; font-weight: 600; color: var(--texto-2); }
.entrada, select.entrada, textarea.entrada { height: 40px; border: 1px solid var(--borda-forte); border-radius: 10px;
  padding: 0 12px; background: var(--card); width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea.entrada { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.entrada:focus { outline: none; border-color: var(--foco); box-shadow: 0 0 0 3px color-mix(in srgb, var(--foco) 20%, transparent); }
.entrada[aria-invalid="true"] { border-color: var(--critico); }
.ajuda { font-size: 12px; color: var(--texto-3); }
.grade-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.grade-form .largo { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--primaria); flex: none; }
.senha-wrap { position: relative; } .senha-wrap .btn { position: absolute; right: 4px; top: 4px; height: 32px; width: 32px; }

/* ---------- Cartões e layout ---------- */
.card { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra); }
.card-corpo { padding: 18px; }
.card-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.linha { display: flex; align-items: center; gap: 10px; } .linha-entre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quebra { flex-wrap: wrap; } .pilha { display: flex; flex-direction: column; gap: 14px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grade-2, .grade-3 { grid-template-columns: 1fr; } }

/* ---------- Badges de situação (cor + ícone + texto, nunca só cor) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 600; background: var(--neutro-fundo); color: var(--texto); white-space: nowrap; }
.badge .ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--texto-3); }
.badge.ok { background: var(--ok-fundo); } .badge.ok .ponto { background: var(--ok); }
.badge.aviso { background: var(--aviso-fundo); } .badge.aviso .ponto { background: var(--aviso); }
.badge.serio { background: var(--serio-fundo); } .badge.serio .ponto { background: var(--serio); }
.badge.critico { background: var(--critico-fundo); } .badge.critico .ponto { background: var(--critico); }
.badge.info { background: var(--info-fundo); } .badge.info .ponto { background: var(--info); }

/* ---------- Tooltip ---------- */
[data-dica] { position: relative; }
[data-dica]:hover::after, [data-dica]:focus-visible::after { content: attr(data-dica); position: absolute; bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%); background: #0E1A2E; color: #fff; font-size: 12px; font-weight: 500;
  padding: 6px 9px; border-radius: 7px; white-space: nowrap; z-index: 60; pointer-events: none; box-shadow: var(--sombra-alta); }

/* ---------- Skeleton e vazio ---------- */
.esqueleto { background: linear-gradient(90deg, var(--neutro-fundo) 25%, var(--card-2) 50%, var(--neutro-fundo) 75%);
  background-size: 200% 100%; animation: brilho 1.3s infinite; border-radius: 10px; }
@keyframes brilho { to { background-position: -200% 0; } }
.vazio { text-align: center; padding: 40px 20px; color: var(--texto-2); }
.vazio .vazio-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--neutro-fundo); display: grid;
  place-items: center; margin: 0 auto 12px; color: var(--texto-3); }
.vazio .vazio-ic svg { width: 26px; height: 26px; }
.vazio h3 { color: var(--texto); margin-bottom: 4px; }

/* ---------- Tabelas ---------- */
.tabela-wrap { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tabela th { text-align: left; font-size: 12px; font-weight: 600; color: var(--texto-2); padding: 10px 14px;
  border-bottom: 1px solid var(--borda); white-space: nowrap; background: var(--card-2); position: sticky; top: 0; }
.tabela th.ordenavel { cursor: pointer; user-select: none; }
.tabela th.ordenavel:hover { color: var(--texto); }
.tabela th .seta { opacity: .5; font-size: 10px; margin-left: 4px; }
.tabela td { padding: 11px 14px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr:hover td { background: var(--card-2); }
.tabela td.acoes { text-align: right; white-space: nowrap; }
.tabela-barra { display: flex; gap: 10px; align-items: center; padding: 14px 18px; flex-wrap: wrap; }
.tabela-barra .busca { position: relative; flex: 1 1 220px; max-width: 340px; }
.tabela-barra .busca svg { position: absolute; left: 11px; top: 11px; color: var(--texto-3); }
.tabela-barra .busca .entrada { padding-left: 36px; }

/* ---------- Avatar ---------- */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  font-size: 13.5px; color: #fff !important; background: linear-gradient(140deg, var(--azul), var(--primaria-2)); flex: none;
  overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grande { width: 52px; height: 52px; font-size: 17px; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }

/* ---------- Modal, painel lateral, toast ---------- */
.veu { position: fixed; inset: 0; background: rgba(10,18,32,.5); backdrop-filter: blur(3px); z-index: 80;
  display: grid; place-items: center; padding: 16px; animation: surge .15s ease-out; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card);
  border-radius: 18px; box-shadow: var(--sombra-alta); animation: sobe .18s ease-out; }
.modal.largo { width: min(860px, 100%); }
.modal-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 4px; }
.modal-cab p { margin: 4px 0 0; color: var(--texto-2); font-size: 13px; }
.modal-corpo { padding: 14px 20px 6px; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px 20px; flex-wrap: wrap; }
@media (max-width: 560px) { .veu { place-items: end center; padding: 0; } .modal { border-radius: 18px 18px 0 0; max-height: 92vh; } }
@keyframes surge { from { opacity: 0; } } @keyframes sobe { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 8px;
  max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--borda);
  border-left: 4px solid var(--info); border-radius: 12px; padding: 12px 14px; box-shadow: var(--sombra-alta);
  animation: sobe .2s ease-out; font-size: 13.5px; }
.toast.ok { border-left-color: var(--ok); } .toast.erro { border-left-color: var(--critico); } .toast.aviso { border-left-color: var(--aviso); }
.toast.ok svg { color: var(--ok); } .toast.erro svg { color: var(--critico); }
@media (max-width: 760px) { .toasts { left: 16px; right: 16px; bottom: 84px; max-width: none; } }

/* ---------- Abas e segmentos ---------- */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--borda); overflow-x: auto; }
.aba { padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--texto-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.aba[aria-selected="true"] { color: var(--texto); border-bottom-color: var(--acento); }
.segmento { display: inline-flex; background: var(--neutro-fundo); border-radius: 10px; padding: 3px; gap: 2px; }
.segmento button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600;
  color: var(--texto-2); font-size: 13px; }
.segmento button[aria-pressed="true"] { background: var(--card); color: var(--texto); box-shadow: var(--sombra); }

/* =================== TELAS PÚBLICAS (login etc.) =================== */
.publico { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.publico-arte { background: var(--heroi); color: #fff; padding: 48px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.publico-arte::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -160px;
  border-radius: 50%; border: 56px solid rgba(57,214,176,.12); }
.publico-arte::after { content: ""; position: absolute; width: 260px; height: 260px; right: 40px; top: 70px;
  border-radius: 50%; border: 2px dashed rgba(255,255,255,.12); }
.publico-arte h2 { font-size: 34px; line-height: 1.15; max-width: 440px; font-weight: 750; letter-spacing: -0.02em; }
.publico-arte h2 em { font-style: normal; color: var(--acento); }
.publico-arte p { color: rgba(255,255,255,.75); max-width: 420px; font-size: 15px; }
.publico-arte .pilares { display: grid; grid-template-columns: repeat(3, auto); gap: 22px; justify-content: start; position: relative; z-index: 1; }
.publico-arte .pilar { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.85); font-size: 13px; }
.publico-arte .pilar svg { color: var(--acento); }
.publico-form { display: grid; place-items: center; padding: 32px 20px; }
.publico-caixa { width: min(400px, 100%); }
.publico-caixa .logo { height: 44px; margin-bottom: 30px; }
.publico-caixa h1 { font-size: 26px; margin-bottom: 6px; }
.publico-caixa > p { color: var(--texto-2); margin: 0 0 26px; }
.publico-caixa form { display: flex; flex-direction: column; gap: 16px; }
.publico-caixa .btn { height: 46px; }
.publico-rodape { margin-top: 28px; font-size: 12px; color: var(--texto-3); text-align: center; }
.alerta { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--info-fundo); font-size: 13.5px; }
.alerta.erro { background: var(--critico-fundo); } .alerta.ok { background: var(--ok-fundo); } .alerta.aviso { background: var(--aviso-fundo); }
.alerta svg { flex: none; margin-top: 1px; }
@media (max-width: 860px) { .publico { grid-template-columns: 1fr; } .publico-arte { display: none; } }
.tema-escuro-only { display: none; }
[data-paleta="dark"] .tema-escuro-only { display: inline; } [data-paleta="dark"] .tema-claro-only { display: none; }

/* =================== ÁREA DO FUNCIONÁRIO =================== */
.app-func { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 0 16px 104px; position: relative; }
.func-topo { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; gap: 12px; }
.func-topo .quem { display: flex; gap: 12px; align-items: center; min-width: 0; }
.func-topo .quem b { display: block; font-size: 16px; } .func-topo .quem span { color: var(--texto-2); font-size: 13px; }
.btn-sino { position: relative; }
.btn-sino .contador { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--critico); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.relogio-card { background: var(--heroi); color: var(--heroi-texto); border-radius: 22px; padding: 22px 22px 20px;
  position: relative; overflow: hidden; box-shadow: var(--sombra-alta); }
.relogio-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px;
  border-radius: 50%; border: 28px solid rgba(57,214,176,.13); }
.relogio-card .empresa { font-size: 12.5px; color: rgba(255,255,255,.7); display: flex; gap: 6px; align-items: center; }
.relogio { font-size: 52px; font-weight: 750; letter-spacing: -0.03em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; line-height: 1; }
.relogio small { font-size: 26px; font-weight: 600; opacity: .55; margin-left: 2px; }
.relogio-card .data { color: rgba(255,255,255,.8); font-size: 14px; }
.relogio-card .chip { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; padding: 5px 11px;
  border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12.5px; font-weight: 600; }
.relogio-card .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 4px rgba(57,214,176,.2); }
.btn-registrar { width: 100%; height: 66px; margin: 16px 0; border: 0; border-radius: 18px; cursor: pointer;
  background: linear-gradient(120deg, var(--acento), color-mix(in srgb, var(--acento) 55%, var(--azul)));
  color: var(--acento-texto); font-size: 18px; font-weight: 750; display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--acento) 40%, transparent); transition: transform .1s, box-shadow .2s, filter .2s; }
.btn-registrar:hover:not(:disabled) { filter: brightness(1.04); box-shadow: 0 14px 32px color-mix(in srgb, var(--acento) 50%, transparent); }
.btn-registrar:active:not(:disabled) { transform: scale(.985); }
.btn-registrar svg { width: 26px; height: 26px; }
.btn-registrar:disabled { background: var(--neutro-fundo); color: var(--texto-2); box-shadow: none; cursor: default; }
.btn-registrar.pulso { animation: pulso 2.4s infinite; }
@keyframes pulso { 0%, 100% { box-shadow: 0 10px 26px color-mix(in srgb, var(--acento) 40%, transparent); }
  50% { box-shadow: 0 10px 34px color-mix(in srgb, var(--acento) 65%, transparent); } }
.jornada-lista { padding: 6px 4px; }
.marca-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.marca-item + .marca-item { border-top: 1px solid var(--borda); border-radius: 0; }
.marca-item .indic { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--borda-forte); display: grid; place-items: center; flex: none; }
.marca-item.feita .indic { background: var(--ok); border-color: var(--ok); color: #fff; }
.marca-item.feita .indic svg { width: 15px; height: 15px; stroke-width: 3; }
.marca-item.proxima .indic { border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 22%, transparent); }
.marca-item .txt { flex: 1; min-width: 0; } .marca-item .txt b { display: block; font-size: 14px; } .marca-item .txt span { font-size: 12px; color: var(--texto-3); }
.marca-item .hora { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.marca-item .hora small { display: block; font-size: 11px; font-weight: 500; color: var(--texto-3); }
.proxima-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--info-fundo); }
.proxima-card .ic-bola { width: 38px; height: 38px; border-radius: 12px; background: var(--card); display: grid; place-items: center; color: var(--azul); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mini-stat { background: var(--card); border: 1px solid var(--borda); border-radius: 14px; padding: 12px; }
.mini-stat span { font-size: 11.5px; color: var(--texto-3); display: block; } .mini-stat b { font-size: 17px; font-variant-numeric: tabular-nums; }
.nav-inferior { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--borda);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav-inferior .itens { display: grid; grid-template-columns: repeat(5, 1fr); width: min(520px, 100%); }
.nav-inferior a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; font-size: 11px;
  font-weight: 600; color: var(--texto-3); border-radius: 12px; }
.nav-inferior a svg { width: 22px; height: 22px; }
.nav-inferior a[aria-current="page"] { color: var(--primaria); }
[data-paleta="dark"] .nav-inferior a[aria-current="page"] { color: var(--acento); }
.nav-inferior a[aria-current="page"] svg { stroke-width: 2.3; }
.secao-tit { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.secao-tit h2 { font-size: 16px; }
.seletor-mes { display: flex; align-items: center; gap: 4px; }
.seletor-mes b { min-width: 130px; text-align: center; font-size: 14px; }
.dia-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--borda); cursor: pointer; width: 100%; text-align: left; transition: border-color .15s, transform .1s; }
.dia-card:hover { border-color: var(--borda-forte); }
.dia-card .dia-num { width: 44px; text-align: center; flex: none; } .dia-card .dia-num b { display: block; font-size: 18px; }
.dia-card .dia-num span { font-size: 11px; color: var(--texto-3); text-transform: uppercase; }
.dia-card .horas { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--texto-2); }
.dia-card .horas span.vazio-h { color: var(--texto-3); opacity: .6; }
.dia-card.descanso { background: var(--card-2); }
.lista-dias { display: flex; flex-direction: column; gap: 8px; }
.recibo { background: var(--card); border-radius: 18px; border: 1px solid var(--borda); padding: 22px; position: relative; }
.recibo .hora-grande { text-align: center; padding: 16px; border-radius: 14px; background: var(--ok-fundo); margin: 14px 0; }
.recibo .hora-grande b { font-size: 34px; font-variant-numeric: tabular-nums; display: block; }
.recibo dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.recibo dt { color: var(--texto-3); } .recibo dd { margin: 0; font-weight: 600; word-break: break-word; }
.recibo .hash { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--texto-3); word-break: break-all; }
.sucesso-anim { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center;
  margin: 0 auto; animation: estoura .45s cubic-bezier(.2,1.6,.4,1); }
.sucesso-anim svg { width: 38px; height: 38px; stroke-width: 3; }
@keyframes estoura { from { transform: scale(.4); opacity: 0; } }

/* =================== PAINEL ADMINISTRATIVO =================== */
.app-admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s; }
.app-admin.recolhido { grid-template-columns: 76px minmax(0, 1fr); }
.lateral { background: var(--lateral); color: var(--lateral-texto); position: sticky; top: 0; height: 100vh; display: flex;
  flex-direction: column; padding: 18px 12px; overflow-y: auto; overflow-x: hidden; z-index: 40; }
.lateral .logo-area { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 18px; gap: 8px; }
.lateral .logo-area img { height: 34px; }
.lateral .logo-area .icone-so { display: none; height: 36px; }
.lateral nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lateral .grupo { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--lateral-texto) 60%, transparent);
  padding: 14px 12px 6px; font-weight: 700; white-space: nowrap; }
.lateral a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--lateral-texto);
  font-weight: 550; white-space: nowrap; transition: background .15s, color .15s; }
.lateral a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lateral a[aria-current="page"] { background: var(--lateral-ativo); color: #fff; box-shadow: inset 3px 0 0 var(--acento); }
.lateral a .qtd { margin-left: auto; background: var(--acento); color: var(--acento-texto); font-size: 11px; font-weight: 700;
  border-radius: 9px; padding: 1px 7px; }
.lateral .rodape-lat { border-top: 1px solid var(--lateral-borda); padding-top: 12px; margin-top: 12px; }
.app-admin.recolhido .lateral .rotulo-nav, .app-admin.recolhido .lateral .grupo, .app-admin.recolhido .lateral .qtd,
.app-admin.recolhido .lateral .logo-area .logo-full { display: none; }
.app-admin.recolhido .lateral .logo-area { flex-direction: column; }
.app-admin.recolhido .lateral .logo-area .icone-so { display: block; }
.app-admin.recolhido .lateral a { justify-content: center; padding: 10px; }
.btn-recolher { color: var(--lateral-texto); }
.btn-recolher:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: color-mix(in srgb, var(--fundo) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borda); }
.topo .esp { flex: 1; }
.topo .btn-menu { display: none; }
.usuario-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 12px; }
.usuario-btn:hover { background: var(--neutro-fundo); }
.usuario-btn .avatar { width: 34px; height: 34px; font-size: 12.5px; }
.usuario-btn .txt { text-align: left; line-height: 1.2; } .usuario-btn .txt b { font-size: 13px; display: block; } .usuario-btn .txt span { font-size: 11.5px; color: var(--texto-3); }
.menu-flut { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card); border: 1px solid var(--borda);
  border-radius: 14px; box-shadow: var(--sombra-alta); padding: 6px; z-index: 70; animation: sobe .15s; }
.menu-flut button, .menu-flut a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none;
  border-radius: 9px; cursor: pointer; color: var(--texto); font-weight: 500; text-align: left; }
.menu-flut button:hover, .menu-flut a:hover { background: var(--neutro-fundo); }
.menu-flut hr { border: 0; border-top: 1px solid var(--borda); margin: 6px 0; }
.conteudo { padding: 24px 28px 48px; max-width: 1440px; width: 100%; }
.pagina-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pagina-cab p { margin: 4px 0 0; color: var(--texto-2); }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filtros .campo { min-width: 160px; }
.filtros .entrada { height: 38px; }
@media (max-width: 1000px) {
  .app-admin, .app-admin.recolhido { grid-template-columns: 1fr; }
  .lateral { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .2s; }
  .app-admin.menu-aberto .lateral { transform: none; box-shadow: var(--sombra-alta); }
  .app-admin.recolhido .lateral .rotulo-nav, .app-admin.recolhido .lateral .grupo { display: initial; }
  .topo .btn-menu { display: inline-flex; } .btn-recolher { display: none !important; }
  .topo, .conteudo { padding-left: 16px; padding-right: 16px; }
  .usuario-btn .txt { display: none; }
}
.veu-menu { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 16px; display: flex; gap: 12px;
  align-items: flex-start; box-shadow: var(--sombra); transition: transform .15s, box-shadow .15s; }
a.kpi { color: inherit; } a.kpi:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.kpi .kpi-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--neutro-fundo);
  color: var(--texto-2); flex: none; }
.kpi .kpi-ic.ok { background: var(--ok-fundo); color: var(--ok); } .kpi .kpi-ic.aviso { background: var(--aviso-fundo); color: #B57E00; }
.kpi .kpi-ic.critico { background: var(--critico-fundo); color: var(--critico); } .kpi .kpi-ic.info { background: var(--info-fundo); color: var(--azul); }
.kpi .kpi-ic.serio { background: var(--serio-fundo); color: #C4592F; }
[data-paleta="dark"] .kpi .kpi-ic.aviso { color: var(--aviso); } [data-paleta="dark"] .kpi .kpi-ic.serio { color: var(--serio); }
.kpi b { font-size: 24px; font-weight: 750; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi span { font-size: 12.5px; color: var(--texto-2); }

/* Gráficos */
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .legenda { display: flex; gap: 16px; font-size: 12.5px; color: var(--texto-2); margin-bottom: 8px; flex-wrap: wrap; }
.grafico .legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.grafico .dica-graf { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--borda);
  border-radius: 10px; padding: 8px 10px; font-size: 12px; box-shadow: var(--sombra-alta); white-space: nowrap; z-index: 5; display: none; }
.grafico .dica-graf b { display: block; margin-bottom: 3px; }
.barra-h { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; }
.barra-h .trilho { height: 10px; border-radius: 0 4px 4px 0; background: transparent; position: relative; }
.barra-h .trilho i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--serie-1); min-width: 2px; }
.barra-h .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Calendário mensal (gestão) */
.cal-wrap { overflow: auto; max-height: calc(100vh - 290px); border-top: 1px solid var(--borda); }
table.cal { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.cal th, .cal td { border-bottom: 1px solid var(--borda); border-right: 1px solid var(--borda); }
.cal thead th { position: sticky; top: 0; background: var(--card-2); z-index: 2; padding: 6px 2px; min-width: 50px; font-weight: 600; color: var(--texto-2); }
.cal thead th.fds { color: var(--texto-3); }
.cal .col-nome { position: sticky; left: 0; background: var(--card); z-index: 3; min-width: 210px; max-width: 210px; text-align: left; padding: 8px 12px; }
.cal thead .col-nome { z-index: 4; background: var(--card-2); }
.cal .col-nome b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .col-nome span { color: var(--texto-3); font-size: 11.5px; }
.cal td.celula { padding: 3px; height: 50px; }
.cal .cel { width: 100%; height: 100%; min-height: 42px; border: 0; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; background: var(--neutro-fundo); color: var(--texto-2); font-size: 10.5px;
  font-variant-numeric: tabular-nums; padding: 2px; transition: transform .1s, box-shadow .1s; }
.cal .cel:hover { transform: scale(1.06); box-shadow: var(--sombra-alta); z-index: 1; position: relative; }
.cal .cel svg { width: 14px; height: 14px; stroke-width: 2.4; }
.cal .cel.regular { background: var(--ok-fundo); color: var(--texto); } .cal .cel.regular svg { color: var(--ok); }
.cal .cel.extra { background: var(--info-fundo); color: var(--texto); } .cal .cel.extra svg { color: var(--azul); }
.cal .cel.atraso, .cal .cel.saida_antecipada { background: var(--serio-fundo); color: var(--texto); } .cal .cel.atraso svg, .cal .cel.saida_antecipada svg { color: var(--serio); }
.cal .cel.incompleto { background: var(--aviso-fundo); color: var(--texto); } .cal .cel.incompleto svg { color: #B57E00; }
.cal .cel.falta { background: var(--critico-fundo); color: var(--texto); } .cal .cel.falta svg { color: var(--critico); }
.cal .cel.ferias, .cal .cel.atestado, .cal .cel.licenca, .cal .cel.falta_justificada, .cal .cel.compensacao { background: color-mix(in srgb, var(--azul) 10%, var(--card)); color: var(--texto); }
.cal .cel.folga, .cal .cel.feriado, .cal .cel.futuro, .cal .cel.sem_jornada, .cal .cel.fora_contrato { background: transparent; color: var(--texto-3); }
.cal .cel.pendente { box-shadow: inset 0 0 0 2px var(--aviso); }
.cal td.tot { padding: 6px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; background: var(--card); }
.legenda-cal { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--texto-2); padding: 12px 18px; }
.legenda-cal span { display: inline-flex; align-items: center; gap: 6px; }
.legenda-cal i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* Pendências */
.pend { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--borda); align-items: flex-start; }
.pend:last-child { border-bottom: 0; }
.pend .pend-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.pend.bloqueante .pend-ic { background: var(--critico-fundo); color: var(--critico); }
.pend.aviso .pend-ic { background: var(--aviso-fundo); color: #B57E00; }
.pend.info .pend-ic { background: var(--info-fundo); color: var(--azul); }
.status-comp { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; }
.status-comp.aberta { background: var(--aviso-fundo); } .status-comp.fechada { background: var(--ok-fundo); }
.status-comp .grande-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card); }

/* Paletas (carrossel) */
.paletas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 6px; }
.paleta-op { scroll-snap-align: start; border: 2px solid var(--borda); border-radius: 16px; padding: 10px; cursor: pointer;
  background: var(--card); text-align: left; transition: border-color .15s, transform .15s; }
.paleta-op:hover { transform: translateY(-2px); }
.paleta-op[aria-pressed="true"] { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); }
.paleta-op .mini { border-radius: 12px; padding: 12px; color: #fff; height: 96px; display: flex; flex-direction: column; justify-content: space-between; }
.paleta-op .mini .h { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.paleta-op .mini .b { height: 16px; border-radius: 6px; }
.paleta-op .cores { display: flex; gap: 5px; margin: 10px 0 6px; } .paleta-op .cores i { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }
.paleta-op b { display: block; font-size: 13.5px; } .paleta-op span { font-size: 12px; color: var(--texto-3); }

/* Telas de erro e estados globais */
.erro-tela { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; }
.erro-logo { height: 40px; margin-bottom: 36px; }
.erro-codigo { font-size: 92px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: var(--heroi);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.erro-ic { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--neutro-fundo); color: var(--texto-2); margin-bottom: 8px; }
.erro-ic svg { width: 40px; height: 40px; }
.erro-tela h1 { margin: 14px 0 8px; font-size: 24px; } .erro-tela p { color: var(--texto-2); max-width: 460px; margin: 0 auto; }
.erro-acoes { display: flex; gap: 10px; justify-content: center; margin: 26px 0 18px; flex-wrap: wrap; }
.erro-suporte { font-size: 12.5px; color: var(--texto-3) !important; }
body.pagina-erro { background: var(--fundo); }
.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 130; background: var(--critico); color: #fff; text-align: center;
  padding: 8px 12px; font-size: 13px; font-weight: 600; display: flex; gap: 10px; justify-content: center; align-items: center; }
.offline .btn { height: 28px; background: rgba(255,255,255,.2); color: #fff; }
.carregando-tela { min-height: 100vh; display: grid; place-items: center; }
.carregando-tela img { width: 64px; animation: respira 1.4s ease-in-out infinite; }
@keyframes respira { 50% { transform: scale(.92); opacity: .7; } }
.lista-notif { max-height: 70vh; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--borda); cursor: pointer; border-radius: 8px; }
.notif:hover { background: var(--card-2); }
.notif .bolinha { width: 8px; height: 8px; border-radius: 50%; background: var(--acento); margin-top: 7px; flex: none; }
.notif.lida .bolinha { background: transparent; } .notif.lida b { font-weight: 550; color: var(--texto-2); }
.dl-grade { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.dl-grade dt { color: var(--texto-3); } .dl-grade dd { margin: 0; font-weight: 600; }
.chips-perm { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .lateral, .topo, .nav-inferior, .btn, .toasts { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* =================== RESPONSIVIDADE =================== */
.nota-ponto { text-align: center; margin-top: 18px; }
.grade-fech { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.card-cab { flex-wrap: wrap; }

/* ---- Funcionário no computador: largura maior, abas no topo e ponto em duas colunas ---- */
@media (min-width: 1000px) {
  .app-func { max-width: 1120px; padding: 0 32px 48px; display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "topo" "nav" "main"; align-content: start; }
  .app-func > .func-topo { grid-area: topo; padding-top: 22px; }
  .app-func > main { grid-area: main; padding-top: 22px; min-width: 0; }
  .nav-inferior { grid-area: nav; position: sticky; top: 0; bottom: auto; justify-content: flex-start; padding: 0;
    border-top: 0; border-bottom: 1px solid var(--borda); background: color-mix(in srgb, var(--fundo) 90%, transparent); }
  .nav-inferior .itens { display: flex; gap: 4px; width: auto; }
  .nav-inferior a { flex-direction: row; gap: 8px; padding: 14px 16px; font-size: 14px; border-radius: 0;
    border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .nav-inferior a svg { width: 19px; height: 19px; }
  .nav-inferior a:hover { color: var(--texto); }
  .nav-inferior a[aria-current="page"] { border-bottom-color: var(--acento); }

  .ponto-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: start;
    grid-template-areas: "rel jor" "btn jor" "prox jor" "stats jor" "extra jor" "nota nota"; }
  .ponto-grade > .ponto-extra { grid-area: extra; }
  .ponto-grade > .relogio-card { grid-area: rel; }
  .ponto-grade > .btn-registrar { grid-area: btn; height: 76px; font-size: 19px; }
  .ponto-grade > .jornada-hoje { grid-area: jor; }
  .ponto-grade > .proxima-card { grid-area: prox; margin-top: 0; margin-bottom: 14px; }
  .ponto-grade > .mini-stats { grid-area: stats; margin-top: 0; }
  .ponto-grade > .nota-ponto { grid-area: nota; }
  .ponto-grade .relogio { font-size: 64px; } .ponto-grade .relogio small { font-size: 30px; }
  .ponto-grade .jornada-hoje .marca-item { padding: 16px 14px; }

  .lista-dias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lista-dias > :not(.dia-card) { grid-column: 1 / -1; }
}

/* ---- Tablet e celular: painel administrativo ---- */
@media (max-width: 1000px) {
  .topo .esp { display: none; }
  .topo .campo { flex: 1 1 auto !important; max-width: none !important; }
  .grade-fech { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .conteudo { padding-top: 18px; }
  .pagina-cab { align-items: stretch; }
  .pagina-cab > div:first-child { width: 100%; }
  .pagina-cab > .linha { width: 100%; }
  .pagina-cab > .linha > .btn { flex: 1 1 140px; }
  .filtros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtros .campo { min-width: 0 !important; }
  .filtros .campo:only-child, .filtros .segmento { grid-column: 1 / -1; }
  .filtros .entrada { width: 100%; }
  .filtros input[type="month"], .filtros input[type="date"] { padding-left: 10px; padding-right: 6px; font-size: 14px; }
  .segmento { overflow-x: auto; max-width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; gap: 10px; flex-direction: column; }
  .kpi .kpi-ic { width: 32px; height: 32px; border-radius: 10px; }
  .kpi .kpi-ic svg { width: 16px; height: 16px; }
  .kpi b { font-size: 20px; }
  .kpi span { font-size: 12px; }
  .barra-h { grid-template-columns: 96px 1fr 32px; }
  .cal .col-nome { min-width: 128px; max-width: 128px; padding: 6px 8px; }
  .cal thead th { min-width: 44px; }

  /* tabelas viram cartões: cada linha um bloco com rótulo: valor */
  .tabela.cartoes thead { display: none; }
  .tabela.cartoes, .tabela.cartoes tbody { display: block; }
  .tabela.cartoes tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--borda); }
  .tabela.cartoes tr:last-child { border-bottom: 0; }
  .tabela.cartoes tbody tr:hover td { background: none; }
  .tabela.cartoes td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 4px 16px;
    text-align: right; min-height: 28px; }
  .tabela.cartoes td::before { content: attr(data-rot); color: var(--texto-3); font-size: 12px; font-weight: 600; text-align: left; flex: none; }
  .tabela.cartoes td:first-child { text-align: left; padding-bottom: 6px; }
  .tabela.cartoes td:first-child::before, .tabela.cartoes td[colspan]::before, .tabela.cartoes td[data-rot=""]::before { display: none; }
  .tabela.cartoes td[data-rot=""]:empty { display: none; }
  .tabela.cartoes td.acoes { justify-content: flex-end; padding-top: 8px; }
  .tabela.cartoes td[colspan] { display: block; text-align: center; }
  .tabela-wrap:has(> .tabela.cartoes) { overflow-x: visible; }
}

/* ===================== COMPENSAÇÃO, RECESSO E BANCO DE HORAS =====================
   Cores de status: verde = jornada regular · azul = período de compensação/recesso ·
   roxo = saldo acumulado · amarelo = pendência de marcação · vermelho = inconsistência */
:root { --comp: #2F6FE4; --comp-fundo: rgba(47,111,228,.12); --comp-texto: #1F57C0;
  --saldo: #7C3AED; --saldo-fundo: rgba(124,58,237,.11); --saldo-texto: #6427CF; }
[data-paleta="dark"] { --comp: #60A5FA; --comp-fundo: rgba(96,165,250,.16); --comp-texto: #93C5FD;
  --saldo: #C084FC; --saldo-fundo: rgba(192,132,252,.16); --saldo-texto: #D8B4FE; }
.badge.comp { background: var(--comp-fundo); } .badge.comp .ponto { background: var(--comp); }
.badge.saldo { background: var(--saldo-fundo); } .badge.saldo .ponto { background: var(--saldo); }
.cal .cel.recesso { background: var(--comp-fundo); color: var(--texto); } .cal .cel.recesso svg { color: var(--comp); }
.cal .cel.trabalho_em_ferias { background: var(--critico-fundo); color: var(--texto); box-shadow: inset 0 0 0 2px var(--critico); }
.cal .cel.trabalho_em_ferias svg { color: var(--critico); }
.cal .cel.periodo { position: relative; }
.cal .cel.periodo::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--comp); }
.saldo-txt { color: var(--saldo-texto); font-weight: 700; }
.saldo-txt.neg { color: var(--critico); }
.kpi .kpi-ic.comp { background: var(--comp-fundo); color: var(--comp); }
.kpi .kpi-ic.saldo { background: var(--saldo-fundo); color: var(--saldo); }
.mini-stat.saldo { background: var(--saldo-fundo); border-color: transparent; } .mini-stat.saldo b { color: var(--saldo-texto); }
.periodo-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-top: 14px;
  background: var(--comp-fundo); border: 1px solid color-mix(in srgb, var(--comp) 35%, transparent); }
.periodo-card .ic-bola { width: 38px; height: 38px; border-radius: 12px; background: var(--card); color: var(--comp); display: grid; place-items: center; flex: none; }
.periodo-card b { color: var(--comp-texto); } .periodo-card p { margin: 2px 0 0; font-size: 13px; color: var(--texto-2); }
.periodo-card.futuro { background: var(--card); border-style: dashed; }
.legenda-status { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--texto-2); margin-top: 14px; }
.legenda-status span { display: inline-flex; align-items: center; gap: 6px; }
.legenda-status i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legenda-status .l-ok { background: var(--ok); } .legenda-status .l-comp { background: var(--comp); }
.legenda-status .l-saldo { background: var(--saldo); } .legenda-status .l-aviso { background: var(--aviso); }
.legenda-status .l-critico { background: var(--critico); }
.dia-card.periodo { border-left: 4px solid var(--comp); }
.dia-card .tag-per { display: block; font-size: 10.5px; color: var(--comp-texto); font-weight: 600; margin-top: 2px; }
.mov-lista { display: flex; flex-direction: column; }
.mov { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.mov:last-child { border-bottom: 0; }
.mov .mov-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.mov.credito .mov-ic { background: var(--saldo-fundo); color: var(--saldo); }
.mov.debito .mov-ic { background: var(--critico-fundo); color: var(--critico); }
.mov.compensacao .mov-ic { background: var(--comp-fundo); color: var(--comp); }
.mov .mov-txt { flex: 1; min-width: 0; } .mov .mov-txt b { display: block; font-size: 13.5px; }
.mov .mov-txt span { font-size: 12px; color: var(--texto-3); }
.mov .mov-val { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.mov.cancelado { opacity: .55; } .mov.cancelado .mov-val { text-decoration: line-through; }
.dia-card .horas span { white-space: nowrap; }
@media (max-width: 640px) { .dia-card { flex-wrap: wrap; row-gap: 6px; } .dia-card > div:last-child { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding-left: 56px; text-align: left !important; } .dia-card .tag-per { margin-top: 0; } }

/* ===================== LEMBRETES E MARCAÇÕES PENDENTES ===================== */
.alerta-ponto { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin: 14px 0 0;
  background: var(--aviso-fundo); border: 1px solid color-mix(in srgb, var(--aviso) 45%, transparent); }
.alerta-ponto > svg { color: #B57E00; flex: none; margin-top: 2px; }
[data-paleta="dark"] .alerta-ponto > svg { color: var(--aviso); }
.alerta-ponto.info { background: var(--comp-fundo); border-color: color-mix(in srgb, var(--comp) 40%, transparent); }
.alerta-ponto.info > svg { color: var(--comp); }
.alerta-ponto b { display: block; } .alerta-ponto p { margin: 4px 0 10px; font-size: 13.5px; color: var(--texto-2); }
.ponto-grade > .alerta-ponto { grid-column: 1 / -1; margin: 0 0 14px; }
@media (min-width: 1000px) { .ponto-grade { grid-template-areas: "alerta alerta" "rel jor" "btn jor" "prox jor" "stats jor" "extra jor" "nota nota"; }
  .ponto-grade > .alerta-ponto { grid-area: alerta; } }
.pend-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pend-grupo .card-cab h2 { font-size: 15px; } .pend-grupo .qtd-g { font-variant-numeric: tabular-nums; }
.pend-pessoa { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.pend-pessoa:last-child { border-bottom: 0; }
.pend-pessoa .txt { flex: 1; min-width: 0; } .pend-pessoa .txt b { display: block; }
.pend-pessoa .txt span { font-size: 12px; color: var(--texto-3); }
.trilha { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.trilha .badge { font-size: 11px; padding: 2px 7px; }

/* Acesso somente para consulta (após o desligamento) */
.faixa-consulta { margin: 12px 16px 0; }
@media (min-width: 900px) { .faixa-consulta { margin: 16px auto 0; max-width: 1100px; } }
.filtros #regra-acesso { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
.filtros #regra-acesso b { margin-left: -4px; }

/* Verificação em duas etapas */
.qr-mfa{display:flex;justify-content:center;padding:12px;background:#fff;border-radius:12px;border:1px solid var(--borda);width:max-content;max-width:100%;margin:0 auto}
.qr-mfa svg{width:200px;height:200px;display:block}
.chave-mfa{word-break:break-all;padding:8px 0;user-select:all}
.campo-codigo{letter-spacing:4px;font-size:18px}
.codigos-rec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;padding:12px;border:1px dashed var(--borda);border-radius:10px;font-size:15px}

/* Sessões e aparelhos */
.lista-sessoes{display:flex;flex-direction:column;gap:8px}
.sessao-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--borda);border-radius:12px}
.sessao-ic{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--neutro-fundo);flex:none}
