body .gcl-container {
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  background-color: #F7F7F7;
  padding: 0;
  box-sizing: border-box;
}

#gcl-listagem {
  background-color: #F7F7F7;
  width: 100%;
  padding: 0;
}

#gcl-resultados-container {
  margin-bottom: 40px;
  padding: 0 15px 20px;
  background-color: #F7F7F7;
}

.gcl-filtros-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 96px 56px 56px;
  gap: 32px;
  width: 100%;
  background: #F7F7F7;
  margin-bottom: 32px;
  box-sizing: border-box;
}

.gcl-search-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.gcl-search-bar {
  flex: 1;
  position: relative;
}

.gcl-search-wrapper {
  position: relative;
  width: 100%;
}

.gcl-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6E6E6E;
  font-size: 24px;
  z-index: 1;
}

#gcl-search-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 13px 16px;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 500px;
  font-size: 18px;
  color: #6E6E6E;
  outline: none;
  padding-right: 48px;
}

#gcl-search-input:focus {
  border-color: #0073aa;
}

#gcl-search-input::placeholder {
  color: #6E6E6E;
  opacity: 0.8;
}

.gcl-filters-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 52px;
}

.gcl-filter-label {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #000000;
}

.gcl-select {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 16px;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  height: 52px;
  font-size: 18px;
  color: #1A1A1A;
  min-width: 140px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%231A1A1A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  padding-right: 40px;
}

.gcl-select:focus {
  outline: none;
  border-color: #0073aa;
}

.gcl-select-unidade {
  min-width: 220px;
}

.gcl-select-modalidade {
  min-width: 180px;
}

.gcl-select-tipo {
  min-width: 150px;
}

.gcl-select-vigencia {
  min-width: 180px;
}

.gcl-select-ano {
  min-width: 120px;
}

.gcl-card {
  box-sizing: border-box;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #FFFFFF;
  padding-bottom: 2px;
  width: 100%;
  max-width: 100%;
}

.gcl-header {
  padding: 24px 24px 28px 24px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 114px;
  background: #FFFFFF;
  flex-wrap: wrap;
}

.gcl-title {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #1A1A1A;
  width: 100%;
  height: auto;
  margin-bottom: 2px;
}

.gcl-header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  width: calc(100% - 56px);
}

.gcl-process-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
  width: 100%;
  min-height: 26px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.gcl-process-number {
  font-family: 'Poppins';
  font-size: 14px;
  line-height: 20px;
  color: #1A1A1A;
  margin-right: 12px;
}

.gcl-process-number-label {
  font-family: 'Poppins';
  font-weight: 600 !important;
  font-size: 14px;
  line-height: 20px;
  color: #1A1A1A;
}

.gcl-process-number-value {
  font-family: 'Poppins';
  font-weight: 500 !important;
  font-size: 14px;
  line-height: 20px;
  color: #1A1A1A;
}

.gcl-status {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 26px;
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.25px;
  color: #1A1A1A;
}

.gcl-status-label {
  color: #1A1A1A;
  font-weight: 600;
}

.gcl-status-value {
  font-weight: 600;
}

.gcl-verde {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: #28A745;
}

.gcl-toggle {
  width: 32px;
  height: 32px;
  font-size: 24px;
  cursor: pointer;
  transform: matrix(-1, 0, 0, 1, 0, 0);
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcl-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.gcl-body {
  padding: 20px;
  display: none;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.gcl-body p {
  margin: 0 0 8px;
}

.gcl-link {
  color: #004BE0 !important;
}

.gcl-link:hover {
  text-decoration: underline;
  color: #004BE0 !important;
}

.gcl-loader {
  display: none;
  text-align: center;
  padding: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.gcl-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #0073aa;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
  display: inline-block;
}

#gcl-load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  background: transparent;
  min-height: 80px;
  flex-direction: column;
  margin: 0 auto;
  text-align: center;
}

#gcl-load-more p {
  margin: 10px 0 0;
  font-size: 16px;
  color: #555;
  font-family: 'Poppins', sans-serif;
}

/* Status de vigência */
.gcl-status-aberto {
  color: #28A745;
}

.gcl-status-encerrado {
  color: #dc3545;
}

.gcl-status-futuro {
  color: #ffc107;
}

.gcl-no-results {
  text-align: center;
  font-size: 18px;
  color: #6E6E6E;
  padding: 30px 0;
  font-weight: 500;
  background: #f7f7f7;
  border-radius: 8px;
  margin: 20px 0;
}

