.orders-section {
  margin: 0 0 38px;
}
.intro-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
/* Each order is a card that shows everything: its targets with their coordinates, telescope,
   schedule and plan, what each is doing, and what can be done with the order. */
#orders-list {
  display: grid;
  gap: 18px;
}
.ir-order {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 22px 24px;
  scroll-margin-top: 20px;
}
.ir-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.ir-order-head h3 {
  margin: 0;
  font: 600 var(--text-lg) var(--font-heading);
}
.ir-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.ir-pill {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}
.ir-pill.paid {
  color: #9fc58b;
  border-color: #4c6640;
}
.ir-pill.pending {
  color: #e2b866;
  border-color: #6d5a33;
}
.ir-pill.delivered {
  color: var(--softgold);
  border-color: #6d6243;
}
.ir-pill.closed {
  color: var(--muted);
  border-color: var(--line);
}
.ir-target {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.ir-target-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.ir-target-title strong {
  font-size: var(--text-base);
}
/* Coordinates: each a label, its sexagesimal value, and the same in decimal degrees, set lighter. */
.coords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.coord {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
}
.coord b {
  color: #7f8576;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.coord i {
  font-style: normal;
  color: var(--muted);
}
/* What it is imaged with on the first line (RIS, telescope, camera, scale), when and how on the
   second, in the same columns. */
.ir-facts {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 12px 36px;
  font-size: var(--text-sm);
}
.ir-facts .wide {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .ir-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
  }
  .ir-facts .wide {
    grid-column: 1 / -1;
  }
}
.ir-facts span {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--text);
}
.ir-facts b {
  color: #7f8576;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* A target's state, a chip beside its name. */
.ir-state {
  color: var(--softgold);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 2px 10px;
  border: 1px solid #6d6243;
  border-radius: 99px;
}
.ir-state.hold {
  color: #e2b866;
  border-color: #6d5a33;
}
.ir-order-head .ir-target-title h3 {
  margin: 0;
}
.ir-order-head .coords {
  margin: 10px 0 0;
}
/* The order's state, when it was made and its number, set aside from the targets. */
.ir-order-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}
.ir-order-side .ir-meta {
  margin: 0;
}
/* The money and the order's state on one line, the date and number under them. */
.ir-order-state {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ir-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ir-amount small {
  color: var(--muted);
  font-weight: 400;
  font-size: var(--text-sm);
}
.ir-amount.closed {
  color: var(--muted);
  font-weight: 400;
}
.ir-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  flex: 1;
  max-width: 420px;
  height: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
}
/* One row per channel, its columns lined up: channel, frames passed of planned, what it is doing. */
.ir-channels {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: #cfd3c5;
  font-variant-numeric: tabular-nums;
}
.ir-channels li {
  display: contents;
}
.ir-channels .count {
  text-align: right;
}
.ir-channels .now span {
  color: var(--softgold);
}
.ir-target details {
  font-size: var(--text-sm);
}
.ir-target summary {
  justify-content: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.ir-nights {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
  color: #cfd3c5;
  font-variant-numeric: tabular-nums;
}
.ir-nights li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}
.ir-nights em {
  font-style: normal;
  color: var(--muted);
}
.ir-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.ir-money {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.ir-money strong {
  color: var(--text);
  font-weight: 600;
}
.ir-actions,
.ir-confirm {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ir-confirm {
  font-size: var(--text-sm);
}
.button.danger {
  background: transparent;
  border-color: #6b4a46;
  color: var(--error);
}
.button.danger:hover {
  background: #2a1f1d;
}
@media (max-width: 640px) {
  .ir-order {
    padding: 18px 16px;
  }
  .ir-nights li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 760px) {
  .intro {
    flex-direction: column;
    align-items: start;
  }
}
