/* Section tab bar (replaces the old module card row) — 7 equal-width tabs with subtle dividers */
.hub-tabs { background: var(--hh-charcoal, #121212); border-bottom: 3px solid var(--hh-charcoal, #121212); z-index: 19; }
.hub-tabs.is-sticky { position: sticky; }
.hub-tabs .ht-scroll { display: grid; grid-template-columns: repeat(var(--ht-n, 8), minmax(0, 1fr)); overflow-x: auto; scrollbar-width: thin; padding: 0 .5rem; -webkit-overflow-scrolling: touch; }
.hub-tabs .ht-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .2rem;
  background: transparent; color: #fff; border: 0; border-radius: 0; box-shadow: none; padding: .5rem .55rem .45rem;
  border-bottom: 4px solid transparent; text-align: center; cursor: pointer; min-width: 0; min-height: 3.6rem;
}
/* 1px divider between tabs (not on the outer edges), inset top/bottom */
.hub-tabs .ht-tab + .ht-tab::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.16); }
.hub-tabs .ht-tab:hover { background: transparent; border-bottom-color: rgba(255,199,0,.45); transform: none; }
.hub-tabs .ht-tab.active { border-bottom-color: var(--hh-yellow, #FFC700); background: transparent; } /* yellow underline bar only */
.hub-tabs .ht-tab.active::before, .hub-tabs .ht-tab.active + .ht-tab::before { background: transparent; }
.hub-tabs .ht-name { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.12rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; max-width: 100%; }
.hub-tabs .ht-tab.active .ht-name { color: var(--hh-yellow, #FFC700); }
.hub-tabs .ht-sub { font-size: .62rem; font-weight: 600; color: #cfcfcf; letter-spacing: .02em; line-height: 1.25; white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 100%; }
.hub-tabs .ht-count { font-family: Montserrat, system-ui, sans-serif; font-size: .72rem; font-weight: 800; background: transparent; color: #ff6b7d; padding: 0 .1rem; letter-spacing: 0; } /* text only; light red reads on the charcoal bar */
.hub-tabs .ht-count.amber { background: transparent; color: #FFC700; }
.hub-tabs .ht-dot { width: .5rem; height: .5rem; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.hub-tabs .ht-dot.warn { background: #FFC700; } .hub-tabs .ht-dot.bad { background: #E4002B; box-shadow: 0 0 0 2px rgba(228,0,43,.35); }
.hub-tabs .ht-nc { font-family: Montserrat, system-ui, sans-serif; font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: transparent; color: #cfcfcf; border: 1px solid #8a8a8a; border-radius: 999px; padding: .05rem .4rem; }
.hub-tabs .nc-short { display: none; }
@media (max-width: 1439px) { .hub-tabs .nc-long { display: none; } .hub-tabs .nc-short { display: inline; } }
@media (max-width: 1100px) { .hub-tabs .ht-name { font-size: 1rem; gap: .25rem; } .hub-tabs .ht-nc { font-size: .5rem; padding: .05rem .3rem; }
  .hub-tabs .ht-tab { padding-left: .4rem; padding-right: .4rem; } .hub-tabs .ht-sub { font-size: .57rem; letter-spacing: 0; } }
@media (max-width: 720px) {
  .hub-tabs { position: static !important; }
  .hub-tabs .ht-scroll { grid-template-columns: repeat(var(--ht-n, 8), 9.5rem); padding: 0; scroll-snap-type: x proximity; }
  .hub-tabs .ht-tab { padding: .5rem .5rem .45rem; scroll-snap-align: start; }
}
/* Section helpers */
.hs-banner { background: #fff; border: 2px solid var(--hh-charcoal, #121212); border-radius: 10px; padding: .5rem .75rem; font-size: .8rem; font-weight: 600; margin-bottom: .75rem; }
.hs-info { background: #fff; border: 2px solid #9a6700; color: #5a3d00; border-radius: 10px; padding: .45rem .7rem; font-size: .76rem; font-weight: 600; margin-bottom: .75rem; }
.hs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-top: .75rem; }
.hs-tile { background: #fff; border: 2px dashed #9e9e9e; border-radius: 12px; padding: .75rem .9rem; color: #5a5a5a; }
.hs-tile-h { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.2rem; letter-spacing: .04em; color: #3a3a3a; display: flex; align-items: center; gap: .5rem; }
.hs-tile p { margin: .3rem 0 0; font-size: .78rem; }
.badge.nc { background: transparent !important; color: #5a5a5a !important; border: 1px solid #8a8a8a !important; border-radius: 999px; padding: .1rem .5rem; font-family: Montserrat, system-ui, sans-serif; font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gem-panel { border-style: dashed !important; }
#moduleCustomers .chart-wrap { height: 280px; position: relative; }
.card.metric.na .value { font-size: 1.05rem; color: #8a0018; }

/* ---- Customers v2 (HH Sales customer files) ---- */
#customersV2 .cards-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
#customersV2 .card.metric.na .value { font-size: 1rem; color: var(--hh-muted, #5a5a5a); }
.cv2-na h2 .badge.nc { background: transparent; color: #555; }
.cv2-sub { margin: 1.4rem 0 .4rem; font-family: var(--font-display); letter-spacing: .03em; font-weight: 400; font-size: 1.25rem; border-top: 2px solid var(--hh-charcoal); padding-top: .8rem; }
.cv2-map { height: 440px; border: 2px solid var(--hh-charcoal); border-radius: 6px; overflow: hidden; background: #fff; z-index: 0; position: relative; }
.cv2-svg { width: 100%; height: auto; display: block; }
.cv2-map-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .2rem 0 .6rem; }
.cv2-sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.cv2-legend { margin-left: auto; display: flex; gap: .7rem; font-size: .8rem; }
.cv2-leg i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .25rem; vertical-align: -1px; opacity: .8; }
.cv2-fun { display: grid; grid-template-columns: minmax(130px, 38%) 1fr 90px; gap: .6rem; align-items: center; padding: .35rem 0; cursor: pointer; border-bottom: 1px dashed rgba(18,18,18,.12); }
.cv2-fun:hover { background: transparent; box-shadow: inset 0 -1.5px 0 rgba(18,18,18,.4); }
.cv2-fun-l { font-size: .85rem; }
.cv2-fun-b { background: transparent; box-shadow: inset 0 0 0 1px rgba(18,18,18,.25); height: 14px; border-radius: 7px; overflow: hidden; }
.cv2-fun-b span { display: block; height: 100%; border-radius: 7px; }
.cv2-fun-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cv2-fun-v small { font-weight: 400; color: #666; }
td.cv2-nc { color: #5a5a5a; font-style: italic; background: transparent; }
td.num.pos { color: #1b6e20; } td.num.neg { color: #b0001f; }
.cv2-cohort td, .cv2-cohort th { white-space: nowrap; }
#customersV2 tr[data-drill] { cursor: pointer; }
#customersV2 tr[data-drill]:hover td { background: transparent; box-shadow: inset 0 -1.5px 0 rgba(18,18,18,.4); }
@media (max-width: 720px) { .cv2-map { height: 340px; } .cv2-legend { margin-left: 0; } .cv2-fun { grid-template-columns: 1fr 70px; } .cv2-fun-b { grid-column: 1 / -1; grid-row: 2; } }
.cv2-note { margin: .5rem 0 0; font-size: .78rem; color: #555; line-height: 1.35; }
