/* ============================================================================================
   Visualizador de PDF em modal (Protec.Documentos.Ui) — usado pela CASCA e pelos MÓDULOS.

   ⚠️ PONTE ENTRE OS QUATRO SISTEMAS DE TOKEN DO PROJETO.
   Não existe denominador comum de variável de tema aqui: `.prot-app`/`.cat-app` têm `--surface`,
   `--text`, `--accent` próprios; o Orquestrador e o Cadastros são alias sobre `--mud-palette-*` e
   NÃO têm `--surface`. Como este componente roda nos dois lados, cada cor é declarada UMA vez em
   `.pdfv`, com cascata de fallback: token do módulo → token do MudBlazor → literal. Assim o modal
   acompanha o tema onde houver tema, e ainda assim nunca renderiza sem cor.

   Prefixo `pdfv-` em tudo, de propósito: o componente é injetado dentro de telas que já têm CSS
   próprio (.pm-*, .cat-*, .cad-*) e não pode colidir com nenhuma delas.
   ============================================================================================ */

.pdfv-overlay {
    position: fixed;
    inset: 0;
    /* Escurecimento fixo (não tokenizado): o overlay cobre a tela inteira e precisa funcionar
       igual nos dois temas — o mesmo raciocínio do .cat-marquee e da máscara de carregamento. */
    background: rgba(16, 24, 40, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* Acima do AppBar do MudBlazor (1100) e dos modais de módulo (~1500), abaixo de nada. */
    z-index: 1600;
}

.pdfv {
    /* --- a ponte de tema (ver o cabeçalho) --- */
    --pdfv-surface: var(--surface, var(--mud-palette-surface, #ffffff));
    --pdfv-surface-2: var(--surface-2, var(--mud-palette-background-gray, #f5f7fb));
    --pdfv-text: var(--text, var(--mud-palette-text-primary, #1f2430));
    --pdfv-text-2: var(--text-2, var(--mud-palette-text-secondary, #616a7d));
    --pdfv-border: var(--border, var(--mud-palette-lines-default, rgba(0, 0, 0, .12)));
    --pdfv-accent: var(--accent, var(--mud-palette-primary, #2f6feb));
    --pdfv-ok: var(--ok, var(--mud-palette-success, #2e7d32));
    --pdfv-warn: var(--warn, var(--mud-palette-warning, #b26a00));
    --pdfv-bad: var(--bad, var(--mud-palette-error, #c62828));

    display: flex;
    flex-direction: column;
    width: 94%;
    /* Altura FIXA, não max-height: senão o modal cresce e encolhe ao abrir o painel de assinaturas
       ou ao trocar o PDF pelo iframe do assinador. Mesma lição do .modal.up do Catalogador. */
    height: 92%;
    max-width: 1600px;
    background: var(--pdfv-surface);
    color: var(--pdfv-text);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .32);
}

/* ---------------------------------------------------------------- cabeçalho */
.pdfv__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pdfv-border);
    flex: none;
}

.pdfv__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--pdfv-accent) 14%, transparent);
    color: var(--pdfv-accent);
    flex: none;
}

.pdfv__titulo {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.pdfv__sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--pdfv-text-2);
}

.pdfv__x {
    border: 0;
    background: transparent;
    color: var(--pdfv-text-2);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    flex: none;
}

.pdfv__x:hover { background: color-mix(in srgb, var(--pdfv-text) 8%, transparent); }

/* ---------------------------------------------------------------- corpo */
.pdfv__body {
    flex: 1;
    min-height: 0;          /* obrigatório: sem isto o filho com overflow estoura o flex */
    display: flex;
}

.pdfv__palco {
    flex: 1;
    min-width: 0;
    position: relative;
    /* Cinza escuro fixo atrás do papel — é o fundo do leitor, não superfície de tema (mesma
       escolha do .viewer-body do Processo Digital). */
    background: #0b0e14;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdfv__frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    display: block;
}

/* ---------------------------------------------------------------- painel de assinaturas */
/* Só entra no DOM quando há algo a mostrar — o painel não ocupa espaço à toa (requisito). */
.pdfv__lateral {
    width: 288px;
    flex: none;
    border-left: 1px solid var(--pdfv-border);
    background: var(--pdfv-surface);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pdfv__lateral-head {
    padding: 12px 14px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pdfv-text-2);
}

.pdfv-assin {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--pdfv-border);
}

.pdfv-assin__selo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: none;
}

.pdfv-assin__selo--ok {
    background: color-mix(in srgb, var(--pdfv-ok) 16%, transparent);
    color: var(--pdfv-ok);
}

.pdfv-assin__selo--pend {
    background: color-mix(in srgb, var(--pdfv-warn) 18%, transparent);
    color: var(--pdfv-warn);
}

.pdfv-assin__nome { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pdfv-assin__meta { font-size: 11.5px; color: var(--pdfv-text-2); line-height: 1.45; }
.pdfv-assin__cert { font-size: 11px; color: var(--pdfv-text-2); word-break: break-word; }

/* ---------------------------------------------------------------- rodapé */
.pdfv__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--pdfv-border);
    background: var(--pdfv-surface-2);
    flex: none;
}

/* O aviso de ação pendente — é o que impede confundir "visualizar" com "assinar". */
.pdfv__aviso {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--pdfv-text-2);
}

.pdfv__aviso--acao { color: var(--pdfv-warn); font-weight: 600; }
.pdfv__aviso--ok { color: var(--pdfv-ok); font-weight: 600; }

.pdfv-btn {
    border: 1px solid var(--pdfv-border);
    background: var(--pdfv-surface);
    color: var(--pdfv-text);
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

.pdfv-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--pdfv-text) 6%, transparent); }

.pdfv-btn--primario {
    background: var(--pdfv-accent);
    border-color: var(--pdfv-accent);
    color: #fff;
}

.pdfv-btn--primario:hover:not(:disabled) { filter: brightness(1.08); }

.pdfv-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- estados */
.pdfv__estado {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: var(--pdfv-surface);
    color: var(--pdfv-text);
}

.pdfv__estado-msg { font-size: 14px; font-weight: 600; }
.pdfv__estado-sub { font-size: 12.5px; color: var(--pdfv-text-2); max-width: 46ch; line-height: 1.5; }

.pdfv__spin {
    width: 34px;
    height: 34px;
    border: 3px solid color-mix(in srgb, var(--pdfv-text) 14%, transparent);
    border-top-color: var(--pdfv-accent);
    border-radius: 50%;
    animation: pdfv-gira .8s linear infinite;
}

@keyframes pdfv-gira { to { transform: rotate(360deg); } }

/* Respeita quem pediu menos movimento — o spinner vira um pulso discreto. */
@media (prefers-reduced-motion: reduce) {
    .pdfv__spin { animation: none; border-top-color: var(--pdfv-accent); opacity: .7; }
}

/* ---------------------------------------------------------------- solicitar assinaturas */
/* Sub-modal DENTRO do .pdfv (inset:0 sobre o card, não sobre a viewport): assim ele não some
   atrás do overlay principal e o documento continua visível por baixo. */
.pdfv-sol {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdfv-sol__card {
    width: min(460px, 100%);
    max-height: 100%;
    background: var(--pdfv-surface);
    color: var(--pdfv-text);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdfv-sol__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--pdfv-border);
    font-size: 14px;
}

.pdfv-sol__body { padding: 12px 14px; overflow-y: auto; flex: 1; min-height: 0; }

.pdfv-sol__foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 11px 14px;
    border-top: 1px solid var(--pdfv-border);
    background: var(--pdfv-surface-2);
}

.pdfv-sol__item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
}

.pdfv-sol__item:hover { background: color-mix(in srgb, var(--pdfv-text) 6%, transparent); }

/* Quem já assinou aparece, mas desabilitado — some da lista seria pior: o usuário procuraria a
   pessoa e não a acharia, sem saber por quê. */
.pdfv-sol__item.is-off { opacity: .55; cursor: not-allowed; }

.pdfv-sol__item span { display: flex; flex-direction: column; gap: 1px; }

/* ---------------------------------------------------------------- .pdfv precisa ser âncora
   do .pdfv-sol (position:absolute acima). */
.pdfv { position: relative; }

/* ---------------------------------------------------------------- config de signatários */
/* Fica DENTRO da tela de Configurações de cada módulo, então repete a mesma cascata de fallback do
   .pdfv — os dois módulos e a casca não compartilham tokens de tema (ver o cabeçalho do arquivo). */
.pdfvcfg {
    --pdfv-surface: var(--surface, var(--mud-palette-surface, #ffffff));
    --pdfv-surface-2: var(--surface-2, var(--mud-palette-background-gray, #f5f7fb));
    --pdfv-text: var(--text, var(--mud-palette-text-primary, #1f2430));
    --pdfv-text-2: var(--text-2, var(--mud-palette-text-secondary, #616a7d));
    --pdfv-border: var(--border, var(--mud-palette-lines-default, rgba(0, 0, 0, .12)));
    --pdfv-accent: var(--accent, var(--mud-palette-primary, #2f6feb));
    --pdfv-bad: var(--bad, var(--mud-palette-error, #c62828));
    color: var(--pdfv-text);
}

/* ⚠️ O CARD é o que conserta o defeito visual: sem uma superfície PRÓPRIA a tabela herdava o fundo
   da página e as linhas sumiam — a zebra sozinha (uma lâmina de 3,5% do texto) não é suficiente
   quando não há contraste com o que está atrás. Fundo explícito + borda + cantos. */
.pdfvcfg__card {
    background: var(--pdfv-surface);
    border: 1px solid var(--pdfv-border);
    border-radius: 12px;
    overflow: hidden;   /* segura os cantos arredondados sobre a 1ª/última linha da tabela */
}

/* Cabeçalho do card: título à esquerda, ação da LISTA à direita (acrescentar é ação do conjunto,
   não de uma linha — por isso não mora numa célula). */
.pdfvcfg__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--pdfv-surface-2);
    border-bottom: 1px solid var(--pdfv-border);
}

.pdfvcfg__bar-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdfvcfg__bar-txt b { font-size: 14px; }
.pdfvcfg__bar-txt span { font-size: 12.5px; color: var(--pdfv-text-2); line-height: 1.45; }

.pdfvcfg__acoes { display: flex; gap: 8px; align-items: center; flex: none; }
.pdfvcfg__sel { min-width: 220px; }

.pdfvcfg__hint { font-size: 12.5px; color: var(--pdfv-text-2); line-height: 1.5; margin-top: 10px; }

.pdfvcfg__vazio {
    padding: 22px 14px;
    font-size: 13px;
    color: var(--pdfv-text-2);
    line-height: 1.55;
    text-align: center;
}

/* ---- a tabela ---- */
.pdfvcfg__tab { width: 100%; border-collapse: collapse; font-size: 13px; }

.pdfvcfg__tab th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pdfv-text-2);
    padding: 9px 14px;
    border-bottom: 1px solid var(--pdfv-border);
    white-space: nowrap;
}

.pdfvcfg__tab td { padding: 8px 14px; border-bottom: 1px solid var(--pdfv-border); vertical-align: middle; }
.pdfvcfg__tab tbody tr:last-child td { border-bottom: 0; }
.pdfvcfg__tab .ctr { text-align: center; }

/* Zebra agnóstica de tema — a convenção de toda grade do projeto (ver CLAUDE.md). Pintada no `td`
   porque é onde as bordas desta tabela vivem: fundo em `td` sempre cobre fundo em `tr`. */
.pdfvcfg__tab tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--pdfv-text) 3.5%, transparent);
}

/* Hover DEPOIS da zebra, mesma especificidade — senão a zebra o apaga nas linhas pares. */
.pdfvcfg__tab tbody tr:hover td {
    background: color-mix(in srgb, var(--pdfv-accent) 7%, transparent);
}

.pdfvcfg__nome { font-weight: 600; }

/* Desligado continua visível (some da lista seria pior: a pessoa procuraria e não acharia). */
.pdfvcfg__tab tbody tr.is-off .pdfvcfg__nome { color: var(--pdfv-text-2); font-weight: 500; }

.pdfvcfg__tag {
    margin-left: 8px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pdfv-text) 9%, transparent);
    color: var(--pdfv-text-2);
}

.pdfvcfg__ro { color: var(--pdfv-text-2); }

.pdfvcfg__in {
    width: 100%;
    padding: 5px 9px;
    border: 1px solid var(--pdfv-border);
    border-radius: 7px;
    background: var(--pdfv-surface);
    color: var(--pdfv-text);
    font: inherit;
}

.pdfvcfg__in:disabled { opacity: .6; }

.pdfvcfg__x {
    border: 0;
    background: transparent;
    color: var(--pdfv-text-2);
    cursor: pointer;
    padding: 5px;
    border-radius: 7px;
    display: inline-flex;
}

.pdfvcfg__x:hover:not(:disabled) {
    background: color-mix(in srgb, var(--pdfv-bad) 12%, transparent);
    color: var(--pdfv-bad);
}

.pdfvcfg__x:disabled { opacity: .4; cursor: not-allowed; }

/* ---- confirmação de remoção ---- */
.pdfvcfg__conf {
    width: min(460px, 94vw);
    background: var(--surface, var(--mud-palette-surface, #fff));
    color: var(--text, var(--mud-palette-text-primary, #1f2430));
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    overflow: hidden;
}

.pdfvcfg__conf-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border, var(--mud-palette-lines-default, rgba(0, 0, 0, .12)));
    font-size: 14px;
}

.pdfvcfg__conf-body { padding: 14px 16px; font-size: 13px; line-height: 1.55; }
.pdfvcfg__conf-body p { margin: 0 0 10px; }

.pdfvcfg__conf-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border, var(--mud-palette-lines-default, rgba(0, 0, 0, .12)));
    background: var(--surface-2, var(--mud-palette-background-gray, #f5f7fb));
}

/* O aviso de pendência: âmbar, porque é consequência a ponderar — não erro nem sucesso. */
.pdfvcfg__alerta {
    background: rgba(217, 119, 6, .12);
    border-left: 3px solid #B45309;
    color: inherit;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 12.5px;
    line-height: 1.55;
}

.pdfv-btn--perigo {
    background: var(--bad, var(--mud-palette-error, #c62828));
    border-color: var(--bad, var(--mud-palette-error, #c62828));
    color: #fff;
}

.pdfv-btn--perigo:hover:not(:disabled) { filter: brightness(1.08); }

/* Telas estreitas: a barra do card empilha e o combo ocupa a largura. */
@media (max-width: 720px) {
    .pdfvcfg__acoes { width: 100%; }
    .pdfvcfg__sel { flex: 1; min-width: 0; }
}

/* ---------------------------------------------------------------- telas estreitas */
@media (max-width: 900px) {
    .pdfv-overlay { padding: 0; }

    .pdfv {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    /* O painel desce pra baixo do PDF em vez de espremer o documento. */
    .pdfv__body { flex-direction: column; }

    .pdfv__lateral {
        width: auto;
        border-left: 0;
        border-top: 1px solid var(--pdfv-border);
        max-height: 38%;
    }
}

/* ============================================================================
   Modal de solicitação de assinatura (SolicitarAssinaturaModal.razor).
   Tokens próprios com fallback: a RCL é usada pela casca E por dois módulos, que têm sistemas de
   token diferentes — sem o fallback o var() indefinido falha em silêncio e o modal sai sem cor.
   ============================================================================ */
.sol-overlay { position: fixed; inset: 0; z-index: 1700; display: flex; align-items: center;
               justify-content: center; background: rgba(15,18,26,.55); padding: 16px; }
.sol { width: 94%; height: 92%; max-width: 1600px; display: flex; flex-direction: column;
       background: var(--surface, #fff); color: var(--text, #1a1d23);
       border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.28); overflow: hidden; }

.sol__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
             padding: 14px 16px; border-bottom: 1px solid var(--border, #e3e6ec); }
.sol__sub { font-size: .8rem; color: var(--text-2, #6b7280); margin-top: 2px; }
.sol__x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer;
          color: var(--text-2, #6b7280); padding: 0 4px; }

/* flex:1 + min-height:0 junto da altura fixa: sem isso o corpo cresce e empurra o rodapé pra fora. */
.sol__body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }

.sol__rot { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
            color: var(--text-2, #6b7280); margin-bottom: 8px; }
.sol__sep { height: 1px; background: var(--border, #e3e6ec); margin: 16px 0; }
.sol__vazio { font-size: .85rem; line-height: 1.5; color: var(--text-2, #6b7280);
              background: color-mix(in srgb, currentColor 5%, transparent);
              border-radius: 8px; padding: 10px 12px; }
.sol__dica { font-size: .78rem; color: var(--text-2, #6b7280); margin-top: 8px; }

.sol__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sol-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
            padding: 10px 8px; cursor: pointer; font: inherit; text-align: center;
            background: var(--surface, #fff); color: inherit;
            border: 2px solid var(--border, #e3e6ec); border-radius: 10px; }
.sol-card:hover:not(:disabled) { border-color: var(--text-2, #9aa1ad); }
.sol-card.on { border-color: var(--primary, #2f6fed);
               box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2f6fed) 22%, transparent); }
.sol-card.off { opacity: .5; cursor: default; }
.sol-card__thumb { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
                   border-radius: 6px; overflow: hidden;
                   background: color-mix(in srgb, currentColor 8%, transparent); }
.sol-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sol-card__ext { font-size: .68rem; font-weight: 700; color: var(--text-2, #6b7280); }
.sol-card__nome { font-size: .76rem; line-height: 1.25; word-break: break-word;
                  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sol-card__nota { font-size: .68rem; color: var(--text-2, #6b7280); }
.sol-card__sel { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%;
                 background: var(--primary, #2f6fed); color: #fff; font-size: .7rem; line-height: 18px; }

.sol__busca { width: 100%; padding: 8px 10px; margin-bottom: 8px; font: inherit; font-size: .86rem;
              background: var(--surface, #fff); color: inherit;
              border: 1px solid var(--border, #e3e6ec); border-radius: 8px; }
.sol__pessoas { display: flex; flex-direction: column; gap: 4px; }
.sol-pes { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer;
           border: 1px solid transparent; border-radius: 8px; }
.sol-pes:hover { background: color-mix(in srgb, currentColor 5%, transparent); }
.sol-pes.on { background: color-mix(in srgb, var(--primary, #2f6fed) 10%, transparent);
              border-color: color-mix(in srgb, var(--primary, #2f6fed) 35%, transparent); }
.sol-pes__ini { width: 30px; height: 30px; flex: none; border-radius: 50%; font-size: .72rem;
                font-weight: 700; display: flex; align-items: center; justify-content: center;
                background: color-mix(in srgb, currentColor 12%, transparent); }
.sol-pes__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sol-pes__nome { font-size: .86rem; }
.sol-pes__papel { font-size: .72rem; color: var(--text-2, #6b7280); }
.sol-pes__obr { display: flex; align-items: center; gap: 4px; font-size: .72rem;
                color: var(--text-2, #6b7280); cursor: pointer; }
/* Os DOIS selos da linha da pessoa. Eles dizem coisas diferentes e por isso têm cores
   diferentes: "já convocada" é um FATO do banco (tem exigência aberta neste alvo) e "sugerida"
   é só a marcação automática dos signatários configurados, que a pessoa pode desfazer.
   Antes os dois estados eram o mesmo ✓ azul — era isso que impedia saber quem era quem. */
.sol-pes__ja, .sol-pes__sug { flex: none; font-size: .68rem; font-weight: 600; line-height: 1;
                padding: 3px 7px; border-radius: 999px; white-space: nowrap; cursor: help; }
.sol-pes__ja { background: color-mix(in srgb, var(--warn, #b7791f) 16%, transparent);
               color: var(--warn, #b7791f); }
.sol-pes__sug { background: color-mix(in srgb, var(--text, #111827) 8%, transparent);
                color: var(--text-2, #6b7280); }
.sol-pes.ja { border-color: color-mix(in srgb, var(--warn, #b7791f) 35%, transparent); }

.sol-pes__sel { width: 16px; text-align: center; color: var(--primary, #2f6fed); font-weight: 700; }

.sol__conta--falta { color: var(--warn, #b7791f); }

.sol__erro { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: .84rem;
             background: var(--danger-soft, #fdecec); color: var(--danger, #c0392b); }

.sol__foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
             border-top: 1px solid var(--border, #e3e6ec); }
.sol__conta { flex: 1; font-size: .78rem; color: var(--text-2, #6b7280); }
.sol-btn { padding: 8px 14px; font: inherit; font-size: .86rem; cursor: pointer;
           background: var(--surface, #fff); color: inherit;
           border: 1px solid var(--border, #e3e6ec); border-radius: 8px; }
.sol-btn--primario { background: var(--primary, #2f6fed); border-color: var(--primary, #2f6fed); color: #fff; }
.sol-btn:disabled { opacity: .55; cursor: default; }

@media (max-width: 560px) {
    .sol { height: 100vh; border-radius: 0; }
    .sol__cards { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
