﻿/* ============================================================
      Licitacoes (Estrutura, Layout Global e Quebra de Texto)
   ============================================================ */

/* Alinhamento do Título do Acordeão */
.btn-header-licitacao {
    font-weight: 400 !important; /* Força Negrito Forte no Título */
    font-size: 1.1rem !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 3.5rem;
    line-height: 1.4 !important;
    text-align: left !important;
    padding-right: 3rem !important;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Lógica de Alternância do Botão "Ver / Ocultar" */
.btn-toggle-arquivos.collapsed .view-opened {
    display: none !important;
}

.btn-toggle-arquivos:not(.collapsed) .view-closed {
    display: none !important;
}

/* Estrutura da Tabela de Detalhes e Blindagem de Fonte */
.licitacao-details-table {
    margin-bottom: 0;
    border-style: hidden !important;
    font-weight: 400 !important; /* Crava o peso normal do texto */
}

    .licitacao-details-table td {
        vertical-align: middle;
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* Blinda os negritos da tabela para garantir que fiquem fortes nos dois sites */
    .licitacao-details-table strong,
    .licitacao-details-table b {
        font-weight: 700 !important;
    }

    /* 1. CORREÇÃO DA ROLAGEM E QUEBRA DE TEXTO DOS VALORES */
    .licitacao-details-table td:not(.title-row) {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* 2. CORREÇÃO DO HORÁRIO (Impede que o título quebre linha no PC) */
    .licitacao-details-table .title-row {
        width: 15%;
        text-align: right;
        white-space: nowrap !important;
        font-weight: 700 !important; 
    }

    /* Remove bordas que encostam na lateral da caixa */
    .licitacao-details-table tr:first-child td {
        border-top: none;
    }

    .licitacao-details-table tr td:first-child {
        border-left: none;
    }

    .licitacao-details-table tr td:last-child {
        border-right: none;
    }

.table-downloads tbody tr:last-child td {
    border-bottom: none;
}

/* BLINDAGEM DA TABELA DE ARQUIVOS (Fundo cinza / Secretaria Azul) */
.tabela-content-arquivos th {
    font-weight: 700 !important; /* Força cabeçalho grosso */
}

/* 3. ESTRUTURA MOBILE: Transformando Tabela em "Cards" */
@media (max-width: 768px) {
    .licitacao-details-table,
    .licitacao-details-table tbody,
    .licitacao-details-table tr,
    .licitacao-details-table td {
        display: block;
        width: 100%;
    }

        .licitacao-details-table tr {
            border-bottom: none !important;
        }

        .licitacao-details-table td {
            border: none !important;
            padding: 10px 15px !important;
        }

        .licitacao-details-table .title-row {
            padding-top: 14px !important;
            padding-bottom: 2px !important;
            text-align: left;
            width: auto !important;
            white-space: normal !important; /* Libera quebra no celular se a tela for minúscula */
        }

            .licitacao-details-table .title-row + td {
                padding-top: 4px !important;
                padding-bottom: 14px !important;
            }

        /* Divisória pontilhada estrutural no mobile */
        .licitacao-details-table td:not(.title-row) + .title-row {
            border-top-width: 1px !important;
            border-top-style: dashed !important;
        }
}

time.formatar-hora,
time.formatar-data,
time.formatar-data-utc {
    white-space: nowrap !important;
}


.container-licitacoes {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

