/* V17: compact customer overview, mobile only; desktop V16 remains unchanged. */
@media (max-width:800px){
 html body #shClientbarV15{padding:8px max(10px,env(safe-area-inset-right,0px)) 0 max(10px,env(safe-area-inset-left,0px))!important;margin:0 auto 10px!important;}
 html body #shClientbarV15 .sh-dashboard-header{border-radius:14px!important;box-shadow:0 5px 18px #07152d20!important;}
 html body #shClientbarV15 .sh-dashboard-top{padding:11px 10px 10px!important;gap:9px!important;min-height:0!important;border-radius:13px 13px 0 0!important;grid-template-columns:minmax(0,1fr)!important;background:linear-gradient(115deg,#182e65,#174a85,#176e9b,#182e65)!important;background-size:240% 100%!important;}
 html body #shClientbarV15 .sh-dashboard-top::before{background-size:auto,28px 28px,28px 28px;opacity:.65;}
 html body #shClientbarV15 .sh-dashboard-top::after{height:1px;}
 html body #shClientbarV15 .sh-account-area{display:grid!important;grid-template-columns:30px minmax(0,1fr);gap:8px!important;align-items:center!important;min-width:0!important;}
 html body #shClientbarV15 .sh-avatar{width:30px!important;height:30px!important;min-width:0!important;font-size:13px!important;box-shadow:0 0 0 3px #8fc8ff12!important;}
 html body #shClientbarV15 .sh-avatar-check{width:12px;height:12px;font-size:7px;}
 html body #shClientbarV15 .sh-account-details{display:contents!important;}
 html body #shClientbarV15 .sh-welcome{grid-column:2;min-width:0!important;font-size:13px!important;line-height:1.35!important;font-weight:700!important;margin:0!important;overflow-wrap:anywhere!important;}
 html body #shClientbarV15 .sh-account-actions-row{grid-column:1/-1;display:grid!important;grid-template-columns:minmax(0,1fr) 44px 54px!important;grid-template-areas:"balance options notifications"!important;gap:6px!important;align-items:stretch!important;margin:0!important;width:100%!important;max-width:100%!important;}
 html body #shClientbarV15 .sh-account-actions-row .sh-balance-pill{grid-area:balance;display:flex!important;justify-self:stretch!important;align-content:center;align-items:center;gap:4px!important;min-height:44px!important;height:100%!important;min-width:0!important;padding:5px 8px!important;font-size:11px!important;margin:0!important;border-radius:9px!important;background:#0c244c66!important;}
 html body #shClientbarV15 .sh-balance-pill strong{font-size:12px!important;line-height:1.2!important;min-width:0;overflow-wrap:anywhere!important;}
 html body #shClientbarV15 .sh-account-options-wrap{grid-area:options!important;}
 html body #shClientbarV15 .sh-account-notifications-wrap{grid-area:notifications!important;}
 html body #shClientbarV15 :is(.sh-account-options-wrap,.sh-account-notifications-wrap){width:100%!important;margin:0!important;min-width:0!important;align-items:stretch!important;}
 html body #shClientbarV15 .sh-account-actions-row :is(.sh-account-options,.sh-account-notifications){width:100%!important;min-width:0!important;min-height:44px!important;height:100%!important;justify-content:center!important;gap:4px!important;padding:4px!important;border-radius:9px!important;background:linear-gradient(145deg,#244d8588,#102a5266)!important;border:1px solid #9ccaff46!important;color:#eaf5ff!important;font-size:13px!important;}
 html body #shClientbarV15 .sh-account-options .sh-v17-option-label,html body #shClientbarV15 .sh-account-notifications-label{display:none!important;}
 html body #shClientbarV15 .sh-account-options .fa-caret-down{font-size:9px!important;}
 html body #shClientbarV15 .sh-account-notifications .sh-account-notification-count{display:inline-flex!important;align-items:center;justify-content:center;min-width:17px!important;height:17px!important;font-size:10px!important;background:#437fd4!important;color:white!important;border-radius:9px!important;}
 html body #shClientbarV15 .sh-account-dropdown{left:auto!important;right:0!important;top:calc(100% + 5px)!important;width:min(212px,calc(100vw - 24px))!important;z-index:1060!important;}
 html body #shClientbarV15 .sh-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;}
 html body #shClientbarV15 .sh-dashboard-stats .sh-stat-item{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;min-height:40px!important;padding:6px 8px!important;border-radius:8px!important;border:1px solid #a9d1ff26!important;background:#10284f55!important;}
 html body #shClientbarV15 .sh-stat-label{font-size:10px!important;gap:4px!important;line-height:1.2!important;min-width:0;}
 html body #shClientbarV15 .sh-stat-number{font-size:16px!important;flex-shrink:0;line-height:1!important;margin:0!important;}
 html body #shClientbarV15 .sh-stat-dot{width:5px;height:5px;flex-basis:5px;}
 html body #shClientbarV15 .sh-dashboard-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:minmax(50px,auto)!important;gap:4px!important;padding:5px!important;border-radius:0 0 13px 13px!important;background:var(--cb-nav)!important;}
 html body #shClientbarV15 .sh-dashboard-nav > :is(a,.sh-nav-dropdown){border:0!important;border-radius:8px!important;min-width:0!important;min-height:50px!important;background:transparent!important;}
 html body #shClientbarV15 .sh-dashboard-nav > a,html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown > .sh-nav-dropdown-trigger{flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:5px 3px!important;gap:4px!important;min-height:50px!important;border-radius:8px!important;line-height:1.15!important;}
 html body #shClientbarV15 .sh-dashboard-nav :is(a)>i{font-size:15px!important;line-height:1!important;transform:none!important;}
 html body #shClientbarV15 .sh-dashboard-nav :is(a)>span{font-size:10px!important;line-height:1.15!important;font-weight:650!important;}
 html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown > .sh-nav-dropdown-trigger{padding-right:26px!important;}
 html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown-toggle{width:30px!important;height:44px!important;min-width:30px!important;min-height:44px!important;top:2px!important;right:0!important;border-radius:8px!important;}
 html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown-toggle i{font-size:10px!important;}
 html body #shClientbarV15 .sh-dashboard-nav a.is-active{background:var(--cb-hover)!important;color:var(--cb-active)!important;box-shadow:inset 0 0 0 1px var(--cb-line)!important;}
 html body #shClientbarV15 .sh-dashboard-nav a.is-active::after{left:12%!important;right:12%!important;height:2px!important;border-radius:2px;}
 html body #shClientbarV15 :is(.sh-account-options,.sh-account-notifications,.sh-stat-item,.sh-dashboard-nav a):active{filter:brightness(1.15);}
 html body .popover-user-notifications{max-width:calc(100vw - 20px)!important;}
}
@media(max-width:360px){html body #shClientbarV15 .sh-dashboard-top{padding:9px 8px!important;}html body #shClientbarV15 .sh-stat-label{font-size:9.5px!important;}html body #shClientbarV15 .sh-balance-pill strong{font-size:11px!important;}html body #shClientbarV15 .sh-dashboard-nav :is(a)>span{font-size:9.5px!important;}}
@media(max-width:800px) and (prefers-reduced-motion:no-preference){
 html body #shClientbarV15 .sh-account-actions-row :is(.sh-account-options,.sh-account-notifications){transition:background .2s,border-color .2s,filter .2s;}
 html body #shClientbarV15 .sh-dashboard-nav a.is-active::after{animation:shV15Aurora 4s linear infinite;}
}
@media(max-width:800px) and (prefers-reduced-motion:reduce){html body #shClientbarV15 *,html body #shClientbarV15 *::before,html body #shClientbarV15 *::after{animation:none!important;transition:none!important;}}
/* Compact phone rhythm: a single row of four real counters. */
@media(max-width:800px){
 html body #shClientbarV15 .sh-dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;}
 html body #shClientbarV15 .sh-dashboard-stats .sh-stat-item{flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:3px!important;padding:5px 3px!important;min-height:48px!important;}
 html body #shClientbarV15 .sh-stat-number{order:-1;font-size:16px!important;}
 html body #shClientbarV15 .sh-stat-label{justify-content:center!important;font-size:9.5px!important;line-height:1.15!important;}
 html body #shClientbarV15 .sh-stat-dot{display:none!important;}
 html body #shClientbarV15 .sh-dashboard-nav{grid-auto-rows:minmax(44px,auto)!important;gap:3px!important;padding:4px!important;}
 html body #shClientbarV15 .sh-dashboard-nav > :is(a,.sh-nav-dropdown),html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown > .sh-nav-dropdown-trigger{min-height:44px!important;}
 html body #shClientbarV15 .sh-dashboard-nav > a,html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown > .sh-nav-dropdown-trigger{padding-top:4px!important;padding-bottom:4px!important;gap:3px!important;}
 html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown-toggle{top:0!important;}
 html body #shClientbarV15 .sh-dashboard-nav .sh-nav-dropdown > .sh-nav-dropdown-trigger{padding-right:25px!important;}
 #header .sh-actions .sh-action{min-height:44px!important;border-radius:10px!important;}
 #header .sh-classic-mode [data-sh-mode-icon]{font-size:0!important;width:19px;height:19px;background:currentColor;display:inline-block;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5'/%3E%3C/svg%3E") center/contain no-repeat;}
 html[data-serhat-theme=light] #header .sh-classic-mode [data-sh-mode-icon]{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M20.5 15.5A9 9 0 0 1 8.5 3.5a9 9 0 1 0 12 12Z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M20.5 15.5A9 9 0 0 1 8.5 3.5a9 9 0 1 0 12 12Z'/%3E%3C/svg%3E");}
}


/* V19: real in-flow mobile account panel, no overlay or stacking dependency. */
@media (max-width:800px) {
 html body #shClientbarV15 .sh-dashboard-top { height:auto!important; max-height:none!important; }
 html body #shClientbarV15 .sh-account-dropdown.sh-v19-inline {
   position:static!important; inset:auto!important; float:none!important;
   transform:none!important; z-index:auto!important; grid-column:1/-1!important;
   display:none!important; box-sizing:border-box!important; width:100%!important;
   min-width:0!important; max-width:100%!important; height:auto!important; max-height:none!important;
   margin:0!important; padding:4px!important; border:1px solid var(--cb-line)!important;
   border-radius:10px!important; background:var(--cb-nav)!important; color:var(--cb-text)!important;
   box-shadow:none!important; overflow:visible!important; opacity:1!important;
 }
 html body #shClientbarV15 .sh-account-dropdown.sh-v19-inline.is-open {display:grid!important;grid-template-columns:minmax(0,1fr);gap:2px!important;}
 html body #shClientbarV15 .sh-account-dropdown.sh-v19-inline a {
   display:flex!important;align-items:center!important;gap:9px!important;min-height:44px!important;
   box-sizing:border-box!important;min-width:0!important;padding:8px 10px!important;
   border:0!important;border-radius:7px!important;color:var(--cb-text)!important;
   font-size:12px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;
 }
 html body #shClientbarV15 .sh-account-dropdown.sh-v19-inline a i {flex:0 0 16px;color:var(--cb-accent)!important;}
 html body #shClientbarV15 .sh-account-dropdown.sh-v19-inline a:is(:hover,:focus-visible,:active){background:var(--cb-hover)!important;color:var(--cb-active)!important;}
 html body #shClientbarV15 .sh-account-options[aria-expanded=true]{background:#254e83!important;border-color:#8fc9ff!important;}
 html body #shClientbarV15 .sh-account-options[aria-expanded=true] .fa-caret-down{transform:rotate(180deg);}
}
@media (max-width:800px) and (prefers-reduced-motion:no-preference){
 html body #shClientbarV15 .sh-account-dropdown.sh-v19-inline.is-open{animation:shV19MenuReveal .18s ease-out!important;}
 @keyframes shV19MenuReveal{from{opacity:0}to{opacity:1}}
}

