/* Academia de Contas: mesmo sistema do site (Marcellus, Golos Text, tinta, vermelho, raio 2px). */
@font-face { font-family: 'Marcellus'; src: url('/fonts/marcellus-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('/fonts/golos-text-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('/fonts/golos-text-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('/fonts/golos-text-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #0D1018; --red: #E0020D; --red-d: #B50009; --bg: #F7F7F7; --white: #fff;
  --line: rgba(13, 16, 24, .1); --line-2: rgba(13, 16, 24, .18); --mut: rgba(13, 16, 24, .62); --mut-2: rgba(13, 16, 24, .45);
  --verde: #0F7A3F; --verde-f: #E6F4EC; --ambar: #8A5A00; --ambar-f: #FBF0DA; --azul: #1E4FA3; --azul-f: #E7EEF9; --verm-f: #FCEBEC; --wa: #0E7C47; --wa-f: #E3F5EB;
  --s1: #2F62A8; --s2: #E0020D;
  --display: 'Marcellus', Georgia, serif; --sans: 'Golos Text', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --pad: clamp(16px, 3vw, 40px); --r: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; } fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1 { font: 400 clamp(30px, 2vw + 22px, 44px)/1.12 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { font: 400 22px/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 12px; }
h3 { font: 400 20px/1.25 var(--display); letter-spacing: -.01em; }
small { display: block; font-size: 13px; line-height: 1.4; color: var(--mut); font-weight: 400; }
code { font: 500 13px/1.3 ui-monospace, 'SF Mono', Menlo, monospace; overflow-wrap: anywhere; }
em { font-style: normal; }
.ol { font-size: 13px; color: var(--mut); line-height: 1.4; }
.lead { font-size: 17px; color: var(--mut); max-width: 62ch; }
.nota { font-size: 14px; color: var(--mut); } .nota--f { margin-bottom: 12px; }
.pre { white-space: pre-line; }
.fort { font-weight: 500; }
a.fort { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.vermelho { color: var(--red-d); font-weight: 600; }
.erro { padding: 12px 16px; margin: 14px 0; background: var(--verm-f); color: #7A0A10; border-radius: var(--r); }
.vazio { padding: 28px 0; color: var(--mut); }
.msg { padding: 8vh 0; max-width: 520px; } .msg .btn, .msg p { margin-top: 14px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mel { position: absolute; left: -9999px; opacity: 0; }
#carga { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--red); z-index: 100; transform-origin: 0 50%; opacity: 0; }
#carga.on { opacity: 1; animation: carga 900ms var(--ease-out) forwards; }
@keyframes carga { from { transform: scaleX(.08); } to { transform: scaleX(.86); } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r); background: rgba(13, 16, 24, .07); font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; transition: background-color 180ms ease, transform 140ms var(--ease-out); cursor: pointer; user-select: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn--tinta { background: var(--ink); color: #fff; }
.btn--vermelho { background: var(--red); color: #fff; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--wa { background: var(--wa-f); color: var(--wa); }
.btn--s { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn--g { min-height: 50px; padding: 0 24px; font-size: 16.5px; }
.btn--bl { width: 100%; }
.btn--auto { justify-self: start; }
.btn--bloq { background: transparent; color: var(--mut-2); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.btn--bloq:active { transform: none; }
.linkb { font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.ic { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--mut); border-radius: var(--r); transition: background-color 180ms ease; }
.ic svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: rgba(13, 16, 24, .12); }
  .btn--tinta:hover { background: #1d2230; } .btn--vermelho:hover { background: var(--red-d); }
  .btn--ghost:hover { background: rgba(13, 16, 24, .05); } .btn--wa:hover { background: #D2EEDF; }
  .btn--bloq:hover { background: transparent; } .ic:hover { background: rgba(13, 16, 24, .07); color: var(--ink); }
  .linkb:hover { text-decoration-color: var(--ink); } a.fort:hover { text-decoration-color: var(--ink); }
}

/* Etiquetas de estado */
.ex { display: inline-block; vertical-align: 1px; padding: 1px 7px; border-radius: 100px; background: var(--verm-f); color: #7A0A10; font: 500 10.5px/1.5 var(--sans); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.est, .pill { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: rgba(13,16,24,.07); }
.est--verde { background: var(--verde-f); color: var(--verde); } .est--âmbar { background: var(--ambar-f); color: var(--ambar); } .est--azul { background: var(--azul-f); color: var(--azul); }
.est--vermelho { background: var(--verm-f); color: #A50810; } .est--cinza { color: var(--mut); } .est--tinta { background: var(--ink); color: #fff; }
.fita { padding: 7px var(--pad); background: var(--verm-f); color: #7A0A10; font-size: 13px; text-align: center; }
.fita a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* Estrutura */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: #fff; padding: 22px 12px 14px; overflow-y: auto; }
.rail__marca { display: flex; align-items: center; gap: 11px; padding: 0 10px 22px; font: 400 17px/1.08 var(--display); }
.rail__marca img { width: 32px; height: 32px; }
.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav__i { position: relative; display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: var(--r); font-size: 14.5px; color: rgba(255,255,255,.66); transition: background-color 160ms ease, color 160ms ease; }
.nav__i svg { opacity: .8; }
.nav__i b { margin-left: auto; min-width: 22px; padding: 0 6px; text-align: center; border-radius: 100px; background: var(--red); color: #fff; font-size: 12px; font-weight: 500; line-height: 20px; }
.nav__i.is { color: #fff; background: rgba(255,255,255,.1); }
.nav__i.is::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; background: var(--red); }
.rail__eu { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.rail__nome { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; font-size: 13.5px; line-height: 1.25; }
.rail__nome i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); font: 400 13px var(--display); }
.rail__nome span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__nome small { color: rgba(255,255,255,.55); font-size: 12px; }
.rail__sair { display: grid; place-items: center; width: 36px; height: 36px; color: rgba(255,255,255,.6); border-radius: var(--r); transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__i:hover { color: #fff; background: rgba(255,255,255,.06); } .rail__sair:hover { color: #fff; background: rgba(255,255,255,.08); } }
.main { min-width: 0; max-width: 1240px; padding: clamp(22px, 3vw, 40px) var(--pad) 64px; }
.topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.topo > div:first-child { min-width: 0; }
.topo__acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bloco { margin-top: 32px; }
.bloco > h2:not(:first-child) { margin-top: 28px; }
.painel { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.p { padding: 20px; }
.duas { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 8px; }
.lado { display: flex; flex-direction: column; gap: 14px; }
.lado .bloco { margin-top: 0; }
.fim { margin: 12px 0; display: flex; justify-content: flex-end; }
.linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.linha input, .linha select { min-height: 34px; padding: 0 9px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14px; min-width: 0; max-width: 100%; }
td.dir .linha { justify-content: flex-end; }

/* Separadores e filtros */
.seps { display: flex; gap: 22px; overflow-x: auto; margin-bottom: 18px; box-shadow: inset 0 -1px 0 var(--line); scrollbar-width: none; }
.seps::-webkit-scrollbar { display: none; }
.seps a { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 0 11px; font-size: 15px; color: var(--mut); border-bottom: 2px solid transparent; transition: color 160ms ease; }
.seps a.is { color: var(--ink); border-bottom-color: var(--red); }
.seps b, .chips b { font-size: 12px; font-weight: 500; padding: 0 6px; border-radius: 100px; line-height: 18px; background: rgba(13,16,24,.08); color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chips a { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 100px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 160ms ease; }
.chips a.is { background: var(--ink); color: #fff; box-shadow: none; }
.chips a.is b { background: rgba(255,255,255,.2); color: #fff; }
.filtros { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filtros .f { flex: 0 1 300px; }
.leg { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--mut); margin-bottom: 10px; }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.leg i { display: block; width: 12px; height: 12px; border-radius: var(--r); }

/* Tabelas: em telemóvel cada linha vira um cartão com etiquetas */
.tbl { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--mut); padding: 11px 14px; white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
td.dir { text-align: right; }
.com-barra { min-width: 90px; }

/* Formulários */
.grelha { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grelha.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c2 { grid-column: span 2; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > span { font-size: 14px; font-weight: 500; }
.f em, .drop em { color: var(--red); }
.f input, .f select, .f textarea, .copia, .caixa textarea, .resp input, .mini__p select, .mini__p input { width: 100%; min-height: 44px; padding: 9px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 16px; transition: border-color 160ms ease; }
.f textarea, .copia { resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus, .copia:focus, .caixa textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form-curto { max-width: 440px; margin-top: 18px; }
.form-longo { display: flex; flex-direction: column; gap: 26px; max-width: 720px; margin-top: 18px; align-items: stretch; }
.form-longo2 { max-width: 720px; margin-top: 18px; }
.form-longo > .btn, .form-longo2 > .btn { justify-self: start; align-self: flex-start; }
fieldset > .f + .f { margin-top: 0; }
legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font: 400 21px/1.2 var(--display); }
legend i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 13px var(--sans); }
.opcoes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.opcao { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r); cursor: pointer; transition: box-shadow 160ms ease; }
.opcao:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.opcao input { margin-top: 4px; accent-color: var(--ink); }
.opcao b { font-weight: 500; }
.preco { color: var(--ink); margin-top: 3px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--mut); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.drop { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 13px 14px; margin-bottom: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r); cursor: pointer; transition: box-shadow 160ms ease; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.drop__rot { font-weight: 500; font-size: 14.5px; }
.drop__estado { grid-row: 2; font-size: 13px; color: var(--mut); overflow-wrap: anywhere; }
.drop__acao { grid-row: 1 / 3; grid-column: 2; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: var(--r); background: rgba(13,16,24,.07); }
.drop.tem { box-shadow: inset 0 0 0 1px var(--verde); } .drop.tem .drop__estado { color: var(--verde); }
.drop.erro { box-shadow: inset 0 0 0 1px var(--red); } .drop.erro .drop__estado { color: var(--red-d); }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 14.5px; }
.chk input { width: 20px; height: 20px; accent-color: var(--ink); }
.barra-fixa { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; background: linear-gradient(to top, var(--bg) 80%, transparent); }

/* Pequenos painéis */
details.mini { position: relative; display: inline-block; }
details.mini summary { list-style: none; cursor: pointer; }
details.mini summary::-webkit-details-marker { display: none; }
.mini__p { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); min-width: 250px; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(13,16,24,.14); text-align: left; transform-origin: 0 0; animation: pop 160ms var(--ease-out); }
.mini--dir .mini__p, td.dir .mini__p { left: auto; right: 0; transform-origin: 100% 0; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-3px); } }
.dica { position: fixed; top: 0; left: 0; z-index: 90; padding: 5px 9px; background: var(--ink); color: #fff; font-size: 12.5px; border-radius: var(--r); pointer-events: none; white-space: nowrap; }

/* Avisos */
.toasts { position: fixed; z-index: 95; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 11px 15px; background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: 0 10px 28px rgba(13,16,24,.24); font-size: 14.5px; pointer-events: auto; transition: transform 300ms var(--ease-out), opacity 300ms ease; }
@starting-style { .toast { opacity: 0; transform: translateY(14px); } }
.toast.sai { opacity: 0; transform: translateY(8px); transition-duration: 180ms; }
.toast svg { color: #7FE0A8; } .toast--erro { background: #7A0A10; } .toast--erro svg { color: #fff; }
.cred { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 20px; background: var(--ink); color: #fff; border-radius: var(--r); animation: credE 320ms var(--ease-out); }
@keyframes credE { from { opacity: 0; transform: translateY(-6px); } }
.cred .ol { color: rgba(255,255,255,.72); margin-bottom: 8px; }
.cred dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; font-size: 14px; }
.cred dt { color: rgba(255,255,255,.6); } .cred code { font-size: 15px; color: #fff; user-select: all; }
.cred .btn--wa { background: #25D366; color: var(--ink); }

/* Confirmar por pressão */
.hold { position: relative; overflow: hidden; display: block; width: 100%; min-height: 44px; border-radius: var(--r); background: var(--verm-f); color: #7A0A10; font-weight: 500; font-size: 14.5px; transition: transform 140ms var(--ease-out); touch-action: none; user-select: none; -webkit-user-select: none; }
.hold i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; background: var(--red); color: #fff; clip-path: inset(0 100% 0 0); transition: clip-path 200ms var(--ease-out); }
.hold.premir { transform: scale(.98); } .hold.premir i { clip-path: inset(0 0 0 0); transition: clip-path 1500ms linear; }
.perigo p { font-size: 14px; color: var(--mut); margin-bottom: 12px; }

/* KPIs */
.kpis { display: grid; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; border-radius: var(--r); overflow: hidden; }
.kpis--2 { grid-template-columns: repeat(2, 1fr); } .kpis--3 { grid-template-columns: repeat(3, 1fr); } .kpis--4 { grid-template-columns: repeat(4, 1fr); }
.kpi { background: #fff; padding: 16px 18px; min-width: 0; }
.kpi span { display: block; font-size: 13.5px; color: var(--mut); }
.kpi b { display: block; margin-top: 2px; font: 400 clamp(26px, 1.4vw + 19px, 38px)/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi b.kz { font-size: clamp(21px, .9vw + 16px, 28px); line-height: 1.4; letter-spacing: -.01em; }
.kpi b small { display: inline; font-size: 16px; }
.kpi--alerta b { color: var(--red); }
.manchete { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; background: var(--ink); color: #fff; border-radius: var(--r); font: 400 clamp(19px, 1vw + 15px, 25px)/1.3 var(--display); }
.manchete b { font-weight: 400; } .manchete em { color: #FF8A8F; }
.manchete__l { display: inline-flex; align-items: center; gap: 8px; font: 500 14.5px var(--sans); }
.manchete svg { transition: transform 200ms var(--ease-out); }
.etapa { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--red); border-radius: var(--r); }
.etapa b { font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .manchete:hover svg { transform: translateX(3px); } }

/* Gráficos */
.graf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.bars { display: flex; align-items: stretch; gap: 8px; height: 170px; }
.bars__c { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars__c i { display: block; width: min(100%, 22px); min-height: 1px; background: var(--s1); border-radius: var(--r) var(--r) 0 0; }
.bars__v { font-size: 12px; color: var(--mut); margin-bottom: 3px; white-space: nowrap; }
.bars__r { font-size: 11.5px; color: var(--mut); margin-top: 6px; white-space: nowrap; border-top: 0; }
.bars__c { position: relative; }
.funil li { display: grid; grid-template-columns: 138px 1fr 34px 38px; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; }
.funil div { height: 10px; background: rgba(13,16,24,.05); border-radius: var(--r); }
.funil i { display: block; height: 100%; background: var(--s1); border-radius: var(--r); }
.funil b { font-weight: 500; text-align: right; } .funil small { text-align: right; }
.stack li { display: grid; grid-template-columns: 100px 1fr; gap: 3px 10px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.stack div { display: flex; gap: 2px; height: 12px; }
.stack i { display: block; border-radius: var(--r); min-width: 0; }
.stack small { grid-column: 2; }
.s-1 { background: var(--s1); } .s-2 { background: var(--s2); }
.barra { display: block; height: 4px; margin-top: 5px; background: rgba(13,16,24,.08); border-radius: var(--r); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--ink); }
.barra--m i { background: var(--red); }
.met { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.met span { color: var(--mut); } .met b { font-weight: 500; }
.met-g { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.met-g .met { flex-direction: column; gap: 0; } .met-g b { font: 400 26px/1.3 var(--display); }

/* Mesa de acção */
.mesa { margin-bottom: 26px; }
.mesa h2 { display: flex; align-items: center; gap: 8px; }
.mesa h2 span { font: 500 13px var(--sans); padding: 0 8px; line-height: 22px; border-radius: 100px; background: rgba(13,16,24,.08); }
.mesa ul { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.al { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.al:first-child { border-top: 0; }
.al__s { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; }
.al__s svg { width: 14px; height: 14px; }
.al--crit .al__s { color: var(--red); } .al--aten .al__s { color: var(--ambar); } .al--info .al__s { color: var(--mut); }
.al__c strong { font-weight: 500; display: block; overflow-wrap: anywhere; } .al__c p { font-size: 14px; color: var(--mut); overflow-wrap: anywhere; } .al__c small { color: var(--mut-2); margin-top: 2px; }
.al__a { display: flex; gap: 6px; }
.mesa--espera { opacity: .72; }
.limpa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8vh 16px; text-align: center; color: var(--mut); }
.limpa svg { width: 32px; height: 32px; color: var(--verde); }
.limpa h2 { margin: 0; color: var(--ink); }

/* Fila WhatsApp */
.fila { max-width: 560px; }
.fila__n { font-size: 14px; color: var(--mut); margin-bottom: 10px; }
.fila__c { padding: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.fila__c h2 { margin-bottom: 2px; }
.fila__c textarea { width: 100%; margin: 14px 0; padding: 12px; font-size: 16px; line-height: 1.45; background: var(--wa-f); border: 0; border-radius: var(--r); resize: vertical; }
.fila__a { display: flex; gap: 8px; flex-wrap: wrap; }
[hidden] { display: none !important; }

/* Cartões */
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.cartao { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); transition: box-shadow 180ms ease; min-width: 0; }
a.cartao:active { transform: scale(.995); }
.cartao p { font-size: 14px; color: var(--mut); }
.cartao__c { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cartao__r { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--mut); } .cartao__r b { color: var(--ink); font-weight: 500; }
.cartao__p { color: var(--red-d); font-weight: 500; } .cartao em { color: var(--ambar); }
.cartao--form { gap: 12px; } .cartao--form .btn { align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { a.cartao:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.prest { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.prest article { padding: 16px 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.prest b { display: block; margin-top: 6px; font: 400 26px/1.3 var(--display); }
.prox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.prox__c { display: block; padding: 18px; background: var(--ink); color: #fff; border-radius: var(--r); min-width: 0; }
.prox__c .ol { color: rgba(255,255,255,.65); }
.prox__c strong { display: block; margin-top: 4px; font: 400 23px/1.25 var(--display); }
.prox__c p { font-size: 14.5px; color: rgba(255,255,255,.82); } .prox__c small { color: rgba(255,255,255,.6); }
.prox__c--alerta { background: var(--red); } .prox__c--alerta .ol, .prox__c--alerta p { color: rgba(255,255,255,.92); }
.ult-aviso { display: block; padding: 14px 18px; margin-top: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--ink); border-radius: var(--r); }

/* Listas */
.lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.lista li:first-child { border-top: 0; }
.dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; font-size: 14.5px; }
.dl dt { color: var(--mut); } .dl dd { overflow-wrap: anywhere; }
.dl--col { grid-template-columns: 1fr; gap: 2px; } .dl--col dd { margin-bottom: 8px; }
.req li { display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.req li:first-child { border-top: 0; }
.req svg { width: 16px; height: 16px; margin-top: 3px; }
.req .ok svg { color: var(--verde); } .req .nao svg { color: var(--red); }
.agenda { display: flex; flex-direction: column; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.agenda:empty { display: none; }
.agenda li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.agenda li:first-child { border-top: 0; }
.agenda__d { flex: none; width: 52px; text-align: center; }
.agenda__d b { display: block; font: 400 17px/1.2 var(--display); } .agenda__d span { font-size: 12px; color: var(--mut); }
.agenda__c { flex: 1; min-width: 0; } .agenda__c strong { font-weight: 500; }
.agenda .passou { background: rgba(13,16,24,.02); } .agenda .passou .agenda__c strong, .agenda .passou .agenda__d b { color: var(--mut); }
.agenda .hoje { box-shadow: inset 3px 0 0 var(--red); }
.chamada { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.chamada li { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); }
.chamada li:first-child { border-top: 0; }
.chamada__n { min-width: 0; flex: 1 1 200px; font-weight: 500; overflow-wrap: anywhere; }
.seg { display: inline-flex; background: rgba(13,16,24,.07); border-radius: var(--r); padding: 2px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 1px; cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.nota-in { width: 84px; min-height: 40px; padding: 0 10px; text-align: right; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 16px; }
.rank li, .ranking > li { display: flex; align-items: center; gap: 12px; }
.rank li { padding: 8px 0; font-size: 14.5px; border-top: 1px solid var(--line); } .rank li:first-child { border-top: 0; }
.rank i, .ranking > li > i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 400 14px var(--display); font-style: normal; background: rgba(13,16,24,.07); }
.rank span { flex: 1; min-width: 0; } .rank b { font-weight: 500; }
.ranking { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.ranking > li { flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); }
.ranking > li:first-child { border-top: 0; }
.ranking .topo3 > i { background: var(--ink); color: #fff; }
.ranking__n { flex: 1 1 200px; min-width: 0; } .ranking__n .est { font-size: 11.5px; }
.ranking__v { font: 400 24px var(--display); min-width: 48px; text-align: right; }
.ranking__a { display: flex; gap: 6px; }
.mats { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.mats:empty { display: none; }
.mats li { display: flex; align-items: center; gap: 8px; padding-right: 8px; border-top: 1px solid var(--line); }
.mats li:first-child { border-top: 0; }
.mats a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.mats a > span { flex: 1; min-width: 0; } .mats strong { font-weight: 500; }
.caixa { padding: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); margin-bottom: 16px; }
.caixa textarea { border: 0; min-height: 58px; resize: vertical; padding: 8px; }
.caixa textarea:focus { box-shadow: none; }
.caixa__r { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.caixa select { min-height: 34px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 8px; font-size: 14px; }
.mural { display: flex; flex-direction: column; gap: 10px; }
.mural__i { padding: 16px 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); scroll-margin-top: 20px; }
.mural__i.aviso { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--ink); }
.mural__c { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; } .mural__c b { font-weight: 500; font-size: 14.5px; } .mural__c small { margin-left: auto; }
.mural p { overflow-wrap: anywhere; white-space: pre-line; }
.mural__r { margin-top: 10px; padding: 10px 14px; background: var(--bg); border-radius: var(--r); }
.mural__a { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 10px; }
.resp { flex: 1 1 260px; display: flex; gap: 6px; } .resp input { min-height: 34px; padding: 4px 10px; }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.doc { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); min-width: 0; }
.doc__ver { position: relative; display: block; height: 170px; background: var(--bg); overflow: hidden; }
.doc__ver img { width: 100%; height: 100%; object-fit: contain; }
.doc__ver iframe { width: 100%; height: 100%; border: 0; pointer-events: none; background: #fff; }
.doc__ver span { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; background: var(--ink); color: #fff; font-size: 12px; border-radius: var(--r); }
.doc__p { padding: 12px; }
.doc__c { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 14px; } .doc__c b { font-weight: 500; }
.doc__m { color: var(--red-d); margin-top: 3px; }
.doc__acoes { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.decisao p { font-size: 14px; color: var(--mut); margin-bottom: 12px; } .decisao .btn { margin-bottom: 8px; }
.decisao details.mini { display: block; } .decisao .mini__p { left: 0; right: 0; }
.encs li { padding: 14px 16px; margin-bottom: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.encs__c { display: flex; justify-content: space-between; gap: 12px; } .encs b { font-weight: 500; }
.hist { margin: 10px 0; padding-left: 14px; border-left: 1px solid var(--line-2); }
.hist li { padding: 3px 0; margin: 0; background: none; box-shadow: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cands li { padding: 16px 18px; margin-bottom: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.cands__c { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; } .cands b { font-weight: 500; }
.cands .linha { margin-top: 10px; }
.linha-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .linha-link b { font-weight: 500; } .linha-link span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.grid-cotas { overflow-x: auto; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.grid-cotas th:first-child { position: sticky; left: 0; background: #fff; min-width: 190px; font-weight: 500; font-size: 14px; color: var(--ink); z-index: 1; }
.grid-cotas th { text-align: center; } .grid-cotas thead th:first-child { text-align: left; color: var(--mut); font-size: 13px; }
.grid-cotas tbody th { text-align: left; border-top: 1px solid var(--line); white-space: normal; }
.grid-cotas td { text-align: center; padding: 6px; }
.cel { display: inline-block; width: 26px; height: 26px; border-radius: var(--r); transition: transform 120ms var(--ease-out); }
a.cel:active { transform: scale(.9); }
.c-paga { background: var(--verde); } .c-ana { background: #E0A92B; } .c-falta { background: rgba(224,2,13,.16); box-shadow: inset 0 0 0 1px rgba(224,2,13,.4); } .c-na { background: rgba(13,16,24,.04); }
.cotas-l li { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 13px 0; border-top: 1px solid var(--line); }
.cotas-l li:first-child { border-top: 0; } .cotas-l b { font-weight: 500; }
.so-f { flex: 1 1 100%; display: flex; gap: 8px; align-items: center; } .so-f .drop { flex: 1; margin: 0; padding: 9px 12px; }
.pag { display: flex; gap: 8px; margin-top: 14px; }
.so-m { display: none; }
.bloco:has(> .btn) { display: flex; gap: 8px; flex-wrap: wrap; }
.copia { background: var(--bg); margin-bottom: 8px; }

/* Público */
.pub { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.pub__topo { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); }
.pub__marca { display: flex; align-items: center; gap: 10px; font: 400 21px var(--display); }
.pub__marca img { width: 30px; height: 30px; }
.pub__main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(16px, 4vw, 44px) var(--pad) 56px; }
.pub__main--largo { max-width: 1300px; }
.pub .f input, .pub .f select, .pub .f textarea { background: var(--bg); } .pub .opcao, .pub .drop { background: var(--bg); }
.pub__rodape { display: flex; flex-direction: column; align-items: center; padding: 20px var(--pad); background: var(--ink); color: rgba(255,255,255,.72); font-size: 13.5px; }
.heroi { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.heroi h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 14px; animation: ent 700ms var(--ease-out) both; }
.heroi .ol, .heroi .lead, .heroi__acoes, .heroi__nota { animation: ent 700ms var(--ease-out) both; animation-delay: 70ms; }
.heroi__acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.heroi__nota { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--mut); }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.heroi__foto { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; animation: rev 900ms var(--ease-out) both; }
.heroi__foto img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ent { from { opacity: 0; transform: translateY(10px); } }
@keyframes rev { from { clip-path: inset(0 0 12% 0); opacity: .4; } to { clip-path: inset(0); opacity: 1; } }
.portas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(32px, 5vw, 60px); background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.portas a { position: relative; display: block; padding: 22px 44px 22px 22px; background: #fff; transition: background-color 180ms ease; }
.portas strong { display: block; margin: 4px 0; font: 400 24px/1.2 var(--display); }
.portas p { font-size: 14.5px; color: var(--mut); }
.portas svg { position: absolute; top: 24px; right: 20px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .portas a:hover { background: var(--bg); } .portas a:hover svg { transform: translateX(3px); } }
.entrar { max-width: 400px; margin: 3vh auto 0; }
.entrar form { margin-top: 18px; } .entrar .nota { margin-top: 12px; }
.demo-acesso { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-acesso .ol { margin-bottom: 8px; }
.demo-acesso__b { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; text-align: left; border-radius: var(--r); transition: background-color 160ms ease; }
.demo-acesso__b b { font-weight: 500; flex: none; width: 92px; } .demo-acesso__b span { flex: 1; min-width: 0; color: var(--mut); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .demo-acesso__b:hover { background: var(--bg); } }
.passos { display: flex; gap: 8px; margin: 26px 0; }
.passos li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mut); min-width: 0; }
.passos i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(13,16,24,.07); font-style: normal; font-size: 13px; font-weight: 500; }
.passos i svg { width: 14px; height: 14px; }
.passos .feito { color: var(--ink); } .passos .feito i { background: var(--verde); color: #fff; }
.passos .agora { color: var(--ink); font-weight: 500; } .passos .agora i { background: var(--ink); color: #fff; }
.aviso-doc { background: var(--ambar-f); box-shadow: none; }
.aviso-doc .drop { background: #fff; margin-top: 8px; }
.selo { max-width: 520px; padding: 28px; margin: 3vh auto 0; background: var(--bg); border-radius: var(--r); animation: ent 420ms var(--ease-out); }
.selo > svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; color: #fff; margin-bottom: 12px; }
.selo--sim > svg { background: var(--verde); } .selo--nao > svg { background: var(--red); }
.selo h1 { margin: 2px 0 16px; font-size: 32px; } .selo .btn { margin-top: 14px; }

/* Barra inferior e folha no telemóvel */
.tabs-m { display: none; }
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet__fundo { position: absolute; inset: 0; background: rgba(13,16,24,.45); opacity: 0; transition: opacity 240ms ease; }
.sheet__p { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; border-radius: 12px 12px 0 0; transform: translateY(100%); transition: transform 300ms var(--ease-drawer); max-height: 80vh; overflow-y: auto; }
.sheet.on .sheet__fundo { opacity: 1; } .sheet.on .sheet__p { transform: translateY(0); }
.sheet__pega { display: block; width: 36px; height: 4px; margin: 2px auto 10px; border-radius: 2px; background: rgba(255,255,255,.3); }
.sheet .nav__i { min-height: 46px; font-size: 16px; }
.sheet .nav__i.is::before { display: none; }

/* Acessos */
.marcar { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.marcar input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }
.perm { margin-top: 14px; }
.perm__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.perm fieldset { margin-bottom: 18px; }
.perm legend { padding: 0; margin-bottom: 4px; font-size: 13px; color: var(--mut); }
.perm__l { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.perm__l input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.perm__l strong { display: block; font-weight: 500; }
.perm__l em { font-style: normal; font-size: 12px; line-height: 22px; color: var(--azul); }
.perm__l--fixa { cursor: not-allowed; }
.perm__repor { margin-top: 12px; }
.perm__est { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
@media (hover: hover) and (pointer: fine) { .perm__l:not(.perm__l--fixa):hover strong { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; } }

@media (max-width: 1080px) {
  .duas { grid-template-columns: minmax(0, 1fr); }
  .kpis--4 { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 860px) {
  .shell { display: block; }
  .rail { display: none; }
  .main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .tabs-m { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--ink); color: rgba(255,255,255,.62); }
  .tabs-m a, .tabs-m button { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; font-size: 11px; color: inherit; transition: transform 120ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
  .tabs-m a:active, .tabs-m button:active { transform: scale(.94); }
  .tabs-m svg { width: 21px; height: 21px; }
  .tabs-m .is { color: #fff; }
  .tabs-m b { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; padding: 0 4px; border-radius: 100px; background: var(--red); color: #fff; font-size: 10px; font-weight: 500; line-height: 16px; text-align: center; }
  .barra-fixa { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .toasts { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; }
  .so-m { display: block; }
  .graf { grid-template-columns: minmax(0, 1fr); }
  .funil li { grid-template-columns: 112px 1fr 26px 34px; font-size: 13px; gap: 6px; }
  .heroi { grid-template-columns: minmax(0, 1fr); }
  .heroi__foto { aspect-ratio: 16 / 10; order: -1; }
  .portas { grid-template-columns: minmax(0, 1fr); }
  .toast { max-width: none; }
}
@media (max-width: 640px) {
  .grelha, .grelha.g4 { grid-template-columns: minmax(0, 1fr); } .c2 { grid-column: auto; }
  .kpis--3 { grid-template-columns: minmax(0, 1fr); }
  .kpi { padding: 12px 14px; }
  .prox { grid-template-columns: minmax(0, 1fr); }
  .btn--auto { justify-self: stretch; }
  .topo { align-items: flex-start; flex-direction: column; }
  .tbl { background: transparent; box-shadow: none; overflow: visible; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 10px 14px; margin-bottom: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
  .tbl td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .tbl td::before { content: attr(data-l); flex: none; font-size: 13px; color: var(--mut); text-align: left; }
  .tbl td:first-child { display: block; text-align: left; font-size: 15.5px; } .tbl td:first-child::before { content: none; }
  .tbl td.dir { display: block; } .tbl td.dir::before { content: none; }
  .tbl td.dir .linha { justify-content: flex-start; }
  .tbl td .com-barra { flex: 1; max-width: 170px; }
  .tbl td small { text-align: inherit; }
  td.dir .mini__p, .mini--dir .mini__p { left: 0; right: auto; transform-origin: 0 0; }
  .al { grid-template-columns: minmax(0, 1fr); padding: 13px 14px; }
  .al__a { margin-top: 8px; flex-wrap: wrap; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); scrollbar-width: none; }
  .chips a { flex: none; }
  .passos { flex-direction: column; }
  .agenda li { gap: 10px; padding: 11px 12px; flex-wrap: wrap; }
  .agenda__c { flex-basis: calc(100% - 70px); }
  .seg { width: 100%; } .seg label { flex: 1; } .seg span { justify-content: center; }
  .ranking__a { width: 100%; }
  .resp { flex-basis: 100%; }
  .cred .btn { width: 100%; }
  .fila__a .btn--g { width: 100%; }
  .filtros .f { flex: 1 1 100%; }
  .so-f { flex-wrap: wrap; } .so-f .btn { width: 100%; }
  .barra-fixa .nota { display: none; } .barra-fixa .btn { width: 100%; }
  .linha input, .linha select { flex: 1 1 140px; min-height: 40px; font-size: 16px; }
  .doc__ver { height: 140px; }
  details.mini { display: block; }
  .mini__p, td.dir .mini__p, .mini--dir .mini__p, .decisao .mini__p { position: static; min-width: 0; margin-top: 8px; box-shadow: inset 0 0 0 1px var(--line); animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .heroi h1, .heroi .ol, .heroi .lead, .heroi__acoes, .heroi__nota, .heroi__foto, .cred, .selo, .mini__p { animation: fadeS 180ms ease both; }
  @keyframes fadeS { from { opacity: 0; } }
  .btn:active, .tabs-m a:active, .tabs-m button:active { transform: none; }
  .sheet__p { transition: opacity 180ms ease; transform: none; opacity: 0; } .sheet.on .sheet__p { opacity: 1; }
  .toast { transition: opacity 180ms ease; } @starting-style { .toast { transform: none; } }
}
@media print { .rail, .tabs-m, .topo__acoes, .fita, .toasts { display: none !important; } .shell { display: block; } body { background: #fff; } }
