/* The existing object surface consumes the same fading inset frame as closed lines/stations. */
.cityrail-depot-panel[data-shortage="true"] {
  --operation-frame-shadow: var(--ui-operation-frame), var(--material-shadow,var(--ui-shadow));
}
.depot-stock-summary {
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
}
.depot-kpis {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 20px;
  margin: 0;
}
.depot-kpi {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--ui-line);
}
.depot-kpi dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--ui-muted);
}
.depot-kpi dd {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 5px 0 0;
}
.depot-kpi strong {
  font-size: 25px;
  font-weight: 650;
  line-height: 1.15;
  font-optical-sizing: auto;
}
.depot-kpi dd span {
  font-size: 12px;
  color: var(--ui-muted);
}
.depot-stock-note {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ui-muted);
  margin: 12px 0 20px;
}
.depot-supply-status {
  margin: 18px 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ui-line);
}
.depot-supply-status h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 7px;
}
.depot-supply-status[data-shortage="true"] h3,
.depot-shortage-list > li > b {
  --cr-readable-text: var(--ui-danger,#e53935);
  color: var(--cr-readable-text);
}
.depot-supply-status p,
.depot-shortage-list small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ui-muted);
}
.depot-supply-status p {
  margin: 5px 0;
}
.depot-shortage-list {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.depot-shortage-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  font-size: 12px;
}
.depot-shortage-list li > div {
  min-width: 0;
}
.depot-shortage-list strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.depot-shortage-list small {
  display: block;
}
.depot-shortage-list li > b {
  white-space: nowrap;
  font-weight: 600;
}


/* Depot connection editor; the runtime no longer injects these panel rules. */
.depot-conn-route {
  display:flex;
  align-items:center;
  gap:10px;
  border: 0;
  padding: 10px 0;
}
.depot-conn-route strong {
  display:block;
  font-size:14px;
  font-weight:850;
  color:var(--cr-object-text,#f8fafc);
}
.depot-conn-route small {
  display:block;
  margin-top:3px;
  font-size:12px;
  color:var(--cr-object-muted,rgba(235,241,248,.62));
}
.depot-conn-rails,
.depot-conn-tools {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.depot-conn-rails button,
.depot-conn-tools button {
  min-height:36px;
  border:1px solid var(--cr-object-border,rgba(255,255,255,.13));
  border-radius:8px;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
  box-shadow:none;
  background:rgba(255,255,255,.055);
  color:var(--cr-object-text,#f8fafc);
}
.depot-conn-rails button[aria-pressed="true"],
.depot-conn-tools .primary {
  background:var(--cr-object-accent,#0a84ff);
  border-color:var(--cr-object-accent,#0a84ff);
  color:#fff;
}
.depot-conn-tools .secondary {
  background:rgba(255,255,255,.055);
  color:var(--cr-object-text,#f8fafc);
}
.depot-conn-node-field {
  align-items:start;
}
.depot-conn-node-list {
  display:grid;
  gap:7px;
  min-width:0;
}
.depot-conn-node-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-height:44px;
  padding:8px 9px;
  border-radius:10px;
  border:1px solid var(--cr-object-line,rgba(255,255,255,.095));
  background:rgba(5,8,12,.28);
  color:var(--cr-object-text,#f8fafc);
  text-align:left;
  cursor:pointer;
  box-shadow:none;
}
.depot-conn-node-row.active {
  border-color:var(--cr-object-accent,#0a84ff);
  background:rgba(10,132,255,.16);
}
.depot-conn-node-row b {
  display:block;
  font-size:12px;
  font-weight:850;
}
.depot-conn-node-row small {
  display:block;
  margin-top:2px;
  font-size:11px;
  color:var(--cr-object-faint,rgba(235,241,248,.42));
  font-variant-numeric:tabular-nums;
}
.depot-conn-node-row i {
  font-style:normal;
  flex:0 0 auto;
  font-size:12px;
  font-weight:850;
  color:#ffb4ad;
  padding:7px 9px;
  border-radius:9px;
  background:rgba(255,69,58,.12);
}