.gcl-end-results {
  text-align: center;
  font-size: 14px;
  color: #6E6E6E;
  padding: 15px 0;
  font-weight: 400;
  border-top: 1px solid #EEEEEE;
  margin: 20px 0 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsividade para os filtros */
@media (max-width: 1400px) {
  .gcl-filtros-container {
    padding: 56px 32px 32px;
  }
  
  .gcl-filters-row {
    flex-wrap: wrap;
    height: auto;
    gap: 16px;
  }
  
  .gcl-search-row {
    flex-wrap: wrap;
  }
  
  .gcl-title {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (max-width: 992px) {
  .gcl-title {
    font-size: 20px;
    line-height: 28px;
  }
  
  .licitacao-info-esquerda,
  .licitacao-info-direita {
    flex: 1 1 100%;
  }
  
  .linha-info {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .gcl-filtros-container {    
    padding: 24px 16px;
    gap: 16px;
  }

  .gcl-filters-row,
  .gcl-search-row {
    flex-direction: column;
    gap: 16px;
    height: auto;
    align-items: flex-start;
  }

  .gcl-select,
  #gcl-search-input {
    width: 100%;
    min-width: 100%;
  }

  .gcl-title {
    font-size: 20px;
    line-height: 28px;
  }

  .gcl-header {
    padding: 16px;
    gap: 16px;
    min-height: auto;
  }

  .gcl-process-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gcl-status {
    width: 100%;
  }

  .licitacao-conteudo {
    padding: 16px;
  }

  .linha-info {
    flex-direction: column;
    gap: 8px;
  }

  .rotulo, .valor {
    width: 100%;
  }

  .anexos-titulo {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .botao-anexo a {
    padding: 12px 16px;
  }

  /* Estilo específico para a descrição no mobile */
  .gcl-body p {
    width: 316px;    
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    color: #1A1A1A;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin-bottom: 16px;
  }


  /* Ajustes específicos para o card aberto em mobile */
  .gcl-card.aberto {
    margin: 0 auto;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #CCCCCC;
  }

  .gcl-card.aberto .gcl-header {
    border-bottom: 1px solid #CCCCCC;
  }

  .gcl-card.aberto .gcl-body {
    padding: 16px;
  }

  .gcl-card.aberto .gcl-process-info {
    margin-bottom: 16px;
  }

  .gcl-card.aberto .gcl-status {
    margin-top: 8px;
  }

  .gcl-card.aberto .licitacao-conteudo {
    padding: 0;
  }

  .gcl-card.aberto .linha-info {
    margin-bottom: 16px;
  }

  .gcl-card.aberto .anexos {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .gcl-card {
    margin-bottom: 16px;
  }
  
  .gcl-title {
    font-size: 16px;
    line-height: 24px;
  }
  
  .botao-anexo {
    flex-wrap: wrap;
  }
}

/* Estilos para o card de licitação aberto */
.licitacao-card-aberto {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 0 !important;
  position: relative;
}

.licitacao-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 24px;
  gap: 24px;
  height: 114px;
  background-color: #FFFFFF;
  position: relative;
}

.licitacao-conteudo {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.linha-info {
  display: flex;
  flex-direction: row;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}

.licitacao-info-esquerda {
  flex: 1 1 60%;
  min-width: 300px;
}

.licitacao-info-direita {
  flex: 1 1 30%;
  min-width: 250px;
}

.info-nome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 40px);
}

.situacao {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.25px;
  color: #1A1A1A;
}

.disponivel {
  color: #28A745;
}

.titulo {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #1A1A1A;
  margin: 0;
}

.btn-fechar {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1A1A1A;
  z-index: 10;
}

.rotulo {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #1A1A1A;
  margin-bottom: 4px;
}

.valor {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1A1A1A;
  margin-bottom: 16px;
}

.licitacao-info-direita p {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.licitacao-info-direita p strong {
  font-weight: 600;
}

.divider {
  width: 100%;
  max-width: 100%;
  height: 0px;
  border: none;
  border-top: 1px solid #CCCCCC;
  margin: 8px 0;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
}

.anexos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.anexos-titulo {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #1A1A1A;
  margin-bottom: 16px;
}

.botao-anexo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.botao-anexo .material-icons {
  color: #004BE0;
  font-size: 24px;
  min-width: 24px;
}

.botao-anexo a {
  font-family: 'Poppins';
  font-size: 16px;
  font-weight: 500;
  color: #004BE0;
  text-decoration: none;
}

.botao-anexo a:hover {
  text-decoration: underline;
}

/* Links e emails */
a, a:visited, 
.valor a, .valor a:visited, 
.gcl-info-value a, .gcl-info-value a:visited,
.botao-anexo a, .botao-anexo a:visited {
  color: #004BE0;
  text-decoration: none;
}

a:hover, 
.valor a:hover, 
.gcl-info-value a:hover,
.botao-anexo a:hover {
  text-decoration: underline;
  color: #004BE0;
}

/* Reset de outros estilos de link que possam interferir */
.gcl-link {
  color: #004BE0 !important;
}

.gcl-link:hover {
  text-decoration: underline;
  color: #004BE0 !important;
}

/* Links na descrição */
.gcl-link-blue, 
.gcl-link-blue:visited, 
.gcl-link-blue:hover,
.gcl-link-blue:active,
.valor a.gcl-link-blue,
.gcl-info-value a.gcl-link-blue {
  color: #004BE0 !important;
  text-decoration: none;
}

.gcl-link-blue:hover {
  text-decoration: underline;
}

/* Card aberto - esconder número do processo no cabeçalho quando o card está aberto */
.gcl-card.aberto .gcl-process-number {
  display: none;
}
