/* ==========================================================
   TRANSPARÊNCIA — LCC-UFMG
   Referência visual: página Equipe
   ========================================================== */


/* ==========================================================
   1. VARIÁVEIS E ESTRUTURA GERAL
   ========================================================== */

.lcc-transparencia-page {
    --lcc-blue: #1351b4;
    --lcc-blue-dark: #092856;
    --lcc-blue-soft: #f5f8ff;

    --lcc-text: #243145;
    --lcc-muted: #536477;

    --lcc-border: #d2dced;
    --lcc-border-strong: #c4ccda;

    --lcc-white: #ffffff;

    width: 100%;
    min-width: 0;

    padding: 36px 16px 56px;

    color: var(--lcc-text);
    background: var(--lcc-white);
}

.lcc-transparencia-page,
.lcc-transparencia-page * {
    box-sizing: border-box;
}

.lcc-transparencia-container {
    width: 100%;
    max-width: 1200px;
    min-width: 0;

    margin: 0 auto;
}


/* ==========================================================
   2. CABEÇALHO DA PÁGINA
   ========================================================== */

.lcc-transparencia-hero {
    display: block;

    min-height: 0;

    margin: 0 0 36px;
    padding: 0;

    color: var(--lcc-text);
    background: transparent;

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.lcc-transparencia-hero::before,
.lcc-transparencia-hero::after {
    display: none;
}

.lcc-transparencia-hero-content {
    width: 100%;
    max-width: 100%;
}

.lcc-transparencia-hero h1 {
    margin: 0 0 18px;

    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;

    color: var(--lcc-blue-dark);
}

.lcc-transparencia-hero p {
    max-width: 900px;

    margin: 0;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;

    color: var(--lcc-text);
}


/* ==========================================================
   3. NAVEGAÇÃO — CONTRATOS E PAGAMENTOS
   ========================================================== */

.lcc-transparencia-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    max-width: 100%;

    gap: 16px;

    margin: 0 0 38px;
    padding: 0;

    border-bottom: 1px solid var(--lcc-border);
}

.lcc-transparencia-navigation-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 65px;

    padding: 12px 14px 16px;

    color: var(--lcc-blue-dark);
    text-decoration: none;

    background: transparent;

    border: 0;
    border-radius: 0;
    box-shadow: none;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.lcc-transparencia-navigation-item:hover {
    color: var(--lcc-blue);
    text-decoration: none;

    background: var(--lcc-blue-soft);

    border: 0;
    box-shadow: none;
    transform: none;
}

.lcc-transparencia-navigation-item.is-active {
    color: var(--lcc-blue);

    background: transparent;

    border: 0;
    box-shadow: none;
}

.lcc-transparencia-navigation-item.is-active::after {
    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    height: 3px;

    content: "";

    background: var(--lcc-blue);
}

.lcc-transparencia-navigation-item:focus-visible {
    outline: 2px solid var(--lcc-blue);
    outline-offset: 3px;
}

.lcc-transparencia-navigation-item.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.lcc-transparencia-navigation-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
    gap: 4px;
}

.lcc-transparencia-navigation-content strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;

    color: inherit;
}

.lcc-transparencia-navigation-content small {
    display: block;

    overflow: visible;

    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.5;

    color: var(--lcc-muted);

    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}


/* ==========================================================
   4. SEÇÕES DA TRANSPARÊNCIA
   ========================================================== */

.lcc-transparencia-section {
    width: 100%;
    min-width: 0;

    margin: 0 0 44px;
    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;
    box-shadow: none;

    scroll-margin-top: 100px;
}

/* Respeita o estado do painel controlado pelo JavaScript. */

.lcc-transparencia-section[hidden] {
    display: none !important;
}

.lcc-transparencia-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 0;

    margin: 0 0 18px;
    padding: 0;

    border: 0;
}

.lcc-transparencia-section-heading {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0 0 16px;
}

.lcc-transparencia-section h2 {
    margin: 0;

    font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;

    color: var(--lcc-blue-dark);
}

/* Traço azul no mesmo estilo da página Equipe. */

.lcc-transparencia-title-line {
    display: block;

    width: 29px;
    height: 2px;

    margin-top: 25px;

    background: var(--lcc-blue);
}

.lcc-transparencia-section-header > p {
    width: 100%;
    max-width: 950px;

    margin: 0;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;

    color: var(--lcc-text);
}


/* ==========================================================
   5. RESUMOS INSTITUCIONAIS
   Compatibilidade com outros componentes de transparência.
   ========================================================== */

