
.admin-fleet-operations,
.admin-fleet-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-row.admin-fleet-node {
  display: block;
  padding: 0;
  overflow: hidden;
}

.admin-fleet-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 12px;
}

.admin-fleet-left {
  min-width: 0;
}

.admin-fleet-left .admin-row-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-fleet-top .admin-user-toggle {
  width: 36px;
  height: 36px;
}

.admin-fleet-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Fixed-width control slots: the checkbox and the ON/OFF label occupy constant
   geometry so every checkbox stays in one vertical column regardless of state,
   name length, or health text. */
.admin-fleet-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -6px;
  padding: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.admin-fleet-state input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.admin-fleet-state-text {
  width: 4ch;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.admin-node-state-on {
  color: #9ef0b8;
}

.admin-node-state-off {
  color: #ffb2b2;
}

/* Secondary technical line under the node name; must never compete visually
   with the name or the ON/OFF control. */
.admin-fleet-health {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-fleet-health-error {
  color: rgba(255, 159, 159, 0.72);
}

.admin-fleet-details {
  display: none;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-fleet-node.is-open .admin-fleet-details {
  display: block;
}

.admin-fleet-details .admin-node-lines {
  margin-top: 12px;
}

.admin-fleet-details .admin-fleet-operation {
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

.admin-fleet-node .admin-actions,
.admin-fleet-operation .admin-actions {
  margin-top: 10px;
}

.fleet-status-running,
.fleet-status-queued,
.fleet-lifecycle-staged,
.fleet-lifecycle-draining {
  color: #ffe08d;
}

.fleet-status-succeeded,
.fleet-lifecycle-active {
  color: #9ef0b8;
}

.fleet-status-failed,
.fleet-lifecycle-retired {
  color: #ff9f9f;
}
