/* Phase 2: single authoritative topbar stylesheet, referenced against the locked header design. */
.vesta-topbar{position:sticky;top:0;z-index:300;flex:0 0 auto;height:var(--vesta-topbar-h);min-height:var(--vesta-topbar-h);background:var(--vesta-topbar-bg,#fff);border-bottom:1px solid var(--vesta-topbar-border,#e9edf4);padding:0 22px}
.vesta-topbar__row--main{display:flex;align-items:center;gap:22px;height:100%;min-width:0}
.vesta-topbar__left{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.vesta-topbar__nav-toggle,.vesta-topbar__icon{border:1px solid #e9edf5;background:#fff;border-radius:13px;color:#172647;width:46px;height:46px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.vesta-topbar__nav-toggle{width:42px;height:42px;border-color:transparent;background:transparent}
.vesta-topbar__nav-toggle:hover,.vesta-topbar__icon:hover{background:#faf4e6}
.vesta-topbar__mobile-brand{display:none}
.vesta-topbar__search{height:46px;min-width:180px;max-width:835px;width:min(100%,835px);display:flex;align-items:center;gap:12px;padding:0 18px;background:#fff;border:1px solid #e7ebf3;border-radius:12px;box-shadow:0 5px 20px rgba(34,42,87,.04);color:#566890;flex:1 1 440px}
.vesta-topbar__search input{display:block;flex:1;min-width:0;width:100%;height:auto!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0;font:inherit;color:var(--vesta-text);font-size:14px}
.vesta-topbar__search input::placeholder{color:#66718f}
.vesta-topbar__search:focus-within{border-color:#cba34e;box-shadow:0 0 0 3px rgba(164,117,25,.11)}
.vesta-topbar__right{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:25px;min-width:0;flex:0 0 auto}
.vesta-topbar__menu-wrap{position:relative}
.vesta-topbar__add{height:46px;padding:0 18px;display:flex;align-items:center;gap:12px;color:white;border:none;border-radius:12px;background:linear-gradient(110deg,#bb903a,#966813);box-shadow:0 8px 18px rgba(164,117,25,.14);font:600 14px var(--vesta-font);white-space:nowrap;cursor:pointer}
.vesta-topbar__add:hover{filter:brightness(1.06)}
.vesta-topbar__profile{display:flex;align-items:center;gap:13px;border:0;background:transparent;color:#111a3e;cursor:pointer;min-width:0;padding:0}
.vesta-topbar__avatar{width:44px;height:44px;position:relative;flex:0 0 44px}
.vesta-topbar__avatar-img{width:44px;height:44px;border-radius:50%;display:block;object-fit:cover}
.vesta-topbar__avatar i{position:absolute;right:0;bottom:0;width:11px;height:11px;background:#0ac985;border:2px solid white;border-radius:50%}
.vesta-topbar__profile-copy{display:grid;text-align:left;gap:2px;min-width:90px}
.vesta-topbar__profile-copy strong{font-size:14px;line-height:1.25;color:#111a3e;font-weight:600}
.vesta-topbar__profile-copy small{font-size:12px;line-height:1.25;color:#697b9f}
.vesta-topbar__menu{position:absolute;right:0;top:calc(100% + 12px);width:236px;padding:10px;background:#fff;border:1px solid #e8eaf4;border-radius:14px;box-shadow:0 18px 42px rgba(20,30,72,.16);z-index:350}
.vesta-topbar__menu[hidden],.vesta-topbar__row--mobile-search[hidden]{display:none!important}
.vesta-topbar__menu a{display:flex;align-items:center;gap:14px;text-decoration:none;color:#142249;font-size:14px;padding:12px 13px;border-radius:10px}
.vesta-topbar__menu a:hover,.vesta-topbar__menu a:focus-visible{background:#faf4e6;color:var(--vesta-accent)}
.vesta-topbar__menu a:first-of-type{background:#faf4e6}
.vesta-topbar__menu-head{padding:11px 13px;display:grid;gap:4px}
.vesta-topbar__menu-head strong{font-size:14px}.vesta-topbar__menu-head small{font-size:12px;color:#64748b}
.vesta-topbar__menu-separator{height:1px;background:#eef0f7;margin:7px 2px}
.vesta-topbar__menu--profile{width:220px}
.vesta-topbar__mobile-search-toggle,.vesta-topbar__row--mobile-search{display:none}
.vesta-topbar__nav-toggle:focus-visible,.vesta-topbar__icon:focus-visible,.vesta-topbar__add:focus-visible,.vesta-topbar__profile:focus-visible{outline:3px solid #cba34e;outline-offset:2px}
@media (min-width:1024px){.vesta-topbar__nav-toggle{margin-left:-7px}}
@media (max-width:1200px){.vesta-topbar__right{gap:12px}.vesta-topbar__row--main{gap:14px}.vesta-topbar__profile-copy{display:none}.vesta-topbar__profile>svg:last-child{display:none}}
@media (max-width:900px){.vesta-topbar{padding:0 15px}.vesta-topbar__search{display:none}.vesta-topbar__row--mobile-search .vesta-topbar__search{display:flex;max-width:none;width:100%}.vesta-topbar__mobile-search-toggle{display:grid}.vesta-topbar__right{gap:9px}.vesta-topbar__mobile-brand{display:block}.vesta-topbar__mobile-brand img{display:block;width:auto;height:42px;max-width:210px;object-fit:contain}.vesta-topbar__add{padding:0 13px}}
@media (max-width:767px){.vesta-topbar{position:fixed;top:0;left:0;right:0;z-index:1200;height:var(--vesta-topbar-mobile-total);min-height:var(--vesta-topbar-mobile-total);padding:var(--vesta-mobile-safe-top) 12px 0}.vesta-topbar__row--main{height:var(--vesta-topbar-mobile-row-h)}.vesta-topbar__add{display:flex;width:40px;height:40px;padding:0;justify-content:center;gap:0;border-radius:12px;flex:0 0 40px}.vesta-topbar__add span,.vesta-topbar__add svg:last-child{display:none}.vesta-topbar__add svg:first-child{display:block}.vesta-topbar__mobile-brand img{max-width:164px;height:36px}.vesta-topbar__nav-toggle{width:36px}.vesta-topbar__icon{width:40px;height:40px}.vesta-topbar__avatar,.vesta-topbar__avatar-img{width:40px;height:40px}.vesta-topbar__avatar{flex-basis:40px}.vesta-topbar__row--mobile-search{position:absolute;top:100%;left:0;right:0;background:#fff;padding:10px 12px 14px;border-bottom:1px solid #e8eaf2;box-shadow:0 12px 20px rgba(20,30,72,.08)}.vesta-topbar__row--mobile-search:not([hidden]){display:block}.vesta-topbar__menu--profile{right:0}.vesta-topbar__right{gap:7px}}
@media (max-width:390px){.vesta-topbar__mobile-brand img{max-width:125px}.vesta-topbar__row--main{gap:5px}.vesta-topbar__left{gap:3px}}

.vesta-topbar__menu--notifications{width:280px}
.vesta-topbar__notification{display:flex;gap:10px;align-items:flex-start;padding:13px 10px;border-bottom:1px solid #eef0f7}
.vesta-topbar__notification-dot{width:8px;height:8px;background:var(--vesta-accent);border-radius:50%;margin-top:5px;flex:0 0 8px}
.vesta-topbar__notification>div{display:grid;gap:5px}.vesta-topbar__notification strong{font-size:13px;font-weight:600}.vesta-topbar__notification small{font-size:12px;color:#71809f}
.vesta-topbar__notifications-empty{margin:0;padding:12px;color:#66718f;font-size:13px}.vesta-topbar__notification-more{justify-content:center;color:var(--vesta-accent)!important}

/* Mobile action shares the exact desktop menu/permission filters; compact button only. */
@media (max-width:767px){.vesta-topbar__left{min-width:0}.vesta-topbar__mobile-brand{min-width:0}.vesta-topbar__mobile-brand img{max-width:min(164px,calc(100vw - 245px))}.vesta-topbar__right{gap:6px}.vesta-topbar__menu-wrap{flex:0 0 auto}.vesta-topbar__menu{max-width:calc(100vw - 24px)}}
@media (max-width:390px){.vesta-topbar__mobile-brand img{max-width:min(125px,calc(100vw - 235px))}}
