/* =========================================
   UI Redesign (Dashboard-style) + Green Header
   هدف الملف ده:
   - تحويل شكل التطبيق ليشبه UI اللي في الصور
   - سايدبار أسود بأيقونات فقط + Active pill أبيض
   - Header أخضر (Search + Notifications + Avatar)

   ملاحظة:
   الملف ده معمول كـ overrides فوق style.css بدون ما نكسر الـ JS الحالي.
   ========================================= */

:root{
  --ui-bg: #E9EEF5;
  --ui-shell: #0B0C10;
  --ui-surface: #FFFFFF;
  --ui-sidebar: #0B0C10;
  --ui-text: #0F172A;
  --ui-muted: #6B7280;

  --ui-green: #114024;      /* header background */
  --ui-green-2: #2D6B3B;    /* wave/search bar */
  --ui-green-3: #1E5A31;    /* hover */
  --ui-green-accent: #A9E07C; /* left round icon */

  --ui-radius-shell: 44px;
  --ui-radius-side: 30px;
  --ui-radius-main: 34px;

  --ui-shadow-shell: 0 26px 70px rgba(15,23,42,0.10);
  --ui-shadow-soft: 0 14px 38px rgba(15,23,42,0.10);
  --ui-shadow-hard: 0 20px 55px rgba(0,0,0,0.32);
}

/* ---------- App background ---------- */
html{
  height: 100%;
  overflow: hidden;
}

body{
  background: var(--ui-bg) !important;
  background-image: none !important;
  color: var(--ui-text);
  height: 100%;
  overflow: hidden !important;

}

/* ---------- Shell (tablet-like frame) ---------- */
.app-container{
  /*
    مهم:
    الـ sidebar عندنا position:fixed.
    وجود الـ .app-container كـ flex كان بيخلّي المسافة بين السايدبار و الـ main-content
    تتضاعف على بعض الشاشات (Flex gap + main-content margin-left).
    نخليه block عشان الإزاحة تبقى محسوبة مرة واحدة وبـ gap أصغر.
  */
  display: block !important;
  max-width: 1400px;
  margin: 22px auto;
  /* Override legacy layout rule in style.css: .app-container{ min-height:100vh } */
  min-height: 0 !important;
  height: calc(100vh - 44px);
  max-height: calc(100vh - 44px);
  background: var(--ui-shell);
  border-radius: var(--ui-radius-shell);
  box-shadow: var(--ui-shadow-shell);
  overflow: hidden;
  padding: 18px;
  gap: 18px;
}

/* Use the *visible* viewport height on mobile/tablets so the bottom border stays visible
   even when the browser address bar expands/collapses. */
@supports (height: 100dvh){
  .app-container{
    height: calc(100dvh - 44px);
    max-height: calc(100dvh - 44px);
  }
}

/*
  Tablet/Android Chrome hard refresh fix:
  some browsers report 100dvh larger than the visible viewport immediately after
  a hard refresh, so the bottom of the black shell can slide below the screen.
  100svh is the stable/small viewport height and keeps the same bottom frame
  visible before and after refresh.
*/
@supports (height: 100svh){
  .app-container{
    height: calc(100svh - 44px);
    max-height: calc(100svh - 44px);
  }
}

@media (max-width: 900px){
  .app-container{
    /*
      Android browsers sometimes report a taller visual viewport while
      the bottom browser controls are visible, which makes the black shell
      look cut from the bottom. Keep a small reserved space so the bottom
      frame stays visible like the top frame.
    */
    margin: 0;
    min-height: 0 !important;
    height: calc(100vh - 14px);
    max-height: calc(100vh - 14px);
    border-radius: var(--ui-radius-shell);
    padding: 14px;
  }

  /* keep sidebar aligned with the edge padding on smaller screens */
  .sidebar{
    top: 14px !important;
    left: 14px !important;
    bottom: 14px !important;
  }

  /* Keep the same gap on smaller desktop widths (match app-container padding: 14px) */
  .main-content{ margin-left: calc(88px + 14px) !important; }
}

@supports (height: 100dvh){
  @media (max-width: 900px){
    .app-container{
      height: calc(100dvh - 14px);
      max-height: calc(100dvh - 14px);
    }
  }
}

@supports (height: 100svh){
  @media (max-width: 900px){
    .app-container{
      height: calc(100svh - 14px);
      max-height: calc(100svh - 14px);
    }
  }
}

/* Make page scrolling happen inside the white surface (inside the black shell)
   - Header stays fixed
   - Only <main> scrolls */
.main-content{
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.main-content > main{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.main-content > header{
  flex: 0 0 auto;
}

/* ---------- Sidebar ---------- */
.sidebar{
  /* Fixed dashboard like the old layout: sidebar doesn't grow with page height */
  position: fixed !important;
  /* Align inside the centered shell (.app-container: max-width 1400, margin-top 22, padding 18) */
  top: calc(22px + 18px) !important;
  bottom: calc(22px + 18px) !important;
  left: max(18px, calc(50% - 700px + 18px)) !important;

  width: 88px !important;
  border-radius: var(--ui-radius-side) !important;
  background: var(--ui-sidebar) !important;
  border: none !important;
  box-shadow: var(--ui-shadow-hard) !important;
  overflow: hidden;

  /*
    مهم لظهور الـ internal scroll جوه الـ nav:
    نخلي الـ sidebar flex column عشان الـ nav تاخد مساحة ثابتة (flex:1)
    و باقي العناصر (الهيدر/الفوتر) تفضل ثابتة.
  */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;

  /* Smooth open/close */
  transition: transform .25s ease, opacity .25s ease;
}

/* When dashboard is closed */
body.sidebar-collapsed .sidebar{
  transform: translateX(calc(-100% - 24px)) !important;
}

/* Sidebar header: keep it minimal */
.sidebar-header{
  padding: 12px 10px !important;
  border-bottom: none !important;
  justify-content: center !important;
}

/* Hide the legacy "Dashboard" text at CSS time, before common-ui.js runs.
   This prevents the word from flashing during login and hard refresh boot. */
.sidebar-header h2{
  display: none !important;
}

/* Hide the temporary HTML header chrome while permissions/account data are loading.
   common-ui.js removes permissions-loading only after the stable main bar and
   sidebar have been rebuilt and permissions have been applied. */
body.permissions-loading:not(.permissions-ready) .main-header{
  visibility: hidden;
}

/* Hide the legacy chevrons button in the top header (we still keep the logo toggle clickable) */
.sidebar-header #sidebar-toggle,
.sidebar-header .sidebar-toggle{
  display: none !important;
}

/* Logo toggle (inserted by common-ui.js) -> icon-only */
.sidebar-brand-toggle{
  height: 44px !important;
  justify-content: center !important;
}
.sidebar-brand-toggle .brand-logo-full{
  display: none !important;
}
.sidebar-brand-toggle .brand-logo-icon{
  max-width: 34px !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Sidebar profile (avatar at the top of the sidebar)
   ✅ New requirement: remove it completely */


.sidebar-nav{
  /*
    ✅ New requirement:
    - رجّع الـ internal scroll داخل الـ sidebar زي الشكل القديم
    - خلي كل أيقونات الصفحات تكون تحت بعض (aligned) و في النص

    ملاحظة:
    الـ sidebar نفسه position:fixed وارتفاعه ثابت (top/bottom)
    فـ بنخلي الـ nav هي اللي تعمل scroll بدل ما الصفحة تأثر على طول الـ sidebar.
  */
  flex: 1 1 auto !important;
  padding: 10px 8px 12px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  /* keep items centered even when scrollbar is present */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

/* WebKit (Chrome/Edge) scrollbar styling */
.sidebar-nav::-webkit-scrollbar{ width: 6px; }
.sidebar-nav::-webkit-scrollbar-track{ background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

/* Reset the UL so icons align perfectly */
.sidebar-nav .nav-list{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

.sidebar-nav .nav-list > li{
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}
.nav-label{ display: none !important; }

.nav-link{
  /* ثابت + مركز -> يخلّي الأيقونات كلها تحت بعض بنفس المحاذاة */
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 22px !important;
  color: rgba(255,255,255,0.72) !important;
  border: 2px solid transparent !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: transparent !important;
  line-height: 0 !important;
}

.nav-link svg{
  width: 24px !important;
  height: 24px !important;
  display: block !important; /* avoid baseline/offset issues */
}

.nav-link:hover{
  background: rgba(255,255,255,0.08) !important;
  color: #FFFFFF !important;
}

/* Active = white pill */
.nav-link.active{
  background: #FFFFFF !important;
  color: #0B0C10 !important;
  border: 2px solid #0B0C10 !important;
  box-sizing: border-box !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 26px rgba(255,255,255,0.12), 0 10px 24px rgba(0,0,0,0.18) !important;
}

.sidebar-footer{
  display: none !important;
  padding: 12px 10px !important;
  border-top: none !important;
}
.sidebar-footer .logout-btn{
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  font-size: 0 !important;
}
.sidebar-footer .logout-btn svg{ margin: 0 !important; }

/* ---------- Main content surface ---------- */
.main-content{
  padding-left: 0 !important;
  /* Leave room for the fixed sidebar (reduce the left gap a bit) */
  margin-left: calc(88px + 18px) !important;
  transition: margin-left .25s ease;
  background: var(--ui-surface);
  border-radius: var(--ui-radius-main);
  overflow: hidden;
  box-shadow: var(--ui-shadow-soft);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  isolation: isolate;
}

body.sidebar-collapsed .main-content{
  margin-left: 0 !important;
}

/* ---------- User cover photo as system upper background ---------- */
body.ops-has-system-cover:not(.shell-embedded) .main-content::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(210px, 30vh, 380px);
  border-radius: var(--ui-radius-main) var(--ui-radius-main) 0 0;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.24) 32%,
      rgba(255,255,255,0.72) 68%,
      #FFFFFF 100%),
    var(--ops-system-cover-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.96;
}

body.ops-has-system-cover:not(.shell-embedded) .main-content::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(240px, 34vh, 420px);
  background:
    radial-gradient(circle at 74% 6%, rgba(255,255,255,0.34), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.84) 74%, #FFFFFF 100%);
  pointer-events: none;
  z-index: 0;
}

body.ops-has-system-cover:not(.shell-embedded) .main-content > header,
body.ops-has-system-cover:not(.shell-embedded) .main-content > main,
body.ops-has-system-cover:not(.shell-embedded) .ops-shell-host-main{
  position: relative;
  z-index: 1;
}

body.ops-has-system-cover:not(.shell-embedded) .main-header{
  background: transparent !important;
}

body.ops-has-system-cover:not(.shell-embedded) .ops-shell-frame-wrap,
body.ops-has-system-cover:not(.shell-embedded) .ops-shell-frame{
  background: transparent !important;
}


/* ---------- Header redesign ---------- */
.main-header{
  border-bottom: none !important;
  padding: 16px 16px 10px !important;
  background: transparent !important;
  gap: 12px !important;
}

/* Row1 = green bar */
.main-header .header-row1{
  background: linear-gradient(135deg, var(--ui-green) 0%, #072F1A 100%) !important;
  border-radius: 36px !important;
  padding: 12px 14px !important;
  border: none !important;
  box-shadow: 0 20px 52px rgba(17,24,39,0.28) !important;
  min-height: 76px;
}

.main-header .header-row1 .left{
  flex: 0 0 auto !important;
}

.main-header .header-row1 .right{
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
}

/* Lead (left) round button – injected by JS */





/* Wave group (match the reference green header) */


/* "Wave" notches (top + bottom) — cuts are created by drawing circles in the background color */


/* Notch between search and bell */


/* Notch between bell and avatar */


/* Ensure content stays above the notch layers */


/* Make the searchbar blend inside wave */
.gh-wave .searchbar{
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
  height: 40px !important;
  border: none !important;
  background: rgba(70, 140, 76, 0.92) !important; /* lighter green inside */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08) !important;
  padding: 0 16px 0 14px !important;
  border-radius: 999px !important;
  gap: 10px !important;
}
.gh-wave .searchbar i,
.gh-wave .searchbar svg{
  display: inline-flex !important;
  color: rgba(255,255,255,0.92) !important;
}
.gh-wave .searchbar input{
  color: rgba(255,255,255,0.92) !important;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gh-wave .searchbar input::placeholder{
  color: rgba(255,255,255,0.68) !important;
  letter-spacing: 0.14em;
}

/* Notification bell button inside wave */
.gh-wave .notif-bell-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: transparent;
  box-shadow: none;
  position: relative;
  display: grid;
  place-items: center;
}
.gh-wave .notif-bell-btn i,
.gh-wave .notif-bell-btn svg{ color: rgba(255,255,255,0.92) !important; }

/* Badge positioned like a small overlay */
.notif-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #F43F5E;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

/* Avatar (account-mini) -> circle */

.gh-wave .account-mini .label{ display: none !important; }



/* "See all" action link inside the notification panel header */



/* Panel drop-down position tweak */
.notif-panel{
  margin-top: 12px;
}

/* Row2 = page heading like the mock */
.main-header .header-row2{
  padding: 0 6px 6px;
  gap: 14px;
  border: none;
}

.page-title{
  background: transparent !important;
  color: #0F172A !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: clamp(26px, 3.2vw, 40px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

/* Hide the old greeting pill visuals when we are using the new header */
.main-header .greeting-pill{
  display: none !important;
}

/* ---------- Cards / surfaces ---------- */
.card{
  border-radius: 22px !important;
  box-shadow: 0 10px 28px rgba(15,23,42,0.08) !important;
  border: 1px solid rgba(226,232,240,0.75) !important;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 768px){
  .sidebar{
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    bottom: 14px !important;
    z-index: 200;
  }

  /* main content should fill under the shell padding */
  .main-content{ border-radius: 26px; margin-left: 0 !important; }

  /* Keep a little breathing room at the bottom when the inner page scrolls. */
  .main-content > main{
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  
}

/* Desktop: show the menu toggle only when the sidebar is closed, so it can be reopened */
@media (min-width: 769px){
  body.sidebar-collapsed #menu-toggle{
    display: inline-flex !important;
  }
}

/* =========================================================
   Header (Dashboard topbar like the reference screenshot)
   - Title + Search (left)
   - Bell + User (right)
   ========================================================= */

.main-header{
  padding: 18px 22px 14px !important;
  background: transparent !important;
}

.main-header .header-row1{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  min-height: unset !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap !important;
}

.main-header .header-row1 .left{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 1 1 auto !important;
  min-width: 0;
}

.main-header .dash-title{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(46vw, 420px) !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(226,232,240,0.94) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08) !important;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #0F172A !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto !important;
}

.main-header .header-row1 .right,
.main-header .topbar-right{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  order: 0 !important;
  margin-left: auto !important;
}

.main-header.dash-hide-row2 .header-row2{
  display: none !important;
}

/* Search */
.main-header .searchbar{
  flex: 0 1 460px;
  max-width: 560px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,0.92);
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  margin: 0 !important;
}

.main-header .searchbar i,
.main-header .searchbar svg{
  width: 16px;
  height: 16px;
  color: #94A3B8;
}

.main-header .searchbar input{
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px;
  color: #0F172A;
}

.main-header .searchbar input::placeholder{
  color: #9CA3AF;
  font-weight: 600;
}

body.has-floating-search .main-header .searchbar{
  display: none !important;
}

/* Bell (match reference design) */
.notif-bell-btn{
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.06) !important;
  background: rgba(243,244,246,0.95) !important;
  box-shadow: 0 16px 36px rgba(15,23,42,0.10) !important;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px;
}

.notif-bell-btn:hover{
  background: rgba(226,232,240,0.95) !important;
}

.notif-bell-btn i,
.notif-bell-btn svg{
  width: 20px !important;
  height: 20px !important;
  color: #0F172A !important;
}

/* Reference uses a small red dot (not a numeric pill) */
.notif-badge{
  top: 7px !important;
  right: 7px !important;
  min-width: 10px !important;
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: #EF4444 !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.14) !important;
}

/* User (icon only trigger) */
.main-header .account-mini .label{ display: none !important; }

/* Keep the header avatar stable before the account API finishes loading.
   The JS later converts account-mini into header-user, but both states must
   look identical to avoid a different topbar after Hard Refresh. */
.main-header a.account-mini{
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15,23,42,0.06) !important;
  background: #FFFFFF !important;
  box-shadow: 0 16px 36px rgba(15,23,42,0.10) !important;
  color: #0F172A !important;
  flex: 0 0 44px !important;
  overflow: visible !important;
}
.main-header a.account-mini .ico-circle{
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #FFF7ED !important;
  border: 2px solid #EA580C !important;
  box-shadow: 0 0 0 4px rgba(234,88,12,0.14) !important;
}
.main-header a.account-mini .ico-circle img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.header-user{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.06);
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(15,23,42,0.10);
  color: #0F172A;
}

