/* App do funcionário (034): telemóvel primeiro (390 px), Inter 400/500/600, cores do grupo (azul #171796, amarelo #F7D917). Alvos de toque ≥ 48 px.
   Nada passa da largura do ecrã. */
@font-face {
  font-family: "Inter";
  src: url("/app/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/app/fonts/InterVariable-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --azul: #171796; --azul-escuro: #0F0F66; --azul-tinta: #EEF0FB; --amarelo: #F7D917;
  --texto: #1A1D29; --texto-2: #4A5160; --texto-3: #5B6270; --linha: #E3E5EA; --fundo: #F4F5F9; --cartao: #FFFFFF;
  --verde: #0E7A3A; --verde-fundo: #E6F4EC; --laranja: #A14A00; --laranja-fundo: #FFE9CC; --cinza-fundo: #EEF0F4; --erro: #9B1C1C; --erro-fundo: #FDE8E7;
  --aviso-fundo: #FFF4D6;
  --raio: 14px; --sombra: 0 1px 2px rgba(11,15,26,.06), 0 4px 16px rgba(11,15,26,.06);
  --letra: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 1rem/1.5 var(--letra); color: var(--texto); background: var(--fundo); min-height: 100vh; min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
[hidden] { display: none !important; }
h1 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; line-height: 1.25; }
.topo { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--cartao); border-bottom: 1px solid var(--linha); }
.logo-caixa { --logo-altura: 34px; position: relative; display: block; flex: none; height: var(--logo-altura); aspect-ratio: 23127 / 7478; overflow: hidden; }
.logo-caixa img.logo { position: absolute; width: 128.42%; height: auto; left: -14.208%; top: -90.41%; max-width: none; }
.quem { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.quem b { font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quem span { font-size: .8125rem; color: var(--texto-3); }
.menu { margin-left: auto; font: 500 .875rem var(--letra); min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid #B9BECB; background: var(--cartao); color: var(--azul); }
.menu-lista { background: var(--cartao); border-bottom: 1px solid var(--linha); padding: 12px 16px; display: grid; gap: 8px; }
.faixa { margin: 0; padding: 10px 16px; background: var(--erro-fundo); color: var(--erro); font-weight: 500; font-size: .9375rem; }
main { max-width: 520px; margin: 0 auto; padding: 20px 16px 32px; }
.ecra { display: grid; gap: 14px; }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; display: grid; gap: 10px; }
label { font-size: .875rem; font-weight: 500; color: var(--texto-2); }
input { font: 500 1.25rem var(--letra); letter-spacing: .04em; min-height: 52px; padding: 10px 14px; border: 1px solid #8A92A3; border-radius: 10px; width: 100%; min-width: 0;
  background: #fff; color: var(--texto); font-variant-numeric: tabular-nums; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.btn { font: 600 1rem var(--letra); min-height: 52px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--azul); background: var(--azul); color: #fff; cursor: pointer; width: 100%; }
.btn.sec { background: var(--cartao); color: var(--azul); border-color: #B9BECB; }
.btn:disabled { opacity: .6; cursor: default; }
.dica { margin: 0; color: var(--texto-3); font-size: .9375rem; }
.centro { text-align: center; }
.aviso { margin: 0; background: var(--aviso-fundo); border-radius: 10px; padding: 10px 12px; font-size: .9375rem; }
#aviso-casca { margin-bottom: 12px; }
/* «Como ligar a localização» (instalar.js, mostrado pelo picar.js quando o GPS é recusado) */
.loc-ajuda { margin-top: 12px; background: var(--aviso-fundo); border-radius: 10px; padding: 10px 12px; font-size: .9375rem; text-align: left; }
.loc-ajuda summary { cursor: pointer; font-weight: 600; }
.loc-ajuda h3 { margin: 12px 0 4px; font-size: .9375rem; }
.loc-ajuda ol { margin: 8px 0 0; padding-left: 1.25rem; }
.loc-ajuda li { margin-bottom: 6px; }
.msg { margin: 0; min-height: 1.5em; color: var(--erro); font-weight: 500; }
.msg.ok { color: var(--verde); }
.modulos { display: flex; gap: 8px; overflow-x: auto; }
.modulos a { flex: none; font-weight: 500; text-decoration: none; color: var(--azul); padding: 8px 14px; border-radius: 999px; border: 1px solid #B9BECB; background: var(--cartao); min-height: 40px; display: inline-flex; align-items: center; }
.modulos a[aria-current="page"] { background: var(--azul); color: #fff; border-color: var(--azul); }

/* ---- picar ---- */
.pc { display: grid; gap: 16px; }
.pc-ultima { display: grid; gap: 2px; }
.pc-ultima span { font-size: .8125rem; color: var(--texto-3); }
.pc-ultima b { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-botao { justify-self: center; width: min(68vw, 240px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--azul); color: #fff; cursor: pointer;
  font: 600 1.75rem var(--letra); letter-spacing: .01em; box-shadow: 0 10px 30px rgba(23,23,150,.28), inset 0 -6px 0 rgba(0,0,0,.18); display: grid; place-content: center; gap: 4px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pc-botao small { font-size: .8125rem; font-weight: 500; opacity: .9; }
.pc-botao:active { transform: translateY(2px); box-shadow: 0 6px 18px rgba(23,23,150,.28), inset 0 -3px 0 rgba(0,0,0,.18); }
.pc-botao:disabled { background: #5A5FB0; cursor: progress; }
.pc-resultado { border-radius: var(--raio); padding: 14px 16px; font-weight: 500; display: grid; gap: 4px; }
.pc-resultado.dentro { background: var(--verde-fundo); color: var(--verde); }
.pc-resultado.fora { background: var(--laranja-fundo); color: var(--laranja); }
.pc-resultado.sem-local, .pc-resultado.neutro { background: var(--cinza-fundo); color: var(--texto-2); }
.pc-resultado.repetida { background: var(--aviso-fundo); color: #6B4E00; }
.pc-resultado.erro { background: var(--erro-fundo); color: var(--erro); }
.pc-resultado small { font-weight: 400; color: var(--texto-2); }
.pc-hoje { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pc-hoje li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 10px; font-variant-numeric: tabular-nums; }
.pc-hoje li.repetida, .pc-hoje li.anulada { color: var(--texto-3); }
.pc-hoje li.anulada .h { text-decoration: line-through; }
.pc-hoje .h { font-weight: 600; }
.pc-hoje .s { color: var(--texto-3); font-size: .875rem; }
.sigla { margin-left: auto; font-weight: 600; font-size: .75rem; letter-spacing: .02em; padding: 4px 7px; border-radius: 6px; background: var(--cinza-fundo); color: var(--texto-2); }
.sigla.dentro { background: var(--verde-fundo); color: var(--verde); }
.sigla.fora { background: var(--laranja-fundo); color: var(--laranja); }
.pc-titulo { font-size: .875rem; font-weight: 600; color: var(--texto-2); margin: 4px 0 0; }

/* ---- casca (app.staff T9): barra de 5 destinos, línguas, guia de instalação, desbloqueio ---- */
/* A barra fica fixa em baixo: ícone + palavra (nunca só cor), alvo ≥ 48 px, sem pairar nem arrastar. O destino ativo leva a faixa azul em cima, o texto a negrito e o fundo tingido. */
body.com-barra main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--cartao); border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); }
.barra-itens { display: flex; max-width: 520px; margin: 0 auto; }
.barra a { flex: 1 1 0; min-width: 48px; min-height: 58px; padding: 7px 2px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: 500 .8125rem/1.15 var(--letra); color: var(--texto-2); text-decoration: none; border-top: 3px solid transparent; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.barra a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.barra a[aria-current="page"] { color: var(--azul); font-weight: 700; border-top-color: var(--azul); background: var(--azul-tinta); }
.barra a[aria-current="page"] svg { stroke-width: 2.3; }
.barra a:focus-visible { outline: 3px solid var(--azul); outline-offset: -3px; }
/* desbloqueio em curso: os dados e a barra ficam escondidos até haver PIN ou Face ID */
body.bloqueada #ecra-app, body.bloqueada #barra, body.bloqueada .quem { visibility: hidden; }
/* língua: dois botões de 48 px, o ativo a azul cheio (aria-pressed) */
.linguas { display: flex; gap: 8px; }
.linguas button { flex: 1; min-height: 48px; font: 600 .9375rem var(--letra); border-radius: 12px; border: 1px solid #B9BECB; background: var(--cartao); color: var(--azul); cursor: pointer; }
.linguas button[aria-pressed="true"] { background: var(--azul); color: #fff; border-color: var(--azul); }
#principal > .linguas { margin-bottom: 14px; }
/* guia de instalação */
.passos { margin: 0; padding-left: 1.4rem; display: grid; gap: 12px; font-size: 1rem; }
.passos li::marker { font-weight: 700; color: var(--azul); }
input.endereco { font: 500 1rem var(--letra); letter-spacing: 0; }
