/* ═══════════════════════════════════════════════════════════════════════
   MGL PORTAL — THEMES
   ১) থিম-সুইচার UI (সব থিমে একই)
   ২) LexSpace থিম  → html[data-theme="lexspace"]
   ডিফল্ট থিমের জন্য কোনো রুল নেই — আগের css/style.css-ই ডিফল্ট।
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────────── ১) Theme switcher ───────────── */
:root{--thm-acc:#7759f6}
.thm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:34px;height:34px;padding:0 10px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:#fff;cursor:pointer;font-size:12px;font-weight:600;font-family:inherit;line-height:1;transition:background .15s,transform .15s,border-color .15s;flex-shrink:0}
.thm-btn:hover{background:rgba(255,255,255,.22)}
.thm-btn:focus-visible{outline:2px solid var(--thm-acc);outline-offset:2px}
.thm-btn svg{flex-shrink:0}
/* সাইডবারে: পুরো-চওড়া সারি */
#nb-user .thm-side{grid-column:1/-1;width:100%;justify-content:flex-start;height:36px;padding:0 12px;background:#1a2234;border-color:#29344b;color:#d7dce7}
#nb-user .thm-side:hover{background:#222c43}
/* লগইন স্ক্রিনের কোণায় */
.thm-login{position:absolute;top:16px;right:16px;z-index:5;width:40px;height:40px;padding:0;border-radius:50%}
.thm-login .thm-lbl,.thm-float .thm-lbl{display:none}
/* ভাসমান (ফ্যালব্যাক) */
.thm-float{position:fixed;left:14px;bottom:14px;z-index:900;width:42px;height:42px;padding:0;border-radius:50%;background:#fff;color:#27324f;border:1px solid #d9dfec;box-shadow:0 6px 18px rgba(20,30,60,.18)}
.thm-float:hover{background:#f3f6fb}
/* HRM সাইডবার ফুটার */
.thm-hrm{width:100%;margin-bottom:10px;justify-content:flex-start;background:var(--surface,#fff);border-color:var(--border,#e4e1d8);color:var(--ink,#1c2521)}
.thm-hrm:hover{background:var(--brand-color-light,#eef3f1)}
/* মোবাইল টপ-বারে শুধু আইকন */
@media(max-width:900px){
  #nb-user .thm-side{grid-column:auto;width:36px;height:36px;padding:0;justify-content:center}
  #nb-user .thm-side .thm-lbl{display:none}
}

#thm-pop{position:fixed;z-index:6000;width:276px;max-width:calc(100vw - 20px);background:#fff;border:1px solid #e3e8f2;border-radius:18px;box-shadow:0 24px 60px -16px rgba(14,25,60,.35);padding:12px;display:none;color:#27324f;font-family:inherit}
#thm-pop.open{display:block;animation:thmPop .16s ease-out}
@keyframes thmPop{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:none}}
.thm-h{font-size:12.5px;font-weight:700;color:#6b7690;padding:2px 6px 10px}
.thm-list{display:grid;gap:8px}
.thm-opt{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1.5px solid #e6eaf3;border-radius:14px;background:#fff;cursor:pointer;text-align:left;font-family:inherit;color:inherit;transition:border-color .15s,background .15s}
.thm-opt:hover{border-color:#c5d0e6;background:#fafbfe}
.thm-opt.on{border-color:var(--thm-acc);background:color-mix(in srgb,var(--thm-acc) 7%,#fff)}
.thm-opt:focus-visible{outline:2px solid var(--thm-acc);outline-offset:2px}
.thm-sw{display:grid;grid-template-columns:1fr 1fr;gap:3px;width:38px;height:38px;padding:4px;border-radius:11px;background:#f1f3f8;border:1px solid #e3e8f2}
.thm-sw i{display:block;border-radius:4px;border:1px solid rgba(0,0,0,.06)}
.thm-tx b{display:block;font-size:13.5px;font-weight:700;color:#1b2747}
.thm-tx small{display:block;margin-top:2px;font-size:11.5px;color:#7b8599;line-height:1.35}
.thm-ck{width:20px;height:20px;border-radius:50%;background:var(--thm-acc);color:#fff;font-size:12px;font-weight:700;display:none;align-items:center;justify-content:center}
.thm-opt.on .thm-ck{display:flex}

/* ───────────── ২) LexSpace theme ───────────── */
html[data-theme~="lexspace"]{
  --pp-bg:#eef2f8;--pp-panel:#fff;--pp-ink:#0e2159;--pp-muted:#7b8599;--pp-line:#e6eaf3;
  --pp-nav:#fff;--pp-nav-2:var(--lx-soft2);
  --pp-purple:var(--lx-acc);--pp-purple-2:var(--lx-acc-lt);--pp-green:#14b88a;--pp-orange:#f5b400;--pp-red:#ff5f4a;--pp-blue:#22c9f7;
  --pp-shadow:0 1px 2px rgba(20,40,90,.04);
  --thm-acc:var(--lx-acc);
  --lx-acc:#0a7cff;--lx-acc-dk:#0867d6;--lx-acc-lt:#4aa3ff;--lx-acc2:#29d3ff;--lx-soft:#eaf3ff;--lx-soft2:#f1f6ff;--lx-soft-bd:#cfe3ff;--lx-g1:#0a7cff;--lx-g2:#12b5e8;--lx-g3:#f0a800;--lx-g4:#ff6b4a;--lx-g5:#2a4fb8;--lx-g6:#0fa584;--lx-canvas:#d5dbe5;--lx-body:#27324f;--lx-soft:var(--lx-soft);--lx-line:#e6eaf3;--lx-navy:#0e2159;--lx-font:'Plus Jakarta Sans','Hind Siliguri','DM Sans','Segoe UI',sans-serif;
  /* HRM পেজের ভ্যারিয়েবল */
  --brand-color:var(--lx-acc);--brand-color-dark:var(--lx-acc-dk);--brand-color-light:var(--lx-soft);--accent-amber:#f5b400;
  --ink:#1b2747;--ink-soft:#6b7690;--bg:#eef2f8;--surface:#fff;--border:#e6eaf3;
  --danger:#e5484d;--success:#14a37f;--warning:#d99a00;--radius:16px;--shadow:none;--shadow-lg:0 20px 50px -20px rgba(14,33,89,.25);
  background:var(--lx-canvas);
}
html[data-theme~="lexspace"] body{font-family:var(--lx-font);background:var(--lx-canvas);color:var(--lx-body)}
html[data-theme~="lexspace"] ::-webkit-scrollbar-thumb{background:#cfd8e6}
html[data-theme~="lexspace"] input:focus,html[data-theme~="lexspace"] select:focus,html[data-theme~="lexspace"] textarea:focus{outline:2px solid color-mix(in srgb,var(--lx-acc) 25%,transparent)}

/* ── Fonts for headings (বেস CSS Manrope জোর করে বসায়) ── */
html[data-theme~="lexspace"] .sh,html[data-theme~="lexspace"] .dsh-card h3,html[data-theme~="lexspace"] .welcome-title,html[data-theme~="lexspace"] .logo-t1,html[data-theme~="lexspace"] .nav-gh,html[data-theme~="lexspace"] #nav-q,html[data-theme~="lexspace"] .dsh-kpi .n,html[data-theme~="lexspace"] .um-panel-t,html[data-theme~="lexspace"] .um-av,html[data-theme~="lexspace"] #login-screen .ltitle{font-family:var(--lx-font)!important}

/* ── Sidebar ── */
html[data-theme~="lexspace"] .nb{background:#fff;border-right:1px solid #edf0f6}
html[data-theme~="lexspace"] .logo{border-bottom-color:#edf0f6}
html[data-theme~="lexspace"] .logo-ic{background:#fff;border:1px solid #e6eaf3;box-shadow:0 6px 16px color-mix(in srgb,var(--lx-acc) 14%,transparent)}
html[data-theme~="lexspace"] .logo-tx{color:var(--lx-navy)}
html[data-theme~="lexspace"] .logo-t1{color:var(--lx-navy)}
html[data-theme~="lexspace"] .logo-t2{color:#7b8599}
html[data-theme~="lexspace"] .nbtn{color:#5b6684;background:transparent}
html[data-theme~="lexspace"] .nbtn:hover{background:var(--lx-soft2);color:var(--lx-acc)}
html[data-theme~="lexspace"] .nbtn.on{background:var(--lx-soft);color:var(--lx-acc);box-shadow:none;border-bottom:0}
html[data-theme~="lexspace"] #nb-user{border-top-color:#edf0f6}
html[data-theme~="lexspace"] .ubadge{background:#f3f6fb;border:1px solid #e6eaf3;color:#27324f}
html[data-theme~="lexspace"] #nb-user .thm-side{background:#f3f6fb;border-color:#e1e7f2;color:var(--lx-acc)}
html[data-theme~="lexspace"] #nb-user .thm-side:hover{background:var(--lx-soft)}
html[data-theme~="lexspace"] #nb-user .btn:not(.bd):not(.thm-btn){background:#f3f6fb!important;color:#27324f!important;border:1px solid #e1e7f2!important}
html[data-theme~="lexspace"] .nav-gh{color:#5b6684}
html[data-theme~="lexspace"] .nav-gh:hover{background:var(--lx-soft2);color:var(--lx-acc)}
html[data-theme~="lexspace"] .nav-gh .cnt{background:#eef2f9;color:#7b8599}
html[data-theme~="lexspace"] .nav-gh .chev{color:#9aa5bd}
html[data-theme~="lexspace"] .nav-grp.open{background:color-mix(in srgb,var(--gc) 7%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gc) 24%,transparent)}
html[data-theme~="lexspace"] .nav-grp.open>.nav-gh .cnt{background:var(--gc);color:var(--gc-ink,#fff)}
html[data-theme~="lexspace"] .nav-gb .nbtn{color:#44506a}
html[data-theme~="lexspace"] .nav-gb .nbtn:hover{background:color-mix(in srgb,var(--gc) 12%,transparent);color:#0e2159}
html[data-theme~="lexspace"] .nav-gb .nbtn.on{background:var(--gc);color:var(--gc-ink,#fff);box-shadow:none}
/* গ্রুপের রঙ: LexSpace প্যালেট (নীল, সায়ান, হলুদ, কোরাল, নেভি, টিল) */
html[data-theme~="lexspace"] .nav-grp{--gc:var(--lx-g1)!important;--gc-ink:#fff}
html[data-theme~="lexspace"] .nav-grp:nth-child(6n+2){--gc:var(--lx-g2)!important}
html[data-theme~="lexspace"] .nav-grp:nth-child(6n+3){--gc:var(--lx-g3)!important;--gc-ink:#2b2100}
html[data-theme~="lexspace"] .nav-grp:nth-child(6n+4){--gc:var(--lx-g4)!important}
html[data-theme~="lexspace"] .nav-grp:nth-child(6n+5){--gc:var(--lx-g5)!important}
html[data-theme~="lexspace"] .nav-grp:nth-child(6n+6){--gc:var(--lx-g6)!important}
html[data-theme~="lexspace"] #mob-menu .nav-grp{--gc:var(--lx-g1)!important;--gc-ink:#fff}
html[data-theme~="lexspace"] #nav-q{background:#f3f6fb;border:1px solid #e6eaf3;color:#27324f;border-radius:999px}
html[data-theme~="lexspace"] #nav-q::placeholder{color:#9aa5bd}
html[data-theme~="lexspace"] #nav-q:focus{border-color:var(--lx-acc);box-shadow:0 0 0 3px color-mix(in srgb,var(--lx-acc) 15%,transparent)}
html[data-theme~="lexspace"] #nav-search-wrap .sx{color:#9aa5bd}
html[data-theme~="lexspace"] #nav-search-wrap .sx:hover{color:#0e2159}
html[data-theme~="lexspace"] .nav-empty{color:#7b8599}
html[data-theme~="lexspace"] .nav-star{color:#b4bdd0}
html[data-theme~="lexspace"] #side-toggle{background:#fff;border:1px solid #e1e7f2;color:var(--lx-acc);box-shadow:0 4px 14px rgba(14,33,89,.08)}
html[data-theme~="lexspace"] #side-toggle:hover{background:var(--lx-acc);border-color:var(--lx-acc);color:#fff}
html[data-theme~="lexspace"] #portal.sidebar-collapsed #side-toggle{background:var(--lx-acc);border-color:var(--lx-acc);color:#fff}

html[data-theme~="lexspace"] #main-nav>div[style*="border-top"]{border-top-color:#edf0f6!important}

/* ── Welcome bar / top area ── */
html[data-theme~="lexspace"] .welcome-title{color:var(--lx-navy);font-weight:700;font-size:26px}
html[data-theme~="lexspace"] .welcome-sub{color:#7b8599}
html[data-theme~="lexspace"] .bc{color:#7b8599}
html[data-theme~="lexspace"] #bday-bell{border-color:#e1e7f2;background:#fff;box-shadow:none}
html[data-theme~="lexspace"] #bday-bell:hover{background:var(--lx-soft2)}

/* ── Cards / headers / panels ── */
html[data-theme~="lexspace"] .sh{color:var(--lx-navy)!important;border-radius:20px!important;border-color:var(--lx-line)!important;box-shadow:none!important}
html[data-theme~="lexspace"] .dsh-card{border:1px solid var(--lx-line)!important;border-radius:22px!important;box-shadow:none!important;padding:22px!important}
html[data-theme~="lexspace"] .dsh-card h3{color:var(--lx-navy)!important;font-weight:700!important}
html[data-theme~="lexspace"] .dsh-sub{color:#7b8599!important}
html[data-theme~="lexspace"] .dsh-donut-inner,html[data-theme~="lexspace"] .kpi-mmr-boxes{background:#f6f9ff!important;border-color:var(--lx-line)!important;border-radius:16px!important}
html[data-theme~="lexspace"] .dsh-bar-track{background:#edf2fa!important}
html[data-theme~="lexspace"] .dsh-bar-fill{background:linear-gradient(90deg,var(--lx-acc),var(--lx-acc2))}
html[data-theme~="lexspace"] .kpi-mp-tile{border-radius:16px!important;border-left-color:var(--lx-acc)!important}
html[data-theme~="lexspace"] .dsh-spinner{border-color:#dbeaff!important;border-top-color:var(--lx-acc)!important}
html[data-theme~="lexspace"] .dsh-jump-fab{background:linear-gradient(135deg,var(--lx-acc),var(--lx-acc2))!important;box-shadow:0 9px 25px color-mix(in srgb,var(--lx-acc) 35%,transparent)!important}
html[data-theme~="lexspace"] .dsh-kpi{border-radius:20px!important;box-shadow:0 10px 24px -10px rgba(10,60,160,.35)!important}
html[data-theme~="lexspace"] .dsh-k-total{background:linear-gradient(135deg,var(--lx-acc),var(--lx-acc-lt))!important}
html[data-theme~="lexspace"] .dsh-k-male{background:linear-gradient(135deg,#12b5e8,#4fd6ff)!important}
html[data-theme~="lexspace"] .dsh-k-female{background:linear-gradient(135deg,#ff6b4a,#ff9477)!important}
html[data-theme~="lexspace"] .dsh-k-staff{background:linear-gradient(135deg,#0fa584,#2fcfa6)!important}
html[data-theme~="lexspace"] .dsh-k-worker{background:linear-gradient(135deg,#e69a00,#ffbb2e)!important}
html[data-theme~="lexspace"] .dsh-k-presentday{background:linear-gradient(135deg,#1b4fd8,#4a7cf0)!important}
html[data-theme~="lexspace"] .dsh-k-sewop{background:linear-gradient(135deg,#3a9bff,#7cc4ff)!important}
html[data-theme~="lexspace"] .dsh-k-qi{background:linear-gradient(135deg,#f0544f,#ff8a80)!important}
html[data-theme~="lexspace"] .dsh-k-fin{background:linear-gradient(135deg,#5b6b8f,#8795b5)!important}
html[data-theme~="lexspace"] .dsh-k-cut{background:linear-gradient(135deg,#1f2f63,#3f5090)!important}

/* ── Controls ── */
html[data-theme~="lexspace"] .fi,html[data-theme~="lexspace"] select.fi{border:1px solid #e3e9f4;border-radius:12px;background:#fff;color:#27324f}
html[data-theme~="lexspace"] .fi:hover{border-color:#c9d6ee}
html[data-theme~="lexspace"] select.fi{border-radius:999px;padding-left:16px}
html[data-theme~="lexspace"] .fg label{color:#5b6684}
html[data-theme~="lexspace"] .btn{border-radius:12px}
html[data-theme~="lexspace"] .bp,html[data-theme~="lexspace"] .bi{background:var(--lx-acc);color:#fff}
html[data-theme~="lexspace"] .bp:hover:not(:disabled),html[data-theme~="lexspace"] .bi:hover:not(:disabled){background:var(--lx-acc-dk)}
html[data-theme~="lexspace"] .bs{background:#14b88a}
html[data-theme~="lexspace"] .bd{background:#ff5f4a}
html[data-theme~="lexspace"] .bw{background:#f5b400;color:#2b2100}
html[data-theme~="lexspace"] .bx{background:#6b7690}
html[data-theme~="lexspace"] .btn:hover:not(:disabled){box-shadow:0 8px 18px -6px rgba(10,60,160,.28)}
html[data-theme~="lexspace"] .itab{background:#edf2fa;color:#5b6684;border-radius:12px 12px 0 0}
html[data-theme~="lexspace"] .itab.on{background:var(--lx-acc);color:#fff}
html[data-theme~="lexspace"] .ipanel,html[data-theme~="lexspace"] .nc,html[data-theme~="lexspace"] .di-stat{border-color:var(--lx-line);border-radius:18px;box-shadow:none}
html[data-theme~="lexspace"] .di-drop{border-color:#c9d6ee;background:#f9fbff}
html[data-theme~="lexspace"] .di-drop:hover{border-color:var(--lx-acc);background:var(--lx-soft2)}
html[data-theme~="lexspace"] .di-bar{background:linear-gradient(90deg,var(--lx-acc),var(--lx-acc2))}
html[data-theme~="lexspace"] .di-stat b{color:var(--lx-acc)}
html[data-theme~="lexspace"] .pb.on{border-color:var(--lx-acc);background:var(--lx-soft);color:var(--lx-acc-dk)}
html[data-theme~="lexspace"] .msel-ok{background:var(--lx-acc)}
html[data-theme~="lexspace"] .msel-item:hover{background:var(--lx-soft2)}
html[data-theme~="lexspace"] table{border-color:var(--lx-line)}
html[data-theme~="lexspace"] th{background:#f4f8ff;color:#5c6b8a}
html[data-theme~="lexspace"] td,html[data-theme~="lexspace"] th{border-bottom-color:var(--lx-line)}
html[data-theme~="lexspace"] tbody tr:hover td{background:#f5f9ff}
html[data-theme~="lexspace"] .modal-bg{background:rgba(14,25,60,.5)}
html[data-theme~="lexspace"] .modal-box{border-radius:22px}

/* ── Admin → User management ── */
html[data-theme~="lexspace"] .um-add-ic{background:var(--lx-soft)}
html[data-theme~="lexspace"] .um-card.open{border-color:var(--lx-soft-bd)}
html[data-theme~="lexspace"] .um-head:hover{background:#f6faff}
html[data-theme~="lexspace"] .um-s.e{background:var(--lx-soft);color:var(--lx-acc-dk)}
html[data-theme~="lexspace"] .um-s.v{background:#e3f8ff;color:#0a8fb8}
html[data-theme~="lexspace"] .um-gact a{color:var(--lx-acc)}
html[data-theme~="lexspace"] .um-chip.t-entry.on{background:var(--lx-soft);border-color:var(--lx-acc);color:var(--lx-acc-dk)}
html[data-theme~="lexspace"] .um-chip.t-view.on{background:#e3f8ff;border-color:#22c9f7;color:#0a7d9e}
html[data-theme~="lexspace"] .um-chip.t-view.on .um-tick{background:#22c9f7;border-color:#22c9f7}

/* ── Login ── */
html[data-theme~="lexspace"] #login-screen{
  --lg-ink:#0e2159;--lg-muted:#7b8599;--lg-line:#e3e9f4;--lg-violet:var(--lx-acc);--lg-violet-2:#5eb0ff;--lg-blue:var(--lx-acc);--lg-navy:#d5dbe5;
  background:radial-gradient(circle at 14% 8%,rgba(41,211,255,.30),transparent 34%),radial-gradient(circle at 90% 90%,color-mix(in srgb,var(--lx-acc) 22%,transparent),transparent 36%),#d5dbe5;
}
html[data-theme~="lexspace"] #login-screen .lbg .blob{opacity:.32}
html[data-theme~="lexspace"] #login-screen .lbg .b1{background:radial-gradient(circle at 40% 40%,var(--lx-acc2),transparent 65%)}
html[data-theme~="lexspace"] #login-screen .lbg .b2{background:radial-gradient(circle at 50% 50%,var(--lx-acc),transparent 65%)}
html[data-theme~="lexspace"] #login-screen .lbg .b3{opacity:.2;background:radial-gradient(circle at 50% 50%,#ffd84d,transparent 65%)}
html[data-theme~="lexspace"] #login-screen .lbg .grid{background-image:radial-gradient(rgba(14,33,89,.12) 1px,transparent 1.2px)}
html[data-theme~="lexspace"] #lgThreadGrad stop:nth-child(1),html[data-theme~="lexspace"] #lgStitchGrad stop:nth-child(1){stop-color:var(--lx-acc2)}
html[data-theme~="lexspace"] #lgThreadGrad stop:nth-child(2),html[data-theme~="lexspace"] #lgStitchGrad stop:nth-child(2){stop-color:var(--lx-acc-lt)}
html[data-theme~="lexspace"] #lgThreadGrad stop:nth-child(3),html[data-theme~="lexspace"] #lgStitchGrad stop:nth-child(3){stop-color:var(--lx-acc)}
html[data-theme~="lexspace"] #login-screen .lcard{background:#fff;border-color:#fff;box-shadow:0 30px 70px -25px rgba(14,33,89,.38)}
html[data-theme~="lexspace"] #login-screen .llogo{border-color:#e6eaf3;box-shadow:0 14px 30px -12px color-mix(in srgb,var(--lx-acc) 35%,transparent),0 2px 6px rgba(20,27,45,.05)}
html[data-theme~="lexspace"] #login-screen .lsub::before,html[data-theme~="lexspace"] #login-screen .lsub::after{border-top-color:#c9d4ea}
html[data-theme~="lexspace"] #login-screen .fg label{color:#44506a}
html[data-theme~="lexspace"] #login-screen .fi{background:#f6f9ff}
html[data-theme~="lexspace"] #login-screen .fi:focus{background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--lx-acc) 16%,transparent)}
html[data-theme~="lexspace"] #login-screen .eye:hover{background:color-mix(in srgb,var(--lx-acc) 8%,transparent)}
html[data-theme~="lexspace"] #login-screen .btn.bfull{background:linear-gradient(115deg,var(--lx-acc) 0%,#2a9bff 55%,var(--lx-acc2) 100%);background-size:160% 100%;box-shadow:0 14px 28px -10px color-mix(in srgb,var(--lx-acc) 60%,transparent),0 1px 0 rgba(255,255,255,.25) inset}
html[data-theme~="lexspace"] #login-screen .btn.bfull:hover:not(:disabled){box-shadow:0 20px 34px -12px color-mix(in srgb,var(--lx-acc) 70%,transparent),0 1px 0 rgba(255,255,255,.25) inset}
html[data-theme~="lexspace"] #login-screen .btn.bfull:focus-visible{outline-color:color-mix(in srgb,var(--lx-acc) 45%,transparent)}
html[data-theme~="lexspace"] #login-screen .llink:hover{color:var(--lx-acc-dk)}
html[data-theme~="lexspace"] .thm-login{background:#fff;color:var(--lx-acc);border-color:#e1e7f2;box-shadow:0 6px 16px rgba(14,33,89,.14)}
html[data-theme~="lexspace"] .thm-login:hover{background:var(--lx-soft2)}

/* ── HRM pages (hrm/*.html) ── */
html[data-theme~="lexspace"] .sidebar{background:#fff;border-right-color:#edf0f6}
html[data-theme~="lexspace"] .app-brand-row .brand-name,html[data-theme~="lexspace"] .page-header h1,html[data-theme~="lexspace"] .page-header h2{color:var(--lx-navy)}
html[data-theme~="lexspace"] .nav-link.active{background:var(--lx-soft);color:var(--lx-acc)}
html[data-theme~="lexspace"] .nav-link:hover{background:var(--lx-soft2);color:var(--lx-acc)}
html[data-theme~="lexspace"] .card,html[data-theme~="lexspace"] .kpi-card,html[data-theme~="lexspace"] .table-wrap{border-radius:20px}
html[data-theme~="lexspace"] .btn-primary{background:var(--lx-acc)}

/* ── Desktop: সাদা রাউন্ডেড ফ্রেম + ধূসর ক্যানভাস (ছবির মতো) ── */
@media(min-width:901px){
  html[data-theme~="lexspace"] #portal{margin:20px;border-radius:32px;background:#fff;min-height:calc(100vh - 40px);box-shadow:0 30px 70px -20px rgba(40,55,90,.28)}
  html[data-theme~="lexspace"] .nb{top:20px;left:20px;bottom:auto;height:calc(100vh - 40px);border-radius:32px 0 0 32px}
  html[data-theme~="lexspace"] .wrap{min-height:calc(100vh - 40px);padding-top:28px}
  html[data-theme~="lexspace"] #side-toggle{top:132px;left:42px}
  html[data-theme~="lexspace"] #portal.sidebar-collapsed #side-toggle{left:36px;top:38px}
  html[data-theme~="lexspace"] .card:has(#mpb-report){width:auto;max-width:none;margin-left:0;margin-right:0}
}

/* ── Mobile / tablet ── */
@media(max-width:900px){
  html[data-theme~="lexspace"] .nb{background:#fff;border-bottom:1px solid #e6eaf3}
  html[data-theme~="lexspace"] #mob-menu{background:#fff;border-top:1px solid #e6eaf3}
  html[data-theme~="lexspace"] .ham{background:var(--lx-soft);color:var(--lx-acc);border:1px solid var(--lx-soft-bd)}
  html[data-theme~="lexspace"] #mob-menu .nbtn{color:#44506a}
}

@media print{
  html[data-theme~="lexspace"] #portal{margin:0;border-radius:0;box-shadow:none}
  html[data-theme~="lexspace"] body{background:#fff}
}
