﻿
/* Container do endpoint deprecated */
li.operation.tce-obsolete-operation,
.operation.tce-obsolete-operation {
    position: relative;
    opacity: 1 !important;
    filter: none !important;
    background: #f7f7f7 !important;
    border-left: 4px solid #999 !important;
}

    /* Cabeçalho da operação */
    li.operation.tce-obsolete-operation .heading,
    .operation.tce-obsolete-operation .heading {
        background: #eeeeee !important;
    }

    /* Path riscado, mas legível */
    li.operation.tce-obsolete-operation .path,
    .operation.tce-obsolete-operation .path {
        color: #555 !important;
        text-decoration: line-through !important;
        font-weight: 600 !important;
    }

    /* Summary um pouco mais apagado */
    li.operation.tce-obsolete-operation .summary,
    .operation.tce-obsolete-operation .summary {
        color: #777 !important;
    }

    /* Descrição sem riscar tudo para manter legibilidade */
    li.operation.tce-obsolete-operation .description,
    .operation.tce-obsolete-operation .description {
        color: #666 !important;
    }

    li.operation.tce-obsolete-operation > div.heading > h3 > span.http_method > span {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
    }

        li.operation.tce-obsolete-operation > div.heading > h3 > span.http_method > span > a {
            text-decoration: none !important;
        }


/* Badge estilo Swagger UI moderno */
.tce-obsolete-badge {
    display: inline-flex;
    margin: 0.25rem !important;
    padding: 0.125rem !important;
    border-radius: 15px;
    background: #777;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    text-decoration: none !important;
    width: 5vw;
    justify-content: space-around;
    align-items: center;
}

/* Área interna com cara de read-only */
li.operation.tce-obsolete-operation .content,
.operation.tce-obsolete-operation .content {
    background: #fafafa !important;
    border-top: 1px solid #ddd !important;
}

/* Campos visivelmente read-only */
li.operation.tce-obsolete-operation input,
li.operation.tce-obsolete-operation textarea,
li.operation.tce-obsolete-operation select,
.operation.tce-obsolete-operation input,
.operation.tce-obsolete-operation textarea,
.operation.tce-obsolete-operation select {
    background-color: #eeeeee !important;
    color: #777 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

    /* Esconde ações de execução */
    li.operation.tce-obsolete-operation input.submit,
    li.operation.tce-obsolete-operation button,
    li.operation.tce-obsolete-operation .submit,
    li.operation.tce-obsolete-operation .try-out,
    li.operation.tce-obsolete-operation .execute,
    li.operation.tce-obsolete-operation .sandbox_header,
    .operation.tce-obsolete-operation input.submit,
    .operation.tce-obsolete-operation button,
    .operation.tce-obsolete-operation .submit,
    .operation.tce-obsolete-operation .try-out,
    .operation.tce-obsolete-operation .execute,
    .operation.tce-obsolete-operation .sandbox_header {
        display: none !important;
    }

/* Aviso discreto, semelhante a aviso de documentação */
.tce-obsolete-warning {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-left: 4px solid #777;
    color: #555 !important;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none !important;
}

    /* Garante que o aviso e o badge não fiquem riscados */
    .tce-obsolete-warning,
    .tce-obsolete-warning *,
    .tce-obsolete-badge {
        text-decoration: none !important;
    }
