/* ESTILO V2 (comum). Só tem efeito dentro de um elemento com a classe .v2
   (opt-in por app: as apps que ainda não passaram ao v2 não ligam este ficheiro e ficam iguais).
   Anima-se só transform e opacity. */
.v2{
  --tc-navy-950:#011628; --tc-navy-900:#022142; --tc-navy-800:#0B2E52; --tc-navy-700:#133A5E; --tc-navy-600:#1F4A72;
  --tc-aqua-300:#9BE0BD; --tc-aqua-500:#5FC994; --tc-aqua-600:#2E9E6E; --tc-aqua-700:#1A7A55; --tc-aqua-100:#E3F6EC;
  --bg:#EEF2F6; --surface:#FFF; --surface-2:#F5F8FA; --surface-3:#E9EEF3; --border:#DDE4EB; --border-strong:#A9B8C7;
  --text:#0F1E2E; --text-muted:#4A5B6C; --on-dark:#FFF; --on-dark-muted:#C8D3DE; --accent-ink:var(--tc-aqua-700);
  --focus-ring:0 0 0 3px rgb(95 201 148 / .6);
  --success-fg:#1E7A4C; --success-bg:#E4F5EC; --success-bar:#2E9E6E;
  --warning-fg:#8A5300; --warning-bg:#FFF3D6; --warning-bar:#E3A21A;
  --danger-fg:#B3261E;  --danger-bg:#FDECEA;  --danger-bar:#D9483F;
  --info-fg:#1D5A94;    --info-bg:#E6F0FA;    --info-bar:#3B82C4;
  --neutral-fg:#4A5B6C; --neutral-bg:#EDF1F5; --neutral-bar:#94A3B3;
  --font:"Inter","Segoe UI",system-ui,-apple-system,Roboto,sans-serif;
  --fs-cap:12px; --fs-sm:13px; --fs-base:14px; --fs-md:16px; --fs-lg:20px; --fs-xl:28px;
  --fs-display:clamp(32px,1.6vw + 22px,52px); --fs-kpi:clamp(26px,.8vw + 20px,34px);
  --fw-reg:420; --fw-med:560; --fw-semi:640; --fw-bold:740;
  --tr-tight:-.022em; --tr-display:-.035em; --tr-over:.08em; --lh:1.5; --lh-tight:1.15;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px;
  --r-xs:6px; --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
  --sh-1:0 1px 1px rgb(2 33 66/.04),0 2px 4px rgb(2 33 66/.05);
  --sh-2:0 1px 2px rgb(2 33 66/.05),0 4px 10px rgb(2 33 66/.06),0 14px 28px -8px rgb(2 33 66/.12);
  --sh-3:0 2px 4px rgb(2 33 66/.06),0 12px 24px rgb(2 33 66/.10),0 32px 64px -12px rgb(2 33 66/.28);
  --sh-4:0 4px 8px rgb(2 33 66/.08),0 24px 48px rgb(2 33 66/.18),0 64px 120px -24px rgb(2 33 66/.45);
  --sh-inset:inset 0 1px 0 rgb(255 255 255/.7);
  --dur-1:120ms; --dur-2:200ms; --dur-3:320ms; --dur-4:480ms; --dur-5:640ms; --dur-count:900ms; --stagger:40ms;
  --ease:cubic-bezier(.2,0,0,1); --ease-emph:cubic-bezier(.05,.7,.1,1); --ease-exit:cubic-bezier(.3,0,.8,.15); --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --photo-overlay:linear-gradient(100deg,rgb(2 33 66/.94) 0%,rgb(2 33 66/.85) 50%,rgb(14 60 74/.75) 100%);
  font-family:var(--font);font-weight:var(--fw-reg);font-size:var(--fs-base);line-height:var(--lh);font-optical-sizing:auto;font-feature-settings:"cv11","ss01";-webkit-font-smoothing:antialiased
}
@media (max-width:767px){.v2{--fs-base:16px}}
.v2 *{box-sizing:border-box}
.v2 a{color:inherit;text-decoration:none}
.v2 :focus-visible{outline:none;box-shadow:var(--focus-ring)}
/* ícones: um só conjunto SVG (<symbol> + <use>), grelha 24, traço 1,75 */
.v2 .ico{display:block;width:20px;height:20px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.v2 .ico-sm{width:16px;height:16px}
/* cartão + elevação (a sombra maior vive num ::after; só se anima a opacidade) */
.v2 .card{background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--sh-2)}
.v2 .lift{position:relative;transition:transform var(--dur-2) var(--ease)}
.v2 .lift::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:var(--sh-3);opacity:0;transition:opacity var(--dur-2) var(--ease);pointer-events:none}
@media (hover:hover){.v2 .lift:hover{transform:translateY(-3px)}.v2 .lift:hover::after{opacity:1}}
.v2 .lift:active{transform:scale(.985)}
/* botões */
.v2 .btn{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 16px;border-radius:var(--r-sm);font:inherit;font-weight:var(--fw-semi);border:0;cursor:pointer;transition:transform var(--dur-1) var(--ease)}
@media (max-width:767px){.v2 .btn{height:44px}}
.v2 .btn::before{content:"";position:absolute;inset:0;z-index:-1;background:currentColor;opacity:0;transition:opacity var(--dur-1)}
.v2 .btn:hover::before{opacity:.08}.v2 .btn:active{transform:scale(.97)}
.v2 .btn-primary{background:var(--tc-navy-800);color:#fff;box-shadow:var(--sh-1),var(--sh-inset)}.v2 .btn-primary::before{background:#fff}
.v2 .btn-accent{background:var(--tc-aqua-500);color:var(--tc-navy-950);box-shadow:0 1px 2px rgb(2 33 66/.2),0 8px 20px -6px rgb(95 201 148/.55)}
.v2 .btn-secondary{background:var(--surface);color:var(--tc-navy-800);box-shadow:inset 0 0 0 1px var(--border-strong)}
.v2 .btn-vidro{background:rgb(255 255 255/.06);color:#fff;box-shadow:inset 0 0 0 1px rgb(255 255 255/.28)}
.v2 .ripple{position:absolute;border-radius:50%;background:currentColor;opacity:.18;transform:scale(0);animation:v2ripple var(--dur-5) var(--ease) forwards;pointer-events:none}
@keyframes v2ripple{to{transform:scale(1);opacity:0}}
/* pill de estado (nunca é botão) */
.v2 .pill{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:3px 10px;border-radius:var(--r-pill);font-size:var(--fs-cap);font-weight:var(--fw-semi);line-height:1.35;color:var(--fg);background:var(--bgc)}
.v2 .pill .dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 auto}
.v2 .s-success{--fg:var(--success-fg);--bgc:var(--success-bg);--bar:var(--success-bar)}
.v2 .s-warning{--fg:var(--warning-fg);--bgc:var(--warning-bg);--bar:var(--warning-bar)}
.v2 .s-info{--fg:var(--info-fg);--bgc:var(--info-bg);--bar:var(--info-bar)}
.v2 .s-danger{--fg:var(--danger-fg);--bgc:var(--danger-bg);--bar:var(--danger-bar)}
.v2 .s-neutral{--fg:var(--neutral-fg);--bgc:var(--neutral-bg);--bar:var(--neutral-bar)}
/* vidro sobre a foto */
.v2 .vidro{background:rgb(2 33 66/.62);box-shadow:inset 0 0 0 1px rgb(255 255 255/.14);border-radius:var(--r-md);color:#fff}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){.v2 .vidro{-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);background:rgb(2 33 66/.5)}}
/* entrada em escalonado */
.v2 .stag{animation:v2sobe var(--dur-5) var(--ease-emph) both;animation-delay:calc(var(--i,0) * var(--stagger) + 80ms)}
.v2 .i0{--i:0}.v2 .i1{--i:1}.v2 .i2{--i:2}.v2 .i3{--i:3}.v2 .i4{--i:4}.v2 .i5{--i:5}.v2 .i6{--i:6}.v2 .i7{--i:7}.v2 .i8{--i:8}.v2 .i9{--i:9}
@keyframes v2sobe{from{opacity:0;transform:translateY(18px) scale(.985)}}
.v2.visto .stag{animation:none}
/* skeleton com a forma final */
.v2 .sk{position:relative;overflow:hidden;background:var(--surface-3);border-radius:var(--r-xs);color:transparent!important}
.v2 .sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgb(255 255 255/.6),transparent);animation:v2brilho 1.4s var(--ease) infinite}
@keyframes v2brilho{to{transform:translateX(100%)}}
/* estado vazio */
.v2 .vazio{display:grid;justify-items:center;gap:8px;padding:28px 16px;text-align:center;color:var(--text-muted)}
.v2 .vazio .ico{width:40px;height:40px;color:var(--accent-ink)}
.v2 .vazio b{color:var(--text);font-size:var(--fs-md)}
/* movimento reduzido: preferência do sistema ou html.rm */
@media (prefers-reduced-motion:reduce){
  .v2 *,.v2 *::before,.v2 *::after{animation-duration:1ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;transition-delay:0ms!important;scroll-behavior:auto!important}
  .v2 .sk::after{animation:none!important}.v2 .ripple{display:none}
}
html.rm .v2 *,html.rm .v2 *::before,html.rm .v2 *::after{animation-duration:1ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;transition-delay:0ms!important}
html.rm .v2 .sk::after{animation:none!important}html.rm .v2 .ripple{display:none}
/* Cabeçalho comum só nas apps v2 (body.tc-v2), de 768 a 1366 px: nada se sobrepõe. O logótipo encolhe, os separadores deslizam
   (sombra no fim só quando há mais separadores), «Sincronizado» fica só o ponto, o nome encolhe com reticências e Senha/Sair passam a ícones
   (texto no tooltip e para leitores de ecrã). As apps sem v2 não ligam este ficheiro e ficam iguais. */
