/* Shared tab row: the Activity page's header line, for every page with tabs.
 *
 * Ryan 2026-11-12: "the tab line should go across and these buttons should be on
 * the right at the same height above the metric bar just like on the action page".
 * Taken from calldown.html's .tabrow (Agent Activity), which is the reference.
 *
 *   <div class="eq-tabrow">
 *     <div class="eq-tabs" role="tablist">
 *       <button class="on" role="tab">Roster</button> <button role="tab">Insights</button>
 *     </div>
 *     <div class="eq-tabrow-r"> filters, then the page's buttons </div>
 *   </div>
 *
 * Desktop: tabs on the left, the tab line runs from the left edge to 24px short of
 * the right group, and the right group sits on the same baseline as the tabs.
 * Phone (<=760px): the tabs take the full width with their line, and the right group
 * drops to its own row under them.
 *
 * A page's own tab classes can stay (its JS may toggle .active); add .eq-tabs to the
 * container and these rules style either .on or .active as the selected tab. */
.eq-tabrow {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 4px 0 16px;
}
.eq-tabrow .eq-tabs {
  display: flex;
  gap: 30px;
  flex: 1;
  min-width: 0;
  margin: 0 24px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.eq-tabrow .eq-tabs::-webkit-scrollbar { display: none; }
.eq-tabrow .eq-tabs > button {
  flex: none;
  padding: 12px 0 16px;
  margin: 0 0 -1px;
  min-height: 0;
  height: auto;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  color: #94a3b8;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.eq-tabrow .eq-tabs > button:hover { color: #cbd5e1; background: none; }
.eq-tabrow .eq-tabs > button.on,
.eq-tabrow .eq-tabs > button.active,
.eq-tabrow .eq-tabs > button[aria-selected="true"] {
  color: #f1f5f9;
  background: none;
  border-bottom-color: #2AABE2;
}
/* Counts inside a tab ("Users 12"): quiet, never a pill. */
.eq-tabrow .eq-tabs > button i,
.eq-tabrow .eq-tabs > button .tab-badge {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
  margin-left: 6px;
  padding: 0;
  background: none;
  border: 0;
}
.eq-tabrow .eq-tabrow-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.eq-tabrow .eq-tabrow-r:empty { display: none; }

@media (max-width: 760px) {
  .eq-tabrow { flex-wrap: wrap; }
  .eq-tabrow .eq-tabs { width: 100%; flex: 1 1 100%; margin: 0; gap: 0 18px; }
  .eq-tabrow .eq-tabs > button { font-size: 14px; padding: 12px 0 10px; }
  .eq-tabrow .eq-tabrow-r { width: 100%; flex: 1 1 100%; margin: 12px 0 0; justify-content: flex-start; }
}
