/* EasyLeasey Sidebar Submenu Alignment Polish
   Normalizes every grouped sidebar submenu item so Financials, Workflows,
   Portfolio, Leasing, Settings, and Admin all line up consistently. */

@media (min-width:821px){
  body.is-auth .ez-sidebar-menu{
    gap:7px !important;
    padding-bottom:18px !important;
  }

  body.is-auth .ez-sidebar-menu .ez-sidebar-section,
  body.is-auth .ez-sidebar-menu .nav-dropdown{
    width:100% !important;
    position:relative !important;
  }

  body.is-auth .ez-sidebar-menu .topnav-link,
  body.is-auth .ez-sidebar-menu .dropdown-trigger{
    box-sizing:border-box !important;
    width:100% !important;
    min-height:38px !important;
    padding:10px 11px !important;
    border-radius:9px !important;
    display:grid !important;
    grid-template-columns:22px minmax(0,1fr) 14px !important;
    align-items:center !important;
    column-gap:10px !important;
    text-align:left !important;
  }

  body.is-auth .ez-sidebar-menu > a.topnav-link{
    grid-template-columns:22px minmax(0,1fr) !important;
  }

  body.is-auth .ez-sidebar-menu .topnav-label{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  /* Group headers: icon on the left, chevron on the right. */
  body.is-auth .ez-sidebar-menu .dropdown-trigger::before,
  body.is-auth .ez-sidebar-menu > a.topnav-link::before{
    position:static !important;
    transform:none !important;
    content:'•' !important;
    width:22px !important;
    min-width:22px !important;
    height:22px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:8px !important;
    font-size:13px !important;
    line-height:1 !important;
    font-weight:900 !important;
    background:rgba(255,255,255,.08) !important;
    color:rgba(255,255,255,.88) !important;
    opacity:1 !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-trigger::after{
    content:'›' !important;
    position:static !important;
    transform:rotate(0deg) !important;
    width:14px !important;
    height:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:none !important;
    border-radius:0 !important;
    font-size:18px !important;
    line-height:1 !important;
    opacity:.72 !important;
    transition:transform .16s ease, opacity .16s ease !important;
  }

  body.is-auth .ez-sidebar-menu .nav-dropdown[open] > .dropdown-trigger::after,
  body.is-auth .ez-sidebar-menu .nav-dropdown.is-active > .dropdown-trigger::after{
    transform:rotate(90deg) !important;
    opacity:1 !important;
  }

  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="dashboard"]::before{content:'⌂' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="operations"]::before{content:'✦' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="executive_analytics"]::before{content:'◈' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="portfolio"]::before{content:'▧' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="leasing_group"]::before{content:'▤' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="financials_group"]::before{content:'$' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="workflows"]::before{content:'⚒' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="settings"]::before{content:'⚙' !important;}
  body.is-auth .ez-sidebar-menu .topnav-link[data-nav-key="admin"]::before{content:'◇' !important;}

  /* Submenus use a fixed three-column grid: icon / label / arrow. */
  body.is-auth .ez-sidebar-menu .dropdown-menu{
    position:static !important;
    display:flex !important;
    flex-direction:column !important;
    gap:4px !important;
    min-width:0 !important;
    width:100% !important;
    box-sizing:border-box !important;
    padding:4px 0 5px 30px !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  body.is-auth .ez-sidebar-menu .nav-dropdown:not([open]):not(.is-active) .dropdown-menu{
    display:none !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-link{
    width:100% !important;
    min-height:34px !important;
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:22px minmax(0,1fr) 12px !important;
    align-items:center !important;
    column-gap:9px !important;
    padding:7px 9px !important;
    border-radius:8px !important;
    text-decoration:none !important;
    color:rgba(255,255,255,.74) !important;
    font-size:12.5px !important;
    font-weight:700 !important;
    line-height:1.15 !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-link > span:first-child{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-link-arrow{
    justify-self:end !important;
    width:12px !important;
    min-width:12px !important;
    text-align:center !important;
    opacity:.42 !important;
    font-size:15px !important;
    line-height:1 !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-link::before{
    content:'•' !important;
    width:22px !important;
    min-width:22px !important;
    height:22px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:8px !important;
    font-size:11px !important;
    font-weight:900 !important;
    line-height:1 !important;
    background:rgba(255,255,255,.08) !important;
    color:rgba(255,255,255,.78) !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-link:hover,
  body.is-auth .ez-sidebar-menu .dropdown-link.active{
    color:#fff !important;
    background:rgba(255,255,255,.10) !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-link:hover::before,
  body.is-auth .ez-sidebar-menu .dropdown-link.active::before{
    background:rgba(255,255,255,.18) !important;
    color:#fff !important;
  }

  body.is-auth .ez-sidebar-menu .dropdown-link.active .dropdown-link-arrow,
  body.is-auth .ez-sidebar-menu .dropdown-link:hover .dropdown-link-arrow{
    opacity:.9 !important;
  }

  /* Explicit icons for every current submenu key so no item loses its icon column. */
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="properties"]::before{content:'▧' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="performance"]::before{content:'↗' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="tenants"]::before{content:'◉' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="leasing"]::before{content:'▤' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="leases"]::before{content:'□' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="documents"]::before{content:'$' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="receipts"]::before{content:'◫' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="rules"]::before{content:'⚑' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="financial_intelligence"]::before{content:'◎' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="reports"]::before{content:'↗' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="owner_reports"]::before{content:'▣' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="communications"]::before{content:'✉' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="moves"]::before{content:'⇄' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="automations"]::before{content:'⚡' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="maintenance"]::before{content:'⚒' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="vendors"]::before{content:'◆' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="tasks"]::before{content:'✓' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="mileage"]::before{content:'⌁' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="profile"]::before{content:'◉' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="org_access"]::before{content:'◎' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="data_tools"]::before{content:'⌘' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="billing"]::before{content:'$' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="help"]::before{content:'?' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="users"]::before{content:'◉' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="invites"]::before{content:'+' !important;}
  body.is-auth .ez-sidebar-menu .dropdown-link[data-nav-key="demo"]::before{content:'◇' !important;}
}

@media (max-width:820px){
  .mobile-drawer-group{margin-bottom:10px !important;}
  .mobile-drawer-title{letter-spacing:.08em !important;}
  .mobile-drawer-links{gap:6px !important;}
  .mobile-drawer-link-main{min-width:0 !important;}
  .mobile-drawer-link-label{min-width:0 !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important;}
}
