/* Table */
table.dataTable.dataTable-v2 {
  background-color: var(--secondary-color);
  border-spacing: 0;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid;
  border: 1px solid var(--border-color-secondary);
  box-sizing: border-box;
  margin: initial;
  clear: both;
  border-collapse: separate;
}

table.dataTable.dataTable-v2 * {
  vertical-align: middle;
  font-size: 13px;
  line-height: 20px;
}

table.dataTable.dataTable-v2 > thead > tr {
  border: 0;
  border: 1px solid var(--border-color-secondary);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

table.dataTable.dataTable-v2 > thead > tr {
  border: 1px solid var(--border-color-secondary);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

table.dataTable.dataTable-v2 thead tr th {
  background-color: var(--secondary-color);
  color: var(--text-color);
  text-align: left;
  vertical-align: middle;
}

.info_table tr > td:last-child,
.info_table tr > th:last-child {
  padding-right: 10px;
}

table.dataTable.dataTable-v2 tr:first-child > th {
  background-color: var(--secondary-color);
  color: var(--text-color);
  vertical-align: middle;
}

table.dataTable.dataTable-v2 tr:first-child > th.sorting {
  padding-right: 20px;
  text-wrap: nowrap;
}

table.dataTable.dataTable-v2 tr:first-child > th:last-child {
  padding-right: 17px;
}

table.dataTable.dataTable-v2 > thead > tr > th,
table.dataTable.dataTable-v2 > tbody > tr > td {
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
}

table.dataTable.dataTable-v2 thead th {
  padding: 0px 18px;
  border-bottom: 0px !important;
}

/* Group headers styles */
table.dataTable.dataTable-v2 thead tr.datatables_group_header th.group-header {
  background-color: var(--background-color-tertiary);
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid var(--border-color-primary);
  position: relative;
  height: 35px;
}

table.dataTable.dataTable-v2
  thead
  tr.datatables_group_header
  th.group-header:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color-secondary);
}

/* Ensure proper spacing between group header and column headers */
table.dataTable.dataTable-v2 > thead > tr *:not(img) {
  height: 40px;
}

table.dataTable.dataTable-v2 > thead > tr .p-slider {
  height: 14px;
  margin-top: 12px;
}

table.dataTable.dataTable-v2 > thead > tr > th,
table.dataTable.dataTable-v2 > thead > tr > th * {
  font-style: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 900;
}

table.dataTable.dataTable-v2 th {
  cursor: pointer;
}

table.dataTable.dataTable-v2 tbody tr {
  background-color: var(--table-background);
  height: 50px;
}

table.dataTable.dataTable-v2.tr30 tbody tr {
  height: 30px;
}

table.dataTable.dataTable-v2.thead-tr40 thead tr {
  height: 40px;
}

table.dataTable.dataTable-v2.tr40 tbody tr {
  height: 40px;
}

table.dataTable.dataTable-v2.th40 thead tr {
  height: 40px;
}

table.dataTable.dataTable-v2 > tbody > tr:nth-child(even) {
  background-color: var(--table-even-background);
}

table.dataTable.dataTable-v2.no-even-odd > tbody > tr:nth-child(even) {
  background-color: var(--table-background);
}

table.dataTable.dataTable-v2 > tbody > tr:hover {
  background-color: var(--table-hover-background) !important;
}

table.dataTable.dataTable-v2 .table-action-buttons > a,
table.dataTable.dataTable-v2 .table-action-buttons > img,
table.dataTable.dataTable-v2 .table-action-buttons > button,
table.dataTable.dataTable-v2 .table-action-buttons > form,
table.dataTable.dataTable-v2 .table-action-buttons > div,
table.dataTable.dataTable-v2 .table-action-buttons > span {
  visibility: hidden;
}

table.dataTable.dataTable-v2 > tbody > tr:hover .table-action-buttons > a,
table.dataTable.dataTable-v2 > tbody > tr:hover .table-action-buttons > img,
table.dataTable.dataTable-v2 > tbody > tr:hover .table-action-buttons > button,
table.dataTable.dataTable-v2 > tbody > tr:hover .table-action-buttons > form,
table.dataTable.dataTable-v2 > tbody > tr:hover .table-action-buttons > div,
table.dataTable.dataTable-v2 > tbody > tr:hover .table-action-buttons > span {
  visibility: visible;
}

table.dataTable.dataTable-v2 > tbody > tr .table-action-buttons > div {
  white-space: nowrap;
}

table.dataTable.dataTable-v2 > tbody > tr .table-action-buttons i.fa::before {
  font-size: 15pt;
}

table.dataTable.dataTable-v2 > tbody > tr .table-action-buttons a.navbar-item {
  margin-left: 5px;
}

table.dataTable.dataTable-v2 thead .sort-icon {
  display: inline-block;
  padding-left: 5px;
  width: 16px;
  height: 16px;
}

