/* Shared by the order page, its receipt, and the dedicated history page. */
.teacher-order-record {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #cbdad0;
  border-radius: 12px;
  padding: .9rem;
  margin: 0 0 .8rem;
  line-height: 1.5;
}
.order-record-meta {
  display: grid;
  gap: .25rem;
}
.order-record-date,
.order-record-values,
.order-record-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .7rem;
  font-variant-numeric: tabular-nums;
}
.order-record-date,
.order-reference dt,
.order-record-option {
  color: #405e55;
  font-size: .875rem;
}
.order-record-status {
  background: #e7f3ed;
  color: #154f3f;
  border-radius: .35rem;
  padding: .12rem .45rem;
}
.order-reference {
  display: grid;
  gap: .45rem;
  margin: .8rem 0;
  padding: .65rem .75rem;
  background: #eef5f2;
  border-radius: .5rem;
  color: #163f34;
}
.order-reference dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.order-record-class h3 {
  font-size: 1rem;
  margin: .75rem 0 .15rem;
}
.order-record-items {
  padding: 0;
  margin: 0;
  list-style: none;
}
.order-record-items li {
  display: grid;
  gap: .12rem;
  padding: .4rem 0;
  border-bottom: 1px solid #dde6df;
}
.order-record-total {
  margin: .65rem 0 0;
}
.order-record-total strong {
  color: #126449;
  font-size: 1.125rem;
}
.order-receipt {
  overflow-wrap: anywhere;
}
.order-receipt h3 {
  margin: 0;
}
.order-receipt > p {
  margin: .5rem 0;
}
.order-receipt .receipt-history {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: #126449;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
#order-history {
  scroll-margin-top: 1rem;
}
#history-page-heading {
  font-size: clamp(1.25rem, 5.4vw, 1.5rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#history-current-class {
  margin: .2rem 0 0;
}
#teacher-history-link {
  min-height: 44px;
}
@media (max-width: 460px) {
  #teacher:has(#teacher-orders:not([hidden])) {
    padding: .75rem;
  }
  .teacher-order-record {
    padding: .7rem;
  }
}
