/* QUICK-QUOTE-02 (rows 5, 6, 17 and 18; Claude's BUILD GO of 23 Nov 2026; r2 = the three compact buttons, answers-3). Linked after styles.css and assets/ux04.css, so these rules win by
   order at the same selectors; no !important. styles.css is unchanged. Every active tab, toggle and chip below reads at 4.5:1 or more, at rest
   and on hover, in light and dark. */

:root {
  --qq02-on: #0e7c72;       /* white on it: 5.1:1 */
  --qq02-on-hover: #0a5f57; /* white on it: 7.5:1 */
}

/* Row 17: the active module tab on hover (light): its text turned teal on dark teal (1.2:1). */
[data-theme="light"] .module-tab.active:hover {
  color: #ffffff;
}

/* Row 17: the lead's open "Quotation (n)" tab on hover (light): inside the search-register design system its text turned dark teal on the dark
   teal hover fill (1.2:1). White on it reads 6.7:1. Dark theme is unchanged (dark text on light teal). */
[data-theme="light"] .search-register-design-system .primary-button.lead-quotation-trigger:hover:not(:disabled) {
  color: #ffffff;
}

/* r2 (Claude's answers-3, decision 3): the lead's three compact primary buttons on hover (light): WhatsApp in the lead's action bar, "New
   quotation" in the quotation list's head row, "Choose for Final Order" in a quotation row. Their text turned dark teal on the same dark teal
   hover fill (1.16:1); white on it reads 6.75:1. Only these three places: the app-wide sweep is PARTNER-VIEW-01's. Dark theme is unchanged. */
[data-theme="light"] .search-register-design-system :is(.lead-detail-actions, .lead-quotation-history-head, .lead-quotation-history-row) .primary-button.compact-button:hover:not(:disabled) {
  color: #ffffff;
}

/* Row 17: white-on-teal toggles and chips (3.3:1 light, 2.1:1 dark today). */
.crm03a-view-switch button.active,
.my-work-view-switch button.active,
#workIntakePanel[data-intake-view="tasks"] .tasks-workspace-palette.active,
.ux04-lead-chip.is-active,
#reg01Register .reg01-state.active {
  color: #ffffff;
  background: var(--qq02-on);
  border-color: var(--qq02-on);
}

.crm03a-view-switch button.active:hover,
.my-work-view-switch button.active:hover,
#workIntakePanel[data-intake-view="tasks"] .tasks-workspace-palette.active:hover,
.ux04-lead-chip.is-active:hover,
#reg01Register .reg01-state.active:hover {
  color: #ffffff;
  background: var(--qq02-on-hover);
  border-color: var(--qq02-on-hover);
}

/* Row 18: a disabled field looks disabled (grey fill, muted text that still reads at 4.5:1, a not-allowed cursor). */
#workIntakePanel input:disabled:not([type="checkbox"]):not([type="radio"]),
#workIntakePanel select:disabled,
#workIntakePanel textarea:disabled,
.quickquote01-modal input:disabled:not([type="checkbox"]):not([type="radio"]),
.quickquote01-modal select:disabled,
.quickquote01-modal textarea:disabled {
  background-color: #e9eef0;
  color: #56656c;
  -webkit-text-fill-color: #56656c;
  border-color: #c9d3d8;
  cursor: not-allowed;
  opacity: 1;
}

[data-theme="dark"] #workIntakePanel input:disabled:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] #workIntakePanel select:disabled,
[data-theme="dark"] #workIntakePanel textarea:disabled,
[data-theme="dark"] .quickquote01-modal input:disabled:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] .quickquote01-modal select:disabled,
[data-theme="dark"] .quickquote01-modal textarea:disabled {
  background-color: #1c2a36;
  color: #a9b6c2;
  -webkit-text-fill-color: #a9b6c2;
  border-color: #34495a;
}

/* Row 5: why "Choose for Final Order" is greyed, one line under the quotation row (the row wraps only when it carries the line). */
.lead-quotation-history-row:has(> .quickquote02-order-reason) {
  flex-wrap: wrap;
}

.lead-quotation-history-row .quickquote02-order-reason {
  flex-basis: 100%;
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text, #17313a);
}

/* Rows 9-10: the quotation line's time sits under its label, as on the other History lines. */
.crm03a-history .quickquote02-quotation-line small {
  display: block;
}

/* Row 6: "No phone yet" in place of Call / WhatsApp / Log on a lead with a blank phone. */
.quickquote02-no-phone,
.quickquote02-no-phone:hover {
  background: #eef2f4;
  border-color: #c9d3d8;
  color: #4f5f66;
  cursor: not-allowed;
  opacity: 1;
}

[data-theme="dark"] .quickquote02-no-phone,
[data-theme="dark"] .quickquote02-no-phone:hover {
  background: #1c2a36;
  border-color: #34495a;
  color: #b8c4cf;
}

.lv4-nophone {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #c9d3d8;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}
