.secure-scope{flex-wrap:wrap;gap:12px}.location-static,.location-empty{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:12px;background:var(--accent-bg);color:var(--text);cursor:default;min-width:0}.location-static small,.location-mobile small{display:block;color:var(--secondary);font-size:10px;margin-bottom:3px}.location-static strong,.location-mobile strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.location-static .icon,.location-select .icon,.location-empty .icon,.location-mobile .icon{width:18px;flex-shrink:0;color:var(--primary)}.location-empty{font-size:12px;background:transparent}.secure-scope .location-select{display:flex;align-items:center;gap:8px}.location-select select{max-width:260px;min-height:44px!important}.location-mobile{display:none}.business-static{cursor:default}.location-choices{display:grid;gap:8px}.location-choices button{min-height:48px;justify-content:space-between;text-align:left}.location-choices button[aria-current=true]{background:var(--accent-bg);border-color:var(--primary)}.secure-scope.pos-location .location-static{padding:6px 10px}.secure-scope.pos-location .location-static small{display:none}
@media(max-width:600px){.secure-scope{gap:8px}.secure-scope .location-select{display:none}.location-mobile{display:flex;align-items:center;gap:8px;min-height:48px;max-width:100%;flex:1;text-align:left}.location-mobile>span:nth-child(2){flex:1}.location-static{padding:8px 10px;flex:1}.scope-status{width:100%;margin-left:0}.location-sheet{width:100%;max-height:85dvh!important;border-radius:18px 18px 0 0!important;padding:24px!important}.modal-backdrop:has(.location-sheet){padding:0;align-items:flex-end}}
.tenant-topbar{height:72px;padding:0 24px;gap:12px;overflow:visible}
.tenant-topbar .topbar-left{flex:1;gap:16px;min-width:0}.business-context-identity{display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:0}
.tenant-topbar .business-switch{max-width:230px;gap:9px}.tenant-topbar .business-switch>span:nth-child(2){min-width:0}.tenant-topbar .business-switch strong,.tenant-topbar .business-switch small{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-topbar .business-switch>.icon{flex-shrink:0;margin-left:0}
.header-location-context{display:flex;align-items:center;gap:8px;min-width:0}.header-location-selector{height:44px;min-width:0;width:180px;max-width:180px;display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--border,var(--border-subtle));border-radius:13px;background:color-mix(in srgb,var(--accent-bg) 45%,var(--surface));text-align:left;color:var(--text)}
button.header-location-selector:hover,button.header-location-selector[aria-expanded=true]{border-color:var(--primary);background:var(--accent-bg)}.header-location-selector>.icon{width:18px;height:18px;flex-shrink:0;color:var(--primary)}.header-location-selector>span{flex:1;min-width:0}.header-location-selector small{display:block;font-size:9px;line-height:12px;color:var(--secondary);margin:0 0 2px}.header-location-selector strong{display:block;font-size:11px;line-height:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location-chevron{width:13px;height:13px;flex-shrink:0;color:var(--secondary)}
.tenant-topbar .topbar-right{flex-shrink:0;gap:8px}.header-plan-status{font-size:10px;color:var(--secondary);margin-top:10px}.header-plan-status .badge{font-size:9px}
.location-popover{position:fixed;z-index:90;padding:12px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 36px #183e2926;overflow:auto}.location-popover>strong{display:block;font-size:12px;margin:2px 4px 12px}.location-popover input{width:100%;min-height:40px;margin-bottom:10px}.location-popover .location-choices{gap:4px}.location-popover .location-choices button{width:100%;padding:10px;white-space:normal;gap:10px;font-size:12px}.location-popover .location-choices button>span{min-width:0;overflow-wrap:anywhere}.location-popover .location-choices button>.icon{width:17px;flex-shrink:0;color:var(--primary)}.location-popover [hidden]{display:none!important}.location-no-results{padding:14px 4px;color:var(--secondary);font-size:12px}
@media(min-width:768px) and (max-width:1399px){.tenant-topbar .profile>span:not(.dk-avatar){display:none}.tenant-topbar .topbar-right>.btn[data-action=search]{font-size:0;padding:10px;min-width:40px}.tenant-topbar .topbar-left{gap:12px}.tenant-topbar .business-switch{max-width:200px}.header-location-selector{width:155px}}
@media(min-width:768px) and (max-width:1023px){.tenant-topbar{padding:0 16px;gap:8px}.tenant-topbar .topbar-left{gap:10px}.tenant-topbar .business-switch{max-width:180px}.header-location-selector{width:140px;padding:7px 8px}.header-location-selector small{display:none}.tenant-topbar .topbar-right{gap:3px}.tenant-topbar .business-switch strong{max-width:130px}}
@media(max-width:767px){.tenant-topbar{height:auto;min-height:112px;padding:10px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}.tenant-topbar .topbar-left{display:contents}.tenant-topbar .business-context-identity{grid-column:1;grid-row:1;min-width:0}.tenant-topbar .topbar-right{grid-column:2;grid-row:1}.tenant-topbar .header-location-context{grid-column:1/-1;grid-row:2;width:100%;gap:8px}.tenant-topbar .header-location-selector{flex:1;width:0;max-width:none;height:44px}.tenant-topbar .header-location-selector small{display:none}.tenant-topbar .business-switch{max-width:100%}.tenant-topbar .business-switch strong{max-width:180px;font-size:12px}.tenant-topbar .business-switch small{max-width:180px}.tenant-topbar .topbar-right>.btn[data-action=search]{font-size:0;padding:8px;min-width:36px}.tenant-topbar .profile,.tenant-topbar .topbar-right>[data-action=theme]{display:none}}
@media(max-width:419px){.tenant-topbar{padding:8px 12px}.tenant-topbar .business-switch strong,.tenant-topbar .business-switch small{max-width:150px}.tenant-topbar .header-location-selector{padding:7px 8px;gap:6px}.tenant-topbar .header-location-selector strong{font-size:10px}}
@media(max-width:319px){.tenant-topbar .header-location-context{flex-wrap:wrap}.tenant-topbar .header-location-selector{flex-basis:100%;width:100%}.tenant-topbar .business-switch strong,.tenant-topbar .business-switch small{max-width:95px}}
@media print{.location-popover{display:none!important}}
