/* ============================================================================
   PREMIUM DATATABLES STYLES - Complete Override
   Beautiful, modern, mobile-focused design that replaces all DataTables defaults
   ============================================================================ */

/* ============================================================================
   DATATABLES WRAPPER & CONTROLS
   ============================================================================ */

.dataTables_wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
               'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
               sans-serif;
}

/* Top controls container */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 20px;
  display: inline-block;
}

.dataTables_wrapper .dataTables_length {
  float: left;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
}

/* Length selector (Show X entries) */
.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin: 0;
}

.dataTables_wrapper .dataTables_length select {
  padding: 8px 32px 8px 12px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dataTables_wrapper .dataTables_length select:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Search box */
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin: 0;
}

.dataTables_wrapper .dataTables_filter input {
  padding: 10px 16px 10px 40px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  font-size: 14px;
  color: #1e293b;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  min-width: 250px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dataTables_wrapper .dataTables_filter input:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_filter input::placeholder {
  color: #94a3b8;
}

/* Bottom info and pagination container */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 20px;
  padding-top: 20px;
  display: inline-block;
}

.dataTables_wrapper .dataTables_info {
  float: left;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
  float: right;
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-block;
  padding: 8px 14px;
  margin-left: 4px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-width: 40px;
  text-align: center;
  box-sizing: border-box;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
  transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: #ffffff !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  color: #cbd5e1 !important;
  background: transparent !important;
  cursor: not-allowed;
  transform: none;
  border-color: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  font-weight: 700;
  padding: 8px 16px;
}

/* Processing indicator */
.dataTables_wrapper .dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  margin-left: -100px;
  margin-top: -26px;
  text-align: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 600;
  color: #6366f1;
  z-index: 1000;
}

.dataTables_wrapper .dataTables_processing::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 3px solid rgba(99, 102, 241, 0.3);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: dt-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes dt-spin {
  to { transform: rotate(360deg); }
}

/* Clear floats */
.dataTables_wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================================================
   TABLE STYLES
   ============================================================================ */

.dataTables_wrapper table.dataTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: inherit;
  border-radius: 16px;
  /*overflow: hidden;*/
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
              0 8px 24px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(0, 0, 0, 0.02);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.dataTables_wrapper table.dataTable:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
              0 12px 40px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Remove DataTables default borders */
.dataTables_wrapper table.dataTable.no-footer {
  border-bottom: none;
}

/* ============================================================================
   TABLE HEADER
   ============================================================================ */

.dataTables_wrapper table.dataTable thead {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  position: relative;
}

.dataTables_wrapper table.dataTable thead::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(99, 102, 241, 0.3) 20%, 
    rgba(139, 92, 246, 0.3) 50%, 
    rgba(236, 72, 153, 0.3) 80%, 
    transparent 100%);
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  color: #1e293b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: none;
  border-top: none;
  position: relative;
  vertical-align: middle;
  white-space: nowrap;
  background: transparent;
}

.dataTables_wrapper table.dataTable thead th:first-child,
.dataTables_wrapper table.dataTable thead td:first-child {
  border-top-left-radius: 16px;
  padding-left: 16;
}

.dataTables_wrapper table.dataTable thead th:last-child,
.dataTables_wrapper table.dataTable thead td:last-child {
  border-top-right-radius: 16px;
  padding-right: 16px;
}

/* Sortable columns */
.dataTables_wrapper table.dataTable thead .sorting,
.dataTables_wrapper table.dataTable thead .sorting_asc,
.dataTables_wrapper table.dataTable thead .sorting_desc,
.dataTables_wrapper table.dataTable thead .sorting_asc_disabled,
.dataTables_wrapper table.dataTable thead .sorting_desc_disabled {
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-right: 40px;
}

.dataTables_wrapper table.dataTable thead .sorting:hover,
.dataTables_wrapper table.dataTable thead .sorting_asc:hover,
.dataTables_wrapper table.dataTable thead .sorting_desc:hover {
  background-color: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  transform: translateY(-1px);
}

