/* BOT SAR/API — global top bar */
.global-topbar{
  min-height:64px;
  margin:-18px -24px 14px;
  padding:0 24px;
  display:grid;
  grid-template-columns:auto minmax(360px,1fr) auto;
  align-items:center;
  gap:24px;
  background:#fff;
  border-bottom:1px solid #e6ebf0;
  box-shadow:0 2px 10px rgba(16,24,40,.035);
  flex:none;
  position:relative;
  z-index:40;
}
.global-brand{
  min-width:330px;
  display:flex;
  align-items:center;
  gap:14px;
}
.global-brand-logo{
  width:128px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:none;
  overflow:visible;
}
.global-brand-logo-img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:left center;
}
.global-brand-divider{
  width:1px;
  height:35px;
  background:#e4e7ec;
}
.global-product-name strong,
.global-product-name span{
  display:block;
  white-space:nowrap;
}
.global-product-name strong{
  color:#101828;
  font-size:13px;
  font-weight:800;
}
.global-product-name span{
  margin-top:4px;
  color:#667085;
  font-size:10px;
}

.global-search{
  width:min(100%,760px);
  height:40px;
  justify-self:center;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:0 10px 0 13px;
  border:1px solid #dfe5ec;
  border-radius:11px;
  background:#f9fbfc;
  box-shadow:inset 0 1px 1px rgba(16,24,40,.02);
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.global-search:focus-within{
  background:#fff;
  border-color:#9ebbd5;
  box-shadow:0 0 0 3px rgba(39,93,144,.08);
}
.global-search>span{
  color:#667085;
  font-size:18px;
  line-height:1;
}
.global-search input{
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#344054;
  font-size:11px;
}
.global-search input::placeholder{color:#98a2b3}
.global-search kbd{
  min-width:34px;
  height:25px;
  display:grid;
  place-items:center;
  border:1px solid #e4e7ec;
  border-radius:7px;
  background:#fff;
  color:#667085;
  font-family:Inter,system-ui,sans-serif;
  font-size:9px;
  font-weight:700;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}

.global-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}
.top-whatsapp-state{
  height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 4px;
}
.top-whatsapp-icon{
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ecfdf3;
  color:#12b76a;
  border:1px solid #abefc6;
  font-size:14px;
  font-weight:900;
}
.top-whatsapp-state strong,
.top-whatsapp-state small{
  display:block;
  white-space:nowrap;
}
.top-whatsapp-state strong{
  color:#101828;
  font-size:10px;
}
.top-whatsapp-state small{
  margin-top:2px;
  color:#f79009;
  font-size:8px;
  font-weight:700;
}
.top-whatsapp-state.online small{color:#12b76a}

.top-account-select-wrap{
  height:40px;
  min-width:156px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#fff;
}
.top-account-dot{
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:#f79009;
}
.top-account-dot.online{background:#12b76a}
.top-account-select-wrap select{
  min-width:0;
  max-width:190px;
  flex:1;
  border:0;
  outline:0;
  background:#fff;
  color:#344054;
  font-size:10px;
  font-weight:800;
}

.top-notification-btn{
  width:38px;
  height:38px;
  position:relative;
  display:grid;
  place-items:center;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#fff;
  color:#344054;
  font-size:17px;
}
.top-notification-btn i{
  position:absolute;
  top:5px;
  right:5px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#f04438;
  border:2px solid #fff;
  box-sizing:content-box;
}

.top-user{
  min-width:128px;
  display:flex;
  align-items:center;
  gap:8px;
}
.top-user-avatar{
  width:34px;
  height:34px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#275d90;
  color:#fff;
  font-size:10px;
  font-weight:800;
}
.top-user strong,
.top-user small{
  display:block;
  white-space:nowrap;
}
.top-user strong{
  color:#101828;
  font-size:10px;
}
.top-user small{
  margin-top:2px;
  color:#98a2b3;
  font-size:8px;
}

.page-topbar{
  margin-bottom:12px;
}

@media(max-width:1250px){
  .global-topbar{
    grid-template-columns:auto minmax(260px,1fr) auto;
    gap:14px;
  }
  .global-brand{min-width:auto}
  .global-brand-logo{width:116px;height:36px}
  .global-product-name span{display:none}
  .top-whatsapp-state>div{display:none}
  .top-account-select-wrap{min-width:138px}
  .top-user{min-width:auto}
  .top-user>div:last-child{display:none}
}
@media(max-width:900px){
  .global-topbar{
    margin:-8px -8px 8px;
    padding:0 10px;
    min-height:56px;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:8px;
  }
  .global-brand-logo{width:104px;height:34px;overflow:visible;flex:none}
  .global-brand-logo-img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:left center}
  .global-brand-divider,.global-product-name{display:none}
  .global-search{height:38px}
  .global-search kbd{display:none}
  .top-whatsapp-state,.top-account-select-wrap,.top-user,.top-notification-btn{display:none}
  .global-controls{gap:0}
}
@media(max-width:520px){
  .global-brand-logo{width:96px;height:32px}
  .global-brand-logo-img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
  .global-search input{font-size:10px}
  .global-search{padding-left:9px}
}

/* Logo hardening V4 — always visible, no crop, no external asset dependency */
.global-brand{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  flex:none!important;
  min-width:0!important;
}
.global-brand-logo{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:132px!important;
  height:40px!important;
  min-width:132px!important;
  max-width:132px!important;
  overflow:visible!important;
  flex:none!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.global-brand-logo-img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:132px!important;
  height:auto!important;
  max-width:132px!important;
  max-height:40px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
@media(max-width:900px){
  .global-brand{display:flex!important;visibility:visible!important;opacity:1!important}
  .global-brand-logo{width:104px!important;min-width:104px!important;max-width:104px!important;height:34px!important;overflow:visible!important}
  .global-brand-logo-img{width:104px!important;max-width:104px!important;max-height:34px!important;height:auto!important}
}
@media(max-width:520px){
  .global-brand-logo{width:96px!important;min-width:96px!important;max-width:96px!important;height:32px!important}
  .global-brand-logo-img{width:96px!important;max-width:96px!important;max-height:32px!important}
}

/* Logo V5 — compact stacked lockup made from original artwork */
.global-brand-logo{width:104px!important;min-width:104px!important;max-width:104px!important;height:48px!important;overflow:visible!important}
.global-brand-logo-img{display:block!important;width:104px!important;height:47px!important;max-width:104px!important;max-height:47px!important;object-fit:contain!important;object-position:left center!important}
@media(max-width:900px){
 .global-brand-logo{width:82px!important;min-width:82px!important;max-width:82px!important;height:40px!important}
 .global-brand-logo-img{width:82px!important;height:37px!important;max-width:82px!important;max-height:37px!important}
}
@media(max-width:520px){
 .global-brand-logo{width:76px!important;min-width:76px!important;max-width:76px!important;height:38px!important}
 .global-brand-logo-img{width:76px!important;height:34px!important;max-width:76px!important;max-height:34px!important}
}

/* Logo V6 — authoritative final sizing, tight asset, no crop */
.global-brand{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  flex:none!important;
  min-width:0!important;
  visibility:visible!important;
  opacity:1!important;
}
.global-brand-logo{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:185px!important;
  min-width:185px!important;
  max-width:185px!important;
  height:46px!important;
  overflow:visible!important;
  flex:none!important;
}
.global-brand-logo-img{
  display:block!important;
  width:185px!important;
  height:auto!important;
  max-width:185px!important;
  max-height:46px!important;
  object-fit:contain!important;
  object-position:left center!important;
  visibility:visible!important;
  opacity:1!important;
}
@media(max-width:1250px){
  .global-brand-logo{width:155px!important;min-width:155px!important;max-width:155px!important;height:42px!important}
  .global-brand-logo-img{width:155px!important;max-width:155px!important;max-height:42px!important}
}
@media(max-width:900px){
  .global-brand-logo{width:112px!important;min-width:112px!important;max-width:112px!important;height:34px!important}
  .global-brand-logo-img{width:112px!important;max-width:112px!important;max-height:34px!important}
}
@media(max-width:520px){
  .global-brand-logo{width:100px!important;min-width:100px!important;max-width:100px!important;height:32px!important}
  .global-brand-logo-img{width:100px!important;max-width:100px!important;max-height:32px!important}
}

/* Logo V7 — official SAR SVG, no raster scaling artifacts */
.global-brand-logo{
  width:150px!important;min-width:150px!important;max-width:150px!important;height:42px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;overflow:visible!important;flex:none!important;
}
.global-brand-logo-img{
  display:block!important;width:150px!important;height:42px!important;max-width:150px!important;max-height:42px!important;
  object-fit:contain!important;object-position:left center!important;visibility:visible!important;opacity:1!important;
}
@media(max-width:1250px){
 .global-brand-logo{width:130px!important;min-width:130px!important;max-width:130px!important;height:38px!important}
 .global-brand-logo-img{width:130px!important;height:38px!important;max-width:130px!important;max-height:38px!important}
}
@media(max-width:900px){
 .global-brand-logo{width:108px!important;min-width:108px!important;max-width:108px!important;height:34px!important}
 .global-brand-logo-img{width:108px!important;height:34px!important;max-width:108px!important;max-height:34px!important}
}
@media(max-width:520px){
 .global-brand-logo{width:98px!important;min-width:98px!important;max-width:98px!important;height:32px!important}
 .global-brand-logo-img{width:98px!important;height:32px!important;max-width:98px!important;max-height:32px!important}
}
