/**
 * @version     CVS: 1.0.1
 * @package     com_agendacoop
 * @subpackage  mod_agendacoop
 * @copyright   2025 Humberto Dias Soares Junior
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Humberto Dias Soares Junior <humberto.junior@ths.inf.br>
 */

.conteudo-pesquisa {
    /*max-width: 1000px;*/
    margin: 0 auto;
    padding: 20px;
}

.conteudo-pesquisa .lista-resultados {
    margin-top: 20px;
}

.conteudo-pesquisa .resultado-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.conteudo-pesquisa .resultado-item h3 {
    margin-bottom: 5px;
}

.conteudo-pesquisa .resultado-item mark {
    background-color: #fff3b0;
    color: #000;
}

#pesquisa-box-agendacoop .autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

#pesquisa-box-agendacoop .autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

#pesquisa-box-agendacoop .autocomplete-item:hover {
    background: #f0f0f0;
}

/* limita largura geral */
/* centraliza e limita largura */
#conteudo-pesquisa .search-wrapper {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 0 auto; /* centraliza */
}

/* input */
#conteudo-pesquisa .search-wrapper .form-control {
    width: 100%;
    border-radius: 30px;
    padding: 10px 15px 10px 55px; /* espaço maior pra caber o círculo */
    border: 1px solid #ccc;
    height: 45px;
}

/* ícone com fundo azul */
#conteudo-pesquisa .search-wrapper .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    border-radius: 50%;

    background-color: #171c66; /* azul escuro */
    color: #fff; /* ícone branco */

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    pointer-events: none;
}



/* Filtros */
#conteudo-pesquisa .area-filtros {
    background: #FFFFFF 0 0 no-repeat padding-box;
    box-shadow: 0 3px 6px #00000029;
    border-radius: 10px;
    margin: 20px 0 20px 20px;
    padding: 20px;
}

#conteudo-pesquisa .area-filtros h4 {
    font: normal normal 500 16px/18px "Intro Regular";
    letter-spacing: 0;
    color: #0C1249;
    margin-bottom: 30px;
}

#conteudo-pesquisa .filtros {
    display: flex;
    flex-direction: column;
}

#conteudo-pesquisa .filtros .accordion-button {
    font: normal normal 400 14px/19px 'Inter';
    letter-spacing: 0;
    color: #00166B;
}

#conteudo-pesquisa .filtros .accordion-button:focus {
    border-color: unset;
    box-shadow: unset;
}

#conteudo-pesquisa .filtros .accordion-button:not(.collapsed) {
    background-color: unset;
}

#conteudo-pesquisa .filtros .accordion-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#conteudo-pesquisa .filtros input:focus {
    box-shadow: unset;
}

#conteudo-pesquisa .filtros .ramos {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

#conteudo-pesquisa .filtros .ramos .ramo-item {
    width: 110px;
    border-radius: 20px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    cursor: pointer;
}

