/* RG-NEWLOOK-FIXUPS 20261104: integration fixes found when the four merged files ran together on the live pages. Presentation only. Every rule is under html.nl-on. Load after rg-newlook-screens.css and rg-newlook-tl.css. */

/* Team Leader hero: rg-newlook-tl.css restyled the greeting date and the chips of the shared hero with theme tokens (dark text on the always-navy hero in the light theme). Keep the Sales Advisor hero treatment. */
html.nl-on #s-cmd #nl-home .nl-greet p { color: rgba(243,239,230,.62); font-size: var(--nl-fs-sm); }
html.nl-on #s-cmd #nl-home .nl-chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: #F3EFE6; }
html.nl-on #s-cmd #nl-home .nl-chip small { color: rgba(243,239,230,.58); }
html.nl-on #s-cmd #nl-home .nl-chip .nl-ic { color: #EBCB6E; }
html.nl-on #s-cmd #nl-home .nl-chip:hover { border-color: rgba(235,203,110,.7); background: rgba(235,203,110,.12); }
html.nl-on #s-cmd #nl-home #nl-tl-hooks .nl-chip { background: rgba(235,203,110,.14); border-color: rgba(235,203,110,.45); }
html.nl-on #s-cmd #nl-home #nl-tl-hooks .nl-chip:hover { background: rgba(235,203,110,.22); border-color: rgba(235,203,110,.7); }

/* Training Videos (shared module, not restyled by any of the four files): its ink colour is the page navy, invisible on the dark page. */
html.nl-on[data-nl-theme="dark"] :is(.sa-tv, .tl-tv) { --tv-ink: var(--nl-fg); }

/* Team Leader Add Lead dialog (#tl-nl-ov, white inline panel): the design system turns its inputs dark, so on the dark theme the panel must be dark too. */
html.nl-on[data-nl-theme="dark"] #tl-nl-ov > div { background: var(--nl-surface) !important; color: var(--nl-fg); border: 1px solid var(--nl-line2); }
html.nl-on[data-nl-theme="dark"] #tl-nl-ov > div > div:first-child { border-bottom-color: var(--nl-line2) !important; }
html.nl-on[data-nl-theme="dark"] #tl-nl-ov > div > div:first-child > div,
html.nl-on[data-nl-theme="dark"] #tl-nl-ov > div > div:first-child > button { color: var(--nl-fg) !important; }
html.nl-on[data-nl-theme="dark"] #tl-nl-ov label,
html.nl-on[data-nl-theme="dark"] #tl-nl-ov div[style*="text-transform:uppercase"] { color: var(--nl-muted) !important; }
html.nl-on[data-nl-theme="dark"] #tl-nl-ov input,
html.nl-on[data-nl-theme="dark"] #tl-nl-ov select { border-color: var(--nl-line2) !important; }
html.nl-on[data-nl-theme="dark"] #tl-nl-ov button:not(.tbtn-pu):not(.tbtn):not([onclick="tlCloseNlModal()"][style*="border:0"]) { background: var(--nl-surface2) !important; color: var(--nl-fg) !important; border-color: var(--nl-line2) !important; }

/* My Mobile Device: the "Update the Connector app" box has a cream inline background that the warn-box rule (#FFF8E1) does not match. */
html.nl-on .mc-modal [style*="background:#faf7ec" i] { background: var(--nlw-warn-bg) !important; border-color: rgba(246,169,59,.35) !important; color: var(--nl-fg) !important; border-radius: 14px !important; }

/* My Mobile Device: grey inline text colours on the dark dialog */
html.nl-on[data-nl-theme="dark"] .mc-modal :is([style*="color:#666"], [style*="color:#555"], [style*="color:#444"], [style*="color:#333"]) { color: var(--nl-muted) !important; }

/* Lead 360: the rule that colours every dm-* id (var(--nl-fg)) also hits the primary button #dm-btn-book, cream on gold in the dark theme */
html.nl-on #detail-panel :is(.dm-hbtn-p, .dm-btn-p) { color: var(--nl-gold-ink) !important; }

