/*
 * PNLD Triagem - CSS global adicional
 *
 * Este arquivo concentra o conteúdo CSS adicional 
 * usado no tema do Triagem (Wordpress)
 * 
 */

.bloco-dados {
  border: 1px solid #d9e2ea;
  background: #f8fbfd;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 8px 0 16px;
}

.linha-dado {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e8eef3;
}

.linha-dado:last-child {
  border-bottom: none;
}

.label-dado {
  font-weight: 700;
  color: #1f4e79;
}


.campo-somente-leitura input,
.campo-somente-leitura textarea,
.campo-somente-leitura select,
input.campo-somente-leitura,
textarea.campo-somente-leitura,
select.campo-somente-leitura,
.campo-somente-leitura-aplicado {
  background-color: #f2f2f2 !important;
  color: #555 !important;
  cursor: not-allowed !important;
}

.pnld-form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pnld-form-actions .jet-form-builder__submit-wrap {
  margin: 0;
}

/* JetSmartFilters - checkboxes em linha */
.filtro-checkbox-horizontal .jet-checkboxes-list__row {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  margin-bottom: 0.25rem;
}

.filtro-checkbox-horizontal .jet-checkboxes-list__button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.filtro-checkbox-horizontal .jet-checkboxes-list__decorator {
  margin-right: 0.25rem;
}

/* Labels automáticos dos filtros JetSmartFilters */
.jet-filter-label {
  display: block;
  color: #005F7B;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

/* Ajuste básico dos campos de filtro */
.jet-filter input,
.jet-filter select,
.jet-filter .jet-search-filter__input,
.jet-filter .jet-select__control {
  width: 100%;
  min-height: 2.75rem;
  font-size: 0.95rem;
}

/* CUSTOMIZAÇÃO DO TEMPLATE */
#main-header{
	background-color: #141168;
}

:root {
  --bs-primary: #13689a;
  --bs-secondary: #495057;

  --bs-primary-rgb: 19, 104, 154;
  --bs-secondary-rgb: 73, 80, 87;
}

.jet-smart-filters-select .jet-select__control {
	min-height: 50px!important;
}

/* CUSTOMIZAÇÃO DO ELEMENTOR */

.container {
	max-width: 98%;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 98%;
}

.elementor-widget:not(:last-child) {
    margin-block-end: 10px;
}

/* Cabeçalho interno das páginas do Triagem - Automatizado */
.elementor h1.elementor-heading-title,
.elementor .elementor-widget-wrap:has(.bootstrap-table, .jet-form-builder) > .elementor-widget-heading:nth-of-type(1) h2.elementor-heading-title,
.pnld-page-title,
.pnld-page-title .elementor-heading-title {
  color: #005F7B !important;
  font-size: clamp(2rem, 3vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 1.5rem 0 0 !important;
  text-align: center !important;
}

.elementor .elementor-widget-heading:has(h1) + .elementor-widget-heading h2.elementor-heading-title,
.elementor .elementor-widget-wrap:has(.bootstrap-table, .jet-form-builder) > .elementor-widget-heading:nth-of-type(2) h2.elementor-heading-title,
.pnld-page-subtitle,
.pnld-page-subtitle .elementor-heading-title {
  color: #6F6F65 !important;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

/* Títulos de seções internas das páginas do Triagem */
.elementor h3.elementor-heading-title,
.pnld-section-title,
.pnld-section-title .elementor-heading-title {
  color: #005F7B !important;
  font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0.2rem 0 0.5rem !important;
  text-align: left !important;
}

/* CUSTOMIZAÇÃO BOOTSTRAP / TABELAS */

/* 
 * Classe aplicada no container da tabela.
 * Objetivo: padronizar tabelas JetEngine/TableBuilder com aparência próxima ao Bootstrap
 * e permitir scroll horizontal controlado quando necessário.
 */
.bootstrap-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  margin-bottom: 1rem;
}

/* Tabela interna */
.bootstrap-table table,
.bootstrap-table table.table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  border-spacing: 0;
}

/* Larguras mínimas opcionais */
.bootstrap-table.table-min-900 table,
.bootstrap-table.table-min-900 table.table {
  min-width: 900px;
}

.bootstrap-table.table-min-1200 table,
.bootstrap-table.table-min-1200 table.table {
  min-width: 1200px;
}

.bootstrap-table.table-min-1400 table,
.bootstrap-table.table-min-1400 table.table {
  min-width: 1400px;
}

.bootstrap-table.table-min-1600 table,
.bootstrap-table.table-min-1600 table.table {
  min-width: 1600px;
}

/* Células em geral */
.bootstrap-table table th,
.bootstrap-table table td,
.bootstrap-table table.table th,
.bootstrap-table table.table td,
.bootstrap-table .jet-dynamic-table__col {
  padding: 0.45rem 0.55rem !important;
  border: 1px solid #dee2e6 !important;
  vertical-align: middle !important;
  font-size: 0.875rem;
  line-height: 1.35;
}