table.dataTable.dataTable-v2 > thead > tr > th,
table.dataTable.dataTable-v2 tr > th:first-child {
  padding-left: 17px;
}

table.dataTable.dataTable-v2 > tbody > tr > td {
  padding-left: 17px;
  border-top: 1px solid var(--border-color-secondary);
}

table.dataTable.dataTable-v2 > tbody > tr > td,
table.dataTable.dataTable-v2 > tbody > tr > td * {
  font-weight: 400;
}

table.dataTable.dataTable-v2 tbody td span.tag.is-info {
  margin-left: 10px;
  height: 20px;
  opacity: 0.9;
}

table.dataTable.dataTable-v2 .column-link:not(th),
table.dataTable.dataTable-v2 .column-link:not(th) *,
table tbody.container_div .column-link,
table tbody.container_div .column-link * {
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
}

table.dataTable.dataTable-v2 .column-link:not(th):hover,
table.dataTable.dataTable-v2 .column-link:not(th) *:hover,
table tbody.container_div .column-link:hover,
table tbody.container_div .column-link *:hover {
  color: var(--primary-color-hover);
}

table tbody.container_div tr {
  height: 50px;
}

table.toggle-table .table-action-buttons > a,
table.toggle-table .table-action-buttons > img,
table.toggle-table .table-action-buttons > button,
table.toggle-table .table-action-buttons > form,
table.toggle-table .table-action-buttons > div,
table.toggle-table .table-action-buttons > span {
  visibility: hidden;
}

table.toggle-table > tbody > tr:hover .table-action-buttons > a,
table.toggle-table > tbody > tr:hover .table-action-buttons > img,
table.toggle-table > tbody > tr:hover .table-action-buttons > button,
table.toggle-table > tbody > tr:hover .table-action-buttons > form,
table.toggle-table > tbody > tr:hover .table-action-buttons > div,
table.toggle-table > tbody > tr:hover .table-action-buttons > span {
  visibility: visible;
}

table.dataTable.dataTable-v2.caption_table {
  border: 0px !important;
  outline: 1px solid var(--border-color-secondary);
}

