/* ============================================================
   BloombergLayout.css
   Shared styles for ALL screener data pages (Bloomberg theme)
   Used by: all pages in /Pages/Technical/ and /Pages/Fundamental/
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #030507;
  --bg2: #070d15;
  --bg3: #0c1520;
  --bg4: #111f30;
  --line: rgba(255, 255, 255, 0.06);
  --line2: rgba(255, 255, 255, 0.10);
  --blue: #2563eb;
  --blue-b: #60a5fa;
  --blue-dim: rgba(37, 99, 235, 0.10);
  --amber: #f59e0b;
  --amber-b: #fbbf24;
  --green: #22c55e;
  --red: #ef4444;
  --text: #cbd5e1;
  --text3: #94a3b8;
  --mono: 'JetBrains Mono', monospace;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* ── STATUS BAR ── */
.bb-status-bar {
  background: var(--blue);
  padding: 0.28rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  overflow: hidden;
}

.bb-sb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.bb-sb-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.bb-sb-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ── TOP NAV ── */
.top-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--line2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: stretch;
  max-width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 1.5rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
  height: 52px;
  flex-shrink: 0;
}

.logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.center-menu {
  display: flex;
  align-items: stretch;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.dropbtn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--text3);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0 1.3rem;
  cursor: pointer;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, background 0.15s;
}

.dropbtn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.dropbtn::after {
  content: '▾';
  font-size: 0.65rem;
  opacity: 0.5;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-top: 2px solid var(--blue-b);
  min-width: 230px;
  z-index: 200;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
  color: var(--text3);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.1s, color 0.1s;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.dropdown-content a.active-page {
  color: var(--blue-b);
  border-left: 2px solid var(--blue-b);
  padding-left: calc(1.1rem - 2px);
}

.nav-end {
  margin-left: auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

.bb-live {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}

.bb-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: bb-blink 1.5s ease-in-out infinite;
}

@keyframes bb-blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.2
  }
}

/* ── BREADCRUMB ── */
.bb-breadcrumb {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.bb-breadcrumb a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
}

.bb-breadcrumb a:hover {
  color: var(--text);
}

.bb-breadcrumb .bb-crumb-sep {
  color: var(--line2);
}

.bb-breadcrumb .bb-crumb-current {
  color: var(--text3);
}

/* ── PAGE LAYOUT ── */
.bb-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  min-width: 0;
  /* critical: prevents grid blowout */
  transition: grid-template-columns 0.18s ease;
  overflow: hidden;
}

.bb-wrapper.sidebar-collapsed {
  grid-template-columns: 44px 1fr;
}

/* ── SIDEBAR ── */
.bb-sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg2);
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow: visible;
}

.bb-sidebar-toggle {
  width: 100%;
  height: 40px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg3);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: relative;
  padding-left: 1rem;
  transition: background 0.14s;
}

.bb-sidebar-toggle:hover {
  background: rgba(96, 165, 250, 0.08);
}

.bb-sidebar-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-b), var(--amber-b));
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.25);
  transition: background 0.14s, transform 0.14s;
}

.bb-sidebar-toggle:hover span {
  background: var(--amber-b);
}

.bb-sidebar-toggle:hover span:nth-child(1) {
  transform: translateX(2px);
}

.bb-sidebar-toggle:hover span:nth-child(2) {
  transform: translateX(4px);
}

.bb-sidebar-toggle:hover span:nth-child(3) {
  transform: translateX(2px);
}

.bb-wrapper.sidebar-collapsed .bb-sidebar-toggle {
  align-items: center;
  justify-content: center;
  padding-left: 0;
}

.bb-sidebar-toggle::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.98);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

.bb-sidebar-toggle:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.bb-wrapper.sidebar-collapsed .bb-sb-section {
  display: none;
}

.bb-sb-section {
  border-bottom: 1px solid var(--line);
}

.bb-sb-hdr {
  padding: 0.55rem 1rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--blue-b);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg3);
  border-bottom: 1px solid var(--line);
}

.bb-sb-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.62rem 1rem;
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--text3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  transition: background 0.12s, color 0.12s;
}