#conteudo-pesquisa .filtros .ramos .ramo-item-color {
    /* border: 1px solid #5883D0; Cor ao passar o mouse */
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img div {
    width: 72px;
    height: 72px;
    background-position: center;
    background-size: 72px;
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-agropecuario {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_agro_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-consumo {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_consumo_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-credito {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_cred_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-infraestrutura {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_infra_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-trabalho-producao-de-bens-e-servicos {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_trabalho_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-transporte {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_transp_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-saude {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_saude_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-seguros {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_seguros_146px.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-todos-os-ramos {
    background-image: url("/media/mod_agendacooppesquisa/img/ramo_todos_146px.svg");
    background-size: 72px;
    background-repeat: no-repeat;
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-agropecuario-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_agro_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-consumo-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_consumo_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-credito-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_cred_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-infraestrutura-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_infra_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-trabalho-producao-de-bens-e-servicos-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_trabalho_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-transporte-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_transp_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-saude-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_saude_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-seguros-color {
    background-image: url('/media/mod_agendacooppesquisa/img/ramo_seguros_ativo.svg');
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-img .img-todos-os-ramos-color {
    background-image: url("/media/mod_agendacooppesquisa/img/ramo_todos_ativo.svg");
    background-size: 72px;
    background-repeat: no-repeat;
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-titulo {
    text-align: center;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    font-family: 'Inter';
    letter-spacing: 0;
    color: #B3B3B3;
    opacity: 1;
    padding-top: 5px;
}

#conteudo-pesquisa .filtros .ramos .ramo-item .ramo-titulo-color {
    color: #5883D0 !important; /* Cor do texto ao passar o mouse */
}

#conteudo-pesquisa .filtros label {
    font: normal normal 400 12px/20px "Intro Regular";
    letter-spacing: 0;
    color: #0C1249;
}

#conteudo-pesquisa .filtros .input-group {
    max-width: 150px;
}

#conteudo-pesquisa .filtros .input-group i {
    color: #171C66;
    position: absolute;
    z-index: 1;
    margin: 10px 15px;
    left: 0;
    top: 0;
    font-size: 20px;
}

#conteudo-pesquisa .filtros .input-group i {
    color: #171C66;
    position: absolute;
    z-index: 1;
    margin: 10px 15px;
    left: 0;
    top: 0;
    font-size: 20px;
}

#conteudo-pesquisa .filtros .btn-mod-azul {
    background: #171C66 0 0 no-repeat padding-box;
    border-radius: 20px;
    text-align: center;
    font: normal normal 500 14px/16px 'Inter';
    letter-spacing: 0;
    color: #FFFFFF;
    padding: 15px 70px;
    margin: 30px;
}

#conteudo-pesquisa .filtros .btn-mod-azul:hover {
    background: #5883D0 0 0 no-repeat padding-box;
}

#conteudo-pesquisa .mod-pagination {
    padding: 10px;
    font-style: normal;
    font-variant: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    font-family: "Intro Regular";
    letter-spacing: 0;
    color: #000000;
    width: 100%;
    max-width: 1110px;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 55px auto 0 auto  !important;
}

#conteudo-pesquisa .mod-pagination .mod-pagination-inicio,
#conteudo-pesquisa .mod-pagination .mod-pagination-anterior,
#conteudo-pesquisa .mod-pagination .mod-pagination-nummenor,
#conteudo-pesquisa .mod-pagination .mod-pagination-nummenor,
#conteudo-pesquisa .mod-pagination .mod-pagination-proximo,
#conteudo-pesquisa .mod-pagination .mod-pagination-final {
    font-weight: bold !important;
}

#conteudo-pesquisa .mod-pagination .mod-pagination-inicio,
#conteudo-pesquisa .mod-pagination .mod-pagination-anterior,
#conteudo-pesquisa .mod-pagination .mod-pagination-proximo,
#conteudo-pesquisa .mod-pagination .mod-pagination-final {
    color: #18186A !important;
    cursor: pointer !important;
}

#loading-busca {
    text-align: center !important;
    font-style: normal !important;
    font-variant: normal !important;
    font-weight: normal !important;
    font-size: 18px !important;
    line-height: 16px !important;
    font-family: "Inter" !important;
    letter-spacing: 0;
    color: #00166B;
    opacity: 1;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 20px;
}

#loading-busca img {
    width: 150px !important;
    margin-bottom: 50px;
}

#loading-busca #loading-text {
    flex: 100% !important;
}

.custom-swal {
    border-radius: 20px !important;
}



/* itens resultado busca */
#conteudo-pesquisa .area-artigo {
    display: flex;
    align-items: stretch; /* Faz com que a altura do conteúdo e da imagem sejam iguais */
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #DCDCDC;
}

#conteudo-pesquisa .area-artigo:last-child {
    border-bottom: none; /* Remove a borda inferior da última div */
}

#conteudo-pesquisa .info-artigo {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#conteudo-pesquisa .cat-dt {
    color: #0C1249;
    font: normal normal 600 10px/18px "Inter";
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Espaçamento entre a data/categoria e o título */
}

#conteudo-pesquisa .info-categoria {
    margin-right: 15px; /* Espaçamento entre a categoria e a data */
}

#conteudo-pesquisa h4 {
    font: normal normal 400 16px/18px "Intro Regular";
    color: #18186A;
    margin-bottom: 15px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    flex-grow: unset; /* Faz o título ocupar o máximo de espaço disponível */
}

#conteudo-pesquisa .artigo-descricao {
    font: normal normal 400 12px/17px "Inter";
    color: #00166B;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

@media (max-width: 991.98px) {
    #conteudo-pesquisa .filtros {
        display: none;
    }
    #conteudo-pesquisa .search-wrapper {
        width: 100%;
    }
}