/* Sorting indicators */
.dataTables_wrapper table.dataTable thead .sorting::after,
.dataTables_wrapper table.dataTable thead .sorting_asc::after,
.dataTables_wrapper table.dataTable thead .sorting_desc::after {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.dataTables_wrapper table.dataTable thead .sorting::after {
  content: '⇅';
  opacity: 0.25;
}

.dataTables_wrapper table.dataTable thead .sorting:hover::after {
  opacity: 0.5;
}

.dataTables_wrapper table.dataTable thead .sorting_asc,
.dataTables_wrapper table.dataTable thead .sorting_desc {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.dataTables_wrapper table.dataTable thead .sorting_asc::after {
  content: '↑';
  opacity: 1;
  color: #6366f1;
  font-weight: 900;
}

.dataTables_wrapper table.dataTable thead .sorting_desc::after {
  content: '↓';
  opacity: 1;
  color: #6366f1;
  font-weight: 900;
}

/* ============================================================================
   TABLE BODY
   ============================================================================ */

.dataTables_wrapper table.dataTable tbody {
  background: transparent;
}

.dataTables_wrapper table.dataTable tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  background: transparent;
}

/*.dataTables_wrapper table.dataTable tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}*/

.dataTables_wrapper table.dataTable tbody tr:hover {
  background: linear-gradient(90deg,
    rgba(99, 102, 241, 0.04) 0%,
    rgba(139, 92, 246, 0.02) 50%,
    transparent 100%) !important;
  /*transform: translateX(2px);*/
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dataTables_wrapper table.dataTable tbody tr:hover::before {
  opacity: 1;
}

.dataTables_wrapper table.dataTable tbody tr:last-child {
  border-bottom: none;
  margin-bottom:0!important;
}

/* Striping */
.dataTables_wrapper table.dataTable tbody tr.odd {
  background: transparent;
}

.dataTables_wrapper table.dataTable tbody tr.even {
  background: rgba(248, 250, 252, 0.4);
}

.dataTables_wrapper table.dataTable tbody tr.even:hover {
  background: linear-gradient(90deg, 
    rgba(99, 102, 241, 0.05) 0%, 
    rgba(139, 92, 246, 0.03) 50%,
    rgba(248, 250, 252, 0.4) 100%) !important;
}

.dataTables_wrapper table.dataTable tbody th,
.dataTables_wrapper table.dataTable tbody td {
  padding: 18px 24px;
  vertical-align: middle;
  color: #334155;
  border: none;
  border-top: none;
  background: transparent;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}

.dataTables_wrapper table.dataTable tbody td:first-child,
.dataTables_wrapper table.dataTable tbody th:first-child {
  font-weight: 600;
  color: #1e293b;
  padding-left: 16px;
}

.dataTables_wrapper table.dataTable tbody td:last-child,
.dataTables_wrapper table.dataTable tbody th:last-child {
  padding-right: 16px;
}

/* Selected rows */
.dataTables_wrapper table.dataTable tbody tr.selected,
.dataTables_wrapper table.dataTable tbody tr.selected:hover {
  background: linear-gradient(90deg, 
    rgba(99, 102, 241, 0.12) 0%, 
    rgba(139, 92, 246, 0.08) 50%,
    rgba(236, 72, 153, 0.06) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.dataTables_wrapper table.dataTable tbody tr.selected::before {
  opacity: 1;
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

.dataTables_wrapper table.dataTable tbody tr.selected td:first-child {
  padding-left: 24px;
}

/* ============================================================================
   TABLE FOOTER
   ============================================================================ */

.dataTables_wrapper table.dataTable tfoot {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  position: relative;
}

.dataTables_wrapper table.dataTable tfoot::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(99, 102, 241, 0.3) 20%, 
    rgba(139, 92, 246, 0.3) 50%, 
    rgba(236, 72, 153, 0.3) 80%, 
    transparent 100%);
}

.dataTables_wrapper table.dataTable tfoot th,
.dataTables_wrapper table.dataTable tfoot td {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  border-top: none;
  background: transparent;
  text-align: left;
  vertical-align: middle;
}

.dataTables_wrapper table.dataTable tfoot th:first-child,
.dataTables_wrapper table.dataTable tfoot td:first-child {
  border-bottom-left-radius: 16px;
  padding-left: 16px;
}

.dataTables_wrapper table.dataTable tfoot th:last-child,
.dataTables_wrapper table.dataTable tfoot td:last-child {
  border-bottom-right-radius: 16px;
  padding-right: 16px;
}

/* ============================================================================
   RESPONSIVE - MOBILE STACKING
   ============================================================================ */

/* Tablet landscape */
@media screen and (max-width: 992px) {
  .dataTables_wrapper table.dataTable {
    font-size: 14px;
    border-radius: 14px;
  }
  
  .dataTables_wrapper table.dataTable thead th,
  .dataTables_wrapper table.dataTable thead td {
    padding: 16px 20px;
    font-size: 12px;
  }
  
  .dataTables_wrapper table.dataTable tbody th,
  .dataTables_wrapper table.dataTable tbody td {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .dataTables_wrapper table.dataTable tfoot th,
  .dataTables_wrapper table.dataTable tfoot td {
    padding: 16px 20px;
  }
  
  .dataTables_wrapper .dataTables_filter input {
    min-width: 200px;
  }

    .dataTables_wrapper table.dataTable thead td:first-child {
  border-top-left-radius: 10px;
  padding-left: 5px;
}

.dataTables_wrapper table.dataTable thead th:last-child,
.dataTables_wrapper table.dataTable thead td:last-child {
  border-top-right-radius: 10px;
  padding-right: 5px;
}

.dataTables_wrapper table.dataTable tfoot th:first-child,
.dataTables_wrapper table.dataTable tfoot td:first-child {
  border-bottom-left-radius: 16px;
  padding-left: 5px;
}

.dataTables_wrapper table.dataTable tfoot th:last-child,
.dataTables_wrapper table.dataTable tfoot td:last-child {
  border-bottom-right-radius: 16px;
  padding-right: 5px;
}

.dataTables_wrapper table.dataTable tbody td:first-child,
.dataTables_wrapper table.dataTable tbody th:first-child {
  padding-left: 5px;
}

.dataTables_wrapper table.dataTable tbody td:last-child,
.dataTables_wrapper table.dataTable tbody th:last-child {
  padding-right: 5px;
}

}

/* Tablet portrait */
@media screen and (max-width: 768px) {
  .dataTables_wrapper table.dataTable {
    border-radius: 12px;
    font-size: 13px;
  }
  
  .dataTables_wrapper table.dataTable thead th,
  .dataTables_wrapper table.dataTable thead td {
    padding: 14px 16px;
    font-size: 11px;
  }
  
  .dataTables_wrapper table.dataTable tbody th,
  .dataTables_wrapper table.dataTable tbody td {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .dataTables_wrapper table.dataTable tfoot th,
  .dataTables_wrapper table.dataTable tfoot td {
    padding: 14px 16px;
  }
  
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none;
    display: block;
    text-align: left;
    margin-bottom: 12px;
  }
  
  .dataTables_wrapper .dataTables_filter input {
    min-width: 100%;
    margin-top: 8px;
  }
  
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    display: block;
    text-align: center;
    margin-top: 12px;
  }
  
  .dataTables_wrapper .dataTables_paginate {
    margin-top: 16px;
  }
}

/* Mobile landscape */
@media screen and (max-width: 640px) {
  .dataTables_wrapper table.dataTable {
    border-radius: 10px;
  }
  
  .dataTables_wrapper table.dataTable thead th,
  .dataTables_wrapper table.dataTable thead td {
    padding: 12px 14px;
    font-size: 10px;
  }
  
  .dataTables_wrapper table.dataTable tbody th,
  .dataTables_wrapper table.dataTable tbody td {
    padding: 10px;
    font-size: 13px;
  }
  
  .dataTables_wrapper .dataTables_length select {
    padding: 6px 28px 6px 10px;
    font-size: 13px;
  }
  
  .dataTables_wrapper .dataTables_filter input {
    padding: 8px 14px 8px 36px;
    font-size: 13px;
  }
  
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 36px;
  }

}

/* Mobile portrait - Stack mode */
@media screen and (max-width: 576px) {
  /* Hide standard table header */
  .dataTables_wrapper table.dataTable.table-stack thead {
    display: none;
  }
  
  /* Make each row a card */
  .dataTables_wrapper table.dataTable.table-stack tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: inherit;
  }
  
  .dataTables_wrapper table.dataTable.table-stack tbody tr::before {
    display: none;
  }
  
  .dataTables_wrapper table.dataTable.table-stack tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* Make each cell a row with label */
  .dataTables_wrapper table.dataTable.table-stack tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 30px;
  }
  
  .dataTables_wrapper table.dataTable.table-stack tbody td:last-child {
    border-bottom: none;
  }
  
  /* Add label before each cell */
  .dataTables_wrapper table.dataTable.table-stack tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    color: #64748b;
    text-align: left;
    letter-spacing: 0.5px;
    flex: 0 0 40%;
  }
  
  /* First cell gets special styling */
  .dataTables_wrapper table.dataTable.table-stack tbody td:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
    font-weight: 700;
    color: #1e293b;
    padding-left: 20px;
  }
  
  .dataTables_wrapper table.dataTable.table-stack tbody td:first-child::before {
    color: #4f46e5;
  }
  
  .dataTables_wrapper table.dataTable.table-stack tbody td:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
  /* Hide footer on mobile */
  .dataTables_wrapper table.dataTable.table-stack tfoot {
    display: none;
  }
  
  /* Full width controls */
  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .dataTables_wrapper .dataTables_length select,
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }
  
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 2px;
  }

  .dataTables_wrapper table.dataTable.table-stack.table-stack tbody tr td {
    width: auto !important;
  }
}

