/* Compact reference header. Original action nodes stay mounted. */
@media screen{body.compact-header90 #app-header{background:linear-gradient(110deg,#101d34,#203250)!important;flex-shrink:0}body.compact-header90 #app-header-row{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;min-height:88px!important;height:88px!important;padding:10px 28px!important}body.compact-header90 #header-brand{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:620px!important;overflow:visible!important}body.compact-header90 #header-brand>img{height:42px!important;max-width:110px!important}body.compact-header90 #header-brand h1{font-size:14px!important;line-height:20px!important}body.compact-header90 #header-brand p{font-size:11px!important;margin-top:2px!important;color:#b8c5d8!important}body.compact-header90 #header90-tools{display:flex;align-items:center;gap:5px;flex-shrink:0}body.compact-header90 #header90-tools #pwa-install-button,body.compact-header90 #header90-tools #app-refresh-btn{width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important;padding:7px!important;border-radius:6px!important;display:inline-flex;justify-content:center;align-items:center}body.compact-header90 #header90-tools #pwa-install-button span,body.compact-header90 #header90-tools #app-refresh-btn span{display:none!important}body.compact-header90 #header90-tools #pwa-install-button[hidden]{display:none!important}body.compact-header90 #header90-tools #header-branches{margin:0!important}body.compact-header90 #header90-tools #header-branches>summary{min-height:35px!important;padding:8px 10px!important;border-radius:6px!important;font-size:12px!important;background:#073746!important;color:#7de5ef!important;border:1px solid #167089!important}body.compact-header90 #header90-nav{margin-left:auto;display:flex;align-items:center;gap:18px;flex-shrink:0}body.compact-header90 #header90-nav>button{padding:9px 10px;background:transparent;border:0;color:#f0f4ff;font-size:14px;font-weight:750;border-radius:5px;white-space:nowrap}body.compact-header90 #header90-nav>button:hover{background:#ffffff13}body.compact-header90 #header-controls{display:flex!important;margin:0!important;gap:0!important;flex:0 0 auto!important}body.compact-header90 #header-controls>#header-owner-actions,body.compact-header90 #header-controls>#header-terminal,body.compact-header90 #main-tabs,body.compact-header90 #legacy-workspace-tools{display:none!important}body.compact-header90 #account-profile-menu{margin:0!important}body.compact-header90 #account-profile-menu>summary{height:38px!important;width:38px!important;min-height:38px!important;border:1px solid #899ab4!important;background:transparent!important;color:#edf2fb!important}body.compact-header90 #workspace-landing>.workspace-sidebar{display:none!important}body.compact-header90 #workspace-landing>.overview-content{width:100%!important}body.compact-header90 #workspace-page-actions{flex:0 0 auto;margin-left:0!important}.header90-popup{position:fixed;inset:auto;margin:0;padding:6px;width:280px;max-width:calc(100vw - 16px);overflow:auto;border:1px solid #bdcadd;border-radius:8px;background:white;color:#17364b;box-shadow:0 14px 40px #0c193b40}.header90-popup button{display:block;width:100%;text-align:left;padding:9px 10px;border:0;border-radius:4px;background:white;color:#18384e;font-size:13px;font-weight:650}.header90-popup button:hover{background:#eaf1fc}}
@media screen and (max-width:1250px) and (min-width:701px){body.compact-header90 #app-header-row{gap:7px!important;padding:8px 12px!important}body.compact-header90 #header-brand{max-width:420px!important}body.compact-header90 #header-brand h1{font-size:11px!important}body.compact-header90 #header-brand>img{max-width:80px!important}body.compact-header90 #header90-nav{gap:2px}body.compact-header90 #header90-nav>button{font-size:12px;padding:8px 6px}}
@media screen and (max-width:700px){body.compact-header90 #app-header{height:auto!important;max-height:none!important;min-height:106px!important}body.compact-header90 #app-header-row{height:auto!important;min-height:106px!important;flex-wrap:wrap!important;padding:7px 9px!important;gap:5px!important}body.compact-header90 #header-brand{flex:1!important;max-width:calc(100% - 44px)!important;order:0!important}body.compact-header90 #header-brand>img{height:32px!important;max-width:72px!important}body.compact-header90 #header-brand h1{font-size:10px!important;line-height:14px!important}body.compact-header90 #header-brand p{font-size:9px!important}body.compact-header90 #header-brand>div>div>span{display:none!important}body.compact-header90 #account-profile-menu{order:1!important}body.compact-header90 #header-controls{display:contents!important}body.compact-header90 #header90-tools{order:2!important;gap:4px}body.compact-header90 #header90-nav{order:3!important;gap:0;margin-left:auto;overflow-x:auto;max-width:100%;flex-shrink:1}body.compact-header90 #header90-nav>button{font-size:11px;padding:7px 6px}body.compact-header90 #header90-tools #pwa-install-button,body.compact-header90 #header90-tools #app-refresh-btn{width:28px!important;min-width:28px!important;height:29px!important;min-height:29px!important;padding:5px!important}body.compact-header90 #header90-tools #header-branches>summary{font-size:10px!important;min-height:29px!important;padding:6px!important}body.compact-header90 #workspace-page-actions{order:4!important}}

body.compact-header90 #header-controls>#selling-shift-start{display:none!important}

body.compact-header90 #header90-nav>#header-pos-billing{background:#6636ff;color:white;border:1px solid #ad96ff;font-size:13px;padding:8px 12px} @media(max-width:700px){body.compact-header90 #header90-nav>#header-pos-billing{font-size:10px;padding:6px}}

/* Consistent 64px desktop header on live and staging. */
@media screen and (min-width:1100px){body.compact-header90 #app-header-row{height:64px!important;min-height:64px!important;padding:7px 18px!important;gap:9px!important}body.compact-header90 #header-brand>img{height:36px!important;max-width:90px!important}body.compact-header90 #header-brand h1{font-size:13px!important;line-height:18px!important}body.compact-header90 #header-brand p{font-size:10px!important;line-height:14px!important;margin-top:0!important}body.compact-header90 #header90-nav{gap:10px!important}body.compact-header90 #header90-nav>button{padding:7px 8px!important;font-size:13px!important}}

#header90-tools #selling-shift-start{height:32px;padding:4px 9px;border:1px solid #21b9b1;border-radius:6px;background:#07565a;color:white;font-size:11px;white-space:nowrap}#header90-tools #selling-shift-start[hidden]{display:none}#pos-product-more{padding:0!important;margin:0!important;min-height:0!important;border:0!important;height:1px!important}#shift-closing-details{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:#f1f5f9;border-radius:8px;font-weight:600}

#header90-tools #selling-shift-start[data-till-state=on]{background:#087b4c;border-color:#34d399;color:#fff}#header90-tools #selling-shift-start[data-till-state=off]{background:#334155;border-color:#94a3b8;color:#fff}#header90-tools #selling-shift-start:focus-visible{outline:3px solid #fbbf24;outline-offset:2px}

@media(min-width:701px) and (max-width:1550px){body.compact-header90 #header-brand{max-width:220px!important;min-width:110px!important;flex-shrink:1!important}body.compact-header90 #header-brand h1{max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.compact-header90 #header90-nav{gap:1px!important}body.compact-header90 #header90-nav>button{font-size:11px!important;padding:7px 5px!important}}

/* 2.10.131: reserve room for a readable business name; wrap controls instead of crushing the brand. */
@media screen and (min-width:701px){
 body.compact-header90 #app-header{height:auto!important;max-height:none!important}
 body.compact-header90 #app-header-row{height:auto!important;max-height:none!important;flex-wrap:wrap!important;min-height:82px!important;gap:9px 12px!important;padding:8px 18px!important}
 body.compact-header90 #header-brand{flex:1 0 320px!important;min-width:320px!important;max-width:520px!important;overflow:visible!important}
 body.compact-header90 #header-brand>img{flex:0 0 auto!important;width:90px!important;max-width:90px!important;height:38px!important}
 body.compact-header90 #header-brand>div{min-width:0!important;flex:1!important}
 body.compact-header90 #header-brand>div>div{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:3px 6px!important}
 body.compact-header90 #header-brand h1{flex:1 0 100%!important;min-width:0!important;width:100%!important;max-width:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:break-word!important;font-size:13px!important;line-height:16px!important;max-height:none!important}
 body.compact-header90 #header-brand>div>div>span{flex:0 0 auto!important;white-space:nowrap!important;max-width:none!important;line-height:12px!important}
 body.compact-header90 #header90-tools{flex:0 0 auto!important;flex-wrap:nowrap!important}
 body.compact-header90 #header90-nav{flex:0 1 auto!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:4px 8px!important}
 body.compact-header90 #header90-nav>button{font-size:12px!important;padding:8px 7px!important}
}

/* 2.10.132: branch and database badge share a subtitle line; separate tools from POS. */
body.compact-header90 #header-brand .header90-branch-line{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;margin-top:4px!important}
body.compact-header90 #header-brand .header90-branch-line p{flex:0 1 auto!important;margin:0!important;white-space:nowrap!important}
body.compact-header90 #header-brand .header90-branch-line>span{display:inline-flex!important;flex:0 0 auto!important;white-space:nowrap!important;font-size:9px!important;line-height:12px!important;padding:2px 7px!important}
@media screen and (min-width:701px){body.compact-header90 #header90-nav{margin-left:24px!important;gap:5px 12px!important}body.compact-header90 #header90-nav>button{padding:8px 9px!important}}
@media screen and (max-width:1100px) and (min-width:701px){body.compact-header90 #header90-nav{margin-left:16px!important;gap:5px 8px!important}}
@media screen and (max-width:700px){body.compact-header90 #header-brand .header90-branch-line{gap:5px!important}body.compact-header90 #header-brand .header90-branch-line>span{font-size:8px!important;padding:1px 4px!important}}
@media screen and (min-width:701px){body.compact-header90 #app-header-row{justify-content:flex-start!important}body.compact-header90 #header-controls{margin-left:auto!important}}

/* 2.10.133: approved grouping: brand + tools on left, navigation + profile on right. */
@media screen and (min-width:701px){
 body.compact-header90 #app-header-row{justify-content:flex-start!important;gap:10px 18px!important;padding:12px 26px!important;min-height:88px!important}
 body.compact-header90 #header-brand{flex:0 0 auto!important;width:max-content!important;min-width:0!important;max-width:460px!important}
 body.compact-header90 #header-brand>div{flex:0 1 auto!important;max-width:340px!important}
 body.compact-header90 #header90-tools{margin-left:8px!important;gap:7px!important}
 body.compact-header90 #header90-nav{margin-left:auto!important;padding-left:20px!important;justify-content:flex-end!important;gap:5px 12px!important;flex:0 1 auto!important}
 body.compact-header90 #header-controls{margin-left:0!important}
 body.compact-header90 #account-profile-menu{margin-left:10px!important;flex-shrink:0!important}
}
@media screen and (min-width:701px) and (max-width:1450px){
 body.compact-header90 #app-header-row{padding:10px 16px!important;gap:9px 12px!important}
 body.compact-header90 #header-brand{max-width:380px!important}
 body.compact-header90 #header-brand>div{max-width:275px!important}
 body.compact-header90 #header90-nav{padding-left:12px!important;gap:4px 8px!important}
}

/* 2.10.134: reduce desktop header height without shrinking readable controls. */
@media screen and (min-width:701px){
 body.compact-header90 #app-header{height:auto!important;min-height:64px!important;max-height:none!important}
 body.compact-header90 #app-header-row{min-height:64px!important;height:auto!important;padding:6px 24px!important;row-gap:6px!important}
 body.compact-header90 #header-brand>img{height:34px!important}
 body.compact-header90 #header-brand h1{line-height:16px!important;margin:0!important}
 body.compact-header90 #header-brand .header90-branch-line{margin-top:3px!important}
 body.compact-header90 #header90-nav>button{min-height:34px!important;height:34px!important;padding:6px 9px!important}
 body.compact-header90 #account-profile-menu>summary{width:34px!important;height:34px!important;min-height:34px!important}
}