.bb-sb-link:hover {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.bb-sb-link.active {
  background: var(--blue-dim);
  color: var(--blue-b);
  border-left: 2px solid var(--blue-b);
  padding-left: calc(1rem - 2px);
}

.bb-dot-t {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-b);
  flex-shrink: 0;
}

.bb-dot-f {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber-b);
  flex-shrink: 0;
}

.bb-sb-arr {
  margin-left: auto;
  font-size: 0.62rem;
  color: var(--text3);
}

/* ── TABLE SCROLL CONTAINER ── */
/* Makes only the table area scroll horizontally on mobile,
   not the entire page */
.bb-content {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* critical: prevents content from pushing layout */
  overflow: hidden;
}

/* DataTable scroll wrapper gets its own horizontal scroll */
.dataTables_wrapper {
  padding: 0 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  width: 100%;
  overflow-x: auto;
  /* table scrolls, not the page */
  -webkit-overflow-scrolling: touch;
  /* smooth scroll on iOS */
}

/* ── PAGE HEADER ── */
.bb-page-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  min-width: 0;
  /* prevent overflow */
  overflow: hidden;
}

.bb-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.bb-tag-tech {
  background: var(--blue-dim);
  color: var(--blue-b);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.bb-tag-fund {
  background: var(--blue-dim);
  color: var(--blue-b);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.bb-page-title {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.bb-page-title .bb-hl {
  color: var(--blue-b);
}

.bb-page-desc {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.65;
  max-width: 800px;
}

/* metric strip (top-right of header) */
.bb-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  align-self: start;
  min-width: 240px;
}

.bb-metric {
  background: var(--bg3);
  padding: 0.7rem 1rem;
}

.bb-metric-lbl {
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--text3);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.bb-metric-val {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.bb-metric-val .u {
  font-size: 0.6rem;
  color: var(--blue-b);
}

.bb-metric-sub {
  font-family: var(--mono);
  font-size: 0.54rem;
  color: var(--green);
  margin-top: 2px;
}

/* ── CRITERIA PANEL ── */
.bb-criteria-panel {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.bb-criteria-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.bb-criteria-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bb-chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  border: 1px solid;
}

.bb-chip-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-b);
  border-color: rgba(245, 158, 11, 0.2);
}

.bb-chip-blue {
  background: var(--blue-dim);
  color: var(--blue-b);
  border-color: rgba(37, 99, 235, 0.2);
}

.bb-chip-green {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-b);
  border-color: rgba(245, 158, 11, 0.2);
}

.bb-chip-neutral {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text3);
  border-color: var(--line);
}

.bb-chip-red {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-b);
  border-color: rgba(245, 158, 11, 0.2);
}

/* ── TABLE PANEL HEADER ── */
.bb-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bb-panel-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
}

.bb-panel-meta {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.bb-panel-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

#bb-stock-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.15);
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
}

/* ── LOADING SPINNER ── */
.bb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 3rem;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.bb-spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line2);
  border-top-color: var(--blue-b);
  border-radius: 50%;
  animation: bb-spin 0.7s linear infinite;
}

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

