/* ==========================================================================
   CONECT PREFEITURA - ARCHIVE & SEARCH UNIVERSAL STYLES (PRD 04)
   Autor: Leandro Kywdery (https://conectsistemas.com.br) - 30/09/2026 12:20:00
   Versão: 2.7.0
   ========================================================================== */

/* Container Principal do Archive */
.conect-archive-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px 20px;
}

/* ==========================================================================
   1. BREADCRUMBS
   ========================================================================== */
.conect-archive-breadcrumbs {
  margin-bottom: 20px;
}

.conect-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.conect-breadcrumb-item a {
  color: #005a36;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.conect-breadcrumb-item a:hover {
  color: #003e25;
  text-decoration: underline;
}

.conect-breadcrumb-separator {
  color: #cbd5e1;
  user-select: none;
}

.conect-breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
}

/* ==========================================================================
   2. CABEÇALHO DO ARCHIVE & SEARCH
   ========================================================================== */
.conect-archive-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.conect-archive-title-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.conect-archive-title {
  color: #003e25;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}

.pm-search-keyword {
  color: #005a36;
  background: #eef7f2;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-weight: 800;
}

.conect-archive-counter-badge {
  display: inline-flex;
  align-items: center;
  background: #eef7f2;
  color: #005a36;
  border: 1px solid #c7e6d4;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.conect-archive-description p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
}

/* Formulário de Refinamento de Busca */
.conect-search-refine-box {
  margin-top: 1.25rem;
  max-width: 600px;
}

.conect-search-refine-form .conect-search-input-group {
  display: flex;
  gap: 8px;
}

.conect-search-refine-form .conect-search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.conect-search-refine-form .conect-search-field:focus {
  background: #ffffff;
  border-color: #005a36;
  box-shadow: 0 0 0 3px rgba(0, 90, 54, 0.12);
}

.conect-search-refine-form .conect-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #005a36;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.conect-search-refine-form .conect-search-submit:hover {
  background: #003e25;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 62, 37, 0.2);
}

/* ==========================================================================
   3. BARRA DE BUSCA E FILTROS DO ARCHIVE
   ========================================================================== */
.conect-archive-filters-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 35px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.conect-filter-inputs-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.conect-filter-group.conect-filter-search {
  flex: 2 1 320px;
}

.conect-filter-group.conect-filter-tax,
.conect-filter-group.conect-filter-ano,
.conect-filter-group.conect-filter-secretaria,
.conect-filter-group.conect-filter-order {
  flex: 1 1 180px;
}

.conect-filter-group.conect-filter-ano {
  max-width: 170px;
}

.conect-filter-group {
  position: relative;
}

.conect-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.conect-search-input-wrapper .dashicons,
.conect-search-input-wrapper svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.conect-search-input-wrapper input[type="search"] {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.conect-search-input-wrapper input[type="search"]:focus {
  background: #ffffff;
  border-color: #005a36;
  box-shadow: 0 0 0 3px rgba(0, 90, 54, 0.15);
}

.conect-filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.conect-filter-select:focus {
  background: #ffffff;
  border-color: #005a36;
  box-shadow: 0 0 0 3px rgba(0, 90, 54, 0.15);
}

.conect-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.conect-btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #005a36;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.conect-btn-filter:hover {
  background: #003e25;
  box-shadow: 0 2px 6px rgba(0, 62, 37, 0.25);
}

.conect-btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.conect-btn-clear-filters:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* ==========================================================================
   4. LAYOUT DO ARCHIVE & SEARCH
   ========================================================================== */
.conect-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.conect-archive-main-column {
  min-width: 0;
}

.conect-archive-fullwidth {
  width: 100%;
  max-width: 100%;
}

.conect-archive-sidebar-column {
  min-width: 0;
}

/* Grid de Cards Expandido em 3 Colunas */
.conect-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}

/* Card Individual */
.conect-archive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.conect-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 62, 37, 0.09);
  border-color: #c7e6d4;
}

/* Imagem Destacada */
.conect-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.conect-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.conect-card-thumb {
  width: 100%;
  height: 100%;
}

.conect-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.conect-archive-card:hover .conect-card-img {
  transform: scale(1.05);
}

.conect-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #94a3b8;
}

/* Badges sobrepostas na imagem */
.conect-card-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.conect-card-badge {
  background: rgba(0, 62, 37, 0.92);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}

.conect-card-badge:hover {
  background: #005a36;
  color: #ffffff;
}

/* Corpo do Card */
.conect-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.conect-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

