*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#eef1f4;color:#20252b}.container{width:min(1180px,94%);margin:auto}.topo{background:#17212b;color:#fff;padding:22px 0}.topo h1{margin:0;font-size:24px}.topo p{margin:6px 0 0;color:#cbd3da}.menu{background:#263646}.menu-links{display:flex;gap:4px;flex-wrap:wrap}.menu a{color:#fff;text-decoration:none;padding:14px 18px;display:block}.menu a:hover{background:#34495e}main{padding:25px 0 45px}.card{background:#fff;border:1px solid #dce1e5;border-radius:8px;padding:22px;margin-bottom:20px;box-shadow:0 2px 7px rgba(0,0,0,.05)}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.numero{font-size:30px;font-weight:bold;margin-top:8px}.btn{display:inline-block;background:#263646;color:#fff;border:0;border-radius:5px;padding:10px 15px;text-decoration:none;cursor:pointer}.btn-sec{background:#66717c}.btn-danger{background:#a33}.acoes{display:flex;gap:7px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.campo{display:flex;flex-direction:column;gap:6px}.campo.full{grid-column:1/-1}label{font-weight:bold}input,select,textarea{width:100%;padding:10px;border:1px solid #bcc5cd;border-radius:5px;background:#fff;font:inherit}textarea{min-height:90px;resize:vertical}.tabela-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:10px;border-bottom:1px solid #e0e4e7;text-align:left;vertical-align:top}th{background:#e9edf0}.msg{padding:12px;border-radius:5px;margin-bottom:15px;background:#dff0df}.erro{background:#f5dddd}.filtros{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end}.prazo{white-space:nowrap}.muted{color:#68727c}.rodape{padding:18px 0;background:#17212b;color:#cbd3da}@media(max-width:760px){.grid,.filtros{grid-template-columns:1fr}.campo.full{grid-column:auto}.topo h1{font-size:19px}}@media print{.menu,.rodape,.nao-imprimir,.btn{display:none!important}body{background:#fff}.card{box-shadow:none;border:0;padding:0}.container{width:100%}}
.rodape-desenvolvedor{
    margin:24px 0 8px;
    padding-top:10px;
    border-top:1px solid #d9dee3;
    text-align:center;
    font-size:11px;
    color:#737b83;
}
@media print{
    .rodape-desenvolvedor{
        display:block!important;
        margin-top:18px;
        font-size:9pt;
        color:#555;
        border-top:1px solid #bbb;
    }
}

