/* Modern Investment ERP Theme */
:root {
  --bg: #07090F; --surface: #0C1118; --card: #101820;
  --border: #182030; --borderA: #253C55;
  --gold: #D4A843; --goldL: #F0CC7A;
  --emerald: #10B981; --emeraldL: #34D399;
  --sapphireL: #7DD3FC; --sapphire: #0EA5E9;
  --rose: #F43F5E;
  --violet: #8B5CF6;
  --text: #E2EDF5; --muted: #4E6880; --faint: #0B1520;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

a {
  color: var(--sapphireL);
  text-decoration: none;
  transition: all 0.15s;
}

a:hover {
  color: var(--sapphire);
  text-decoration: none;
}

/* Header */
header, .header {
  background: rgba(12,17,24,0.97);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--emerald), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #07090F;
  flex-shrink: 0;
}

.logo-img, .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand {
  font-weight: 900;
  font-size: 14px;
  background: linear-gradient(90deg, var(--gold), var(--emerald), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 1.7s infinite;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Navigation */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
  margin-top: 60px;
  position: sticky;
  top: 60px;
  z-index: 199;
  width: 100%;
}

.tab-btn, .nav-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 15px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}

.tab-btn.active, .nav-link.active, .nav-link:active {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.tab-btn:hover, .nav-link:hover {
  color: var(--text);
}

/* Main Wrapper */
main, .main-wrapper {
  padding: 0;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Page Wrapper */
.page-wrapper, .content {
  padding: 18px 16px;
  flex: 1;
}

.content.container-fluid {
  padding: 18px 16px;
  max-width: 100%;
}

/* Content area below nav */
.content {
  margin-top: 0;
}

/* Chip/Badge */
.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.chip.sm {
  padding: 1px 7px;
  font-size: 9px;
}

/* Stat Card */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.stat-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
}

.stat-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 4px;
  padding-left: 8px;
}

.stat-value {
  font-size: 18px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: -1px;
  padding-left: 8px;
}

.stat-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
  padding-left: 8px;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.card-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-body {
  padding: 16px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--surface);
}

th {
  padding: 8px 12px;
  text-align: left;
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  font-size: 11px;
  border-top: 1px solid var(--faint);
  vertical-align: middle;
}

tbody tr:hover {
  background: rgba(212, 168, 67, 0.04);
}

/* Form Elements */
label.fl {
  display: block;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 8px;
  font-weight: 600;
}

label {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
}

input,
select,
textarea,
.form-control {
  background: var(--card) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px;
  color: var(--text) !important;
  padding: 11px 14px;
  font-size: 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.2s ease;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted) !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--sapphireL) !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1) !important;
  background: var(--card) !important;
}

select,
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23E2EDF5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
  padding-right: 38px !important;
  appearance: none !important;
  cursor: pointer;
}

select option,
.form-select option {
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Form Groups */
.form-group,
.mb-3 {
  margin-bottom: 16px;
}

.form-check {
  margin-bottom: 12px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  border-radius: 4px;
}

.form-check-input:checked {
  background: var(--sapphireL);
  border-color: var(--sapphireL);
}

.form-check-label {
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0;
  font-size: 13px;
}

/* Modal Forms */
.modal-body input,
.modal-body select,
.modal-body textarea,
.modal-body .form-control {
  background: var(--card) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text) !important;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus,
.modal-body .form-control:focus {
  border-color: var(--sapphireL) !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1) !important;
}

/* Input Sizing */
input.form-control-sm,
select.form-control-sm,
textarea.form-control-sm {
  padding: 7px 10px;
  font-size: 11px;
}

input.form-control-lg,
select.form-control-lg,
textarea.form-control-lg {
  padding: 13px 16px;
  font-size: 14px;
}

/* Input States */
input:disabled,
select:disabled,
textarea:disabled,
.form-control:disabled {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
  opacity: 0.6;
  cursor: not-allowed;
}

input[type="file"]::file-selector-button {
  background: var(--sapphireL);
  color: #040810;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 8px;
  transition: all 0.2s;
}

/* Button */
.btn {
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.4px;
  font-family: inherit;
  transition: all 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sapphire), var(--sapphireL)) !important;
  color: #040810 !important;
  border: none !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--emerald), var(--emeraldL)) !important;
  color: #040810 !important;
  border: none !important;
}