/* V21: mobile submenus occupy their own full-width grid row. */
@media(max-width:800px){
 html body #shClientbarV15 .sh-dashboard-nav > .sh-v15-menu.sh-v21-inline.is-open {
  display:block!important; visibility:visible!important; opacity:1!important; pointer-events:auto!important;
  position:static!important; inset:auto!important; transform:none!important; float:none!important; z-index:auto!important;
  grid-column:1/-1!important; align-self:stretch!important; box-sizing:border-box!important;
  width:100%!important; min-width:0!important; max-width:100%!important; height:auto!important; max-height:none!important;
  margin:2px 0!important; padding:4px!important; overflow:visible!important; overscroll-behavior:auto!important;
  border:1px solid var(--cb-line)!important; border-radius:10px!important; background:var(--cb-nav)!important;
  box-shadow:inset 0 2px 0 var(--cb-accent)!important;
 }
 html body #shClientbarV15 .sh-dashboard-nav > .sh-v21-inline > a {min-height:44px!important; padding:8px 9px!important; gap:9px!important;}
 html body #shClientbarV15 .sh-dashboard-nav > .sh-v21-inline > a > .sh-client-menu-copy {display:flex!important;text-align:left!important;align-items:flex-start!important;}
 html body #shClientbarV15 .sh-dashboard-nav > .sh-v21-inline .sh-client-menu-copy strong{font-size:12px!important;line-height:1.3!important;}
 html body #shClientbarV15 .sh-dashboard-nav > .sh-v21-inline .sh-client-menu-copy small{font-size:10px!important;line-height:1.35!important;}
 html body #shClientbarV15 .sh-dashboard-nav > .sh-v21-inline .sh-client-menu-icon{width:30px!important;height:30px!important;flex:0 0 30px!important;}
}
@media(max-width:800px) and (prefers-reduced-motion:no-preference){
 html body #shClientbarV15 .sh-dashboard-nav > .sh-v21-inline.is-open{animation:shV19MenuReveal .18s ease-out!important;}
}

