.avolt-redesign .order-history {
  max-inline-size: 960px;
  margin-inline: auto;
  color: #173151;
}
.order-history h1 {
  margin: 3px 0 16px;
  font-size: clamp(23px, 4.6vw, 32px);
  font-weight: 700;
  line-height: 1.22;
}
.oh-filters, .oh-results, .oh-stats > div, .order-history > .oh-empty {
  border: 1px solid #dce5f3;
  border-radius: 16px;
  background: #fff;
}
.oh-filters {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 11px;
  padding: clamp(12px,3vw,18px);
}
.oh-filters label {
  display: grid;
  gap: 5px;
  min-inline-size: 0;
  color: #4d6382;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.oh-filters :is(input,select) {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 42px;
  padding: 7px 9px;
  border: 1px solid #d8e3f4;
  border-radius: 9px;
  background: #f7f9fd;
  color: #173151;
  font: inherit;
  font-size: 14px;
}
.oh-query {
  display: flex;
  grid-column: 1/-1;
  justify-content: flex-end;
  gap: 8px;
}
.oh-query .btn { min-inline-size: 68px; }
.oh-query .btn, .oh-pagination .btn, .oh-empty .btn { min-height: 40px; padding: 7px 13px; border-radius: 9px; }
.oh-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 14px 0; }
.oh-stats > div { min-inline-size: 0; padding: 12px 11px; background: #f9fbff; }
.oh-stats dt { margin: 0 0 6px; color: #506785; font-size: 12px; overflow-wrap: anywhere; }
.oh-stats dd { margin: 0; font-size: clamp(17px,4vw,24px); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.avolt-redesign .oh-stats small, .avolt-redesign .oh-net small { display: inline; font-size: .58em; font-weight: 650; }
.oh-gain { color: #127356; }
.oh-loss { color: #aa3349; }
.oh-results { padding: 0 clamp(11px,3vw,18px); }
.oh-results header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; padding: 14px 0; }
.oh-results h2 { margin: 0; font-size: 16px; }
.oh-results header span, .oh-order-time { color: #536988; font-size: 12px; }
.oh-order { border-block-start: 1px solid #e7edf7; }
.oh-order summary {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) max-content minmax(64px,.65fr) 12px;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
}
.oh-order summary::-webkit-details-marker { display: none; }
.oh-order summary::after {
  content: '';
  inline-size: 6px;
  block-size: 6px;
  border: solid #6480a4;
  border-width: 0 1.5px 1.5px 0;
  justify-self: center;
  transform: rotate(45deg);
}
.oh-order[open] summary::after { transform: rotate(225deg); }
.oh-order-identity { display: grid; gap: 3px; min-inline-size: 0; }
.oh-order-identity strong { font-size: 14px; }
.avolt-redesign .oh-order-identity strong small { display: inline; color: #6b819d; font-size: 10px; }
.oh-order-identity > span { color: #4b6384; font-size: 11px; overflow-wrap: anywhere; }
.oh-order-status { justify-self: start; padding: 4px 6px; border-radius: 5px; background: #edf2f8; color: #516785; font-size: 10px; }
.oh-order-status[data-status="settled"] { background: #eaf6f0; color: #1d7158; }
.oh-order-status[data-status="open"] { background: #edf3ff; color: #2453a2; }
.oh-net { justify-self: end; font-size: 14px; text-align: end; }
.oh-order dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0 0 11px; padding: 10px; border-radius: 9px; background: #f3f7fd; }
.oh-order dt { color: #536988; font-size: 11px; }
.oh-order dd { margin: 3px 0 0; font-size: 12px; color: #203b60; overflow-wrap: anywhere; }
.oh-order-id { grid-column: 1/-1; }
.oh-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 0; }
.oh-pagination[hidden] { display: none; }
.oh-pagination span { color: #536988; font-size: 12px; }
.oh-empty { margin: 0; padding: 22px 8px; color: #536988; text-align: center; font-size: 14px; }
.oh-empty p { margin: 0 0 10px; }

@media (max-width: 620px) {
  .oh-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .oh-filters label:first-child, .oh-keyword { grid-column: 1/-1; }
  .oh-query .btn { flex: 1; }
  .oh-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .oh-order summary { grid-template-columns: minmax(0,1fr) auto 10px; gap: 4px 8px; }
  .oh-order-identity { grid-row: 1; grid-column: 1; }
  .oh-order-time { grid-row: 2; grid-column: 1; font-size: 11px; }
  .oh-net { grid-row: 1; grid-column: 2; }
  .oh-order-status { grid-row: 2; grid-column: 2; justify-self: end; }
  .oh-order summary::after { grid-column: 3; grid-row: 1/3; }
}