.lcc-transparencia-summary {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin: 24px 0;
}

.lcc-transparencia-summary-item {
    display: flex;
    align-items: center;

    min-width: 0;
    gap: 12px;

    padding: 16px;

    background: var(--lcc-white);

    border: 1px solid var(--lcc-border);
    border-radius: 4px;
    box-shadow: none;
}

.lcc-transparencia-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    font-size: 1.1rem;

    color: var(--lcc-blue);
    background: var(--lcc-blue-soft);

    border-radius: 4px;
}

.lcc-transparencia-summary-item > div {
    display: flex;
    flex-direction: column;

    min-width: 0;
    gap: 4px;
}

.lcc-transparencia-summary-item strong {
    display: block;

    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;

    color: var(--lcc-blue-dark);

    overflow-wrap: anywhere;
}

.lcc-transparencia-summary-item > div > span {
    font-size: 0.85rem;
    line-height: 1.5;

    color: var(--lcc-muted);
}


/* ==========================================================
   6. TABELA DE CONTRATOS
   ========================================================== */

.lcc-contratos-table-wrapper {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 16px 0 0;

    overflow-x: auto;
    overflow-y: hidden;

    background: var(--lcc-white);

    border: 1px solid var(--lcc-border);
    border-radius: 4px;

    box-shadow: none;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #aebbd0 #f3f6fb;
}

.lcc-contratos-table-wrapper:focus-visible {
    outline: 2px solid var(--lcc-blue);
    outline-offset: 3px;
}


/* Barra de rolagem */

.lcc-contratos-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.lcc-contratos-table-wrapper::-webkit-scrollbar-track {
    background: #f3f6fb;
}

.lcc-contratos-table-wrapper::-webkit-scrollbar-thumb {
    background: #aebbd0;

    border-radius: 8px;
}


/* Estrutura */

.lcc-contratos-table {
    width: 100%;
    min-width: 1120px;

    margin: 0;

    font-size: 0.9rem;
    line-height: 1.5;

    color: var(--lcc-text);
    background: var(--lcc-white);

    border-spacing: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.lcc-contratos-table th,
.lcc-contratos-table td {
    padding: 13px 14px;

    text-align: left;
    vertical-align: top;

    border-right: 1px solid var(--lcc-border);
    border-bottom: 1px solid var(--lcc-border);

    overflow-wrap: break-word;
}

.lcc-contratos-table th:last-child,
.lcc-contratos-table td:last-child {
    border-right: 0;
}

.lcc-contratos-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Cabeçalho */

.lcc-contratos-table thead th {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;

    color: var(--lcc-text);
    background: var(--lcc-blue-soft);

    white-space: nowrap;
}


/* Corpo */

.lcc-contratos-table tbody td {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.55;

    color: var(--lcc-text);
    background: var(--lcc-white);
}

.lcc-contratos-table tbody tr:hover td {
    background: #f8faff;
}


/* Número do contrato */

.lcc-contrato-number {
    font-weight: 600;

    color: var(--lcc-blue-dark);

    white-space: nowrap;
}


/* Empresa */

.lcc-contrato-company {
    display: block;

    min-width: 150px;
    max-width: 230px;

    font-weight: 600;
    line-height: 1.5;

    color: var(--lcc-text);
}

.lcc-contrato-cnpj {
    display: block;

    margin-top: 5px;

    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.45;

    color: var(--lcc-muted);

    overflow-wrap: anywhere;
}


/* Objeto */

.lcc-contrato-object {
    min-width: 190px;
    max-width: 350px;

    margin: 0;

    font-size: inherit;
    line-height: 1.55;

    color: inherit;
}


/* Valor */

.lcc-contrato-value {
    font-weight: 600;

    color: var(--lcc-text);

    white-space: nowrap;
}


/* Datas */

.lcc-contratos-table time {
    white-space: nowrap;
}


/* ==========================================================
   7. SITUAÇÃO DOS CONTRATOS
   ========================================================== */

.lcc-contrato-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 4px 9px;

    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;

    border: 1px solid transparent;
    border-radius: 4px;

    white-space: nowrap;
}

.lcc-contrato-status.is-encerrado {
    color: #424c59;
    background: #f0f2f5;
    border-color: #d8dce3;
}

.lcc-contrato-status.is-vigente {
    color: #14532d;
    background: #e7f5eb;
    border-color: #b5dfc0;
}