.link-processo{font-weight:bold;color:#1f5f99;text-decoration:underline;text-underline-offset:2px}.link-processo:hover{color:#123f68}

.campo-com-botao{display:flex;gap:8px;align-items:stretch}
.campo-com-botao input{flex:1}
.btn-copiar{white-space:nowrap;background:#4f6375}
.modal-aviso{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;align-items:center;justify-content:center;padding:20px}
.modal-aviso.aberto{display:flex}
.modal-aviso-caixa{width:min(430px,95%);background:#fff;border-radius:9px;padding:24px;text-align:center;box-shadow:0 12px 35px rgba(0,0,0,.25)}
.modal-aviso-titulo{font-size:20px;font-weight:bold;margin-bottom:10px}
.modal-aviso-caixa p{margin:0 0 20px;line-height:1.5}
@media(max-width:760px){.campo-com-botao{flex-direction:column}.btn-copiar{width:100%}}

.tribunal-detectado{font-size:12px;margin-top:5px;min-height:16px}.btn-consulta{background:#315b45;white-space:nowrap}.btn-pje{background:#465f78;white-space:nowrap}.link-consulta-relatorio{display:inline-block;margin-top:5px;font-size:12px;font-weight:bold}

.btn-mov{background:#66567a;white-space:nowrap}
.modal-mov{display:none;position:fixed;inset:0;z-index:10000;background:rgba(20,25,30,.42);backdrop-filter:blur(2px);align-items:center;justify-content:center;padding:3vh 3vw}
.modal-mov.aberto{display:flex}
.modal-mov-caixa{width:min(1050px,96vw);max-height:90vh;overflow:hidden;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.55);border-radius:16px;box-shadow:0 18px 55px rgba(0,0,0,.28);display:flex;flex-direction:column}
.modal-mov-topo{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid rgba(120,130,140,.28);background:rgba(238,242,245,.76)}
.modal-fechar{border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer}
.mov-fonte{padding:9px 20px;font-size:12px;background:rgba(244,247,249,.8);border-bottom:1px solid rgba(120,130,140,.18)}
.mov-conteudo{padding:14px 20px 22px;overflow:auto}
.mov-item{display:grid;grid-template-columns:110px 1fr;gap:15px;padding:12px 4px;border-bottom:1px solid rgba(150,155,160,.22)}
.mov-data{font-weight:bold;white-space:nowrap}.mov-desc{line-height:1.45}.mov-carregando{text-align:center;padding:35px}.mov-erro{padding:16px;background:#f5dddd;border-radius:7px}.mov-atualizacao{font-size:11px;color:#6d747a;padding-top:15px}
@media(max-width:700px){.mov-item{grid-template-columns:1fr;gap:4px}.modal-mov{padding:1vh 2vw}.modal-mov-caixa{max-height:96vh}}

/* V11 - correção modal movimentações */
#modalMovimentacoes.aberto{display:flex!important}

.mov-meta{padding:12px 14px;margin-bottom:10px;background:rgba(238,242,245,.8);border:1px solid rgba(120,130,140,.18);border-radius:8px;line-height:1.6}

/* V13 - cartões detalhados das movimentações */
.mov-card{border-bottom:1px solid rgba(130,140,150,.22);padding:2px 0}
.mov-resumo{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 5px}
.mov-titulo{font-weight:600;line-height:1.4}
.mov-ver-detalhes{border:1px solid rgba(80,95,110,.28);background:rgba(245,247,249,.9);border-radius:7px;padding:7px 10px;cursor:pointer;white-space:nowrap}
.mov-detalhes{margin:0 5px 13px 134px;padding:12px 14px;background:rgba(242,245,247,.78);border:1px solid rgba(130,140,150,.18);border-radius:8px;font-size:13px;line-height:1.55}
.mov-subtitulo{font-weight:bold;margin-top:9px;margin-bottom:4px}
.mov-complemento,.mov-detalhe-linha{padding:2px 0}
.mov-codigo{font-size:11px;color:#687078}
@media(max-width:700px){
 .mov-resumo{grid-template-columns:1fr;gap:6px}
 .mov-detalhes{margin:0 2px 12px}
 .mov-ver-detalhes{justify-self:start}
}

/* V14 - acesso autenticado aos autos */
.btn-autos{background:#704b35;white-space:nowrap}
.link-autos-relatorio{display:inline-block;margin:5px 0 0 8px;font-size:12px;font-weight:bold}

/* V15 - gerenciamento do link permanente dos autos */
.btn-linkautos{background:#59636b;white-space:nowrap}
.ajuda-link-autos{font-size:11px;line-height:1.4;margin-top:5px;color:#666;padding:7px 9px;background:rgba(240,243,245,.75);border-radius:6px}
#link-autos:target{outline:2px solid rgba(80,100,120,.35);outline-offset:2px}

/* V16 - validação visual do link permanente */
#link-autos:valid{border-left-width:4px}
.ajuda-link-autos{max-width:900px}

/* V17 - edição explícita do link dos autos */
.edicao-link-banner{margin:8px 0 10px;padding:10px 12px;border:1px solid rgba(100,110,120,.28);border-radius:8px;background:rgba(238,242,245,.92)}
.edicao-link-banner strong{display:block;margin-bottom:3px}
.edicao-link-banner span{font-size:12px}
body:has(#link-autos:focus) #link-autos{box-shadow:0 0 0 3px rgba(80,100,120,.16)}

/* V20 - indicador de novas movimentações */
.col-status-mov{text-align:center;vertical-align:middle;min-width:48px}
.status-mov{display:inline-block;width:15px;height:15px;border-radius:50%;border:2px solid rgba(0,0,0,.12);box-sizing:border-box}
.status-consultando{background:#b8bec4;animation:pulsoMov 1s infinite alternate}
.status-verde{background:#2e9d50}
.status-vermelho{background:#d93636;box-shadow:0 0 0 3px rgba(217,54,54,.12)}
.status-indisponivel{background:#a8adb2}
@keyframes pulsoMov{from{opacity:.4}to{opacity:1}}

/* V21 - data/hora da última movimentação abaixo do indicador */
.col-status-mov{min-width:105px}
.data-ultima-mov{margin-top:5px;font-size:10px;line-height:1.2;white-space:nowrap;color:#5f666d;font-variant-numeric:tabular-nums}

/* V26 - ordenação da listagem por clique no cabeçalho */
th.ordenavel{cursor:pointer;user-select:none;white-space:nowrap}
th.ordenavel:hover{text-decoration:underline}
.seta-ordem{font-size:11px;margin-left:4px;opacity:.75}

.status-mov{cursor:pointer;transition:transform .12s ease}.status-mov:hover{transform:scale(1.18)}

.data-mov-manual{width:150px;max-width:100%;font-size:11px;padding:4px 5px;margin-top:4px}

/* V41 - ações em linha própria abaixo de cada processo */
.linha-acoes-processo td{
    padding-top:7px;
    padding-bottom:10px;
    border-top:0;
}
.acoes-processo{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
}
.acoes-processo-titulo{
    font-size:12px;
    font-weight:700;
    margin-right:3px;
}
.linha-acoes-processo{
    border-bottom:2px solid #e5e7eb;
}
@media (max-width: 700px){
    .acoes-processo{
        gap:6px;
    }
    .acoes-processo .btn{
        flex:1 1 auto;
        text-align:center;
    }
    .acoes-processo-titulo{
        flex-basis:100%;
    }
}

/* V42 - alinhamento dos botões de cada processo à direita */
.acoes-processo{
    justify-content:flex-end;
}
.acoes-processo-titulo{
    margin-left:auto;
}
@media (max-width: 700px){
    .acoes-processo{
        justify-content:flex-end;
    }
    .acoes-processo-titulo{
        margin-left:0;
        text-align:right;
    }
}

/* V43 - correção definitiva do alinhamento da linha de ações */
table .linha-acoes-processo > td.celula-acoes-processo{
    text-align:right !important;
}
table .linha-acoes-processo .acoes-processo{
    width:100% !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:7px !important;
    text-align:right !important;
}
table .linha-acoes-processo .acoes-processo-titulo{
    margin-left:0 !important;
}
@media (max-width:700px){
    table .linha-acoes-processo .acoes-processo{
        justify-content:flex-end !important;
    }
    table .linha-acoes-processo .acoes-processo .btn{
        flex:0 1 auto !important;
        width:auto !important;
    }
    table .linha-acoes-processo .acoes-processo-titulo{
        flex-basis:auto !important;
        text-align:right !important;
    }
}

/* V44 - refinamento visual da listagem de processos */
.tabela-wrap{
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow-x:auto;
    background:#fff;
    box-shadow:0 3px 14px rgba(15,23,42,.06);
}
.tabela-wrap table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}
.tabela-wrap th{
    background:#f6f8fb;
    font-size:12px;
    font-weight:700;
    letter-spacing:.02em;
    color:#475569;
    padding:11px 10px;
    border-bottom:1px solid #dfe5ec;
    white-space:nowrap;
    vertical-align:middle;
}
.tabela-wrap th:first-child{border-top-left-radius:11px}
.tabela-wrap th:last-child{border-top-right-radius:11px}
.tabela-wrap .linha-processo > td{
    padding:13px 10px;
    vertical-align:top;
    border-bottom:0;
    background:#fff;
    line-height:1.38;
}
.tabela-wrap .linha-processo:hover > td{
    background:#fafcff;
}
.tabela-wrap .linha-processo td:nth-child(2){
    font-weight:700;
    white-space:nowrap;
}
.tabela-wrap .linha-processo td:nth-child(3),
.tabela-wrap .linha-processo td:nth-child(4),
.tabela-wrap .linha-processo td:nth-child(5){
    color:#334155;
}
.tabela-wrap .linha-processo td:nth-child(6),
.tabela-wrap .linha-processo td:nth-child(8){
    min-width:170px;
}
.tabela-wrap .linha-processo td:nth-child(7){
    white-space:nowrap;
    font-weight:600;
}
table .linha-acoes-processo > td.celula-acoes-processo{
    padding:8px 10px 12px !important;
    background:#f8fafc;
    border-top:1px dashed #d9e0e8 !important;
    border-bottom:2px solid #d7dee7 !important;
}
table .linha-acoes-processo .acoes-processo{
    min-height:34px;
}
.acoes-processo-identificacao{
    margin-right:auto;
    color:#64748b;
    font-size:11px;
    font-weight:600;
}
.acoes-processo-titulo{
    color:#64748b;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.acoes-processo .btn{
    border-radius:7px;
    padding:6px 9px;
    font-size:12px;
    line-height:1.2;
    box-shadow:0 1px 2px rgba(15,23,42,.06);
    transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.acoes-processo .btn:hover{
    transform:translateY(-1px);
    box-shadow:0 3px 7px rgba(15,23,42,.11);
}
.col-status-mov{
    text-align:center;
    min-width:118px;
}
.data-ultima-mov{
    margin-top:5px;
    font-size:11px;
    color:#64748b;
}
.status-mov{
    box-shadow:0 0 0 3px rgba(148,163,184,.13);
}
@media (max-width:900px){
    .tabela-wrap .linha-processo > td{
        padding:10px 8px;
        font-size:12px;
    }
    .tabela-wrap th{
        padding:9px 8px;
        font-size:11px;
    }
}
@media (max-width:700px){
    table .linha-acoes-processo .acoes-processo{
        justify-content:flex-end !important;
    }
    .acoes-processo-identificacao{
        flex-basis:100%;
        margin-right:0;
        text-align:right;
        padding-bottom:2px;
    }
    .acoes-processo-titulo{
        display:none;
    }
}

/* V45 - impressão do relatório sem dividir uma linha entre páginas */
@media print{
    /* O navegador deve manter cada registro do relatório inteiro na mesma folha. */
    #relatorio-processos tbody tr,
    #relatorio-processos tr.registro-relatorio{
        break-inside:avoid !important;
        page-break-inside:avoid !important;
        -webkit-column-break-inside:avoid !important;
    }

    #relatorio-processos td,
    #relatorio-processos th{
        break-inside:avoid !important;
        page-break-inside:avoid !important;
    }

    /* Repete o cabeçalho da tabela quando o relatório ocupa várias páginas. */
    #relatorio-processos thead{
        display:table-header-group;
    }

    #relatorio-processos tfoot{
        display:table-footer-group;
    }

    #relatorio-processos{
        page-break-collapse:separate;
        border-collapse:collapse;
    }
}

/* V46 - linha de ações sem botões cortados */
table .linha-acoes-processo > td.celula-acoes-processo{
    overflow:visible !important;
    white-space:normal !important;
}

table .linha-acoes-processo .acoes-processo{
    width:100% !important;
    max-width:100% !important;
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:7px !important;
    overflow:visible !important;
    white-space:normal !important;
    box-sizing:border-box !important;
}

table .linha-acoes-processo .acoes-processo .btn,
table .linha-acoes-processo .acoes-processo a.btn,
table .linha-acoes-processo .acoes-processo button.btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    margin:0 !important;
}

.tabela-wrap{
    overflow-x:auto !important;
    overflow-y:visible !important;
}

/* Em larguras menores, cada botão continua inteiro e muda de linha quando necessário. */
@media (max-width:900px){
    table .linha-acoes-processo .acoes-processo{
        gap:6px !important;
    }
    table .linha-acoes-processo .acoes-processo .btn,
    table .linha-acoes-processo .acoes-processo a.btn,
    table .linha-acoes-processo .acoes-processo button.btn{
        flex:0 0 auto !important;
        width:auto !important;
        white-space:nowrap !important;
    }
}

@media (max-width:520px){
    table .linha-acoes-processo .acoes-processo{
        justify-content:flex-end !important;
    }
    table .linha-acoes-processo .acoes-processo .btn,
    table .linha-acoes-processo .acoes-processo a.btn,
    table .linha-acoes-processo .acoes-processo button.btn{
        max-width:100% !important;
        padding-left:8px !important;
        padding-right:8px !important;
        font-size:11px !important;
    }
}

/* V47 - correção da última coluna cortada na listagem de processos */

/* A tabela pode ser maior que a área visível sem esconder a última coluna. */
.tabela-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:visible !important;
    box-sizing:border-box !important;
    padding-right:2px !important;
    -webkit-overflow-scrolling:touch;
}

.tabela-wrap table{
    width:max-content !important;
    min-width:100% !important;
    max-width:none !important;
    table-layout:auto !important;
    box-sizing:border-box !important;
}

/* Evita que a última coluna fique encostada/cortada na borda direita. */
.tabela-wrap th:last-child,
.tabela-wrap .linha-processo > td:last-child{
    padding-right:16px !important;
}

/* Situação atual: permite quebra de texto para não forçar largura excessiva. */
.tabela-wrap .linha-processo > td:nth-child(8){
    min-width:190px !important;
    max-width:320px !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
}

/* Mantém as demais colunas legíveis sem esmagar a última. */
.tabela-wrap .linha-processo > td,
.tabela-wrap th{
    box-sizing:border-box !important;
}

/* A linha de botões acompanha toda a largura real da tabela. */
table .linha-acoes-processo > td.celula-acoes-processo{
    width:auto !important;
    max-width:none !important;
}

/* Pequeno respiro depois da tabela para a barra horizontal não sobrepor conteúdo. */
.tabela-wrap{
    padding-bottom:4px !important;
}

/* V48 - reajuste completo para manter TODAS as colunas visíveis */
.tabela-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow-x:visible !important;
    overflow-y:visible !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
}

.tabela-wrap table{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    table-layout:fixed !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
}

/* Distribuição equilibrada das 8 colunas */
.tabela-wrap th:nth-child(1),
.tabela-wrap .linha-processo > td:nth-child(1){width:7% !important;}   /* Mov. */
.tabela-wrap th:nth-child(2),
.tabela-wrap .linha-processo > td:nth-child(2){width:15% !important;}  /* Processo */
.tabela-wrap th:nth-child(3),
.tabela-wrap .linha-processo > td:nth-child(3){width:13% !important;}  /* Cliente */
.tabela-wrap th:nth-child(4),
.tabela-wrap .linha-processo > td:nth-child(4){width:12% !important;}  /* Juízo */
.tabela-wrap th:nth-child(5),
.tabela-wrap .linha-processo > td:nth-child(5){width:10% !important;}  /* Origem */
.tabela-wrap th:nth-child(6),
.tabela-wrap .linha-processo > td:nth-child(6){width:15% !important;}  /* Próximo ato */
.tabela-wrap th:nth-child(7),
.tabela-wrap .linha-processo > td:nth-child(7){width:12% !important;}  /* Prazo */
.tabela-wrap th:nth-child(8),
.tabela-wrap .linha-processo > td:nth-child(8){width:16% !important;}  /* Situação */

/* Nenhuma célula pode forçar a tabela além da largura disponível. */
.tabela-wrap th,
.tabela-wrap .linha-processo > td{
    min-width:0 !important;
    max-width:none !important;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
    box-sizing:border-box !important;
    padding-left:7px !important;
    padding-right:7px !important;
}

/* Número do processo pode quebrar de forma controlada, evitando alargar a tabela. */
.tabela-wrap .linha-processo > td:nth-child(2){
    white-space:normal !important;
    overflow-wrap:anywhere !important;
}

/* Prazo continua legível, mas não força largura excessiva. */
.tabela-wrap .linha-processo > td:nth-child(7){
    white-space:normal !important;
}

/* Última coluna totalmente contida na área da tabela. */
.tabela-wrap th:last-child,
.tabela-wrap .linha-processo > td:last-child{
    padding-right:9px !important;
}

/* Linha de ações usa exatamente a largura das 8 colunas. */
table .linha-acoes-processo > td.celula-acoes-processo{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

/* Em telas menores, reduz tipografia/espaçamento antes de recorrer à rolagem. */
@media (max-width:1100px){
    .tabela-wrap th{
        font-size:10px !important;
        padding:8px 4px !important;
    }
    .tabela-wrap .linha-processo > td{
        font-size:11px !important;
        padding:9px 4px !important;
    }
}

/* No celular, 8 colunas simultâneas ficariam ilegíveis.
   Mantém todas disponíveis com rolagem horizontal, sem cortar nenhuma. */
@media (max-width:700px){
    .tabela-wrap{
        overflow-x:auto !important;
        -webkit-overflow-scrolling:touch;
    }
    .tabela-wrap table{
        width:900px !important;
        min-width:900px !important;
        max-width:none !important;
        table-layout:fixed !important;
    }
}

/* V49 - ajuste da fonte da coluna Processo */
.tabela-wrap .linha-processo > td:nth-child(2){
    font-size:11px !important;
    line-height:1.30 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
}

.tabela-wrap .linha-processo > td:nth-child(2) a,
.tabela-wrap .linha-processo > td:nth-child(2) strong{
    font-size:inherit !important;
    line-height:inherit !important;
}

/* Em telas menores, reduz discretamente mais para evitar sobreposição. */
@media (max-width:1100px){
    .tabela-wrap .linha-processo > td:nth-child(2){
        font-size:10px !important;
        line-height:1.28 !important;
    }
}

/* V50 - identificação do processo removida da linha de ações */
.acoes-processo-identificacao{
    display:none !important;
}

/* V52 - correção das colunas Processo e Tipo de ação no relatório */
#relatorio-processos{
    width:100% !important;
    table-layout:fixed !important;
}

#relatorio-processos th,
#relatorio-processos td{
    box-sizing:border-box !important;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:anywhere !important;
    word-wrap:break-word !important;
    word-break:normal !important;
    vertical-align:top !important;
}

/* Processo */
#relatorio-processos th:nth-child(1),
#relatorio-processos td:nth-child(1){
    width:14% !important;
    font-size:11px !important;
    line-height:1.30 !important;
}

/* Tipo de ação */
#relatorio-processos th:nth-child(2),
#relatorio-processos td:nth-child(2){
    width:13% !important;
    font-size:11px !important;
    line-height:1.30 !important;
}

/* Impede links e textos em negrito de ultrapassarem suas células. */
#relatorio-processos td:nth-child(1) a,
#relatorio-processos td:nth-child(1) strong,
#relatorio-processos td:nth-child(2) a,
#relatorio-processos td:nth-child(2) strong{
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    max-width:100% !important;
}

/* Distribuição das demais colunas para preservar espaço das duas primeiras. */
#relatorio-processos th:nth-child(3),
#relatorio-processos td:nth-child(3){width:11% !important;}
#relatorio-processos th:nth-child(4),
#relatorio-processos td:nth-child(4){width:13% !important;}
#relatorio-processos th:nth-child(5),
#relatorio-processos td:nth-child(5){width:13% !important;}
#relatorio-processos th:nth-child(6),
#relatorio-processos td:nth-child(6){width:11% !important;}
#relatorio-processos th:nth-child(7),
#relatorio-processos td:nth-child(7){width:13% !important;}
#relatorio-processos th:nth-child(8),
#relatorio-processos td:nth-child(8){width:12% !important;}

@media print{
    #relatorio-processos{
        width:100% !important;
        table-layout:fixed !important;
    }
    #relatorio-processos th,
    #relatorio-processos td{
        white-space:normal !important;
        overflow-wrap:anywhere !important;
        word-break:normal !important;
    }
    #relatorio-processos th:nth-child(1),
    #relatorio-processos td:nth-child(1),
    #relatorio-processos th:nth-child(2),
    #relatorio-processos td:nth-child(2){
        font-size:8.5pt !important;
        line-height:1.22 !important;
    }
}

