/* Padrão visual compartilhado das tabelas públicas — Câmara de Tucuruí */
:root{
  --cmt-table-brand:#087d89;
  --cmt-table-brand-2:#0aa8b8;
  --cmt-table-ink:#163f46;
  --cmt-table-muted:#637a7f;
  --cmt-table-line:#dfeaec;
  --cmt-table-soft:#f6fafb;
}

/* DataTables 1.x e 2.x */
.dataTables_wrapper,
div.dt-container{
  color:var(--cmt-table-ink);
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
div.dt-container .dt-length,
div.dt-container .dt-search{
  color:var(--cmt-table-muted); font-size:.82rem; font-weight:600;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
div.dt-container .dt-search input,
div.dt-container .dt-length select{
  min-height:38px; border:1px solid var(--cmt-table-line)!important; border-radius:10px!important;
  color:var(--cmt-table-ink); background-color:#fff!important; box-shadow:none!important; outline:none;
}
.dataTables_wrapper .dataTables_filter input,
div.dt-container .dt-search input{
  padding:.5rem .75rem .5rem 2.25rem!important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23087d89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat .7rem center!important;
}
.dataTables_wrapper .dataTables_filter input:focus,
div.dt-container .dt-search input:focus{ border-color:#67c5ce!important; box-shadow:0 0 0 3px rgba(8,125,137,.1)!important; }

/* Tabelas geridas pelo plugin */
.dataTables_wrapper table.dataTable,
div.dt-container table.dataTable{
  width:100%!important; margin:.7rem 0!important; border-collapse:separate!important; border-spacing:0 7px!important;
}
.dataTables_wrapper table.dataTable thead th,
div.dt-container table.dataTable thead th{
  padding:.78rem .8rem!important; color:#fff!important; background:var(--cmt-table-brand)!important;
  border:0!important; font-size:.73rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase;
}
.dataTables_wrapper table.dataTable thead th:first-child,
div.dt-container table.dataTable thead th:first-child{ border-radius:11px 0 0 11px; }
.dataTables_wrapper table.dataTable thead th:last-child,
div.dt-container table.dataTable thead th:last-child{ border-radius:0 11px 11px 0; }
.dataTables_wrapper table.dataTable tbody tr{ filter:drop-shadow(0 3px 7px rgba(13,59,66,.05)); transition:transform .18s,filter .18s; }
.dataTables_wrapper table.dataTable tbody tr:hover,
div.dt-container table.dataTable tbody tr:hover{ transform:translateY(-1px); filter:drop-shadow(0 7px 12px rgba(8,125,137,.1)); }
.dataTables_wrapper table.dataTable tbody td,
div.dt-container table.dataTable tbody td{
  padding:.78rem .8rem!important; color:#23484e; background:#fff!important;
  border-top:1px solid var(--cmt-table-line)!important; border-bottom:1px solid var(--cmt-table-line)!important;
  vertical-align:middle!important;
}
.dataTables_wrapper table.dataTable tbody td:first-child,
div.dt-container table.dataTable tbody td:first-child{ border-left:1px solid var(--cmt-table-line)!important; border-radius:11px 0 0 11px; }
.dataTables_wrapper table.dataTable tbody td:last-child,
div.dt-container table.dataTable tbody td:last-child{ border-right:1px solid var(--cmt-table-line)!important; border-radius:0 11px 11px 0; }

/* Exportação */
.dataTables_wrapper .dt-buttons,
div.dt-container .dt-buttons{ display:flex; flex-wrap:wrap; gap:7px; margin:.55rem 0; }
.dataTables_wrapper .dt-buttons > button,
.dataTables_wrapper .dt-buttons > .btn,
div.dt-container .dt-buttons > button,
div.dt-container .dt-buttons > .btn{
  flex:0 0 auto!important; width:auto!important; margin:0!important; padding:.55rem .82rem!important;
  color:#17616a!important; background:#fff!important; border:1px solid #cce4e7!important; border-radius:10px!important;
  font-size:.8rem; font-weight:750; box-shadow:0 2px 7px rgba(11,75,84,.05)!important;
}
.dataTables_wrapper .dt-buttons > button:hover,
.dataTables_wrapper .dt-buttons > .btn:hover,
div.dt-container .dt-buttons > button:hover,
div.dt-container .dt-buttons > .btn:hover{
  color:#fff!important; background:linear-gradient(135deg,var(--cmt-table-brand),var(--cmt-table-brand-2))!important;
  border-color:transparent!important;
}

/* Informação e paginação */
.dataTables_wrapper .dataTables_info,
div.dt-container .dt-info{ padding:.75rem .2rem!important; color:var(--cmt-table-muted); font-size:.8rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button,
div.dt-container .dt-paging .dt-paging-button{
  min-width:34px; margin:0 2px!important; padding:.38rem .58rem!important; border:1px solid var(--cmt-table-line)!important;
  border-radius:9px!important; color:var(--cmt-table-ink)!important; background:#fff!important; box-shadow:none!important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
div.dt-container .dt-paging .dt-paging-button.current{
  color:#fff!important; background:var(--cmt-table-brand)!important; border-color:var(--cmt-table-brand)!important;
}

/* Selects colocados nos cabeçalhos pelas páginas do portal */
table.dataTable thead select,
.table-modern thead select{
  min-height:38px; width:100%; padding:.4rem 1.9rem .4rem .65rem!important;
  color:#164f57!important; background-color:#fff!important; border:1px solid rgba(255,255,255,.45)!important;
  border-radius:9px!important; font-size:.78rem; font-weight:650;
}

@media(max-width:767.98px){
  .dataTables_wrapper .dataTables_filter,
  div.dt-container .dt-search{ width:100%; margin:.35rem 0!important; text-align:left!important; }
  .dataTables_wrapper .dataTables_filter label,
  div.dt-container .dt-search label{ display:flex; align-items:center; width:100%; }
  .dataTables_wrapper .dataTables_filter input,
  div.dt-container .dt-search input{ flex:1; min-width:0; width:100%!important; }
  .dataTables_wrapper .dt-buttons,
  div.dt-container .dt-buttons{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; scrollbar-width:none; }
  .dataTables_wrapper .dt-buttons::-webkit-scrollbar,
  div.dt-container .dt-buttons::-webkit-scrollbar{ display:none; }
  .dataTables_wrapper table.dataTable,
  div.dt-container table.dataTable{ border-spacing:0 6px!important; }
  .dataTables_wrapper table.dataTable tbody td,
  div.dt-container table.dataTable tbody td{ padding:.65rem .58rem!important; }
  .dataTables_wrapper .dataTables_paginate,
  div.dt-container .dt-paging{ display:flex; flex-wrap:wrap; justify-content:center; gap:2px; }
}

/* Tabelas simples que já adotam o marcador público moderno */
.table-modern:not(.dataTable){ border-collapse:separate; border-spacing:0 7px; }
.table-modern:not(.dataTable) thead th{ color:#fff; background:var(--cmt-table-brand); border:0; }
.table-modern:not(.dataTable) tbody td{ background:#fff; border-color:var(--cmt-table-line); }