/* ── LAST UPDATED ── */
.bb-last-updated {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── DATATABLES OVERRIDES ── */
/* Note: the base .dataTables_wrapper rule is defined above in TABLE SCROLL CONTAINER */

.dataTables_wrapper .dataTables_filter {
  float: none !important;
  width: 100% !important;
  padding: 0.75rem 1.5rem !important;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: flex-start;
  text-align: left !important;
}

.dataTables_wrapper .dataTables_filter label {
  color: var(--text3) !important;
  font-size: 0.75rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dataTables_wrapper .dataTables_filter input {
  background: var(--bg3) !important;
  border: 1px solid var(--line2) !important;
  border-radius: 4px !important;
  color: var(--text) !important;
  padding: 0.32rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-family: var(--mono) !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: rgba(37, 99, 235, 0.4) !important;
}

.dataTables_wrapper .dataTables_info {
  padding: 0.65rem 1.5rem !important;
  font-family: var(--mono) !important;
  font-size: 0.62rem !important;
  color: var(--text3) !important;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}

.dataTables_wrapper .dataTables_paginate {
  padding: 0.65rem 1.5rem !important;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 3px !important;
  color: var(--text3) !important;
  font-size: 0.7rem !important;
  font-family: var(--mono) !important;
  padding: 0.25rem 0.65rem !important;
  margin: 0 2px !important;
  transition: all 0.12s !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bg3) !important;
  color: var(--text) !important;
  border-color: var(--line2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--blue-dim) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  color: var(--blue-b) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.2 !important;
}

table.dataTable {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 0 !important;
}

table.dataTable thead tr {
  background: var(--bg3) !important;
  border-bottom: 1px solid var(--line2) !important;
}

table.dataTable thead th {
  color: var(--text3) !important;
  font-family: var(--mono) !important;
  font-size: 0.6rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.7rem 1.2rem !important;
  border: none !important;
  background: transparent !important;
  white-space: nowrap;
  vertical-align: top;
}

table.dataTable thead th.sorting_asc:after {
  color: var(--blue-b) !important;
}

table.dataTable thead th.sorting_desc:before {
  color: var(--blue-b) !important;
}

table.dataTable tbody tr {
  background: transparent !important;
  border-bottom: 1px solid var(--line) !important;
  transition: background 0.1s !important;
}

table.dataTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

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

table.dataTable tbody td {
  color: var(--text) !important;
  font-size: 0.8rem !important;
  padding: 0.75rem 1.2rem !important;
  border: none !important;
  vertical-align: middle !important;
}

table.dataTable tbody td:first-child {
  font-family: var(--mono) !important;
  font-weight: 500 !important;
  color: #fff !important;
}

.chart-link-cell {
  text-align: left !important;
}

.chart-link-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.08), 0 5px 14px rgba(37, 99, 235, 0.18);
  transition: all 0.18s;
  position: relative;
}

.chart-link-btn:hover {
  border-color: var(--amber-b);
  background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.28), transparent 40%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.48), rgba(14, 165, 233, 0.2));
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.16), 0 8px 20px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.chart-link-btn svg {
  width: 12px;
  height: 12px;
  stroke: #93c5fd;
  transition: stroke 0.18s;
}

.chart-link-btn:hover svg {
  stroke: var(--amber-b);
}

.chart-link-btn::before {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  padding: 0.34rem 0.55rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  color: #f8fafc;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

.chart-link-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* dropdown filters inside thead */
table.dataTable thead select {
  background: var(--bg3) !important;
  border: 1px solid var(--line) !important;
  border-radius: 3px !important;
  color: var(--text) !important;
  font-size: 0.62rem !important;
  font-family: var(--mono) !important;
  padding: 0.18rem 0.35rem !important;
  margin-top: 5px !important;
  outline: none !important;
  cursor: pointer !important;
}

/* timestamp inside cells */
.timestamp-style {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text3);
}

/* ── NO DATA BOX ── */
#no-data-box-placeholder {
  padding: 0 1.5rem;
}

/* ── FOOTER override to match theme ── */
footer {
  background: var(--bg2) !important;
  border-top: 1px solid var(--line2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 0 !important;
}

.footer-links a {
  color: var(--text3) !important;
}

.footer-links a:hover {
  color: var(--text) !important;
  text-decoration: none !important;
}

footer p {
  color: var(--text3) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bb-wrapper {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .bb-sidebar {
    display: none;
  }

  .bb-page-header {
    grid-template-columns: 1fr;
    /* stack vertically */
    overflow: hidden;
  }

  .bb-metrics {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .bb-status-bar {
    display: none;
  }

  .bb-page-header {
    padding: 1.2rem 1rem;
  }

  .bb-criteria-panel {
    padding: 0.7rem 1rem;
  }

  /* metrics: 3 columns still fits on phone if small enough */
  .bb-metrics {
    grid-template-columns: repeat(3, 1fr);
    min-width: 0;
  }

  .bb-metric-val {
    font-size: 0.85rem;
  }

  .bb-panel-hdr,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  table.dataTable thead th,
  table.dataTable tbody td {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* nav: collapse to stacked on very small screens */
  .nav-container {
    flex-wrap: wrap;
  }

  .logo-link {
    border-right: none;
    border-bottom: 1px solid var(--line);
    width: 100%;
    height: 48px;
  }

  .center-menu {
    flex-direction: column;
    width: 100%;
  }

  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    height: 44px;
  }

  .dropdown-content {
    position: static;
    border-top: none;
  }
}