/* Lead 360: text with an inline navy colour and the empty label hint */
html.nl-on[data-nl-theme="dark"] #detail-panel #dm-remark-txt { color: var(--nl-muted) !important; }
html.nl-on[data-nl-theme="light"] #detail-panel #dm-remark-txt { color: rgba(10,22,40,.72) !important; }
html.nl-on #detail-panel .rgll-none { color: var(--nl-muted); }

/* Team Leader "oldest untouched leads": white on the light red of the dark theme is 2.5:1 */
html.nl-on[data-nl-theme="dark"] .nl-old-i .d:not(.is-k):not(.is-c) { color: #1A0B0A; }

/* Interview Calendar badges in the light theme */
html.nl-on[data-nl-theme="light"] #adv-sc-ical .badge.b-re { color: #9E2A22; }

/* Tap targets on phones and touch screens (44 px) */
@media (max-width: 820px), (pointer: coarse) {
  html.nl-on :is(#adv-sc-leads, #s-allleads) :is(.fpill, .fp, .rgwa-btn, .nll-rk, .nll-res-x, button.ab, .tl-pg) { min-height: 44px !important; }
  html.nl-on #s-allleads .tl-pg { min-width: 44px !important; }
  html.nl-on :is(.content, .rgpc-modal, .aiq-dlg, .mc-modal) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]), select) { min-height: 44px !important; }
  html.nl-on #adv-sc-projected .rg-pc-chip { min-height: 44px !important; min-width: 44px !important; display: inline-flex; align-items: center; justify-content: center; }
  html.nl-on .sa-tv-tab, html.nl-on .tl-tv-tab, html.nl-on .rgatt-tab, html.nl-on .content .btn-primary, html.nl-on .content .btn-outline, html.nl-on #rg-eod-refresh, html.nl-on .rg-pc-dash-all { min-height: 44px !important; }
  html.nl-on #detail-panel :is(.lead360-collapse, .lead360-qa button, .dm-hbtn) { min-width: 44px !important; min-height: 44px !important; }
  html.nl-on #detail-panel .lead360-tip button { min-width: 44px !important; min-height: 44px !important; }
}

/* Payment Commitments (rg-projected.css): a self-contained light island with its own :root palette; keep it light in both themes and lift its faint greys to AA. */
html.nl-on { --pc-t2: rgba(10,22,40,.72); --pc-t3: rgba(10,22,40,.68); }
html.nl-on .rg-pc-sub { color: var(--pc-t2); }


/* RG-THEME-CREAM-20261109: Light is the base (never black unless the person chose Dark) and the Cream tone. Contrast checked (WCAG AA): text on cream 16.4, muted 6.3, faint 5.0, gold text 5.6, good 4.8, bad 5.4. */
html.nl-on:not([data-nl-theme="dark"]) {
  --nl-bg: #F6F4EE; --nl-surface: #FFFFFF; --nl-surface2: #F0EDE4; --nl-raise: #E8E4D9;
  --nl-line: rgba(10,22,40,.10); --nl-line2: rgba(10,22,40,.18);
  --nl-fg: #0A1628; --nl-muted: #53607A; --nl-faint: #6B7690;
  --nl-gold: #C9A227; --nl-gold-text: #7A5D00; --nl-gold-ink: #0A1628;
  --nl-gold-soft: rgba(201,162,39,.15); --nl-gold-line: rgba(154,123,12,.45);
  --nl-good: #0F8F62; --nl-bad: #C23B30; --nl-scrim: rgba(10,22,40,.45);
  color-scheme: light;
}
html.nl-on[data-nl-theme="light"][data-nl-tone="cream"] {
  --nl-bg: #FAF3E0; --nl-surface: #FFFCF3; --nl-surface2: #F5ECD6; --nl-raise: #EBE0C5;
  --nl-line: rgba(60,45,10,.13); --nl-line2: rgba(60,45,10,.22);
  --nl-fg: #0A1628; --nl-muted: #4F5A70; --nl-faint: #5E687E;
  --nl-gold: #C9A227; --nl-gold-text: #7A5D00; --nl-gold-ink: #0A1628;
  --nl-gold-soft: rgba(201,162,39,.18); --nl-gold-line: rgba(154,123,12,.5);
  --nl-good: #0B7A53; --nl-bad: #B73228; --nl-scrim: rgba(10,22,40,.45);
  --nl-tl-card: #FFFCF3;
  color-scheme: light;
}
