.bth-footer.anx-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.anx-footer-esq {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.anx-footer-acoes {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.anx-anexar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

    .anx-anexar-btn .fa-paperclip {
        font-size: 12px;
    }

    .anx-anexar-btn.tem-anexos {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #2563eb;
    }

    .anx-anexar-btn:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }

.anx-anexar-caret {
    font-size: 14px;
    line-height: 1;
    transition: transform .2s ease;
}

.anx-anexar-btn[aria-expanded="true"] .anx-anexar-caret {
    transform: rotate(180deg);
}

.anx-anexar-qtd {
    padding: 1px 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
}

    .anx-anexar-qtd[hidden] {
        display: none;
    }

/* Exclusões marcadas (só valem ao salvar) */
.anx-anexar-aviso {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

    .anx-anexar-aviso[hidden] {
        display: none;
    }

.anx-anexar-desfazer {
    padding: 0;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

    .anx-anexar-desfazer:hover {
        text-decoration: underline;
    }

.anx-painel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.anx-painel-conteudo {
    padding: 16px 28px 22px;
}

/* Modal de anexos */
.anx-modal-sub {
    display: block;
    font-size: 12px;
    color: #888;
}

.anx-bloqueio {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 14px;
    padding: 9px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

    .anx-bloqueio[hidden] {
        display: none;
    }

.anx-status {
    margin: 4px 0;
    font-size: 12.5px;
    font-style: italic;
    color: #8a94a3;
}

    .anx-status[hidden] {
        display: none;
    }

/* Área de envio simples (sem o react-widgets) - mesmo visual do AnexosUpload */
.anx-simples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anx-zona {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px dashed #d0d5dd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

    .anx-zona:hover,
    .anx-zona:focus-visible {
        border-color: #98a2b3;
        background: #f9fafb;
        outline: none;
    }

    .anx-zona.arrastando {
        border-color: #1f4aa8;
        background: #f5f8ff;
    }

    .anx-zona.desabilitada {
        opacity: .5;
        pointer-events: none;
    }

.anx-zona-ic {
    font-size: 24px;
    line-height: 1;
    color: #98a2b3;
    transition: color .15s ease, transform .2s ease;
}

.anx-zona.arrastando .anx-zona-ic {
    color: #1f4aa8;
    transform: translateY(-2px);
}

.anx-zona-textos {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

    .anx-zona-textos strong {
        font-size: 13px;
        font-weight: 600;
        color: #1d2939;
    }

    .anx-zona-textos small {
        font-size: 12px;
        color: #667085;
    }

.anx-zona-erro {
    margin: -6px 0 0;
    font-size: 12px;
    color: #b42318;
}

    .anx-zona-erro[hidden] {
        display: none;
    }

.anx-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 24px 16px;
    text-align: center;
}

    .anx-vazio[hidden] {
        display: none;
    }

    .anx-vazio i {
        margin-bottom: 6px;
        font-size: 28px;
        color: #d0d5dd;
    }

    .anx-vazio strong {
        font-size: 13px;
        color: #475467;
    }

    .anx-vazio span {
        font-size: 12px;
        color: #98a2b3;
    }

.anx-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .anx-lista:empty {
        display: none;
    }

.anx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

.anx-item-ic {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
    color: #667085;
}

    .anx-item-ic.mdi-file-pdf-box {
        color: #b42318;
    }

    .anx-item-ic.mdi-file-word-outline,
    .anx-item-ic.mdi-file-image-outline {
        color: #1f4aa8;
    }

    .anx-item-ic.mdi-file-excel-outline {
        color: #067647;
    }

.anx-item-textos {
    flex: 1;
    min-width: 0;
}

.anx-item-nome {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    color: #185FA5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .anx-item-nome:hover {
        text-decoration: underline;
    }

.anx-item-meta {
    overflow: hidden;
    font-size: 11.5px;
    color: #667085;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anx-novo {
    font-weight: 600;
    color: #1f4aa8;
}

.anx-item-remover {
    flex-shrink: 0;
    padding: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

    .anx-item-remover:hover:not(:disabled) {
        background: #fcebeb;
        color: #b42318;
    }

/* Anexo que não pode ser excluído (já entregue ao AUDESP) cadeado no lugar do remover */
.anx-item-trava {
    flex-shrink: 0;
    padding: 4px;
    border-radius: 6px;
    color: #98a2b3;
    cursor: help;
}

    .anx-item-trava:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 1px;
    }

/* Linha da grid que estava aberta no visualizador, destaque breve ao voltar */
.tabulator-row.anx-linha-destaque {
    animation: anx-linha-destaque 2.6s ease-out;
}

@keyframes anx-linha-destaque {
    0%, 60% {
        background-color: #fff4d6;
    }

    100% {
        background-color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anx-painel,
    .anx-anexar-caret,
    .anx-zona-ic {
        transition: none;
    }

    .tabulator-row.anx-linha-destaque {
        animation-duration: .01s;
    }
}
