/* Theme switch copied from the approved preview pill. No simulated-data label. */
.clxp-pill {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(165deg, #12234f, #070f27);
  border: 1px solid rgba(229, 189, 98, 0.55);
  box-shadow: 0 0 24px -8px rgba(229, 189, 98, 0.55), 0 12px 30px -12px rgba(0, 0, 0, 0.9);
}
.clxp-seg {
  display: inline-flex;
  border: 1px solid rgba(120, 150, 230, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.clxp-seg button {
  border: 0;
  background: transparent;
  color: #c4cde2;
  padding: 3px 10px;
  cursor: pointer;
  line-height: 1.4;
  font-family: "Times New Roman", Times, serif !important;
  font-size: 12pt !important;
}
.clxp-seg button[aria-pressed="true"] {
  background: linear-gradient(180deg, #fbe7a1 0%, #e0b65a 48%, #b4842f 100%);
  color: #1a1204;
  font-weight: 700;
}
.clxp-seg button:focus-visible {
  outline: 2px solid #e5bd62;
  outline-offset: -2px;
}

/* pill-clear-20261016: reserve a bottom strip so page content, scroll areas and pinned
   pagination end above the fixed theme switch (switch itself unchanged). Pricing hides the switch. */
body:not(.clx-pricing-page) .app-content {
  margin-bottom: 40px;
}

/* Approved AI Agent Control Center keeps its own interior. */
html[data-clx-theme="signature"] body.clx-aic-page .clx-aic,
html[data-clx-theme="signature"] body.clx-aic-page .clx-aic-dlg {
  color: #1c1917;
}
html[data-clx-theme="signature"] body.clx-aic-page .clx-aic h2,
html[data-clx-theme="signature"] body.clx-aic-page .clx-aic-dlg-bar,
html[data-clx-theme="signature"] body.clx-aic-page .clx-aic-dlg-bar h2 {
  color: #fff;
}
html[data-clx-theme="classic"] .clxp-lex { display: none !important; }

/* dd-20261014 account menu stacking */
.app-header {
  z-index: 40;
  overflow: visible;
}

/* =============================================================================
   Workspace destination pages (Signature only)
   Tasks Due, Client Contacts, Deadlines Due Today, Docs to Review/Sign,
   Statements Pending. Remap existing page tokens — do not restack
   per-selector copies of Classic whites. Classic is unchanged.
   dest-20261015
   ============================================================================= */

html[data-clx-theme="signature"] body.clx-tasks-page {
  --tkc-bg: transparent;
  --tkc-card: var(--navy-700);
  --tkc-surface: var(--navy-800);
  --tkc-hover: rgba(190, 145, 64, 0.16);
  --tkc-th: var(--navy-900);
  --tkc-row-line: var(--line);
  --tkc-overdue-row: rgba(180, 50, 50, 0.22);
  --tkc-input-bg: var(--navy-950);
  --tkc-ink: var(--text);
  --tkc-text: var(--text);
  --tkc-link: var(--gold-300);
  --tkc-hdr: var(--gold-banner-grad);
  --tkc-hdr-ink: #102346;
  --tkc-border: var(--line);
  --tkc-muted: var(--muted);
  --tkc-shadow: none;
}

html[data-clx-theme="signature"] body.clx-esign-page {
  --es-page-bg: transparent;
  --es-card: var(--navy-700);
  --es-surface: var(--navy-800);
  --es-ink: var(--text);
  --es-muted: var(--muted);
  --es-border: var(--line);
  --es-th: var(--navy-900);
  --es-row: rgba(255, 255, 255, 0.03);
  --es-hover: rgba(190, 145, 64, 0.12);
  --es-tab: var(--navy-850);
  --es-input-bg: var(--navy-950);
  --es-input-border: var(--line);
  --es-selected: rgba(190, 145, 64, 0.16);
  --es-row-line: var(--line);
  --es-link: var(--gold-300);
}

html[data-clx-theme="signature"] body.clx-esign-page .clx-esign-tab.is-active {
  background: var(--gold-grad) !important;
  color: #102346 !important;
  border-color: var(--gold-400) !important;
}

html[data-clx-theme="signature"] body.clx-esign-page .clx-esign-card.is-active {
  border-color: var(--gold-400);
  box-shadow: inset 0 0 0 1px var(--gold-400);
}

html[data-clx-theme="signature"] body.clx-esign-page .clx-esign-pages a.is-active,
html[data-clx-theme="signature"] body.clx-esign-page .clx-esign-pages span.is-active {
  background: var(--gold-grad);
  color: #102346;
  border-color: var(--gold-400);
}

html[data-clx-theme="signature"] .clx-ws-calls-table,
html[data-clx-theme="signature"] .clx-ws-calls-table > :not(caption) > * > * {
  background-color: transparent;
}

html[data-clx-theme="signature"] body.clx-ws-list-page .card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(202, 161, 73, 0.08);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .card-header {
  background: var(--gold-banner-grad);
  border-bottom: 1px solid var(--gold-400);
  color: #102346;
  padding: var(--sig-hdr-py, 4px) var(--sig-hdr-px, 9px);
  min-height: 0;
}

html[data-clx-theme="signature"] body.clx-ws-list-page .card-body {
  background: transparent;
  color: var(--text);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-hover-bg: rgba(190, 145, 64, 0.12);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  color: var(--text);
  margin-bottom: 0;
}

html[data-clx-theme="signature"] body.clx-ws-list-page .table > :not(caption) > * > * {
  background-color: transparent;
  color: inherit;
  border-bottom-color: var(--line);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .table thead th {
  color: var(--gold-400);
  font-weight: 700;
  white-space: nowrap;
}

html[data-clx-theme="signature"] body.clx-ws-list-page .table a {
  color: var(--gold-300);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .table-danger,
html[data-clx-theme="signature"] body.clx-ws-list-page tr.table-danger > * {
  --bs-table-bg: transparent;
  background-color: rgba(180, 50, 50, 0.28);
  color: var(--text);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .text-muted,
html[data-clx-theme="signature"] body.clx-ws-list-page .card-body p {
  color: var(--muted);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .badge.bg-danger {
  background: var(--sig-danger, #c45c5c);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .page-actions .btn-outline-primary,
html[data-clx-theme="signature"] body.clx-ws-list-page .btn-outline-primary {
  background: transparent;
  color: var(--gold-300);
  border-color: var(--gold-400);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .page-actions .btn-outline-primary:hover,
html[data-clx-theme="signature"] body.clx-ws-list-page .btn-outline-primary:hover {
  background: var(--gold-grad);
  color: #102346;
  border-color: var(--gold-400);
}

html[data-clx-theme="signature"] body.clx-ws-list-page .btn-outline-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
