/* Shared header rhythm. Wrap at smaller viewports rather than shrinking text. */
.location-command-control-surface.printer-command-header .location-command-tiles { grid-template-columns:minmax(480px,1.7fr) minmax(440px,2.3fr); }
.location-command-control-surface .command-utility-actions .pending-agent-global-action > span:not(.pending-agent-command-icon) { font-size:16px!important; font-weight:750; line-height:1.2; }
@media(max-width:980px) { .location-command-control-surface.printer-command-header .location-command-tiles { grid-template-columns:1fr; } }
body.command-centre-page { height: 100dvh; padding-top: 0; overflow: hidden; display: flex; flex-direction: column; }
body.command-centre-page > header { flex: 0 0 auto; position: relative; top: auto; }
body.command-centre-page > main {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.command-centre-page .location-command-control-surface { flex: 0 0 auto; }
.command-centre-page .location-operations-panel {
  flex: 1 1 0; min-height: 0; height: auto; overflow: hidden; margin-bottom: 0;
}
.command-centre-page .location-operations-layout {
  height: 100%; min-height: 0; overflow: hidden; align-items: stretch;
}
.command-centre-page .location-filter-sidebar {
  height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
}
.command-centre-page .location-sidebar-filters { position: static; }
.command-centre-page .location-operations-list {
  display: block; height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
/* Keep the action cell above the row-wide navigation hit area. */
.command-centre-page [data-location-list] .location-hierarchy-printer > .location-hierarchy-activity-cell {
  pointer-events: auto; position: relative; z-index: 2;
}
.location-printer-test[aria-busy="true"] { opacity: .75; }
.command-utility-actions .pending-agent-global-action > .pending-agent-command-icon {
  width: 54px; height: 54px; flex-basis: 54px; border-radius: 13px;
}
.command-utility-actions .pending-agent-command-icon i { left: 12px; height: 4px; }
.command-utility-actions .pending-agent-command-icon i:nth-child(1) { top: 15px; width: 29px; }
.command-utility-actions .pending-agent-command-icon i:nth-child(2) { top: 25px; width: 22px; }
.command-utility-actions .pending-agent-command-icon i:nth-child(3) { top: 35px; width: 15px; }
.command-location-icon { width: 48px; height: 54px; flex: 0 0 48px; }
.command-utility-actions .location-primary-action::before { display: none; }
.command-utility-actions .pending-agent-global-action > span:not(.pending-agent-command-icon),
.command-utility-actions .location-primary-action > span {
  font-size: 16px; line-height: 1.2; text-align: left; white-space: normal;
}
.location-command-control-surface .location-command-tiles {
  display: grid;
  grid-template-columns: minmax(480px, 1.7fr) minmax(440px, 1.3fr) minmax(340px, 1fr);
  gap: 10px;
  overflow: visible;
  align-items: stretch;
}
.location-command-control-surface .command-workspace-tile {
  min-width: 0; min-height: 76px; grid-column: auto;
  grid-template-columns: minmax(170px, .8fr) minmax(280px, 1.2fr);
  padding: 8px 12px;
}
.command-workspace-copy h1 { font-size: 21px; }
.command-workspace-copy .eyebrow { font-size: 9px; }
.command-workspace-copy p:last-child { font-size: 11px; line-height: 1.3; }
.command-workspace-tile .command-mode-switch a { font-size: 12px; min-height: 44px; }
.location-command-control-surface .location-command-metrics {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; gap: 8px;
}
.location-command-control-surface .location-command-metric {
  width: 100%; min-width: 0; min-height: 76px; height: 100%;
  padding: 8px 10px; margin: 0; align-items: flex-start;
  text-align: left; font-family: inherit; cursor: pointer; color: #16324b;
  transition: box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.location-command-control-surface .location-command-metric span { font-size: 10px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.location-command-control-surface .location-command-metric strong { font-size: 23px; line-height: 1.15; }
.location-command-control-surface .location-command-metric small { font-size: 11px; line-height: 1.2; }
.location-command-control-surface .location-command-metric:hover {
  color: #16324b; background: #edf7ff; transform: translateY(-1px);
  box-shadow: 0 4px 10px #123e6226;
}
.location-command-metric[aria-pressed="true"] { outline: 2px solid #168bd1; outline-offset: -2px; background: #e5f4ff; }
.location-command-metric:focus-visible { outline: 3px solid #168bd1; outline-offset: 2px; }
.location-command-control-surface .command-utility-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0; padding: 0; gap: 10px; grid-column: auto; align-items: stretch;
}
.command-utility-actions .pending-agent-global-action,
.command-utility-actions .location-primary-action {
  display: flex !important; width: 100%; box-sizing: border-box; min-height: 76px; height: 100%;
  justify-content: center; align-items: center; padding: 10px; gap: 10px;
  font-family: inherit; font-size: 13px; font-weight: 750; line-height: 1.25; white-space: normal;
  border-radius: 9px; text-decoration: none;
}
.command-utility-actions .pending-agent-global-action {
  border: 1px solid #69bdf0; color: #075485;
  background: linear-gradient(180deg, #f0faff, #d7efff);
  box-shadow: 0 3px 8px #0c3d6830;
}
.command-utility-actions .pending-agent-global-action:hover { background: #ccecff; color: #063e66; box-shadow: 0 5px 12px #0c3d6840; }
.command-utility-actions .pending-agent-global-action > span:not(.pending-agent-command-icon) { font: inherit; }
.command-utility-actions .pending-agent-global-action.has-pending { border-color: #e9a237; background: #fff1d6; color: #814100; }
.navbar-live-state.location-live-state {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 10px; font-size: 11px; color: #b8f3d6;
  border: 1px solid #2a544e; border-radius: 8px; background: #102b31;
}
.navbar-live-state.stale { color: #ffdb99; border-color: #b88632; }
.navbar-live-state.stale .command-live-icon { border-color: #f5b544; }
.navbar-live-state.stale .command-live-icon::after { background: #f5b544; }
.navbar-live-state.stale .command-live-icon::before { animation: none; border-color: #f5b544; }
@media (max-width: 1500px) {
  .location-command-control-surface .location-command-tiles { grid-template-columns: minmax(460px, 1.3fr) minmax(440px, 1fr); }
  .location-command-control-surface .command-workspace-tile { grid-column: 1 / -1; }
  .location-command-control-surface .command-utility-actions { grid-column: auto; width: 100%; }
  .command-utility-actions .pending-agent-global-action, .command-utility-actions .location-primary-action { min-height: 76px; }
}
@media (max-width: 980px) {
  .location-command-control-surface .location-command-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .location-command-control-surface .command-workspace-tile { grid-template-columns: minmax(0, 1fr); }
  .location-command-control-surface .location-command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-command-control-surface .command-utility-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .location-command-control-surface .location-command-metric { transition: none; transform: none; }
}
.command-centre-page .command-utility-actions .pending-agent-global-action > span:not(.pending-agent-command-icon),
.command-centre-page .command-utility-actions .location-primary-action > span {
  font-size: 16px; line-height: 1.2; text-align: left; white-space: normal;
}
.command-centre-page .command-utility-actions .location-primary-action > span { color: #fff; }
.command-centre-page .location-sidebar-filters { gap: 8px; }
.command-centre-page .location-sidebar-filters .filter-field { gap: 4px; }
.command-centre-page .location-sidebar-filters .filter-field label { margin: 0; }
.command-centre-page .location-sidebar-filters input,
.command-centre-page .location-sidebar-filters select { min-height: 32px; height: 32px; font-size: 12px; }
.command-utility-actions .pending-agent-global-action .pending-agent-command-icon {
  background: transparent; box-shadow: none; animation: none;
}
.pending-agent-command-icon.agent-device-mark svg { width: 100%; height: 100%; }
.pending-agent-command-icon.agent-device-mark.is-idle { filter: grayscale(1); opacity: .45; }
.pending-agent-command-icon .agent-health-badge,
.pending-agent-command-icon .agent-health-check,
.pending-agent-command-icon .agent-health-alert { display: none !important; }
.command-workspace-tile .command-mode-switch.has-edge { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.command-workspace-tile .command-mode-switch.has-edge a { white-space: normal; line-height: 1.15; text-align: center; }
.agents-command-header .location-command-metric { text-decoration: none; }
.agents-command-header .command-utility-actions .location-primary-action > span { color: white; font-size: 16px; }
:root { --workspace-sidebar-width: clamp(240px,22.4vw,376px); }
.command-centre-page .location-operations-layout { grid-template-columns: var(--workspace-sidebar-width) minmax(0,1fr); }
.agents-command-header .location-command-metric small [data-filter-count] { display:inline; font:inherit; color:inherit; letter-spacing:inherit; text-transform:none; }
.command-utility-actions .location-primary-action > .agent-enroll-command-icon { display:block; flex:0 0 48px; width:48px; height:48px; }
.agent-enroll-command-icon svg { display:block; width:100%; height:100%; }
.agent-enroll-command-icon rect { fill:rgba(255,255,255,.16); }
.agent-enroll-command-icon .agent-gateway-line { fill:none; stroke:#fff; stroke-width:4.5; stroke-linecap:round; stroke-linejoin:round; }
.agent-enroll-command-icon .agent-health-badge,
.agent-enroll-command-icon .agent-health-check,
.agent-enroll-command-icon .agent-health-alert { display:none; }