.conect-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.conect-card-date svg {
  color: #005a36;
}

.conect-card-files-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef7f2;
  color: #005a36;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid #c7e6d4;
  margin-left: auto;
}

.conect-card-files-count svg {
  color: #005a36;
}

.conect-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conect-card-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.conect-card-title a:hover {
  color: #005a36;
}

.conect-card-excerpt {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.conect-card-excerpt p {
  margin: 0;
}

/* Destaques de Campos Personalizados */
.conect-card-fields-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.conect-card-field-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #334155;
}

.conect-card-field-pill strong {
  color: #0f172a;
  font-weight: 600;
}

/* Rodapé do Card com Botão Leia Mais */
.conect-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.conect-card-btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #005a36;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.15s ease;
}

.conect-card-btn-more:hover {
  color: #003e25;
  gap: 10px;
}

/* ==========================================================================
   5. PAGINAÇÃO UNIVERSAL
   ========================================================================== */
.conect-archive-pagination,
.conect-archive-pagination-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.conect-pagination-list,
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.conect-pagination-item a,
.conect-pagination-item span,
.pagination .nav-links a,
.pagination .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  transition: all 0.2s ease;
}

.conect-pagination-item a:hover,
.pagination .nav-links a:hover {
  background: #005a36;
  color: #ffffff;
  border-color: #005a36;
}

.conect-pagination-item.is-active span.current,
.pagination .nav-links span.current {
  background: #005a36;
  color: #ffffff;
  border-color: #005a36;
  box-shadow: 0 2px 6px rgba(0, 90, 54, 0.25);
}

/* ==========================================================================
   6. ESTADO VAZIO
   ========================================================================== */
.conect-archive-empty-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 50px 30px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
}

.conect-empty-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef7f2;
  color: #005a36;
  margin-bottom: 20px;
}

.conect-empty-title {
  color: #1e293b;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.conect-empty-desc {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 25px 0;
}

.conect-btn-reset-search,
.conect-btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #005a36 !important;
  color: #ffffff !important;
  border-color: #005a36 !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.conect-btn-reset-search:hover,
.conect-btn-back-home:hover {
  background: #003e25 !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   7. RESPONSIVIDADE (TABLET E MOBILE)
   ========================================================================== */
@media (max-width: 1100px) {
  .conect-archive-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .conect-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .conect-archive-wrapper {
    padding: 20px 15px 40px 15px;
  }

  .conect-archive-title {
    font-size: 1.75rem;
  }

  .conect-archive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .conect-filter-inputs-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .conect-filter-group.conect-filter-search,
  .conect-filter-group.conect-filter-tax,
  .conect-filter-group.conect-filter-order,
  .conect-filter-actions {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }

  .conect-btn-filter {
    flex-grow: 1;
    justify-content: center;
  }

  .conect-btn-clear-filters {
    flex-grow: 1;
    justify-content: center;
  }

  .conect-search-refine-form .conect-search-input-group {
    flex-direction: column;
  }

  .conect-search-refine-form .conect-search-submit {
    justify-content: center;
  }
}

/* ==========================================================================
   4. SELETOR DE MODO DE EXIBIÇÃO (TABELA VS CARDS)
   ========================================================================== */
.conect-archive-view-switch-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.conect-archive-view-switcher {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  gap: 2px;
}

.conect-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #64748b;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.conect-view-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

.conect-view-btn:hover {
  color: #005a36;
  background: rgba(255, 255, 255, 0.7);
}

.conect-view-btn.is-active {
  background: #005a36;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 90, 54, 0.2);
}

.conect-view-btn.is-active .dashicons {
  color: #ffffff;
}

/* ==========================================================================
   5. TABELA ADMINISTRATIVA DO ARCHIVE (GOVERNMENT TABLE)
   ========================================================================== */
.conect-archive-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.conect-archive-table-responsive {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.conect-archive-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.90rem;
  margin: 0;
}

.conect-archive-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border-bottom: 2px solid #e2e8f0;
  box-sizing: border-box;
}

/* Larguras precisas somando exatamente 100% nas 4 colunas essenciais para eliminar corte e rolagem */
.conect-archive-table th.th-objeto,
.conect-archive-table td.td-objeto {
  width: 53%;
  overflow: hidden;
  padding-left: 20px;
}

.conect-archive-table th.th-categoria,
.conect-archive-table td.td-categoria {
  width: 19%;
  overflow: hidden;
}

.conect-archive-table th.th-data,
.conect-archive-table td.td-data {
  width: 14%;
  white-space: nowrap;
}

