/* =====================================================================
   AKALEX themes. Classic = app.css as-is. Each theme sets tokens on
   html[data-theme] and then adjusts shape/structure where tokens can't.
   Selectors are prefixed with html[data-theme=…] so they always outrank
   the base rules in app.css (one extra attribute + element).
   ===================================================================== */

/* ---------------------------------------------------------------------
   ENTERPRISE — calm, dense, tile launchpad (SuccessFactors / Fiori feel)
   --------------------------------------------------------------------- */
html[data-theme="enterprise"] {
  --bg:#f4f6f8; --panel:#ffffff; --ink:#1d2d3e; --muted:#556b82; --line:#d9dfe6;
  --accent:#0a6ed1; --accent-ink:#fff; --accent-soft:#e8f2fc; --accent-line:#bcd8f5; --accent-hover-line:#8fbdec;
  --hover:#eef2f6; --subtle:#f7f9fb; --thead:#f5f6f7; --danger:#bb0000; --ok:#107e3e;
  --shell:#1f2d3d; --shell-ink:#e9eef4; --shell-muted:#9fb1c4; --shell-hover:rgba(255,255,255,.09);
  --radius:8px;
  --ch1:#0a6ed1; --ch2:#e8743b; --ch3:#19a979; --ch4:#ed4a7b; --ch5:#945ecf; --ch6:#13a4b4; --ch7:#525df4; --ch8:#bf399e;
  --font:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html[data-theme="enterprise"] body { font-size:14px; }
html[data-theme="enterprise"] .kpi-num,
html[data-theme="enterprise"] .apv-n,
html[data-theme="enterprise"] .mw-num { font-variant-numeric:tabular-nums; }

/* shell bar */
html[data-theme="enterprise"] header { background:var(--shell); border-bottom:none; color:var(--shell-ink); box-shadow:0 1px 0 rgba(0,0,0,.25); }
html[data-theme="enterprise"] header .brand h1 { color:#fff; font-weight:600; font-size:17px; letter-spacing:0; }
html[data-theme="enterprise"] header .brand .ver { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); color:var(--shell-muted); }
html[data-theme="enterprise"] header .brand .sub { color:var(--shell-muted); }
html[data-theme="enterprise"] header button { background:transparent; border-color:transparent; color:var(--shell-ink); }
html[data-theme="enterprise"] header button:hover { background:var(--shell-hover); }
html[data-theme="enterprise"] header select { background:rgba(255,255,255,.07); color:#fff; border-color:rgba(255,255,255,.18); }
html[data-theme="enterprise"] header select option { color:#1d2d3e; background:#fff; }
html[data-theme="enterprise"] header .user-name { color:#fff; }
html[data-theme="enterprise"] header .user-avatar { background:#fff; color:var(--shell); }
html[data-theme="enterprise"] header .ticker .tk-item { color:var(--shell-ink); }

/* surfaces: flat, hairline borders, small radius */
html[data-theme="enterprise"] .card,
html[data-theme="enterprise"] .section-card { border-radius:8px; box-shadow:0 0 0 1px rgba(29,45,62,.02), 0 1px 2px rgba(29,45,62,.06); }
html[data-theme="enterprise"] .section-head h3 { font-size:15px; font-weight:600; }
html[data-theme="enterprise"] button { border-radius:6px; font-weight:500; }
html[data-theme="enterprise"] input:not([type]), html[data-theme="enterprise"] input[type=text], html[data-theme="enterprise"] input[type=number],
html[data-theme="enterprise"] input[type=date], html[data-theme="enterprise"] input[type=datetime-local],
html[data-theme="enterprise"] textarea, html[data-theme="enterprise"] select,
html[data-theme="enterprise"] .ss-btn { border-radius:6px; border-color:#89919a; }
html[data-theme="enterprise"] input:focus, html[data-theme="enterprise"] textarea:focus, html[data-theme="enterprise"] select:focus { outline-width:2px; outline-offset:0; }
html[data-theme="enterprise"] label { font-weight:500; color:var(--muted); }
html[data-theme="enterprise"] th, html[data-theme="enterprise"] .rp-table th { background:var(--thead); color:var(--muted); font-weight:600; font-size:12px; }
html[data-theme="enterprise"] tbody tr:hover td { background:#f5f9fd; }
html[data-theme="enterprise"] .tab { font-weight:500; }
html[data-theme="enterprise"] .home-section h3, html[data-theme="enterprise"] .recent-head { text-transform:none; letter-spacing:0; font-size:15px; color:var(--ink); font-weight:600; }

/* sidebar (when used) reads as a quiet side navigation */
html[data-theme="enterprise"] .sidebar { background:#fff; }
html[data-theme="enterprise"] .sidebar .menu-grp-head { text-transform:none; letter-spacing:0; font-size:13px; font-weight:600; }
html[data-theme="enterprise"] .sidebar .menu-link { border-radius:4px; }
html[data-theme="enterprise"] .sidebar .menu-link.active { background:var(--accent-soft); box-shadow:inset 3px 0 0 var(--accent); }

/* launchpad tiles — the memorable element: big live numbers */
html[data-theme="enterprise"] .lp-nav { background:var(--bg); }
html[data-theme="enterprise"] .lp-tiles { gap:12px; }
html[data-theme="enterprise"] .lp-tile { width:176px; height:176px; border-radius:12px; border-color:transparent; box-shadow:0 0 0 1px rgba(29,45,62,.06), 0 2px 4px rgba(29,45,62,.08); padding:16px; }
html[data-theme="enterprise"] .lp-tile:hover { box-shadow:0 0 0 1px var(--accent-hover-line), 0 6px 16px rgba(29,45,62,.14); }
html[data-theme="enterprise"] .lp-tile .lp-label { color:var(--ink); font-size:15px; font-weight:600; }
html[data-theme="enterprise"] .lp-tile .lp-sub { color:var(--muted); }
html[data-theme="enterprise"] .lp-tile .lp-ico { left:16px; bottom:16px; color:var(--accent); }
html[data-theme="enterprise"] .lp-tile.lp-kpi .mw-num { position:absolute; right:16px; bottom:10px; font-size:44px; font-weight:300; line-height:1; color:var(--accent); }
html[data-theme="enterprise"] .lp-tile.lp-kpi.warn .mw-num { color:#e9730c; }
html[data-theme="enterprise"] .lp-tile.lp-kpi.zero .mw-num { color:var(--muted); }

/* home: hero becomes a quiet page header; KPI cards become tiles */
html[data-theme="enterprise"] .portal-hero { background:#fff; color:var(--ink); border-radius:8px; box-shadow:0 1px 2px rgba(29,45,62,.08); padding:22px 24px; border-left:4px solid var(--accent); }
html[data-theme="enterprise"] .portal-hero h2 { font-weight:600; font-size:22px; }
html[data-theme="enterprise"] .portal-hero p, html[data-theme="enterprise"] .portal-hero .home-welcome { color:var(--muted); }
html[data-theme="enterprise"] .pres-chip { background:var(--accent-soft); color:var(--accent); border-color:var(--accent-line); }
html[data-theme="enterprise"] .kpi-card, html[data-theme="enterprise"] .widget, html[data-theme="enterprise"] .tile,
html[data-theme="enterprise"] .recent-card, html[data-theme="enterprise"] .apv-card { border-radius:12px; }
html[data-theme="enterprise"] .kpi-card:hover, html[data-theme="enterprise"] .tile:hover { transform:none; }
html[data-theme="enterprise"] .kpi-num { font-weight:300; font-size:30px; color:var(--accent); }
html[data-theme="enterprise"] .kpi-ico { border-radius:8px; }
html[data-theme="enterprise"] .portal-hero-card { background:var(--shell); box-shadow:none; }

/* my-work strip */
html[data-theme="enterprise"] .mywork .mw-card { border-radius:12px; min-height:112px; }
html[data-theme="enterprise"] .mywork .mw-num { font-size:40px; font-weight:300; color:var(--accent); }
html[data-theme="enterprise"] .mywork .mw-card.warn .mw-num { color:#e9730c; }

/* ---------------------------------------------------------------------
   PEOPLE — warm, rounded, people-first (Darwinbox feel)
   --------------------------------------------------------------------- */
html[data-theme="people"] {
  --bg:#f3f4fa; --panel:#ffffff; --ink:#1b1d3a; --muted:#6b6f8f; --line:#e6e7f2;
  --accent:#4b3fd6; --accent-ink:#fff; --accent-soft:#eeecff; --accent-line:#d9d5ff; --accent-hover-line:#bdb5fb;
  --hover:#f1f0fb; --subtle:#f8f8fd; --thead:#f7f7fc; --danger:#d92d4a; --ok:#12a594;
  --celebrate:#f5a524;
  --shadow:0 1px 2px rgba(35,28,120,.05), 0 6px 18px rgba(75,63,214,.07);
  --shadow-hover:0 2px 4px rgba(35,28,120,.06), 0 12px 28px rgba(75,63,214,.13);
  --radius:16px;
  --ch1:#4b3fd6; --ch2:#12a594; --ch3:#f5a524; --ch4:#e5487b; --ch5:#2d9cdb; --ch6:#8e7cf0; --ch7:#6cc04a; --ch8:#f07a4a;
  --font:"Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html[data-theme="people"] body { font-size:14px; }

/* header: white, airy */
html[data-theme="people"] header { border-bottom-color:transparent; box-shadow:0 1px 0 var(--line); }
html[data-theme="people"] header .brand h1 { color:var(--accent); font-weight:800; letter-spacing:-.02em; }
html[data-theme="people"] header .brand .ver { border-radius:999px; }
html[data-theme="people"] header .icon-only { border-radius:12px; border-color:transparent; background:var(--hover); }
html[data-theme="people"] header .icon-only:hover { background:var(--accent-soft); color:var(--accent); }
html[data-theme="people"] header select { border-radius:12px; }
html[data-theme="people"] .user-avatar { width:34px; height:34px; background:linear-gradient(135deg,var(--accent),#7b6ff0); box-shadow:0 0 0 3px var(--accent-soft); }

/* sidebar: icon + label, pill actives */
html[data-theme="people"] .sidebar { border-right-color:transparent; box-shadow:1px 0 0 var(--line); padding:16px 10px; }
html[data-theme="people"] .sidebar .menu-grp-head { border-radius:12px; text-transform:none; letter-spacing:0; font-size:13px; font-weight:700; }
html[data-theme="people"] .sidebar > .menu-group > .menu-grp-head { font-size:13px; }
html[data-theme="people"] .sidebar > .menu-group > .menu-children,
html[data-theme="people"] .sidebar .menu-children .menu-children { border-left:none; margin-left:14px; }
html[data-theme="people"] .sidebar .menu-link { border-radius:12px; padding:9px 12px; font-weight:500; }
html[data-theme="people"] .sidebar .menu-link.active { background:var(--accent-soft); color:var(--accent); box-shadow:none; font-weight:700; }
html[data-theme="people"] .sidebar .menu-grp-head .mi-icon,
html[data-theme="people"] .sidebar .menu-link .mi-icon { color:var(--accent); opacity:.75; }

/* surfaces: radius by hierarchy (banner 22 > card 16 > control 10 > chip pill) */
html[data-theme="people"] .card { border-color:transparent; box-shadow:var(--shadow); border-radius:18px; }
html[data-theme="people"] .section-card { border-color:transparent; box-shadow:var(--shadow); border-radius:16px; }
html[data-theme="people"] .section-head h3 { font-size:15px; font-weight:700; }
html[data-theme="people"] button { border-radius:10px; font-weight:600; }
html[data-theme="people"] button.primary { border-radius:999px; padding-left:20px; padding-right:20px; box-shadow:0 4px 12px rgba(75,63,214,.28); }
html[data-theme="people"] input:not([type]), html[data-theme="people"] input[type=text], html[data-theme="people"] input[type=number],
html[data-theme="people"] input[type=date], html[data-theme="people"] input[type=datetime-local],
html[data-theme="people"] textarea, html[data-theme="people"] select,
html[data-theme="people"] .ss-btn { border-radius:10px; background:var(--subtle); }
html[data-theme="people"] input:focus, html[data-theme="people"] textarea:focus, html[data-theme="people"] select:focus { background:#fff; outline:3px solid var(--accent-soft); outline-offset:0; }
html[data-theme="people"] label { font-weight:600; }
html[data-theme="people"] .tabs { border-bottom:none; gap:6px; }
html[data-theme="people"] .tab { border:none; border-radius:999px; padding:8px 18px; }
html[data-theme="people"] .tab.active { background:var(--accent); color:#fff; }
html[data-theme="people"] .apv-tab { border-radius:999px; border:none; }
html[data-theme="people"] .apv-tab.active { background:var(--accent-soft); }
html[data-theme="people"] .hist-badge { border-radius:999px; text-transform:none; letter-spacing:0; font-size:11px; }
html[data-theme="people"] th, html[data-theme="people"] .rp-table th { background:var(--thead); color:var(--muted); font-weight:600; border-bottom-width:1px; }
html[data-theme="people"] .home-section h3, html[data-theme="people"] .recent-head { text-transform:none; letter-spacing:0; font-size:16px; color:var(--ink); font-weight:700; }

/* home: the greeting banner is the memorable element */
html[data-theme="people"] .portal-hero { background:var(--accent); border-radius:22px; box-shadow:0 18px 40px -16px rgba(75,63,214,.55); overflow:hidden; }
html[data-theme="people"] .portal-hero h2 { font-size:26px; font-weight:800; letter-spacing:-.02em; }
html[data-theme="people"] .kpi-card, html[data-theme="people"] .widget, html[data-theme="people"] .tile,
html[data-theme="people"] .recent-card, html[data-theme="people"] .apv-card, html[data-theme="people"] .lp-tile { border-color:transparent; box-shadow:var(--shadow); border-radius:16px; }
html[data-theme="people"] .kpi-card:hover, html[data-theme="people"] .tile:hover, html[data-theme="people"] .lp-tile:hover { box-shadow:var(--shadow-hover); border-color:transparent; }
html[data-theme="people"] .kpi-ico, html[data-theme="people"] .tile .tile-icon { border-radius:14px; }
html[data-theme="people"] .kpi-num { font-weight:800; }
html[data-theme="people"] .portal-hero-card { background:var(--accent); border-radius:20px; }
html[data-theme="people"] .lp-tile .lp-label { color:var(--ink); font-weight:700; }
html[data-theme="people"] .lp-tile .lp-ico { color:var(--accent); }
html[data-theme="people"] .lp-tile.lp-kpi .mw-num { position:absolute; right:14px; bottom:10px; font-size:34px; font-weight:800; color:var(--accent); }

/* my-work strip in the banner */
html[data-theme="people"] .mywork .mw-card { border-radius:16px; }
html[data-theme="people"] .mywork .mw-num { font-weight:800; font-size:30px; color:var(--accent); }
html[data-theme="people"] .mywork .mw-card.warn .mw-num { color:var(--danger); }
html[data-theme="people"] .mywork .mw-card.warn { box-shadow:inset 0 0 0 1px #ffd3da, var(--shadow); }

/* ---------------------------------------------------------------------
   Shared: greeting + my-work strip (markup from nav.js), theme picker
   --------------------------------------------------------------------- */
.hero-greet { font-size:13px; opacity:.85; margin-bottom:4px; }
header .icon-only { flex:0 0 auto; }
header .hdr-left { flex:0 1 auto; }
header .hdr-right { flex:0 0 auto; }
header .header-ticker { flex:1 1 auto; max-width:none; }
header .icon-only svg.hi { width:18px; height:18px; }
html[data-theme] .ss-btn { font-weight:400; }
.mywork { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin:0 0 24px; }
.mywork .mw-card { position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:10px; text-align:left; font:inherit; color:var(--ink);
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px 18px; cursor:pointer; min-height:104px; }
.mywork .mw-card:hover { border-color:var(--accent-hover-line); }
.mywork .mw-label { font-size:13px; font-weight:600; color:var(--ink); }
.mywork .mw-hint { font-size:12px; color:var(--muted); }
.mywork .mw-num { font-size:30px; font-weight:700; line-height:1; color:var(--ink); }
.mywork .mw-card.zero .mw-num { color:var(--muted); }
.mywork .mw-foot { display:flex; align-items:flex-end; justify-content:space-between; gap:8px; }

.theme-pop { position:fixed; z-index:1200; width:340px; max-width:calc(100vw - 20px); background:#fff; color:#1c2430; border:1px solid #e4e7ec; border-radius:14px;
  box-shadow:0 18px 48px rgba(16,24,40,.22); padding:12px; font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; }
.theme-pop[hidden] { display:none; }
.theme-pop h4 { margin:2px 4px 10px; font-size:14px; }
.theme-opt { display:flex; gap:12px; align-items:center; width:100%; text-align:left; background:#fff; border:1px solid #e4e7ec; border-radius:12px; padding:10px; margin-bottom:8px; cursor:pointer; font:inherit; color:#1c2430; }
.theme-opt:hover { background:#f7f9fc; }
.theme-opt.on { border-color:#2f6feb; box-shadow:0 0 0 2px #d6e4ff; }
.theme-opt b { display:block; font-size:13.5px; color:#1c2430; }
.theme-opt .tp-desc { display:block; font-size:12px; color:#667085; font-weight:400; }
.theme-pop button { font-weight:500; box-shadow:none; }
.theme-opt .tp-org { font-weight:500; color:#2f6feb; font-size:12px; }
.theme-sw { flex:0 0 64px; height:46px; border-radius:8px; overflow:hidden; display:grid; grid-template-rows:12px 1fr; border:1px solid rgba(0,0,0,.08); }
.theme-sw i { display:block; }
.theme-sw .sw-body { display:grid; grid-template-columns:16px 1fr; }
.theme-pop .tp-foot { display:flex; flex-direction:column; align-items:stretch; gap:8px; border-top:1px solid #e4e7ec; margin-top:6px; padding-top:10px; font-size:12px; color:#667085; }
.theme-pop .tp-foot .tp-btns { display:flex; gap:8px; justify-content:flex-end; }
.theme-pop .tp-foot button { font-size:12px; padding:6px 10px; border-radius:8px; background:#fff; color:#1c2430; border:1px solid #e4e7ec; }
.theme-pop .tp-foot button:hover { background:#f2f4f7; }

@media (prefers-reduced-motion: reduce) {
  html[data-theme] * { transition:none !important; }
}

/* ---------- home graphic: orbit motif ---------- */
.portal-hero { overflow:hidden; }
.portal-hero-in { position:relative; z-index:1; max-width:62%; }
.hero-orbit { position:absolute; right:240px; top:50%; width:230px; height:230px; transform:translateY(-44%) rotate(-14deg); pointer-events:none; }
html[data-theme="enterprise"] .hero-orbit { width:150px; height:150px; right:250px; transform:translateY(-50%) rotate(-14deg); }
.wdg-table td.num, .wdg-table th.num { text-align:right; font-variant-numeric:tabular-nums; }
.hero-orbit g { stroke:rgba(255,255,255,.34); }
.hero-orbit .ho-core { fill:rgba(255,255,255,.92); }
.hero-orbit .ho-e { fill:#fff; }
html[data-theme="enterprise"] .hero-orbit g { stroke:var(--accent-line); }
html[data-theme="enterprise"] .hero-orbit .ho-core { fill:var(--accent); }
html[data-theme="enterprise"] .hero-orbit .ho-e { fill:var(--ch2); }
html[data-theme="people"] .hero-orbit g { stroke:rgba(255,255,255,.28); }
html[data-theme="people"] .hero-orbit .ho-core { fill:var(--celebrate); }
html[data-theme="people"] .hero-orbit .ho-e { fill:#fff; }
.pres-chip { z-index:2; }

/* ---------- charts ---------- */
.widget-chart .widget-body { justify-content:flex-start; }
.widget-head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.widget-go { color:var(--muted); font-size:18px; line-height:1; }
.wdg-svg { width:100%; height:auto; display:block; overflow:visible; }
.ch-grid { stroke:var(--line); stroke-width:1; }
.ch-axis { fill:var(--muted); font-size:10.5px; font-family:var(--font); }
.ch-val { fill:var(--ink); font-size:10.5px; font-weight:600; font-family:var(--font); }
.ch-line { fill:none; stroke:var(--ch1); stroke-width:2.4; stroke-linejoin:round; stroke-linecap:round; }
.ch-area { fill:var(--ch1); opacity:.13; }
.ch-dot { fill:var(--panel); stroke:var(--ch1); stroke-width:2; }
.ch-centre { fill:var(--ink); font-size:21px; font-weight:700; font-family:var(--font); }
.ch-centre-l { fill:var(--muted); font-size:10.5px; font-family:var(--font); }
.wdg-chart-row { display:flex; gap:18px; align-items:center; }
.wdg-pie { width:150px; height:150px; flex:0 0 auto; }
.wdg-pie path, .wdg-pie circle { stroke:var(--panel); stroke-width:1.5; }
.wdg-legend { display:flex; flex-direction:column; gap:6px; min-width:0; flex:1; }
.wdg-leg { display:flex; align-items:center; gap:8px; font-size:12.5px; min-width:0; }
.wdg-leg span { flex:0 0 10px; width:10px; height:10px; border-radius:3px; margin:0; }
.wdg-leg em { font-style:normal; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); }
.wdg-leg b { font-variant-numeric:tabular-nums; }
.wdg-bar-fill { border-radius:4px; }
.wdg-bar-val { font-variant-numeric:tabular-nums; }
.wdg-empty { color:var(--muted); font-size:13px; padding:18px 0; text-align:center; }

/* ---------- dashboard page header ---------- */
.dash-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin:2px 0 22px; }
.dash-title h2 { margin:2px 0 0; font-size:24px; font-weight:700; letter-spacing:-.01em; }
.dash-title p { margin:4px 0 0; color:var(--muted); }
.dash-crumb { background:none; border:none; padding:0; color:var(--accent); font-size:13px; font-weight:500; cursor:pointer; }
.dash-crumb:hover { background:none; text-decoration:underline; }
.dash-crumb::after { content:" /"; color:var(--muted); }
html[data-theme="enterprise"] .dash-head { background:#fff; margin:-4px 0 22px; padding:18px 22px; border-radius:8px; box-shadow:0 1px 2px rgba(29,45,62,.08); }
html[data-theme="enterprise"] .dash-title h2 { font-weight:600; font-size:22px; }

/* ---------- dashboard filters, SQL cards and tables ---------- */
.dash-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin:-8px 0 20px; }
.dash-filter { display:flex; flex-direction:column; gap:4px; min-width:150px; }
.dash-filter label { font-size:11.5px; font-weight:600; color:var(--muted); margin:0; }
.dash-filter select, .dash-filter input { min-width:150px; padding:7px 10px; font-size:13px; }
.dash-reset { margin-left:auto; font-size:12.5px; padding:7px 12px; }
.kpi-sub { font-size:11.5px; color:var(--muted); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi-sql { cursor:default; }
.kpi-row.kpi-row-4 { grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (max-width:1100px){ .kpi-row.kpi-row-4 { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px){ .kpi-row.kpi-row-4 { grid-template-columns:1fr; } }
.kpi-sql[data-type] { cursor:pointer; }
.kpi-warn { border-color:#f5c2c0; background:linear-gradient(0deg, rgba(220,38,38,.05), rgba(220,38,38,.05)), var(--panel); }
.kpi-warn .kpi-num { color:#b42318; }
.wdg-series-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:12px; color:var(--muted); margin:0 0 6px; }
.wdg-series-legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.wdg-table-wrap { overflow-x:auto; }
.wdg-table th.num, .wdg-table td.num { text-align:right; font-variant-numeric:tabular-nums; }
.wdg-table td { white-space:nowrap; }
.wdg-more { margin-top:8px; }
.widget-m .wdg-bar-label { flex-basis:120px; }
.widget-l .wdg-bar-label, .widget-w .wdg-bar-label, .widget-xl .wdg-bar-label { flex-basis:190px; }
.widget-body.wdg-reloading { opacity:.45; transition:opacity .2s; }
.widget:has(.wdg-table-wrap) .widget-body { justify-content:flex-start; }

/* ---------- small screens ---------- */
@media (max-width:860px) {
  header .hdr-right { flex:1 1 100%; overflow-x:auto; justify-content:flex-start; scrollbar-width:none; padding-bottom:2px; }
  header .hdr-right::-webkit-scrollbar { display:none; }
  header .user-name { display:none; }
  .pres-chip { position:static; display:inline-block; margin-bottom:10px; }
  .hero-orbit { right:-40px; width:170px; height:170px; opacity:.55; }
  .portal-hero-in { max-width:none; }
  .wdg-chart-row { flex-direction:column; align-items:stretch; }
  .wdg-pie { align-self:center; }
  .mywork { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .mywork .mw-card { padding:12px 14px; min-height:96px; }
  .mywork .mw-hint { display:none; }
  .lp-tiles { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px !important; }
  .lp-tile, html[data-theme="enterprise"] .lp-tile { width:auto !important; height:148px !important; }
  html[data-theme="enterprise"] .lp-tile.lp-kpi .mw-num { font-size:36px; }
  html[data-theme="people"] .portal-hero { padding:22px 20px; border-radius:18px; }
  html[data-theme="people"] .portal-hero h2 { font-size:22px; }
}
.theme-pop .tp-note { font-size:12px; color:#1c4e91; background:#eef4ff; border-radius:8px; padding:7px 9px; margin:2px 0 8px; }
.dash-pop .theme-opt { align-items:flex-start; }
.dash-pop .dp-ico { flex:0 0 34px; height:34px; border-radius:9px; background:#e8f2fc; color:#0a6ed1; display:flex; align-items:center; justify-content:center; }
.dash-pop .dp-ico svg { width:18px; height:18px; }

.lp-nav a.lp-dash-link { display:inline-flex; align-items:center; gap:6px; color:var(--accent); font-weight:600; }
.lp-nav a.lp-dash-link svg { width:15px; height:15px; }

/* ---------- company branding ---------- */
.brand.branded h1 { display:flex; align-items:center; gap:10px; }
.brand .brand-logo { height:30px; width:auto; max-width:150px; object-fit:contain; display:block; }
.brand .bl-dark { display:none; }
/* Enterprise's dark shell bar: use the dark-background logo if there is one, else put the logo on a light chip */
html[data-theme="enterprise"] header .brand.has-dark-logo .bl-light { display:none; }
html[data-theme="enterprise"] header .brand.has-dark-logo .bl-dark { display:block; }
html[data-theme="enterprise"] header .brand.branded:not(.has-dark-logo) .bl-light { background:#fff; border-radius:6px; padding:3px 6px; height:32px; }
.login-brand .login-logo { max-height:64px; max-width:220px; object-fit:contain; display:block; margin:0 auto 10px; }
.login-brand h1 { margin:0; }

.cp-sec { border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:0 0 14px; background:var(--panel); }
.cp-sec > h3 { margin:0 0 12px; font-size:15px; }
.cp-colour { display:flex; align-items:center; gap:10px; }
.cp-colour input[type=color] { width:44px; height:36px; padding:2px; border-radius:8px; border:1px solid var(--line); background:var(--panel); }
.cp-colour input[type=color]:disabled { opacity:.45; }
.cp-assets { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }
.cp-asset { display:flex; gap:12px; align-items:center; border:1px dashed var(--line); border-radius:10px; padding:10px; }
.cp-asset-prev { flex:0 0 110px; height:64px; border-radius:8px; background:var(--subtle); display:flex; align-items:center; justify-content:center; overflow:hidden; font-size:12px; }
.cp-asset-dark .cp-asset-prev { background:#1f2d3d; }
.cp-asset-prev img { max-width:100%; max-height:100%; object-fit:contain; }
.cp-asset-body { display:flex; flex-direction:column; gap:3px; min-width:0; font-size:13px; }
.cp-asset-body .muted { font-size:12px; }
.cp-asset-btns { display:flex; gap:8px; margin-top:4px; }
.cp-asset-btns button, .cp-upload { font-size:12.5px; padding:6px 12px; }
.cp-upload { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:8px; background:var(--panel); cursor:pointer; font-weight:550; margin:0; }
.cp-upload:hover { background:var(--hover); }
.cp-upload.disabled { opacity:.5; cursor:not-allowed; }
.cp-hint { font-size:12.5px; margin-top:8px; min-height:1em; }
.cp-hint-ok { color:var(--ok); } .cp-hint-bad { color:var(--danger); }
.cp-preview { background:#fff; color:#1c2430; border:1px solid var(--line); border-radius:8px; padding:18px 20px; }

/* letterhead: only on paper */
.print-brand { display:none; }
@media print { .print-brand { display:block; } }
.login-brand.with-logo { flex-direction:column; align-items:center; text-align:center; gap:6px; }
.login-brand.with-logo h1 { font-size:20px; }
.login-brand.with-logo ~ .login-sub { text-align:center; }

/* My work: heading + Mine / Everyone switch (admins) */
.mw-wrap { margin:0 0 24px; }
.mw-wrap .mywork { margin:0; }
.mw-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 10px; }
.mw-head h3 { margin:0; font-size:15px; font-weight:650; color:var(--ink); }
.mw-scope { display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:2px; background:var(--panel); }
.mw-scope[hidden] { display:none; }
.mw-scope button { border:none; background:transparent; border-radius:999px; padding:5px 14px; font-size:12.5px; font-weight:600; color:var(--muted); box-shadow:none; }
.mw-scope button.on { background:var(--accent); color:var(--accent-ink); }
.mw-scope button:not(.on):hover { background:var(--hover); color:var(--ink); }

/* ---------- Materials Management (stores) ---------- */
.mm-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:0 0 14px; flex-wrap:wrap; }
.mm-head h2 { margin:0 0 4px; font-size:22px; }
.mm-head p { margin:0; color:var(--muted); font-size:13.5px; max-width:720px; }
.mm-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.mm-filebtn { display:inline-flex; align-items:center; padding:8px 14px; border:1px solid var(--line); border-radius:8px; background:var(--panel); cursor:pointer; font-weight:550; font-size:13.5px; margin:0; }
.mm-filebtn:hover { background:var(--hover); }
.mm-form, .mm-filters, .mm-sec { padding:16px 18px; margin-bottom:14px; }
.mm-grid, .mm-filters { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; }
.mm-filters { align-items:end; }
.mm-wide { grid-column:span 2; }
.mm-grid label, .mm-filters label { display:block; font-size:12px; color:var(--muted); margin-bottom:4px; font-weight:550; }
.mm-lines { overflow:visible; margin-top:14px; }
.mm-lines .rp-table { width:100%; }
.mm-lines td { vertical-align:top; padding:6px 6px; }
.mm-lines select, .mm-lines input { min-width:0; }
.mm-no { color:var(--muted); width:28px; padding-top:14px !important; }
.mm-matcell { min-width:240px; }
.mm-mat { position:relative; }
.mm-matdesc { font-size:12px; color:var(--muted); margin-top:3px; }
.mm-sugg { position:absolute; left:0; right:-120px; top:100%; z-index:30; margin-top:4px; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(16,24,40,.16); max-height:300px; overflow:auto; }
.mm-sg { display:block; width:100%; text-align:left; border:none; border-radius:0; background:transparent; padding:8px 12px; font-weight:400; font-size:13px; box-shadow:none; }
.mm-sg:hover, .mm-sg.on { background:var(--accent-soft); }
.mm-sg .muted { float:right; margin-left:12px; }
.mm-qty { display:inline-flex; align-items:center; gap:6px; }
.mm-qty input { width:100px; }
.mm-del { width:30px; height:34px; padding:0; font-size:18px; line-height:1; color:var(--muted); }
.mm-short { color:var(--danger); font-weight:700; }
tr.mm-errline td { background:#fff4f3; }
.mm-foot { display:flex; align-items:center; gap:12px; margin-top:12px; }
.mm-total { margin-left:auto; color:var(--muted); font-size:13.5px; }
.mm-total b { color:var(--ink); font-variant-numeric:tabular-nums; }
.mm-ok { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; background:#ecfdf3; border:1px solid #abefc6; color:#067647; border-radius:12px; padding:14px 16px; margin-bottom:14px; }
.mm-ok b { color:#054f31; }
.mm-kpis { display:flex; gap:12px; flex-wrap:wrap; margin:0 0 12px; }
.mm-kpi { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:10px 14px; min-width:150px; }
.mm-kpi span { display:block; font-size:12px; color:var(--muted); }
.mm-kpi b { font-size:18px; font-variant-numeric:tabular-nums; }
.mm-table td.num, .mm-table th.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.mm-table td.c, .mm-table th.c { text-align:center; }
.mm-table td .muted { font-size:12px; }
.mm-click { cursor:pointer; }
.mm-in { color:#067647; } .mm-out { color:#b42318; }
.mm-pager { display:flex; justify-content:center; align-items:center; gap:10px; padding:12px; font-size:13px; }
.mm-ledger-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:12px; }
.mm-ledger-head .mm-kpi { padding:6px 12px; min-width:0; }
.mm-dochead { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px 18px; padding:16px 18px; margin-bottom:14px; }
.mm-dochead span { display:block; font-size:12px; color:var(--muted); }
.mm-empty { padding:28px; text-align:center; }
.mm-empty h3 { margin:0 0 6px; }
.mm-sec h3 { margin:0 0 10px; font-size:16px; }
.mm-checks { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.mm-checks span { padding:5px 10px; border-radius:999px; font-size:12.5px; border:1px solid var(--line); }
.mm-checks .yes { background:#ecfdf3; border-color:#abefc6; color:#067647; }
.mm-checks .no { color:var(--muted); }
.mm-log { margin-top:12px; background:var(--subtle); border:1px solid var(--line); border-radius:8px; padding:10px 12px; font:12.5px/1.6 ui-monospace,Consolas,monospace; max-height:220px; overflow:auto; }
.mm-log .ok { color:#067647; } .mm-log .err { color:#b42318; }
.mm-periods { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.mm-period { border:1px solid var(--line); border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:4px; background:var(--subtle); }
.mm-period.open { background:#ecfdf3; border-color:#abefc6; }
.mm-period span { font-size:12px; color:var(--muted); }
.mm-period button { align-self:flex-start; font-size:12px; padding:4px 10px; margin-top:2px; }
button.danger { color:#b42318; border-color:#f3b7b2; }
button.danger:hover { background:#fff4f3; }
@media (max-width:860px) { .mm-wide { grid-column:auto; } .mm-sugg { right:0; } }
.mm-lines td.num { padding-top:15px !important; }
.mm-filters > button { justify-self:start; min-width:110px; } .mm-filters > .sb-chk { margin:0 0 8px; }

/* Stores setup (entity-based MM) */
.mm-card { padding:16px 18px; margin:0 0 14px; }
.mm-card > h3 { margin:0 0 10px; font-size:15px; display:flex; align-items:center; }
.mm-chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.mm-chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; padding:3px 9px; border-radius:999px; border:1px solid var(--line); color:var(--muted); background:var(--panel); }
.mm-chip.ok { color:var(--ok); border-color:color-mix(in srgb, var(--ok) 35%, transparent); background:color-mix(in srgb, var(--ok) 8%, transparent); }
.mm-steps { margin:0; padding-left:20px; display:grid; gap:8px; font-size:13.5px; line-height:1.5; }
.mm-steps a, .mm-card .sb-note a { color:var(--accent); font-weight:600; text-decoration:none; }
.mm-steps a:hover, .mm-card .sb-note a:hover { text-decoration:underline; }

/* launchpad: sub-menus as folder tiles with an expanding panel */
.lp-tile.lp-folder { border-style:solid; background:color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.lp-tile.lp-folder .lp-sub { font-weight:600; color:var(--accent); }
.lp-tile.lp-folder .lp-chev { position:absolute; right:12px; top:12px; width:8px; height:8px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .15s; }
.lp-tile.lp-folder.open { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; }
.lp-tile.lp-folder.open .lp-chev { transform:rotate(-135deg); top:16px; border-color:var(--accent); }
.lp-subpanel { margin:12px 0 4px; padding:12px 14px 14px; border-left:3px solid var(--accent); border-radius:0 10px 10px 0; background:color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.lp-subpanel > h4 { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:13.5px; font-weight:650; color:var(--ink); }
.lp-subpanel > h4 svg { width:16px; height:16px; }
.lp-subpanel .lp-subpanel { background:var(--panel); }

/* numbers right-aligned in lists */
td.num-cell, th.num-cell { text-align:right; font-variant-numeric:tabular-nums; }

/* row buttons (print / actions) in lists */
td.actions .row-btn { font-size:12px; padding:4px 10px; margin-right:6px; border-radius:6px; border:1px solid var(--line); background:var(--panel); color:var(--ink); cursor:pointer; white-space:nowrap; }
td.actions .row-btn:hover { background:var(--hover); border-color:var(--accent-line, var(--line)); }
td.actions .row-more { font-weight:700; letter-spacing:1px; padding:3px 9px; }
td.actions { white-space:nowrap; }
.row-menu { position:absolute; z-index:60; min-width:190px; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 28px rgba(15,23,42,.16); padding:4px; display:flex; flex-direction:column; }
.row-menu button { text-align:left; border:none; background:transparent; padding:8px 12px; border-radius:6px; font-size:13px; cursor:pointer; color:var(--ink); box-shadow:none; }
.row-menu button:hover { background:var(--hover); }
.lv-rb-list { display:grid; gap:6px; margin:4px 0 8px; }
.lv-rb-list .muted { font-size:12px; }

/* list view filter bar */
.view-filters { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:flex-end; padding:12px 14px; margin:0 0 12px; border:1px solid var(--line); border-radius:10px; background:var(--subtle, var(--panel)); }
.view-filters .vf-item { display:flex; flex-direction:column; gap:4px; min-width:170px; }
.view-filters .vf-item.vf-wide { min-width:300px; }
.view-filters .vf-item.vf-search { flex:1 1 220px; }
.view-filters label { font-size:12px; font-weight:600; color:var(--muted); margin:0; }
.view-filters .req { color:var(--danger); }
.view-filters input, .view-filters select { height:34px; }
.view-filters .vf-range { display:flex; align-items:center; gap:6px; }
.view-filters .vf-range input { width:150px; }
.view-filters .vf-range span { font-size:12px; color:var(--muted); }
.view-filters .vf-presets { display:flex; gap:4px; flex-wrap:wrap; }
.view-filters .vf-presets button { font-size:11.5px; padding:2px 8px; border-radius:999px; box-shadow:none; }
.view-filters .vf-hint { font-size:11px; color:var(--muted); }
.view-filters .vf-go { display:flex; gap:8px; margin-left:auto; }

/* help centre */
header .help-btn { font-weight:700; font-size:16px; width:34px; }
.help-wrap { display:grid; grid-template-columns:260px 1fr; gap:18px; align-items:start; }
.help-side { position:sticky; top:12px; display:flex; flex-direction:column; gap:12px; max-height:calc(100vh - 110px); overflow:auto; }
.help-side input[type=search] { width:100%; }
.help-manuals, .hp-list { display:flex; flex-direction:column; gap:4px; }
.help-man { text-align:left; border:1px solid var(--line); background:var(--panel); border-radius:8px; padding:8px 10px; font-weight:600; font-size:13px; box-shadow:none; }
.help-man.on { border-color:var(--accent); background:var(--accent-soft, var(--hover)); color:var(--ink); }
.help-toc { display:flex; flex-direction:column; border-left:2px solid var(--line); padding-left:10px; gap:2px; }
.help-toc a { font-size:12.5px; color:var(--muted); text-decoration:none; padding:3px 0; }
.help-toc a:hover { color:var(--accent); }
.help-toc a.lvl3 { padding-left:12px; font-size:12px; }
.help-main { min-width:0; }
.help-tools { display:flex; gap:8px; justify-content:flex-end; margin:0 0 8px; }
.help-body { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:22px 28px; line-height:1.6; font-size:14px; }
.help-body h2 { font-size:22px; margin:0 0 12px; }
.help-body h3 { font-size:17px; margin:26px 0 8px; padding-top:10px; border-top:1px solid var(--line); scroll-margin-top:12px; }
.help-body h4 { font-size:15px; margin:18px 0 6px; scroll-margin-top:12px; }
.help-body .help-flash { background:var(--accent-soft, var(--hover)); transition:background 1.5s; }
.help-body table { border-collapse:collapse; width:100%; font-size:13px; }
.help-body th, .help-body td { border:1px solid var(--line); padding:6px 8px; text-align:left; vertical-align:top; }
.help-body th { background:var(--subtle, var(--hover)); }
.help-table { overflow-x:auto; margin:10px 0; }
.help-body code { background:var(--subtle, var(--hover)); padding:1px 5px; border-radius:4px; font-size:12.5px; }
.help-pre { background:var(--subtle, var(--hover)); padding:10px 12px; border-radius:8px; overflow:auto; }
.help-body blockquote { border-left:3px solid var(--accent); margin:10px 0; padding:4px 12px; color:var(--muted); }
.help-img { max-width:100%; border-radius:8px; }
.help-flow { display:flex; flex-wrap:wrap; align-items:stretch; gap:6px; margin:14px 0; }
.hf-step { display:flex; flex-direction:column; justify-content:center; gap:2px; border:1px solid var(--accent-line, var(--line)); background:var(--accent-soft, var(--panel)); border-radius:8px; padding:8px 12px; min-width:120px; max-width:190px; font-size:13px; }
.hf-step span { font-size:12px; color:var(--muted); }
.hf-arrow { display:flex; align-items:center; color:var(--muted); font-size:16px; }
#helpResults { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:4px; }
#helpResults[hidden] { display:none; }
.help-hits-head { font-size:12.5px; color:var(--muted); padding:4px 6px; }
.help-hit { text-align:left; border:none; background:transparent; padding:8px 10px; border-radius:8px; display:flex; flex-wrap:wrap; gap:2px 6px; box-shadow:none; }
.help-hit:hover { background:var(--hover); }
.help-snip { flex-basis:100%; font-size:12.5px; color:var(--muted); }
.help-hit mark { background:color-mix(in srgb, var(--accent) 22%, transparent); color:inherit; border-radius:2px; }
.help-admin { display:grid; grid-template-columns:220px 1fr; gap:16px; align-items:start; }
.hp-fields { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; margin:0 0 10px; }
.hp-fields label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); font-weight:600; }
.hp-panes { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hp-panes textarea { min-height:560px; font-family:ui-monospace, Consolas, monospace; font-size:12.5px; line-height:1.5; }
.hp-preview { max-height:640px; overflow:auto; padding:16px 18px; }
@media (max-width:900px) { .help-wrap, .help-admin, .hp-panes { grid-template-columns:1fr; } .help-side { position:static; max-height:none; } }
@media print { .help-side, .help-tools { display:none; } }

/* approval refusal reasons on the form */
.wf-refusal { margin-top:10px; }
.wf-refusal ul { margin:6px 0 0 18px; padding:0; }
.wf-refusal li { margin:2px 0; }
#toast { cursor:pointer; }

/* approval steps: current step highlighted, later steps dimmed */
.wf-srow.wf-current .wf-sn { background:var(--accent); color:#fff; }
.wf-srow.wf-upcoming { opacity:.72; }
.hist-badge.muted { background:var(--subtle, var(--hover)); color:var(--muted); }
.wf-srow .wf-more { border-bottom:1px dotted currentColor; cursor:help; }
.wf-srow .wf-nobody { color:var(--danger); }

/* provider: "Powered by", About dialog, Provider profile form */
.login-foot .powered { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:6px; font-size:11.5px; color:var(--muted); }
.login-foot .powered img { width:16px; height:16px; }
.app-footer a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
.about-dlg { border:none; border-radius:16px; padding:26px 30px; width:min(440px, 92vw); box-shadow:0 20px 60px rgba(15,23,42,.3); color:var(--ink); background:var(--panel); }
.about-dlg::backdrop { background:rgba(15,23,42,.45); }
.about-dlg .ab-head { display:flex; justify-content:center; margin-bottom:12px; }
.about-dlg .ab-logo { height:44px; max-width:260px; }
.about-dlg .ab-name { text-align:center; font-weight:700; font-size:18px; }
.about-dlg .ab-ver { font-weight:500; font-size:13px; color:var(--muted); }
.about-dlg .ab-tag { text-align:center; color:var(--muted); font-size:13px; margin-bottom:14px; }
.about-dlg .ab-sub { margin-top:14px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.about-dlg .ab-grid { display:grid; gap:6px; margin-top:8px; }
.about-dlg .ab-row { display:flex; justify-content:space-between; gap:12px; font-size:13.5px; }
.about-dlg .ab-row span { color:var(--muted); }
.about-dlg .ab-copy { margin-top:16px; font-size:12px; color:var(--muted); text-align:center; }
.about-dlg .ab-actions { display:flex; justify-content:center; margin-top:16px; }
.help-support { font-size:12.5px; line-height:1.5; border-top:1px solid var(--line); padding-top:10px; }
.pv-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px 16px; }
.pv-f { display:flex; flex-direction:column; gap:4px; font-size:12.5px; }
.pv-f span { font-weight:600; color:var(--muted); }
.pv-f small, .pv-img small { color:var(--muted); font-size:11.5px; display:block; }
.pv-imgs { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:14px; }
.pv-img { display:flex; gap:12px; align-items:flex-start; }
.pv-prev { width:110px; height:64px; border:1px solid var(--line); border-radius:8px; display:flex; align-items:center; justify-content:center; background:var(--panel); flex-shrink:0; }
.pv-prev img { max-width:96px; max-height:48px; }
.pv-imgbtn { display:flex; gap:6px; margin-top:6px; }
.btn-file { display:inline-flex; align-items:center; padding:5px 10px; border:1px solid var(--line); border-radius:6px; cursor:pointer; font-size:12.5px; }

/* product logo where the client has none; provider mark beside "Powered by" */
header .brand .brand-logo.brand-product { height:26px; width:26px; }
.login-brand .login-logo.login-product { height:52px; max-width:240px; }
.app-footer .ft-mark { width:14px; height:14px; vertical-align:-2px; margin-right:5px; }
.login-foot .powered img { width:18px; height:18px; }

/* ---------- my-work cards: coloured by meaning and by the number in them ---------- */
[data-tone="red"] { --mw-c:#dc2626; } [data-tone="amber"] { --mw-c:#d97706; } [data-tone="purple"] { --mw-c:#7c3aed; } [data-tone="green"] { --mw-c:#16a34a; } [data-tone="blue"] { --mw-c:#2563eb; }
.mywork .mw-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.mywork .mw-ico { width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  color:var(--mw-c); background:color-mix(in srgb, var(--mw-c) 12%, transparent); }
.mywork .mw-ico svg { width:17px; height:17px; }
html[data-theme] .mywork .mw-card[data-tone] { border-left:4px solid var(--mw-c); }
html[data-theme] .mywork .mw-card[data-tone].has { background:linear-gradient(180deg, color-mix(in srgb, var(--mw-c) 7%, var(--panel)), var(--panel)); border-color:color-mix(in srgb, var(--mw-c) 35%, var(--line)); border-left-color:var(--mw-c); }
html[data-theme] .mywork .mw-card[data-tone] .mw-num { color:var(--mw-c); }
html[data-theme] .mywork .mw-card[data-tone].zero .mw-num { color:color-mix(in srgb, var(--mw-c) 55%, var(--muted)); }
html[data-theme] .mywork .mw-card[data-tone].warn { box-shadow:0 0 0 1px color-mix(in srgb, var(--mw-c) 30%, transparent), 0 6px 18px color-mix(in srgb, var(--mw-c) 14%, transparent); }
html[data-theme] .mywork .mw-card[data-tone].warn .mw-hint { color:var(--mw-c); font-weight:600; }
html[data-theme] .mywork .mw-card[data-tone].clear .mw-hint { color:var(--mw-c); font-weight:600; }
html[data-theme] .mywork .mw-card[data-tone]:hover { border-color:var(--mw-c); }
html[data-theme] .lp-tile.lp-kpi[data-tone] { border-top:4px solid var(--mw-c); }
html[data-theme] .lp-tile.lp-kpi[data-tone] .mw-num { color:var(--mw-c); }
html[data-theme] .lp-tile.lp-kpi[data-tone].zero .mw-num { color:color-mix(in srgb, var(--mw-c) 55%, var(--muted)); }
html[data-theme] .lp-tile.lp-kpi[data-tone].warn { background:color-mix(in srgb, var(--mw-c) 6%, var(--panel)); }
