/* BERGAMOTA · identidade Biomaq (preto, branco e vermelho) */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

:root {
  --ink: #111111;
  --ink2: #1D1D1C;
  --bg: #F3F3F1;
  --card: #FFFFFF;
  --line: #E3E3DF;
  --line2: #EEEEEA;
  --field: #FAFAF8;
  --fieldline: #D4D4CE;
  --muted: #5E5E58;
  --soft: #B9B9B2;
  --red: #D3201F;
  --red-claro: #FF6B5E;
  --amber: #F2B33D;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
.cond { font-family: var(--cond); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Logo provisório */
.logo { display: inline-grid; grid-template-columns: auto auto; align-items: end; column-gap: 6px; row-gap: 2px; line-height: 1; }
.logo-nome { font-family: var(--cond); font-weight: 800; letter-spacing: .06em; font-size: 26px; }
.logo-ponto { width: 7px; height: 7px; background: var(--red); margin-bottom: 4px; }
.logo-sub { grid-column: 1 / -1; font-size: 8px; font-weight: 600; letter-spacing: .42em; color: var(--muted); }
.logo-claro .logo-nome { color: #FFF; }
.logo-claro .logo-sub { color: var(--soft); }
.logo-g .logo-nome { font-size: 32px; }
.logo-g .logo-ponto { width: 9px; height: 9px; margin-bottom: 5px; }
.logo-g .logo-sub { font-size: 9px; }

.splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); }

/* Faixa do modo demonstração */
.demo-faixa { background: var(--red); color: #FFF; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-align: center; padding: 5px 10px calc(5px); }

/* ---------- Botões e campos ---------- */
.btn { height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--ink); background: #FFF; color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-preto { background: var(--ink); color: #FFF; }
.btn-vermelho { background: var(--red); border-color: var(--red); color: #FFF; }
.btn-grande { height: 56px; border-radius: 14px; font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: .06em; text-transform: uppercase; width: 100%; }
.btn-texto { border: 0; background: none; padding: 0 6px; height: 40px; font-weight: 600; text-decoration: underline; }
.btn-pequeno { height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 13px; font-weight: 600; color: #3D3D39; }
.campo input, .campo select, .campo textarea { height: 50px; border: 1.5px solid var(--fieldline); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--field); outline: none; }
.campo textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--ink); background: #FFF; }
.campo .ajuda { font-size: 12.5px; color: var(--muted); }
.erro-msg { background: #FDECEA; color: #8E1412; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }

/* ---------- Login ---------- */
.login { min-height: 100vh; background: var(--ink); display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
.login-topo { flex: 1; display: flex; flex-direction: column; padding: calc(36px + var(--safe-t)) 28px 28px; gap: 24px; color: #FFF; min-height: 320px; }
.login-topo .linha { display: flex; justify-content: space-between; align-items: center; }
.selo { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--soft); border: 1px solid #3A3A38; border-radius: 999px; padding: 6px 12px; }
.login-chamada { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.login-chamada .risco { width: 48px; height: 4px; background: var(--red); }
.login-chamada h1 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 56px; line-height: .95; text-transform: uppercase; }
.login-chamada p { margin: 0; font-size: 16px; line-height: 1.45; color: #C9C9C3; max-width: 320px; }
.login-form { background: #FFF; border-radius: 28px 28px 0 0; padding: 28px 24px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 26px; }
.login-rodape { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.login-aviso { margin: 0; text-align: center; font-size: 11.5px; line-height: 1.4; color: #6B6B65; }
.demo-dica { background: #F3F3F1; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: #3D3D39; }
.senha-wrap { position: relative; display: flex; }
.senha-wrap input { flex: 1; padding-right: 52px; }
.senha-olho { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }

/* ---------- Casca do funcionário ---------- */
.func { min-height: 100vh; max-width: 520px; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; }
.func-topo { position: sticky; top: 0; z-index: 5; height: calc(64px + var(--safe-t)); padding: var(--safe-t) 20px 0; background: #FFF; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.avatar { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: #FFF; font-family: var(--cond); font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar-claro { background: #EDEDE9; color: var(--ink); }
.func-main { flex: 1; padding: 16px 16px calc(96px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.ola { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ola h1 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 26px; }
.ola span { font-size: 14px; color: var(--muted); }
.relogio { background: var(--ink); color: #FFF; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.relogio-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pilula { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; background: #262624; border-radius: 999px; padding: 6px 12px; }
.pilula .bola { width: 8px; height: 8px; border-radius: 999px; background: #8E8E87; }
.bola-jornada { background: #5BD08A !important; }
.bola-pausa { background: var(--amber) !important; }
.relogio-hora { display: flex; align-items: baseline; gap: 4px; font-family: var(--cond); }
.relogio-hora b { font-weight: 700; font-size: 84px; line-height: .9; }
.relogio-hora span { font-weight: 600; font-size: 30px; color: #8E8E87; }
.relogio-base { display: flex; border-top: 1px solid #2E2E2C; padding-top: 12px; }
.relogio-base > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.relogio-base small { font-size: 12px; color: var(--soft); }
.relogio-base strong { font-family: var(--cond); font-weight: 700; font-size: 22px; }
.bater { min-height: 72px; border-radius: 18px; background: var(--red); color: #FFF; border: 0; display: flex; align-items: center; gap: 14px; padding: 12px 20px; text-align: left; width: 100%; }
.bater .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex: none; }
.bater small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.bater b { display: block; font-family: var(--cond); font-weight: 700; font-size: 23px; letter-spacing: .02em; line-height: 1.1; }
.rotulo { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--fieldline); background: #FFF; color: var(--ink); font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #FFF; border-color: var(--ink); }
.cartao { background: #FFF; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.cartao-topo { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.cartao-topo h2 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 19px; }
.linha-batida { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); }
.linha-batida:first-of-type { border-top: 0; }
.mini-foto { width: 46px; height: 56px; border-radius: 10px; background: #D9D9D4; flex: none; object-fit: cover; border: 0; padding: 0; display: block; overflow: hidden; }
.linha-batida .meio { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linha-batida .meio b { font-weight: 600; font-size: 15px; }
.linha-batida .meio span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-batida .dir { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.linha-batida .dir b { font-family: var(--cond); font-weight: 700; font-size: 22px; }
.linha-batida .dir span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.vazio { padding: 14px 0 8px; font-size: 14px; color: var(--muted); }
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; max-width: 520px; margin: 0 auto; height: calc(72px + var(--safe-b)); padding-bottom: var(--safe-b); background: #FFF; border-top: 1px solid var(--line); display: flex; }
.abas button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.abas button[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Meu ponto */
.mp-topo { background: var(--ink); color: #FFF; padding: calc(20px + var(--safe-t)) 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.mp-topo h1 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; }
.mp-mes { display: flex; align-items: center; justify-content: space-between; background: #1F1F1E; border-radius: 12px; padding: 4px; }
.mp-mes button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: center; }
.mp-mes button:disabled { opacity: .35; }
.mp-mes span { font-weight: 600; font-size: 16px; }
.mp-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mp-resumo small { display: block; font-size: 12px; color: var(--soft); }
.mp-resumo b { font-family: var(--cond); font-weight: 700; font-size: 26px; }
.dia { background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 14px; }
.dia-falta { border-color: var(--red); }
.dia .data { width: 40px; flex: none; display: flex; flex-direction: column; align-items: center; }
.dia .data small { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.dia .data b { font-family: var(--cond); font-weight: 700; font-size: 24px; line-height: 1; }
.dia .meio { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dia .meio span { font-size: 14px; color: #3D3D39; overflow-wrap: anywhere; }
.etiqueta { align-self: flex-start; font-size: 12px; font-weight: 700; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 7px; }
.etiqueta-vermelha { color: var(--red); }
.dia .horas { font-family: var(--cond); font-weight: 700; font-size: 20px; white-space: nowrap; }
.nota { margin: 4px 2px 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Perfil */
.perfil-cartao { background: #FFF; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.perfil-cab { display: flex; align-items: center; gap: 14px; }
.perfil-cab .avatar { width: 56px; height: 56px; font-size: 22px; }
.perfil-cab b { display: block; font-family: var(--cond); font-weight: 700; font-size: 24px; }
.perfil-cab span { font-size: 14px; color: var(--muted); }
.dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Câmera (tela cheia) ---------- */
.cam { position: fixed; inset: 0; z-index: 50; background: #0B0B0B; color: #FFF; display: flex; flex-direction: column; overflow: hidden; }
.cam-visor { position: relative; flex: 1; min-height: 0; background: #1B1B1A; overflow: hidden; }
.cam-visor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-guia { position: absolute; left: 50%; top: 44%; width: 62%; max-width: 280px; aspect-ratio: 4 / 5; transform: translate(-50%, -50%); border-radius: 50%; border: 2.5px dashed rgba(255,255,255,.75); pointer-events: none; }
.cam-topo { position: absolute; left: 16px; right: 16px; top: calc(16px + var(--safe-t)); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cam-fechar { width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
.cam-tipo { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--red); font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.cam-gps { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.65); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 92%; }
.cam-gps.alerta { background: #3A2A06; color: #FFE7B8; white-space: normal; text-align: center; border-radius: 14px; }
.cam-faixa { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.72); border-top: 3px solid var(--red); padding: 10px 18px; display: flex; flex-direction: column; gap: 2px; }
.cam-faixa small { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #C9C9C3; }
.cam-faixa b { font-family: var(--cond); font-weight: 700; font-size: 19px; }
.cam-faixa span { font-size: 13.5px; color: #E2E2DC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-base { flex: none; height: calc(190px + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.disparo { width: 84px; height: 84px; border-radius: 999px; border: 4px solid var(--red); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.disparo span { width: 66px; height: 66px; border-radius: 999px; background: #FFF; display: block; }
.disparo:disabled { border-color: #4A4A47; cursor: not-allowed; }
.disparo:disabled span { background: #4A4A47; }
.cam-dica { font-size: 15px; color: #D6D6D0; text-align: center; padding: 0 20px; }
.cam-erro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; background: #151514; }
.cam-erro p { margin: 0; font-size: 16px; line-height: 1.5; color: #E2E2DC; max-width: 340px; }
.cam-erro b { font-family: var(--cond); font-size: 26px; text-transform: uppercase; }
.girando { width: 40px; height: 40px; border-radius: 999px; border: 4px solid #3A3A38; border-top-color: var(--red); animation: gira 0.9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Batida registrada */
.ok-tela { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: calc(48px + var(--safe-t)) 24px calc(24px + var(--safe-b)); gap: 22px; max-width: 520px; width: 100%; margin: 0 auto; }
.ok-cab { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ok-check { width: 104px; height: 104px; border-radius: 999px; border: 4px solid var(--red); display: flex; align-items: center; justify-content: center; }
.ok-cab h1 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 34px; letter-spacing: .02em; text-transform: uppercase; }
.ok-cab .ok-hora { font-family: var(--cond); font-weight: 700; font-size: 64px; line-height: .9; color: #FFFFFF; }
.ok-cab span { font-size: 16px; color: #C9C9C3; }
.ok-cartao { background: var(--ink2); border-radius: 18px; padding: 14px; display: flex; gap: 14px; }
.ok-cartao img { width: 104px; height: 139px; border-radius: 12px; object-fit: cover; flex: none; background: #3A3A38; }
.ok-cartao dl { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ok-cartao dt { font-size: 12px; color: var(--soft); }
.ok-cartao dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ok-status { background: var(--ink2); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 15px; color: #E2E2DC; }
.btn-branco { background: #FFF; color: var(--ink); border: 0; }

/* ---------- Administrador ---------- */
.adm { min-height: 100vh; display: flex; flex-wrap: wrap; }
.adm-lado { flex: 1 1 240px; max-width: 100%; background: var(--ink); color: #FFF; padding: 28px 20px; display: flex; flex-direction: column; gap: 26px; }
.adm-marca .tag { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--soft); }
.adm-nav { display: flex; flex-direction: column; gap: 4px; }
.adm-nav button { height: 44px; border-radius: 10px; border: 0; background: transparent; color: #E2E2DC; display: flex; align-items: center; gap: 12px; padding: 0 14px; font-weight: 500; font-size: 15px; text-align: left; }
.adm-nav button[aria-current="page"] { background: var(--red); color: #FFF; font-weight: 600; }
.adm-nav button:disabled { color: #8E8E87; cursor: default; }
.adm-nav .breve { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; border: 1px solid #4A4A47; border-radius: 999px; padding: 2px 7px; color: #B9B9B2; }
.adm-nav hr { border: 0; border-top: 1px solid #2E2E2C; margin: 8px 0; }
.adm-eu { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.adm-eu .avatar { width: 38px; height: 38px; font-size: 15px; background: #FFF; color: var(--ink); }
.adm-eu b { display: block; font-size: 14px; }
.adm-eu span { font-size: 12px; color: var(--soft); }
.adm-eu .sair { margin-left: auto; height: 36px; border-radius: 8px; border: 1px solid #3A3A38; background: transparent; color: #E2E2DC; font-size: 13px; padding: 0 10px; }
.adm-main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 22px; }
.adm-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.adm-cab h1 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 40px; letter-spacing: .01em; text-transform: uppercase; }
.adm-cab p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.adm-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-family: var(--cond); font-weight: 700; font-size: 52px; line-height: 1; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi-escuro { background: var(--ink); border-color: var(--ink); color: #FFF; }
.kpi-escuro small, .kpi-escuro span { color: #C9C9C3; }
.kpi-escuro b { color: var(--red-claro); }
.duas { display: flex; flex-wrap: wrap; gap: 16px; }
.painel-bloco { background: #FFF; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.painel-bloco > .cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; }
.painel-bloco > .cab h2 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 22px; }
.painel-bloco > .cab span { font-size: 13px; color: var(--muted); }
.mapa { height: 400px; background: #E8E8E3; position: relative; z-index: 0; }
.mapa-aviso { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 14px; color: var(--muted); }
.pino { width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: #FFF; border: 3px solid #FFF; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: 13px; }
.pino-alerta { background: var(--red); }
.equipe { padding: 0 20px 8px; }
.pessoa { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line2); }
.pessoa .avatar { width: 36px; height: 36px; font-size: 14px; }
.pessoa .meio { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pessoa .meio b { font-size: 15px; font-weight: 600; }
.pessoa .meio span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa .horas { width: 56px; text-align: right; font-family: var(--cond); font-weight: 700; font-size: 18px; }
.status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; border: 1.5px solid var(--ink); }
.st-jornada { background: var(--ink); color: #FFF; }
.st-pausa { background: #FFF; color: var(--ink); }
.st-encerrou { background: #FFF; color: var(--muted); border-color: #B5B5AF; }
.st-sem { background: #FFF; color: var(--muted); border-color: #D4D4CE; border-style: dashed; }
.selfies { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.selfie { background: #FFF; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; }
.selfie .foto { position: relative; aspect-ratio: 3 / 4; background: #D9D9D4; width: 100%; }
.selfie .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.selfie .alerta { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; background: var(--red); color: #FFF; border-radius: 6px; padding: 3px 7px; }
.selfie .txt { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.selfie .txt b { font-size: 14px; font-weight: 600; }
.selfie .txt span { font-size: 12.5px; color: var(--muted); }
.filtros { background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filtros .campo { flex: 1 1 160px; }
.filtros .campo input, .filtros .campo select { height: 46px; font-size: 15px; }
.tabela-box { background: #FFF; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.tabela th { text-align: left; background: #F7F7F5; padding: 12px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.clicavel:hover td { background: #FAFAF8; }
.tabela .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela .mini-foto { width: 38px; height: 48px; border-radius: 8px; }
.marca { display: inline-block; font-size: 12px; font-weight: 700; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 7px; margin: 1px 4px 1px 0; white-space: nowrap; }
.marca-vermelha { color: var(--red); }
.marca-cinza { color: #3D3D39; }
.contagem { font-size: 14px; color: var(--muted); }

/* Modal */
.fundo-modal { position: fixed; inset: 0; z-index: 60; background: rgba(17,17,17,.55); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.modal { position: relative; background: #FFF; border-radius: 20px; width: 100%; max-width: 560px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.modal-larga { max-width: 900px; }
.modal h2 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 28px; text-transform: uppercase; padding-right: 40px; }
.modal .fechar { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: #F3F3F1; display: flex; align-items: center; justify-content: center; }
.modal-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detalhe { display: flex; flex-wrap: wrap; gap: 20px; }
.detalhe .foto-g { flex: 1 1 260px; max-width: 340px; aspect-ratio: 3 / 4; border-radius: 14px; background: #D9D9D4; object-fit: cover; width: 100%; }
.detalhe .info { flex: 2 1 300px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mapa-mini { height: 220px; border-radius: 12px; background: #E8E8E3; position: relative; z-index: 0; overflow: hidden; }
.credencial { background: var(--ink); color: #FFF; border-radius: 14px; padding: 16px; font-size: 15px; line-height: 1.6; }
.credencial b { font-family: var(--cond); font-size: 22px; }
.interruptor { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.interruptor input { width: 22px; height: 22px; accent-color: var(--ink); }

/* Toasts */
#toasts { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #FFF; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast-erro { background: var(--red); }

@media (max-width: 700px) {
  .adm-lado { padding: 18px 16px; gap: 14px; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; }
  .adm-nav button { height: 40px; font-size: 14px; padding: 0 10px; }
  .adm-nav hr, .adm-nav .breve-item { display: none; }
  .adm-eu { margin-top: 0; }
  .adm-main { padding: 20px 14px 40px; }
  .adm-cab h1 { font-size: 32px; }
  .grade2 { grid-template-columns: minmax(0, 1fr); }
  .mapa { height: 320px; }
  .kpi { padding: 14px 16px; }
  .kpi b { font-size: 42px; }
}
