:root{--wm-ink:#172033;--wm-muted:#667085;--wm-primary:#2563eb;--wm-primary-dark:#1d4ed8;--wm-bg:#f5f7fb;--wm-card:#fff;--wm-border:#e8ecf3;--wm-success:#16a34a;--wm-warning:#d97706;--wm-danger:#dc2626;--wm-radius:18px;--wm-shadow:0 12px 35px rgba(15,23,42,.08)}
*{box-sizing:border-box}body.wm-modern{margin:0;background:var(--wm-bg);color:var(--wm-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.wm-login{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:#fff}.wm-login-visual{position:relative;overflow:hidden;padding:56px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#0f172a 0%,#172554 52%,#2563eb 100%);color:#fff}.wm-login-visual:after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-180px;top:-170px;background:rgba(255,255,255,.08)}.wm-brand{position:relative;z-index:2;display:flex;align-items:center;gap:14px}.wm-brand img{width:54px;height:54px;object-fit:contain;border-radius:14px;background:#fff;padding:5px}.wm-brand strong{font-size:22px;letter-spacing:.2px}.wm-hero{position:relative;z-index:2;max-width:620px}.wm-hero h1{font-size:52px;line-height:1.05;margin:0 0 22px;font-weight:750;letter-spacing:-1.8px}.wm-hero p{font-size:18px;line-height:1.65;color:rgba(255,255,255,.76);max-width:520px}.wm-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.wm-pill{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.09);padding:9px 13px;border-radius:999px;font-size:13px}.wm-login-panel{display:flex;align-items:center;justify-content:center;padding:36px;background:#fff}.wm-login-card{width:min(480px,100%);padding:36px}.wm-login-card .eyebrow{font-size:12px;font-weight:700;letter-spacing:1.3px;color:var(--wm-primary);text-transform:uppercase}.wm-login-card h2{font-size:34px;margin:9px 0 7px;letter-spacing:-1px}.wm-login-card .sub{color:var(--wm-muted);margin-bottom:28px}.wm-field{margin-bottom:16px}.wm-field label{font-size:13px;font-weight:650;color:#344054;margin-bottom:7px;display:block}.wm-input{width:100%;height:48px;border:1px solid #dfe4ec;border-radius:12px;padding:0 14px;background:#fff;outline:none;transition:.2s}.wm-input:focus{border-color:#93b4ff;box-shadow:0 0 0 4px rgba(37,99,235,.1)}.wm-login-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wm-btn{height:50px;border:0;border-radius:12px;background:var(--wm-primary);color:#fff;font-weight:700;width:100%;cursor:pointer;box-shadow:0 8px 20px rgba(37,99,235,.2)}.wm-btn:hover{background:var(--wm-primary-dark)}.wm-check{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--wm-muted);margin:4px 0 20px}.wm-check label{display:flex;gap:8px;align-items:center;margin:0}.wm-link{color:var(--wm-primary);text-decoration:none}.wm-footer-note{text-align:center;color:#98a2b3;font-size:12px;margin-top:20px}
.wm-app{min-height:100vh;display:block}.wm-side{width:250px;background:#101828;color:#fff;position:fixed;left:0;top:0;bottom:0;z-index:20;padding:22px 14px;overflow-y:auto}.wm-side-brand{display:flex;align-items:center;gap:10px;padding:4px 10px 25px}.wm-side-brand img{width:40px;height:40px;border-radius:11px;background:#fff;padding:4px;object-fit:contain}.wm-side-brand strong{font-size:17px}.wm-side-section{font-size:10px;letter-spacing:1.2px;color:#98a2b3;padding:18px 11px 7px;text-transform:uppercase}.wm-nav a{display:flex;align-items:center;gap:12px;color:#c8d0dc;text-decoration:none;padding:11px 12px;border-radius:11px;margin:3px 0;font-size:14px}.wm-nav a:hover,.wm-nav a.active{background:rgba(255,255,255,.09);color:#fff}.wm-nav i{width:18px;text-align:center}.wm-main{margin-left:250px;width:auto;min-width:0}.wm-topbar{height:72px;background:#fff;border-bottom:1px solid var(--wm-border);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:10}.wm-top-title{font-weight:700;font-size:17px}.wm-user{display:flex;align-items:center;gap:10px}.wm-avatar{width:38px;height:38px;border-radius:50%;background:#e8efff;color:var(--wm-primary);display:grid;place-items:center;font-weight:800}.wm-user small{display:block;color:var(--wm-muted)}.wm-content{padding:30px;max-width:1600px;margin:auto}.wm-page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:25px}.wm-page-head h1{font-size:30px;letter-spacing:-.8px;margin:0 0 6px}.wm-page-head p{margin:0;color:var(--wm-muted)}.wm-actions{display:flex;gap:10px}.wm-action{display:inline-flex;align-items:center;gap:8px;text-decoration:none;padding:11px 15px;border-radius:11px;font-size:13px;font-weight:700;border:1px solid var(--wm-border);background:#fff;color:var(--wm-ink)}.wm-action.primary{background:var(--wm-primary);color:#fff;border-color:var(--wm-primary)}.wm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.wm-card{background:var(--wm-card);border:1px solid var(--wm-border);border-radius:var(--wm-radius);box-shadow:var(--wm-shadow)}.wm-kpi{padding:20px}.wm-kpi-top{display:flex;justify-content:space-between;align-items:center}.wm-kpi-icon{width:42px;height:42px;border-radius:12px;background:#eef4ff;color:var(--wm-primary);display:grid;place-items:center}.wm-kpi-label{font-size:13px;color:var(--wm-muted);margin-top:16px}.wm-kpi-value{font-size:29px;font-weight:780;letter-spacing:-.8px;margin-top:3px}.wm-kpi-note{font-size:12px;color:#98a2b3;margin-top:5px}.wm-grid-2{display:grid;grid-template-columns:1.3fr .7fr;gap:18px;margin-top:18px}.wm-panel{padding:20px}.wm-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.wm-panel-head h3{font-size:16px;margin:0}.wm-panel-head span{font-size:12px;color:var(--wm-muted)}.wm-status{display:flex;align-items:center;gap:10px;margin:12px 0}.wm-status-name{width:115px;font-size:13px;color:#475467}.wm-bar{height:9px;background:#edf0f5;border-radius:99px;flex:1;overflow:hidden}.wm-bar i{display:block;height:100%;background:var(--wm-primary);border-radius:99px}.wm-status b{width:35px;text-align:right;font-size:12px}.wm-table{width:100%;border-collapse:collapse}.wm-table th,.wm-table td{text-align:left;padding:12px 8px;border-bottom:1px solid #eef1f5;font-size:13px}.wm-table th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#98a2b3}.wm-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;background:#eef4ff;color:#315fbf}.wm-empty{padding:30px;text-align:center;color:var(--wm-muted)}
@media(max-width:1050px){.wm-login{grid-template-columns:1fr}.wm-login-visual{display:none}.wm-kpis{grid-template-columns:repeat(2,1fr)}.wm-grid-2{grid-template-columns:1fr}}@media(max-width:720px){.wm-side{width:70px;padding:15px 8px}.wm-side-brand strong,.wm-side-section,.wm-nav span,.wm-side-brand img{display:none}.wm-side-brand{justify-content:center}.wm-nav a{justify-content:center}.wm-main{margin-left:70px;width:auto}.wm-topbar{padding:0 15px}.wm-content{padding:18px}.wm-page-head{align-items:flex-start;flex-direction:column}.wm-actions{width:100%}.wm-action.primary{flex:1;justify-content:center}.wm-kpis{grid-template-columns:1fr}.wm-login-panel{padding:15px}.wm-login-card{padding:20px}}

/* ===== WhiteMan 2.0 shared navigation for legacy pages ===== */
body.wm-legacy-page{background:var(--wm-bg);overflow-x:hidden}.wm-legacy-page .wm-app{min-height:100vh}.wm-legacy-page .wm-side{width:250px;background:#101828;color:#fff;position:fixed;left:0;top:0;bottom:0;z-index:1100;padding:18px 12px 14px;overflow-y:auto;overflow-x:hidden;border:0}.wm-legacy-page .wm-side::-webkit-scrollbar{width:5px}.wm-legacy-page .wm-side::-webkit-scrollbar-thumb{background:#344054;border-radius:20px}.wm-brand-link{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.wm-brand-link:hover{color:#fff;text-decoration:none}.wm-side-brand{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 17px;border-bottom:1px solid rgba(255,255,255,.08)}.wm-side-brand img{width:42px;height:42px;object-fit:contain;border-radius:12px;background:#fff;padding:4px}.wm-brand-link span{display:flex;flex-direction:column}.wm-brand-link strong{font-size:17px;letter-spacing:.2px}.wm-brand-link small{font-size:9px;color:#98a2b3;margin-top:2px}.wm-side-close{display:none;background:none;border:0;color:#98a2b3}.wm-workspace{padding:12px 4px 6px}.wm-outlet-chip{display:flex;gap:10px;align-items:center;padding:10px;border-radius:12px;background:rgba(255,255,255,.055)}.wm-outlet-chip b{display:block;font-size:13px;color:#fff}.wm-outlet-chip small{display:block;font-size:10px;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px;margin-top:2px}.wm-status-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12);flex:none}.wm-side-section{font-size:10px;letter-spacing:1.2px;color:#98a2b3;padding:17px 10px 7px;text-transform:uppercase;font-weight:700}.wm-nav{padding-bottom:90px}.wm-nav-link,.wm-nav-parent{width:100%;display:flex;align-items:center;gap:11px;color:#c8d0dc;text-decoration:none;border:0;background:transparent;padding:10px 11px;border-radius:10px;margin:2px 0;font-size:13px;text-align:left;cursor:pointer}.wm-nav-link i,.wm-nav-parent span>i{width:18px;text-align:center;color:#98a2b3}.wm-nav-link:hover,.wm-nav-parent:hover{background:rgba(255,255,255,.07);color:#fff;text-decoration:none}.wm-nav-link:hover i,.wm-nav-parent:hover span>i{color:#fff}.wm-nav-link.active{background:#fff;color:#1747c7;font-weight:700}.wm-nav-link.active i{color:#2563eb}.wm-nav-link em{font-style:normal;font-size:9px;margin-left:auto;color:#9db8ff;background:rgba(37,99,235,.18);padding:3px 6px;border-radius:99px}.wm-nav-group.open>.wm-nav-parent{background:rgba(255,255,255,.06);color:#fff}.wm-nav-parent{justify-content:space-between}.wm-nav-parent span{display:flex;align-items:center;gap:11px}.wm-nav-parent>i{font-size:9px;color:#667085;transition:transform .2s}.wm-nav-group.open .wm-nav-parent>i{transform:rotate(180deg)}.wm-nav-children{display:none;padding:2px 0 5px 39px}.wm-nav-group.open .wm-nav-children{display:block}.wm-nav-children a{display:flex;align-items:center;gap:8px;color:#98a2b3;text-decoration:none;padding:7px 8px;border-radius:8px;font-size:12px}.wm-nav-children a:hover{background:rgba(255,255,255,.05);color:#fff}.wm-nav-children i{width:14px;text-align:center}.wm-side-footer{position:sticky;bottom:0;background:#101828;padding:9px 4px 0;border-top:1px solid rgba(255,255,255,.07)}.wm-logout{display:flex;align-items:center;gap:10px;color:#fda4af;text-decoration:none;padding:9px 10px;border-radius:9px;font-size:13px}.wm-logout:hover{background:rgba(220,38,38,.1);color:#fecdd3;text-decoration:none}.wm-side-footer small{display:block;color:#667085;font-size:9px;padding:7px 10px 0}.wm-legacy-page .wm-main{margin-left:250px;min-height:100vh;width:auto}.wm-legacy-page .wm-topbar{height:72px;background:#fff;border-bottom:1px solid var(--wm-border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:1000;box-shadow:0 1px 0 rgba(16,24,40,.02)}.wm-top-left,.wm-top-right{display:flex;align-items:center}.wm-top-left{gap:14px}.wm-menu-toggle{width:38px;height:38px;border:1px solid var(--wm-border);background:#fff;color:var(--wm-ink);border-radius:10px;display:grid;place-items:center;cursor:pointer}.wm-menu-toggle:hover{background:#f8fafc}.wm-page-context strong{display:block;font-size:15px;color:var(--wm-ink)}.wm-page-context span{display:block;font-size:11px;color:var(--wm-muted);margin-top:2px}.wm-top-right{gap:10px}.wm-top-action{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:10px;background:#eef4ff;color:#2156d8;border:1px solid #dbe7ff;text-decoration:none;font-size:12px;font-weight:700}.wm-top-action:hover{background:#e3edff;color:#1747c7;text-decoration:none}.wm-top-icon{position:relative;width:38px;height:38px;border:1px solid var(--wm-border);background:#fff;border-radius:10px;color:#475467}.wm-top-icon b{position:absolute;right:-3px;top:-4px;background:#ef4444;color:#fff;font-size:8px;min-width:15px;height:15px;border-radius:99px;display:grid;place-items:center}.wm-user-menu{position:relative}.wm-user-trigger{border:0;background:transparent;display:flex;align-items:center;gap:9px;padding:4px 2px;cursor:pointer}.wm-user-trigger img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #eef2f7}.wm-user-trigger span{text-align:left}.wm-user-trigger strong{display:block;font-size:12px;color:var(--wm-ink)}.wm-user-trigger small{display:block;font-size:10px;color:var(--wm-muted);margin-top:1px}.wm-user-trigger>i{font-size:9px;color:#98a2b3}.wm-user-dropdown{display:none;position:absolute;right:0;top:48px;width:220px;background:#fff;border:1px solid var(--wm-border);border-radius:13px;box-shadow:0 15px 35px rgba(15,23,42,.12);padding:8px;z-index:1200}.wm-user-dropdown.show{display:block}.wm-user-dropdown-head{padding:9px 10px 11px;border-bottom:1px solid #eef1f5;margin-bottom:5px}.wm-user-dropdown-head b{display:block;font-size:13px}.wm-user-dropdown-head small{display:block;color:var(--wm-muted);font-size:10px;margin-top:2px}.wm-user-dropdown a{display:flex;gap:9px;align-items:center;color:#344054;text-decoration:none;padding:9px 10px;border-radius:8px;font-size:12px}.wm-user-dropdown a:hover{background:#f8fafc}.wm-legacy-content{min-height:calc(100vh - 72px);background:var(--wm-bg);padding:0}.wm-mobile-backdrop{display:none}
/* neutralize legacy Sufee geometry without changing its components */
.wm-legacy-page #left-panel{z-index:1100}.wm-legacy-page #right-panel{margin-left:250px!important}.wm-legacy-page .content{padding-top:0}.wm-legacy-page .breadcrumbs{margin-top:0}.wm-legacy-page .navbar{min-height:0}.wm-legacy-page .header-menu,.wm-legacy-page .header{margin:0!important}
@media(max-width:900px){.wm-legacy-page .wm-side{transform:translateX(-100%);transition:transform .22s ease;box-shadow:15px 0 35px rgba(15,23,42,.18)}.wm-legacy-page .wm-side.mobile-open{transform:translateX(0)}.wm-legacy-page .wm-main,.wm-legacy-page #right-panel{margin-left:0!important}.wm-mobile-backdrop.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:1050}.wm-side-close{display:block}.wm-topbar{padding:0 15px!important}.wm-top-action span,.wm-user-trigger span,.wm-user-trigger>i{display:none}.wm-page-context span{display:none}.wm-top-right{gap:5px}}
@media(max-width:600px){.wm-top-action{width:38px;height:38px;padding:0;justify-content:center}.wm-top-action span{display:none}.wm-page-context strong{font-size:13px}.wm-user-trigger img{width:34px;height:34px}.wm-legacy-content{overflow-x:hidden}.wm-legacy-page .wm-side{width:275px}}

/* Shared WhiteMan 2.0 navigation: flat menu, identical across dashboard and legacy pages. */
.wm-legacy-page .wm-nav-group{display:block!important;margin:0!important;padding:0!important;}
.wm-legacy-page .wm-nav-parent,.wm-legacy-page .wm-nav-children{display:none!important;}
.wm-legacy-page .wm-nav-link{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;box-sizing:border-box!important;}
.wm-legacy-page .wm-nav-link i{width:18px!important;min-width:18px!important;text-align:center!important;}
.wm-legacy-page .wm-nav-link em{margin-left:auto!important;}
.wm-legacy-page .wm-nav-logout{color:#fda4af!important;}
.wm-legacy-page .wm-nav-logout:hover{color:#fecdd3!important;background:rgba(220,38,38,.10)!important;}

/* WhiteMan 2.0 FINAL shared-shell geometry fix
   Legacy Sufee style.css declares #right-panel/.right-panel as display:table-cell.
   Because the modern sidebar is fixed, that legacy table-cell geometry causes the
   content/header to render underneath the sidebar. Force the modern shell back to
   normal block layout. */
html body.wm-legacy-page,
html body.wm-legacy-page .wm-app {
  min-width: 0 !important;
  width: 100% !important;
}

html body.wm-legacy-page #right-panel.wm-main,
html body.wm-legacy-page .right-panel.wm-main {
  display: block !important;
  position: relative !important;
  vertical-align: top !important;
  float: none !important;
  margin-left: 250px !important;
  width: calc(100% - 250px) !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

html body.wm-legacy-page #header.wm-topbar,
html body.wm-legacy-page header.wm-topbar {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  float: none !important;
}

html body.wm-legacy-page .wm-legacy-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-x: visible !important;
}

/* Do not allow legacy Sufee positioning to pull page content over the sidebar. */
html body.wm-legacy-page .wm-legacy-content > .content,
html body.wm-legacy-page .wm-legacy-content .content {
  margin-left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Sidebar is its own layer and never participates in document/table layout. */
html body.wm-legacy-page #left-panel.wm-side,
html body.wm-legacy-page aside.wm-side {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 250px !important;
  height: 100vh !important;
  z-index: 1100 !important;
  box-sizing: border-box !important;
}

html body.wm-legacy-page #left-panel.wm-side .wm-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 12px !important;
}

html body.wm-legacy-page #left-panel.wm-side .wm-side-footer {
  position: relative !important;
  flex: 0 0 auto !important;
  bottom: auto !important;
}

@media (max-width: 900px) {
  html body.wm-legacy-page #right-panel.wm-main,
  html body.wm-legacy-page .right-panel.wm-main {
    display: block !important;
    margin-left: 0 !important;
    width: 100% !important;
  }
  html body.wm-legacy-page #left-panel.wm-side,
  html body.wm-legacy-page aside.wm-side {
    width: 275px !important;
  }
}
