/* Your Quote Assistant — authoritative selected-tab states
   Active controls must remain visually obvious regardless of script load order or overlay location. */

/* Main workspace navigation */
body #appArea nav.tabs .tab.active,
body #appArea nav.tabs button.tab.active[data-tab] {
  background:#1565DB !important;
  background-color:#1565DB !important;
  border-color:#1565DB !important;
  color:#FFFFFF !important;
  opacity:1 !important;
  box-shadow:0 2px 8px rgba(21,101,219,.20) !important;
}

/* Prepared response category tabs inside the workspace */
body #appArea #responseMenu button.active,
body #appArea #responseMenu button.active[data-yqa-color],
body #appArea #yqaInquiryMenu button.active,
body #appArea #yqaInquiryMenu button.active[data-yqa-color],
body #appArea .yqa-manager-tabs button.active,
body #appArea .yqa-manager-tabs button.active[data-yqa-color] {
  background:#1565DB !important;
  background-color:#1565DB !important;
  border-color:#1565DB !important;
  color:#FFFFFF !important;
  opacity:1 !important;
  box-shadow:0 2px 8px rgba(21,101,219,.18) !important;
}

/* Response-library manager is appended directly to <body>, outside #appArea.
   Keep the selected Inquiry Script / Opportunity Response category obvious on mobile. */
body .yqa-library-overlay .yqa-manager-tabs button.active,
body .yqa-library-overlay .yqa-manager-tabs button.active[data-yqa-color],
body .yqa-library-overlay .yqa-manager-tabs button.active:focus,
body .yqa-library-overlay .yqa-manager-tabs button.active:focus-visible,
body .yqa-library-overlay .yqa-manager-tabs button.active:active {
  background:#1565DB !important;
  background-color:#1565DB !important;
  border-color:#1565DB !important;
  color:#FFFFFF !important;
  opacity:1 !important;
  box-shadow:0 2px 8px rgba(21,101,219,.20) !important;
  -webkit-tap-highlight-color:transparent;
}

/* Text / Phone / Email selection */
body #appArea .channel-tabs button.channel.active,
body #appArea .channel-tabs .channel.active,
body #appArea .channel-tabs button.channel.active:focus,
body #appArea .channel-tabs button.channel.active:focus-visible,
body #appArea .channel-tabs button.channel.active:active {
  background:#1565DB !important;
  background-color:#1565DB !important;
  border-color:#1565DB !important;
  color:#FFFFFF !important;
  opacity:1 !important;
  box-shadow:0 2px 8px rgba(21,101,219,.18) !important;
  -webkit-tap-highlight-color:transparent;
}

/* Quote Revival library and channel controls */
body #appArea .yqa-revival-response-tabs button.active,
body #appArea .yqa-revival-response-tabs button.active[data-yqa-revival-color],
body #appArea .yqa-revival-channels button.active {
  background:#1565DB !important;
  background-color:#1565DB !important;
  border-color:#1565DB !important;
  color:#FFFFFF !important;
  opacity:1 !important;
}

/* Colored tabs are only decorative when NOT selected. */
body #appArea nav.tabs .tab:not(.active)[data-yqa-main-color="0"]{background:#eef5ff !important;color:#0B1D3A !important}
body #appArea nav.tabs .tab:not(.active)[data-yqa-main-color="1"]{background:#eef9f4 !important;color:#0B1D3A !important}
body #appArea nav.tabs .tab:not(.active)[data-yqa-main-color="2"]{background:#fff5df !important;color:#0B1D3A !important}
body #appArea nav.tabs .tab:not(.active)[data-yqa-main-color="3"]{background:#f4efff !important;color:#0B1D3A !important}
body #appArea nav.tabs .tab:not(.active)[data-yqa-main-color="4"]{background:#eef5f8 !important;color:#0B1D3A !important}
body #appArea nav.tabs .tab:not(.active)[data-yqa-main-color="5"]{background:#fff0f2 !important;color:#0B1D3A !important}