.lcc-contrato-status.is-programado {
    color: #765400;
    background: #fff6dc;
    border-color: #f1dca5;
}


/* ==========================================================
   8. ELEMENTOS ANTIGOS
   O HTML atualizado não utiliza cartões de contratos.
   ========================================================== */

.lcc-contratos-mobile {
    display: none;
}


/* ==========================================================
   9. ACESSIBILIDADE
   ========================================================== */

.lcc-sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    white-space: nowrap !important;

    border: 0 !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
}

.lcc-transparencia-page a:focus-visible,
.lcc-transparencia-page button:focus-visible {
    outline: 2px solid var(--lcc-blue);
    outline-offset: 3px;
}


/* ==========================================================
   10. RESPONSIVIDADE — TABLETS
   ========================================================== */

@media (max-width: 900px) {

    .lcc-transparencia-page {
        padding: 30px 16px 48px;
    }

    .lcc-transparencia-summary {
        grid-template-columns: 1fr;
    }

    .lcc-transparencia-section-header {
        align-items: flex-start;
    }

    /* A tabela permanece visível e rolável. */

    .lcc-contratos-table-wrapper {
        display: block;
        overflow-x: auto;
    }

    .lcc-contratos-mobile {
        display: none;
    }

}


/* ==========================================================
   11. RESPONSIVIDADE — CELULARES
   ========================================================== */

@media (max-width: 680px) {

    /* Página */

    .lcc-transparencia-page {
        padding: 28px 16px 48px;
    }

    .lcc-transparencia-container {
        width: 100%;
        max-width: 100%;
    }


    /* Cabeçalho */

    .lcc-transparencia-hero {
        min-height: 0;

        margin-bottom: 32px;
        padding: 0;

        background: transparent;

        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lcc-transparencia-hero h1 {
        margin-bottom: 18px;

        font-size: 2rem;
        line-height: 1.2;
    }

    .lcc-transparencia-hero p {
        font-size: 1rem;
        line-height: 1.65;
    }


    /* Navegação */

    .lcc-transparencia-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;

        margin: 0 0 36px;
        padding: 0;
    }

    .lcc-transparencia-navigation-item {
        min-height: 64px;

        padding: 10px 8px 14px;

        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lcc-transparencia-navigation-content strong {
        font-size: 0.95rem;
    }

    .lcc-transparencia-navigation-content small {
        font-size: 0.76rem;
        line-height: 1.4;
    }


    /* Seções */

    .lcc-transparencia-section {
        margin-bottom: 38px;
        padding: 0;

        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lcc-transparencia-section-header {
        margin-bottom: 18px;
        padding: 0;

        border: 0;
    }

    .lcc-transparencia-section-heading {
        margin-bottom: 16px;
    }

    .lcc-transparencia-section h2 {
        font-size: 1.35rem;
        line-height: 1.35;
    }

    .lcc-transparencia-title-line {
        margin-top: 25px;
    }

    .lcc-transparencia-section-header > p {
        font-size: 1rem;
        line-height: 1.6;
    }


    /* Tabela */

    .lcc-contratos-table-wrapper {
        display: block;

        width: 100%;

        margin-top: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        border: 1px solid var(--lcc-border);
        border-radius: 4px;
    }

    .lcc-contratos-table {
        width: 1120px;
        min-width: 1120px;

        font-size: 0.88rem;
    }

    .lcc-contratos-table th,
    .lcc-contratos-table td {
        padding: 12px 13px;
    }

    /* Não alternar para os cartões antigos. */

    .lcc-contratos-mobile {
        display: none;
    }

}


/* ==========================================================
   12. TELAS MUITO PEQUENAS
   ========================================================== */

@media (max-width: 380px) {

    .lcc-transparencia-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .lcc-transparencia-hero h1 {
        font-size: 1.85rem;
    }

    .lcc-transparencia-navigation {
        gap: 4px;
    }

    .lcc-transparencia-navigation-item {
        padding-right: 5px;
        padding-left: 5px;
    }

    .lcc-transparencia-navigation-content strong {
        font-size: 0.9rem;
    }

    .lcc-transparencia-navigation-content small {
        font-size: 0.72rem;
    }

}


/* ==========================================================
   13. MOVIMENTO REDUZIDO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .lcc-transparencia-navigation-item,
    .lcc-contratos-table tbody tr {
        transition: none;
    }

}


/* ==========================================================
   FIM — TRANSPARÊNCIA
   ========================================================== */