.conect-archive-table th.th-acao,
.conect-archive-table td.td-acao {
  width: 14%;
  text-align: right;
  white-space: nowrap;
  padding-right: 22px;
}

.conect-archive-table tbody tr {
  transition: background-color 0.15s ease;
}

.conect-archive-table tbody tr:hover {
  background-color: #f8fafc;
}

.conect-archive-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #f1f5f9;
}

.conect-archive-table td {
  padding: 14px 16px;
  vertical-align: middle;
  color: #334155;
  box-sizing: border-box;
}

.conect-archive-table .text-center {
  text-align: center;
}

.conect-archive-table .text-right {
  text-align: right;
}

/* Objeto / Descrição - Truncamento Inteligente com Reticências para Caber sem Rolagem */
.conect-table-objeto-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.conect-table-inline-code {
  display: inline-block;
  flex-shrink: 0;
  background: #eef7f2;
  color: #005a36;
  border: 1px solid #c7e6d4;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.conect-table-title-link {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.90rem;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
  flex: 1;
  transition: color 0.15s ease;
}

.conect-table-title-link:hover {
  color: #005a36;
  text-decoration: underline;
}

.conect-table-desc-text {
  margin: 3px 0 0 0;
  font-size: 0.80rem;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

/* Taxonomias / Categorias */
.conect-table-tax-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-width: 100%;
}

.conect-table-tax-pill {
  display: inline-block;
  background: #005a36;
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.conect-table-sec-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 0.70rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.conect-table-muted {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Data */
.conect-table-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 0.84rem;
  white-space: nowrap;
}

.conect-table-date-badge .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  line-height: 15px;
  color: #005a36;
}

/* Anexos */
.conect-table-files-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.conect-table-files-count.has-files {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
}

.conect-table-files-count.is-empty {
  color: #94a3b8;
}

/* Botão Ver Detalhes */
.conect-table-btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #005a36;
  color: #ffffff !important;
  border: 1px solid #004529;
  padding: 6px 12px;
  font-size: 0.80rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.conect-table-btn-details:hover {
  background: #004529;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 90, 54, 0.25);
}

.conect-table-btn-details .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
  line-height: 13px;
  transition: transform 0.2s ease;
}

.conect-table-btn-details:hover .dashicons {
  transform: translateX(2px);
}

/* ==========================================================================
   6. IMAGEM PADRÃO / FALLBACK INSTITUCIONAL DOS CARDS COM LOGO
   ========================================================================== */
.conect-card-thumb-fallback-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  box-sizing: border-box;
}

.conect-fallback-logo-img {
  max-height: 85px;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.conect-archive-card:hover .conect-fallback-logo-img {
  transform: scale(1.05);
}

.conect-card-thumb-no-logo {
  background: #f8fafc;
}

.conect-fallback-badge {
  display: inline-block;
  background: rgba(0, 90, 54, 0.08);
  color: #005a36;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 6px;
}

/* Responsividade Mobile da Tabela e Barra de Exibição */
@media (max-width: 768px) {
  .conect-archive-view-switch-wrapper {
    margin-left: 0;
    width: 100%;
    margin-top: 8px;
  }

  .conect-archive-view-switcher {
    width: 100%;
    display: flex;
  }

  .conect-view-btn {
    flex: 1;
    justify-content: center;
  }

  .conect-archive-table thead {
    display: none;
  }

  .conect-archive-table,
  .conect-archive-table tbody,
  .conect-archive-table tr,
  .conect-archive-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .conect-archive-table tbody tr {
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    padding: 14px;
  }

  .conect-archive-table td {
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }

  .conect-archive-table td:last-child {
    border-bottom: none !important;
    padding-top: 12px;
    justify-content: flex-end;
  }

  .conect-archive-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    margin-right: 12px;
  }

  .conect-archive-table td.td-objeto {
    display: block;
    text-align: left;
    width: 100% !important;
  }

  .conect-archive-table td.td-objeto::before {
    display: block;
    margin-bottom: 6px;
  }

  .conect-archive-table td.td-objeto .conect-table-objeto-wrap {
    flex-wrap: wrap;
    gap: 6px;
  }

  .conect-archive-table td.td-objeto .conect-table-title-link {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .conect-archive-table td.td-objeto .conect-table-desc-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .conect-archive-table td.td-categoria,
  .conect-archive-table td.td-data,
  .conect-archive-table td.td-anexos,
  .conect-archive-table td.td-acao {
    width: 100% !important;
  }
}

