:root { --pico-font-size: 15px; }
.flash { padding: .7rem 1rem; border-radius: .4rem; margin-bottom: 1rem; }
.flash.ok { background: #e6f4ea; color: #1e5631; }
.flash.erro { background: #fde8e8; color: #8a1c1c; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cartoes a { text-decoration: none; }
.cartao { border: 1px solid var(--pico-muted-border-color); border-radius: .5rem; padding: 1rem; }
.cartao .n { font-size: 1.8rem; font-weight: 700; display: block; }
.cartao .l { color: var(--pico-muted-color); font-size: .85rem; }
.estado { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; font-size: .8rem; white-space: nowrap;
  background: #eef0f3; color: #333; }
.estado.pendente, .estado.por_validar { background: #fff4d6; color: #7a5300; }
.estado.aprovado, .estado.lancado, .estado.pago { background: #e6f4ea; color: #1e5631; }
.estado.rejeitado, .estado.erro { background: #fde8e8; color: #8a1c1c; }
.dir { text-align: right; white-space: nowrap; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.doc-grid iframe { width: 100%; height: 80vh; border: 1px solid var(--pico-muted-border-color); border-radius: .4rem; }
.acoes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.acoes form { margin: 0; }
.acoes button { margin: 0; }
.pequeno { font-size: .85rem; color: var(--pico-muted-color); }
table td, table th { vertical-align: middle; }
.tabela { overflow-x: auto; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; } .doc-grid iframe { height: 60vh; } }
.estado.em_falta { background: #fde8e8; color: #8a1c1c; }
.estado.divergente, .estado.sem_mapa { background: #fff4d6; color: #7a5300; }
.estado.conforme { background: #e3effd; color: #1a4b8c; }
.estado.validado, .estado.em_pagamento { background: #e6f4ea; color: #1e5631; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filtros > * { margin: 0; width: auto; }
.filtros select, .filtros input { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.pills a { display: inline-block; padding: .25rem .7rem; border-radius: 1rem; border: 1px solid var(--pico-muted-border-color);
  text-decoration: none; font-size: .85rem; }
.pills a[aria-current] { background: var(--pico-primary-background); color: var(--pico-primary-inverse); border-color: transparent; }
.problemas { margin: .2rem 0 0; padding-left: 1rem; font-size: .8rem; color: #7a5300; }
.problemas li { margin: 0; }
.neg { color: #8a1c1c; }
td.chk, th.chk { width: 2rem; }
td.chk input, th.chk input { margin: 0; }
.mapa-previa { font-size: .8rem; }
.mapa-previa td, .mapa-previa th { padding: .25rem .4rem; white-space: nowrap; }
.mapa-previa tr.cab td { font-weight: 700; background: var(--pico-muted-border-color); }
pre.email { white-space: pre-wrap; font-size: .8rem; padding: .8rem; }
.filtros input[type=search] { flex: 1 1 14rem; }
.filtros button { width: auto; }
.pills li { list-style: none; margin: 0; padding: 0; }
.pills li::marker { content: none; }
.nowrap { white-space: nowrap; }
.empresa-sel summary { font-weight: 600; }
.empresa-sel ul a[aria-current] { font-weight: 700; }
.matriz td, .matriz th { padding: .3rem .5rem; }
.matriz select { margin: 0; padding: .2rem .5rem; }

/* listas de faturas: uma linha por documento, compactas, com deslocamento horizontal em ecrãs estreitos */
table.linhas-simples { width: 100%; font-size: .76rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
table.linhas-simples td, table.linhas-simples th { white-space: nowrap; padding: .12rem .4rem; }
table.linhas-simples td.c, table.linhas-simples th.c { text-align: center; }
table.linhas-simples .estado { font-size: .7rem; padding: 0 .3rem; }
table.linhas-simples mark { padding: 0 .25rem; font-size: .7rem; }
table.linhas-simples form { margin: 0; }
table.linhas-simples button.mini { padding: .05rem .4rem; margin: 0; font-size: .7rem; line-height: 1.2; }
table.linhas-simples tr.filtros-coluna th { padding: .1rem .2rem; font-weight: normal; }
table.linhas-simples tr.filtros-coluna input, table.linhas-simples tr.filtros-coluna select {
  margin: 0; padding: .1rem .3rem; height: auto; font-size: .72rem; min-width: 4.5rem; width: 100%; }
/* o fornecedor ocupa o espaço que sobra, para a tabela esticar à largura do ecrã */
table.linhas-simples th:nth-child(3), table.linhas-simples td:nth-child(3) { width: 100%; }
div.tabela { overflow-x: auto; }
/* filtro de datas à Excel: pesquisa, (Todos) e árvore ano > mês > dia com caixas de três estados */
.meses-arvore .arv-caixa { min-width: 15rem; max-height: 26rem; overflow-y: auto; padding: .5rem .6rem; background: var(--pico-dropdown-background-color, #fff);
  border: 1px solid var(--pico-muted-border-color, #ccd); border-radius: .3rem; position: absolute; z-index: 20; }
.meses-arvore input.pesquisa { margin: 0 0 .4rem; padding: .2rem .4rem; font-size: .75rem; height: auto; }
.meses-arvore ul.arv, .meses-arvore ul.arv ul { list-style: none; margin: 0; padding: 0; position: static; min-width: 0; max-height: none; border: 0; box-shadow: none; background: transparent; }
.meses-arvore ul.arv ul { padding-left: 1.3rem; }
.meses-arvore ul.arv li { list-style: none; padding: 0; margin: 0; }
.meses-arvore label { font-size: .78rem; margin: .05rem 0; display: inline-block; }
.meses-arvore .seta { display: inline-block; width: 1rem; cursor: pointer; user-select: none; color: var(--pico-muted-color, #667); transition: transform .1s; }
.meses-arvore li:not(.aberto) > ul { display: none; }
.meses-arvore li.aberto > .seta { transform: rotate(90deg); }
.meses-arvore .acoes-meses { position: sticky; bottom: 0; background: var(--pico-dropdown-background-color, #fff); padding-top: .3rem; }
table.linhas-simples tr.filtros-coluna details.dropdown summary { margin: 0; padding: .1rem .4rem; font-size: .72rem; }

/* tabela de faturas: colunas redimensionáveis (a largura fica fixa e o texto que não cabe fica com «…»; completo no tooltip) */
table.tabela-faturas td, table.tabela-faturas th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tabela-faturas th { position: relative; padding-right: .9rem; }
table.tabela-faturas td:last-child, table.tabela-faturas th:last-child { overflow: visible; }
table.tabela-faturas .th-in { display: flex; align-items: center; gap: .1rem; min-width: 0; }
table.tabela-faturas .dir .th-in { justify-content: flex-end; }
table.tabela-faturas .c .th-in { justify-content: center; }
table.tabela-faturas .th-ord { overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
table.tabela-faturas td .nome-cel { display: block; overflow: hidden; text-overflow: ellipsis; }
.col-resizer { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; }
.col-resizer:hover, .col-resizer.ativo { background: var(--pico-primary, #0172ad); opacity: .45; }
/* botão de filtro da coluna, ao estilo do Excel: quadrado com seta; com filtro ativo mostra o funil */
.fcol { width: 1.15rem; height: 1.15rem; margin: 0 0 0 .25rem; padding: 0; display: inline-flex; align-items: center; justify-content: center;
        border: 1px solid #b9c2cf; border-radius: 2px; background: #fff; box-shadow: none; color: #444; cursor: pointer; flex: none; }
.fcol:hover { background: #e8f0fb; border-color: var(--pico-primary, #0172ad); color: var(--pico-primary, #0172ad); }
.fcol .i-funil { display: none; }
.fcol.ativo { background: #d6e6fb; border-color: var(--pico-primary, #0172ad); color: var(--pico-primary, #0172ad); }
.fcol.ativo .i-seta { display: none; } .fcol.ativo .i-funil { display: block; }
a.filtro-link { color: inherit; text-decoration: none; }
a.filtro-link:hover { text-decoration: underline; color: var(--pico-primary, #0172ad); }
.visto { color: #1a7f37; font-weight: bold; font-family: system-ui, "Segoe UI Symbol", sans-serif; }
.falta-x { color: var(--pico-del-color, #c62828); font-weight: bold; font-size: 1rem; line-height: 1; }
/* janela de filtro de coluna (estilo Excel) */
.fpop { position: fixed; z-index: 1000; min-width: 15rem; max-width: 23rem; padding: .5rem .6rem; font-size: .78rem; line-height: 1.3;
        background: var(--pico-card-background-color, #fff); border: 1px solid var(--pico-muted-border-color, #ccd3dc);
        border-radius: .4rem; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); }
.fpop.fpop-larga { min-width: 18rem; }
.fpop .fp-ord a { display: block; padding: .1rem 0; text-decoration: none; }
.fpop .fp-ord { border-bottom: 1px solid var(--pico-muted-border-color, #dde); margin-bottom: .35rem; padding-bottom: .25rem; }
.fpop input.fp-pesq { margin: 0 0 .3rem; padding: .25rem .4rem .25rem 2rem; height: auto; font-size: .78rem; background-position: .5rem center; }
.fpop label { margin: .05rem 0; font-size: .78rem; display: block; }
.fpop .fp-arvore label { display: inline-block; vertical-align: middle; }
.fpop .fp-arvore .seta { vertical-align: middle; }
.fpop input[type=checkbox] { margin: 0 .25rem 0 0; }
.fpop .fp-todos { border-bottom: 1px solid var(--pico-muted-border-color, #dde); padding-bottom: .2rem; margin-bottom: .2rem; }
.fpop ul { list-style: none; margin: 0; padding: 0; position: static; min-width: 0; border: 0; box-shadow: none; background: transparent; }
.fpop ul.fp-lista, .fpop ul.fp-arvore { max-height: 16rem; overflow: auto; }
.fpop li { list-style: none; margin: 0; padding: 0; }
.fpop ul ul { padding-left: 1.3rem; }
.fpop .seta { display: inline-block; width: 1rem; cursor: pointer; user-select: none; color: var(--pico-muted-color, #667); }
.fpop li:not(.aberto) > ul { display: none; }
.fpop li.aberto > .seta { transform: rotate(90deg); }
.fpop .fp-acoes { display: flex; gap: .3rem; margin-top: .5rem; }
.fpop .fp-acoes button { width: auto; margin: 0; padding: .15rem .6rem; font-size: .75rem; line-height: 1.3; }
.fpop .fp-num { display: grid; grid-template-columns: auto 1fr; gap: .3rem .4rem; align-items: center; }
.fpop .fp-num input { margin: 0; padding: .25rem .4rem; height: auto; font-size: .78rem; }
/* janela de progresso das tarefas: registo linha a linha */
#tarefa-modal article { width: min(46rem, 94vw); }
.tm-log { list-style: none; margin: .5rem 0 0; padding: .4rem .6rem; max-height: 15rem; overflow-y: auto; font-size: .76rem;
          font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.35;
          background: var(--pico-card-sectioning-background-color, #f3f6fa); border-radius: .3rem; }
.tm-log li { margin: 0; padding: 0; word-break: break-word; }
.tm-log .tm-ic { display: inline-block; width: 1.1rem; font-weight: bold; }
.tm-log .tm-h { color: var(--pico-muted-color, #6b7684); margin-right: .15rem; }
.tm-log .tm-ok .tm-ic { color: var(--pico-ins-color, #1a7f37); }
.tm-log .tm-erro, .tm-log .tm-erro .tm-ic { color: var(--pico-del-color, #c62828); }


/* ===================================================================================================================
   Visual: barra lateral azul-escura com ícones, cabeçalho com a empresa, fundo cinza-claro e cartões brancos
   =================================================================================================================== */
:root, html:root[data-theme="light"] {
  --navy: #0f2747; --navy-2: #173a66; --navy-texto: #c9d6e8; --verde: #1f9d55; --verde-esc: #178347; --verde-claro: #e6f6ec;
  --fundo: #f3f5f9; --cartao: #ffffff; --borda: #e3e8ef; --tinta: #1b2634; --suave: #667386;
  --pico-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pico-background-color: var(--fundo); --pico-color: var(--tinta); --pico-muted-color: var(--suave);
  --pico-muted-border-color: var(--borda);
  --pico-primary: #1f6feb; --pico-primary-hover: #1859bf; --pico-primary-underline: rgba(31, 111, 235, .35);
  --pico-primary-background: var(--verde); --pico-primary-hover-background: var(--verde-esc);
  --pico-primary-border: var(--verde); --pico-primary-hover-border: var(--verde-esc); --pico-primary-inverse: #fff;
  --pico-primary-focus: rgba(31, 157, 85, .25);
  --pico-border-radius: .55rem;
  --pico-card-background-color: var(--cartao); --pico-card-border-color: var(--borda);
  --pico-card-box-shadow: 0 1px 2px rgba(16, 40, 72, .05), 0 6px 18px rgba(16, 40, 72, .05);
  --pico-card-sectioning-background-color: #f8fafc;
  --pico-form-element-border-color: #d3dae4; --pico-form-element-focus-color: var(--verde);
}
body { background: var(--fundo); color: var(--tinta); }
body.com-menu { margin: 0; }
.ico { flex: none; vertical-align: middle; }

.menu-fundo { display: none; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
        background: var(--navy); color: var(--navy-texto); padding: 1rem .8rem .6rem; z-index: 60; }
.marca-bloco { display: flex; align-items: center; gap: .7rem; padding: .35rem .5rem 1rem; text-decoration: none; color: #fff; }
.marca-logo { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--verde); color: #fff; flex: none; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.15; }
.marca-texto strong { font-size: 1.05rem; letter-spacing: .02em; }
.marca-texto small { color: var(--navy-texto); font-size: .72rem; }
.side { --pico-accordion-close-summary-color: var(--navy-texto); --pico-accordion-open-summary-color: #fff; --pico-color: var(--navy-texto); }
.menu { flex: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; padding: 0; list-style: none; }
.menu a, .menu summary { display: flex; align-items: center; gap: .65rem; padding: .58rem .75rem; margin: .12rem 0; border-radius: .6rem;
        color: var(--navy-texto); text-decoration: none; font-size: .9rem; font-weight: 500; cursor: pointer; }
.menu a:hover, .menu summary:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu a[aria-current="page"] { background: var(--verde); color: #fff; font-weight: 600; }
.menu details.grupo { margin: 0; border: 0; }
.menu details.grupo > summary { list-style: none; color: var(--navy-texto); opacity: 1; background: transparent; }
.menu details.grupo[open] > summary { color: #fff; }
.menu details.grupo > summary::-webkit-details-marker { display: none; }
.menu details.grupo > summary::marker { content: ""; }
.menu details.grupo > summary::after { display: none; }
.menu details.grupo > summary > span { flex: 1; }
.menu details.grupo > summary > .ico:last-child { transition: transform .15s; opacity: .7; }
.menu details.grupo[open] > summary > .ico:last-child { transform: rotate(180deg); }
.menu details.grupo > ul { margin: .1rem 0 .3rem 1.05rem; padding-left: .55rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.menu details.grupo > ul a { padding: .42rem .7rem; font-size: .84rem; font-weight: 400; }
.menu-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: .7rem .4rem; }
.side-user { display: flex; align-items: center; gap: .6rem; padding: .8rem .4rem .3rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: .6rem; }
.avatar { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 700; flex: none; }
.side-user-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.side-user-txt strong { color: #fff; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-txt small { color: var(--navy-texto); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user a { color: var(--navy-texto); padding: .3rem; border-radius: .4rem; display: grid; place-items: center; }
.side-user a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.coluna { min-width: 0; display: flex; flex-direction: column; }
.topo { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.6rem; background: var(--cartao); border-bottom: 1px solid var(--borda); min-height: 3.6rem; position: sticky; top: 0; z-index: 40; }
.menu-botao { display: none; width: auto; margin: 0; padding: .3rem; background: transparent; border: 0; color: var(--tinta); box-shadow: none; }
.topo details.dropdown { margin: 0; width: auto; }
.topo details.dropdown > summary { margin: 0; width: auto; display: flex; align-items: center; gap: .55rem; padding: .45rem .9rem; font-weight: 600; font-size: .9rem;
        background: var(--cartao); border: 1px solid var(--borda); border-radius: .6rem; color: var(--tinta); max-width: 22rem; }
.topo details.dropdown > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo details.dropdown > ul { min-width: 16rem; z-index: 80; }
.selo { display: inline-block; padding: .2rem .7rem; border-radius: 1rem; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.selo.ativa { background: var(--verde-claro); color: #167a43; }
.selo.inativa { background: #eef0f3; color: #5a6676; }
.conteudo { padding: 1.4rem 1.6rem 3rem; width: 100%; margin: 0 auto; }
.conteudo-solo { padding: 0 1rem; margin: 0 auto; }

h2 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .35rem; color: var(--tinta); }
h3 { font-size: 1.05rem; font-weight: 650; margin: 1.6rem 0 .8rem; color: var(--tinta); }
h4 { font-size: .95rem; }
.conteudo > p.subtitulo, .subtitulo { color: var(--suave); margin: 0 0 1.4rem; }

/* cartões: article, painéis, tabelas e indicadores */
article { background: var(--cartao); border: 1px solid var(--borda); border-radius: .85rem; box-shadow: var(--pico-card-box-shadow); padding: 1.25rem 1.4rem; margin: 0 0 1.2rem; }
article > header { margin: -1.25rem -1.4rem 1rem; padding: .9rem 1.4rem; background: transparent; border-bottom: 1px solid var(--borda); font-weight: 650; }
div.tabela { background: var(--cartao); border: 1px solid var(--borda); border-radius: .85rem; box-shadow: var(--pico-card-box-shadow); padding: .3rem .6rem; margin-bottom: 1rem; }
table { margin-bottom: 0; }
table thead th { font-size: .74rem; font-weight: 650; color: #475467; text-transform: none; letter-spacing: .01em; border-bottom: 1px solid var(--borda); background: transparent; }
table tbody tr { border-bottom: 1px solid #eef1f6; }
table.striped tbody tr:nth-child(odd) td, table.striped tbody tr:nth-child(odd) th { background: transparent; }
table tbody tr:hover td { background: #f7f9fc; }
.flash { border-radius: .7rem; border: 1px solid transparent; font-weight: 500; }
.flash.ok { background: var(--verde-claro); color: #145c34; border-color: #c4e8d2; }
.flash.erro { background: #fdecec; color: #8a1c1c; border-color: #f6caca; }
.estado { font-weight: 600; }
button, [role=button], input[type=submit] { font-weight: 600; }
button.outline, [role=button].outline { color: var(--tinta); border-color: #cfd7e2; background: #fff; }
button.outline:hover, [role=button].outline:hover { background: #f4f7fb; color: var(--tinta); border-color: #b9c4d3; }
button.outline.secondary, [role=button].outline.secondary { color: var(--suave); }
input:not([type=checkbox], [type=radio], [type=range]), select, textarea { background: #fff; }
.pills a[aria-current] { background: var(--verde); }

/* indicadores do painel */
.cartoes { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin-bottom: 1.4rem; }
.cartoes > a { color: inherit; display: block; }
.cartao { position: relative; display: flex; flex-direction: column; gap: .15rem; height: 100%; border: 1px solid var(--borda); background: var(--cartao);
          border-radius: .85rem; box-shadow: var(--pico-card-box-shadow); padding: 1.1rem 1.2rem; transition: transform .12s, box-shadow .12s; }
a:hover > .cartao { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 40, 72, .06), 0 10px 24px rgba(16, 40, 72, .09); }
.cartao .ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; margin-bottom: .55rem; background: #e8f0fe; color: #1f6feb; order: 0; }
.cartao .ic.verde { background: var(--verde-claro); color: var(--verde); }
.cartao .ic.laranja { background: #fff1e3; color: #e8710a; }
.cartao .ic.vermelho { background: #fdecec; color: #d93025; }
.cartao .ic.cinza { background: #eef0f3; color: #5a6676; }
.cartao .l { order: 1; color: var(--tinta); font-size: .86rem; font-weight: 500; }
.cartao .n { order: 2; font-size: 2rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.cartao .sub { order: 3; color: var(--suave); font-size: .76rem; margin-top: .1rem; }
.painel-grelha { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.1rem; margin-bottom: 1.2rem; }
.painel-grelha article { margin: 0; }
.painel-grelha h3, article > h3:first-child { margin-top: 0; }
.graf-leg { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .76rem; color: var(--suave); }
.graf-leg i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .3rem; }
.graf-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.graf-topo h3 { margin: 0; }
svg.grafico { width: 100%; height: auto; display: block; }
svg.grafico text { font-size: 11px; fill: #667386; }
.rosca { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.rosca svg { width: 9.5rem; height: 9.5rem; flex: none; }
.rosca .centro-n { font-size: 26px; font-weight: 750; fill: var(--tinta); }
.rosca .centro-t { font-size: 10px; fill: #667386; }
.rosca ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 9rem; }
.rosca li { margin: .35rem 0; padding: 0; font-size: .83rem; list-style: none; }
.rosca li a { color: var(--tinta); text-decoration: none; display: flex; align-items: center; gap: .45rem; }
.rosca li a:hover { color: var(--pico-primary); }
.rosca li i { width: .65rem; height: .65rem; border-radius: 50%; flex: none; }
.rosca li small { color: var(--suave); margin-left: auto; }
.vazio { color: var(--suave); font-size: .86rem; padding: 1.4rem 0; text-align: center; }

/* entrada */
body.sem-menu { background: linear-gradient(135deg, #0f2747 0%, #173a66 55%, #1f9d55 160%); min-height: 100vh; padding-top: 11vh; box-sizing: border-box; }
.entrada { max-width: 25rem; margin: 0 auto; text-align: center; }
.entrada .marca-logo { margin: 0 auto .9rem; width: 3.4rem; height: 3.4rem; border-radius: .9rem; }
.entrada h2 { margin-bottom: .2rem; }
.entrada form { text-align: left; margin-top: 1.4rem; }
.entrada .sub-entrada { color: var(--suave); margin: 0; font-size: .9rem; }

/* telemóvel e ecrãs estreitos: o menu passa a gaveta */
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-105%); transition: transform .2s; box-shadow: 6px 0 24px rgba(0, 0, 0, .25); }
  body.menu-aberto .side { transform: none; }
  .menu-fundo { position: fixed; inset: 0; background: rgba(10, 20, 40, .45); z-index: 55; display: none; }
  body.menu-aberto .menu-fundo { display: block; }
  .menu-botao { display: inline-grid; }
  .topo { padding: .6rem 1rem; }
  .conteudo { padding: 1rem 1rem 3rem; }
  .painel-grelha { grid-template-columns: minmax(0, 1fr); }
}

/* verificação de um documento */
a[role=button].mini, button.mini { width: auto; margin: 0; padding: .1rem .5rem; font-size: .72rem; line-height: 1.3; }
.verif-lista { list-style: none; margin: .2rem 0; padding: 0; font-size: .84rem; }
.verif-lista li { margin: .25rem 0; padding: 0; list-style: none; display: flex; gap: .5rem; align-items: baseline; }
.verif-lista li > span:first-child { flex: none; width: 1rem; text-align: center; }
.verif-doc { border: 1px solid var(--borda); border-radius: .7rem; padding: .7rem .9rem; margin: .7rem 0; background: #fbfcfe; }
.verif-doc-topo { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; margin-bottom: .3rem; }

/* ícone das tarefas no cabeçalho (as automáticas só aparecem aqui, sem abrir a janela) */
.tarefas-ico { position: relative; margin: 0 0 0 auto; width: auto; padding: .45rem .55rem; border-radius: .6rem; background: transparent; border: 1px solid var(--borda);
               color: var(--suave); box-shadow: none; display: inline-grid; place-items: center; }
.tarefas-ico:hover { background: #f4f7fb; color: var(--tinta); }
.tarefas-ico.ativo { color: #c25e00; border-color: #f2c48d; background: #fff4e5; }
.tarefas-ico.ativo svg { animation: tarefas-rodar 1.4s linear infinite; }
.tarefas-ico.com-erro { color: #c62828; border-color: #f2b8b8; background: #fdecec; }
.tarefas-n { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: .6rem; background: #e8710a; color: #fff;
             font-size: .66rem; font-weight: 700; display: grid; place-items: center; }
@keyframes tarefas-rodar { to { transform: rotate(360deg); } }
.tm-sel { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .6rem; }
.tm-sel-btn { width: auto; margin: 0; padding: .15rem .6rem; font-size: .75rem; border-radius: 1rem; background: #fff; color: var(--tinta); border: 1px solid var(--borda); }
.tm-sel-btn.ativa { background: var(--verde-claro); border-color: #bfe3cd; color: #145c34; }

/* -- Aprovações: vista dividida ------------------------------------------------ */
.aprov { display: grid; grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.aprov-lista, .aprov-detalhe { background: var(--cartao); border: 1px solid var(--borda); border-radius: .85rem; box-shadow: var(--pico-card-box-shadow); }
.aprov-lista { position: sticky; top: 4.4rem; max-height: calc(100vh - 5.4rem); display: flex; flex-direction: column; overflow: hidden; }
.aprov-abas { display: flex; border-bottom: 1px solid var(--borda); }
.aprov-abas a { flex: 1; text-align: center; padding: .7rem .4rem; font-size: .85rem; font-weight: 600; color: var(--suave); text-decoration: none; border-bottom: 2px solid transparent; }
.aprov-abas a.ativa { color: var(--verde-esc); border-bottom-color: var(--verde); }
.contagem { display: inline-block; min-width: 1.3rem; padding: 0 .4rem; border-radius: 1rem; background: #eef0f3; color: var(--suave); font-size: .72rem; text-align: center; }
.aprov-cartoes { overflow-y: auto; padding: .5rem; display: flex; flex-direction: column; gap: .4rem; }
.aprov-cartao { display: flex; gap: .7rem; padding: .6rem; border: 1px solid var(--borda); border-radius: .7rem; text-decoration: none; color: var(--tinta); background: var(--cartao); }
.aprov-cartao:hover { border-color: var(--verde); }
.aprov-cartao.sel { background: var(--verde-claro); border-color: var(--verde); box-shadow: inset 3px 0 0 var(--verde); }
.aprov-mini { position: relative; flex: none; width: 3.6rem; height: 4.8rem; display: grid; place-items: center; background: #f1f3f6; border: 1px solid var(--borda); border-radius: .35rem; overflow: hidden; color: #9aa5b4; }
.aprov-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.aprov-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.aprov-info strong { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aprov-badges { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .2rem; }
.selo-valor { font-weight: 700; font-size: .82rem; }
.aprov-detalhe { padding: 1rem 1.2rem; min-width: 0; }
.aprov-topo { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.aprov-topo h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.aprov-total { font-size: 1.6rem; font-weight: 750; white-space: nowrap; }
.aprov-decisao { display: flex; gap: .6rem; align-items: center; margin: .8rem 0 .3rem; flex-wrap: wrap; }
.aprov-decisao input { flex: 1 1 14rem; margin: 0; }
.aprov-decisao button { margin: 0; width: auto; }
.aprov-decisao button.aprovar { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 2.2rem; font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; }
.aprov-estado { display: flex; flex-direction: column; gap: .2rem; margin: .6rem 0; }
.aprov-tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--borda); margin: .8rem 0; }
.aprov-tabs button { width: auto; margin: 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--suave); font-weight: 600; padding: .5rem .9rem; }
.aprov-tabs button.ativa { color: var(--verde-esc); border-bottom-color: var(--verde); }
.aprov-painel iframe { width: 100%; height: calc(100vh - 21rem); min-height: 28rem; border: 1px solid var(--borda); border-radius: .5rem; }
.aprov-dl { display: grid; grid-template-columns: 11rem 1fr; gap: .4rem .8rem; margin: 0; }
.aprov-dl dt { color: var(--suave); font-size: .85rem; } .aprov-dl dd { margin: 0; }
.rasto { list-style: none; margin: 0; padding: 0 0 0 .4rem; }
.rasto li { position: relative; display: flex; gap: .8rem; padding: 0 0 1rem .2rem; border-left: 2px solid var(--borda); margin-left: .4rem; }
.rasto-ponto { position: absolute; left: -.46rem; top: .15rem; width: .8rem; height: .8rem; border-radius: 50%; background: #98a2b3; border: 2px solid var(--cartao); }
.rasto li > div { padding-left: .9rem; }
.rasto li.ok .rasto-ponto { background: var(--verde); } .rasto li.mau .rasto-ponto { background: #d92d20; } .rasto li.aviso .rasto-ponto { background: #f79009; }
.rasto-detalhe { font-size: .85rem; margin-top: .15rem; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .aprov { grid-template-columns: 1fr; } .aprov-lista { position: static; max-height: 22rem; } .aprov-dl { grid-template-columns: 1fr; } }
.aprov-tabs button { transition: none; }

/* -- Menu «Tarefas» com contador e janela de sincronização com a AT ------------------------------------------ */
.menu-n { margin-left: auto; min-width: 1.3rem; height: 1.3rem; padding: 0 .4rem; border-radius: .7rem; background: #e8710a; color: #fff; font-size: .72rem;
          font-weight: 700; display: inline-grid; place-items: center; }
.menu-n[hidden] { display: none; }
.menu-n.com-erro { background: #d92d20; }
.menu a:has(.menu-n:not([hidden]):not(.com-erro)) svg { animation: tarefas-rodar 1.4s linear infinite; }
.at-atalhos { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.at-atalhos button { width: auto; margin: 0; padding: .3rem .8rem; font-size: .82rem; }
#at-dialogo article { margin: 0; min-width: min(34rem, 92vw); }
#at-dialogo footer { justify-content: flex-end; margin-top: 1rem; }
.rasto-simples { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .82rem; }
.rasto-simples li.tm-erro { color: #c62828; } .rasto-simples li.tm-ok { color: #1b6b3a; }
.tabela progress { margin: 0 0 .2rem; height: .5rem; }
#at-dialogo footer { display: flex; gap: .6rem; } #at-dialogo footer button { width: auto; margin: 0; }
.elim-aviso { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff4e5; color: #c25e00; font-weight: 800; text-decoration: none; border: 1px solid #f2c48d; }
#f-elim .acoes button { width: auto; margin: 0; }

/* -- Seleção de linhas na lista de faturas ------------------------------------------------------------------ */
.barra-sel { position: sticky; top: 3.7rem; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; padding: .55rem .9rem;
             margin: 0 0 .6rem; background: #fff4e5; border: 1px solid #f2c48d; border-radius: .7rem; }
.barra-sel[hidden] { display: none; }
.barra-sel button { width: auto; margin: 0; }
th[data-col="sel"], td .sel-linha { width: 2rem; }
td .sel-linha { margin: 0; }
.verif-importar { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; align-items: start; margin-bottom: .6rem; } .verif-importar form { margin: 0; } .verif-diag { border-top: 1px dashed var(--borda); margin-top: .5rem; padding-top: .4rem; }

/* -- Outros Docs: pastas + tabela ------------------------------------------------------------------------- */
.outros { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.outros-pastas { background: var(--cartao); border: 1px solid var(--borda); border-radius: .85rem; padding: .4rem; position: sticky; top: 4.4rem;
                 max-height: calc(100vh - 5.4rem); overflow-y: auto; }
.outros-pastas a { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: .55rem; color: var(--tinta); text-decoration: none; font-size: .9rem; }
.outros-pastas a span:nth-of-type(1) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outros-pastas a:hover { background: #f4f7fb; }
.outros-pastas a.ativa { background: var(--verde-claro); color: #145c34; font-weight: 650; }
.outros-tabela { min-width: 0; }
.meses a.mes-sel { background: var(--verde-claro); border-radius: .4rem; padding: 0 .3rem; }
@media (max-width: 900px) { .outros { grid-template-columns: 1fr; } .outros-pastas { position: static; max-height: 14rem; } }

/* versão da aplicação (v0.1.<n.º do deploy>), canto inferior esquerdo (por baixo do utilizador, na barra lateral) */
.versao { position: fixed; left: .6rem; bottom: .4rem; z-index: 70; font-size: .7rem; color: var(--suave, #667386); opacity: .85;
          background: var(--cartao, #fff); border: 1px solid var(--borda, #e3e8ef); border-radius: .5rem; padding: .05rem .45rem; user-select: all; }
@media (min-width: 961px) {
  body.com-menu .versao { left: 1rem; background: transparent; border: 0; color: var(--navy-texto, #c9d6e8); padding: 0; opacity: .7; }
  body.com-menu .side { padding-bottom: 1.9rem; }   /* espaço para a versão, que fica por baixo do utilizador */
}
body.menu-aberto .versao { display: none; }
@media print { .versao { display: none; } }
.personificar-faixa { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff4d6; color: #6b4a00; border-bottom: 2px solid #f0b429; padding: .5rem 1rem; margin: 0; font-size: .85rem; }
.personificar-faixa button { margin: 0; padding: .25rem .8rem; width: auto; font-size: .8rem; background: #6b4a00; border-color: #6b4a00; color: #fff; }

/* ---- Aprovar: um documento de cada vez, pensado para o telemóvel ---- */
.ap { max-width: 42rem; margin: 0 auto; padding-bottom: 1rem; }
.ap-progresso { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .85rem; color: var(--suave); margin-bottom: .6rem; }
.ap-barra { flex: 1; max-width: 12rem; height: .35rem; background: var(--borda); border-radius: 1rem; overflow: hidden; }
.ap-barra i { display: block; height: 100%; background: var(--verde); }
.ap-cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 1rem; padding: 1rem; box-shadow: 0 1px 3px rgba(15,39,71,.06); }
.ap-cartao h2 { font-size: 1.1rem; margin: 0 0 .1rem; line-height: 1.25; word-break: break-word; }
.ap-total { font-size: 2rem; font-weight: 800; margin: .1rem 0; letter-spacing: -.01em; }
.ap-doc { display: block; margin: .8rem 0; text-decoration: none; border: 1px solid var(--borda); border-radius: .8rem; overflow: hidden; background: #f7f9fc; }
.ap-doc img { display: block; width: 100%; max-height: 18rem; object-fit: cover; object-position: top; }
.ap-abrir { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem; font-weight: 700; color: var(--verde-esc); }
.ap-pdf { display: none; width: 100%; height: 34rem; border: 1px solid var(--borda); border-radius: .6rem; margin: .8rem 0; }
.ap-mais { margin: .4rem 0 .8rem; } .ap-mais summary { cursor: pointer; color: var(--suave); font-size: .9rem; }
.ap-form { margin: .6rem 0 0; }
.ap-nota { display: block; font-weight: 600; font-size: .9rem; }
.ap-nota textarea { margin: .3rem 0 .8rem; font-size: 1rem; }
.ap-acoes { display: grid; grid-template-columns: 2fr 1fr; gap: .7rem; }
.ap-acoes button { margin: 0; width: 100%; min-height: 3.4rem; font-size: 1.15rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.ap-rejeitar { color: #b42318 !important; border-color: #f0b4ae !important; background: #fff !important; font-size: 1rem !important; }
.ap-saltar { display: block; text-align: center; margin-top: .9rem; font-size: .9rem; color: var(--suave); }
.ap-vazio { text-align: center; padding: 3rem 1rem; } .ap-grande { color: var(--verde); margin: 0; }
@media (min-width: 900px) {
  .ap { max-width: 56rem; }
  .ap-doc { display: none; } .ap-pdf { display: block; }
}
@media (max-width: 899px) {
  .ap-acoes { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--cartao) 30%); padding: .6rem 0 .2rem; }
}
.ap-porque { text-align: left; background: #fff8e6; border: 1px solid #f0d58a; border-radius: .7rem; padding: .6rem .9rem; margin: 1rem auto; max-width: 30rem; color: #5c4400; }
.ap-porque p { margin: .3rem 0; }
/* Aprovar no desktop: lista de documentos à esquerda, documento à direita */
.ap-fila { display: none; }
@media (min-width: 900px) {
  .ap { max-width: 82rem; }
  .ap-grelha { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
  .ap-fila { display: block; position: sticky; top: .8rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
  .ap-fila h3 { font-size: 1rem; margin: 0 0 .6rem; }
  .ap-fila .aprov-cartoes { display: flex; flex-direction: column; gap: .4rem; }
}
.instalar-app { width: auto; margin: 0; padding: .1rem .4rem; border: 1px solid #2c4a73; background: transparent; color: var(--navy-texto, #c9d6e8); border-radius: .4rem; cursor: pointer; font-size: .9rem; line-height: 1.2; }
.instalar-app:hover { background: #173a66; }

/* ---- Tabelas no telemóvel: cada linha passa a um cartão com grelha fixa (4 colunas): cada campo fica sempre no mesmo sítio.
   Os rótulos vêm do cabeçalho (data-label) e o papel de cada coluna (m-largo, m-valor, m-curto, m-acoes, m-enf) do JS no
   fim da página. Para ficar de fora: <table class="sem-cartoes">. ---- */
@media (max-width: 760px) {
  div.tabela { overflow-x: visible; }
  .tabela table:not(.sem-cartoes) { display: block; width: 100% !important; min-width: 0 !important; max-width: none !important; table-layout: auto !important; border: 0; }
  .tabela table:not(.sem-cartoes) colgroup, .tabela table:not(.sem-cartoes) thead { display: none; }
  .tabela table:not(.sem-cartoes) tbody { display: block; }
  .tabela table:not(.sem-cartoes) tr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: .4rem .6rem; padding: .65rem .75rem; margin: 0 0 .55rem;
        border: 1px solid var(--borda); border-radius: .7rem; background: var(--cartao) !important; }
  .tabela table:not(.sem-cartoes) td { display: block; grid-column: span 6; order: 3; width: auto !important; max-width: 100%; min-width: 0; padding: 0; border: 0 !important;
        background: transparent !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
        font-size: .86rem; color: #3a4757; text-align: left !important; overflow-wrap: anywhere; }
  .tabela table:not(.sem-cartoes) td::before { content: attr(data-label); display: block; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #8794a5; margin-bottom: .05rem; }
  .tabela table:not(.sem-cartoes) td[data-label=""]::before, .tabela table:not(.sem-cartoes) td:not([data-label])::before { display: none; }
  /* ordem fixa em todos os cartões: 1) caixa, data/nome e valor  2) fornecedor/nome  3) campos normais  4) campos curtos  9) ações */
  .tabela table:not(.sem-cartoes) td.m-curto { grid-column: span 3; order: 4; }
  .tabela table:not(.sem-cartoes) td.m-largo { grid-column: 1 / -1; order: 2; }
  .tabela table:not(.sem-cartoes) td[colspan] { grid-column: 1 / -1; }
  .tabela table:not(.sem-cartoes) td.m-valor { grid-column: span 6; order: 1; text-align: right !important; }
  .tabela table:not(.sem-cartoes) td.td-principal { grid-column: span 6; order: 1; }
  .tabela table:not(.sem-cartoes) td.td-principal.m-largo { grid-column: 1 / -1; }
  .tabela table:not(.sem-cartoes) td.m-caixa { grid-column: span 2; order: 0; }
  .tabela table:not(.sem-cartoes) td.td-principal.apos-caixa { grid-column: span 4; white-space: nowrap !important; }
  .tabela table:not(.sem-cartoes) td.m-acoes { grid-column: 1 / -1; order: 9; padding-top: .35rem; border-top: 1px dashed #d3dce8 !important; }
  .tabela table:not(.sem-cartoes) td.m-acoes::before, .tabela table:not(.sem-cartoes) td.td-principal::before { display: none; }
  .tabela table:not(.sem-cartoes) td .estado { white-space: nowrap; font-size: .74rem; padding: .1rem .4rem; }
  /* dados importantes: mais escuros, a negrito e maiores; o resto fica mais discreto */
  .tabela table:not(.sem-cartoes) td.td-principal { font-weight: 600; color: #1b2634; }
  .tabela table:not(.sem-cartoes) td.m-enf { color: #0a1424; font-weight: 700; font-size: 1.02rem; }
  .tabela table:not(.sem-cartoes) td.m-valor { color: #0a1424; font-weight: 800; font-size: 1.15rem; }
  .tabela table:not(.sem-cartoes) td.m-enf a { color: #0a3a7a; }
  .tabela table:not(.sem-cartoes) tbody tr:nth-child(odd) { background: #ffffff !important; }
  .tabela table:not(.sem-cartoes) tbody tr:nth-child(even) { background: #e9f0fa !important; border-color: #d3dfef; }
  .tabela table:not(.sem-cartoes) td.td-vazio { visibility: hidden; }  /* mantém o lugar do campo vazio */
  .tabela table:not(.sem-cartoes) td.td-fim { display: none; }       /* …exceto no fim da linha */
  .tabela table:not(.sem-cartoes) td progress { width: 100%; }
}
/* Aprovar: pesquisa e filtros */
.ap-filtros { margin: 0 0 .7rem; background: var(--cartao); border: 1px solid var(--borda); border-radius: .8rem; padding: .35rem .8rem; }
.ap-filtros summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .2rem 0; }
.ap-filtros label { font-size: .85rem; font-weight: 600; margin-top: .4rem; }
.ap-filtros input, .ap-filtros select { margin: .2rem 0 .3rem; }
.ap-datas { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ap-filtros-acoes { display: flex; gap: .6rem; margin: .3rem 0 .4rem; }
.ap-filtros-acoes button, .ap-filtros-acoes a { margin: 0; width: auto; }
.ap-filtros { overflow: hidden; }
.ap-filtros input, .ap-filtros select { width: 100%; max-width: 100%; box-sizing: border-box; }
.ap-datas > label { min-width: 0; }
/* Aprovar: seleção para aprovação em lote (administrador) */
.ap-item { display: flex; align-items: flex-start; gap: .4rem; }
.ap-item .aprov-cartao { flex: 1; min-width: 0; }
.ap-item .ap-sel { margin: .9rem 0 0; flex: none; }
.ap-lote { margin-top: .8rem; padding-top: .6rem; border-top: 1px solid var(--borda); display: grid; gap: .4rem; }
.ap-lote input[name=comentario] { margin: 0; }
.ap-lote button { margin: 0; width: 100%; }
.ap-modo { display: flex; gap: .3rem; margin: 0 0 .5rem; }
.ap-modo a { padding: .2rem .6rem; border-radius: 1rem; border: 1px solid var(--borda); text-decoration: none; color: var(--suave); }
.ap-modo a.ativa { background: var(--verde-claro); color: #145c34; border-color: #c4e8d2; font-weight: 700; }
/* Documento no telemóvel: o PDF em iframe funciona mal; abre-se o visualizador (página inteira, com zoom e deslocamento) */
.ver-movel { display: none; margin: .5rem 0; }
@media (max-width: 899px) {
  .ver-movel { display: block; text-align: center; }
  iframe[src$="/pdf"] { display: none; }
}
.aprov-admin { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .8rem; }
.aprov-admin form { margin: 0; }
.aprov-admin button { margin: 0; width: auto; font-size: .85rem; padding: .35rem .8rem; }
.forn-lista { max-height: 14rem; overflow-y: auto; border: 1px solid var(--borda); border-radius: .6rem; padding: .4rem .7rem; margin: .4rem 0 .6rem; background: var(--cartao); }
.forn-item { display: block; margin: .15rem 0; font-size: .92rem; }
.forn-item[hidden] { display: none; }
.fontes-nomes { border: 1px solid var(--borda); border-radius: .6rem; padding: .4rem .8rem; margin: .5rem 0; }
.fontes-nomes label { margin: .15rem 0; font-size: .92rem; }