/* Cabeçalho */
.bootstrap-table table thead th,
.bootstrap-table table.table thead th,
.bootstrap-table table thead .jet-dynamic-table__col {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  font-weight: 600 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Cabeçalhos: evita quebra dentro das palavras */
.bootstrap-table table th {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Evita quebra excessiva em cabeçalhos de tabelas largas */
.bootstrap-table.tabela-cabecalho-estavel table th {
  min-width: 70px;
}

/* Células: permite quebra natural, mas evita quebra agressiva de palavras */
.bootstrap-table table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

/* Links dentro da tabela */
.bootstrap-table table td a {
  text-decoration: none;
}

.bootstrap-table table td a:hover,
.bootstrap-table table td a:focus {
  text-decoration: underline;
}

/* Linhas alternadas */
.bootstrap-table table.table-striped tbody tr:nth-of-type(odd) > *,
.bootstrap-table table tbody tr:nth-of-type(odd) > td {
  background-color: rgba(0, 0, 0, 0.025) !important;
}

/* Hover */
.bootstrap-table table.table-hover tbody tr:hover > *,
.bootstrap-table table tbody tr:hover > td {
  background-color: rgba(0, 0, 0, 0.055) !important;
}

/* Última coluna, geralmente ações */
.bootstrap-table table td:last-child,
.bootstrap-table table th:last-child {
  text-align: center !important;
}



.btn:not(.pnld-ignore-bootstrap-btn),
.more-link:not(.pnld-ignore-bootstrap-btn) {
  line-height: 1.5;
  border-width: 1px;
  border-radius: 0.375rem;
  letter-spacing: normal;
}


/* Botões dentro de tabelas */
.bootstrap-table .btn,
.bootstrap-table .more-link {
  padding: 0.175rem 0.50rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
}

/* Badge padrão da Situação da Coleção */
.pnld-situacao-badge {
  display: inline-block;
  min-width: 7.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Situação: Sem Falhas */
.pnld-situacao-badge[data-status="Sem Falhas"] {
  color: #0F5132;
  background-color: #D1E7DD;
  border-color: #BADBCC;
}

/* Situação: Com Falhas */
.pnld-situacao-badge[data-status="Com Falhas"] {
  color: #664D03;
  background-color: #FFF3CD;
  border-color: #FFECB5;
}

/* 
 * Tabela-resumo
 * Usada para blocos pequenos de contextualização, geralmente com uma única linha.
 * Exemplo: dados da coleção, dados da obra, dados da diligência etc.
 */
.pnld-tabela-resumo {
  margin: 1.5rem 0 2rem;
}

.pnld-tabela-resumo table,
.pnld-tabela-resumo table.table {
  border: 1px solid #d9e2ea !important;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}

/* Cabeçalhos da tabela-resumo */
.pnld-tabela-resumo table th,
.pnld-tabela-resumo table.table th {
  background-color: #F3FAFC !important;
  color: #005F7B !important;
  font-size: 0.9rem;
  font-weight: 700 !important;
  text-align: left !important;
  border-color: #d9e2ea !important;
}

/* Valores da tabela-resumo */
.pnld-tabela-resumo table td,
.pnld-tabela-resumo table.table td {
  background-color: #ffffff !important;
  color: #212529;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left !important;
  border-color: #e8eef3 !important;
}

/* Evita que badges fiquem desalinhados dentro da tabela-resumo */
.pnld-tabela-resumo .pnld-situacao-badge {
  margin: 0;
}

/*
 * Tabela-resumo vertical
 * Usada para blocos de contexto no formato Campo | Valor.
 * Exemplo: dados da coleção, dados da obra, dados da diligência etc.
 */
.pnld-tabela-resumo-vertical {
  margin: 0.2rem 0 2rem;
}

.pnld-tabela-resumo-vertical table,
.pnld-tabela-resumo-vertical table.table {
  max-width: 100%;
  border: 1px solid #d9e2ea !important;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}

/* Cabeçalho da tabela-resumo */
.pnld-tabela-resumo-vertical table thead th {
  background-color: #F3FAFC !important;
  color: #005F7B !important;
  font-weight: 700 !important;
  text-align: left !important;
}

/* Coluna Campo */
.pnld-tabela-resumo-vertical table tbody td:first-child {
  width: 11rem;
  background-color: #F3FAFC !important;
  color: #005F7B;
  font-weight: 700;
  text-align: left !important;
  white-space: nowrap;
}

/* Coluna Valor */
.pnld-tabela-resumo-vertical table tbody td:last-child {
  background-color: #ffffff !important;
  color: #212529;
  font-weight: 500;
  text-align: left !important;
}

/* Células do bloco */
.pnld-tabela-resumo-vertical table th,
.pnld-tabela-resumo-vertical table td {
  padding: 0.55rem 0.75rem !important;
  border-color: #e8eef3 !important;
  vertical-align: middle !important;
}

/* Botões */
.jet-form-builder .pnld-form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.jet-form-builder .pnld-submit-original {
  display: none !important;
}


