/* Hide default DataTables arrows */
.neon-table.dataTable thead .sorting:before,
.neon-table.dataTable thead .sorting:after,
.neon-table.dataTable thead .sorting_asc:before,
.neon-table.dataTable thead .sorting_desc:after {
  display: none !important;
}

/* Header */
.neon-table thead th {
  background-color: rgba(30,41,59,.85);
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 6px rgba(56,189,248,.7);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(250,204,21,.25);
  padding: .75rem;
  text-align: center;
}
.neon-table thead th.has-active {
  color: #facc15 !important;
  text-shadow: 0 0 8px rgba(250,204,21,.9);
}

/* Sort buttons */
.sort-toggle button {
  background: transparent;
  border: 1px solid rgba(148,163,184,.3);
  color: #cbd5e1;
  font-size: .7rem;
  border-radius: 4px;
  padding: .15rem .4rem;
  transition: all .2s ease;
}
.sort-toggle button:hover {
  background: rgba(250,204,21,.15);
  color: #facc15;
  border-color: #facc15;
}
.sort-toggle button.active {
  background: #facc15;
  color: #1e293b;
  font-weight: 700;
}

/* Top controls (entries + search inline) */
.dt-global-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: .75rem 0;
  flex-wrap: wrap;
}
.dataTables_length select,
.dataTables_filter input {
  background: #1f2937;
  color: #facc15;
  border: 1px solid #334155;
  border-radius: .375rem;
  padding: .25rem .5rem;
}

/* Footer divider + footer */
.footer-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #facc15, transparent);
  animation: dt-pulse-soft 4s ease-in-out infinite; /* renamed */
  margin: .5rem 0;
}

@keyframes dt-pulse-soft {
  0%,100% { opacity: .3; }
  50%     { opacity: 1;  }
}

.dt-global-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .95rem;
  color: #fefce8;
}
.dataTables_paginate { display: flex; gap: .4rem; }
.dataTables_paginate .paginate_button {
  background: transparent;
  border: 1px solid rgba(250,204,21,.4);
  color: #facc15!important;
  padding: .3rem .75rem;
  border-radius: .4rem;
  transition: all .2s;
}
.dataTables_paginate .paginate_button:hover {
  background: rgba(250,204,21,.15);
  color: #fff!important;
  border-color: #facc15;
}
.dataTables_paginate .paginate_button.current {
  background: #facc15;
  color: #1e293b !important;
  font-weight: 700;
}

/* Zebra rows */
.neon-table tbody tr:nth-child(odd):not(.gold-row):not(.silver-row):not(.bronze-row) {
  background: rgba(255,255,255,.03);
  color: #e2e8f0;
}
.neon-table tbody tr:nth-child(even):not(.gold-row):not(.silver-row):not(.bronze-row) {
  background: rgba(255,255,255,.05);
  color: #f1f5f9;
}

/* Top 3 neon */
.gold-row td   { font-weight: 700; color: #facc15 }
.silver-row td { font-weight: 700; color: #e2e8f0 }
.bronze-row td { font-weight: 700; color: #f97316 }

.gold-row   { animation: pg 3s infinite alternate }
.silver-row { animation: ps 3s infinite alternate }
.bronze-row { animation: pb 3s infinite alternate }
@keyframes pg { from { box-shadow: inset 0 0 0 gold }   to { box-shadow: inset 0 0 15px gold } }
@keyframes ps { from { box-shadow: inset 0 0 0 silver } to { box-shadow: inset 0 0 15px silver } }
@keyframes pb { from { box-shadow: inset 0 0 0 #cd7f32 } to { box-shadow: inset 0 0 15px #cd7f32 } }

/* Clean borders */
.neon-table.dataTable,
.neon-table.dataTable td,
.neon-table.dataTable th {
  border: none !important;
}

/* Scrollable wrapper */
.table-scroll {
  max-height: 650px;
  overflow-y: auto;
}
.table-scroll::-webkit-scrollbar { width: 0; background: transparent; }


/* ==== Item typeahead ==== */
.item-combobox { position: relative; }
.item-pop{
  position:absolute; z-index:40; top: calc(100% + 6px); left:0; right:0;
  background: rgba(4,6,24,.96);
  border:1px solid rgba(148,163,184,.45);
  border-radius:.6rem;
  max-height: 18rem; overflow:auto;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  padding: .25rem;
}
.item-row{
  display:flex; align-items:center; gap:.6rem;
  padding:.5rem .6rem; cursor:pointer; border-radius:.45rem;
  color:#e5e7eb; font-size:.95rem; line-height:1.2;
}
.item-row:hover{ background: rgba(56,189,248,.10); }
.item-row.is-active{ background: rgba(56,189,248,.18); outline:1px solid rgba(56,189,248,.45); }
.item-empty{ padding:.55rem .6rem; color:#94a3b8; font-size:.9rem; }

.item-row .pill{
  margin-left:auto; font-size:.7rem; color:#a5b4fc; opacity:.8;
}

.item-pop mark{
  background: none; color:#67e8f9;
  text-shadow: 0 0 6px rgba(34,211,238,.45);
  font-weight: 700;
}

/* highlight matching letters in Owner dropdown */
.owner-pop mark{
  background: none;
  color:#67e8f9;
  text-shadow: 0 0 6px rgba(34,211,238,.45);
  font-weight: 700;
}
.owner-empty{
  padding:.55rem .6rem;
  color:#94a3b8;
  font-size:.9rem;
}
#modeTitle.card-title {
  color: inherit;                 /* don’t force gold */
  -webkit-text-fill-color: inherit;
  background: none;               /* the gradient comes from stat-header--* */
  text-shadow: none;
}
