/* Hammelk v230 | refined RTL navigation. Presentation only: no route or permission changes.
   Kept separate from generated compatibility bundles to preserve their public hooks. */
@media screen {
  body.hm185-app .app-shell #sidebar {
    --hm230-blue:#2b5fba;
    --hm230-ink:#23344e;
    --hm230-muted:#6b7e98;
    --hm230-line:#e4eaf3;
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    height:100vh;
    height:100dvh;
    max-height:100vh;
    max-height:100dvh;
    min-height:0!important;
    overflow:hidden!important;
    padding:10px 9px 11px!important;
    background:#fff!important;
    border-left:1px solid var(--hm230-line)!important;
    box-shadow:-4px 0 22px rgba(21,46,80,.035)!important;
  }
  body.hm185-app .app-shell #sidebar .brand.brand-inline {
    display:flex!important;
    flex:0 0 auto!important;
    min-height:58px!important;
    padding:5px 4px 10px!important;
    margin:0 2px 8px!important;
    align-items:center!important;
    gap:7px!important;
    border-bottom:1px solid var(--hm230-line)!important;
  }
  body.hm185-app .app-shell #sidebar .hm230-brand-mark {
    flex:0 0 32px;
    width:32px;height:32px;
    display:grid;place-items:center;
    border-radius:11px;
    background:#edf4ff;color:var(--hm230-blue);
  }
  body.hm185-app .app-shell #sidebar .hm230-brand-mark svg{width:18px;height:18px}
  body.hm185-app .app-shell #sidebar .brand-copy.brand-copy-inline {
    display:flex!important;flex:1 1 auto!important;min-width:0!important;
    flex-direction:column!important;align-items:flex-start!important;
    justify-content:center!important;gap:0!important;flex-wrap:nowrap!important;
    white-space:normal!important;overflow:hidden;
  }
  body.hm185-app .app-shell #sidebar .brand-copy strong{
    font-size:16px!important;font-weight:850!important;line-height:1.45!important;
    color:#162942!important;white-space:nowrap;
  }
  body.hm185-app .app-shell #sidebar .brand-copy span:not(.brand-separator){
    font-size:10px!important;line-height:1.65!important;
    color:var(--hm230-muted)!important;white-space:nowrap!important;
  }
  body.hm185-app .app-shell #sidebar .brand-separator{display:none!important}
  body.hm185-app .app-shell #sidebar #hm185SidebarToggle{
    order:3!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;
    height:40px!important;min-height:40px!important;padding:0!important;
    border-radius:11px!important;border:1px solid var(--hm230-line)!important;
    color:#42617f!important;background:#f8fafd!important;
  }
  body.hm185-app .app-shell #sidebar .sidebar-property.suite-overview{
    flex:0 0 auto!important;min-height:0!important;
    margin:0 3px 8px!important;padding:9px 10px!important;
    background:#f7faff!important;border:1px solid #e1e9f6!important;
    box-shadow:none!important;border-radius:12px!important;
  }
  body.hm185-app .app-shell #sidebar .suite-overview-head{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:6px!important;margin:0 0 7px!important;
  }
  body.hm185-app .app-shell #sidebar .suite-overview-head small{
    color:var(--hm230-muted)!important;font-size:11px!important;font-weight:700!important;
    white-space:normal!important;
  }
  body.hm185-app .app-shell #sidebar .property-year{
    background:#fff7e7!important;border:1px solid #efdfbd!important;
    color:#936c2e!important;border-radius:8px!important;
    padding:3px 7px!important;font-size:10px!important;white-space:nowrap!important;
  }
  body.hm185-app .app-shell #sidebar .suite-overview-list{
    display:flex!important;grid-template-columns:none!important;
    align-items:center!important;flex-wrap:wrap!important;gap:5px!important;
  }
  body.hm185-app .app-shell #sidebar .suite-overview-item{
    flex:0 1 auto!important;display:inline-flex!important;
    align-items:center!important;gap:5px!important;
    min-height:28px!important;min-width:0!important;
    max-width:100%;padding:4px 8px!important;
    margin:0!important;border-radius:9px!important;
    background:#fff!important;border:1px solid #dfe8f5!important;
    box-shadow:none!important;
  }
  body.hm185-app .app-shell #sidebar .suite-overview-item b{
    font-size:12px!important;line-height:1.4!important;font-weight:700!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.hm185-app .app-shell #sidebar .suite-color-dot{
    margin:0!important;width:7px!important;height:7px!important;flex:0 0 7px!important;
    box-shadow:0 0 0 2px #eaf0f8!important;
  }
  body.hm185-app .app-shell #sidebar .hm185-nav-search{
    flex:0 0 auto!important;display:flex!important;flex-direction:column!important;
    gap:0!important;margin:0 3px 5px!important;padding:0!important;
  }
  body.hm185-app .app-shell #sidebar .hm185-nav-search label{
    position:absolute!important;width:1px;height:1px;padding:0;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
  body.hm185-app .app-shell #sidebar .hm185-nav-search>div{position:relative!important;display:flex!important;min-width:0;}
  body.hm185-app .app-shell #sidebar #hm185NavSearch{
    display:block!important;width:100%!important;min-width:0!important;
    height:42px!important;min-height:42px!important;
    padding:8px 36px 8px 37px!important;
    background:#fff!important;border:1px solid #d6e1ef!important;
    color:var(--hm230-ink)!important;border-radius:11px!important;
    font-size:14px!important;box-shadow:none!important;
  }
  body.hm185-app .app-shell #sidebar #hm185NavSearch::placeholder{color:#93a1b3}
  body.hm185-app .app-shell #sidebar .hm230-search-icon{
    display:block;position:absolute;z-index:1;right:11px;top:11px;
    width:20px;height:20px;fill:none;stroke:#8194b0;stroke-width:1.8;pointer-events:none;
  }
  body.hm185-app .app-shell #sidebar [data-ui-clear="hm185NavSearch"]{
    position:absolute!important;inset:auto!important;left:3px!important;top:3px!important;
    width:36px!important;height:36px!important;min-height:36px!important;
    border:0!important;border-radius:9px!important;background:transparent!important;
    color:#7a8ca3!important;font-size:21px!important;
  }
  body.hm185-app .app-shell #sidebar #hm185NavEmpty{
    margin:5px 2px 0!important;padding:7px!important;color:#8e4d59;
    font-size:12px!important;background:#fff6f8;border-radius:8px;
  }
  /* Keep the original scroll buttons in the DOM (public hooks), but use native scrolling. */
  body.hm185-app .app-shell #sidebar .hm186-nav-scroll{display:none!important}
  body.hm185-app .app-shell #sidebar #hm186SidebarNav{
    display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
    min-height:0!important;max-height:none!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin;scrollbar-color:#d0dbe9 transparent;
    padding:2px 3px 10px!important;margin:0!important;gap:1px!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav::-webkit-scrollbar{width:5px}
  body.hm185-app .app-shell #sidebar #hm186SidebarNav::-webkit-scrollbar-thumb{
    background:#d0dbe9;border-radius:8px;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav .sb84-nav-group{
    flex:0 0 auto!important;display:block;
    min-height:0!important;margin:9px 0 2px!important;
    padding:3px 10px!important;
    color:#7a8ba2!important;font-size:11px!important;
    font-weight:750!important;line-height:1.5!important;letter-spacing:0!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section{
    display:flex!important;flex:0 0 auto!important;align-items:center!important;
    min-height:46px!important;height:auto!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;padding:9px 11px!important;gap:9px!important;
    border:1px solid transparent!important;border-radius:11px!important;
    background:transparent!important;box-shadow:none!important;
    color:#40536d!important;font-size:14px!important;
    font-weight:700!important;line-height:1.55!important;
    text-decoration:none!important;transform:none!important;
    transition:background .15s ease,border-color .15s ease,color .15s ease!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section>span:not(.nav-count){
    min-width:0!important;flex:1 1 auto!important;
    font-size:inherit!important;line-height:1.55!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section svg.icon{
    flex:0 0 20px!important;width:20px!important;height:20px!important;
    color:#7c90a9!important;transform:none!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section:is(:hover,:focus-visible){
    background:#f3f7fe!important;border-color:#e5edfa!important;color:#244d87!important;
    box-shadow:none!important;transform:none!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section.active,
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section[aria-current="page"]{
    background:#eaf2ff!important;border-color:#dce7fc!important;
    color:#2457b0!important;box-shadow:inset -3px 0 #4779d4!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section.active::before,
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section.active::after{
    content:none!important;
  }
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section.active svg.icon{
    color:#3066c1!important;
  }
  body.hm185-app .app-shell #sidebar .sidebar-footer{
    flex:0 0 auto!important;min-height:0!important;
    margin-top:auto!important;padding:8px 2px 0!important;
    border-top:1px solid var(--hm230-line)!important;background:#fff!important;
  }
  body.hm185-app .app-shell #sidebar .sidebar-user-row{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;gap:4px!important;min-width:0!important;
  }
  body.hm185-app .app-shell #sidebar .sidebar-account{
    display:flex!important;align-items:center!important;gap:7px!important;
    min-height:44px!important;padding:3px 5px!important;
    border:0!important;border-radius:10px!important;min-width:0!important;
    box-shadow:none!important;transform:none!important;
  }
  body.hm185-app .app-shell #sidebar .hm230-account-icon{
    display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
    background:#edf3ff;color:#4568b5;border-radius:11px;
  }
  body.hm185-app .app-shell #sidebar .hm230-account-icon .icon{width:18px;height:18px}
  body.hm185-app .app-shell #sidebar .account-copy{min-width:0!important;display:grid!important;gap:0!important}
  body.hm185-app .app-shell #sidebar .account-copy :is(b,small){
    display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
    white-space:nowrap!important;line-height:1.65!important;
  }
  body.hm185-app .app-shell #sidebar .account-copy b{font-size:13px!important}
  body.hm185-app .app-shell #sidebar .account-copy small{font-size:11px!important;color:#8492a6!important}
  body.hm185-app .app-shell #sidebar .sidebar-user-row .logout-link{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-width:42px!important;width:auto!important;height:42px!important;min-height:42px!important;
    padding:0 8px!important;gap:3px!important;
    border:1px solid #f3e1e2!important;border-radius:10px!important;
    background:#fff9f9!important;color:#bd515b!important;box-shadow:none!important;
  }
  body.hm185-app .app-shell #sidebar .sidebar-user-row .logout-link span{font-size:11px!important}
  /* Common visibility semantic, including the navigator headings added by JS. */
  body.hm185-app .app-shell #sidebar [hidden],
  body.hm185-app .app-shell #sidebar [data-ui-hidden]{display:none!important}
}
@media screen and (min-width:901px){
  body.hm185-app .app-shell #sidebar{width:260px!important}
  body.hm185-app .app-shell .workspace{
    margin-right:260px!important;width:calc(100% - 260px)!important;
    max-width:calc(100% - 260px)!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar{
    width:72px!important;padding:10px 6px!important;overflow:hidden!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell .workspace{
    margin-right:72px!important;width:calc(100% - 72px)!important;
    max-width:calc(100% - 72px)!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar .brand{
    justify-content:center!important;padding:5px 0 10px!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar :is(.hm230-brand-mark,.brand-copy,.sidebar-property,.hm185-nav-search){display:none!important}
  body.hm185-app.hm185-nav-compact .app-shell #sidebar #hm185SidebarToggle{order:0!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important}
  body.hm185-app.hm185-nav-compact .app-shell #sidebar #hm186SidebarNav{
    padding:5px 3px 8px!important;overflow-x:hidden!important;gap:5px!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar #hm186SidebarNav .sb84-nav-group{display:none!important}
  body.hm185-app.hm185-nav-compact .app-shell #sidebar #hm186SidebarNav a.menu-section{
    width:48px!important;height:48px!important;min-height:48px!important;
    margin:0 auto!important;padding:12px!important;justify-content:center!important;
    font-size:0!important;gap:0!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar #hm186SidebarNav a.menu-section>span,
  body.hm185-app.hm185-nav-compact .app-shell #sidebar #hm186SidebarNav a.menu-section>b{display:none!important}
  body.hm185-app.hm185-nav-compact .app-shell #sidebar #hm186SidebarNav a.menu-section::after{content:none!important}
  body.hm185-app.hm185-nav-compact .app-shell #sidebar .sidebar-footer{
    display:block!important;padding:9px 0 0!important;overflow:visible!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar .sidebar-user-row{
    display:flex!important;flex-direction:column!important;gap:6px!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar .sidebar-account{
    width:46px!important;height:46px!important;min-height:46px!important;
    justify-content:center!important;padding:0!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar .sidebar-account .account-copy{display:none!important}
  body.hm185-app.hm185-nav-compact .app-shell #sidebar .sidebar-user-row .logout-link{
    min-width:44px!important;width:44px!important;height:44px!important;padding:0!important;
  }
  body.hm185-app.hm185-nav-compact .app-shell #sidebar .sidebar-user-row .logout-link span{display:none!important}
}
@media screen and (max-width:900px){
  body.hm185-app .app-shell #sidebar{
    width:min(330px,90vw)!important;max-width:90vw!important;
    height:100vh;height:100dvh;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px))!important;
    box-shadow:-14px 0 35px rgba(21,38,65,.15)!important;
  }
  body.hm185-app .app-shell #sidebar #hm185SidebarToggle{display:none!important}
  body.hm185-app .app-shell #sidebar .sidebar-close{margin-inline-start:auto!important}
  body.hm185-app .app-shell #sidebar .brand{min-height:56px!important}
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section{
    min-height:48px!important;font-size:14px!important;
  }
}
@media screen and (prefers-reduced-motion:reduce){
  body.hm185-app .app-shell #sidebar :is(a,button){transition:none!important}
}
/* Tooltip must escape the clipped, independently scrolling navigation. */
.hm230-sidebar-tooltip{
  position:fixed;z-index:9999;pointer-events:none;max-width:min(250px,90vw);
  padding:8px 11px;border-radius:9px;background:#18304f;color:#fff;
  font:600 13px/1.6 "Yekan",Tahoma,sans-serif;white-space:normal;
  box-shadow:0 6px 22px rgba(14,33,60,.2);
}
.hm230-sidebar-tooltip[hidden]{display:none!important}
/* Override the explicit display:flex rules above for the permission-safe search. */
@media screen {
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section[data-ui-hidden],
  body.hm185-app .app-shell #sidebar #hm186SidebarNav a.menu-section[hidden]{display:none!important}
  body.hm185-app .app-shell #sidebar #hm186SidebarNav .sb84-nav-group[hidden]{display:none!important}
}
