/* ---------------------------------------------------------------------------
 *  Data Quality tools  (assets/css/dq-tools.css)
 *  Data Quality header + tabs (manage-duplicates, formatting-issues,
 *  data-enrichment), Formatting Issues table, Manage issue types panel,
 *  Data Enrichment page.  Uses the CRM tokens and data-tools.css buttons.
 * ------------------------------------------------------------------------- */
.dq-nav { margin: -4px 0 20px; border-bottom: 1px solid var(--border); }
.dq-nav__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.dq-nav__beta { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; font-size: 11.5px; font-weight: 700; color: #fff; background: #7a5af8; border-radius: 6px; }
.dq-nav__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dq-nav__tabs::-webkit-scrollbar { display: none; }
.dq-nav__tab { position: relative; padding: 10px 24px 14px; font-size: 15px; font-weight: 600; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.dq-nav__tab:hover { color: var(--text); }
.dq-nav__tab.is-active { color: var(--text); }
.dq-nav__tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--text); border-radius: 3px 3px 0 0; }
.dq-nav__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 6px; }

.dq-card { overflow: visible; }
.dq-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px 24px; border-bottom: 1px solid var(--border); }
.dq-card__body { padding: 20px 24px 8px; }
.dq-h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.dq-sub { margin: 14px 0 0; font-size: 14.5px; color: var(--text); }
.dq-auto { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.dq-auto__dot { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; }
.dq-filter { display: flex; align-items: center; gap: 8px; margin: 4px 0 22px; font-size: 14.5px; }
.dq-filter > span:first-child { color: var(--text-muted); }
.dq-plain { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 2px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.dq-plain svg { width: 12px; height: 12px; flex: none; }
.dq-plain:hover { color: var(--brand); }
.dq-plain[disabled] { color: var(--text-muted); font-weight: 600; cursor: default; }
.dq-plain:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dq-trunc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-filter .dq-plain { max-width: min(520px, 70vw); }
.dq-boxtabs { display: flex; border-bottom: 1px solid var(--border-strong); overflow-x: auto; scrollbar-width: none; }
.dq-boxtabs::-webkit-scrollbar { display: none; }
.dq-boxtab { flex: none; margin-bottom: -1px; padding: 14px 28px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); background: var(--surface-3, #eef1f5); border: 1px solid var(--border-strong); border-left-width: 0; cursor: pointer; white-space: nowrap; }
.dq-boxtab:first-child { border-left-width: 1px; border-top-left-radius: 6px; }
.dq-boxtab:last-child { border-top-right-radius: 6px; }
.dq-boxtab.is-on { background: var(--surface); border-bottom-color: var(--surface); }
.dq-boxtab:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
.dq-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 16px; }
.dq-toolbar .dq-filter { margin: 0; }
.dq-ftable { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.dq-ftable th { padding: 12px 10px; font-size: 14px; font-weight: 700; text-align: left; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.dq-ftable td { padding: 12px 10px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.dq-ftable tr.dq-cont td, .dq-ftable tr:has(+ .dq-cont) td:not([rowspan]) { border-bottom-style: dashed; }
.dq-ftable__chk { width: 44px; }
.dq-ftable__act { text-align: right !important; position: relative; }
.dq-who { width: 22%; }
.dq-who { display: table-cell; }
.dq-who > span:last-child { display: inline-flex; flex-direction: column; min-width: 0; max-width: calc(100% - 44px); vertical-align: middle; }
.dq-av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 10px; font-size: 12px; font-weight: 700; color: #3538cd; background: #e0eaff; border-radius: 50%; vertical-align: middle; }
.dq-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.dq-issue { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; }
.dq-issue__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #f79009; }
.dq-kv { display: flex; flex-direction: column; margin: 2px 0 6px; }
.dq-kv small { font-size: 12.5px; color: var(--text-muted); }
.dq-kv__hl { font-weight: 700; color: var(--brand) !important; }
.dq-kv span { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; }
.dq-ctx { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.dq-ctx .dq-kv span { font-size: 13.5px; color: var(--text-muted); }
.dq-pen { display: inline-flex; padding: 3px; color: var(--brand); background: none; border: 0; border-radius: 4px; cursor: pointer; }
.dq-pen svg { width: 13px; height: 13px; }
.dq-pen:hover { background: var(--surface-hover, #f2f4f7); }
.dq-editin { height: 32px; width: 160px; }
.dq-rowacts { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.dq-rowacts svg { width: 10px; height: 10px; }
.dq-info { display: inline-flex; padding: 2px; color: var(--text-muted); background: none; border: 0; border-radius: 50%; cursor: pointer; vertical-align: -3px; }
.dq-info svg { width: 15px; height: 15px; }
.dq-tip { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; display: none; width: 280px; padding: 12px 14px; font-size: 13.5px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px rgba(16, 24, 40, .16); }
.dq-tip strong { display: block; margin-bottom: 4px; font-size: 15px; }
.dq-ftable__act:hover .dq-tip, .dq-ftable__act.is-tip .dq-tip, .dq-info:focus-visible + .dq-tip { display: block; }
.dq-empty { padding: 48px 16px 64px; text-align: center; font-size: 15px; color: var(--text-muted); }
.dq-emptyart { width: 120px; height: 90px; }
.dq-pager { justify-content: center; gap: 4px; }
.dq-pg { min-width: 34px; height: 34px; padding: 0 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.dq-pg:hover:not([disabled]) { background: var(--surface-hover, #f2f4f7); }
.dq-pg.is-on { border-color: var(--border-strong); }
.dq-pg[disabled] { color: var(--text-muted); cursor: default; }
.dq-pg__gap { padding: 0 4px; color: var(--text-muted); }
.dq-size { margin-left: 16px; }
.dq-popsearch { display: flex; padding: 8px; }
.dq-popsearch input { width: 100%; }
.dq-scroll { max-height: 300px; overflow-y: auto; }
.dq-mi { justify-content: space-between; text-decoration: none; }
.dq-lock svg { width: 14px; height: 14px; color: var(--text-muted); }
.dq-chk { gap: 10px; cursor: pointer; }
.dq-chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }

/* Manage issue types panel */
.dq-dov { position: fixed; inset: 0; z-index: 1300; display: flex; justify-content: flex-end; background: rgba(16, 24, 40, .35); }
.dq-drawer { display: flex; flex-direction: column; width: 480px; max-width: 100%; height: 100%; background: var(--surface); box-shadow: -12px 0 32px rgba(16, 24, 40, .18); }
.dq-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.dq-drawer__head h2 { margin: 0; font-size: 20px; }
.dq-drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.dq-drawer__foot { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }
.dq-trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 14.5px; font-weight: 700; border-bottom: 1px solid var(--border); }
.dq-switch { position: relative; display: inline-flex; align-items: center; width: 54px; height: 28px; padding: 0; background: #98a2b3; border: 0; border-radius: 14px; cursor: pointer; transition: background .15s; }
.dq-switch[aria-checked="true"] { background: var(--brand); }
.dq-switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: left .15s; }
.dq-switch[aria-checked="true"] .dq-switch__knob { left: 29px; }
.dq-switch__txt { position: absolute; font-size: 9.5px; font-weight: 800; color: #fff; }
.dq-switch[aria-checked="true"] .dq-switch__txt { left: 7px; }
.dq-switch[aria-checked="false"] .dq-switch__txt { right: 6px; }
.dq-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Data Enrichment */
.de-banner { justify-content: space-between; align-items: center; }
.de-banner p { margin: 0; }
.de-banner strong { margin-right: 14px; font-size: 16px; }
.de-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 18px; }
.de-head .dq-sub { margin-top: 4px; }
.de-head .dt-btn svg { width: 15px; height: 15px; }
.de-h3 { margin: 0 0 12px; font-size: 17px; }
.de-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.de-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.de-tile strong { font-size: 24px; font-weight: 500; }
.de-tile span { font-size: 13px; color: var(--text-muted); }
.de-tile b { font-size: 13.5px; }
.de-card { padding: 24px; margin-bottom: 18px; }
.de-card__title { margin: 0 0 14px; font-size: 17px; }
.de-card__title--line { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.de-text { max-width: 780px; margin: 0 0 22px; font-size: 15px; line-height: 1.6; }
.de-cov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.de-analyzed { margin: 0 0 22px; font-size: 15px; }
.de-covcards { display: flex; gap: 32px; flex-wrap: wrap; }
.de-covcard { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 224px; max-width: 100%; padding: 18px 14px; text-align: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.de-covcard strong { font-size: 24px; font-weight: 500; }
.de-covcard span { font-size: 13.5px; }
.de-covcard b { margin-top: 14px; font-size: 14.5px; }
.de-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 700; color: var(--brand); text-decoration: none; }
.de-link svg { width: 13px; height: 13px; }
.de-link:hover { text-decoration: underline; }
.de-props__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.de-props__head h4 { margin: 0; font-size: 15px; }
.de-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.de-seg button { padding: 4px 12px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 0; cursor: pointer; }
.de-seg button + button { border-left: 1px solid var(--border-strong); }
.de-seg button[aria-selected="true"] { background: var(--surface-3, #eef1f5); font-weight: 600; }
.de-seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.de-bars { max-height: 330px; margin: 0; padding: 0 12px 0 0; overflow-y: auto; list-style: none; }
.de-bars li { margin-bottom: 12px; }
.de-bar__top { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.de-bar { display: block; height: 4px; background: #eef1f5; border-radius: 2px; }
.de-bar span { display: block; height: 100%; background: #8b1a5c; border-radius: 2px; }
.de-avail { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.de-avail__pick { display: flex; flex-direction: column; gap: 8px; width: 400px; max-width: 100%; }
.de-lbl { font-size: 14.5px; font-weight: 700; }
.de-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.de-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.de-select svg { width: 12px; height: 12px; flex: none; }
.de-segic { width: 14px; height: 14px; flex: none; color: var(--text-muted); }
.de-empty { max-width: 520px; margin: 0 auto; padding: 40px 0 56px; text-align: center; }
.de-empty svg { width: 34px; height: 34px; }
.de-empty h4 { margin: 14px 0 12px; font-size: 21px; }
.de-empty p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.de-new { display: inline-flex; padding: 2px 8px; color: #067647; background: #ecfdf3; border-radius: 6px; }
.de-agent { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px; }
.de-agent__title { margin: 0 0 22px; font-size: 32px; font-weight: 500; }
.de-agent__text { margin: 0 0 40px; font-size: 17px; line-height: 1.5; }
.de-agent__art { position: relative; padding-top: 40px; }
.de-agent__toast { position: absolute; top: 0; right: 0; max-width: 240px; margin: 0; padding: 8px 12px; font-size: 11.5px; background: #fff; border: 1px solid #47cd89; border-radius: 6px; box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
.de-agent__toast span { margin-right: 6px; color: #12b76a; font-weight: 800; }
.de-agent__art table { width: 100%; font-size: 11.5px; border-collapse: collapse; border: 1px solid var(--border); }
.de-agent__art th, .de-agent__art td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); }
.de-agent__art th { font-weight: 700; }
.de-ai { color: #c11574; border-left: 1px solid #f4a7c4; border-right: 1px solid #f4a7c4; }
.de-yes, .de-no { display: inline-block; padding: 1px 8px; font-weight: 600; color: #067647; border: 1px solid #75e0a7; border-radius: 999px; }
.de-no { color: var(--text-muted); border-color: var(--border-strong); background: var(--surface-3, #eef1f5); }
.de-note { margin: 0 0 24px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.de-setrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14.5px; cursor: pointer; }
.de-setrow input { width: 18px; height: 18px; accent-color: var(--brand); }

@media (max-width: 1180px) { .de-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .de-cov { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .dq-nav__title { font-size: 21px; }
  .dq-nav__tab { padding: 10px 14px 12px; font-size: 14px; }
  .dq-card__head, .dq-card__body { padding-left: 16px; padding-right: 16px; }
  .dq-boxtab { padding: 12px 16px; }
  .dq-toolbar { align-items: flex-start; }
  .de-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .de-card, .de-agent { padding: 18px 16px; }
  .de-agent { grid-template-columns: 1fr; }
  .de-agent__title { font-size: 26px; }
  .de-covcard { width: 100%; }
  .dq-drawer__head, .dq-drawer__body, .dq-drawer__foot { padding-left: 16px; padding-right: 16px; }
}
/* column widths */
.dq-ftable { table-layout: fixed; min-width: 900px; }
.dq-ftable th:nth-child(1) { width: 44px; }
.dq-ftable th:nth-child(2) { width: 23%; }
.dq-ftable th:nth-child(3) { width: 21%; }
.dq-ftable th:nth-child(4) { width: 18%; }
.dq-ftable th:nth-child(5) { width: 16%; }
.dq-ftable th:nth-child(6) { width: 232px; }
.dq-issue { max-width: 100%; }
.dq-who > span:last-child { max-width: calc(100% - 46px); }
.dq-kv span { overflow-wrap: anywhere; }
.de-banner p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; } .de-banner strong { margin-right: 0; }

/* ---------------------------------------------------------------------------
 *  Manage duplicates: Filter (two panes) + "Choose which columns you see"
 * ------------------------------------------------------------------------- */
.dt-pop:has(.mdf) { padding: 0; overflow: visible; max-height: none; border-radius: var(--radius-lg, 12px); }
.mdf { display: flex; min-height: 0; }
.mdf__left { width: 240px; padding: 8px 8px 10px; }
.mdf__head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--border, #e4e7ec); }
.mdf__head svg { width: 18px; height: 18px; flex: none; }
.mdf__head strong { flex: 1; font-size: 15px; }
.mdf__head .dt-x { width: 30px; height: 30px; }
.mdf__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; font: inherit; font-size: 14.5px; text-align: left; color: var(--text, #101828); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.mdf__item:hover, .mdf__item:focus-visible, .mdf__item.is-on { outline: none; background: var(--surface-hover, #f2f4f7); }
.mdf__item > svg { width: 16px; height: 16px; flex: none; margin-left: auto; color: var(--text-muted, #475467); }
.mdf__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #98a2b3; }
.mdf__dot.is-set { background: var(--brand, #2456e6); }
.mdf__ic { display: inline-grid; place-items: center; width: 18px; color: var(--text-muted, #475467); }
.mdf__ic svg { width: 16px; height: 16px; }
.mdf__lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdf__right { display: flex; flex-direction: column; width: 260px; padding: 10px 12px 12px; border-left: 1px solid var(--border, #e4e7ec); }
.mdf__rhead { padding: 4px 4px 10px; margin-bottom: 10px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--border, #e4e7ec); }
.mdf__search { display: flex; margin: 0 0 6px; }
.mdf__search input { width: 100%; }
.mdf__list { max-height: 210px; overflow-y: auto; }
.mdf__chk { display: flex; align-items: center; gap: 12px; padding: 8px 6px; font-size: 14.5px; cursor: pointer; border-radius: 6px; }
.mdf__chk:hover { background: var(--surface-hover, #f2f4f7); }
.mdf__chk[hidden] { display: none; }
.mdf__chk input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--brand, #2456e6); }
.mdf__chk span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdf__chips { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.mdf__chip { flex: none; height: 30px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--text, #101828); background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 6px; cursor: pointer; white-space: nowrap; }
.mdf__chip:hover { background: var(--surface-hover, #f2f4f7); }
.mdf__dates { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mdf__date input { width: 160px; height: 36px; }
.mdf__to { font-size: 14px; margin: 2px 0 4px; }
.mdf__pct input { width: 100%; height: 40px; }
.mdf__acts { display: flex; gap: 8px; margin-top: 14px; }
.mdf__clear { align-self: flex-start; margin-top: 10px; font-size: 13.5px; }
@media (max-width: 640px) { .mdf { flex-direction: column; } .mdf__left, .mdf__right { width: auto; } .mdf__right { border-left: 0; border-top: 1px solid var(--border, #e4e7ec); } }

.mdc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 0; min-height: 360px; }
.mdc__left { padding-right: 20px; border-right: 1px solid var(--border, #e4e7ec); }
.mdc__right { padding-left: 20px; }
.mdc__search { display: flex; margin-bottom: 12px; }
.mdc__search input { width: 100%; height: 40px; }
.mdc__list { max-height: 330px; overflow-y: auto; padding-right: 6px; }
.mdc__opt { display: flex; align-items: center; gap: 12px; padding: 6px 2px; font-size: 15px; cursor: pointer; }
.mdc__opt input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--brand, #2456e6); }
.mdc__h { margin: 4px 0 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mdc__sel { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; max-height: 340px; overflow-y: auto; }
.mdc__card { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 8px; font-size: 15px; background: var(--surface, #fff); border: 1px solid var(--text, #101828); border-radius: 6px; cursor: grab; }
.mdc__card.is-drag { opacity: .5; }
.mdc__card.is-over { box-shadow: 0 -3px 0 var(--brand, #2456e6); }
.mdc__grip { display: inline-grid; color: var(--text-muted, #475467); }
.mdc__grip svg { width: 14px; height: 18px; }
.mdc__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdc__x { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; color: var(--text-muted, #475467); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.mdc__x:hover { background: var(--surface-hover, #f2f4f7); color: var(--text, #101828); }
.mdc__x svg { width: 14px; height: 14px; }
.mdc__none { margin-left: 8px; font-weight: 600; color: var(--text, #101828); }
.md-xcol { white-space: nowrap; }
@media (max-width: 720px) { .mdc { grid-template-columns: 1fr; } .mdc__left { padding-right: 0; border-right: 0; } .mdc__right { padding: 16px 0 0; } }

/* contact logo (formatting issues) + contact preview panel */
.dq-av { position: relative; overflow: hidden; }
.dq-av > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 3px; box-sizing: border-box; background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px #ebebeb; object-fit: contain; }
.dq-av--lg { width: 64px; height: 64px; margin-right: 0; font-size: 20px; }
.dq-ftable thead th:nth-child(2) { box-shadow: inset 0 -2px 0 var(--text); }
.dqp-ov { position: fixed; inset: 0; z-index: 1450; background: rgba(16, 24, 40, 0); transition: background .2s; }
.dqp-ov.is-open { background: rgba(16, 24, 40, .35); }
.dqp { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 600px; max-width: 100%; background: var(--surface, #fff); box-shadow: -12px 0 32px rgba(16, 24, 40, .18); transform: translateX(24px); transition: transform .2s; }
.dqp-ov.is-open .dqp { transform: none; }
.dqp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border, #e4e7ec); }
.dqp__head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.dqp__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border, #e4e7ec); }
.dqp__link { font-size: 15px; font-weight: 700; color: var(--brand); text-decoration: none; }
.dqp__link:hover { text-decoration: underline; }
.dqp__act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; font: inherit; font-size: 15px; color: var(--text); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.dqp__act:hover { background: var(--surface-hover); }
.dqp__act svg { width: 15px; height: 15px; }
.dqp__body { flex: 1; overflow-y: auto; }
.dqp__card { padding: 22px 24px 24px; border-bottom: 1px solid var(--border, #e4e7ec); }
.dqp__who { display: flex; align-items: center; gap: 16px; }
.dqp__who h3 { margin: 0; font-size: 26px; font-weight: 700; }
.dqp__sub { margin: 14px 0 6px; font-size: 16px; }
.dqp__mail { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.dqp__mail a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--brand); text-decoration: none; word-break: break-all; }
.dqp__mail a svg { width: 15px; height: 15px; flex: none; }
.dqp__copy { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--text-muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.dqp__copy:hover { background: var(--surface-hover); color: var(--text); }
.dqp__copy svg { width: 17px; height: 17px; }
.dqp__qa { display: flex; flex-wrap: wrap; gap: 18px; }
.dqp__q { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; font: inherit; font-size: 15px; color: var(--text); background: none; border: 0; cursor: pointer; }
.dqp__qi { display: inline-grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm, 8px); background: var(--surface); }
.dqp__q:hover .dqp__qi { background: var(--surface-hover); }
.dqp__qi svg { width: 22px; height: 22px; }
.dqp__sec { padding: 16px 24px 24px; }
.dqp__sech { display: flex; align-items: center; gap: 8px; }
.dqp__tog { display: inline-flex; align-items: center; gap: 12px; flex: 1; padding: 6px 0; font: inherit; font-size: 17px; font-weight: 700; color: var(--text); text-align: left; background: none; border: 0; cursor: pointer; }
.dqp__tog svg { width: 18px; height: 18px; transition: transform .15s; }
.dqp__tog[aria-expanded="false"] svg { transform: rotate(-90deg); }
.dqp__gear { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm, 8px); cursor: pointer; }
.dqp__gear svg { width: 17px; height: 17px; }
.dqp__fields { margin: 14px 0 0; }
.dqp__fields div { margin-bottom: 16px; }
.dqp__fields dt { color: var(--text-muted); font-size: 15px; }
.dqp__fields dd { margin: 4px 0 0; font-size: 16px; word-break: break-word; }
.dqp a:focus-visible, .dqp button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 640px) { .dqp__head, .dqp__bar, .dqp__card, .dqp__sec { padding-left: 16px; padding-right: 16px; } .dqp__who h3 { font-size: 22px; } }

/* Data Enrichment: enrichment preview table (enriched values shaded) */
.de-pv-lead { margin: 18px 0 16px; font-size: 15px; }
.de-pv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.de-pv-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; }
.de-suggested { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font-size: 12.5px; font-weight: 700; color: #fff; background: #e8590c; border-radius: 11px; }
.de-pv-note { margin: 0; font-size: 15px; }
.de-pv-wrap { overflow-x: auto; }
.de-pv { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 15px; }
.de-pv th, .de-pv td { padding: 16px 24px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-strong); }
.de-pv thead th { padding-top: 14px; padding-bottom: 14px; font-weight: 400; color: var(--text-muted); white-space: nowrap; border-bottom: 1px solid var(--text); }
.de-pv tbody th { width: 40%; font-weight: 400; }
.de-pv td.de-enr { background: #fcece6; white-space: nowrap; }
.de-who { display: flex; align-items: center; gap: 14px; }
.de-who strong { display: block; font-size: 15px; }
.de-who small { display: block; margin-top: 2px; font-size: 15px; color: var(--text); }
.de-av { position: relative; display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden; font-size: 13px; font-weight: 700; color: var(--text-muted); background: #ebebeb; border-radius: 50%; }
.de-av > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; box-sizing: border-box; background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px #ebebeb; object-fit: contain; }
.de-dash { color: var(--text-muted); }
.de-select { display: inline-flex; align-items: center; gap: 8px; }
.de-select .de-segic { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
#deSV { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* company logo before a duplicate record's name */
.md-logo { position: relative; display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; overflow: hidden; background: #ebebeb; border-radius: 50%; }
.md-logo__ph { width: 18px; height: 18px; fill: #b0b0b0; }
.md-logo > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; box-sizing: border-box; background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px #ebebeb; object-fit: contain; }

/* de-enr dark */
[data-theme="dark"] .de-pv td.de-enr { background: rgba(240, 128, 90, .18); color: var(--text); }