/* Very small devices */
@media screen and (max-width: 375px) {
  .dataTables_wrapper table.dataTable.table-stack tbody td {
    padding: 12px 16px;
    font-size: 12px;
  }
  
  .dataTables_wrapper table.dataTable.table-stack tbody td::before {
    font-size: 10px;
    flex: 0 0 35%;
  }
}

/* ============================================================================
   SCROLLING TABLES
   ============================================================================ */

.dataTables_wrapper .dataTables_scroll {
  clear: both;
}

.dataTables_wrapper .dataTables_scrollBody {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 10px;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
}

/* ============================================================================
   ENTRANCE ANIMATIONS
   ============================================================================ */

@keyframes table-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dataTables_wrapper table.dataTable {
  animation: table-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Row stagger animation */
.dataTables_wrapper table.dataTable tbody tr {
  animation: row-fade-in 0.3s ease-out backwards;
}

@keyframes row-fade-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dataTables_wrapper table.dataTable tbody tr:nth-child(1) { animation-delay: 0.05s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(2) { animation-delay: 0.1s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(3) { animation-delay: 0.15s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(4) { animation-delay: 0.2s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(5) { animation-delay: 0.25s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(6) { animation-delay: 0.3s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(7) { animation-delay: 0.35s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(8) { animation-delay: 0.4s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(9) { animation-delay: 0.45s; }
.dataTables_wrapper table.dataTable tbody tr:nth-child(10) { animation-delay: 0.5s; }

/* ============================================================================
   FOCUS & ACCESSIBILITY
   ============================================================================ */

.dataTables_wrapper table.dataTable thead th:focus-visible,
.dataTables_wrapper table.dataTable tbody td:focus-visible,
.dataTables_wrapper table.dataTable tfoot td:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: -3px;
  border-radius: 4px;
}

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
  .dataTables_wrapper table.dataTable tbody tr:active {
    background: rgba(99, 102, 241, 0.08) !important;
    transition: background 0.1s ease;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Text alignment */
.dataTables_wrapper table.dataTable .text-left {
  text-align: left !important;
}

.dataTables_wrapper table.dataTable .text-center {
  text-align: center !important;
}

.dataTables_wrapper table.dataTable .text-right {
  text-align: right !important;
}

/* Vertical alignment */
.dataTables_wrapper table.dataTable .align-top {
  vertical-align: top !important;
}

.dataTables_wrapper table.dataTable .align-middle {
  vertical-align: middle !important;
}

.dataTables_wrapper table.dataTable .align-bottom {
  vertical-align: bottom !important;
}

/* Number formatting */
.dataTables_wrapper table.dataTable .table-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* Desktop: Hide columns marked with table-list-mobile-show */
.dataTables_wrapper table.dataTable.table-list-mobile thead th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile thead td.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tbody th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tbody td.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tfoot th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tfoot td.table-list-mobile-show {
  display: none;
}

/* Mobile: Show ONLY columns with table-list-mobile-show class */
@media screen and (max-width: 576px) {
  /* Hide ALL columns by default */
.dataTables_wrapper table.dataTable.table-list-mobile thead th,
.dataTables_wrapper table.dataTable.table-list-mobile thead td,
.dataTables_wrapper table.dataTable.table-list-mobile tbody th,
.dataTables_wrapper table.dataTable.table-list-mobile tbody td,
.dataTables_wrapper table.dataTable.table-list-mobile tfoot th,
.dataTables_wrapper table.dataTable.table-list-mobile tfoot td {
    display: none !important;
  }
  
  /* Show only columns marked with table-list-mobile-show - default for non-stacked tables */
.dataTables_wrapper table.dataTable.table-list-mobile thead th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile thead td.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tbody th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tbody td.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tfoot th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tfoot td.table-list-mobile-show {
    display: table-cell !important;
  }
  
.dataTables_wrapper table.dataTable.table-list-mobile.table-stack thead th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile.table-stack thead td.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile.table-stack tbody th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile.table-stack tbody td.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile.table-stack tfoot th.table-list-mobile-show,
.dataTables_wrapper table.dataTable.table-list-mobile tfoot td.table-list-mobile-show {
    display: flex !important;
  }

  /* Force tables to take full width even when hidden */
.dataTables_wrapper table.dataTable.table-list-mobile {
  width: 100% !important;
}

.dataTables_wrapper table.dataTable.table-list-mobile tbody td.table-list-mobile-show {
  width: 100% !important;
}
}
