/* Compact global header. No changes to context, permissions or financial data. */
.app-body .topbar.compact-workspace-header{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;min-height:80px;padding:10px 18px;position:relative;isolation:isolate}
.app-body .topbar.compact-workspace-header .menu-toggle{position:static;flex:0 0 28px;padding:4px;min-width:28px;margin:0;font-size:22px}
.app-body .topbar.compact-workspace-header .context{display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto;gap:12px;width:auto;padding:0;min-width:0}
.topbar.compact-workspace-header .active-company{flex:1 1 260px;max-width:380px;min-width:165px;gap:8px;width:auto}
.topbar.compact-workspace-header .active-company img,.topbar.compact-workspace-header .company-initials{width:44px;height:44px;max-width:44px;max-height:44px;object-fit:contain;flex:0 0 44px;padding:0}
.topbar.compact-workspace-header .active-company>span:last-child{min-width:0;gap:2px}
.topbar.compact-workspace-header .active-company strong{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar.compact-workspace-header .active-company small{font-size:11px;white-space:nowrap}
.topbar.compact-workspace-header .company-change-label{font-size:11px;color:#176c76}
.topbar.compact-workspace-header .company-meta{display:flex;gap:4px;align-items:center}
.topbar.compact-workspace-header .company-meta .edition-badge{margin:0}
.topbar.compact-workspace-header .operating-context-value{flex:0 0 auto;white-space:nowrap;gap:3px}
.topbar.compact-workspace-header .operating-context-value>span{font-size:11px;color:#526b7e}
.topbar.compact-workspace-header .operating-context-value strong{font-size:14px}
.topbar.compact-workspace-header .context-change-link{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;min-height:40px;text-decoration:none;flex:none}
.topbar.compact-workspace-header .context-change-link .as-icon{width:18px;height:18px}
.topbar.compact-workspace-header .context-label-short,.topbar.compact-workspace-header .pos-label-short{display:none;text-decoration:none}
.app-body .topbar.compact-workspace-header .pos-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;white-space:nowrap;font-size:13px;min-height:44px;padding:10px 14px;margin:0}
.topbar.compact-workspace-header .service-quota{font-size:11px;max-width:190px}
.topbar.compact-workspace-header .workspace-user-menu{position:relative;flex:none;margin:0}
.topbar.compact-workspace-header .workspace-user-menu>summary{list-style:none;cursor:pointer;border-radius:8px;min-height:44px;display:flex;align-items:center}
.topbar.compact-workspace-header .workspace-user-menu>summary::-webkit-details-marker{display:none}
.topbar.compact-workspace-header .workspace-user-menu>summary:focus-visible{outline:2px solid #176c76;outline-offset:3px}
.topbar.compact-workspace-header .user-chip{gap:8px;min-width:0}
.topbar.compact-workspace-header .user-chip>span:first-child{width:40px;height:40px;min-width:40px;display:grid;place-items:center;border-radius:50%;background:#e6f1f3;color:#176c76;font-size:13px;font-weight:700}
.topbar.compact-workspace-header .user-chip>.user-identity{display:grid;gap:2px;max-width:185px;background:transparent;color:inherit;width:auto;height:auto;border-radius:0;min-width:0}
.topbar.compact-workspace-header .user-identity strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar.compact-workspace-header .user-identity small{font-size:11px;white-space:nowrap}
.topbar.compact-workspace-header .workspace-user-popover{position:absolute;z-index:70;top:calc(100% + 8px);right:0;display:grid;gap:10px;background:#fff;border:1px solid #b5c8cf;border-radius:10px;box-shadow:0 8px 24px #102b4633;padding:16px;width:min(280px,calc(100vw - 100px));box-sizing:border-box;overflow-wrap:anywhere;color:#18334c}
.topbar.compact-workspace-header .workspace-user-popover>strong{font-size:14px}.topbar.compact-workspace-header .workspace-user-popover>small{font-size:12px}.topbar.compact-workspace-header .workspace-user-popover>a{min-height:44px;display:flex;align-items:center;color:#176c76}
.app-body .topbar.compact-workspace-header .workspace-user-popover .logout-form{display:block}.app-body .topbar.compact-workspace-header .workspace-user-popover .logout{width:100%;justify-content:center}
.topbar.compact-workspace-header .profile-link{font-size:12px;white-space:nowrap}
@media(max-width:1599px){.topbar.compact-workspace-header .user-chip>.user-identity{display:none}.app-body .topbar.compact-workspace-header{gap:8px;padding:10px 12px}.app-body .topbar.compact-workspace-header .context{gap:9px}.topbar.compact-workspace-header .active-company{max-width:310px}.topbar.compact-workspace-header .header-profile-wide,.app-body .topbar.compact-workspace-header .header-logout-wide{display:none}}
@media(max-width:1199px){.topbar.compact-workspace-header .active-company{min-width:156px;flex-basis:190px}.topbar.compact-workspace-header .active-company strong{font-size:13px}.topbar.compact-workspace-header .active-company img,.topbar.compact-workspace-header .company-initials{width:36px;height:40px;max-width:36px;max-height:40px;flex-basis:36px}.topbar.compact-workspace-header .context-label-wide,.topbar.compact-workspace-header .pos-label-wide{display:none}.topbar.compact-workspace-header .context-label-short,.topbar.compact-workspace-header .pos-label-short{display:inline}.app-body .topbar.compact-workspace-header .context{gap:7px}.topbar.compact-workspace-header .environment-badge{padding:5px;font-size:11px!important}.app-body .topbar.compact-workspace-header .pos-button{padding:9px;font-size:12px}.topbar.compact-workspace-header .operating-context-value strong{font-size:12px}.topbar.compact-workspace-header .service-quota{max-width:120px}}
@media(max-width:820px){
 .app-body .topbar.compact-workspace-header{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;padding:10px}
 .app-body .topbar.compact-workspace-header .menu-toggle{position:static;grid-column:1;grid-row:1;min-height:44px}
 .app-body .topbar.compact-workspace-header .active-company{grid-column:2;grid-row:1;max-width:none;width:auto;min-width:0}
 .topbar.compact-workspace-header .workspace-user-menu{grid-column:3;grid-row:1}
 .app-body .topbar.compact-workspace-header .context{display:grid;grid-column:1/-1;grid-row:2;grid-template-columns:auto repeat(3,minmax(0,1fr)) auto;align-items:center;gap:8px;padding-top:4px}
 .app-body .topbar.compact-workspace-header .context>.operating-context-value{display:grid;justify-self:center}
 .topbar.compact-workspace-header .context-change-link{justify-content:center;min-width:40px}
 .app-body .topbar.compact-workspace-header .pos-button{grid-row:3;grid-column:2/4;justify-self:end}
 .topbar.compact-workspace-header .service-quota{grid-row:3;grid-column:1/3;justify-self:start;max-width:140px}
 .topbar.compact-workspace-header .company-meta{flex-wrap:wrap}.topbar.compact-workspace-header .active-company small{white-space:normal}
}
@media print{.app-body .topbar.compact-workspace-header{display:none!important}}
