/* ============================================================
   SEEMONZ GLOBAL SHELL v0.30
   Canonical reference: 01. Sidebars(1).jpg
   Scope: shared sidebar + topbar only. Page content is intentionally untouched.
   ============================================================ */
:root{
  --sz-deep-aubergine:#252034;
  --sz-iris:#7041E6;
  --sz-green:#008F78;
  --sz-red:#E34446;
  --sz-saffron:#D99112;
  --sz-teal:#147EAD;
  --sz-workspace:#F3F3F5;
  --sz-white:#FFFFFF;
  --sz-shell-nav:#0d0c16;
  --sz-shell-nav-2:#151321;
  --sz-shell-nav-line:#252235;
  --sz-shell-text:#f4f2fb;
  --sz-shell-muted:#9b96ad;
  --sz-shell-purple:#b8a1ff;
  --sidebar-w:294px;
  --sidebar-collapsed:78px;
  --topbar-h:76px;
}

/* ---------- Sidebar ---------- */
.shell-v030-sidebar{
  width:var(--sidebar-w);
  padding:0 18px 14px;
  background:
    radial-gradient(circle at 25% -10%,rgba(112,65,230,.12),transparent 29%),
    linear-gradient(180deg,#0e0d18 0%,#0b0a13 100%);
  border-right:1px solid rgba(151,132,214,.12);
  box-shadow:inset -1px 0 0 rgba(255,255,255,.015);
  overflow:hidden;
}
.shell-brand-block{
  height:78px;
  padding:11px 0 11px 2px;
  border-bottom:1px solid var(--sz-shell-nav-line);
  gap:10px;
}
.shell-brand-block .brand-logo{display:flex;align-items:center;min-width:0;flex:1;height:55px;overflow:hidden}
.shell-brand-block .brand-logo img{width:202px;max-height:56px;object-fit:contain;object-position:left center}
.shell-collapse-button{
  width:30px;height:34px;margin-left:auto;border-radius:8px;
  border:1px solid #39344f;background:#171522;color:#bbb1da;
  box-shadow:0 0 0 3px rgba(112,65,230,.04),inset 0 0 12px rgba(112,65,230,.07);
}
.shell-collapse-button:hover{background:#201c31;border-color:#5b4d83;color:#fff}
.shell-side-nav{
  padding:0 0 14px;
  overflow-y:auto;overflow-x:hidden;
  scrollbar-width:thin;scrollbar-color:#302a45 transparent;
}
.shell-nav-section{padding:0;border-bottom:1px solid var(--sz-shell-nav-line)}
.shell-nav-section:last-child{border-bottom:0}
.shell-nav-heading{
  margin:0;padding:13px 4px 6px;
  color:#8d86a6;font-size:9px;font-weight:760;letter-spacing:.17em;line-height:1;
}
.shell-nav-items{padding:0 0 8px}
.shell-nav-link,.shell-nav-summary{
  min-height:36px;margin:0 0 1px;padding:6px 7px;
  display:flex;align-items:center;gap:12px;
  border-radius:8px;color:#e4e0ee;background:transparent;
  font-size:13px;font-weight:520;line-height:1.1;
  text-decoration:none;cursor:pointer;list-style:none;
  transition:background .14s ease,color .14s ease,box-shadow .14s ease;
}
.shell-nav-summary::-webkit-details-marker{display:none}
.shell-nav-link:hover,.shell-nav-summary:hover{background:#171522;color:#fff}
.shell-nav-link.active,.shell-nav-summary.active{
  background:linear-gradient(90deg,rgba(112,65,230,.20),rgba(112,65,230,.08));
  box-shadow:inset 2px 0 0 var(--sz-iris);color:#fff;
}
.shell-nav-link .nav-icon,.shell-nav-summary .nav-icon{
  width:21px;height:21px;color:#baa6ff;stroke-width:1.65;flex:none;
}
.shell-nav-link.active .nav-icon,.shell-nav-summary.active .nav-icon{color:#d8cbff}
.shell-nav-summary .nav-tree-chevron{margin-left:auto;width:14px;height:14px;fill:none;stroke:#a9a2ba;stroke-width:1.8;transition:transform .16s ease}
.shell-nav-module[open]>.shell-nav-summary .nav-tree-chevron{transform:rotate(90deg)}
.shell-nav-children{padding:2px 0 6px 32px;display:grid;gap:1px}
.shell-nav-child{
  min-height:31px;margin:0;padding:5px 8px 5px 11px;border-radius:7px;color:#aaa5b8;font-size:11.5px;gap:8px;position:relative;
}
.shell-nav-child:hover{color:#eeeaf7;background:#15131f}
.shell-nav-child.active{color:#fff;background:rgba(112,65,230,.14);box-shadow:none}
.shell-child-rail{width:9px;height:1px;background:#494158;flex:none}
.shell-nav-child.active .shell-child-rail{background:#a889ff}
.shell-sidebar-foot{
  border-top:1px solid var(--sz-shell-nav-line);padding:12px 5px 0;margin-top:auto;
  color:#777287;font-size:9.5px;background:linear-gradient(180deg,transparent,#0b0a13 16%);
}
.shell-sidebar-foot .state-dot{background:#25c99a;box-shadow:0 0 0 3px rgba(37,201,154,.08)}

/* Sidebar collapsed state */
body.sidebar-collapsed .shell-v030-sidebar{padding-left:11px;padding-right:11px}
body.sidebar-collapsed .shell-brand-block{justify-content:center;padding-left:0}
body.sidebar-collapsed .shell-brand-block .brand-logo{width:48px;max-width:48px;flex:none}
body.sidebar-collapsed .shell-brand-block .brand-logo img{width:188px;max-width:none;transform:translateX(-1px)}
body.sidebar-collapsed .shell-nav-heading{height:12px;padding:0;margin:9px 4px 6px;border-top:1px solid #292439}
body.sidebar-collapsed .shell-nav-heading .nav-section-label{display:none}
body.sidebar-collapsed .shell-nav-link,body.sidebar-collapsed .shell-nav-summary{justify-content:center;padding-left:0;padding-right:0}
body.sidebar-collapsed .shell-nav-summary .nav-tree-chevron,body.sidebar-collapsed .shell-nav-children{display:none}
body.sidebar-collapsed .shell-sidebar-foot{padding-left:17px}
body.sidebar-collapsed .shell-nav-link,body.sidebar-collapsed .shell-nav-summary{position:relative}
body.sidebar-collapsed .shell-nav-link::after,body.sidebar-collapsed .shell-nav-summary::after{
  content:attr(data-tooltip);position:absolute;left:55px;top:50%;transform:translateY(-50%) translateX(-4px);
  z-index:100;background:#191622;color:#fff;border:1px solid #373047;border-radius:8px;padding:7px 10px;
  font-size:11px;font-weight:620;white-space:nowrap;opacity:0;pointer-events:none;transition:.12s ease;
  box-shadow:0 12px 30px rgba(0,0,0,.24);
}
body.sidebar-collapsed .shell-nav-link:hover::after,body.sidebar-collapsed .shell-nav-summary:hover::after{opacity:1;transform:translateY(-50%) translateX(0)}

/* ---------- Topbar ---------- */
.shell-v030-topbar{
  left:var(--sidebar-w);height:var(--topbar-h);padding:0 18px;
  display:flex;align-items:center;justify-content:flex-start;
  background:rgba(248,248,251,.95);backdrop-filter:blur(18px);
  border-bottom:1px solid #e4e4ea;box-shadow:0 1px 0 rgba(255,255,255,.8);
}
[dir="rtl"] .shell-v030-topbar{left:0;right:var(--sidebar-w)}
.shell-mobile-menu{display:none;flex:none}
.shell-topbar-flow{display:flex;align-items:center;gap:16px;width:100%;min-width:0;height:100%}
.shell-topbar-menu{position:relative;min-width:0}
.shell-topbar-menu>summary{list-style:none}
.shell-topbar-menu>summary::-webkit-details-marker{display:none}
.shell-company-control,.shell-intelligence-control,.shell-profile-control{
  height:48px;border:1px solid transparent;background:#f0f1f6;border-radius:15px;
  display:flex;align-items:center;color:#1d1b24;cursor:pointer;transition:.14s ease;
}
.shell-company-control:hover,.shell-intelligence-control:hover,.shell-profile-control:hover{background:#ebeaf3;border-color:#dedce9}
.shell-company-control{width:216px;padding:0 13px 0 8px;gap:10px}
.shell-company-logo{
  width:34px;height:34px;border-radius:50%;background:#9c9ca0;color:#fff;display:grid;place-items:center;
  font-size:10px;font-weight:820;letter-spacing:-.03em;flex:none;
}
.shell-company-name{font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.shell-topbar-chevron{width:14px;height:14px;fill:none;stroke:#272330;stroke-width:1.8;transition:transform .14s ease;flex:none}
.shell-topbar-menu[open] .shell-topbar-chevron{transform:rotate(90deg)}
.shell-global-search{
  width:min(405px,33vw);min-width:260px;height:48px;border:1px solid transparent;background:#f0f1f6;border-radius:15px;
  padding:0 14px;color:#777486;gap:10px;box-shadow:none;flex:1 1 390px;
}
.shell-global-search:hover{background:#ebeaf3;border-color:#dedce9}
.shell-global-search svg{width:19px;height:19px;color:#22212a}
.shell-global-search b{font-size:12px;color:#777486;font-weight:550}
.shell-global-search kbd{margin-left:auto;background:#ececf2;border:0;color:#62606c;padding:5px 7px;font-size:11px}
.shell-intelligence-menu{margin-left:auto;flex:none}
.shell-intelligence-control{width:294px;padding:0 13px 0 10px;gap:10px}
.shell-intelligence-avatars{width:104px;height:40px;display:flex;align-items:center;position:relative;flex:none}
.shell-intelligence-avatars img{
  width:42px;height:42px;object-fit:contain;object-position:center bottom;position:relative;filter:drop-shadow(0 2px 3px rgba(15,13,24,.08));
}
.shell-intelligence-avatars img+img{margin-left:-9px}
.shell-intelligence-label{font-size:12px;font-weight:720;white-space:nowrap;flex:1}
.shell-notification-button{
  width:46px;height:46px;min-width:46px;border:0;background:transparent;border-radius:14px;color:#14131a;
}
.shell-notification-button:hover{background:#edeef4}
.shell-notification-button svg{width:22px;height:22px}
.shell-notification-button .notification-badge{right:5px;top:4px;background:var(--sz-red);border-color:#f7f7fa;font-size:8px;min-width:17px;height:17px}
.shell-profile-control{height:52px;width:220px;padding:0 9px 0 6px;gap:10px;background:transparent}
.shell-profile-control:hover{background:#f0f1f6}
.shell-profile-avatar{
  width:38px;height:38px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#ece9fb;color:#5b35c7;
  font-size:10px;font-weight:800;flex:none;border:1px solid #e0dcef;
}
.shell-profile-avatar img{width:100%;height:100%;object-fit:cover}
.shell-profile-copy{display:grid;min-width:0;gap:2px;flex:1}
.shell-profile-copy b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell-profile-copy small{font-size:9px;color:#777486;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Popovers */
.shell-popover{
  position:absolute;top:calc(100% + 8px);right:0;z-index:120;width:260px;padding:10px;
  border:1px solid #e1dfe9;border-radius:14px;background:#fff;box-shadow:0 20px 55px rgba(28,24,43,.16);
  display:grid;gap:5px;color:#292631;
}
.shell-company-menu .shell-popover{left:0;right:auto;width:240px}
.shell-popover-label{font-size:8px;letter-spacing:.13em;color:#9691a0;font-weight:800}
.shell-popover>b{font-size:12px}.shell-popover>small{font-size:10px;color:#85808f}
.shell-popover a,.shell-popover form button{
  border:0;background:transparent;text-align:left;text-decoration:none;padding:9px 8px;border-radius:8px;font-size:11px;cursor:pointer;color:#3d3948;width:100%;
}
.shell-popover a:hover,.shell-popover form button:hover{background:#f5f3fb;color:#4f2fc2}
.shell-intelligence-popover{width:330px}
.shell-intelligence-popover button{
  border:0;background:transparent;border-radius:10px;padding:8px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;color:#2d2935;
}
.shell-intelligence-popover button:hover{background:#f6f4fc}
.shell-intelligence-popover button img{width:38px;height:38px;object-fit:contain}
.shell-intelligence-popover button span{display:grid;gap:2px}.shell-intelligence-popover button b{font-size:11px}.shell-intelligence-popover button small{font-size:9px;color:#888291}
.shell-profile-popover{width:230px}.shell-profile-popover-head{display:grid;gap:2px;padding:6px 8px 9px;border-bottom:1px solid #efedf3;margin-bottom:3px}.shell-profile-popover-head b{font-size:12px}.shell-profile-popover-head small{font-size:9px;color:#85808f}

/* Workspace alignment only; page content itself is not redesigned. */
.main-content{margin-left:var(--sidebar-w);padding-top:calc(var(--topbar-h) + 30px)}
[dir="rtl"] .main-content{margin-left:0;margin-right:var(--sidebar-w)}

/* ---------- Responsive shell ---------- */
@media(max-width:1250px) and (min-width:901px){
  :root{--sidebar-w:272px}
  .shell-v030-sidebar{padding-left:14px;padding-right:14px}
  .shell-brand-block .brand-logo img{width:190px}
  .shell-topbar-flow{gap:10px}
  .shell-company-control{width:190px}
  .shell-global-search{min-width:220px}
  .shell-intelligence-control{width:246px}
  .shell-intelligence-avatars{width:88px}.shell-intelligence-avatars img{width:37px;height:37px}
  .shell-profile-control{width:180px}
}
@media(max-width:1080px) and (min-width:901px){
  .shell-profile-copy{display:none}.shell-profile-control{width:48px;padding:0;justify-content:center}.shell-profile-control .shell-topbar-chevron{display:none}
  .shell-intelligence-control{width:220px}.shell-intelligence-label{font-size:11px}
  .shell-global-search{min-width:190px}
}
@media(max-width:900px) and (min-width:720px){
  :root{--sidebar-w:78px;--topbar-h:70px}
  .shell-v030-sidebar{padding-left:11px;padding-right:11px}
  .shell-brand-block{justify-content:center}.shell-brand-block .brand-logo{width:48px;max-width:48px}.shell-brand-block .brand-logo img{width:188px;max-width:none}
  .shell-nav-heading{height:12px;padding:0;margin:9px 4px 6px;border-top:1px solid #292439}.shell-nav-heading .nav-section-label{display:none}
  .shell-nav-link,.shell-nav-summary{justify-content:center;padding-left:0;padding-right:0}.shell-nav-summary .nav-tree-chevron,.shell-nav-children{display:none}
  .shell-sidebar-foot{padding-left:17px}.shell-sidebar-foot .nav-label{display:none}
  .shell-v030-topbar{left:78px;padding:0 12px}.shell-topbar-flow{gap:8px}
  .shell-company-control{width:175px}.shell-company-name{font-size:11px}
  .shell-global-search{width:48px;min-width:48px;flex:0 0 48px;justify-content:center;padding:0}.shell-global-search b,.shell-global-search kbd{display:none}
  .shell-intelligence-control{width:190px}.shell-intelligence-label{display:none}.shell-intelligence-avatars{width:104px}
  .shell-profile-copy{display:none}.shell-profile-control{width:48px;padding:0;justify-content:center}.shell-profile-control .shell-topbar-chevron{display:none}
}
@media(max-width:719px){
  :root{--topbar-h:64px}
  .shell-v030-sidebar{width:min(86vw,300px);padding-left:16px;padding-right:16px;transform:translateX(-105%)}
  body.sidebar-open .shell-v030-sidebar{transform:translateX(0)}
  body.sidebar-collapsed .shell-v030-sidebar{width:min(86vw,300px);padding-left:16px;padding-right:16px}
  body.sidebar-collapsed .shell-brand-block{justify-content:flex-start}
  body.sidebar-collapsed .shell-brand-block .brand-logo{width:auto;max-width:none;flex:1}
  body.sidebar-collapsed .shell-brand-block .brand-logo img{width:190px;transform:none}
  body.sidebar-collapsed .shell-nav-heading{height:auto;padding:13px 4px 6px;margin:0;border-top:0}
  body.sidebar-collapsed .shell-nav-heading .nav-section-label{display:inline}
  body.sidebar-collapsed .shell-nav-link,body.sidebar-collapsed .shell-nav-summary{justify-content:flex-start;padding:6px 7px}
  body.sidebar-collapsed .shell-nav-summary .nav-tree-chevron{display:block}
  body.sidebar-collapsed .shell-nav-children{display:grid}
  body.sidebar-collapsed .shell-sidebar-foot{padding-left:5px}
  .shell-v030-topbar{left:0!important;right:0!important;padding:0 10px;gap:8px}
  .shell-mobile-menu{display:grid;place-items:center;width:42px;height:42px;background:#fff;border-color:#e2e0e9}
  .shell-topbar-flow{gap:7px;min-width:0}
  .shell-company-control{width:auto;max-width:150px;padding-right:9px}.shell-company-logo{width:31px;height:31px}.shell-company-name{font-size:10.5px}.shell-company-control .shell-topbar-chevron{display:none}
  .shell-global-search{width:42px;min-width:42px;flex:0 0 42px;height:42px;padding:0;justify-content:center;border-radius:12px}.shell-global-search b,.shell-global-search kbd{display:none}
  .shell-intelligence-control{width:93px;height:42px;padding:0 8px}.shell-intelligence-avatars{width:76px;height:34px}.shell-intelligence-avatars img{width:31px;height:31px}.shell-intelligence-label,.shell-intelligence-control .shell-topbar-chevron{display:none}
  .shell-notification-button{width:42px;height:42px;min-width:42px}
  .shell-profile-control{width:42px;height:42px;padding:0;justify-content:center}.shell-profile-avatar{width:34px;height:34px}.shell-profile-copy,.shell-profile-control .shell-topbar-chevron{display:none}
  .shell-popover{position:fixed;left:10px!important;right:10px!important;top:72px;width:auto!important;max-height:calc(100vh - 90px);overflow:auto}
  .main-content{margin-left:0;padding-top:calc(var(--topbar-h) + 18px)}
}
@media(max-width:520px){
  .shell-company-name{display:none}.shell-company-control{width:42px;padding:0;justify-content:center}
  .shell-intelligence-control{width:80px}.shell-intelligence-avatars{width:67px}.shell-intelligence-avatars img{width:28px;height:28px}
}
