.fbo-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fbo-tabs [data-fbo-tab=history] { justify-content: center; }
.fbo-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.fbo-history-head h3 { margin: 0; }
.fbo-history-filters { grid-template-columns: 2fr 1.5fr 1fr 1fr; }
.fbo-history-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
}
.fbo-history-columns, .fbo-history-row {
  display: grid;
  grid-template-columns: minmax(9rem, 2fr) repeat(2, minmax(4.25rem, .7fr)) minmax(5.5rem, .85fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.fbo-history-scroll { container-type: inline-size; }
.fbo-history-columns { color: var(--muted); font-size: 11px; font-weight: 650; }
.fbo-history-row {
  width: 100%;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  min-height: 68px;
}
.fbo-history-row:hover, .fbo-history-row[aria-expanded=true] { background: var(--fbo-soft); }
.fbo-history-row > span { min-width: 0; overflow-wrap: anywhere; }
.fbo-history-row .fbo-product { white-space: normal; }
.fbo-history-row .fbo-product-name { max-inline-size: 48ch; hyphens: auto; }
.fbo-history-row > span > small { display: none; }
.fbo-history-detail { padding: 12px 16px 16px; min-width: 0; }
.fbo-history-detail td small { display: block; color: var(--muted); margin-top: 3px; }
.fbo-history-detail .secondary-button { margin-top: 10px; }

@media (max-width: 950px) {
  .fbo-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fbo-history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fbo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbo-tabs [data-fbo-tab=history] { grid-column: 1 / -1; }
  .fbo-history-filters label { min-width: 0; }
  .fbo-history-filters input { min-width: 0; width: 100%; }
}
@container (max-width: 36rem) {
  .fbo-history-scroll:not([data-column-table]) .fbo-history-columns { display: none; }
  .fbo-history-scroll:not([data-column-table]) .fbo-history-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 16px;
    gap: 7px;
    padding: 12px;
  }
  .fbo-history-scroll:not([data-column-table]) .fbo-history-row .fbo-product { grid-column: 1 / 4; }
  .fbo-history-scroll:not([data-column-table]) .fbo-history-row .fbo-chevron { grid-column: 4; grid-row: 1; }
  .fbo-history-scroll:not([data-column-table]) .fbo-history-row > span > small { display: block; color: var(--muted); margin-bottom: 3px; }
  .fbo-history-detail { padding: 8px 10px 12px; }
}
