/* FinPay light and dark mode, all in one place, for the admin page and the client portal.
   Dark is the default. Light is switched on by html[data-theme="light"] (theme.js keeps it in step with the person's choice).
   Order matters, so keep the sections in this order:
     1. page parts: light/dark tweaks that used to sit next to the element they style
     2. the light theme: colour settings, then fixes, oldest first
     3. admin only: BD and other admin screens (was theme-admin.css)
   The shared pieces (candidate page, CRM, stakeholder page, start check) keep their light rules in their own file. */

/* ===== 1. page parts ===== */
/* from base.css */
html[data-theme=light] .sh-online{color:#15803D}
html[data-theme=light] .sh-online i{background:#16A34A}

/* sidebar sections (admin and client pages, see side-nav.js) */
.sidebar .nav .n4-sep{height:1px;background:var(--border);margin:8px 16px 4px}
.n4-gh{display:flex;align-items:center;gap:8px;width:100%;background:none;border:none;border-left:2px solid transparent;color:var(--muted);font-family:var(--fb);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:11px 16px 5px;cursor:pointer;text-align:left}
.n4-gh:hover{color:var(--text)}
.n4-gh .ar{width:10px;height:10px;transition:transform .15s;flex-shrink:0}
.n4-grp.shut .n4-gh .ar{transform:rotate(-90deg)}
.n4-gh .rb{margin-left:auto;letter-spacing:0;display:none}
.n4-grp.shut .n4-gh .rb.on{display:inline-block}
.n4-grp.has-active:not(.shut) .n4-gh{color:var(--violet-t,#C4B5FD)}
.n4-grp.shut .n4-items{display:none}
.n4-grp:not(.shut){background:rgba(124,92,255,.08);border:1px solid rgba(167,139,250,.28);border-radius:12px;margin:6px 8px;padding-bottom:6px}
.n4-grp:not(.shut) .n4-gh{padding-left:12px;padding-top:9px}
.n4-grp:not(.shut) .nav-item{padding-left:14px;border-left:none}
.n4-grp.has-active:not(.shut) .n4-gh{color:#C4B5FD}
.n4-grp .nav-item.active{background:linear-gradient(90deg,#7C5CFF,#6A4DF5)!important;color:#fff!important;font-weight:700;border-radius:8px;margin:2px 6px;border-left:none}
.n4-grp .nav-item.active svg{color:#fff;stroke-width:2.6;opacity:1}

/* from sidebar-and-shared.css */
html[data-theme=light] .n4-grp:not(.shut){background:rgba(109,40,217,.06);border-color:rgba(109,40,217,.25)}
html[data-theme=light] .n4-grp.has-active:not(.shut) .n4-gh{color:#5B21B6}
html[data-theme=light] .card-sub{font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}
html[data-theme=light] .gb{color:#1D4ED8}
html[data-theme=light] .stat-card.sb .stat-icon{border-color:rgba(37,99,235,.4)}

/* from panels-and-popups.css */
html[data-theme="light"] .eb-c0{--c:#0E7490}
html[data-theme="light"] .eb-c1{--c:#B45309}
html[data-theme="light"] .eb-c2{--c:#6D28D9}
html[data-theme="light"] .eb-c3{--c:#047857}
html[data-theme="light"] .eb-c4{--c:#BE185D}
html[data-theme="light"] .eb-c5{--c:#1D4ED8}
html[data-theme="light"] .eb-c6{--c:#B91C1C}
html[data-theme="light"] .eb-c7{--c:#4D7C0F}

/* from bd.css */
html:not([data-theme=light]) .sg-cap{color:#34D399}
html:not([data-theme=light]) .sg-on{color:#C4B5FD}
html:not([data-theme=light]) .sg-badge.fresh{color:#34D399}
html:not([data-theme=light]) .sg-badge.ageing{color:#FBBF24}
html:not([data-theme=light]) .sg-badge.old{color:#94A3B8}
html[data-theme=light] .b5-step.cur .b5-nm,html[data-theme=light] .b5-tg.on.v,html[data-theme=light] .b5-catedit .b5-rc button.on,html[data-theme=light] .b5-pills button.on{color:var(--violet-t)}
html[data-theme=light] .b5-step.done .b5-dot{color:var(--violet-t)}
html[data-theme=light] .b5-ty.li,html[data-theme=light] .b5-ctypes button.li svg{color:#1D4ED8}
html[data-theme=light] .b5-evd.blue{background:#2563EB}
html[data-theme=light] .b5-hero,html[data-theme=light] .b5-trk,html[data-theme=light] .b5-card,html[data-theme=light] .b5-nd{border-color:var(--border2);box-shadow:0 1px 2px rgba(10,15,31,.06)}
html[data-theme=light] .b5-nd.red{border-color:rgba(200,30,30,.45);background:rgba(200,30,30,.05)}
html[data-theme=light] .b5-nd.amb{border-color:rgba(154,74,7,.4);background:rgba(154,74,7,.05)}
html[data-theme=light] .b5-nd.org{border-color:rgba(194,65,12,.4);background:rgba(194,65,12,.05)}
html[data-theme=light] .b5-sw .tt em,html[data-theme=light] .b5-swi .tt em,html[data-theme=light] .b5-nm{color:var(--muted)}
html[data-theme=light] .b5-ev{border-top-color:var(--border2)}
html[data-theme=light] .b5-nd.ok{border-color:#86D9B4;background:#ECFDF5}
html[data-theme=light] .b5-nd.ok .b5-ndl{color:#047857}
html[data-theme=light] .b5-ndt{color:var(--text)}
html[data-theme=light] .b5-dot{background:#fff;border-color:#8A96B3;color:#2B3550}
html[data-theme=light] .b5-step.done .b5-dot{background:#EDE7FF;border-color:var(--violet);color:var(--violet-t);font-size:13px}
html[data-theme=light] .b5-step.cur .b5-dot{box-shadow:0 0 0 5px rgba(91,53,232,.18)}
html[data-theme=light] .b5-step:before{background:#B6BFD3}
html[data-theme=light] .b5-step.done:before,html[data-theme=light] .b5-step.cur:before{background:var(--violet)}
html[data-theme=light] .b5-nm{color:#2B3550}
html[data-theme=light] .b5-step.done .b5-nm{color:var(--violet-t)}
html[data-theme=light] .b5-step.cur .b5-nm{color:#0A0F1F}
html[data-theme=light] .b5-btn{background:#fff;border-color:#8A96B3;color:#0A0F1F}
html[data-theme=light] .b5-btn:hover{background:#F3F0FF;border-color:var(--violet)}
html[data-theme=light] .b5-btn.p{background:var(--violet);border-color:var(--violet);color:#fff}
html[data-theme=light] .bd-tch-chips button{background:#fff;border-color:#8A96B3;color:#0A0F1F}
html[data-theme=light] .bd-tch-chips button:hover{background:#F3F0FF;border-color:var(--violet)}
html[data-theme=light] .bd-tch-chips button.on{background:var(--vdim);border-color:var(--violet);color:var(--violet-t)}
html:not([data-theme=light]) .sd-sec{color:#34D399}
html:not([data-theme=light]) .sxr-chip.in{color:#34D399}
html:not([data-theme=light]) .sxr-chip.out{color:#F87171}
html:not([data-theme=light]) .ct-it.ok b{color:#34D399}
html:not([data-theme=light]) .ct-it.warn{color:#FBBF24}
html:not([data-theme=light]) .so-paused{color:#FBBF24}
html:not([data-theme=light]) .sd-trig b{color:#FBBF24}
html:not([data-theme=light]) .sd-chip{color:#C4B5FD}
html:not([data-theme=light]) .sd-chip.so-ins{color:#67E8F9}
html:not([data-theme=light]) .sd-wr b{color:#FBBF24}
html:not([data-theme=light]) .sd-age.old{color:#FBBF24}
html:not([data-theme=light]) .sd-sec.unc{color:#FBBF24}

/* ===== 2. the light theme ===== */
/* FinPay light theme. Dark is the default and is untouched. Switch is html[data-theme="light"]. */
html[data-theme="light"]{
  color-scheme:light;
  --bg:#E7EBF3;--surface:#FFFFFF;--surface2:#E2E7F1;
  --border:#C4CCDD;--border2:#A3AEC8;--text:#0A0F1F;--muted:#3C465E;
  --violet:#5B35E8;--vdim:rgba(91,53,232,.13);--vborder:rgba(91,53,232,.45);
  --cyan:#0A6A80;--cdim:rgba(10,106,128,.13);
  --green:#046C4E;--gdim:rgba(4,108,78,.13);
  --amber:#9A4A07;--adim:rgba(154,74,7,.14);
  --red:#C81E1E;--rdim:rgba(200,30,30,.11);
  --cyan-t:#0A6A80;--org-t:#C2410C;--green-t:#046C4E;--amber-t:#8A400A;--red-t:#C81E1E;--violet-t:#4C1FD0;--pink-t:#9D174D;
  --w-015:rgba(10,15,31,.03);--w-02:rgba(10,15,31,.04);--w-03:rgba(10,15,31,.05);--w-04:rgba(10,15,31,.06);
  --w-05:rgba(10,15,31,.07);--w-07:rgba(10,15,31,.10);--w-1:rgba(10,15,31,.14);--w-12:rgba(10,15,31,.16);--w-6:rgba(10,15,31,.65);
}
/* things that were hard-coded white on a dark surface */
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .filter-tab.active{color:var(--violet-t)}
html[data-theme="light"] .nav-item:hover{background:var(--w-03)}
html[data-theme="light"] ::-webkit-scrollbar-thumb{background:#98A3BF}
html[data-theme="light"] .modal-bg,html[data-theme="light"] .modal-overlay{background:rgba(20,26,46,.45)}
/* the Light mode row in the sidebar and the phone menu */
.th-row{display:flex;align-items:center;gap:9px;padding:8px 16px;font-size:12px;color:var(--muted)}
.th-row svg{width:14px;height:14px;flex-shrink:0}
.th-lbl{flex:1}
.th-sw{position:relative;display:inline-block;width:34px;height:20px;flex-shrink:0;cursor:pointer}
.th-sw input{opacity:0;width:0;height:0;position:absolute}
.th-sw span{position:absolute;inset:0;background:var(--surface2);border:1px solid var(--border2);border-radius:12px;transition:.15s}
.th-sw span:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:.15s}
.th-sw input:checked+span{background:var(--violet);border-color:var(--violet)}
.th-sw input:checked+span:after{left:17px;background:#fff}
.th-sw input:focus-visible+span{outline:2px solid var(--violet);outline-offset:2px}
.th-mob{padding:10px 12px;font-size:14px}
.th-mob svg{width:18px;height:18px}

/* inline style="color:#accent" written by scripts: darker versions in light mode (border-color etc. is not matched) */
html[data-theme="light"] [style^="color:#22D3EE" i],html[data-theme="light"] [style*=";color:#22D3EE" i],html[data-theme="light"] [style*="; color:#22D3EE" i],html[data-theme="light"] [style*=" color:#22D3EE" i]{color:var(--cyan-t)!important}
html[data-theme="light"] [style^="color:#10B981" i],html[data-theme="light"] [style*=";color:#10B981" i],html[data-theme="light"] [style*="; color:#10B981" i],html[data-theme="light"] [style*=" color:#10B981" i]{color:var(--green-t)!important}
html[data-theme="light"] [style^="color:#22C55E" i],html[data-theme="light"] [style*=";color:#22C55E" i],html[data-theme="light"] [style*="; color:#22C55E" i],html[data-theme="light"] [style*=" color:#22C55E" i]{color:var(--green-t)!important}
html[data-theme="light"] [style^="color:#F59E0B" i],html[data-theme="light"] [style*=";color:#F59E0B" i],html[data-theme="light"] [style*="; color:#F59E0B" i],html[data-theme="light"] [style*=" color:#F59E0B" i]{color:var(--amber-t)!important}
html[data-theme="light"] [style^="color:#FBBF24" i],html[data-theme="light"] [style*=";color:#FBBF24" i],html[data-theme="light"] [style*="; color:#FBBF24" i],html[data-theme="light"] [style*=" color:#FBBF24" i]{color:var(--amber-t)!important}
html[data-theme="light"] [style^="color:#EF4444" i],html[data-theme="light"] [style*=";color:#EF4444" i],html[data-theme="light"] [style*="; color:#EF4444" i],html[data-theme="light"] [style*=" color:#EF4444" i]{color:var(--red-t)!important}
html[data-theme="light"] [style^="color:#F87171" i],html[data-theme="light"] [style*=";color:#F87171" i],html[data-theme="light"] [style*="; color:#F87171" i],html[data-theme="light"] [style*=" color:#F87171" i]{color:var(--red-t)!important}
html[data-theme="light"] [style^="color:#A78BFA" i],html[data-theme="light"] [style*=";color:#A78BFA" i],html[data-theme="light"] [style*="; color:#A78BFA" i],html[data-theme="light"] [style*=" color:#A78BFA" i]{color:var(--violet-t)!important}
html[data-theme="light"] [style^="color:#C4B5FD" i],html[data-theme="light"] [style*=";color:#C4B5FD" i],html[data-theme="light"] [style*="; color:#C4B5FD" i],html[data-theme="light"] [style*=" color:#C4B5FD" i]{color:var(--violet-t)!important}
html[data-theme="light"] [style^="color:#F472B6" i],html[data-theme="light"] [style*=";color:#F472B6" i],html[data-theme="light"] [style*="; color:#F472B6" i],html[data-theme="light"] [style*=" color:#F472B6" i]{color:var(--pink-t)!important}
html[data-theme="light"] [style^="color:#60A5FA" i],html[data-theme="light"] [style*=";color:#60A5FA" i],html[data-theme="light"] [style*="; color:#60A5FA" i],html[data-theme="light"] [style*=" color:#60A5FA" i]{color:#1D4ED8!important}
html[data-theme="light"] [style^="color:#FF8A8A" i],html[data-theme="light"] [style*=";color:#FF8A8A" i],html[data-theme="light"] [style*="; color:#FF8A8A" i],html[data-theme="light"] [style*=" color:#FF8A8A" i]{color:var(--red-t)!important}

/* closed slide-out panels were leaking their shadow onto the right edge of the screen */
.cand-panel:not(.open){box-shadow:none!important}
html[data-theme="light"] .cand-panel.open{box-shadow:-12px 0 40px rgba(20,26,46,.14)}

/* filled amber badges had black text, which is unreadable on the darker light-mode amber */
html[data-theme="light"] .nav-badge-a,
html[data-theme="light"] .mob-tab-badge.amber,
html[data-theme="light"] .mob-di-badge.amber{color:#fff}

/* stat tile colours are passed in as --c, and a few other leftovers */
html[data-theme="light"] [style*="--c:#22D3EE" i]{--c:var(--cyan-t)!important}
html[data-theme="light"] [style*="--c:#10B981" i]{--c:var(--green-t)!important}
html[data-theme="light"] [style*="--c:#F59E0B" i]{--c:var(--amber-t)!important}
html[data-theme="light"] [style*="--c:#EF4444" i]{--c:var(--red-t)!important}
html[data-theme="light"] [style*="--c:#A78BFA" i]{--c:var(--violet-t)!important}
html[data-theme="light"] [style*="--c:#F97316" i]{--c:#C2410C!important}
html[data-theme="light"] [style*="color:#F97316" i]{color:#C2410C!important}
html[data-theme="light"] [style*="background:rgba(124,92,255,0.7)"]{background:var(--violet)!important}
html[data-theme="light"] [style*="--c:#60A5FA" i]{--c:#1D4ED8!important}
html[data-theme="light"] [style*="color:#FF6B35" i]{color:#A8360A!important}

/* contrast fixes found by the automatic check */
html[data-theme="light"] .attn-count,
html[data-theme="light"] .red-badge,
html[data-theme="light"] .nav-badge-r,
html[data-theme="light"] .mob-tab-badge.red{background:#C81E1E}
html[data-theme="light"] [style*="color:#3B82F6" i]{color:#1D4ED8!important}
html[data-theme="light"] [style*="color:#C2410C" i]{color:#A8360A!important}
html[data-theme="light"] .gh-o{background:#C2410C;border-color:#C2410C;color:#fff}
html[data-theme="light"] ::placeholder{color:#556079;opacity:1}
html[data-theme="light"] :is(.sb-pill-av,.sb-foot-av,.chat-av){background:linear-gradient(135deg,#5B35E8,#0A6A80)}

/* the logo has white in it, so in light mode it sits on a dark navy tile */
html[data-theme="light"] .sb-icon{background:#0B0F1A!important;padding:3px!important;border-radius:8px}
html[data-theme="light"] .sb-icon img{display:block;width:100%;height:100%;object-fit:contain}

/* icons drawn with bright accent strokes and fills get darker versions in light mode (CSS beats the svg attribute) */
html[data-theme="light"] [stroke="#22D3EE" i]{stroke:var(--cyan-t)}
html[data-theme="light"] [fill="#22D3EE" i]:not([fill-opacity]){fill:var(--cyan-t)}
html[data-theme="light"] [stroke="#10B981" i]{stroke:var(--green-t)}
html[data-theme="light"] [fill="#10B981" i]:not([fill-opacity]){fill:var(--green-t)}
html[data-theme="light"] [stroke="#22C55E" i]{stroke:var(--green-t)}
html[data-theme="light"] [fill="#22C55E" i]:not([fill-opacity]){fill:var(--green-t)}
html[data-theme="light"] [stroke="#F59E0B" i]{stroke:var(--amber-t)}
html[data-theme="light"] [fill="#F59E0B" i]:not([fill-opacity]){fill:var(--amber-t)}
html[data-theme="light"] [stroke="#FBBF24" i]{stroke:var(--amber-t)}
html[data-theme="light"] [fill="#FBBF24" i]:not([fill-opacity]){fill:var(--amber-t)}
html[data-theme="light"] [stroke="#EF4444" i]{stroke:var(--red-t)}
html[data-theme="light"] [fill="#EF4444" i]:not([fill-opacity]){fill:var(--red-t)}
html[data-theme="light"] [stroke="#F87171" i]{stroke:var(--red-t)}
html[data-theme="light"] [fill="#F87171" i]:not([fill-opacity]){fill:var(--red-t)}
html[data-theme="light"] [stroke="#A78BFA" i]{stroke:var(--violet-t)}
html[data-theme="light"] [fill="#A78BFA" i]:not([fill-opacity]){fill:var(--violet-t)}
html[data-theme="light"] [stroke="#C4B5FD" i]{stroke:var(--violet-t)}
html[data-theme="light"] [fill="#C4B5FD" i]:not([fill-opacity]){fill:var(--violet-t)}
html[data-theme="light"] [stroke="#F472B6" i]{stroke:var(--pink-t)}
html[data-theme="light"] [fill="#F472B6" i]:not([fill-opacity]){fill:var(--pink-t)}
html[data-theme="light"] [stroke="#FF6B35" i]{stroke:#C2410C}
html[data-theme="light"] [fill="#FF6B35" i]:not([fill-opacity]){fill:#C2410C}
html[data-theme="light"] [stroke="#60A5FA" i]{stroke:#1D4ED8}
html[data-theme="light"] [fill="#60A5FA" i]:not([fill-opacity]){fill:#1D4ED8}
html[data-theme="light"] [stroke="#3B82F6" i]{stroke:#1D4ED8}
html[data-theme="light"] [fill="#3B82F6" i]:not([fill-opacity]){fill:#1D4ED8}
html[data-theme="light"] [stroke="#F97316" i]{stroke:#C2410C}
html[data-theme="light"] [fill="#F97316" i]:not([fill-opacity]){fill:#C2410C}
/* pale tinted circles behind icons and badges: stronger tint so they read on white */
html[data-theme="light"] [style*="background:rgba(34,211,238," i],html[data-theme="light"] [style*="background: rgba(34,211,238," i]{background:var(--cdim)!important}
html[data-theme="light"] [style*="background:rgba(124,92,255," i],html[data-theme="light"] [style*="background: rgba(124,92,255," i]{background:var(--vdim)!important}
html[data-theme="light"] [style*="background:rgba(16,185,129," i],html[data-theme="light"] [style*="background: rgba(16,185,129," i]{background:var(--gdim)!important}
html[data-theme="light"] [style*="background:rgba(245,158,11," i],html[data-theme="light"] [style*="background: rgba(245,158,11," i]{background:var(--adim)!important}
html[data-theme="light"] [style*="background:rgba(239,68,68," i],html[data-theme="light"] [style*="background: rgba(239,68,68," i]{background:var(--rdim)!important}
/* keep solid avatar circles solid (must stay after the tint rules above) */
html[data-theme="light"] [style*="background:rgba(124,92,255,0.7)"]{background:var(--violet)!important}

/* keep solid avatar circles solid (must stay after the tint rules above) */
html[data-theme="light"] [style*="background:rgba(124,92,255,0.7)"]{background:var(--violet)!important}

/* stage tracker on the candidate page: done = green with white tick, current = blue, rejected = red, skipped = dashed grey */
html[data-theme="light"] .cpg-step:before{background:#B6BFD3;height:3px;top:12px}
html[data-theme="light"] .cpg-step.done:before,
html[data-theme="light"] .cpg-step.cur:before{background:#15803D}
html[data-theme="light"] .cpg-step.skip:before{background:repeating-linear-gradient(90deg,#8C97B0 0 5px,transparent 5px 10px)}
html[data-theme="light"] .cpg-step.rej:before{background:#B6BFD3}
html[data-theme="light"] .cpg-step.done .cpg-dot{background:#15803D;border-color:#15803D;color:#fff}
html[data-theme="light"] .cpg-step.done .cpg-dot svg{stroke:#fff;stroke-width:3}
html[data-theme="light"] .cpg-step.cur .cpg-dot{background:#2563EB;border-color:#2563EB;color:#fff;box-shadow:0 0 0 5px rgba(37,99,235,.22)}
html[data-theme="light"] .cpg-step.rej .cpg-dot{background:#DC2626;border-color:#DC2626;color:#fff}
html[data-theme="light"] .cpg-step.rej .cpg-dot svg{stroke:#fff;stroke-width:3}
html[data-theme="light"] .cpg-step.skip .cpg-dot{background:#EEF1F7;border:2px dashed #7D88A3;color:#5A6580}
html[data-theme="light"] .cpg-step.done .cpg-nm{color:#15803D}
html[data-theme="light"] .cpg-step.cur .cpg-nm{color:#1D4ED8;font-weight:700}
html[data-theme="light"] .cpg-step.rej .cpg-nm{color:#B91C1C;font-weight:700}
html[data-theme="light"] .cpg-step.skip .cpg-nm{color:#5A6580;font-style:italic}
html[data-theme="light"] .cpg-step .cpg-dt{color:var(--muted)}

/* v5 contrast pass: request removal, chat modal, availability calendar, stat icons, global hiring map */
html[data-theme="light"] button[onclick^="requestCandidateRemoval"]{background:#C81E1E!important;border:1px solid #9F1313!important;color:#fff!important;font-weight:700!important}
html[data-theme="light"] .mx-md{background:#fff;border-color:var(--border2);box-shadow:0 20px 60px rgba(10,15,31,.3)}
html[data-theme="light"] .mx-md p{color:#2B344A}
html[data-theme="light"] .mx-ct{background:#fff;border-color:var(--border2)}
html[data-theme="light"] .mx-ct.lock{opacity:1;background:#F3F5FA;border-color:#6F7B96}
html[data-theme="light"] .mx-ct.lock input{opacity:1;accent-color:#5B35E8}
html[data-theme="light"] .mx-ct span{color:#2B344A}
html[data-theme="light"] .mx-rule{background:#D6F0F7;border:1px solid #0A6A80;color:#052B36;font-weight:500}
html[data-theme="light"] .mx-btn:disabled{opacity:1;background:#8A74EE;border-color:#8A74EE;color:#fff;cursor:not-allowed}
html[data-theme="light"] .mx-btn.g{background:#fff;border-color:#6F7B96;color:var(--text)}
html[data-theme="light"] .av-cal{background:#fff;border-color:var(--border2)}
html[data-theme="light"] .av-calh{color:var(--text)}
html[data-theme="light"] .av-calh button{color:var(--text)}
html[data-theme="light"] .av-dow{color:#2B344A}
html[data-theme="light"] .av-day{background:#fff;border:1.5px solid #7D88A3;color:#0A0F1F;font-weight:700}
html[data-theme="light"] .av-day.off{background:transparent;border-color:transparent;color:#9AA4BA;font-weight:500}
html[data-theme="light"] .av-day.sel{background:#047857;border-color:#047857;color:#fff}
html[data-theme="light"] .av-day:not(.off):hover{border-color:#047857;background:#E3F6EE}
html[data-theme="light"] .av-qa button{background:#fff;border-color:#6F7B96;color:var(--text)}
html[data-theme="light"] .stat-icon{--adim:rgba(154,74,7,.26);--cdim:rgba(10,106,128,.26);--gdim:rgba(4,108,78,.26);--vdim:rgba(91,53,232,.26);box-shadow:inset 0 0 0 1px rgba(10,15,31,.16)}
html[data-theme="light"] .stat-icon svg{stroke-width:2.6}
html[data-theme="light"] .gh-land{stroke:rgba(60,70,94,.6)}
html[data-theme="light"] .gh-pp .bx{fill:#fff;stroke:#6F7B96;stroke-width:1.4}
html[data-theme="light"] .gh-pp .t2{fill:#2B344A}
html[data-theme="light"] .gh-pp .ok{fill:#046C4E}
html[data-theme="light"] .gh-leg,html[data-theme="light"] .gh-chip{color:#2B344A}
html[data-theme="light"] .gh-chip{background:#fff;border-color:#6F7B96;opacity:1}
html[data-theme="light"] .modal-bg input:not([type=checkbox]):not([type=radio]),html[data-theme="light"] .modal-bg select,html[data-theme="light"] .modal-bg textarea{background:#fff;border-color:#8A95AE}

/* v7: dashboard search cards match My Vacancies */
html[data-theme="light"] .sr-c{border-width:1px!important;border-style:solid!important;font-weight:700!important}
html[data-theme="light"] .sr-c.g{color:#046C4E!important;border-color:rgba(4,108,78,.45)!important;background:rgba(4,108,78,.1)!important}
html[data-theme="light"] .sr-c.v{color:#4C1FD0!important;border-color:rgba(91,53,232,.45)!important;background:rgba(91,53,232,.1)!important}
html[data-theme="light"] .sr-c.c{color:#0A6A80!important;border-color:rgba(10,106,128,.45)!important;background:rgba(10,106,128,.1)!important}
html[data-theme="light"] .sr-c.a{color:#8A400A!important;border-color:rgba(154,74,7,.5)!important;background:rgba(154,74,7,.12)!important}
html[data-theme="light"] .sr-c.ds-btn{font-size:10.5px!important}
html[data-theme="light"] .ds-edit{background:var(--surface2)!important;border:1px solid var(--border2)!important;color:var(--text)!important;font-weight:700!important}

/* v8: team permissions */
html[data-theme="light"] .tm-perm.off{opacity:1;color:#4A5570;background:#F3F5FA;border-color:#8A95AE;text-decoration-thickness:1.5px}
html[data-theme="light"] .fpp-seg button{background:#fff;border:1.5px solid #6F7B96;color:var(--text)}
html[data-theme="light"] .fpp-seg button.on{background:#5B35E8;border-color:#5B35E8;color:#fff}
html[data-theme="light"] .fpp-seg button:disabled{opacity:.6}
html[data-theme="light"] .fpp-row{background:#fff;border-color:var(--border2)}
html[data-theme="light"] .fpp-row.fpp-master{background:#EDE8FF;border-color:#5B35E8}
html[data-theme="light"] .fpp-row.fpp-admin{background:#FFF1DC;border-color:#9A4A07}
html[data-theme="light"] .fpp-row.fpp-lock,html[data-theme="light"] .fpp-row.fpp-no{opacity:.7}
html[data-theme="light"] .fpp-row .fpp-t span{color:#2B344A}
html[data-theme="light"] .fpp-sw span{background:#8A95AE;border-color:#6F7B96}
html[data-theme="light"] .fpp-sw span:after{background:#fff}
html[data-theme="light"] .fpp-sw input:checked+span{background:#5B35E8;border-color:#5B35E8}
html[data-theme="light"] .fpp-note{background:#F3F5FA;border-color:var(--border2);color:#2B344A}
html[data-theme="light"] .fpp-warn{background:#FFF1DC;border-color:#9A4A07;color:#6B3305}

/* v9: pipeline board */
html[data-theme="light"] .pipe-col-head{border-bottom-width:3px!important;border-bottom-color:currentColor!important}
html[data-theme="light"] .p-empty{background:#fff;border:1.5px dashed #6F7B96;color:#2B344A;font-weight:600}
html[data-theme="light"] .col-cnt{background:#fff!important;border:1px solid #6F7B96;color:var(--text)!important;font-weight:700}
html[data-theme="light"] .pipe-col-head{background:#fff}

/* v10: stop the current-stage glow ring being clipped */
html[data-theme="light"] .cpg-steps{padding-top:9px;padding-bottom:8px}

/* v11: filled stage circles in dark mode */

/* v13 badges */
html[data-theme="light"] .b-cyan{background:#E0F5F9;color:#0A6A80;border-color:#7CC8D6}
html[data-theme="light"] .b-amber{background:#FEF0D0;color:#8A400A;border-color:#E8B25A}
html[data-theme="light"] .fpdp-sel{color-scheme:light}
/* v14 salary chips */
html[data-theme="light"] .fpm-hid{background:#FFEFC7;color:#7A3A06;box-shadow:0 0 0 1px #E3A94B}
html[data-theme="light"] .fpm-shown{background:#DDF5E9;color:#046C4E;box-shadow:0 0 0 1px #6FCBA3}
html[data-theme="light"] .fpm-rev{background:#fff;border-color:#9AA3B8;color:#2B3550}
/* v15 bell: the small dot sat on top of the count */
.iBtn.np::after{display:none!important}
/* v16 login pages: logo sits on a dark tile like the sidebar */
html[data-theme="light"] .logo-icon img{background:#0B0F1A;border-radius:12px;padding:8px;box-sizing:content-box}
/* v17 progress bars: the grey track showed in the gaps between segments */
html[data-theme="light"] [style*="height:6px;background:var(--border)"]{background:transparent!important}
/* v18 same fix for the searches list bars */
html[data-theme="light"] .vac-prog-bar{background:transparent!important}
/* v19 darker sidebar text in light mode */
html[data-theme="light"] .nav-item{color:#0B1220}
html[data-theme="light"] .nav-item.active{color:var(--violet-t)}
html[data-theme="light"] .nav-item svg{opacity:.9}
html[data-theme="light"] .mob-drawer-item{color:#0B1220}
/* progress bar gaps: same 5px as dark mode (set by the page itself, so nothing to override) */

/* v24 icon consistency: tinted tile + bold rounded outline, both themes */
.stat-icon{width:32px!important;height:32px!important;border-radius:9px!important;border:1.5px solid rgba(124,58,237,.4)}
.stat-icon svg{width:18px!important;height:18px!important;stroke-width:3.3!important;stroke-linecap:round;stroke-linejoin:round}
.stat-card.sv .stat-icon{border-color:rgba(167,139,250,.5)}
.stat-card.sa .stat-icon{border-color:rgba(251,191,36,.5)}
.stat-card.sg .stat-icon{border-color:rgba(52,211,153,.5)}
.stat-card.sc .stat-icon{border-color:rgba(34,211,238,.5)}
.stat-card.sp .stat-icon{border-color:rgba(244,114,182,.5)}
html[data-theme="light"] .stat-card.sv .stat-icon{border-color:rgba(124,58,237,.4)}
html[data-theme="light"] .stat-card.sa .stat-icon{border-color:rgba(217,119,6,.4)}
html[data-theme="light"] .stat-card.sg .stat-icon{border-color:rgba(22,163,74,.4)}
html[data-theme="light"] .stat-card.sc .stat-icon{border-color:rgba(8,145,178,.4)}
html[data-theme="light"] .stat-card.sp .stat-icon{border-color:rgba(219,39,119,.4)}
.attn-ic{width:34px!important;height:34px!important;border:1.5px solid color-mix(in srgb,var(--c) 45%,transparent)}
.attn-ic svg{width:18px!important;height:18px!important;stroke-width:3.3!important}
.vac-icon svg,.dc-ic svg,.book-call-icon svg,.empty-state-icon svg{stroke-width:3.3!important;stroke-linecap:round;stroke-linejoin:round}
.vac-icon{border:1.5px solid currentColor;border-color:rgba(128,128,128,.28)}
.vac-icon svg{width:18px!important;height:18px!important}
.dc-ic{border-width:1.5px!important}.dc-ic svg{width:16px!important;height:16px!important}
.book-call-icon{border-width:1.5px!important}
.empty-state-icon svg{width:22px!important;height:22px!important}
.fp-ai{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1.5px solid var(--ai-b);background:var(--ai-bg)}
.fp-ai svg{width:17px;height:17px;stroke:var(--ai-c);stroke-width:3.3}
.fp-ai[data-ict=v]{--ai-c:#A78BFA;--ai-bg:rgba(124,58,237,.14);--ai-b:rgba(167,139,250,.5)}
.fp-ai[data-ict=a]{--ai-c:#FBBF24;--ai-bg:rgba(217,119,6,.14);--ai-b:rgba(251,191,36,.5)}
.fp-ai[data-ict=g]{--ai-c:#34D399;--ai-bg:rgba(22,163,74,.14);--ai-b:rgba(52,211,153,.5)}
.fp-ai[data-ict=c]{--ai-c:#22D3EE;--ai-bg:rgba(8,145,178,.14);--ai-b:rgba(34,211,238,.5)}
.fp-ai[data-ict=p]{--ai-c:#F472B6;--ai-bg:rgba(219,39,119,.12);--ai-b:rgba(244,114,182,.5)}
.fp-ai[data-ict=b]{--ai-c:#60A5FA;--ai-bg:rgba(37,99,235,.13);--ai-b:rgba(96,165,250,.5)}
.fp-ai[data-ict=r]{--ai-c:#F87171;--ai-bg:rgba(220,38,38,.13);--ai-b:rgba(248,113,113,.5)}
.fp-ai[data-ict=t]{--ai-c:#2DD4BF;--ai-bg:rgba(13,148,136,.14);--ai-b:rgba(45,212,191,.5)}
html[data-theme="light"] .fp-ai[data-ict=v]{--ai-c:#6D28D9;--ai-b:rgba(124,58,237,.4)}
html[data-theme="light"] .fp-ai[data-ict=a]{--ai-c:#B45309;--ai-b:rgba(217,119,6,.4)}
html[data-theme="light"] .fp-ai[data-ict=g]{--ai-c:#15803D;--ai-b:rgba(22,163,74,.4)}
html[data-theme="light"] .fp-ai[data-ict=c]{--ai-c:#0E7490;--ai-b:rgba(8,145,178,.4)}
html[data-theme="light"] .fp-ai[data-ict=p]{--ai-c:#BE185D;--ai-b:rgba(219,39,119,.4)}
html[data-theme="light"] .fp-ai[data-ict=b]{--ai-c:#1D4ED8;--ai-b:rgba(37,99,235,.4)}
html[data-theme="light"] .fp-ai[data-ict=r]{--ai-c:#B91C1C;--ai-b:rgba(220,38,38,.4)}
html[data-theme="light"] .fp-ai[data-ict=t]{--ai-c:#0F766E;--ai-b:rgba(13,148,136,.4)}

/* ===== 3. admin only (was theme-admin.css) ===== */
/* Admin-only light mode additions. Loaded after theme.css. */
html[data-theme="light"] .n4-seg button.on,html[data-theme="light"] .rv-seg button.on,html[data-theme="light"] .rv-seg.cur button.on,html[data-theme="light"] .bd-account-tab.active,html[data-theme="light"] .bd-profile-tab.open,html[data-theme="light"] .bd-cat-dd-btn.has-sel,html[data-theme="light"] .b5-tg.on.v,html[data-theme="light"] .b5-catedit .b5-rc button.on,html[data-theme="light"] .b5-ctypes button.on,html[data-theme="light"] .b5-pills button.on,html[data-theme="light"] .m11-hpc button.on{color:#3A1BB8!important}
html[data-theme="light"] .n4-seg button.on i{background:rgba(58,27,184,.14)!important;color:#3A1BB8!important}
html[data-theme="light"] .rv-col.now .rv-lbl,html[data-theme="light"] .b5-step.cur .b5-nm{color:var(--text)!important}
html[data-theme="light"] .iv2-t .v2{color:#3C465E}

html[data-theme="light"] .ivb-warn{background:#FFF4DC;border-color:#E3A94B;color:#7A3A06}
html[data-theme="light"] .ivb-bad{background:#FDECEC;border-color:#E58A8A;color:#A61616}
html[data-theme="light"] .modal-btn:disabled,html[data-theme="light"] .modal-btn[disabled]{opacity:1;background:#B9AEF2;color:#fff;cursor:not-allowed}
html[data-theme="light"] .vb-orig{color:#2B3550}
html[data-theme="light"] .vb-diff del{background:#FDE4E4;color:#A61616}
html[data-theme="light"] .vb-diff ins{background:#D7F3E5;color:#046C4E}
html[data-theme="light"] .bl-row[style*="opacity"]{opacity:1!important;background:#F4F6FB}
html[data-theme="light"] .bl-row[style*="opacity"] .bl-tx b{color:var(--text)}
html[data-theme="light"] .bl-row[style*="opacity"] .bl-tx p,html[data-theme="light"] .bl-row[style*="opacity"] .bl-m span{color:#3C465E}
html[data-theme="light"] .bl-row[style*="opacity"] .bl-st{opacity:.7}
html[data-theme="light"] .bl-row[style*="opacity"] .bl-b{color:#3C465E!important;background:#E3E7F1!important;border-color:#B4BCCF!important}
/* BD category chips and credit labels: readable on light */
html[data-theme="light"] .bd-tag-biz{background:#ECE6FF;border-color:#A58BEF;color:#43229E}
html[data-theme="light"] .bd-tag-gtm{background:#DDF3F8;border-color:#6FC2D2;color:#085468}
html[data-theme="light"] .bd-tag{color:#2B3550}
html[data-theme="light"] [style*="font-size:10px;color:var(--muted);margin-bottom:4px"]{color:#2B3550!important;gap:10px}
/* ===== BD review (light): obvious selected states, readable inline colours ===== */
html[data-theme="light"] .b5-mode.on,html[data-theme="light"] .bd-cat-dd-btn.has-sel,html[data-theme="light"] .bd-cat-pill.sel-biz,html[data-theme="light"] .b5-tg.on,html[data-theme="light"] .b5-catedit .b5-rc button.on,html[data-theme="light"] .b5-ctypes button.on,html[data-theme="light"] .b5-pills button.on,html[data-theme="light"] .m11-hpc button.on,html[data-theme="light"] .bd-account-tab.active,html[data-theme="light"] .bd-profile-tab.open,html[data-theme="light"] .n4-seg button.on,html[data-theme="light"] #view-bd [aria-pressed="true"],html[data-theme="light"] .bd-pk-on{background:#5B3FD6!important;border-color:#5B3FD6!important;color:#fff!important;box-shadow:0 1px 3px rgba(60,30,170,.35)}
html[data-theme="light"] .b5-mode.on *,html[data-theme="light"] .bd-cat-dd-btn.has-sel *,html[data-theme="light"] .bd-cat-pill.sel-biz *,html[data-theme="light"] .b5-tg.on *,html[data-theme="light"] .b5-catedit .b5-rc button.on *,html[data-theme="light"] .b5-ctypes button.on *,html[data-theme="light"] .b5-pills button.on *,html[data-theme="light"] .m11-hpc button.on *,html[data-theme="light"] .bd-account-tab.active *,html[data-theme="light"] .bd-profile-tab.open *,html[data-theme="light"] .n4-seg button.on *,html[data-theme="light"] .bd-pk-on *{color:#fff!important}
html[data-theme="light"] .n4-seg button.on i,html[data-theme="light"] .bd-cat-dd-btn.has-sel .bd-cat-dd-cnt{background:rgba(255,255,255,.28)!important;color:#fff!important}
html[data-theme="light"] .bd-cat-pill.sel-gtm{background:#0A6A80!important;border-color:#0A6A80!important;color:#fff!important}
html[data-theme="light"] .b5-mode:not(.on){background:#fff;border-color:#9AA3B8}
html[data-theme="light"] [style*="color:#3B82F6" i],html[data-theme="light"] [style*="color: #3B82F6" i]{color:#1D4ED8!important}
html[data-theme="light"] [style*="border:1px solid #3B82F6" i]{border-color:#1D4ED8!important}
html[data-theme="light"] [style*="color:#22C55E" i],html[data-theme="light"] [style*="color: #22C55E" i]{color:#15803D!important}
html[data-theme="light"] [style*="border:1px solid #22C55E" i]{border-color:#15803D!important}
html[data-theme="light"] [style*="color:#A855F7" i],html[data-theme="light"] [style*="color: #A855F7" i]{color:#7E22CE!important}
html[data-theme="light"] [style*="border:1px solid #A855F7" i]{border-color:#7E22CE!important}
html[data-theme="light"] [style*="color:#F59E0B" i],html[data-theme="light"] [style*="color: #F59E0B" i]{color:#B45309!important}
html[data-theme="light"] [style*="border:1px solid #F59E0B" i]{border-color:#B45309!important}
html[data-theme="light"] [style*="color:#10B981" i],html[data-theme="light"] [style*="color: #10B981" i]{color:#047857!important}
html[data-theme="light"] [style*="border:1px solid #10B981" i]{border-color:#047857!important}
html[data-theme="light"] [style*="color:#25D366" i],html[data-theme="light"] [style*="color: #25D366" i]{color:#15803D!important}
html[data-theme="light"] [style*="border:1px solid #25D366" i]{border-color:#15803D!important}
html[data-theme="light"] [style*="color:#22D3EE" i],html[data-theme="light"] [style*="color: #22D3EE" i]{color:#0A6A80!important}
html[data-theme="light"] [style*="border:1px solid #22D3EE" i]{border-color:#0A6A80!important}
html[data-theme="light"] [style*="color:#EF4444" i],html[data-theme="light"] [style*="color: #EF4444" i]{color:#B91C1C!important}
html[data-theme="light"] [style*="border:1px solid #EF4444" i]{border-color:#B91C1C!important}
html[data-theme="light"] [style*="color:#FBBF24" i],html[data-theme="light"] [style*="color: #FBBF24" i]{color:#92400E!important}
html[data-theme="light"] [style*="border:1px solid #FBBF24" i]{border-color:#92400E!important}
html[data-theme="light"] [style*="color:#7C5CFF" i],html[data-theme="light"] [style*="color: #7C5CFF" i]{color:#5B3FD6!important}
html[data-theme="light"] [style*="border:1px solid #7C5CFF" i]{border-color:#5B3FD6!important}
html[data-theme="light"] [style*="color:#A78BFA" i],html[data-theme="light"] [style*="color: #A78BFA" i]{color:#5B3FD6!important}
html[data-theme="light"] [style*="border:1px solid #A78BFA" i]{border-color:#5B3FD6!important}
html[data-theme="light"] [style*="color:#F472B6" i],html[data-theme="light"] [style*="color: #F472B6" i]{color:#B0176A!important}
html[data-theme="light"] [style*="border:1px solid #F472B6" i]{border-color:#B0176A!important}
html[data-theme="light"] [style*="color:#60A5FA" i],html[data-theme="light"] [style*="color: #60A5FA" i]{color:#1D5FC0!important}
html[data-theme="light"] [style*="border:1px solid #60A5FA" i]{border-color:#1D5FC0!important}
html[data-theme="light"] [style*="color:#FB923C" i],html[data-theme="light"] [style*="color: #FB923C" i]{color:#B2490A!important}
html[data-theme="light"] [style*="border:1px solid #FB923C" i]{border-color:#B2490A!important}
/* BD review pass 2: more selected states, ticked rows */
html[data-theme="light"] .bd-tch-chips button.on,html[data-theme="light"] .bd-tch-dir button.on,html[data-theme="light"] .bd-view-tabs button.active,html[data-theme="light"] .bd-stage-seg.active,html[data-theme="light"] .b5-k.on,html[data-theme="light"] .b5-pp.on,html[data-theme="light"] .b5-dir button.on,html[data-theme="light"] .m11-fo.on{background:#5B3FD6!important;border-color:#5B3FD6!important;color:#fff!important}
html[data-theme="light"] .bd-tch-chips button.on *,html[data-theme="light"] .bd-tch-dir button.on *,html[data-theme="light"] .bd-view-tabs button.active *,html[data-theme="light"] .bd-stage-seg.active *,html[data-theme="light"] .b5-k.on *,html[data-theme="light"] .b5-pp.on *,html[data-theme="light"] .b5-dir button.on *,html[data-theme="light"] .m11-fo.on *{color:#fff!important}
/* contact switcher: the open contact is a tint with a violet edge and dark text, like the People list */
html[data-theme="light"] .b5-swi.on{background:#E3DAFF!important;box-shadow:inset 4px 0 0 #5B3FD6}
html[data-theme="light"] .b5-swi.on .tt b{color:#1E1450!important}html[data-theme="light"] .b5-swi.on .tt em{color:#3B3366!important}
html[data-theme="light"] .b5-swi:not(.on):hover{background:#F3F0FF}
html[data-theme="light"] .bd-cat-dd-opt:has(input:checked),html[data-theme="light"] #bd-loc-panel label:has(input:checked){background:#ECE6FF;color:#2B1480;font-weight:600}
html[data-theme="light"] .bd-cat-dd-opt:has(input:checked) *,html[data-theme="light"] #bd-loc-panel label:has(input:checked) *{color:#2B1480}
/* people list: the open contact is a strong tint with a violet edge, not a solid block */
html[data-theme="light"] .b5-pp.on{background:#E3DAFF!important;border-color:#5B3FD6!important;box-shadow:inset 4px 0 0 #5B3FD6!important;color:#1E1450!important}
html[data-theme="light"] .b5-pp.on b,html[data-theme="light"] .b5-pp.on .tt span,html[data-theme="light"] .b5-pp.on em,html[data-theme="light"] .b5-pp.on .tt u{color:#1E1450!important}
html[data-theme="light"] .b5-pp.on .bd-cp{color:#2B3550!important}
html[data-theme="light"] .b5-pp.on .b5-av{color:#fff!important}
/* BD account page, light mode pass 3: white cards everywhere, firm outlines on the small buttons */
html[data-theme="light"] #bd-account-contact-box{background:#fff}
html[data-theme="light"] #bd-panel-account .btn-g,html[data-theme="light"] #bd-panel-account .bd-refresh-btn{background:#fff;border-color:#8A96B3;color:#0A0F1F}
html[data-theme="light"] #bd-panel-account .btn-g:hover,html[data-theme="light"] #bd-panel-account .bd-refresh-btn:hover{background:#F3F0FF;border-color:#5B3FD6}
html[data-theme="light"] #bd-panel-account .sgp{background:#F6F8FC;border-color:#A3AEC8}
html[data-theme="light"] #bd-panel-account .sgp-r{border-color:#C4CCDD}
html[data-theme="light"] .b5-swm{box-shadow:0 14px 36px rgba(10,15,31,.18);border-color:#A3AEC8}
html[data-theme="light"] .b5-nd.red{background:#FEF2F2;border-color:#F2A7A7}html[data-theme="light"] .b5-nd.amb{background:#FFF8EB;border-color:#EBC27A}html[data-theme="light"] .b5-nd.org{background:#FFF4EC;border-color:#F2B48A}

/* ===== 4. client portal ===== */
/* Bright accents written for dark mode, given the darker light-mode versions the admin side already uses.
   (The team page styles use the colour settings directly, like admin's.) */
html[data-theme="light"] .b-int,
html[data-theme="light"] .gh-v,
html[data-theme="light"] .av-add{color:var(--violet-t)}
html[data-theme="light"] .gh-pt i{color:var(--cyan-t)}
html[data-theme="light"] [style*="color:#FACC15" i]{color:#A16207!important}
/* icons drawn with a see-through white stroke (the phone bell) would vanish on white */
html[data-theme="light"] svg[stroke^="rgba(255,255,255"]{stroke:var(--muted)}
