﻿.box-conteudo-central {
    overflow: visible;
    height: auto;
    padding: 0px;
    background-color: none;
    border-radius: 8px;
    width: 85%;
}

.icone-separado {
    margin-left: 5px;
}

.secao-paginacao {
    margin-top: 15px;
}

.table-responsive {
    max-height: 900px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: -50px;
}

.table {
    margin: 0px;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #ddd;
}


.box-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#btnExportarPesquisa {
    background-color: white;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
}

    #btnExportarPesquisa img {
        margin-right: 8px;
        width: 20px;
        height: auto;
    }

    #btnExportarPesquisa:hover {
        background-color: #f8f9fa;
    }

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 11.5px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    word-wrap: break-word;
    max-width: 200px;
}

    td.tabela-resumo {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

thead tr {
    background-color: #CED4DA !important;
    color: #212529 !important;
    border-bottom: 1px solid #ddd;
}

th {
    text-align: center;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    height: 50px;
    border: 1px solid #ddd !important;
    align-items: center;
    justify-content: space-between;
}

.col-numero {
    width: 80px
}

.col-numero-pca {
    width: 125px;
}

.col-unidade-gestora {
    width: 120px;
}

.col-ano {
    width: 80px;
}

.col-setor-responsavel {
    width: 160px
}

.col-quantidade-DFD {
    width: 80px;
}

.col-valor-total-planejado {
    width: 160px;
}

.col-valor-total-executado {
    width: 160px;
}

.col-data-aprovacao {
    width: 120px;
}

th .seta {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-image: url('../../../../Core/Images/icones/ic_seta_filtro.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

th.ordem-asc .seta {
    transform: rotate(180deg);
    margin-bottom: 3px;
}

th.ordem-desc .seta {
    transform: rotate(0deg);
}

th .setaItem {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-image: url('../../../../Core/Images/icones/ic_seta_filtro.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

th.ordem-asc-item .setaItem {
    transform: rotate(180deg);
    margin-bottom: 3px;
}

th.ordem-desc-item .setaItem {
    transform: rotate(0deg);
}

th.ordem-asc-gestor-fiscal .setaItem {
    transform: rotate(180deg);
    margin-bottom: 3px;
}

th.ordem-desc-gestor-fiscal .setaItem {
    transform: rotate(0deg);
}

th.ordem-asc-contratos-termos .setaItem {
    transform: rotate(180deg);
    margin-bottom: 3px;
}

th.ordem-desc-contratos-termos .setaItem {
    transform: rotate(0deg);
}

th.ordem-asc-documentos .setaItem {
    transform: rotate(180deg);
    margin-bottom: 3px;
}

th.ordem-desc-documentos .setaItem {
    transform: rotate(0deg);
}

th.ordem-asc-historico .setaItem {
    transform: rotate(180deg);
    margin-bottom: 3px;
}

th.ordem-desc-historico .setaItem {
    transform: rotate(0deg);
}

.pagination {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

#numerosPaginas {
    display: flex;
    gap: 0px;
}

.page-item .page-link {
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
}

    .page-item .page-link:hover {
        background-color: #f1f1f1;
        border-color: #007bff;
    }

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

#formFiltros .form-label {
    font-weight: 500;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.flatpickr-calendar {
    background-color: #F8FAFC !important;
}

    .flatpickr-calendar .flatpickr-weekdays {
        color: #212529 !important;
    }

    .flatpickr-calendar .flatpickr-day {
        color: #6C757D !important;
    }

    .flatpickr-calendar .flatpickr-month {
        color: #6C757D !important;
    }

    .flatpickr-calendar .flatpickr-year {
        color: #6C757D !important;
    }

    .flatpickr-calendar .flatpickr-day.selected {
        background-color: #0069D9 !important;
        color: #fff !important;
    }

    .flatpickr-calendar .flatpickr-day:hover {
        background-color: #3D8BFD !important;
    }

    .flatpickr-calendar .flatpickr-prev-month,
    .flatpickr-calendar .flatpickr-next-month {
        color: #6C757D !important;
    }

.btn-aplicar {
    background-color: #0D6EFD !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-limpar {
    background-color: transparent !important;
    color: #6C757D !important;
    border: 1px solid #6C757D !important;
}

.btn-search {
    background-color: #3D8BFD !important;
    border: none !important;
    padding: 0.375rem 0.75rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-group .btn-search {
    margin-left: 8px;
}

.btn-search img {
    width: 20px;
    height: 20px;
}

.btn-search:hover {
    background-color: #356ab3 !important;
}

/*#filtrosConteudo {
            display: none;
        }*/

#filtros {
    /*max-width: 75%;*/
    margin-top: -60px;
}

.titulo-lista {
    margin-top: -30px;
}

.modal-detalhes {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1100px;
    max-height: 95vh;
    background-color: #fff;
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.d-flex.align-items-center {
    display: flex;
    align-items: center;
}

.flex-grow-1 {
    flex-grow: 1;
}

.btn-custom {
    border: 1px solid #6C757D;
    color: #6C757D;
    background-color: white;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-height: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    filter: none !important;
    opacity: 1 !important;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 1rem;
    flex-shrink: 0;
}

    .modal-header .btn-fechar {
        border: none;
        background: none;
        font-size: 1.5rem;
        color: #6c757d;
        cursor: pointer;
    }

        .modal-header .btn-fechar:hover {
            color: #343a40;
        }

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.modal .form-group {
    margin-bottom: 1rem;
}

.modal .table {
    width: 100%;
    margin-top: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

    .modal .table th,
    .modal .table td {
        padding: 8px;
        text-align: left;
    }

.modal .btn {
    margin-top: 8px;
}

.alert {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

    .modal-footer .btn + .btn {
        margin-left: 5px;
    }

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #9e9e9e;
    }

#selecoesUnidadesGestoras {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

#selecoesContratadas {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    border-radius: 0.2rem;
    background-color: #44546A;
    color: #fff;
    margin-bottom: 3px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .badge .text {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.btn-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.6rem;
    color: #ffffff;
    margin-left: 3px;
    line-height: 1;
    display: inline-block;
}

    .btn-close:hover {
        color: #ffffff;
        opacity: 0.8;
    }

.resumo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

.resumo-titulo {
    flex: none;
    margin-left: 14px;
    min-width: 200px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

#toggleDetalhes {
    display: flex;
    align-items: center;
    height: 100%;
    outline: none !important;
    box-shadow: none !important;
}

    #toggleDetalhes:focus {
        outline: none !important;
        box-shadow: none !important;
        transition: none !important;
    }

.card-body {
    transition: none !important;
    backdrop-filter: none !important;
}

:root {
    animation: none !important;
    transition: none !important;
}

.card {
    will-change: auto !important;
    contain: layout paint style !important;
}

.d-none {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.card:hover,
.card-body:hover {
    background: inherit !important;
    box-shadow: none !important;
    transition: none !important;
}

.small-fonts-table thead {
    background-color: #E9ECEF !important;
}

.small-fonts-table tbody tr:nth-child(odd) {
    background-color: #FFFFFF !important;
}

.small-fonts-table tbody tr:nth-child(even) {
    background-color: #F9FAFC !important;
}

.small-fonts-table thead th {
    color: #212529 !important;
}

.small-fonts-table td {
    color: #525252 !important;
}

.displayNone {
    display: none;
}

#loadingMessage {
    position: absolute;
    right: 0;
    margin-bottom: 10px;
    background-color: #d4edda;
    color: #155724;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 8px;
    top: -5px;
    display: flex; /* mantém flex, mas com opacidade controlada */
    justify-content: center;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1000;
}

    #loadingMessage.show {
        opacity: 1;
        visibility: visible;
    }


#cabecalho-dfd{
    padding: 0px 0px 30px;
}