/* Estilos isolados para telas de detalhes */
.detalhes-page {
    background: var(--bg);
    padding-bottom: 40px;
}

.detalhes-page .titulo-detalhe {
    max-width: var(--max);
    padding-top: 56px;
    padding-bottom: 8px;
    color: var(--navy);
}

.detalhes-page .titulo-detalhe h1 {
    color: var(--navy);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -.01em;
    margin-bottom: 16px;
}

.detalhes-page .titulo-detalhe p {
    max-width: 900px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 0;
}

.detalhes-page > section.text-center {
    padding: 20px 0 10px;
}

.detalhes-page .btn-azul-escuro {
    color: #fff;
    background-color: var(--teal);
    border-color: var(--teal);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(26,179,148,.25);
}

.detalhes-page .btn-azul-escuro:hover,
.detalhes-page .btn-azul-escuro:focus,
.detalhes-page .btn-azul-escuro:active {
    color: #fff;
    background-color: var(--teal-dark);
    border-color: var(--teal-dark);
    text-decoration: none;
    box-shadow: 0 0 0 0.25rem rgba(26,179,148,.25);
}

.detalhes-page .tabela-detalhe,
.detalhes-page .tabela-detalhes-procedimento {
    max-width: min(var(--max), calc(100% - 32px));
    margin: 24px auto;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: auto;
}

.detalhes-page .tabela-detalhe table,
.detalhes-page .tabela-detalhes-procedimento table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.detalhes-page .tabela-detalhe td,
.detalhes-page .tabela-detalhes-procedimento td {
    padding: 16px 20px;
    color: var(--text);
    font-size: 15px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.detalhes-page .tabela-detalhe tr:nth-child(odd),
.detalhes-page .tabela-detalhes-procedimento tr:nth-child(odd) {
    background-color: #fff;
}

.detalhes-page .tabela-detalhe tr:nth-child(even),
.detalhes-page .tabela-detalhes-procedimento tr:nth-child(even) {
    background-color: #f8fafd;
}

.detalhes-page .tabela-detalhe-titulo {
    margin: 0;
    padding: 18px 22px;
    color: #fff;
    font-size: 20px;
    letter-spacing: -.01em;
    background: var(--teal);
}

.detalhes-page .alinhamento-bg {
    background-color: #f4fbf9 !important;
}

.detalhes-page .fonte-comum {
    margin-bottom: 0;
    color: var(--navy);
}

.detalhes-page .rodape-tabela-sigtap {
    max-width: min(var(--max), calc(100% - 32px));
}

.detalhes-page .rodape-tabela-sigtap .card {
    border-color: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.detalhes-page .tabs-like-thead {
    background: var(--teal);
}

.detalhes-page .tabs-like-thead .nav-link.active {
    background: var(--teal);
    color: #fff !important;
}

.detalhes-page .thead-cbo th,
.detalhes-page .thead-categoria-cbo th {
    background-color: var(--navy-2);
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
}

.detalhes-page .tbody-cbo td,
.detalhes-page .tbody-categoria-cbo td {
    padding: 10px 14px;
}

.detalhes-page .tbody-categoria-cbo tr:nth-child(even) {
    background-color: #f8fafd;
}

.detalhes-page .tbody-categoria-cbo tr:nth-child(odd) {
    background-color: #fff;
}

@media (max-width: 640px) {
    .detalhes-page .titulo-detalhe {
        padding-top: 36px;
    }

    .detalhes-page .tabela-detalhe,
    .detalhes-page .tabela-detalhes-procedimento,
    .detalhes-page .rodape-tabela-sigtap {
        max-width: calc(100% - 24px);
    }

    .detalhes-page .tabela-detalhe-titulo {
        padding: 16px;
        font-size: 18px;
    }
}