.btn-warning {
  background: linear-gradient(135deg, var(--gold), var(--goldL)) !important;
  color: #040810 !important;
  border: none !important;
}

.btn-info {
  background: linear-gradient(135deg, var(--sapphire), var(--sapphireL)) !important;
  color: #040810 !important;
  border: none !important;
}

.btn-danger {
  background: linear-gradient(135deg, var(--rose), #FB7185) !important;
  color: #040810 !important;
  border: none !important;
}

.btn-secondary {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

.btn-secondary:hover {
  background: var(--borderA) !important;
  border-color: var(--borderA) !important;
}

/* Grid */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.col-md-6 {
  grid-column: span 1;
}

.col-xl-4 {
  grid-column: span 1;
}

@media (min-width: 992px) {
  .grid-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .row {
    grid-template-columns: repeat(3, 1fr);
  }
  .col-xl-4 {
    grid-column: span 1;
  }
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toast */
#toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  background: var(--card);
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 12px;
  backdrop-filter: blur(8px);
  display: none;
  border: 1px solid var(--border);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
  }
}

.anim {
  animation: fadeUp 0.3s ease;
}

/* Investor Card Grid */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.investor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s;
}

.investor-card:hover {
  transform: translateY(-2px);
}

.topline {
  height: 2px;
}

/* Spark Bar */
.spark-wrap {
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}

.spark-fill {
  border-radius: 3px;
  transition: width 0.8s;
}

/* Sidebar & Navigation */
.sidebar {
  display: none !important;
}