body.tc-v2 .tc-ghost .tc-v2-ico{display:none;width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:768px) and (max-width:1366px){
  body.tc-v2 .tc-hd{gap:10px;padding:0 16px}
  body.tc-v2 .tc-logo{height:26px}
  body.tc-v2 .tc-logo-texto{font-size:17px}
  body.tc-v2 .tc-hd>.tc-nome{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
  body.tc-v2 .tc-tabs{flex:1 1 0;min-width:120px;margin-left:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
  body.tc-v2 .tc-tabs::-webkit-scrollbar{display:none}
  body.tc-v2 .tc-tabs .tc-tab{flex:0 0 auto}
  body.tc-v2 .tc-tabs.tc-v2-mais{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
  body.tc-v2 .tc-hd>.tc-esp{display:none}
  body.tc-v2 .tc-hd>.tc-sync{font-size:0;gap:0;padding:0 4px}
  body.tc-v2 .tc-dir{gap:2px}
  body.tc-v2 .tc-dir .tc-utilizador{display:inline-block;max-width:200px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;margin-right:4px}
  body.tc-v2 .tc-dir .tc-ghost{width:36px;padding:0}
  body.tc-v2 .tc-dir .tc-ghost .tc-v2-ico{display:block}
  body.tc-v2 .tc-dir .tc-ghost .tc-v2-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (min-width:768px) and (max-width:1100px){body.tc-v2 .tc-dir .tc-utilizador{max-width:120px}}
@media (min-width:768px) and (max-width:1023px){
  body.tc-v2 .tc-dir .tc-utilizador{max-width:72px}
  body.tc-v2 .tc-hd>.tc-inicio{padding:0 4px}
}
