/* Delta coloring (force over bootstrap table styles) */
td.delta-pos { color: #b00020 !important; font-weight: 700; }
td.delta-neg { color: #0d47a1 !important; font-weight: 700; }
td.delta-zero { color: #2e7d32 !important; font-weight: 700; }


/* --- synced horizontal table scroll (top + main) --- */
.table-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 0.65rem;
  height: 22px;
  background: rgba(127, 127, 127, 0.16);
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-radius: 999px;
  scrollbar-width: auto;
  scrollbar-color: rgba(90, 90, 90, 0.9) rgba(127, 127, 127, 0.14);
}

.table-scroll-top > div {
  height: 20px;
}

.table-scroll-top::-webkit-scrollbar {
  height: 18px;
}

.table-scroll-top::-webkit-scrollbar-track {
  background: rgba(127, 127, 127, 0.14);
  border-radius: 999px;
}

.table-scroll-top::-webkit-scrollbar-thumb {
  background: rgba(90, 90, 90, 0.9);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.table-scroll-top:hover::-webkit-scrollbar-thumb {
  background: rgba(60, 60, 60, 0.95);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.table-scroll-sync {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.table-sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bs-body-bg, #fff);
  white-space: nowrap;
}
