/**
 * Shared Lead / book subtabs — same look on admin + rep.
 * Large purple active chips on white bar (not pink pastel pills).
 */
:root {
  --sa-purple: #3F418E;
  --sa-white: #FFFFFF;
  --sa-fondant-black: #1E1E1E;
  --sa-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.crm-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sa-white);
  padding: 10px 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e8e6f0;
}

.crm-subtab {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 88px;
  padding: 10px 16px;
  border: 1px solid #e4e7f2;
  border-radius: 10px;
  background: #fff;
  color: var(--sa-fondant-black);
  font-family: var(--sa-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  line-height: 1.2;
  box-sizing: border-box;
}

/* Beat rep .btn-sm / .btn-sm-primary pastel pills if those classes linger */
.crm-subtab.btn-sm,
.crm-subtab.btn-sm-primary,
.crm-subtab.is-active,
button.crm-subtab.btn-sm-primary {
  min-height: 44px;
  min-width: 88px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

.crm-subtab.is-active,
.crm-subtab.btn-sm-primary,
button.crm-subtab.is-active,
button.crm-subtab.btn-sm-primary {
  background: var(--sa-purple) !important;
  border-color: var(--sa-purple) !important;
  color: #fff !important;
}

/* Lead book panels: white surface like admin (pink is for stickies only) */
#tab-lead,
#panel-leads-book {
  background: #fff;
}
