/* Customer-edition brand layer. Values are supplied by the instance config. */
:root {
  --accent: var(--client-accent, #f5c400);
  --accent-strong: var(--client-accent-strong, #c99a00);
  --accent-weak: var(--client-accent-weak, #fff5bf);
  --accent-weak-text: var(--client-accent-text, #604900);
}

html.adm-theme-dark {
  --accent: var(--client-accent, #f5c400);
  --accent-strong: var(--client-accent-strong, #c99a00);
  --accent-weak: #4a3c08;
  --accent-weak-text: #ffe477;
}

.adm-brand-mark,
.adm-nav > a.active .adm-nav-icon,
.profile-dot {
  background: var(--accent);
  color: #211b00;
}

.primary-btn,
.submit-btn,
.distribution-trigger,
.db-field-save,
.add-group-bottom {
  background: var(--accent);
  color: #211b00;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: color-mix(in srgb, var(--accent) 42%, transparent);
}



/* Keep consultation columns stable when a source contains unusually long values. */
.table-area > .business-lead-table {
  width: 100%;
  min-width: 1150px;
  table-layout: fixed;
}

.business-lead-table th,
.business-lead-table td {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  padding-inline: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-lead-table th:first-child,
.business-lead-table td:first-child {
  width: 42px;
  padding-inline: 7px;
  text-align: center;
}

.business-lead-table th:nth-child(2),
.business-lead-table td:nth-child(2) {
  width: 108px;
  text-align: center;
}

.business-lead-table th:nth-last-child(3),
.business-lead-table td:nth-last-child(3) {
  width: 88px;
  text-align: center;
}

.business-lead-table th:nth-last-child(-n + 2),
.business-lead-table td:nth-last-child(-n + 2) {
  width: 56px;
  padding-inline: 5px;
  text-align: center;
}

.business-lead-table .lead-name-with-duplicate {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: nowrap;
}

.business-lead-table .lead-name-with-duplicate > strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-lead-table .lead-duplicate-badge {
  flex: 0 0 auto;
}

/* Accessible brand contrast - 2026-09-28. */
:root { --accent-foreground: var(--client-accent-foreground, #211b00); }
html.adm-theme-dark {
  --accent-weak: color-mix(in srgb, var(--accent) 24%, #172033);
  --accent-weak-text: color-mix(in srgb, var(--accent) 24%, #ffffff);
}
.adm-brand-mark, .adm-nav > a.active .adm-nav-icon, .profile-dot,
.primary-btn, .submit-btn, .distribution-trigger, .db-field-save, .add-group-bottom {
  color: var(--accent-foreground);
}
.primary-btn:not(:disabled):hover, .submit-btn:not(:disabled):hover,
.distribution-trigger:not(:disabled):hover, .db-field-save:not(:disabled):hover,
.add-group-bottom:not(:disabled):hover {
  background: var(--accent-strong);
  color: var(--accent-foreground);
}
.primary-btn svg, .submit-btn svg, .db-field-save svg { color: inherit; }