.sidebar-menu {
  display: flex !important;
  flex-direction: row;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.sidebar-menu li {
  display: list-item;
}

.sidebar-menu a {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  gap: 5px;
}

.sidebar-menu a.active {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.sidebar-menu a:hover {
  color: var(--text);
}

/* Dropdown */
.dropdown-menu {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 0;
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10000;
  min-width: 200px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  color: var(--text);
  padding: 8px 16px;
  font-size: 12px;
  display: block;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.dropdown-item.active, .dropdown-item:active {
  background: var(--surface);
  color: var(--gold);
}

.dropdown-item:hover {
  background: rgba(212, 168, 67, 0.08);
  color: var(--gold);
}

/* User Menu */
.user-img {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-text {
  font-size: 12px;
  display: flex;
  flex-direction: column;
}

.user-text h6 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.user-text p {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}

.new-user-menus {
  position: relative;
  display: inline-block;
}

.new-user-menus .dropdown-toggle {
  padding: 0;
}

.new-user-menus .dropdown-menu {
  position: absolute;
  right: 0;
}

/* Modal */
.modal {
  --bs-modal-bg: var(--card);
  --bs-modal-border-color: var(--border);
}

.modal.fade .modal-dialog {
  transition: transform .3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
  color: var(--text);
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.modal-body {
  padding: 16px;
  background: var(--card);
  color: var(--text);
}

.modal-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 16px;
}

.modal-header .btn-close {
  filter: brightness(1.2) invert(1);
  opacity: 0.7;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-backdrop.show {
  opacity: 0.7;
}

/* Close Button */
.btn-close {
  background: transparent;
  border: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.btn-close:hover {
  opacity: 1;
}

/* Avatar */
.avatar, .avatar-img {
  border-radius: 8px;
  object-fit: cover;
}

/* Print Styles */
@media print {
  .header, .sidebar, .nav, .no-print, .card-header, form, .btn {
    display: none !important;
  }
  body {
    background: white;
    color: #000;
  }
  .card {
    background: white;
    border-color: #ccc;
  }
  table {
    color: #000;
  }
}

/* Responsive */
@media (max-width: 768px) {
  header {
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
  }
  
  .header-left {
    width: 100%;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  #nav {
    margin-top: 0;
    padding: 0 10px;
    overflow-x: auto;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-stats {
    grid-template-columns: 1fr;
  }
  main, .main-wrapper {
    padding: 10px;
  }
  .page-wrapper, .content {
    padding: 10px;
  }
  .stat-card {
    min-height: auto;
    padding: 12px;
  }
  .stat-value {
    font-size: 16px;
  }
  table {
    font-size: 11px;
  }
  td, th {
    padding: 6px 8px;
  }
}

/* Bootstrap Compatibility */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.g-4 {
  gap: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 1.5rem;
}

.text-muted {
  color: var(--muted);
}

/* DataTables Customization */
.dataTables_wrapper {
  color: var(--text);
  width: 100%;
}

table.dataTable {
  background: var(--card);
  border-collapse: collapse;
  margin: 0;
  width: 100%;
}

table.dataTable thead {
  background: linear-gradient(90deg, rgba(125,211,252,0.08), transparent);
}

table.dataTable thead th {
  background: var(--surface);
  color: var(--sapphireL);
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table.dataTable tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}

table.dataTable tbody tr {
  transition: all 0.15s ease;
}

table.dataTable tbody tr:hover {
  background: rgba(125, 211, 252, 0.05);
}

table.dataTable tbody tr.odd {
  background: transparent;
}

table.dataTable tbody tr.even {
  background: rgba(12, 17, 24, 0.5);
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 0;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--text);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 11px;
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
  color: var(--muted);
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: var(--sapphireL);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.dataTables_wrapper .dataTables_length select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23E2EDF5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  appearance: none;
}

.dataTables_wrapper .dataTables_info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  margin: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 6px 10px;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  display: inline-block;
  font-weight: 500;
  min-width: 28px;
  text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, var(--gold), var(--goldL));
  color: #040810;
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.2);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current),
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
  background: var(--borderA);
  border-color: var(--sapphireL);
  color: var(--sapphireL);
  transform: translateY(-2px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:focus {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--surface);
  border-color: var(--border);
  transform: none;
}

.dataTables_processing {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px;
  padding: 24px 32px !important;
  z-index: 1000 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
  font-weight: 500;
}

.dataTables_processing::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid var(--sapphireL);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* DataTable Sorting */
.dataTables_wrapper thead th.sorting,
.dataTables_wrapper thead th.sorting_asc,
.dataTables_wrapper thead th.sorting_desc {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 24px;
  transition: all 0.2s ease;
}

.dataTables_wrapper thead th.sorting:hover,
.dataTables_wrapper thead th.sorting_asc:hover,
.dataTables_wrapper thead th.sorting_desc:hover {
  color: var(--sapphireL);
  background: rgba(125, 211, 252, 0.12);
}

.dataTables_wrapper thead .sorting::after {
  content: "⇅";
  position: absolute;
  right: 8px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.5;
}

.dataTables_wrapper thead .sorting_asc::after {
  content: "↑";
  position: absolute;
  right: 8px;
  font-size: 12px;
  color: var(--sapphireL);
  opacity: 1;
  font-weight: 700;
}

.dataTables_wrapper thead .sorting_desc::after {
  content: "↓";
  position: absolute;
  right: 8px;
  font-size: 12px;
  color: var(--sapphireL);
  opacity: 1;
  font-weight: 700;
}
  font-family: inherit;
  font-size: 11px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: var(--borderA);
}

.dataTables_wrapper .dataTables_info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 5px 8px;
  margin: 2px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 11px;
  display: inline-block;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--gold);
  color: #040810;
  border-color: var(--gold);
  font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current),
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
  background: var(--borderA);
  border-color: var(--borderA);
  color: var(--text);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:focus {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Utility Classes */

.dataTables_wrapper thead th.sorting:hover,
.dataTables_wrapper thead th.sorting_asc:hover,
.dataTables_wrapper thead th.sorting_desc:hover {
  color: var(--sapphireL);
  background: rgba(125, 211, 252, 0.12);
}

.dataTables_wrapper thead .sorting::after {
  content: "⇅";
  position: absolute;
  right: 8px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.5;
}

.dataTables_wrapper thead .sorting_asc::after {
  content: "↑";
  position: absolute;
  right: 8px;
  font-size: 12px;
  color: var(--sapphireL);
  opacity: 1;
  font-weight: 700;
}

.dataTables_wrapper thead .sorting_desc::after {
  content: "↓";
  position: absolute;
  right: 8px;
  font-size: 12px;
  color: var(--sapphireL);
  opacity: 1;
  font-weight: 700;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.fw-900 { font-weight: 900; }
.text-success { color: var(--emerald); }
.text-danger { color: var(--rose); }
.text-warning { color: var(--gold); }
.text-info { color: var(--sapphireL); }
