/* Keeps Locations actions in a focused dialog instead of navigating away. */
.location-workspace-popup{width:min(1180px,calc(100vw - 48px));height:min(820px,calc(100vh - 48px));padding:0;border:1px solid #b8c4d4;border-radius:14px;background:#fff;box-shadow:0 24px 64px rgba(16,24,40,.28)}.location-workspace-popup::backdrop{background:rgba(16,24,40,.46);backdrop-filter:blur(2px)}.location-workspace-popup-shell{display:grid;height:100%;grid-template-rows:auto minmax(0,1fr)}.location-workspace-popup-shell>header{display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:0 14px 0 18px;border-bottom:1px solid #d8dee7;background:#f8fbff}.location-workspace-popup-shell>header strong{color:#1d2939;font-size:14px}.location-workspace-popup-shell>header button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #b8c4d4;border-radius:7px;background:#fff;color:#344054;font-size:22px;line-height:1;cursor:pointer}.location-workspace-popup iframe{width:100%;height:100%;border:0;background:#f9fafb}.workspace-embedded .top-navigation,.workspace-embedded .workspace-sticky{display:none}.workspace-embedded main{min-height:0;padding-top:0}.workspace-embedded .page-header{margin-top:0}.workspace-embedded .context-back{display:none}@media(max-width:700px){.location-workspace-popup{width:100vw;height:100vh;max-width:none;max-height:none;border:0;border-radius:0}}

/* Location hierarchy dialogs must remain fully visible after live refreshes. */
.location-operations-panel .lifecycle-dialog{position:fixed;inset:16px;margin:auto;width:min(640px,calc(100vw - 32px));height:fit-content;max-height:calc(100vh - 32px);overflow:auto}.location-operations-panel .lifecycle-dialog-shell{gap:14px}.location-operations-panel .lifecycle-dialog .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.location-operations-panel .lifecycle-dialog .settings-field{min-width:0}.location-operations-panel .lifecycle-dialog .settings-field input,.location-operations-panel .lifecycle-dialog .settings-field select{width:100%;box-sizing:border-box}@media(max-width:600px){.location-operations-panel .lifecycle-dialog{inset:8px;width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.location-operations-panel .lifecycle-dialog .settings-grid{grid-template-columns:1fr}}


/* Embedded Agent setup fits the action in the dialog instead of adding a document scroll. */
.workspace-embedded main{margin-left:0;padding:18px 20px 20px}.workspace-embedded .agent-enrollment-grid{gap:14px}.workspace-embedded .agent-setup-summary{position:static}


/* Every workspace dialog owns navigation; embedded pages never render a second Back action. */
.workspace-embedded .context-back{display:none!important}
.location-workspace-popup{width:min(1440px,calc(100vw - 32px));height:min(900px,calc(100vh - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px)}
.location-workspace-popup iframe{min-width:0;overflow:hidden}
.workspace-embedded{overflow:auto}.workspace-embedded main{width:auto;max-width:none;min-width:0;overflow-x:auto}
.workspace-embedded .filter-bar,.workspace-embedded .job-history-panel,.workspace-embedded .job-history-list{min-width:0;max-width:100%}
@media(max-width:700px){.location-workspace-popup{width:100vw;height:100dvh;max-width:none;max-height:none}.workspace-embedded{overflow:auto}.workspace-embedded main{padding:14px;overflow:visible}}


/* Popup workspaces retain a quiet Traze identity bar, never the interactive global menu. */
.workspace-embedded .top-navigation{position:static!important;z-index:auto!important;display:flex!important;min-height:86px!important;padding:0 30px!important;background:linear-gradient(90deg,#07192c 0%,#0a1d31 52%,#07192c 100%)!important;box-shadow:inset 0 -1px 0 rgba(116,185,215,.2),0 4px 12px rgba(15,23,42,.16)}
.workspace-embedded .top-navigation::after{width:min(55%,620px);height:54px;margin-left:28px;border-left:1px solid rgba(115,183,213,.26);border-right:1px solid rgba(115,183,213,.16);background:repeating-linear-gradient(90deg,transparent 0,transparent 17px,rgba(115,183,213,.16) 18px,transparent 19px);content:""}
.workspace-embedded .top-navigation .top-brand{display:flex!important;flex:0 0 auto;margin:0!important;padding:0 18px 0 4px!important;border-right:1px solid rgba(115,183,213,.28);color:#fff!important;pointer-events:none}
.workspace-embedded .top-navigation .top-navigation-menu,.workspace-embedded .top-navigation .top-navigation-meta,.workspace-embedded .top-navigation .dashboard-live-notices{display:none!important}
.workspace-embedded .workspace-sticky{display:none!important}
@media(max-width:700px){.workspace-embedded .top-navigation{min-height:64px!important;padding:0 16px!important}.workspace-embedded .top-navigation::after{display:none}.workspace-embedded .top-navigation .top-brand{border-right:0}}

/* The host dialog acknowledges navigation while the embedded workspace loads. */
.location-workspace-popup-shell{position:relative}.location-workspace-popup-content{position:relative;min-height:0;overflow:hidden}.location-workspace-popup-content iframe{display:block}.location-workspace-popup-loading{position:absolute;inset:0;display:none;place-content:center;justify-items:center;gap:9px;background:linear-gradient(135deg,rgba(248,251,255,.97),rgba(238,246,255,.96));color:#10233e;text-align:center}.location-workspace-popup.is-loading .location-workspace-popup-loading{display:grid}.location-workspace-popup-spinner{width:34px;height:34px;border:3px solid #b8d8ee;border-top-color:#1c8ece;border-radius:50%;animation:locationWorkspaceSpin .75s linear infinite}.location-workspace-popup-loading strong{font-size:14px}.location-workspace-popup-loading>span:last-child{color:#58708a;font-size:11px}@keyframes locationWorkspaceSpin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.location-workspace-popup-spinner{animation:none}}
