/* "Aurora" colour look (2026-10-27): indigo + teal, soft shadows, rounder cards. Colours and shadows only - no layout is changed.
   Revert: delete the <link ... theme-aurora.css> line in index.html. */
:root{
  --brand:#4f46e5;--brand-2:#3730a3;--brand-3:#14b8a6;--brand-ink:#fff;--accent:#4f46e5;--c4:#9333ea;
  --bg:#f3f5fb;--surface:#fff;--surface-2:#f6f7fd;--line:#e2e6f3;--ink:#14172e;--muted:#5a6182;
  --side:linear-gradient(180deg,#14123a 0%,#1e1b5c 60%,#2a2680 100%);--side-ink:#d6d9f5;--side-act:rgba(165,160,255,.20);
  --ok:#0b8f5f;--ok-bg:#d9f5e8;--warn:#a85a00;--warn-bg:#fdeec9;--bad:#c0262d;--bad-bg:#fde3e1;--info:#3b4fd8;--info-bg:#e5e9ff;
  --shadow:0 1px 2px rgba(20,23,46,.05),0 8px 22px rgba(20,23,46,.05);
  --p1:#10b981;--p2:#6366f1;--p3:#f59e0b;--p4:#a855f7;--p5:#ef4444;--p6:#06b6d4;
}
:root[data-theme="dark"]{
  --brand:#8b93ff;--brand-2:#2b2f78;--brand-3:#2dd4bf;--brand-ink:#0d0f26;--accent:#8b93ff;--c4:#c084fc;
  --bg:#0b0d1d;--surface:#14173a;--surface-2:#1a1e46;--line:#2a2f5c;--ink:#e9ebff;--muted:#9aa1cf;
  --side:#080a18;--side-ink:#a9afdd;--side-act:rgba(139,147,255,.18);
  --ok:#3ddba0;--ok-bg:#0f3a2c;--warn:#f5b84b;--warn-bg:#3d2f10;--bad:#ff8e86;--bad-bg:#431b1d;--info:#9aa8ff;--info-bg:#1d2552;
  --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 22px rgba(0,0,0,.25);
}
body{background:radial-gradient(900px 420px at 88% -8%,rgba(99,102,241,.10),transparent 62%),radial-gradient(700px 380px at -5% 0%,rgba(20,184,166,.07),transparent 60%),var(--bg);background-attachment:fixed}
:root[data-theme="dark"] body{background:radial-gradient(900px 420px at 88% -8%,rgba(99,102,241,.16),transparent 62%),var(--bg)}
/* top menu / side menu */
html[data-nav="top"] .side{background:linear-gradient(135deg,#1b1850 0%,#2b2a8f 55%,#4338ca 100%);color:#e9ebff;--side-ink:#e9ebff;--side-act:rgba(255,255,255,.18);box-shadow:0 4px 18px rgba(30,27,100,.28)}
:root[data-theme="dark"] html[data-nav="top"] .side,html:root[data-theme="dark"][data-nav="top"] .side{background:linear-gradient(135deg,#0d0e2c,#1a1c5a);box-shadow:0 4px 18px rgba(0,0,0,.4)}
html[data-nav="top"] .side .nav.on{background:rgba(255,255,255,.18);border-radius:9px}
.top{background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
/* cards, tables, buttons */
.card,.kpi,.cdk{border-radius:14px;box-shadow:var(--shadow)}
.kpi{border-top-width:3px}
.card.ctop-red,.card.ctop-amber,.card.ctop-green,.card.ctop-blue,.card.ctop-violet{border-top-width:3px}
.tbl th{background:linear-gradient(180deg,var(--surface-2),color-mix(in srgb,var(--surface-2) 80%,var(--brand) 6%));color:var(--muted)}
.tbl tbody tr.click:hover,.tbl tr.click:hover{background:color-mix(in srgb,var(--brand) 6%,var(--surface))}
.btn{border-radius:10px;transition:box-shadow .15s,transform .1s,background .15s}
.btn:hover{box-shadow:0 3px 10px rgba(79,70,229,.16)}
.btn.pri{background:linear-gradient(135deg,#4f46e5,#6366f1);border-color:#4f46e5;color:#fff;box-shadow:0 4px 12px rgba(79,70,229,.30)}
.btn.pri:hover{filter:brightness(1.07);box-shadow:0 6px 16px rgba(79,70,229,.38)}
.btn.ok{background:linear-gradient(135deg,#0d9466,#10b981);border-color:#0d9466;color:#fff}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
a{color:var(--brand)}
.chip2.sel,.chip.on{box-shadow:0 2px 8px rgba(79,70,229,.22)}
/* the Dashboard page (newdash.js keeps its own variables) */
html .nd{--nd-bg:#f3f5fb;--nd-card:#fff;--nd-line:#e2e6f3;--nd-fg:#14172e;--nd-mut:#5a6182;--nd-ac:#4f46e5;--nd-head:#eff0fe;--nd-ok:#0b8f5f;--nd-bad:#dc2626;--nd-warn:#b45309}
:root[data-theme="dark"] html .nd,html:root[data-theme="dark"] .nd{--nd-bg:#0b0d1d;--nd-card:#14173a;--nd-line:#2a2f5c;--nd-fg:#e9ebff;--nd-mut:#9aa1cf;--nd-ac:#8b93ff;--nd-head:#1a1e46;--nd-ok:#3ddba0;--nd-bad:#ff8e86;--nd-warn:#f5b84b}
html .nd-k{border-radius:14px;box-shadow:var(--shadow)}
html .nd-seg button.on{background:#4f46e5;color:#fff}
a.nd-k:hover{box-shadow:0 8px 22px rgba(79,70,229,.18)}
/* sign-in page and banners (hard-coded gradients in style.css) */
.lg-brand{background-image:linear-gradient(125deg,#171442 0%,#2b2a8f 42%,#4f46e5 75%,#14b8a6 120%)}
.lg-solo{background:linear-gradient(125deg,#171442 0%,#2b2a8f 50%,#4f46e5 100%)}
.lg-go{background:linear-gradient(120deg,#4338ca,#6366f1)!important}
.h2-btn,.h2-av{color:#3730a3}

/* ---- Dashboard page: livelier colours (tiles tinted by meaning, coloured panel tops, charts recoloured) ---- */
html .nd{--nd-ac:#4f46e5}
html .nd-hd h1{background:linear-gradient(90deg,#4f46e5 0%,#7c3aed 45%,#06b6d4 100%);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:800}
html .nd-seg{border-radius:12px;box-shadow:var(--shadow)}html .nd-seg button.on{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff}
html .nd-k{--c:#4f46e5;border-left:0;border-top:4px solid var(--c);border-radius:14px;background:linear-gradient(145deg,color-mix(in srgb,var(--c) 11%,var(--nd-card)) 0%,var(--nd-card) 70%);box-shadow:var(--shadow)}
html .nd-k.g{--c:#10b981}html .nd-k.r,html .nd-k.nd-hot{--c:#ef4444}html .nd-k.a{--c:#f59e0b}html .nd-k.v{--c:#a855f7}
html .nd-k.nd-hot{border-top-width:4px;border-color:var(--nd-line);background:linear-gradient(145deg,color-mix(in srgb,var(--c) 16%,var(--nd-card)) 0%,var(--nd-card) 75%)}
html .nd-k b,html .nd-k.g b,html .nd-k.r b,html .nd-k.nd-hot b,html .nd-k.a b,html .nd-k.v b{color:color-mix(in srgb,var(--c) 88%,#000)}
:root[data-theme="dark"] html .nd-k b,:root[data-theme="dark"] html .nd-k.g b,:root[data-theme="dark"] html .nd-k.r b,:root[data-theme="dark"] html .nd-k.nd-hot b,:root[data-theme="dark"] html .nd-k.a b,:root[data-theme="dark"] html .nd-k.v b{color:color-mix(in srgb,var(--c) 70%,#fff)}
html .nd-c{border-radius:14px;box-shadow:var(--shadow);border-top:3px solid #6366f1}
html .nd-cols .nd-c:nth-child(4n+2){border-top-color:#06b6d4}html .nd-cols .nd-c:nth-child(4n+3){border-top-color:#a855f7}html .nd-cols .nd-c:nth-child(4n+4){border-top-color:#10b981}
html .nd-c h2{font-size:14.5px}
html .nd th{background:linear-gradient(180deg,var(--nd-head),color-mix(in srgb,var(--nd-head) 78%,#6366f1 8%))}
html .nd tr:hover td{background:color-mix(in srgb,#6366f1 5%,transparent)}
/* charts and dots drawn with fixed blue / green / violet / teal: recoloured here */
.nd svg [fill="#2563eb"]{fill:#6366f1}.nd svg [stroke="#2563eb"]{stroke:#6366f1}
.nd svg [fill="#16a34a"]{fill:#10b981}.nd svg [stroke="#16a34a"]{stroke:#10b981}
.nd svg [fill="#7c3aed"]{fill:#a855f7}.nd svg [stroke="#7c3aed"]{stroke:#a855f7}
.nd svg [fill="#0e7490"]{fill:#06b6d4}.nd svg [stroke="#0e7490"]{stroke:#06b6d4}
.nd svg [fill="#d97706"]{fill:#f59e0b}.nd svg [stroke="#d97706"]{stroke:#f59e0b}
.nd .nd-dot[style*="#d97706"]{background:#f59e0b!important}.nd .nd-dot[style*="#16a34a"]{background:#10b981!important}.nd .nd-dot[style*="#7c3aed"]{background:#a855f7!important}.nd .nd-dot[style*="#2563eb"]{background:#6366f1!important}

/* coloured icon badges on the Dashboard / Home tiles and panel headings (added by dash2.js) */
html .nd-k{position:relative;overflow:hidden}
html .nd-k .nd-ico{position:absolute;right:12px;top:12px;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-size:18px;background:color-mix(in srgb,var(--c) 17%,var(--nd-card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent)}
html .nd-c h2 .nd-hico{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;font-size:14px;margin-right:8px;background:color-mix(in srgb,#6366f1 14%,var(--nd-card))}
html .nd-cols .nd-c:nth-child(4n+2) h2 .nd-hico{background:color-mix(in srgb,#06b6d4 16%,var(--nd-card))}html .nd-cols .nd-c:nth-child(4n+3) h2 .nd-hico{background:color-mix(in srgb,#a855f7 16%,var(--nd-card))}html .nd-cols .nd-c:nth-child(4n+4) h2 .nd-hico{background:color-mix(in srgb,#10b981 16%,var(--nd-card))}
html .nd-c h2{justify-content:flex-start}html .nd-c h2 em{margin-left:auto}

/* strips above the lists: coloured panels, bars and heading icons */
.cdpan .card{border-top:3px solid #6366f1;border-radius:14px}
.cdpan .card:nth-child(4n+2){border-top-color:#06b6d4}.cdpan .card:nth-child(4n+3){border-top-color:#a855f7}.cdpan .card:nth-child(4n+4){border-top-color:#10b981}
.cdpan h3{display:flex;align-items:center;gap:8px;font-size:14px}
.cdhico{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;font-size:14px;background:color-mix(in srgb,#6366f1 14%,var(--surface))}
.cdpan .card:nth-child(4n+2) .cdhico{background:color-mix(in srgb,#06b6d4 16%,var(--surface))}.cdpan .card:nth-child(4n+3) .cdhico{background:color-mix(in srgb,#a855f7 16%,var(--surface))}.cdpan .card:nth-child(4n+4) .cdhico{background:color-mix(in srgb,#10b981 16%,var(--surface))}
.cdpan h3 .muted{margin-left:auto}
.cdt{height:11px}.cdt i{border-radius:6px}
/* Customers page: Providers / Plans bars, one colour per row (total pale, active strong) */
.cdb:nth-child(6n+1){--bc:#6366f1}.cdb:nth-child(6n+2){--bc:#06b6d4}.cdb:nth-child(6n+3){--bc:#a855f7}.cdb:nth-child(6n+4){--bc:#10b981}.cdb:nth-child(6n+5){--bc:#f59e0b}.cdb:nth-child(6n+6){--bc:#ec4899}
.cdt .cdp{background:color-mix(in srgb,var(--bc,#6366f1) 28%,var(--surface-2))!important}.cdt .cda{background:var(--bc,#4f46e5)!important}.cdt .cdl{background:linear-gradient(90deg,var(--bc,#a855f7),color-mix(in srgb,var(--bc,#a855f7) 45%,#fff))!important}
.cdb .cdn{font-weight:600}
/* Total / Active / Deactive chips of the Customers page */
#csum .chip2{border-width:1.5px;font-weight:600}
#csum .chip2:nth-child(1){--c:#6366f1}#csum .chip2:nth-child(2){--c:#10b981}#csum .chip2:nth-child(3){--c:#ef4444}
#csum .chip2{border-color:color-mix(in srgb,var(--c) 45%,var(--line));background:color-mix(in srgb,var(--c) 9%,var(--surface))}
#csum .chip2 b{background:var(--c);color:#fff;border-radius:99px;padding:1px 9px}
#csum .chip2.sel{background:var(--c);border-color:var(--c);color:#fff}#csum .chip2.sel b{background:rgba(255,255,255,.28)}

/* 2026-11-24 partner dashboard: heading icon sits beside the title (never over it), tiles all the same height with a tinted icon badge like the other pages */
.cdpan .card>h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cdhico{flex:none;line-height:1;overflow:hidden;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
.cdk{min-height:96px;align-content:start}.cdk .cds{min-height:16px}
.cdk .cdi{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-size:17px;line-height:1;background:color-mix(in srgb,var(--k,#64748b) 16%,var(--surface))}