.header-user:hover{
  background: rgba(243,244,246,0.95);
}

.header-user__avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #FFF7ED;
  border: 2px solid #EA580C;
  box-shadow: 0 0 0 4px rgba(234,88,12,0.14);
}

.header-user__img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.header-user__fallback{ font-size: 12px; font-weight: 900; color: #0F172A; }


@media (max-width: 700px){
  
  .main-header .searchbar{ flex: 1 1 auto; max-width: none; }
}

/* =========================================================
   Notifications dropdown window (Bell → drop window)
   Matches the reference card style + tabs.
   ========================================================= */

.notif-wrap{ position: relative; }



.header-message-btn,
.notif-bell-btn,
.search-icon-btn{
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

/* Mounted on <body> via JS (portal) so it never breaks the header layout */
.notif-panel--portal{
  position: fixed !important;
  z-index: 999999 !important;
}

.notif-panel{
  top: 44px;
  right: 0;
  width: 440px;
  max-width: calc(100vw - 28px);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.notif-center-shell{
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 26px 70px rgba(15,23,42,0.18);
}

.notif-center-card{
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(226,232,240,0.85);
}

.notif-center-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.notif-center-title{
  font-weight: 900;
  font-size: 16px;
  color: #0F172A;
}

.notif-center-seeall{
  border: 1px solid rgba(226,232,240,0.9);
  background: #FFFFFF;
  border-radius: 12px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
  color: #334155;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

.notif-center-tabs{
  background: #F1F5F9;
  border-radius: 14px;
  padding: 4px;
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.notif-tab{
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
  color: #64748B;
  cursor: pointer;
}

.notif-tab.is-active{
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

/* List (override legacy notif-panel__list padding) */
.notif-panel__list{
  padding: 0 !important;
  max-height: 340px;
  overflow: auto;
}

.notif-empty{
  padding: 16px 6px;
  color: #64748B;
  font-weight: 700;
}

.notif-row{
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  text-align: left;
  cursor: pointer;
}

.notif-row + .notif-row{
  border-top: 1px solid rgba(15,23,42,0.06);
}

.notif-row__ico{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,0.9);
  background: #FFFFFF;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.notif-row__ico svg{ width: 18px; height: 18px; color: #0F172A; }

.notif-row__content{ flex: 1 1 auto; min-width: 0; }

.notif-row__title{
  font-weight: 900;
  font-size: 13px;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.notif-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7C3AED;
  flex: 0 0 auto;
}

.notif-dot.is-hidden{ opacity: 0; }

.notif-row__body{
  margin-top: 4px;
  font-size: 12px;
  color: #64748B;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-row__time{
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  white-space: nowrap;
  margin-left: auto;
}

@media (max-width: 480px){
  .notif-panel{ width: 92vw; }
}


/* --------------------------------------------
   Search icon button + floating search bar
   -------------------------------------------- */




/* Feather icon inserted via JS (data-feather="search") */












.floating-search-panel.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
}





.main-header .header-row1 .right > *,
.main-header .topbar-right > *{
  flex: 0 0 auto;
}



@media (max-width: 768px){
  .main-header .header-row1{
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  .main-header .header-row1 .left{
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .main-header .header-row1 .right,
  .main-header .topbar-right{
    width: auto !important;
    order: 0 !important;
    margin-left: auto !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  .main-header .dash-title{
    font-size: clamp(17px, 4.8vw, 20px);
  }
}

/* --------------------------------------------
   Global spinner (used in Expenses pages)
   -------------------------------------------- */
.loader{
  width: 44px;
  height: 44px;
  border: 4px solid rgba(226,232,240,0.95);
  border-top-color: rgba(15,23,42,0.85);
  border-radius: 50%;
  animation: opsSpin 0.95s linear infinite;
  margin: 22px auto;
}

@keyframes opsSpin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------
   Expenses "Show past expenses" (View All)
   Matches the Expenses by User experience.
   -------------------------------------------- */

.expenses-empty{
  text-align: center;
  color: #94A3B8;
  font-weight: 700;
  padding: 18px 12px;
}

.expenses-separator{
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748B;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.expenses-separator::before,
.expenses-separator::after{
  content: "";
  height: 1px;
  background: rgba(226,232,240,0.95);
  flex: 1 1 auto;
}

.past-expenses-wrapper{
  display: flex;
  justify-content: center;
  padding: 14px 0 4px;
}

.past-expenses-btn{
  border: 1px solid rgba(226,232,240,0.95);
  background: #FFFFFF;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.past-expenses-btn:hover{
  background: rgba(15,23,42,0.04);
}

.past-expenses-btn:active{
  transform: translateY(1px);
}


/* --------------------------------------------
   User dropdown (avatar → drop window)
   Matches the reference card menu style.
   -------------------------------------------- */
.user-menu-panel--portal{
  position: fixed !important;
  z-index: 999999 !important;
}

.user-menu-panel{
  width: 320px;
  max-width: calc(100vw - 28px);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.user-menu-shell{
  background: #FFFFFF;
  border-radius: 26px;
  padding: 14px;
  border: 1px solid rgba(234,88,12,0.16);
  box-shadow: none;
  transform-origin: top right;
}

.user-menu-panel:not([hidden]) .user-menu-shell{
  animation: userMenuPopIn 220ms cubic-bezier(.22, 1, .36, 1);
}

@keyframes userMenuPopIn{
  from{
    opacity: 0;
    transform: translateY(-8px) scale(.96);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header: avatar + name + position (reference design) */
.user-menu-user{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
  border-radius: 20px;
}

.user-menu-user__avatar{
  width: 50px;
  height: 50px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #FFF7ED;
  border: 2px solid #EA580C;
  box-shadow: 0 0 0 4px rgba(234,88,12,0.14);
  flex: 0 0 auto;
}

.user-menu-user__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.user-menu-user__fallback{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 900;
  color: #0F172A;
  font-size: 14px;
}

.user-menu-user__meta{ min-width: 0; }

.user-menu-user__name{
  font-weight: 900;
  font-size: 14px;
  color: #0F172A;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-user__role{
  margin-top: 3px;
  font-weight: 700;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-item{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #0F172A;
  font-weight: 800;
  font-size: 14px;
  text-align: left;
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.user-menu-item:hover{
  background: rgba(15,23,42,0.05);
  transform: translateX(2px);
}

.user-menu-item.is-loading{
  opacity: 0.7;
  pointer-events: none;
}

.user-menu-item .umi-ico{
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #6B7280;
  flex: 0 0 auto;
}

.user-menu-item .umi-ico svg,
.user-menu-item .umi-ico i{
  width: 18px;
  height: 18px;
}

.user-menu-item .umi-label{
  flex: 1 1 auto;
}

/* Tail is not used in the reference menu, keep hidden if present */
.user-menu-item .umi-tail{ display: none !important; }

.user-menu-sep{
  height: 1px;
  background: rgba(226,232,240,0.85);
  margin: 10px 8px;
}

.user-menu-sep.user-menu-sep--tight{
  margin: 8px 8px 10px;
}

.user-menu-item.user-menu-item--refresh{
  background: rgba(255,247,237,0.95);
  color: #C2410C;
}

.user-menu-item.user-menu-item--refresh:hover{
  background: rgba(255,237,213,0.96);
}

.user-menu-item.user-menu-item--refresh .umi-ico{
  color: #EA580C;
}

/* Danger action (Log out) — red like the reference */
.user-menu-item.user-menu-item--danger{
  background: rgba(254, 226, 226, 0.9);
  color: #EF4444;
}

.user-menu-item.user-menu-item--danger:hover{
  background: rgba(254, 202, 202, 0.95);
}

.user-menu-item.user-menu-item--danger .umi-ico{
  color: #EF4444;
}


/* Stocktaking: component name link */
.group-table a.component-link{
  color: #1D4ED8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.group-table a.component-link:visited{
  color: #1D4ED8;
}
.group-table a.component-link:hover{
  color: #1E40AF;
}


/* =========================================================
   Android mobile dock navigation + white chrome
   - remove the black outer frame on phones
   - keep navigation visible at the bottom
   - keep Home visually separated like the reference
   ========================================================= */
@media (max-width: 768px){
  :root{
    --mobile-dock-bg: #0B0C10;
    --mobile-dock-shadow: 0 18px 40px rgba(15,23,42,0.18);
    --mobile-home-block-w: 88px;
    --mobile-home-gap: 18px;
    --mobile-home-bridge-w: 10px;
    --mobile-pages-right-gap: 8px;
    --mobile-pages-block-radius: 30px;
    --mobile-main-bottom-space: calc(126px + env(safe-area-inset-bottom, 0px));
    --mobile-main-scroll-space: calc(144px + env(safe-area-inset-bottom, 0px));
  }

  html,
  body{
    background: #FFFFFF !important;
  }

  .app-container{
    position: fixed !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    min-height: 100vh !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #FFFFFF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .main-content{
    margin-left: 0 !important;
    min-height: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    background: #FFFFFF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .main-header{
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 6px !important;
    position: relative !important;
    z-index: 20 !important;
    overflow: hidden !important;
    max-height: var(--mobile-header-height, 140px) !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    will-change: transform, opacity, max-height, padding, margin !important;
    transition: transform .24s ease, opacity .18s ease, max-height .24s ease, padding .24s ease, margin .24s ease !important;
  }

  .main-content.mobile-header-hidden .main-header{
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: translateY(-14px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .main-content > main{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--mobile-main-bottom-space) !important;
    scroll-padding-bottom: var(--mobile-main-scroll-space) !important;
  }

  #menu-toggle,
  .sidebar-backdrop{
    display: none !important;
  }

  .sidebar,
  body.sidebar-collapsed .sidebar{
    position: fixed !important;
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
    width: auto !important;
    min-height: 80px !important;
    height: 80px !important;
    max-height: 80px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: 240 !important;
    isolation: isolate !important;
  }

  .sidebar-header,
  .sidebar-footer{
    display: none !important;
  }

  .sidebar-nav{
    position: relative !important;
    flex: none !important;
    display: block !important;
    min-height: 80px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar-nav::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }

  .sidebar-nav::-webkit-scrollbar-track,
  .sidebar-nav::-webkit-scrollbar-thumb{
    background: transparent;
  }

  .sidebar::before{
    content: "";
    position: absolute;
    top: 0;
    right: var(--mobile-pages-right-gap);
    bottom: 0;
    left: calc(var(--mobile-home-block-w) + var(--mobile-home-gap));
    background: var(--mobile-dock-bg);
    border-radius: var(--mobile-pages-block-radius);
    box-shadow: var(--mobile-dock-shadow);
    z-index: 0;
    pointer-events: none;
  }

  .sidebar-nav::before{
    content: none !important;
  }

  .sidebar-nav .nav-list{
    position: relative !important;
    z-index: 1 !important;
    width: max-content !important;
    min-width: 100% !important;
    min-height: 80px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 4px 14px 4px 0 !important;
  }

  .sidebar-nav .nav-list > li{
    width: auto !important;
    flex: 0 0 auto !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .sidebar-nav .nav-list > li:first-child{
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    margin-right: var(--mobile-home-gap) !important;
    padding-right: 0 !important;
    background: transparent !important;
  }

  .sidebar-nav .nav-list > li:first-child::before{
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mobile-dock-bg);
    border-radius: var(--mobile-pages-block-radius);
    box-shadow: var(--mobile-dock-shadow);
    z-index: -1;
  }

  .sidebar-nav .nav-list > li:first-child::after{
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 4px);
    width: var(--mobile-home-bridge-w);
    height: 24px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--mobile-dock-bg);
    box-shadow: 0 8px 14px rgba(15,23,42,0.10);
    z-index: -1;
  }

  .nav-label{
    display: none !important;
  }

  .sidebar-nav .nav-list > li:first-child .nav-label{
    display: none !important;
  }

  .sidebar-nav .nav-link{
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    border-radius: 16px !important;
  }

  .sidebar-nav .nav-link svg{
    width: 20px !important;
    height: 20px !important;
  }

  .sidebar-nav .nav-list > li:first-child .nav-link{
    width: var(--mobile-home-block-w) !important;
    min-width: var(--mobile-home-block-w) !important;
    height: 68px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 28px !important;
    background: transparent !important;
    color: rgba(255,255,255,0.94) !important;
    box-shadow: none !important;
  }

  .sidebar-nav .nav-list > li:first-child .nav-link:hover{
    background: transparent !important;
    color: #FFFFFF !important;
  }

  .sidebar-nav .nav-list > li:first-child .nav-link svg{
    width: 22px !important;
    height: 22px !important;
    padding: 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.09);
    box-sizing: content-box !important;
    margin: 0 !important;
  }

  .sidebar-nav .nav-list > li:first-child .nav-link.active{
    background: transparent !important;
    color: #FFFFFF !important;
  }

  .sidebar-nav .nav-list > li:first-child .nav-link.active svg{
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    box-shadow: 0 12px 24px rgba(255,255,255,0.16);
  }

  .sidebar-nav .nav-list > li:first-child .nav-link:not(.active){
    background: transparent !important;
    color: rgba(255,255,255,0.94) !important;
  }

  .sidebar-nav .nav-list > li:first-child + li{
    margin-left: 12px !important;
  }

  .sidebar-nav .nav-link.active{
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    box-shadow: 0 12px 26px rgba(255,255,255,0.14), 0 12px 24px rgba(0,0,0,0.18) !important;
  }

  .main-header .header-row1{
    gap: 8px !important;
  }

  .main-header .dash-title{
    font-size: clamp(16px, 5vw, 18px) !important;
  }

  .search-icon-btn,
  .notif-bell-btn,
  .header-user{
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
  }

  .search-icon-btn svg,
  .notif-bell-btn svg{
    width: 18px !important;
    height: 18px !important;
  }

  .header-user__avatar{
    width: 36px !important;
    height: 36px !important;
  }

  .sidebar.mobile-dock-structured-host::before{
    content: none !important;
  }

  .sidebar.mobile-dock-structured-host .sidebar-nav{
    display: grid !important;
    grid-template-columns: var(--mobile-home-block-w) minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: var(--mobile-home-gap) !important;
    min-height: 80px !important;
    padding: 0 var(--mobile-pages-right-gap) 0 0 !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .sidebar.mobile-dock-structured-host .sidebar-nav::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail{
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--mobile-home-block-w) !important;
    min-width: var(--mobile-home-block-w) !important;
    height: 80px !important;
    border-radius: var(--mobile-pages-block-radius) !important;
    background: var(--mobile-dock-bg) !important;
    box-shadow: var(--mobile-dock-shadow) !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail::after{
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 4px);
    width: var(--mobile-home-bridge-w);
    height: 24px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--mobile-dock-bg);
    box-shadow: 0 8px 14px rgba(15,23,42,0.10);
    pointer-events: none;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail > li{
    width: auto !important;
    flex: 0 0 auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-clip{
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
    height: 80px !important;
    border-radius: var(--mobile-pages-block-radius) !important;
    background: var(--mobile-dock-bg) !important;
    box-shadow: var(--mobile-dock-shadow) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-clip::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list{
    position: relative !important;
    z-index: 1 !important;
    width: max-content !important;
    min-width: 100% !important;
    min-height: 80px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 4px 14px !important;
    list-style: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li{
    width: auto !important;
    flex: 0 0 auto !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child{
    position: relative !important;
    left: auto !important;
    z-index: 1 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child::before,
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child::after{
    content: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child + li{
    margin-left: 0 !important;
  }

  .sidebar.mobile-dock-structured-host .nav-label{
    display: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link{
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    border-radius: 16px !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link svg{
    width: 20px !important;
    height: 20px !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link{
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: rgba(255,255,255,0.72) !important;
    box-shadow: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link svg{
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link:hover{
    background: rgba(255,255,255,0.08) !important;
    color: #FFFFFF !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link.active{
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    box-shadow: 0 12px 26px rgba(255,255,255,0.14), 0 12px 24px rgba(0,0,0,0.18) !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link.active svg{
    background: transparent !important;
    color: currentColor !important;
    box-shadow: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link:not(.active){
    background: transparent !important;
    color: rgba(255,255,255,0.72) !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link{
    width: var(--mobile-home-block-w) !important;
    min-width: var(--mobile-home-block-w) !important;
    height: 68px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 28px !important;
    background: transparent !important;
    color: rgba(255,255,255,0.94) !important;
    box-shadow: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link:hover{
    background: transparent !important;
    color: #FFFFFF !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link svg{
    width: 22px !important;
    height: 22px !important;
    padding: 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.09) !important;
    box-sizing: content-box !important;
    margin: 0 !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link.active{
    background: transparent !important;
    color: #FFFFFF !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link.active svg{
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    box-shadow: 0 12px 24px rgba(255,255,255,0.16);
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link:not(.active){
    background: transparent !important;
    color: rgba(255,255,255,0.94) !important;
  }

  .main-content > main.container-full-width,
  .main-content > main.container{
    padding-top: 0 !important;
  }
}


@supports (height: 100dvh){
  @media (max-width: 768px){
    .app-container{
      min-height: 100dvh !important;
      height: 100dvh !important;
      max-height: 100dvh !important;
    }
  }
}

@supports (height: 100svh){
  @media (max-width: 768px){
    .app-container{
      min-height: 100svh !important;
      height: 100svh !important;
      max-height: 100svh !important;
    }
  }
}

/* =========================================================
   Persistent shell host + embedded content mode
   ========================================================= */
body.page-shell-host .main-content{
  overflow: hidden !important;
}

.ops-shell-host-main{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0 !important;
}

.ops-shell-frame-wrap{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
  background: transparent;
}

.ops-shell-frame{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.ops-shell-loading{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  justify-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.94) 100%);
  z-index: 2;
  transition: opacity .18s ease;
}

.ops-shell-frame-wrap:not(.is-loading) .ops-shell-loading{
  opacity: 0;
  pointer-events: none;
}

.ops-shell-loading__spinner{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(15, 23, 42, 0.10);
  border-top-color: #ff8d2c;
  animation: ops-shell-spin .8s linear infinite;
}

.ops-shell-loading__text{
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

@keyframes ops-shell-spin{
  to { transform: rotate(360deg); }
}



body.shell-embedded .app-container{
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  min-height: 100% !important;
  height: 100% !important;
  max-height: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.shell-embedded .sidebar,
body.shell-embedded .sidebar-backdrop,
body.shell-embedded .main-header,
body.shell-embedded #floatingSearchPanel,
body.shell-embedded #notifPanel,
body.shell-embedded #userMenuPanel,
body.shell-embedded .notif-wrap,
body.shell-embedded .header-user,
body.shell-embedded .account-mini{
  display: none !important;
}

body.shell-embedded .main-content{
  margin-left: 0 !important;
  min-height: 100% !important;
  height: 100% !important;
  max-height: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.shell-embedded .main-content > main{
  height: 100% !important;
  max-height: 100% !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 0 24px !important;
}

body.shell-embedded .main-content > main.tasks-v2-main,
body.shell-embedded .main-content > main.container-full-width{
  padding: 0 !important;
}

@media (max-width: 768px){
  .ops-shell-host-main{
    padding-bottom: 0 !important;
    background: transparent !important;
  }

  body.page-shell-host .main-content,
  body.page-shell-host .ops-shell-host-main,
  body.page-shell-host .ops-shell-frame-wrap,
  body.page-shell-host .ops-shell-frame{
    background: transparent !important;
  }

  .ops-shell-frame-wrap{
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.shell-embedded .main-content > main,
  body.shell-embedded .main-content > main.tasks-v2-main,
  body.shell-embedded .main-content > main.container-full-width{
    /* Let the mobile dock float over the content instead of reserving a large
       white strip beneath it. */
    padding-bottom: var(--mobile-main-bottom-space) !important;
    scroll-padding-bottom: var(--mobile-main-scroll-space) !important;
  }
}

/* =====================================================
   Hard Refresh feedback overlay
   ===================================================== */
body.ops-hard-refresh-active{
  cursor: wait;
}

/* Keep Hard Refresh / first dashboard boot as ONE clean loading screen.
   The app chrome is hidden until account permissions, header/sidebar, and the
   optional persistent shell are fully ready, so Home/sidebar never appear
   half-loaded behind the loading card. */
body.ops-hard-refresh-active .app-container,
body.ops-chrome-booting .app-container,
body.ops-login-splash-active .app-container{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ops-hard-refresh-overlay{
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96) 48%, rgba(241, 245, 249, 0.98) 100%),
    #F8FAFC;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ops-hard-refresh-overlay[hidden]{
  display: none !important;
}

.ops-hard-refresh-card{
  width: min(92vw, 390px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24), 0 10px 28px rgba(15, 23, 42, 0.12);
  animation: opsHardRefreshCardIn 180ms ease-out both;
}

.ops-hard-refresh-card__icon{
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.9));
  color: #EA580C;
  flex: 0 0 auto;
}

.ops-hard-refresh-spinner,
.user-menu-item .umi-spinner{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  animation: opsHardRefreshSpin 800ms linear infinite;
}

.ops-hard-refresh-card__copy{
  min-width: 0;
}

.ops-hard-refresh-card__title{
  color: #0F172A;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ops-hard-refresh-card__message{
  margin-top: 4px;
  color: #64748B;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.user-menu-item .umi-spinner{
  display: none;
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.user-menu-item.is-loading .umi-ico > svg,
.user-menu-item.is-loading .umi-ico > i{
  display: none;
}

.user-menu-item.is-loading .umi-spinner{
  display: inline-block;
}

@keyframes opsHardRefreshSpin{
  to{ transform: rotate(360deg); }
}

@keyframes opsHardRefreshCardIn{
  from{ opacity: 0; transform: translateY(8px) scale(0.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   App download window from the profile menu
   ========================================================= */
.user-menu-item.user-menu-item--app{
  background: rgba(239,246,255,0.96);
  color: #1D4ED8;
}

.user-menu-item.user-menu-item--app:hover{
  background: rgba(219,234,254,0.98);
}

.user-menu-item.user-menu-item--app .umi-ico{
  color: #2563EB;
}







@keyframes appDownloadPopIn{
  from{ opacity: 0; transform: translateY(10px) scale(.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}



















































































/* Mail shortcut is header-only; match the other circular topbar controls. */



.header-message-btn.is-active{
  background: #0b1020 !important;
  color: #fff !important;
}



/* =========================================================
   Mobile dock transparent clearance
   - Keep the dock floating with only its black frames.
   - Do not create a white painted shelf behind the dock.
   - Keep enough scroll/focus clearance by extending the final content block
     instead of padding the whole white main surface.
   ========================================================= */
@media (max-width: 768px){
  :root{
    --mobile-content-dock-clearance: calc(106px + env(safe-area-inset-bottom, 0px));
    --mobile-content-focus-clearance: calc(126px + env(safe-area-inset-bottom, 0px));
    --mobile-main-bottom-space: max(14px, env(safe-area-inset-bottom, 0px));
  }

  .main-content > main,
  .main-content > main.container,
  .main-content > main.container-full-width,
  body.shell-embedded .main-content > main,
  body.shell-embedded .main-content > main.tasks-v2-main,
  body.shell-embedded .main-content > main.container-full-width{
    padding-bottom: var(--mobile-main-bottom-space) !important;
    scroll-padding-bottom: var(--mobile-content-focus-clearance) !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  .main-content > main > :last-child{
    scroll-margin-bottom: var(--mobile-content-focus-clearance) !important;
  }

  /* Home ends with a navy scope card inside .home-grid.
     Add the scroll-safe space inside that final card, so the dock area is not
     painted as a separate white frame. */
  .main-content > main.container-full-width > .home-grid::after{
    content: none !important;
    display: none !important;
  }

  .main-content > main.container-full-width > .home-grid > :last-child::after{
    content: "";
    display: block;
    height: var(--mobile-content-dock-clearance);
    pointer-events: none;
    background: transparent !important;
  }

  .sidebar,
  body.sidebar-collapsed .sidebar,
  .sidebar.mobile-dock-structured-host{
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .sidebar.mobile-dock-structured-host .sidebar-nav,
  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail,
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-clip{
    background-clip: padding-box !important;
  }
}

/* Global compact transparent 3-dot action buttons */
:is(.ua-member-menu-btn, .msg-inbox-more-btn, .proposal-folder-menu-btn, .school-folder__menu-btn, .tv2-checkpoint-card__menu-btn) {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #0b1220 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

:is(.ua-member-menu-btn, .msg-inbox-more-btn, .proposal-folder-menu-btn, .school-folder__menu-btn, .tv2-checkpoint-card__menu-btn):hover,
:is(.ua-member-menu-btn, .msg-inbox-more-btn, .proposal-folder-menu-btn, .school-folder__menu-btn, .tv2-checkpoint-card__menu-btn)[aria-expanded="true"],
.tv2-checkpoint-card__menu-btn.is-open {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0b1220 !important;
  box-shadow: none !important;
  transform: none !important;
}

:is(.ua-member-menu-btn, .msg-inbox-more-btn, .proposal-folder-menu-btn, .school-folder__menu-btn, .tv2-checkpoint-card__menu-btn) svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 3.4 !important;
}

/* Larger tap target for folder 3-dot actions (Kits / Proposals). */
.proposal-folder-menu-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
}

:is(.msg-inbox-more-dots, .proposal-menu-dots, .ua-member-menu-dots) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0b1220 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 1px !important;
}

/* Compact user card 3-dot override */
.ua-member-menu-btn {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
}
.ua-member-menu-dots {
  font-size: 15px !important;
  letter-spacing: 0.6px !important;
}

/* Global icon-only back buttons */
:is(.ua-back-btn, .back-link-btn, .order-type-back, .cart-back-btn, .products-back-btn, .msg-back-mobile) {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0b1220 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
  text-decoration: none !important;
}
:is(.ua-back-btn, .back-link-btn, .order-type-back, .cart-back-btn, .products-back-btn, .msg-back-mobile):hover {
  background: #fff !important;
  transform: translateY(-1px) !important;
}
:is(.ua-back-btn, .back-link-btn, .order-type-back, .cart-back-btn, .products-back-btn, .msg-back-mobile) > span:not(.back-btn-icon) {
  display: none !important;
}
:is(.ua-back-btn, .back-link-btn, .order-type-back, .cart-back-btn, .products-back-btn, .msg-back-mobile) svg {
  width: 19px !important;
  height: 19px !important;
  stroke-width: 3 !important;
}
:is(.order-type-back, .cart-back-btn) .back-btn-icon {
  width: auto !important;
  height: auto !important;
}

/* Final compact 3-dot user-card action */
.ua-member-menu-btn {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
}
.ua-member-menu-dots {
  font-size: 13px !important;
  letter-spacing: 0.35px !important;
}


/* Shared no-data empty state */
.ops-no-data-state{
  width:100%;
  min-height:clamp(280px, 48vh, 560px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:34px 18px;
  text-align:center;
  color:#64748b;
  box-sizing:border-box;
}
.ops-no-data-state--compact{
  min-height:190px;
  padding:24px 14px;
}
.ops-no-data-state__image{
  width:min(190px, 40vw);
  max-width:190px;
  height:auto;
  object-fit:contain;
  display:block;
  opacity:.96;
  filter:drop-shadow(0 18px 32px rgba(15,23,42,.08));
}
.ops-no-data-state--compact .ops-no-data-state__image{
  width:min(150px, 34vw);
  max-width:150px;
}
.ops-no-data-state__text{
  font-size:16px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:.01em;
  color:#64748b;
}
@media (max-width:768px){
  .ops-no-data-state{
    min-height:clamp(300px, 52vh, 540px);
    padding:28px 14px;
  }
  .ops-no-data-state__image{
    width:min(150px, 44vw);
  }
  .ops-no-data-state__text{
    font-size:14px;
  }
}


/* Arabic/LTR auto-direction support for text input across the app */
.ops-auto-dir-rtl{
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext;
}
.ops-auto-dir-ltr{
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext;
}
textarea.ops-auto-dir-rtl,
input.ops-auto-dir-rtl{
  padding-inline-start: 16px;
  padding-inline-end: 16px;
}

.ops-bidi-text{
  unicode-bidi: plaintext;
}
.ops-bidi-wrap,
.ops-bidi-run{
  unicode-bidi: isolate;
}
.ops-bidi-wrap{
  display: inline;
}

/* =========================================================
   Header panels polish
   - More breathing space between App and Hard Refresh actions
   - Smooth open/close motion for Search, Notifications, and User menu
   ========================================================= */
.user-menu-item.user-menu-item--refresh{
  margin-top: 10px;
}

.user-menu-panel,
.notif-panel,
.floating-search-panel{
  pointer-events: none;
}

.user-menu-panel.is-open,
.notif-panel.is-open,
.floating-search-panel.is-open{
  pointer-events: auto;
}

.user-menu-shell{
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transition: opacity 210ms cubic-bezier(.22, 1, .36, 1), transform 210ms cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.user-menu-panel.is-open .user-menu-shell{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.user-menu-panel:not([hidden]) .user-menu-shell{
  animation: none !important;
}

.notif-center-shell{
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 210ms cubic-bezier(.22, 1, .36, 1), transform 210ms cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.notif-panel.is-open .notif-center-shell{
  opacity: 1;
  transform: translateY(0) scale(1);
}



@media (prefers-reduced-motion: reduce){
  .user-menu-shell,
  .notif-center-shell,
  .floating-search-panel{
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   Mobile bottom dock safe scroll clearance
   - Keep the final page content above the fixed mobile sidebar/dock.
   - Proposals already owns its page-specific bottom clearance, so it is
     excluded to avoid adding double empty space.
   - Order detail modals also get internal scroll clearance so their last
     rows/buttons can be scrolled above the dock.
   ========================================================= */
@media (max-width: 768px){
  :root{
    /* Bottom dock size: 80px height + 18px bottom offset + ~8px (2mm) breathing room. */
    --mobile-dock-safe-clearance: calc(106px + env(safe-area-inset-bottom, 0px));
    --mobile-dock-safe-focus-clearance: calc(126px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.proposals-page) .main-content > main,
  body:not(.proposals-page) .main-content > main.container,
  body:not(.proposals-page) .main-content > main.container-full-width,
  body:not(.proposals-page).shell-embedded .main-content > main,
  body:not(.proposals-page).shell-embedded .main-content > main.tasks-v2-main,
  body:not(.proposals-page).shell-embedded .main-content > main.container-full-width{
    padding-bottom: var(--mobile-dock-safe-clearance) !important;
    scroll-padding-bottom: var(--mobile-dock-safe-focus-clearance) !important;
  }

  body:not(.proposals-page) .main-content > main > :last-child{
    scroll-margin-bottom: var(--mobile-dock-safe-focus-clearance) !important;
  }

  body.order-modal-fit-screen .co-modal-dialog{
    scroll-padding-bottom: var(--mobile-dock-safe-focus-clearance) !important;
  }

  body.order-modal-fit-screen .co-modal-dialog::after{
    content: "";
    display: block;
    height: var(--mobile-dock-safe-clearance);
    min-height: var(--mobile-dock-safe-clearance);
    pointer-events: none;
  }
}

/* =========================================================
   Mobile floating windows safe clearance
   - Keep small overlays above the fixed mobile bottom dock.
   - Covers Expenses View All, Cash Out expense dialogs,
     Expenses by User details sheet, and Add Team Member form.
   ========================================================= */
@media (max-width: 768px){
  :root{
    --ops-mobile-overlay-top-gap: calc(env(safe-area-inset-top, 0px) + 10px);
    --ops-mobile-overlay-dock-gap: calc(128px + env(safe-area-inset-bottom, 0px));
    --ops-mobile-floating-window-height: calc(100dvh - var(--ops-mobile-overlay-top-gap) - var(--ops-mobile-overlay-dock-gap) - 12px);
  }

  /* Center floating windows inside the safe viewport, not behind the dock. */
  #allExpenses.ios-modal,
  #cashOutOrderModal.ex-modal,
  #cashOutModal.ex-modal,
  #userExpensesModal.ios-modal,
  .user-access-page #uaMemberFormModal.ua-modal-overlay{
    align-items: center !important;
    justify-content: center !important;
    padding: var(--ops-mobile-overlay-top-gap) 14px var(--ops-mobile-overlay-dock-gap) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Give the sheets/cards a compact centered size that cannot exceed the dock. */
  #allExpenses .ios-sheet,
  #userExpensesModal .ios-sheet,
  #cashOutOrderModal .ex-modal-box,
  #cashOutModal .ex-modal-box,
  .user-access-page #uaMemberFormModal .ua-modal{
    width: min(100%, 560px) !important;
    max-width: calc(100vw - 28px) !important;
    max-height: var(--ops-mobile-floating-window-height) !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28) !important;
  }

  /* View All + Expenses by User sheets keep their content scrollable internally. */
  #allExpenses .ios-sheet,
  #userExpensesModal .ios-sheet{
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 18px 16px 16px !important;
  }

  #allExpensesList,
  #userExpensesScroll.sheet-scroll{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 14px !important;
  }

  /* Cash Out windows scroll inside the safe card instead of under the dock. */
  #cashOutOrderModal .ex-modal-box,
  #cashOutModal .ex-modal-box{
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 18px 16px 16px !important;
  }

  #cashOutOrderModal .ex-modal-actions,
  #cashOutModal .ex-modal-actions{
    position: sticky !important;
    bottom: -1px !important;
    z-index: 4 !important;
    padding-top: 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), #ffffff 45%) !important;
    backdrop-filter: blur(10px) !important;
  }

  /* Add Team Member modal: header/actions remain visible, body scrolls safely. */
  .user-access-page #uaMemberFormModal .ua-modal{
    overflow: hidden !important;
  }

  .user-access-page #uaMemberFormModal .ua-modal__body{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .user-access-page #uaMemberFormModal .ua-modal__actions{
    flex: 0 0 auto !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), #ffffff 48%) !important;
    backdrop-filter: blur(10px) !important;
  }
}

/* =========================================================
   Mobile page-end whitespace trim
   - Removes the extra blank scroll area after the last page content.
   - Keeps only a small natural gap; the fixed bottom dock still floats above.
   - Order detail modals use the same compact end gap.
   ========================================================= */
@media (max-width: 768px){
  :root{
    --mobile-page-end-gap: calc(32px + env(safe-area-inset-bottom, 0px));
    --mobile-page-focus-gap: calc(126px + env(safe-area-inset-bottom, 0px));
    --mobile-order-modal-end-gap: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.proposals-page) .main-content > main,
  body:not(.proposals-page) .main-content > main.container,
  body:not(.proposals-page) .main-content > main.container-full-width,
  body:not(.proposals-page).shell-embedded .main-content > main,
  body:not(.proposals-page).shell-embedded .main-content > main.tasks-v2-main,
  body:not(.proposals-page).shell-embedded .main-content > main.container-full-width{
    padding-bottom: var(--mobile-page-end-gap) !important;
    scroll-padding-bottom: var(--mobile-page-focus-gap) !important;
  }

  body:not(.proposals-page) .main-content > main > :last-child{
    scroll-margin-bottom: 0 !important;
  }

  .main-content > main.container-full-width > .home-grid::after,
  .main-content > main.container-full-width > .home-grid > :last-child::after{
    content: none !important;
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  body.order-modal-fit-screen .co-modal-dialog{
    scroll-padding-bottom: var(--mobile-page-focus-gap) !important;
  }

  body.order-modal-fit-screen .co-modal-dialog::after{
    content: "";
    display: block;
    height: var(--mobile-order-modal-end-gap) !important;
    min-height: var(--mobile-order-modal-end-gap) !important;
    pointer-events: none;
  }
}

/* =========================================================
   Global mobile viewport scroller + dock balance
   - Apply the approved Home behavior to all dashboard pages.
   - The page scroller starts below the fixed header and ends above the
     floating bottom dock, so the last content row reaches the dock top
     without creating a large white scroll tail.
   - Keep the bottom dock background/shape unchanged; only its vertical
     position is balanced.
   ========================================================= */
@media (max-width: 768px){
  .main-content,
  body.shell-embedded .main-content{
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .main-content > main,
  .main-content > main.container,
  .main-content > main.container-full-width,
  .main-content > main.page-body,
  .main-content > main.tasks-v2-main,
  body.shell-embedded .main-content > main,
  body.shell-embedded .main-content > main.container,
  body.shell-embedded .main-content > main.container-full-width,
  body.shell-embedded .main-content > main.page-body,
  body.shell-embedded .main-content > main.tasks-v2-main{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 0 !important;
    scroll-padding-bottom: 0 !important;
  }

  .sidebar,
  body.sidebar-collapsed .sidebar,
  .sidebar.mobile-dock-structured-host{
    bottom: calc(env(safe-area-inset-bottom, 0px) + 9px) !important;
  }
}


/* Notification center update: Mark all in header, See All under cards, swipe-to-read */
.notif-center-markall{
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #0B1020;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 12px 26px rgba(15,23,42,0.14);
  cursor: pointer;
  white-space: nowrap;
}
.notif-center-markall:hover{ filter: brightness(1.04); }
.notif-center-markall:disabled,
.notif-center-markall.is-disabled{
  opacity: .52;
  cursor: default;
  filter: none;
}
.notif-center-footer{
  display: flex;
  justify-content: center;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.notif-center-footer .notif-center-seeall{
  min-width: 148px;
  justify-content: center;
  cursor: pointer;
}
.notif-center-footer .notif-center-seeall:disabled,
.notif-center-footer .notif-center-seeall.is-disabled{
  opacity: .52;
  cursor: default;
  filter: none;
}
.notif-row{
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  transform: translateX(var(--notif-swipe-x, 0px));
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  border-radius: 16px;
}
.notif-row.is-swiping{
  transition: none;
  background: rgba(34, 197, 94, 0.09);
  box-shadow: inset 4px 0 0 rgba(34, 197, 94, 0.35);
}
.notif-row.is-swipe-read{
  background: rgba(34, 197, 94, 0.12);
}

.notif-row.is-swiping .notif-row__swipe-hint{
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 480px){
  .notif-center-head{
    gap: 10px;
  }
  .notif-center-title{
    font-size: 15px;
  }
  .notif-center-markall{
    padding: 8px 10px;
    font-size: 11.5px;
  }
}

/* Notification swipe polish: keep the read action behind the card so labels never overlap. */
.notif-panel__list{
  overflow-x: hidden !important;
}
.notif-row{
  position: relative !important;
  display: block !important;
  width: 100%;
  min-height: 66px;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #F8FAFC !important;
  text-align: left;
  transform: none !important;
  touch-action: pan-y;
  isolation: isolate;
}
.notif-row + .notif-row{
  margin-top: 8px;
  border-top: 0 !important;
}

.notif-row.is-unread .notif-row__surface{
  background: #FFFFFF;
}
.notif-row.is-swiping{
  background: rgba(34, 197, 94, 0.10) !important;
  box-shadow: none !important;
}
.notif-row.is-swiping .notif-row__surface{
  transition: none;
  box-shadow: 0 12px 24px rgba(15,23,42,0.08);
}
.notif-row.is-swipe-read .notif-row__surface{
  background: rgba(240, 253, 244, 0.96);
  border-color: rgba(34, 197, 94, 0.26);
}


.notif-row__content{
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.notif-row__title{
  min-width: 0;
  max-width: 100%;
}

.notif-row__time{
  flex: 0 0 auto;
}
@media (max-width: 480px){
  .notif-row{ min-height: 64px; }
  
  
}

/* Shared icon-only after-login transition.
   The login logo breaks into square tiles, flies apart, then reassembles before Home opens. */
body.login-success-active {
  overflow: hidden !important;
}



























@keyframes loginSplashFadeIn {
  to { opacity: 1; }
}

@keyframes loginLogoTravel {
  0% {
    transform:
      translate(calc(var(--logo-start-x) - 50vw), calc(var(--logo-start-y) - 50vh))
      scale(var(--logo-start-scale));
    filter: blur(0);
  }
  18% {
    transform: translate(0, 0) scale(1);
    filter: blur(0);
  }
  66% {
    transform: translate(0, 0) scale(1.02);
  }
  88% {
    transform: translate(0, 0) scale(.98);
  }
  100% {
    transform: translate(0, 0) scale(1.08);
  }
}

@keyframes loginLogoPieceBreak {
  0%, 22% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  42% {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.92);
    opacity: .94;
    filter: blur(.15px);
  }
  63% {
    transform: translate(var(--mx), var(--my)) rotate(var(--mrot)) scale(1.05);
    opacity: 1;
    filter: blur(0);
  }
  82%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes loginLogoSolidReveal {
  0%, 68% {
    opacity: 0;
    transform: scale(.94);
  }
  82% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loginLogoHalo {
  0% { opacity: 0; transform: scale(.55) rotate(0deg); }
  24% { opacity: .95; transform: scale(1) rotate(45deg); }
  62% { opacity: .85; transform: scale(1.12) rotate(90deg); }
  100% { opacity: .96; transform: scale(1.04) rotate(135deg); }
}

@keyframes loginLogoAura {
  from { opacity: 0; transform: scale(.46); }
  38% { opacity: 1; }
  to { opacity: .78; transform: scale(1.02); }
}

@keyframes loginLogoOuterRing {
  0% { opacity: 0; transform: scale(.38) rotate(0deg); }
  30% { opacity: .85; }
  100% { opacity: .58; transform: scale(1.08) rotate(90deg); }
}

@keyframes loginLogoAmbient {
  from { transform: translate3d(-1%, -1%, 0) rotate(0deg); }
  to { transform: translate3d(1.5%, 1%, 0) rotate(3deg); }
}

@media (max-width: 560px) {
  
}

@media (prefers-reduced-motion: reduce) {
  
}

/* =========================================
   Sidebar selected icon shape v2
   - Makes the active sidebar icon use the framed white squircle shape
     shown in the latest design reference across the whole system.
   ========================================= */
.sidebar .sidebar-nav .nav-link{
  position: relative !important;
  box-sizing: border-box !important;
  border: 1px solid transparent !important;
}

.sidebar .sidebar-nav .nav-link svg{
  stroke-width: 2.35 !important;
}

.sidebar .sidebar-nav .nav-link.active{
  background: #FFFFFF !important;
  color: #0B0C10 !important;
  border-color: rgba(255,255,255,0.92) !important;
  box-shadow:
    inset 0 0 0 1.4px rgba(11,12,16,0.86),
    0 0 0 1px rgba(255,255,255,0.78),
    0 16px 30px rgba(0,0,0,0.28) !important;
}

.sidebar .sidebar-nav .nav-link.active svg{
  color: #0B0C10 !important;
  stroke: currentColor !important;
}

@media (min-width: 901px){
  .sidebar .sidebar-nav .nav-link.active{
    width: 62px !important;
    height: 62px !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 900px){
  .sidebar .sidebar-nav .nav-link.active,
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link.active{
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    border-color: rgba(255,255,255,0.92) !important;
    box-shadow:
      inset 0 0 0 1.2px rgba(11,12,16,0.84),
      0 0 0 1px rgba(255,255,255,0.72),
      0 12px 24px rgba(0,0,0,0.22) !important;
  }

  .sidebar .sidebar-nav .nav-link.active svg,
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link.active svg{
    background: transparent !important;
    color: currentColor !important;
    stroke: currentColor !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   Global floating-background experiment
   - Extends the user cover/system background further down every dashboard page.
   - Removes large list/wrapper surfaces so inner cards float directly on the background.
   ========================================================= */
body.ops-has-system-cover:not(.shell-embedded) .main-content::before{
  height: clamp(360px, 46vh, 540px);
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.03) 0%,
      rgba(255,255,255,0.14) 42%,
      rgba(255,255,255,0.48) 76%,
      #FFFFFF 100%),
    var(--ops-system-cover-image);
}

body.ops-has-system-cover:not(.shell-embedded) .main-content::after{
  height: clamp(390px, 50vh, 580px);
  background:
    radial-gradient(circle at 74% 6%, rgba(255,255,255,0.28), transparent 34%),
    linear-gradient(180deg,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.12) 56%,
      rgba(255,255,255,0.68) 88%,
      #FFFFFF 100%);
}

body.ops-has-system-cover:not(.shell-embedded) #current-orders.card,
body.ops-has-system-cover:not(.shell-embedded) #sv-orders.card,
body.ops-has-system-cover:not(.shell-embedded).operations-orders-page .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded)[data-orders-view="maintenance"] .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded).page-maintenance-orders .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded).page-orders-maintenance .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded) .main-content > main.container-full-width > section.card:has(.groups-grid),
body.ops-has-system-cover:not(.shell-embedded) .history-list-card,
body.ops-has-system-cover:not(.shell-embedded) .backup-list-card,
body.ops-has-system-cover:not(.shell-embedded) .products-group,
body.ops-has-system-cover:not(.shell-embedded) .products-loading-card,
body.ops-has-system-cover:not(.shell-embedded) .products-empty,
body.ops-has-system-cover:not(.shell-embedded) .products-error,
body.ops-has-system-cover:not(.shell-embedded) .products-proposals-view.proposals-folders-card,
body.ops-has-system-cover:not(.shell-embedded) .b2b-card-shell.b2b-folders-card,
body.ops-has-system-cover:not(.shell-embedded) .ua-folders-panel,
body.ops-has-system-cover:not(.shell-embedded) .ua-members-panel{
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.ops-has-system-cover:not(.shell-embedded) #current-orders.card,
body.ops-has-system-cover:not(.shell-embedded) #sv-orders.card,
body.ops-has-system-cover:not(.shell-embedded).operations-orders-page .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded)[data-orders-view="maintenance"] .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded).page-maintenance-orders .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded).page-orders-maintenance .page-body > section.card,
body.ops-has-system-cover:not(.shell-embedded) .main-content > main.container-full-width > section.card:has(.groups-grid){
  padding: 0 4px 18px !important;
}

body.ops-has-system-cover:not(.shell-embedded) #orders-list,
body.ops-has-system-cover:not(.shell-embedded) #requested-list,
body.ops-has-system-cover:not(.shell-embedded) #sv-list,
body.ops-has-system-cover:not(.shell-embedded) #stock-groups,
body.ops-has-system-cover:not(.shell-embedded) .groups-grid,
body.ops-has-system-cover:not(.shell-embedded) .history-list,
body.ops-has-system-cover:not(.shell-embedded) .backup-grid,
body.ops-has-system-cover:not(.shell-embedded) .products-grid,
body.ops-has-system-cover:not(.shell-embedded) .products-proposal-folders,
body.ops-has-system-cover:not(.shell-embedded) .b2b-grid,
body.ops-has-system-cover:not(.shell-embedded) .ua-folder-grid,
body.ops-has-system-cover:not(.shell-embedded) .ua-members-grid{
  position: relative;
  z-index: 1;
}


/* =========================================================
   Orders pages dock-style status toolbar
   - Current Orders + Operations Orders + Orders Review only
   - Places the type filter on the right as an icon-only rail
   - Makes status tabs an icon-only white dock with black tabs
   ========================================================= */
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 12px 0 18px !important;
  padding: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  isolation: isolate !important;
  position: relative !important;
  z-index: 70 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter{
  order: 2 !important;
  flex: 0 0 88px !important;
  width: 88px !important;
  height: 76px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 4 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button{
  width: 88px !important;
  min-width: 88px !important;
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  border: none !important;
  border-radius: 30px !important;
  background: #FFFFFF !important;
  color: #0B0C10 !important;
  box-shadow: 0 18px 40px rgba(15,23,42,0.14) !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button:hover,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter.is-open .orders-type-filter__button,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter.is-filtered .orders-type-filter__button{
  background: #FFFFFF !important;
  color: #0B0C10 !important;
  border: none !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-icon{
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0B0C10 !important;
  color: #FFFFFF !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-icon svg{
  width: 23px !important;
  height: 23px !important;
  stroke-width: 2.4 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter.is-filtered .orders-type-filter__button-icon,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter.is-open .orders-type-filter__button-icon{
  background: #0B0C10 !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 24px rgba(15,23,42,0.18) !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-label,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .order-status-tab__label{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-dot{
  position: absolute !important;
  right: 18px !important;
  top: 18px !important;
  width: 9px !important;
  height: 9px !important;
  background: #FF5A1F !important;
  box-shadow: 0 0 0 4px rgba(255,90,31,0.18) !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar__divider{
  order: 1 !important;
  flex: 0 0 10px !important;
  width: 10px !important;
  height: 26px !important;
  display: block !important;
  align-self: center !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  box-shadow: 0 8px 14px rgba(15,23,42,0.10) !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar__scroll{
  order: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 76px !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 30px !important;
  background: #FFFFFF !important;
  box-shadow: 0 18px 40px rgba(15,23,42,0.14) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar__scroll::-webkit-scrollbar{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .portfolio-tabs{
  --orders-active-tab-opacity: 0 !important;
  width: max-content !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 76px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .portfolio-tabs::before{
  content: none !important;
  display: none !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio{
  flex: 0 0 52px !important;
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  background: transparent !important;
  color: #0B0C10 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio:hover{
  background: rgba(15,23,42,0.08) !important;
  color: #0B0C10 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio.active,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio.is-active,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio[aria-selected="true"]{
  background: #0B0C10 !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 26px rgba(15,23,42,0.18) !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .order-status-tab__icon,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio.active .order-status-tab__icon,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio.is-active .order-status-tab__icon,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio[aria-selected="true"] .order-status-tab__icon{
  width: 24px !important;
  height: 24px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .order-status-tab__icon svg{
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.35 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__panel{
  top: calc(100% + 12px) !important;
  left: auto !important;
  right: 0 !important;
  z-index: 9999 !important;
}

@media (max-width: 768px){
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar{
    gap: 10px !important;
    margin: 10px 0 18px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter,
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button{
    flex-basis: 74px !important;
    width: 74px !important;
    min-width: 74px !important;
    height: 68px !important;
    min-height: 68px !important;
    border-radius: 26px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-icon{
    width: 42px !important;
    height: 42px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-icon svg{
    width: 22px !important;
    height: 22px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar__divider{
    flex-basis: 8px !important;
    width: 8px !important;
    height: 24px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar__scroll{
    height: 68px !important;
    padding: 0 8px !important;
    border-radius: 26px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .portfolio-tabs{
    min-height: 68px !important;
    gap: 8px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio{
    flex-basis: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 17px !important;
  }
}

@media (max-width: 420px){
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar{
    gap: 8px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter,
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button{
    flex-basis: 66px !important;
    width: 66px !important;
    min-width: 66px !important;
    height: 62px !important;
    min-height: 62px !important;
    border-radius: 24px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-icon{
    width: 38px !important;
    height: 38px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar__scroll{
    height: 62px !important;
    border-radius: 24px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .portfolio-tabs{
    min-height: 62px !important;
    gap: 7px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .tab-portfolio{
    flex-basis: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 16px !important;
  }

  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar .order-status-tab__icon svg{
    width: 20px !important;
    height: 20px !important;
  }
}


/* Orders toolbar v2: keep filter dropdown above the floating order cards. */
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-toolbar + section.card{
  position: relative !important;
  z-index: 1 !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter.is-open{
  z-index: 10000 !important;
}


/* =========================================================
   Sidebar page dock restore v4
   Scope: real page sidebar only. Do not touch order status tabs.
   ========================================================= */
.sidebar .sidebar-nav .nav-link:not(.active){
  background: transparent !important;
  color: rgba(255,255,255,0.72) !important;
  border: 2px solid transparent !important;
  box-shadow: none !important;
}

.sidebar .sidebar-nav .nav-link:not(.active):hover{
  background: rgba(255,255,255,0.08) !important;
  color: #FFFFFF !important;
}

.sidebar .sidebar-nav .nav-link:not(.active) svg{
  color: currentColor !important;
  stroke: currentColor !important;
}

.sidebar .sidebar-nav .nav-link.active{
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  min-height: 60px !important;
  border-radius: 22px !important;
  background: #FFFFFF !important;
  color: #0B0C10 !important;
  border: 2px solid #0B0C10 !important;
  box-sizing: border-box !important;
  box-shadow: 0 12px 26px rgba(255,255,255,0.12), 0 10px 24px rgba(0,0,0,0.18) !important;
}

.sidebar .sidebar-nav .nav-link.active svg{
  color: currentColor !important;
  stroke: currentColor !important;
}

@media (max-width: 900px){
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link:not(.active),
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link:not(.active) svg{
    color: rgba(255,255,255,0.72) !important;
    stroke: currentColor !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link.active{
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    border: 2px solid #0B0C10 !important;
    box-shadow: 0 12px 26px rgba(255,255,255,0.14), 0 12px 24px rgba(0,0,0,0.18) !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link.active svg{
    color: currentColor !important;
    stroke: currentColor !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link.active{
    background: transparent !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link.active svg{
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    stroke: currentColor !important;
    box-shadow: 0 12px 24px rgba(255,255,255,0.16) !important;
  }
}

/* Orders toolbar v4: keep the filter as a plain black icon on white, and include Maintenance Orders. */
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter__button-icon,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter.is-open .orders-type-filter__button-icon,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page, body[data-orders-view="maintenance"], body.page-orders-maintenance-orders) .orders-type-filter.is-filtered .orders-type-filter__button-icon{
  background: transparent !important;
  color: #0B0C10 !important;
  box-shadow: none !important;
}

/* =========================================================
   Sidebar page selected label consistency v5
   Scope: page sidebar / mobile page dock only.
   Do NOT target .orders-toolbar or order status tabs.
   - Restores the white selected page label with a visible black frame.
   - Normalizes the first mobile page item (Current Orders) so it matches the rest.
   ========================================================= */
.sidebar .sidebar-nav .nav-link.active{
  background: #FFFFFF !important;
  color: #0B0C10 !important;
  border: 2px solid #0B0C10 !important;
  box-sizing: border-box !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.84),
    0 0 0 1px rgba(255,255,255,0.72),
    0 14px 28px rgba(0,0,0,0.24) !important;
}

.sidebar .sidebar-nav .nav-link.active svg{
  color: #0B0C10 !important;
  stroke: currentColor !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 901px){
  .sidebar .sidebar-nav .nav-link.active{
    width: 62px !important;
    min-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 900px){
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link.active,
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link.active{
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    border-radius: 24px !important;
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    border: 2px solid #0B0C10 !important;
    box-sizing: border-box !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.84),
      0 0 0 1px rgba(255,255,255,0.72),
      0 12px 24px rgba(0,0,0,0.22) !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link.active svg,
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link.active svg{
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    color: #0B0C10 !important;
    stroke: currentColor !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Keep the separated Home rail in its own design; this rule only restores page labels. */
  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link.active{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
  }

  .sidebar.mobile-dock-structured-host .mobile-dock-home-rail .nav-link.active svg{
    width: 22px !important;
    height: 22px !important;
    padding: 12px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #0B0C10 !important;
    stroke: currentColor !important;
    box-shadow: 0 12px 24px rgba(255,255,255,0.16) !important;
  }
}

@media (max-width: 420px){
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list .nav-link.active,
  .sidebar.mobile-dock-structured-host .mobile-dock-pages-list > li:first-child .nav-link.active{
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    border-radius: 22px !important;
  }
}


/* =========================================================
   2026-06-11: remove persistent white backing cards
   Applies in normal pages AND inside the persistent iframe shell. The previous
   rules were scoped with :not(.shell-embedded), so the white wrapper could
   reappear on tablet/desktop navigation until a hard refresh.
   ========================================================= */
:where(
  body.current-orders-page,
  body.operations-orders-page,
  body.orders-review-page,
  body[data-orders-view="maintenance"],
  body.page-orders-maintenance-orders,
  body.stocktaking-page,
  body.page-stocktaking,
  body.page-orders-new,
  body.user-access-page,
  body.page-user-access
) :where(#current-orders.card, #sv-orders.card, .page-body > section.card, .main-content > main.container-full-width > section.card:has(.groups-grid), .ua-folders-panel, .ua-members-panel){
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

:where(
  body.current-orders-page,
  body.operations-orders-page,
  body.orders-review-page,
  body[data-orders-view="maintenance"],
  body.page-orders-maintenance-orders,
  body.stocktaking-page,
  body.page-stocktaking
) :where(#current-orders.card, #sv-orders.card, .page-body > section.card, .main-content > main.container-full-width > section.card:has(.groups-grid)){
  padding: 0 4px 18px !important;
}

:where(body.page-orders-new, body.shell-embedded.page-orders-new) .order-type-step{
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

:where(body.user-access-page, body.page-user-access) .ua-page-body{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

:where(body.user-access-page, body.page-user-access) :where(.ua-folders-panel, .ua-members-panel){
  padding-left: 0 !important;
  padding-right: 0 !important;
}

:where(body.stocktaking-page, body.page-stocktaking) .main-content > main.container-full-width > section.card > .card-toolbar{
  padding-right: 0 !important;
}

/* =========================================================
   2026-06-18: unified translucent white page background
   - Gives every dashboard page the same 50% white content backdrop
     used by the full-page Add New Customer screen.
   - Keeps existing page cards, logic, layouts, and navigation unchanged.
   ========================================================= */
body:not(.login-page):not(.pwa-offline):not(.pwa-start) .main-content > main{
  background-color: rgba(255, 255, 255, 0.50) !important;
}

/* =========================================================
   2026-06-21: single rounded translucent page canvas
   - Keeps one page-level white background only.
   - The cover remains visible in the breathing room around the canvas.
   - Removes the second solid/gradient white layer previously visible on
     proposals and Expenses by User.
   ========================================================= */
body:not(.login-page):not(.pwa-offline):not(.pwa-start) .main-content{
  background: rgba(15, 23, 42, 0.10) !important;
}

/* The scrolling page itself is the only white page background. */
body:not(.login-page):not(.pwa-offline):not(.pwa-start) .main-content > main{
  margin: 0 14px 14px !important;
  border-radius: 28px !important;
  background-color: rgba(255, 255, 255, 0.50) !important;
  background-clip: padding-box !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07) !important;
}

/* Use the cover as the backdrop around the rounded page canvas, without
   adding another white fade layer behind the content. */
body.ops-has-system-cover:not(.shell-embedded) .main-content::before{
  inset: 0 !important;
  height: auto !important;
  border-radius: var(--ui-radius-main) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.16) 100%),
    var(--ops-system-cover-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  opacity: 0.96 !important;
}

/* Next.js shell only: fit the full saved cover across the system canvas instead of zoom-cropping it. */
body.next-classic-shell-active.ops-has-system-cover:not(.shell-embedded) .main-content::before{
  background-size: 100% 100% !important;
  background-position: center center !important;
}

body.ops-has-system-cover:not(.shell-embedded) .main-content::after{
  display: none !important;
}

/* Proposal has a page wrapper for folder and detail views. It must stay
   transparent so it does not become a second white page layer. */
body.proposals-page .products-shell.proposals-shell,
body.proposals-page .products-proposals-view,
body.proposals-page .proposals-folders-card,
body.proposals-page .products-proposal-detail{
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Expenses by User uses main.expenses-layout directly. Keep its layout only;
   the unified main canvas above supplies the page background. */
.main-content > main.expenses-layout{
  background-image: none !important;
}

@media (max-width: 900px){
  body:not(.login-page):not(.pwa-offline):not(.pwa-start) .main-content > main{
    margin: 0 10px 10px !important;
    border-radius: 24px !important;
  }
}


/* =========================================================
   Selected order-status tab labels
   Current Orders + Operations Orders + Orders Review only.
   Inactive tabs remain icon-only; the active tab expands and shows its name.
   ========================================================= */
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.active,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.is-active,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio[aria-selected="true"]{
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  padding: 0 18px !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.active .order-status-tab__label,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.is-active .order-status-tab__label,
:where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio[aria-selected="true"] .order-status-tab__label{
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  border: 0 !important;
  color: #FFFFFF !important;
  font-size: .82rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -.01em !important;
  white-space: nowrap !important;
}

@media (max-width: 768px){
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.active,
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.is-active,
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio[aria-selected="true"]{
    min-height: 52px !important;
    padding: 0 14px !important;
    gap: 8px !important;
  }
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.active .order-status-tab__label,
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio.is-active .order-status-tab__label,
  :where(body.current-orders-page, body.operations-orders-page, body.orders-review-page) .orders-toolbar .tab-portfolio[aria-selected="true"] .order-status-tab__label{
    font-size: .76rem !important;
  }
}

/* ========================================================================
   Compact modern notifications preview panel
   2026-10-08
   Fixes the bell popup layout on mobile and gives it a smaller, cleaner card
   treatment without changing the full Notifications page.
   ===================================================================== */
.notif-panel.notif-panel--portal{
  width:min(360px, calc(100vw - 28px))!important;
  max-width:min(360px, calc(100vw - 28px))!important;
}

.notif-panel--portal .notif-center-shell{
  width:100%!important;
  padding:8px!important;
  border:1px solid rgba(226,232,240,.72)!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.86)!important;
  -webkit-backdrop-filter:blur(22px)!important;
  backdrop-filter:blur(22px)!important;
  box-shadow:0 20px 54px rgba(15,23,42,.16)!important;
}

.notif-panel--portal .notif-center-card{
  padding:11px!important;
  border:1px solid rgba(226,232,240,.82)!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:none!important;
}

.notif-panel--portal .notif-center-head{
  gap:10px!important;
  margin-bottom:9px!important;
}

.notif-panel--portal .notif-center-title{
  font-size:15px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}

.notif-panel--portal .notif-center-markall{
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:11px!important;
  font-size:10.5px!important;
  box-shadow:none!important;
}

.notif-panel--portal .notif-center-tabs{
  gap:3px!important;
  margin-bottom:9px!important;
  padding:3px!important;
  border:1px solid rgba(226,232,240,.72)!important;
  border-radius:12px!important;
  background:#f3f6fa!important;
}

.notif-panel--portal .notif-tab{
  min-height:34px!important;
  padding:7px 8px!important;
  border-radius:9px!important;
  font-size:11px!important;
  font-weight:850!important;
}

.notif-panel--portal .notif-tab.is-active{
  box-shadow:0 5px 14px rgba(15,23,42,.08)!important;
}

.notif-panel--portal .notif-panel__list{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  max-height:min(330px, 48vh)!important;
  padding:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
}
.notif-panel--portal .notif-panel__list::-webkit-scrollbar{
  display:none!important;
}

/* Override the generic notification-row swipe rules only inside the bell popup.
   The bell preview has a simpler icon/content/time structure. */
.notif-panel--portal .notif-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-height:58px!important;
  margin:0!important;
  padding:8px 9px!important;
  border:1px solid rgba(226,232,240,.75)!important;
  border-radius:14px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
  overflow:hidden!important;
  transform:none!important;
  text-align:left!important;
}

.notif-panel--portal .notif-row + .notif-row{
  margin-top:0!important;
  border-top:1px solid rgba(226,232,240,.75)!important;
}

.notif-panel--portal .notif-row.is-unread{
  background:#fff!important;
  border-color:rgba(249,115,22,.22)!important;
  box-shadow:inset 3px 0 0 rgba(249,115,22,.78)!important;
}

.notif-panel--portal .notif-row__ico{
  width:36px!important;
  height:36px!important;
  border-radius:11px!important;
  background:#fff!important;
  border:1px solid rgba(226,232,240,.88)!important;
  box-shadow:0 4px 10px rgba(15,23,42,.05)!important;
}

.notif-panel--portal .notif-row__ico svg{
  width:16px!important;
  height:16px!important;
}

.notif-panel--portal .notif-row__content{
  min-width:0!important;
  overflow:hidden!important;
}

.notif-panel--portal .notif-row__title{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  font-size:12.5px!important;
  font-weight:950!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.notif-panel--portal .notif-row__body{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#6b7280!important;
}

.notif-panel--portal .notif-row__time{
  align-self:start!important;
  margin:2px 0 0 4px!important;
  font-size:9.5px!important;
  font-weight:800!important;
  color:#9aa3b2!important;
}

.notif-panel--portal .notif-dot{
  width:5px!important;
  height:5px!important;
  background:#f97316!important;
}

.notif-panel--portal .notif-center-footer{
  margin-top:9px!important;
  padding-top:9px!important;
}

.notif-panel--portal .notif-center-footer .notif-center-seeall{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  padding:8px 12px!important;
  border-radius:11px!important;
  font-size:11px!important;
  box-shadow:none!important;
}

@media (max-width:480px){
  .notif-panel.notif-panel--portal{
    width:min(340px, calc(100vw - 24px))!important;
    max-width:min(340px, calc(100vw - 24px))!important;
  }

  .notif-panel--portal .notif-center-shell{
    padding:7px!important;
    border-radius:20px!important;
  }

  .notif-panel--portal .notif-center-card{
    padding:10px!important;
    border-radius:15px!important;
  }

  .notif-panel--portal .notif-panel__list{
    max-height:min(300px, 45vh)!important;
  }

  .notif-panel--portal .notif-row{
    grid-template-columns:34px minmax(0,1fr) auto!important;
    gap:8px!important;
    min-height:55px!important;
    padding:7px 8px!important;
    border-radius:13px!important;
  }

  .notif-panel--portal .notif-row__ico{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
  }
}

html[data-theme="dark"] .notif-panel--portal .notif-center-shell{
  border-color:rgba(71,85,105,.55)!important;
  background:rgba(10,13,18,.88)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.42)!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-center-card{
  border-color:#2b313b!important;
  background:#141820!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-center-tabs{
  border-color:#2b313b!important;
  background:#0f1319!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-tab.is-active{
  background:#252b35!important;
  color:#f8fafc!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-row{
  border-color:#2b313b!important;
  background:#181d25!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-row.is-unread{
  border-color:rgba(249,115,22,.35)!important;
  background:#1c2028!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-row__ico{
  border-color:#343b46!important;
  background:#222832!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-row__title{
  color:#f8fafc!important;
}
html[data-theme="dark"] .notif-panel--portal .notif-row__body{
  color:#aab3c2!important;
}


/* ========================================================================
   Unified destructive-action dialog — reference "Delete Account" design
   2026-10-09
   ===================================================================== */
body.system-delete-dialog-open{overflow:hidden!important}
.system-delete-dialog{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;padding:20px;font-family:inherit}
.system-delete-dialog__backdrop{position:absolute;inset:0;background:rgba(28,32,39,.58);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.system-delete-dialog__card{position:relative;z-index:1;width:min(430px,100%);padding:29px 28px 27px;border:1px solid rgba(15,23,42,.07);border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.25);text-align:center;animation:systemDeleteDialogIn .18s ease-out}
.system-delete-dialog__icon{width:74px;height:66px;margin:0 auto 11px;display:grid;place-items:center;color:#e4312b}
.system-delete-dialog__icon svg{width:58px;height:58px;filter:drop-shadow(0 4px 5px rgba(228,49,43,.13))}
.system-delete-dialog__card h2{margin:0;color:#111;font-size:28px;line-height:1.14;letter-spacing:-.035em;font-weight:950}
.system-delete-dialog__message{max-width:360px;margin:16px auto 0;color:#666c75;font-size:15px;line-height:1.55;font-weight:600}
.system-delete-dialog__content{margin-top:18px;text-align:left}
.system-delete-dialog__actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}
.system-delete-dialog__button{min-height:54px;border:0;border-radius:13px;padding:12px 16px;font:inherit;font-size:15px;font-weight:900;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.system-delete-dialog__button:disabled{opacity:.58;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.system-delete-dialog__button--cancel{background:#ededee;color:#24262b;box-shadow:inset 0 0 0 1px rgba(15,23,42,.02)}
.system-delete-dialog__button--cancel:hover:not(:disabled){filter:brightness(.98);transform:translateY(-1px)}
.system-delete-dialog__button--confirm{background:linear-gradient(180deg,#ff382f 0%,#ed241c 100%);color:#fff;box-shadow:0 9px 22px rgba(240,45,35,.34),0 0 18px rgba(255,59,48,.14),inset 0 1px 0 rgba(255,255,255,.28)}
.system-delete-dialog__button--confirm:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 13px 28px rgba(240,45,35,.4),0 0 22px rgba(255,59,48,.17),inset 0 1px 0 rgba(255,255,255,.3)}
.system-delete-dialog__verify{display:grid;gap:8px}
.system-delete-dialog__verify label{color:#22262d;font-size:13px;font-weight:900;text-align:left}
.system-delete-dialog__verify input{width:100%;height:52px;border:1.5px solid #d8dbe0;border-radius:13px;background:#fff;padding:0 15px;color:#14171c;font:inherit;font-size:16px;font-weight:700;outline:0;box-shadow:0 0 0 5px rgba(15,23,42,.025);transition:border-color .15s ease,box-shadow .15s ease}
.system-delete-dialog__verify input:focus{border-color:#111827;box-shadow:0 0 0 4px rgba(17,24,39,.08)}
.system-delete-dialog__error{margin-top:10px;padding:9px 11px;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;color:#b91c1c;font-size:12px;font-weight:800;line-height:1.35;text-align:left}
@keyframes systemDeleteDialogIn{from{opacity:0;transform:translateY(10px) scale(.982)}to{opacity:1;transform:none}}
@media(max-width:520px){
  .system-delete-dialog{padding:18px}
  .system-delete-dialog__card{width:min(400px,100%);padding:26px 20px 22px;border-radius:22px}
  .system-delete-dialog__icon{width:68px;height:60px;margin-bottom:8px}
  .system-delete-dialog__icon svg{width:53px;height:53px}
  .system-delete-dialog__card h2{font-size:25px}
  .system-delete-dialog__message{margin-top:13px;font-size:14px;line-height:1.52}
  .system-delete-dialog__actions{gap:10px;margin-top:21px}
  .system-delete-dialog__button{min-height:52px;padding-inline:10px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.system-delete-dialog__card{animation:none}.system-delete-dialog__button{transition:none}}
html[data-theme="dark"] .system-delete-dialog__backdrop{background:rgba(0,0,0,.7)}
html[data-theme="dark"] .system-delete-dialog__card{border-color:#2c3139;background:#14171c;box-shadow:0 32px 95px rgba(0,0,0,.58)}
html[data-theme="dark"] .system-delete-dialog__card h2{color:#f8fafc}
html[data-theme="dark"] .system-delete-dialog__message{color:#aeb6c3}
html[data-theme="dark"] .system-delete-dialog__button--cancel{background:#272c34;color:#f3f4f6}
html[data-theme="dark"] .system-delete-dialog__verify label{color:#e8ecf2}
html[data-theme="dark"] .system-delete-dialog__verify input{border-color:#3d4450;background:#0f1217;color:#fff;box-shadow:none}
html[data-theme="dark"] .system-delete-dialog__verify input:focus{border-color:#c9d0da;box-shadow:0 0 0 4px rgba(255,255,255,.07)}
.system-delete-dialog__field{display:grid;gap:7px;color:#30343b;font-size:12px;font-weight:850;text-align:left}
.system-delete-dialog__field input{width:100%;height:48px;border:1.5px solid #d8dbe0;border-radius:12px;background:#fff;padding:0 13px;color:#15181d;font:inherit;font-size:14px;font-weight:750;outline:0}
.system-delete-dialog__field input:focus{border-color:#111827;box-shadow:0 0 0 4px rgba(17,24,39,.07)}
.system-delete-dialog__hint{margin-top:7px;color:#8a929e;font-size:11px;font-weight:700;text-align:left}
html[data-theme="dark"] .system-delete-dialog__field{color:#e7ebf0}
html[data-theme="dark"] .system-delete-dialog__field input{border-color:#3d4450;background:#0f1217;color:#fff}
html[data-theme="dark"] .system-delete-dialog__hint{color:#98a2b2}