table.dataTable.dataTable-v2.caption_table caption {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

table.dataTable.dataTable-v2.no-thead > thead {
  display: none;
}

table.dataTable.dataTable-v2.no-thead > tbody tr:first-child td {
  border-top: 0px;
}

a.pandora_pagination,
.dataTables_paginate span span.ellipsis {
  background-color: var(--pandora-pagination-background);
  padding: 9px;
  color: var(--pandora-pagination-text);
  border: 1px solid var(--pandora-pagination-border);
  border-left: none;
  min-width: 12px;
  text-decoration: none;
  font-size: 13px;
  line-height: 24px;
  cursor: pointer;
}

a.pandora_pagination:first-child {
  border-right: 1px solid var(--pandora-pagination-border);
}

.total_number a.pandora_pagination:first-child {
  border-left: 1px solid var(--pandora-pagination-border);
}

a.pandora_pagination.next {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-right: 1px solid var(--pandora-pagination-border);
}

a.pandora_pagination.previous {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-left: 1px solid var(--pandora-pagination-border);
}

a.pandora_pagination.disabled {
  color: var(--pandora-pagination-text-disabled);
}

a.pandora_pagination:hover {
  text-decoration: none;
  font-weight: initial;
}

a.pandora_pagination:not(.disabled, .current):hover {
  opacity: var(--pandora-pagination-opacity-hover);
}

a.pandora_pagination.current {
  background-color: var(--pandora-pagination-background-selected);
}

.pagination-child-div {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.pagination-child-div .dataTables_paginate {
  padding: 9px 0;
}

.pagination-child-div .dataTables_length > label,
.dataTables_wrapper .dataTables_length > label {
  font-size: 0px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.pagination-child-div .dataTables_length > label select,
.dataTables_wrapper .dataTables_length > label select {
  background-color: var(--input-background);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  height: 36px;
}

.pagination-child-div .dataTables_length > label select:focus,
.dataTables_wrapper .dataTables_length > label select:focus {
  border-color: var(--input-border-focus);
}

.pagination-child-div .dataTables_length > label span,
.dataTables_wrapper .dataTables_length > label span {
  vertical-align: middle;
  margin-left: 10px;
  color: var(--text-color);
  font-weight: initial;
  font-size: 13px;
}

/* CSV button datatables */
.dt-button.buttons-csv.buttons-html5 {
  background-image: url(../../images/button-csv-primary-color.svg);
  background-size: 16px;
  background-repeat: no-repeat;
  height: 38px;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  border-radius: 8px;
  padding: 0 45px 0 15px;
  cursor: pointer;
  background-color: var(--button-background-color-secondary-outline);
  color: var(--button-text-color-secondary-outline) !important;
  border: 2px solid var(--button-border-color-secondary-outline);
  font-size: 15px;
  line-height: 20px;
  font-weight: 900;
}

.dt-button.buttons-csv.buttons-html5 span {
  color: var(--button-text-color-secondary-outline) !important;
  font-size: 15px;
  line-height: 20px;
  font-weight: 900;
}

.dt-button.buttons-csv.buttons-html5 {
  background-position: right 15px center !important;
}

.dt-button.buttons-csv.buttons-html5.mini-csv-button {
  background-image: url(../../images/file-csv.svg);
  background-position: 4px center;
  height: 26px;
  width: 31px;
  margin-left: 10px;
  box-shadow: 0px 0px 0px #00000000;
  border: 0px;
  border-radius: 0px;
}

.dt-button.buttons-csv.buttons-html5.mini-csv-button:hover {
  color: #00000000 !important;
  border: 0px !important;
}

.dt-button.buttons-csv.buttons-html5.mini-csv-button:before {
  content: "";
}

.dt-button.buttons-csv.buttons-html5[disabled] {
  color: #b4b4b4;
  background-color: #f3f3f3;
  border-color: #b6b6b6;
  cursor: default;
}

.filter_input_datatable {
  width: 45% !important;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  max-width: 450px;
  min-width: 400px;
}

.filter_input_datatable input {
  flex: 1;
}

.filter_input_datatable label {
  max-width: 100%;
}

.filter_input_datatable .select2.select2-container {
  flex: 1;
}

.datatable_filter.content li.filter_input_datatable {
  margin: 1em 0;
}

/* Default datatable filter style */
.datatable_filter.content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.datatable_filter.content label {
  margin-right: 1em;
}

.datatable_filter.content li {
  flex: 1 1 auto;
  margin: 1em auto;
  padding: 0px 10px;
}

/* NO action buttons */
.dataTables_wrapper a.pandora_pagination.previous,
.dataTables_wrapper a.pandora_pagination.next {
  line-height: 15px;
  margin-bottom: 1px;
}

.dataTables_wrapper .dataTables_paginate span.ellipsis {
  padding: 10px 8px;
}

.dataTables_wrapper .dataTables_paginate.paging_simple_numbers {
  margin-top: 10px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info {
  margin-top: 14px;
  margin-right: 10px;
}

.dataTables_wrapper .dataTables_info {
  color: var(--text-color);
}

table.dataTable.dataTable-v2 thead .sorting_disabled {
  background-image: none !important;
}

table.td50p td {
  width: 50%;
}

.table-td-no-padding tr > td,
.table-td-no-padding tr:last-child > td {
  padding: 0;
}

#principal-action-buttons
  .action-buttons-left-content
  > .pagination-child-div:has(.dataTables_paginate[style*="display: none;"]) {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.col-min-width {
  width: 1% !important;
}

/* Child row */
table.dataTable.dataTable-v2 > tbody > tr > td.has-dt-control {
  padding: 0px 0px 0px 5px;
}

table.dataTable.dataTable-v2 span.dt-control {
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: block;
}

table.dataTable.dataTable-v2 .dt-control:before {
  cursor: pointer;
  content: "";
  height: 12px;
  width: 12px;
  margin-top: 10px;
  margin-bottom: 8px;
  display: inline-block;
  color: transparent;
  border: 0px;
  border-radius: 0px;
  box-shadow: none;
  line-height: normal;
  background-image: url(../../images/arrow-child-row.svg);
  background-repeat: no-repeat;
  background-size: 12px;
  background-color: transparent;
}

table.dataTable.dataTable-v2 tr.dt-hasChild .dt-control:before {
  transform: rotate(180deg);
  background-image: url(../../images/arrow-child-row.svg);
  background-repeat: no-repeat;
  background-size: 12px;
  background-color: transparent;
  margin-bottom: 15px;
}

table.dataTable.dataTable-v2 > tbody tr.datatable-child-row-has-table td {
  padding: 0px;
}

table.dataTable.dataTable-v2
  > tbody
  tr.datatable-child-row-has-table
  td
  table.dataTable.dataTable-v2 {
  margin: 0px !important;
  border: 0px !important;
}

tbody.first-td-no-border-top tr:first-child td {
  border-top: 0px !important;
}

td.has-dt-control {
  position: relative;
}

.table-tree-vertical {
  position: absolute;
  top: 0;
  left: 11px;
  height: 100%;
  width: 100%;
  border-left: 2px dashed var(--border-color-3);
}

.table-tree-vertical-half-bottom {
  position: absolute;
  bottom: 0px;
  left: 10px;
  height: 35%;
  width: 100%;
  border-left: 2px dashed var(--border-color-3);
}

tr:not(.dt-hasChild) td .table-tree-vertical-half-bottom {
  display: none;
}

tr:not(.dt-hasChild) td .table-tree-vertical-last {
  height: 50%;
  border-bottom: 2px dashed var(--border-color-3);
  width: 10px;
}
