.dt-tabela th,
.dt-tabela td {
  text-align: left !important;
}

.td-options {
  position: absolute;
  top: 0;
  left: 15px;
  background: #fff;
  border-radius: 10px;
  z-index: 99;
  -webkit-box-shadow: 0 0 10px 0 #bbbebf;
  -moz-box-shadow: 0 0 10px 0 #bbbebf;
  box-shadow: 0 0 10px 0 #bbbebf;
  min-width: 95px;
}

.dt-column-title {
  color: var(--primary);
  font-weight: 600;
}

.td-options p {
  padding: 2px 5px;
  text-align: left;
  margin: 1px 0;
}

.pr-30px {
  padding-right: 30px !important;
}

.td-options p a,
.td-options p button {
  color: #5a656b !important;
  font-size: 10px;
  background: 0 0;
  border: none;
  padding-left: 0;
}

.td-options p a i {
  font-size: 11px !important;
}

.dataTable,
.dataTable td,
.dataTable th,
.dataTable tr {
  border: none !important;
}

.datatable td {
  position: relative;
}

/* =========================================================
   CABEÇALHO DATATABLE
   ========================================================= */

.dt-tabela thead th {
  position: relative !important;
  text-align: left !important;
  padding-left: 10px !important;
  padding-right: 42px !important;
}

/* Estrutura interna criada pelo DataTables */
.dt-tabela thead th .dt-column-header {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Título */
.dt-tabela thead th .dt-column-title {
  position: relative !important;
  display: inline-block !important;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
   ORDENAÇÃO
   ========================================================= */

/*
 * A ordenação fica absoluta.
 * A variável --stc-order-left é calculada pelo JS
 * depois de cada draw/resize.
 */
.dt-tabela thead th .dt-column-order {
  position: absolute !important;
  top: 50% !important;
  left: var(--stc-order-left, auto) !important;
  right: auto !important;
  bottom: auto !important;

  width: 14px !important;
  min-width: 14px !important;
  height: 18px !important;

  margin: 0 !important;
  transform: translateY(-50%) !important;
}

/* Colunas sem ordenação */
.dt-tabela thead th.dt-orderable-none .dt-column-order {
  display: none !important;
}

/* Hover da coluna ordenável */
table.dataTable thead > tr > th.dt-orderable-asc:hover,
table.dataTable thead > tr > th.dt-orderable-desc:hover,
table.dataTable thead > tr > td.dt-orderable-asc:hover,
table.dataTable thead > tr > td.dt-orderable-desc:hover {
  background-color: rgba(0, 0, 0, 0.02);
  outline: 2px solid rgba(0, 0, 0, 0);
  outline-offset: unset;
}

/* =========================================================
   BOTÃO FILTRO
   ========================================================= */

.dt-tabela thead th .botao-filtro {
  position: absolute !important;
  top: 50% !important;
  right: 2px !important;
  left: auto !important;

  transform: translateY(-50%) !important;

  background-color: transparent !important;
  color: var(--primary) !important;

  border: none !important;
  border-radius: 3px;

  padding: 5px 8px !important;
  margin: 0 !important;

  cursor: pointer;
  z-index: 10;
}

.dt-tabela thead th .botao-filtro:hover {
  background-color: rgba(0, 0, 0, .03) !important;
}

/* =========================================================
   DROPDOWN FILTRO
   ========================================================= */

.dropdown-filtro {
  position: absolute !important;
  z-index: 999999 !important;
  display: none;

  max-height: 450px;
  padding: 10px;
  overflow-y: auto;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
}

.dropdown-filtro .search-filtro {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.dropdown-filtro .todos,
.dropdown-filtro .lista-filtros label {
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

.dropdown-filtro .todos {
  font-weight: bold;
  margin-bottom: 10px;
}

.dropdown-filtro input[type="checkbox"] {
  margin-right: 5px;
}

.table_filters_label label {
  display: flex;
  align-items: center;
  justify-content: start;
}

/* =========================================================
   PÁGINA ATUAL
   ========================================================= */

.span-pagina-atual {
  padding: 0 2px;
  font-size: 14px;
  border: 0 solid var(--primary);
  background-color: var(--primary);
  border-radius: 0;
  color: #fff;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   SKELETON
   ========================================================= */

.skeleton-row td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.skeleton-table {
  display: block;
  position: relative;
  overflow: hidden;
  height: 20px;
  background: currentColor;
  opacity: .18;
  border-radius: 4px;
}

.skeleton-table::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .45),
    transparent
  );
  animation: skeleton-table-loading 1.4s infinite;
}

.skeleton-xs {
  width: 25px;
}

.skeleton-sm {
  width: 65px;
}

.skeleton-md {
  width: 95px;
}

.skeleton-lg {
  width: 140px;
}

@keyframes skeleton-table-loading {
  100% {
    transform: translateX(100%);
  }
}

/* =========================================================
   CHECKBOXES DA TABELA
   ========================================================= */

#tabelaInscricoes th:first-child,
#tabelaInscricoes td:first-child {
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#tabelaInscricoes th:first-child .check-tabela,
#tabelaInscricoes td:first-child .check-tabela {
  display: block;
  margin: 0 auto !important;
}

.check-tabela {
  width: 18px;
  height: 18px;
  cursor: pointer;
  vertical-align: middle;
}

/* =========================================================
   PAGINAÇÃO
   ========================================================= */

#divs-pages-btns {
  gap: 0;
}

.btn-pagina {
  cursor: pointer;
  border-top: 1px solid var(--primary) !important;
  border-bottom: 1px solid var(--primary) !important;
}

#btn-page-prev {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  padding: 1px 7px;
  border-right: 0 solid var(--primary) !important;
}

#btn-page-next {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 1px 7px;
}

#divs-pages-btns .btn-pagina {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 28px;
  height: 28px;

  padding: 0 7px;
  margin: 0;

  border-radius: 0;

  line-height: 1;
  box-sizing: border-box;

  border: 0 solid #0000;
  border-left: 1px solid var(--primary);
}

#divs-pages-btns .btn-pagina-dots {
  display: flex;
  align-items: center;
  justify-content: center;

  border-top: 1px solid var(--primary) !important;
  border-bottom: 1px solid var(--primary) !important;
  border-left: 1px solid var(--primary);

  min-width: 28px;
  height: 28px;

  padding: 0 3px;
  margin: 0;

  line-height: 1;
}

/* SETAS DA PAGINAÇÃO */

#btn-page-prev,
#btn-page-next,
#btn-page-first,
#btn-page-last {
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary);

  border: 1px solid var(--primary);

  width: fit-content;
  height: 28px;

  margin-right: 0 !important;
  margin-left: 0 !important;

  cursor: pointer;
}

#btn-page-prev,
#btn-page-next {
  transition: all .2s ease;
}

#btn-page-prev:hover,
#btn-page-next:hover {
  background-color: var(--primary);
  color: #fff;
}

#divs-pages-btns,
#btn-page-prev,
#btn-page-next {
  flex-shrink: 0;
}

/* =========================================================
   EXPORTAÇÃO
   ========================================================= */

.btn-export-table {
  color: var(--primary);
  background-color: #fff;
  border: none !important;
  transition: .2s ease all;
  font-weight: 500;
}

.btn-export-table:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-export-table > i {
  margin-right: 7px;
}

#menu_exportar {
  margin-bottom: 5px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .05);
}
