/* Hoober Portal app switcher (shared by DocFlow and Marketing) */
.hp-switch{position:relative;flex:none;margin-left:auto;z-index:50;font-family:'Instrument Sans','Inter',system-ui,sans-serif}
.top-actions .hp-switch{margin-left:0}
.hp-switch-btn{display:flex;align-items:center;gap:9px;height:44px;padding:0 18px 0 14px;border-radius:999px;cursor:pointer;
  background:#161616;border:1px solid rgba(255,255,255,.10);color:#d4d4cf;font:600 14px/1 'Instrument Sans','Inter',sans-serif;
  box-shadow:0 10px 30px rgba(0,0,0,.35);transition:border-color .15s,color .15s}
.hp-switch-btn svg{width:17px;height:17px;color:#d4af37}
.hp-switch-btn:hover,.hp-switch-btn[aria-expanded="true"]{border-color:rgba(212,175,55,.55)}
.hp-menu{position:absolute;right:0;top:calc(100% + 10px);width:300px;padding:8px;border-radius:18px;
  background:#121212;border:1px solid rgba(255,255,255,.10);box-shadow:0 24px 60px rgba(0,0,0,.6)}
.hp-menu[hidden]{display:none}
.hp-item{display:flex;align-items:center;gap:14px;padding:11px 12px;border-radius:12px;color:#d4d4cf;text-decoration:none}
a.hp-item:hover{background:rgba(255,255,255,.06)}
.hp-item i{flex:none;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  background:#234430;color:#d4d4cf}
.hp-item i svg{width:19px;height:19px}
.hp-item span{display:flex;flex-direction:column;gap:3px;min-width:0}
.hp-item b{font-weight:600;font-size:14.5px}
.hp-item small{font-size:12.5px;color:rgba(212,212,207,.55)}
.hp-item em{margin-left:auto;font-style:normal;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#d4af37}
.hp-item.on{background:rgba(35,68,48,.35)}
.hp-item.soon{opacity:.45;cursor:default}
.hp-item.soon i{background:rgba(255,255,255,.08)}
.hp-item:first-child{margin-bottom:6px;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.07);border-radius:12px 12px 0 0}
@media (max-width:720px){
  .hp-switch-btn{width:42px;height:42px;padding:0;justify-content:center}
  .top-actions:has(.hp-switch){gap:8px}
  .hp-switch-btn span{display:none}
  .hp-menu{width:min(300px,calc(100vw - 32px))}
}
/* Phones: same logo and app-name sizes as every other app (portal/mylinks.css); this rule is stronger, so it repeats them */
@media (max-width:480px){
  .topbar:has(.top-actions .hp-switch) .brand{gap:8px !important}
  .topbar:has(.top-actions .hp-switch) .brand-logo{height:22px !important}
  .topbar:has(.top-actions .hp-switch) .brand-divider{height:20px !important}
  .topbar:has(.top-actions .hp-switch) .brand-name{font-size:20px !important}
  .top-actions:has(.hp-switch) .round-btn{width:42px;height:42px}
}
@media (max-width:400px){
  .topbar:has(.top-actions .hp-switch) .brand-logo{height:20px !important}
  .topbar:has(.top-actions .hp-switch) .brand-name{font-size:19px !important}
}


/* Apps turned off in Admin → Settings are hidden from the menu */
.hp-item[hidden]{display:none!important}

/* My email settings (a button in the menu, styled like the app links) */
.hp-prefs{width:100%;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;border-top:1px solid rgba(255,255,255,.08)!important;margin-top:4px}

/* Unread messages count, red (Apps button and the Messages item) */
.hp-switch-btn{position:relative}
.hp-switch-btn .hp-unread{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#e5484d;color:#fff;
  font:700 11.5px/20px 'Instrument Sans',sans-serif;font-style:normal;text-align:center;box-shadow:0 0 0 2px #0b0b0b}
.hp-item em.hp-unread{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#e5484d;color:#fff;font-size:12px;font-weight:700;letter-spacing:0;
  display:flex;align-items:center;justify-content:center}
.hp-item em.hp-unread[hidden]{display:none}
.hp-item em.hp-unread + em{margin-left:8px}