/* V55 - filtros da listagem de processos */
.card-filtros-processos h2{
    margin-bottom:12px;
}
.filtros-processos{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;
    gap:12px;
    align-items:end;
}
.filtros-processos .campo{
    margin:0;
}
.acoes-filtros-processos{
    display:flex;
    gap:7px;
    align-items:center;
    justify-content:flex-end;
    padding-bottom:1px;
}
.acoes-filtros-processos .btn{
    white-space:nowrap;
}
@media(max-width:760px){
    .filtros-processos{
        grid-template-columns:1fr;
    }
    .acoes-filtros-processos{
        justify-content:stretch;
    }
    .acoes-filtros-processos .btn{
        flex:1 1 auto;
        text-align:center;
    }
}

/* V56 - retorno visual dos filtros ativos */
.resumo-filtro-processos{
    margin:-4px 0 12px;
    padding:8px 10px;
    border:1px solid #e1e7ee;
    border-radius:7px;
    background:#f8fafc;
    font-size:12px;
    color:#475569;
}

/* V57 - Agenda processual */
.agenda-cabecalho{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.agenda-cabecalho h2{margin-bottom:4px}
.agenda-toolbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:14px}
.agenda-nav,.agenda-modos{display:flex;gap:6px;flex-wrap:wrap}.agenda-modos{justify-content:flex-end}
.modo-agenda.ativo{background:#1f2937;color:#fff;border-color:#1f2937}
#agenda-periodo{text-align:center;text-transform:capitalize}
.agenda-semana-cab,.agenda-mes-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.agenda-semana-cab span{text-align:center;font-size:12px;font-weight:700;padding:8px 4px;color:#64748b}
.agenda-mes-grid{border-top:1px solid #e5e7eb;border-left:1px solid #e5e7eb}
.agenda-dia{min-height:120px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:6px;min-width:0;background:#fff;cursor:pointer}
.agenda-dia.fora{background:#f8fafc;color:#94a3b8}.agenda-dia.hoje{box-shadow:inset 0 0 0 2px #64748b}
.agenda-dia-num{font-size:12px;font-weight:700;margin-bottom:5px}
.agenda-eventos{display:flex;flex-direction:column;gap:4px}
.agenda-evento{display:block;width:100%;border:1px solid #dbe2ea;background:#f8fafc;border-radius:5px;padding:5px 6px;text-align:left;font:inherit;font-size:11px;line-height:1.25;color:#1f2937;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agenda-evento span{font-weight:700}.agenda-evento.status-concluido{opacity:.58;text-decoration:line-through}.agenda-evento.status-cancelado{opacity:.5;text-decoration:line-through}
.agenda-semana-dias{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.agenda-col-dia{min-height:260px;padding:8px;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;gap:6px;min-width:0}.agenda-col-dia:last-child{border-right:0}
.agenda-col-titulo{text-align:center;text-transform:capitalize;font-size:12px;color:#64748b;padding-bottom:7px;border-bottom:1px solid #e5e7eb}.agenda-col-titulo strong{display:block;font-size:18px;color:#1f2937}
.agenda-vazio,.agenda-sem-eventos{font-size:12px;color:#94a3b8;padding:12px;text-align:center}
.agenda-dia-lista{display:flex;flex-direction:column;gap:8px}.agenda-item-dia{display:grid;grid-template-columns:minmax(220px,40%) 1fr;gap:12px;align-items:center;border-bottom:1px solid #edf0f3;padding-bottom:8px}.agenda-item-dia .agenda-evento{font-size:13px}
.agenda-item-dia>div{font-size:12px;color:#64748b}
.agenda-proximas-lista{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.agenda-proxima{display:flex;align-items:center;gap:10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:9px;text-align:left;cursor:pointer;color:inherit}
.agenda-proxima-data{min-width:82px;font-size:11px;color:#64748b}.agenda-proxima-data b{display:block;font-size:14px;color:#1f2937}.agenda-proxima strong{display:block}.agenda-proxima small{display:block;color:#64748b;margin-top:2px}
.agenda-modal[hidden]{display:none!important}.agenda-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding:35px 16px;overflow-y:auto}
.agenda-modal-painel{width:min(820px,100%);background:#fff;border-radius:10px;padding:18px;box-shadow:0 18px 50px rgba(0,0,0,.25)}
.agenda-modal-topo{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e5e7eb;margin-bottom:14px;padding-bottom:10px}.agenda-modal-topo h2{margin:0}
.agenda-fechar{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;padding:5px 10px}
.agenda-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.agenda-form-grid .campo{margin:0}.agenda-span-2{grid-column:1/-1}
.agenda-form-acoes{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}.agenda-form-acoes #agenda-excluir{margin-right:auto}
.btn-perigo{background:#991b1b!important;color:#fff!important}
@media(max-width:760px){
 .agenda-toolbar{grid-template-columns:1fr}.agenda-nav,.agenda-modos{justify-content:center}#agenda-periodo{grid-row:1}
 .agenda-semana-cab,.agenda-mes-grid{min-width:700px}.agenda-calendario{overflow-x:auto}
 .agenda-dia{min-height:105px}.agenda-semana-dias{min-width:700px;overflow:visible}
 .agenda-proximas-lista{grid-template-columns:1fr}.agenda-form-grid{grid-template-columns:1fr}.agenda-span-2{grid-column:auto}
 .agenda-item-dia{grid-template-columns:1fr}.agenda-modal{padding:12px}.agenda-modal-painel{padding:14px}
}

/* V61 - autenticação e usuários */
.login-body{margin:0;min-height:100vh;background:#f4f6f8;display:flex;align-items:center;justify-content:center;padding:20px;font-family:Arial,Helvetica,sans-serif}
.login-box{width:min(430px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:26px;box-shadow:0 12px 35px rgba(15,23,42,.10)}
.login-box h1{font-size:21px;margin:0;text-align:center}.login-sub{text-align:center;color:#64748b;margin:5px 0 24px}.login-box h2{font-size:18px}.login-btn{width:100%;margin-top:8px}
.menu-usuario{margin-left:auto;color:#e2e8f0;font-size:12px;align-self:center;padding:8px 2px}
@media(max-width:760px){.menu-usuario{width:100%;margin-left:0;padding:6px 0}}

/* V63 */
.agenda-filtro-usuario form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.agenda-filtro-usuario select{min-width:240px}

/* V65 - quantidade visível na listagem de processos */
.processos-lista-topo{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.processos-lista-topo h2{margin:0}
.processos-qtd-controle{display:flex;align-items:center;gap:8px}
.processos-qtd-controle label{font-weight:600}
.processos-qtd-controle select{min-width:145px}
.processos-scroll{overflow-x:auto;scrollbar-gutter:stable}
.processos-scroll table{margin-bottom:0}
@media(max-width:700px){
 .processos-lista-topo{align-items:flex-start}
 .processos-qtd-controle{width:100%}
 .processos-qtd-controle select{flex:1;min-width:0}
}

/* V66 - correção da janela rolável da listagem */
#processos-scroll{
    display:block;
    width:100%;
    overflow-x:auto !important;
    overflow-y:auto !important;
    position:relative;
}
#processos-scroll.mostrar-todos{
    height:auto !important;
    max-height:none !important;
    overflow-y:visible !important;
}
#processos-scroll #tabela-processos{
    width:100%;
}
#processos-scroll #tabela-processos > tbody > tr:first-child th,
#processos-scroll #tabela-processos > tr:first-child th{
    position:sticky;
    top:0;
    z-index:3;
}

/* V67 Financeiro */
.financeiro-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.financeiro-resumo{grid-template-columns:repeat(4,minmax(160px,1fr))}.financeiro-resumo .numero{font-size:20px}.fin-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.fin-pago{background:#dcfce7}.fin-parcial{background:#fef3c7}.fin-atrasado{background:#fee2e2}.fin-pendente{background:#e0e7ff}@media(max-width:900px){.financeiro-form-grid{grid-template-columns:1fr}.financeiro-resumo{grid-template-columns:1fr 1fr}}@media(max-width:560px){.financeiro-resumo{grid-template-columns:1fr}}

/* V68 - menu lateral esquerdo retrátil */
:root{--menu-largura:250px}
body{overflow-x:hidden}
.menu-lateral{
    position:fixed;left:0;top:0;bottom:0;width:var(--menu-largura);
    background:#172033;color:#fff;z-index:1000;
    display:flex;flex-direction:column;
    transition:transform .22s ease;
    box-shadow:2px 0 10px rgba(0,0,0,.12);
}
.menu-lateral-topo{padding:22px 18px 16px;border-bottom:1px solid rgba(255,255,255,.12)}
.menu-lateral-topo h1{font-size:17px;line-height:1.25;margin:0;color:#fff}
.menu-lateral-topo p{font-size:11px;margin:6px 0 0;color:#cbd5e1}
.menu-lateral-links{padding:12px 10px;display:flex;flex-direction:column;gap:4px;overflow-y:auto}
.menu-lateral-links a{
    display:block;color:#e5e7eb;text-decoration:none;padding:11px 12px;
    border-radius:7px;font-weight:600;
}
.menu-lateral-links a:hover{background:rgba(255,255,255,.10);color:#fff}
.menu-lateral-usuario{margin-top:auto;padding:15px 18px;border-top:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;gap:4px}
.menu-lateral-usuario small{color:#cbd5e1}
.menu-lateral-usuario a{color:#fff;margin-top:7px;text-decoration:none;font-weight:700}
.conteudo-sistema{margin-left:var(--menu-largura);min-height:100vh;transition:margin-left .22s ease}
.menu-toggle{
    position:fixed;left:calc(var(--menu-largura) + 14px);top:14px;z-index:1100;
    width:42px;height:42px;border:0;border-radius:8px;background:#172033;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
    cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18);
    transition:left .22s ease;
}
.menu-toggle span{display:block;width:21px;height:2px;background:#fff;border-radius:2px}
.topo-lateral .container{padding-left:58px}
body.menu-oculto .menu-lateral{transform:translateX(-100%)}
body.menu-oculto .conteudo-sistema{margin-left:0}
body.menu-oculto .menu-toggle{left:14px}

@media(max-width:800px){
    .menu-lateral{width:min(82vw,280px)}
    .conteudo-sistema{margin-left:0}
    .menu-toggle{left:14px}
    .topo-lateral .container{padding-left:58px}
    body:not(.menu-oculto) .menu-toggle{left:min(calc(82vw + 10px),290px)}
    body.menu-oculto .menu-lateral{transform:translateX(-100%)}
}

/* V69 */.menu-escritorio{margin-top:10px;padding:9px;background:rgba(255,255,255,.08);border-radius:7px;display:flex;flex-direction:column;gap:4px}.menu-escritorio a{color:#fff;font-size:12px}.check-escritorio{display:block;margin:7px 0}

/* V73 - Documentos, endereços e procuração */
.menu-grupo-titulo{width:100%;border:0;background:transparent;color:inherit;text-align:left;padding:10px 14px;cursor:pointer;font:inherit;display:flex;justify-content:space-between}
.menu-subitens{padding-left:14px}.menu-grupo.fechado .menu-subitens{display:none}.menu-subitens a{font-size:14px}
.linha-celular{display:flex;gap:12px;align-items:center}.linha-celular>input{flex:1}.check-inline{white-space:nowrap}
.endereco-bloco{border:1px solid #d8dde3;border-radius:8px;padding:14px;margin:10px 0;background:#fafbfc}
.procuracao-documento{max-width:850px;margin:20px auto;padding:55px;line-height:1.75;text-align:justify}.procuracao-documento h1{text-align:center;letter-spacing:2px;margin-bottom:45px}.assinatura-local{margin-top:55px}.linha-assinatura{width:65%;border-top:1px solid #222;margin:70px auto 8px}.centro{text-align:center}
@media print{.menu-lateral,.menu-toggle,.topo,.nao-imprimir,.rodape{display:none!important}.conteudo-sistema{margin:0!important}.container{max-width:none!important;padding:0!important}.procuracao-documento{box-shadow:none!important;border:0!important;margin:0!important;padding:20mm!important;font-size:12pt}}

/* V75 - Procuração: rótulos destacados e impressão em uma única folha A4 */
.rotulo-procuracao{
    font-weight:800;
    text-decoration:underline;
    text-decoration-thickness:1.5px;
    text-underline-offset:2px;
    text-shadow:1px 1px 1px rgba(0,0,0,.28);
}
@page{
    size:A4 portrait;
    margin:10mm 12mm;
}
@media print{
    html,body{
        width:210mm;
        height:297mm;
        margin:0!important;
        padding:0!important;
        background:#fff!important;
    }
    body *{visibility:hidden;}
    .procuracao-documento,.procuracao-documento *{visibility:visible;}
    .procuracao-documento{
        position:absolute!important;
        left:0!important;
        top:0!important;
        width:186mm!important;
        max-width:186mm!important;
        min-height:0!important;
        height:auto!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        box-shadow:none!important;
        font-family:Arial,Helvetica,sans-serif!important;
        font-size:10.5pt!important;
        line-height:1.28!important;
        text-align:justify!important;
        overflow:visible!important;
    }
    .procuracao-documento h1{
        font-size:14pt!important;
        line-height:1.15!important;
        margin:0 0 7mm!important;
        padding:0!important;
        text-align:center!important;
        letter-spacing:.4px!important;
    }
    .procuracao-documento p{
        margin:0 0 3.2mm!important;
        padding:0!important;
        orphans:2;
        widows:2;
    }
    .procuracao-documento .assinatura-local{
        margin-top:7mm!important;
        margin-bottom:0!important;
    }
    .procuracao-documento .linha-assinatura{
        width:62%!important;
        margin:13mm auto 2mm!important;
        border-top:1px solid #222!important;
    }
    .procuracao-documento .centro{
        margin:0!important;
        text-align:center!important;
        line-height:1.15!important;
    }
    .rotulo-procuracao{
        font-weight:800!important;
        text-decoration:underline!important;
        text-decoration-thickness:1.2px!important;
        text-underline-offset:1.5px!important;
        text-shadow:.6px .6px .5px rgba(0,0,0,.35)!important;
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }
}

/* V76 - correção definitiva da impressão da procuração */
.rotulo-procuracao{
    display:inline !important;
    font-weight:900 !important;
    text-decoration:underline !important;
    text-decoration-thickness:2px !important;
    text-underline-offset:2px !important;
    background:#d9d9d9 !important;
    padding:0 3px !important;
    text-shadow:1px 1px 1px #999 !important;
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
}
@page{size:A4 portrait;margin:7mm 10mm;}
@media print{
    html,body{margin:0!important;padding:0!important;width:auto!important;height:auto!important;}
    body *{visibility:hidden!important;}
    #folha-procuracao,#folha-procuracao *{visibility:visible!important;}
    #folha-procuracao{
        position:absolute!important;
        top:0!important;
        left:0!important;
        width:190mm!important;
        max-width:190mm!important;
        min-height:0!important;
        height:auto!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
        background:#fff!important;
        font-family:Arial,Helvetica,sans-serif!important;
        font-size:9.5pt!important;
        line-height:1.18!important;
        transform:scale(var(--escala-procuracao,1))!important;
        transform-origin:top left!important;
        page-break-before:avoid!important;
        page-break-after:avoid!important;
        break-before:avoid-page!important;
        break-after:avoid-page!important;
    }
    #folha-procuracao h1{
        font-size:13pt!important;
        line-height:1.05!important;
        margin:0 0 5mm!important;
        padding:0!important;
    }
    #folha-procuracao p{
        font-size:9.5pt!important;
        line-height:1.18!important;
        margin:0 0 2.2mm!important;
        padding:0!important;
    }
    #folha-procuracao .assinatura-local{margin-top:4mm!important;margin-bottom:0!important;}
    #folha-procuracao .linha-assinatura{width:58%!important;margin:8mm auto 1.5mm!important;}
    #folha-procuracao .centro{margin:0!important;line-height:1.05!important;}
    #folha-procuracao .rotulo-procuracao{
        font-weight:900!important;
        text-decoration:underline!important;
        background:#d9d9d9!important;
        text-shadow:.8px .8px .7px #888!important;
        -webkit-print-color-adjust:exact!important;
        print-color-adjust:exact!important;
    }
}

/* V77 - Procuração sem grifo e ocupação de aproximadamente 95% da A4 */
.rotulo-procuracao{
    display:inline!important;
    font-weight:700!important;
    text-decoration:none!important;
    background:transparent!important;
    padding:0!important;
    text-shadow:none!important;
}
@page{size:A4 portrait;margin:6mm 10mm;}
@media print{
    html,body{margin:0!important;padding:0!important;width:auto!important;height:auto!important;background:#fff!important;}
    body *{visibility:hidden!important;}
    #folha-procuracao,#folha-procuracao *{visibility:visible!important;}
    #folha-procuracao{
        position:absolute!important;
        left:0!important;
        top:0!important;
        width:190mm!important;
        max-width:190mm!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
        background:#fff!important;
        font-family:Arial,Helvetica,sans-serif!important;
        font-size:11pt!important;
        line-height:1.42!important;
        text-align:justify!important;
        transform:scale(var(--escala-procuracao,1))!important;
        transform-origin:top left!important;
        page-break-inside:avoid!important;
        break-inside:avoid-page!important;
    }
    #folha-procuracao h1{
        font-size:15pt!important;
        line-height:1.15!important;
        margin:0 0 9mm!important;
        text-align:center!important;
        letter-spacing:.5px!important;
    }
    #folha-procuracao p{
        font-size:11pt!important;
        line-height:1.42!important;
        margin:0 0 5mm!important;
        padding:0!important;
    }
    #folha-procuracao .assinatura-local{
        margin-top:10mm!important;
        margin-bottom:0!important;
    }
    #folha-procuracao .linha-assinatura{
        width:62%!important;
        margin:17mm auto 2mm!important;
        border-top:1px solid #222!important;
    }
    #folha-procuracao .centro{
        margin:0!important;
        line-height:1.15!important;
        text-align:center!important;
    }
    #folha-procuracao .rotulo-procuracao{
        font-weight:700!important;
        text-decoration:none!important;
        background:transparent!important;
        text-shadow:none!important;
        padding:0!important;
    }
}

/* V78 - Procuração: somente sombra nos rótulos e margens laterais de 1,5 cm */
.rotulo-procuracao{
    display:inline!important;
    font-weight:700!important;
    text-decoration:none!important;
    background:transparent!important;
    padding:0!important;
    text-shadow:1px 1px 1.2px rgba(0,0,0,.45)!important;
}
@page{
    size:A4 portrait;
    margin-top:6mm;
    margin-bottom:6mm;
    margin-left:15mm;
    margin-right:15mm;
}
@media print{
    html,body{
        margin:0!important;
        padding:0!important;
        width:auto!important;
        height:auto!important;
        background:#fff!important;
    }
    body *{visibility:hidden!important;}
    #folha-procuracao,#folha-procuracao *{visibility:visible!important;}
    #folha-procuracao{
        position:absolute!important;
        top:0!important;
        left:50%!important;
        width:180mm!important;
        max-width:180mm!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
        background:#fff!important;
        font-family:Arial,Helvetica,sans-serif!important;
        font-size:11pt!important;
        line-height:1.42!important;
        text-align:justify!important;
        transform:translateX(-50%) scale(var(--escala-procuracao,1))!important;
        transform-origin:top center!important;
        page-break-inside:avoid!important;
        break-inside:avoid-page!important;
    }
    #folha-procuracao .rotulo-procuracao{
        font-weight:700!important;
        text-decoration:none!important;
        background:transparent!important;
        padding:0!important;
        text-shadow:1px 1px 1.2px rgba(0,0,0,.45)!important;
        -webkit-print-color-adjust:exact!important;
        print-color-adjust:exact!important;
    }
}

/* V79 - Título da procuração na impressão */
@media print{
    #folha-procuracao h1{
        font-size:17pt!important;
        line-height:1.15!important;
        margin-top:25mm!important;
        margin-bottom:25mm!important;
        padding:0!important;
        text-align:center!important;
        letter-spacing:.5px!important;
    }
}

/* V80 - espaço real de 3 cm antes e depois do título na impressão.
   Usa padding (não colapsa como margin), garantindo o espaçamento. */
@media print{
    #folha-procuracao h1{
        display:block!important;
        box-sizing:border-box!important;
        font-size:17pt!important;
        line-height:1.15!important;
        margin:0!important;
        padding-top:30mm!important;
        padding-bottom:30mm!important;
        text-align:center!important;
        letter-spacing:.5px!important;
    }
}
/* A classe também permite que o JS meça o documento já com os mesmos 3 cm
   antes de abrir a janela de impressão. */
html.modo-impressao-procuracao #folha-procuracao h1{
    display:block!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding-top:30mm!important;
    padding-bottom:30mm!important;
}

/* V82 - seleção de múltiplos advogados na procuração */
select[name="advogado_ids[]"]{min-height:130px;}

/* V83 - seleção de advogados por checkbox na procuração */
.campo-advogados-procuracao{grid-column:1/-1;}
.lista-check-advogados{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:8px;
    margin-top:6px;
    padding:10px;
    border:1px solid #d9dee5;
    border-radius:8px;
    background:#fafbfc;
}
.advogado-check-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 10px;
    margin:0;
    border:1px solid #e3e6ea;
    border-radius:7px;
    background:#fff;
    cursor:pointer;
    line-height:1.25;
}
.advogado-check-item:hover{background:#f3f6f9;}
.advogado-check-item input[type="checkbox"]{
    width:19px;
    height:19px;
    margin:0;
    flex:0 0 auto;
    cursor:pointer;
}
.advogado-check-item span{display:block;}
.advogado-check-item small{font-size:.88em;color:#5c6670;}
.sem-advogados{padding:8px;color:#777;}
@media(max-width:700px){
    .lista-check-advogados{grid-template-columns:1fr;}
}

/* V84 - Contrato */
.contrato-documento{max-width:900px;margin:20px auto;padding:35px 45px;background:#fff;color:#111;text-align:justify;line-height:1.5;}
.contrato-documento h1{text-align:center;font-size:20px;margin:0 0 30px;}
.texto-contrato{white-space:normal;margin-top:22px;}
.contrato-local{margin-top:30px;}
.assinaturas-contrato{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:35px 28px;margin-top:55px;text-align:center;}
.assinaturas-contrato div span{display:block;border-top:1px solid #222;margin-bottom:5px;}
.assinaturas-contrato small{display:block;}
@media(max-width:700px){.assinaturas-contrato{grid-template-columns:1fr;}.contrato-documento{padding:22px 18px;}}
@media print{
    .contrato-documento,.contrato-documento *{visibility:visible!important;}
    .contrato-documento{
        position:absolute!important;left:0!important;top:0!important;width:180mm!important;max-width:180mm!important;
        margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;font-size:10pt!important;line-height:1.3!important;
    }
    .contrato-documento h1{font-size:15pt!important;margin:0 0 10mm!important;}
    .contrato-documento p{font-size:10pt!important;line-height:1.3!important;margin-bottom:4mm!important;}
    .texto-contrato{font-size:10pt!important;line-height:1.3!important;}
    .assinaturas-contrato{margin-top:14mm!important;gap:10mm 8mm!important;}
}

/* V85 - Declaração de Hipossuficiência */
.hipossuficiencia-documento{
    max-width:850px;
    margin:20px auto;
    padding:45px 55px;
    background:#fff;
    color:#111;
    font-family:Arial,Helvetica,sans-serif;
    font-size:16px;
    line-height:1.65;
    text-align:justify;
}
.hipossuficiencia-documento h1{
    text-align:center;
    font-size:21px;
    margin:0 0 45px;
}
.hipossuficiencia-documento p{margin:0 0 24px;}
.hipo-local{margin-top:50px!important;}
.hipo-assinatura{width:65%;margin:70px auto 6px;border-top:1px solid #222;}
.hipo-centro{text-align:center!important;line-height:1.3!important;}
@media print{
    body *{visibility:hidden!important;}
    #folha-hipossuficiencia,#folha-hipossuficiencia *{visibility:visible!important;}
    #folha-hipossuficiencia{
        position:absolute!important;
        left:50%!important;
        top:0!important;
        width:180mm!important;
        max-width:180mm!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        box-shadow:none!important;
        transform:translateX(-50%)!important;
        font-size:12pt!important;
        line-height:1.65!important;
    }
    #folha-hipossuficiencia h1{font-size:17pt!important;margin:25mm 0 25mm!important;}
    #folha-hipossuficiencia p{font-size:12pt!important;line-height:1.65!important;margin-bottom:7mm!important;}
    #folha-hipossuficiencia .hipo-local{margin-top:18mm!important;}
    #folha-hipossuficiencia .hipo-assinatura{margin-top:25mm!important;}
}

/* V86 - modelo editável de hipossuficiência por escritório */
.texto-hipossuficiencia{white-space:normal;}
.texto-hipossuficiencia br{line-height:1.65;}
@media print{
 #folha-hipossuficiencia .texto-hipossuficiencia{font-size:12pt!important;line-height:1.65!important;}
}

/* V87 - gestão integrada */
.central-topo{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;flex-wrap:wrap;margin-bottom:15px}.central-topo h1{margin:12px 0 4px;font-size:24px}
.duas-colunas{display:grid;grid-template-columns:1fr 1fr;gap:16px}.timeline{margin-top:15px}.timeline-item{border-left:4px solid #cbd3dc;padding:9px 12px;margin:8px 0;background:#fafbfc;border-radius:4px}.timeline-item.feito{opacity:.65}.timeline-item.atrasado,.linha-alerta{background:#fff3f3!important;border-left-color:#b42318}
.numero.pequeno{font-size:22px}.dashboard-cards{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.dashboard-cards .alerta{border-left:5px solid #b42318}
.documento-generico{max-width:850px;margin:20px auto;padding:45px 55px;line-height:1.65;text-align:justify}.documento-generico h1{text-align:center;margin-bottom:35px}
@media(max-width:800px){.duas-colunas{grid-template-columns:1fr}}
@media print{.documento-generico{box-shadow:none;border:0;max-width:180mm;padding:0;margin:0 auto;font-size:12pt}.documento-generico h1{font-size:17pt}}

/* V88 - documentos no cadastro de clientes */
.documento-linha{display:grid;grid-template-columns:minmax(240px,1fr) minmax(280px,1.3fr) auto;gap:12px;align-items:end;padding:12px;margin:10px 0;border:1px solid #d9dee5;border-radius:8px;background:#fafbfc}
.documento-linha .btn{margin-bottom:1px}.documentos-existentes{margin-bottom:15px}
@media(max-width:760px){.documento-linha{grid-template-columns:1fr}.documento-linha .btn{width:100%}}

/* V89 - administração de clientes por abas */
.cliente-admin-card{padding-top:0}
.abas-cliente{display:flex;gap:4px;border-bottom:1px solid #d8dee6;margin:0 -20px 20px;padding:0 20px;background:#f8fafc;border-radius:8px 8px 0 0;overflow-x:auto}
.aba-cliente{appearance:none;border:0;border-bottom:3px solid transparent;background:transparent;padding:15px 20px;font-weight:700;cursor:pointer;white-space:nowrap}
.aba-cliente:hover{background:#eef2f6}.aba-cliente.ativo{border-bottom-color:currentColor;background:#fff}
.painel-aba-cliente{display:none}.painel-aba-cliente.ativo{display:block}
.acoes-form-cliente{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e0e5ea;margin-top:24px;padding-top:18px}
.badge-contagem{display:inline-flex;min-width:28px;height:28px;align-items:center;justify-content:center;border-radius:14px;background:#eef2f6;font-weight:700}
@media(max-width:650px){.abas-cliente{margin-left:-12px;margin-right:-12px;padding:0 8px}.aba-cliente{padding:13px 15px}.acoes-form-cliente{flex-direction:column-reverse}.acoes-form-cliente .btn{width:100%}}
