body {
    font-family: Arial, sans-serif;
}

.bg-teal {
    background-color: #008b8b;
}

.navbar {
    height: 150px;
    /* Aumentar a altura da navbar */
    display: flex;
    align-items: center;
    /* Centralizar verticalmente o conteúdo */
}

.navbar-brand img.logo {
    height: 65px;
    /* Ajuste a altura da logo proporcionalmente */
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item .nav-link {
    color: #008b8b;
    position: relative;
    /*padding-bottom: 8px; */
    /* Adicionar espaço para o traço */
}

.navbar-nav .nav-item .nav-link:hover {
    color: #e8b320;
}

.navbar-nav .nav-item .nav-link:hover::after {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background-color: #e8b320;
    position: absolute;
    bottom: 0;
    left: 0;
}

.navbar-nav .dropdown .nav-link::after {
    content: none;
    /* Remove o ícone de dropdown */
}


.navbar-nav .nav-item:hover .dropdown-menu {
    display: block;
}


.dropdown-menu {
    display: none;
    background-color: #fff;
    /* Cor de fundo do dropdown */
    border: none;
    /* Remover borda do dropdown */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Adicionar sombra ao dropdown */
    position: absolute;
    top: 100%;
    /* Garantir que apareça logo abaixo do item */
    left: 0;

}

.dropdown-item {
    color: #008b8b;
}

.dropdown-item:hover {
    background-color: #e8b320;
    /* Cor de fundo ao passar o mouse */
    color: #fff;
}


.hero-section {
    background-image: linear-gradient(to bottom, rgba(0, 139, 139, 0.7), rgba(0, 139, 139, 0.7)), url('banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    /* Ajuste o padding conforme necessário */
    position: relative;
    text-align: center;
}


.hero-content {
    /* background-color: rgba(0, 139, 139, 0.7); /* Ajuste a opacidade aqui, 0.7 é mais transparente */
    padding: 50px;
    */ border-radius: 15px;
    position: relative;
    z-index: 1;
    display: inline-block;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    border-radius: 36px;
    display: inline-block;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.amarelo {
    color: #e8b320;
    font-weight: bold;
}

#portal-titulo {
    border-radius: 36px;
}

.section-dif-top {
    border-top: 2px solid #e8b320;
    /* Cor diferente para marcar a seção */
}

.section-dif-bottom {
    border-bottom: 2px solid #e8b320;
    /* Cor diferente para marcar a seção */
}

.receitas-despesas {
    background-color: #ffffff;
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.atos-publicacoes {
    background-color: #ffffff;
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.card.bg-primary {
    background-color: #1c9c9e !important;
    border: none;
    transition: background-color 0.3s ease-in-out;
}

.card.bg-primary:hover {
    background-color: #e8b320 !important;
}

/* Adicione este CSS ao seu arquivo principal */

.card-title a {
    text-decoration: none;
    /* Remove o sublinhado dos links */
}

.card-title a:hover {
    text-decoration: none;
    /* Garante que o sublinhado não apareça ao passar o mouse */
}

.card-title {
    margin-bottom: 0;
    /* Adicione qualquer outro estilo que achar necessário */
}


.btn-primary {
    background-color: #e8b320;
    border-color: #e8b320;
    transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #e8b320;
    border-color: #ffffff;
    border: 1px solid;
}

.btn-outline-light:hover {
    background-color: #e8b320 !important;
    border-color: #ffffff;
    color: #ffffff;
}

.footer {
    background-color: #008b8b;
    color: #fff;
}

.footer h5 {
    color: #fff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.maildpo {
    color: #ffffff !important;
    font-weight: bold;
}

@media (max-width: 767px) {
    .navbar {
        height: auto;
        /* Ajuste a altura da navbar para dispositivos móveis */
    }

    .navbar-brand img.logo {
        height: 80px;
        /* Ajuste a altura da logo proporcionalmente para dispositivos móveis */
    }

    .hero-content {
        position: static;
        transform: none;
        margin: 20px 0;
        padding: 20px;
        width: 90%;
        box-sizing: border-box;
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Reduzir tamanho da fonte para dispositivos móveis */
        padding: 10px 15px;
        width: 100%;
    }

    .navbar-nav .nav-item .nav-link {
        padding-bottom: 8px;
    }

    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        text-align: left;
        box-shadow: none;
    }

}

/* Section Contratos */

.contract-section {
    background-color: #008b8b;
    /* Cor verde utilizada no site */
    padding: 20px 0;
}

.contract-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.contract-section .fa-file-signature {
    margin-right: 10px;
}

.contract-section .contract-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.contract-section .fa-file-text {
    margin-right: 15px;
    /* Ajuste o valor conforme necessário */
}

/*section contratos*/

.filter-options-section {
    background-color: #f8f9fa;
    /* ou qualquer cor de fundo que combine com o site */
}

.btn-primary {
    background-color: #008b8b;
    border-color: #008b8b;
}

.fale-conosco {
    background: #e8b320;

}



.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-warning {
    background-color: #e8b320;
    border-color: #e8b320;
}

.btn-warning:hover {
    background-color: #d39e00;
    border-color: #d39e00;

}

.form-label {
    font-weight: bold;
    color: #008b8b;
    /* cor verde do site */
}

/*section gráfico */
.chart-section {
    background-color: #f8f9fa;
}

.card {
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
}

/* Mudar seletor datatable */
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before {
    content: "-";
    background-color: #d39e00 !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    content: "+";
    background-color: #008b8b !important;
}

/* Perguntas Frequentes */
.accordion-button {
    text-decoration: none;
    font-weight: bold;
}

.accordion-button i {
    margin-right: 10px;
}

.accordion-button::after {
    display: none;
}

.accordion-body {
    font-size: 0.9rem;
}
.perguntas-frequentes{
    color:#ffffff;
}
.icon-pq{
    color:#008b8b;
}

/* Datatable Adicionar distância dos botões */
div.dataTables_wrapper div.dataTables_length label {
    margin-top: 10px;
}

/* portaria datatable */

.dataTable a {
    color: #008b8b;
    text-decoration: none;
}
.dataTable a:hover {
    color: #d39e00;
}
.accordion .card-header {
    cursor: pointer;
}
.accordion .card-body {
    display: none;
}
.accordion .card.show .card-body {
    display: block;
}

/* Css página Legislação */

.content-section {
    margin-top: 20px;
}
.legislation-item {
    margin-bottom: 15px;
    padding: 15px;
    border-left: 4px solid #d39e00;
    background-color: #f8f9fa;
}
.legislation-title {
    font-size: 1.25rem;
    color: #008b8b;
    text-decoration: none !important;
    font-weight: bold;
}
.legislation-item a{
    text-decoration: none !important;
}
.legislation-title:hover {
    color: #d39e00;
}
.legislation-desc {
    margin-top: 5px;
    color: #555;
}

 /* Nova classe zpe-color1 */
 .zpe-color1 {
    background-color: #1c9c9e !important;
    color: #ffffff !important;
}

/* Estilos para o modal */
.modal-header {
    background-color: #1c9c9e;
    color: #ffffff;
}

   /* Estilos para a tabela de despesas */
   .expenses-list-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Estilos para a seção de despesas */
.expense-section {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.expense-section .expense-text {
    font-size: 2rem;
    font-weight: bold;
    margin-left: 15px;
}

/* Estilos para o formulário de filtros */
.filter-options-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.filter-options-section .form-label {
    font-weight: 600;
}

.filter-options-section .btn-primary {
    width: 150px;
}


@media (max-width: 991.98px) {
  .navbar {
    position: relative;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0 0 0.5rem 0.5rem;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTRATOS AGRUPADOS — Estilos para child rows e componentes
   ═══════════════════════════════════════════════════════════════ */

/* ── Toggle Button (+ / −) ── */
td.details-control {
    cursor: pointer;
    text-align: center;
    vertical-align: middle !important;
}

td.details-control .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #1c9c9e;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

tr.shown td.details-control .toggle-icon {
    background-color: #d39e00;
    transform: rotate(0deg);
}

td.details-control:hover .toggle-icon {
    transform: scale(1.15);
}

/* ── Status Dot ── */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.status-dot.status-ativo {
    background-color: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.status-dot.status-vencido {
    background-color: #dc3545;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

/* ── Badge de Aditivos ── */
.badge-aditivos {
    background-color: #e8b320;
    color: #fff;
    font-size: 0.7em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.3px;
}

/* ── Container da Child Row ── */
.grouped-contract-detail {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f9 100%);
    border-left: 4px solid #1c9c9e;
    border-radius: 0 8px 8px 0;
    margin: 4px 0;
}

/* ── Card de Resumo Financeiro ── */
.contract-summary-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0eded;
}

.contract-summary-card .summary-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1c9c9e;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8b320;
}

.contract-summary-card .summary-title i {
    margin-right: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.summary-item {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
}

.text-primary-zpe {
    color: #1c9c9e;
}

.text-success-zpe {
    color: #28a745;
}

.text-danger-zpe {
    color: #dc3545;
}

.text-info-zpe {
    color: #17a2b8;
}

/* ── Card de Termos do Contrato ── */
.contract-terms-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0eded;
}

.contract-terms-card .terms-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1c9c9e;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8b320;
}

.contract-terms-card .terms-title i {
    margin-right: 8px;
}

/* ── Tabela de Termos ── */
.terms-table {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.terms-table thead th {
    background-color: #f0f9f9;
    color: #1c9c9e;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #1c9c9e;
    padding: 8px 10px;
    white-space: nowrap;
}

.terms-table tbody td {
    padding: 8px 10px;
    vertical-align: middle;
}

/* Linha do contrato original */
tr.termo-original {
    background-color: #e8f8f5 !important;
    font-weight: 600;
}

tr.termo-original td:first-child {
    color: #1c9c9e;
}

tr.termo-original i {
    color: #1c9c9e;
    margin-right: 4px;
}

/* Linha do aditivo */
tr.termo-aditivo {
    background-color: #fff9e6 !important;
}

tr.termo-aditivo td:first-child {
    color: #d39e00;
}

tr.termo-aditivo i {
    color: #e8b320;
    margin-right: 4px;
}

/* ── Botão de Ações ── */
.contract-actions {
    text-align: right;
    padding-top: 4px;
}

.btn-grouped-payments {
    background: linear-gradient(135deg, #1c9c9e, #17a2b8);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(28, 156, 158, 0.3);
}

.btn-grouped-payments:hover {
    background: linear-gradient(135deg, #17a2b8, #1c9c9e);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(28, 156, 158, 0.4);
    color: #ffffff;
}

.btn-grouped-payments i {
    margin-right: 6px;
}

/* ── Responsividade ── */
@media (max-width: 767px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .grouped-contract-detail {
        padding: 12px;
    }

    .terms-table {
        font-size: 0.78rem;
    }

    .contract-summary-card,
    .contract-terms-card {
        padding: 12px;
    }
}

/* ── Animação de abertura da child row ── */
tr.shown + tr > td {
    padding: 0 !important;
}

tr.shown + tr > td > .grouped-contract-detail {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   RECEITAS AGRUPADAS — Estilos específicos para child rows
   ═══════════════════════════════════════════════════════════════ */

/* ── Linhas de ano na sub-tabela ── */
tr.receita-year-row {
    transition: background-color 0.15s ease;
}

tr.receita-year-row:hover {
    background-color: #e8f8f5 !important;
}

tr.receita-year-row td:first-child i {
    color: #1c9c9e;
    margin-right: 6px;
}

/* ── Progress bar de percentual ── */
.receita-year-row .progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.receita-year-row .progress-bar {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: width 0.4s ease;
}
