/*!
 * Simple offline styling compatible with jQuery.DataTable API.
 * Not an exact copy of the upstream theme but keeps the same class names
 * so existing markup continues to work while offline.
 */

.dataTables_wrapper {
  position: relative;
  clear: both;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.dataTables_wrapper::after {
  content: '';
  display: block;
  clear: both;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_length {
  float: left;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-weight: 400;
  color: #444;
}

.dataTables_wrapper .dataTables_length select {
  margin: 0 0.25rem;
  padding: 0.15rem 0.4rem;
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: 0.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

table.dataTable {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0;
  color: inherit;
}

table.dataTable thead th,
table.dataTable thead td {
  padding: 0.75rem;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.table-striped.dataTable tbody tr:nth-of-type(odd),
table.dataTable tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

table.dataTable tbody th,
table.dataTable tbody td {
  padding: 0.65rem;
  border-bottom: 1px solid #f1f3f5;
}

table.dataTable tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.08);
}

/* Sorting indicators */

.table.dataTable th.sorting,
table.dataTable th.sorting,
table.dataTable th.sorting_asc,
table.dataTable th.sorting_desc {
  position: relative;
  padding-right: 1.75rem;
}

.table.dataTable th.sorting::after,
table.dataTable th.sorting::after,
.table.dataTable th.sorting_asc::after,
table.dataTable th.sorting_desc::after {
  content: '\2195';
  position: absolute;
  right: 0.5rem;
  font-size: 0.75rem;
  color: #adb5bd;
  transition: color 0.2s;
}

.table.dataTable th.sorting_asc::after,
table.dataTable th.sorting_desc::after {
  color: #495057;
}

.table.dataTable th.sorting_asc::after {
  content: '\2191';
}

.table.dataTable th.sorting_desc::after {
  content: '\2193';
}

.dataTables_wrapper .dataTables_info {
  float: left;
  margin-top: 0.85rem;
  color: #555;
}

.dataTables_wrapper .dataTables_paginate {
  float: right;
  margin-top: 0.5rem;
  text-align: right;
}

.dataTables_wrapper .paginate_button {
  display: inline-block;
  min-width: 2.1rem;
  margin-left: 0.25rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #fff;
  color: #007bff;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.dataTables_wrapper .paginate_button.disabled,
.dataTables_wrapper .paginate_button.disabled:hover {
  color: #adb5bd;
  border-color: #e9ecef;
  cursor: default;
  background-color: #fff;
}

.dataTables_wrapper .paginate_button:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.dataTables_wrapper .paginate_button.current {
  background-color: #007bff;
  color: #fff !important;
  border-color: #007bff;
}

.dataTables_wrapper .dataTables_empty {
  text-align: center;
  padding: 2rem 0;
  color: #777;
}

@media (max-width: 767px) {
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
  }
}
