/* Rack elevation page — layout chrome only.
   Device colours live in rack.js and are deliberately fixed rather than themed:
   a rack stencil should look the same on paper as on screen. */

.rack-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 24px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 57px;
  z-index: 15;
}
.ctl { display: flex; flex-direction: column; gap: 5px; }
.ctl > label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.ctl select { min-width: 150px; }
.check-ctl { flex-direction: row; gap: 18px; align-items: center; padding-bottom: 6px; }
.check-ctl .check { font-size: 12.5px; white-space: nowrap; }
.ctl-summary {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.5;
  padding-bottom: 4px;
}
.ctl-summary b { color: var(--text-primary); font-weight: 600; }

a.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.2;
}

.rack-main {
  padding: 24px;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rack-section > h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 4px;
  font-weight: 600;
}
.rack-section > .sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.rack-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.rack-unit { flex: none; }
.rack-unit .rack-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.rack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.rack-legend .legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.rack-legend .line { width: 22px; height: 3px; border-radius: 2px; flex: none; }

.rack-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 12px;
  max-width: 90ch;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

@media print {
  .rack-controls, .topbar-actions { display: none; }
  .rack-row { overflow: visible; }
  body { background: #fff; }
}
