/* ===============================
   V48 · Correcciones responsive barra superior
   =============================== */
.premium-topbar,
.premium-topbar .topbar-actions,
.premium-topbar .fv-dropdown,
.premium-topbar .topbar-icon-btn{
  overflow:visible!important;
}
.premium-topbar .topbar-icon-btn{
  position:relative!important;
  isolation:isolate;
}
.premium-topbar .notification-badge{
  top:-8px!important;
  right:-8px!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 5px!important;
  line-height:18px!important;
  font-size:.72rem!important;
  border:2px solid var(--fv-card,#fff)!important;
  z-index:10!important;
  transform:none!important;
}
/* El modo oscuro debe verse siempre también en celular */
.premium-topbar #themeToggle{display:inline-flex!important;}
@media(max-width:720px){
  .premium-topbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    overflow:visible!important;
  }
  .premium-topbar .topbar-actions{
    gap:5px!important;
    overflow:visible!important;
  }
  .premium-topbar #themeToggle{
    display:inline-flex!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  .premium-topbar .topbar-icon-btn:nth-child(2){display:inline-flex!important;}
  .premium-topbar .notification-badge{
    top:-7px!important;
    right:-7px!important;
    min-width:21px!important;
    height:21px!important;
    font-size:.68rem!important;
  }
}
@media(max-width:430px){
  .premium-topbar .topbar-actions{gap:4px!important;}
  .premium-topbar #themeToggle,
  .premium-topbar .topbar-actions .topbar-icon-btn,
  .premium-topbar .user-chip{
    width:35px!important;
    min-width:35px!important;
    height:35px!important;
    flex-basis:35px!important;
  }
  .premium-topbar .notification-badge{
    top:-6px!important;
    right:-6px!important;
    min-width:20px!important;
    height:20px!important;
    font-size:.64rem!important;
  }
}
body.dark-mode .dropdown-noti,
body.dark-mode .fv-dropdown-menu{
  background:#171a2b!important;
  border:1px solid #2a2d42!important;
  color:#f4f6fb!important;
}
body.dark-mode .noti-item{color:#f4f6fb!important;}
body.dark-mode .noti-item:hover{background:#22162b!important;}



/* V47 · Barra superior más interactiva y estable */
.premium-topbar .topbar-icon-btn,
.premium-topbar .user-chip{
  position:relative;
  overflow:hidden;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease!important;
}
.premium-topbar .topbar-icon-btn:hover,
.premium-topbar .user-chip:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(236,0,140,.18)!important;
  border-color:#ffb6e2!important;
}
.premium-topbar .topbar-icon-btn:active,
.premium-topbar .user-chip:active{
  transform:scale(.96);
}
.premium-topbar .fv-dropdown[data-open="1"] > .fv-dropdown-toggle,
.premium-topbar .fv-dropdown .fv-dropdown-menu.show ~ .fv-dropdown-toggle{
  background:#fff0fa!important;
  color:var(--fv-pink-dark)!important;
}
.fv-dropdown-menu.show{
  animation:fvDropIn .14s ease both;
}
@keyframes fvDropIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.notification-badge{animation:fvPulseBadge 1.6s infinite ease-in-out;}
@keyframes fvPulseBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@media (max-width: 900px){
  .premium-topbar{box-shadow:0 8px 24px rgba(36,39,51,.10)!important;}
  .premium-topbar .mobile-menu-trigger{flex:0 0 auto!important;}
  .premium-topbar .topbar-left{min-width:0!important;}
  .premium-topbar .topbar-app-title{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}
@media (max-width: 420px){
  .premium-topbar .topbar-app-title{max-width:calc(100vw - 174px)!important;}
  .premium-topbar .topbar-actions .topbar-icon-btn,
  .premium-topbar .user-chip{width:36px!important;height:36px!important;min-width:36px!important;}
}



/* V104 · compatibilidad con overrides heredados V47/V70 */
.premium-topbar .topbar-icon-btn:hover,.premium-topbar .user-chip:hover{box-shadow:0 3px 10px rgba(7,29,58,.10)!important;border-color:var(--proxus-primary)!important;transform:none!important}
.premium-topbar .topbar-icon-btn:active,.premium-topbar .user-chip:active{transform:none!important}
.premium-topbar .fv-dropdown[data-open="1"]>.fv-dropdown-toggle{background:#E5F1FB!important;color:#064783!important}
.fv-dropdown-menu.show{animation:none!important}.notification-badge{animation:none!important}
body.dark-mode .dropdown-noti,body.dark-mode .fv-dropdown-menu{background:#102239!important;border-color:#35506B!important;color:#F5F7F9!important}
body.dark-mode .noti-item{color:#F5F7F9!important}body.dark-mode .noti-item:hover{background:#17304A!important}
body.dark-mode .premium-topbar .fv-dropdown[data-open="1"]>.fv-dropdown-toggle{background:#123A55!important;color:#AEEBFA!important}
@media(max-width:900px){.premium-topbar{box-shadow:0 2px 8px rgba(7,29,58,.08)!important}}