/* V22: desktop account menu must paint above the entire navigation layer.
   Raising only the dropdown cannot escape the isolated dashboard-top context. */
@media (min-width:801px){
 html body #shClientbarV15 .sh-dashboard-header{overflow:visible!important;}
 html body #shClientbarV15 .sh-dashboard-top{position:relative!important;z-index:2!important;overflow:visible!important;}
 html body #shClientbarV15 .sh-dashboard-nav{position:relative!important;z-index:1!important;}
 html body #shClientbarV15 .sh-account-options-wrap{position:relative!important;z-index:3!important;overflow:visible!important;}
 html body #shClientbarV15 #shAccountDropdown{position:absolute!important;top:calc(100% + 7px)!important;left:0!important;right:auto!important;z-index:100!important;width:220px!important;max-width:calc(100vw - 24px)!important;padding:5px!important;background:var(--cb-nav)!important;border:1px solid var(--cb-line)!important;border-radius:11px!important;box-shadow:0 12px 28px #07152d55!important;}
 html body #shClientbarV15 #shAccountDropdown a{color:var(--cb-text)!important;border-radius:7px!important;min-height:42px!important;}
 html body #shClientbarV15 #shAccountDropdown a:is(:hover,:focus-visible){background:var(--cb-hover)!important;color:var(--cb-active)!important;}
}
@media (min-width:801px) and (prefers-reduced-motion:no-preference){
 html body #shClientbarV15 #shAccountDropdown.is-open{animation:shV22DesktopMenu .16s ease-out!important;}
 @keyframes shV22DesktopMenu{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
}
