.fo-report { min-width: 0; }
.fo-report .section-body { min-width: 0; }
.fo-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: .7rem 1rem;
}
.fo-report label { display: grid; gap: .3rem; min-width: 0; }
.fo-report label :is(input, select) { min-width: 0; }
.fo-tools, .fo-print-tools, .fo-doc-tools, .fo-pages, .fo-results-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}
.fo-tools, .fo-print-tools { align-items: end; margin-top: .9rem; }
.fo-tools label { min-width: min(10rem, 100%); }
.fo-print-tools {
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fo-print-tools label { min-width: min(15.5rem, 100%); }
.fo-results-head { justify-content: space-between; margin: 1.2rem 0 .6rem; }
.fo-results-head h3, .fo-doc-head h2, .fo-group h3, .fo-subgroup h4, .fo-house h5,
.fo-summary h4, .fo-totals h3 { margin: 0; }
.fo-results-head > span, .fo-empty, .fo-pages > span, .fo-doc-head p { color: var(--muted); }
.fo-results-head > span, .fo-pages > span { font-size: .9rem; }
.fo-empty, .fo-report .form-error { margin: 1rem 0 0; }
.fo-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .5rem .9rem;
  padding: .7rem .95rem;
  margin: .3rem 0 .9rem;
  background: #f0f5f0;
  border: 1px solid var(--line);
  border-radius: .55rem;
}
.fo-metrics dt, .fo-facts dt { font-size: .82rem; color: var(--muted); }
.fo-metrics dd, .fo-facts dd { margin: 0; }
.fo-metrics dd { font-size: 1.12rem; font-weight: 650; color: var(--rail); font-variant-numeric: tabular-nums; }
.fo-metrics dd small { font-size: .8rem; font-weight: 500; }
.fo-table-wrap { max-width: 100%; overflow: auto; }
.fo-table-wrap:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.fo-table-wrap :is(td, th) {
  padding: .48rem .6rem;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.fo-table-wrap thead th { font-size: .76rem; letter-spacing: .01em; }
.fo-table-wrap :is(td, tbody th) { font-size: .88rem; }
.fo-table-wrap tbody th { background: transparent; color: inherit; letter-spacing: 0; }
.fo-table-wrap .fo-mass { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fo-table-wrap th.fo-mass { white-space: normal; }
.fo-table-wrap :is(th, td) small { display: block; margin-top: .2rem; font-size: .77rem; color: var(--muted); }
.fo-table-wrap .text-button { padding: 0; text-align: start; overflow-wrap: anywhere; }
.fo-report [data-report-body] > .fo-table-wrap table { min-width: 56rem; }
.fo-flag {
  display: inline-block;
  padding: .04rem .44rem;
  border: 1px solid #d6c590;
  border-radius: .3rem;
  color: #654e0e;
  background: #fcf6e5;
  font-size: .78rem;
}
.fo-flag.fo-approved { border-color: #bfd4c1; background: #eaf3eb; color: #215139; }
.fo-pages { justify-content: flex-end; margin: .8rem 0; }
.fo-summary-fold { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.fo-summary-fold > summary { padding: .75rem 0; cursor: pointer; font-weight: 600; }
.fo-summaries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.fo-summary { min-width: 0; }
.fo-summary h4 { margin-bottom: .32rem; font-size: 1rem; }
.fo-summary table { min-width: 17rem; }
.fo-scope-note { margin: .6rem 0; padding: .45rem .7rem; border-inline-start: 3px solid #748d76; background: #f5f7f3; color: #435849; }
.fo-doc-tools { margin: 0 0 1rem; }
.fo-doc-tools .primary { margin-inline-start: auto; }
.fo-document { padding: clamp(.7rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: .55rem; }
.fo-doc-head { margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 2px solid var(--green); }
.fo-doc-head h2 { font-size: clamp(1.15rem, 2vw, 1.7rem); }
.fo-doc-head p { margin: .14rem 0; font-size: .9rem; }
.fo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .55rem 1rem; margin: .65rem 0 1.1rem; }
.fo-facts dd { overflow-wrap: anywhere; }
.fo-group { margin: 1.1rem 0; }
.fo-group h3, .fo-totals h3 { font-size: 1.15rem; }
.fo-subgroup > h4 { margin: .6rem 0 .2rem; }
.fo-house { margin: .4rem 0 .8rem; }
.fo-house h5 { margin-bottom: .25rem; color: var(--green); font-size: .96rem; }
.fo-house table { min-width: 31rem; }
.fo-totals { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.fo-print-copy { display: none; }
@media (min-width: 740px) {
  .fo-search { grid-column: span 2; }
}
@media (max-width: 520px) {
  .fo-tools, .fo-print-tools { align-items: stretch; }
  .fo-tools label, .fo-print-tools label { flex: 1 1 100%; }
  .fo-doc-tools .primary { margin-inline-start: 0; }
  .fo-document { padding: .6rem; }
}
@page fds-feed-orders { size: A4 landscape; margin: 12mm; }
@media print {
  html:has(body > .fo-print-copy), body:has(> .fo-print-copy) {
    page: fds-feed-orders;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    background: white !important;
  }
  body:has(> .fo-print-copy) > :not(.fo-print-copy) { display: none !important; }
  body > .fo-print-copy {
    display: block !important;
    page: fds-feed-orders;
    color: #111;
    background: white;
    font: 10pt/1.32 Arial, sans-serif;
  }
  .fo-print-copy .fo-table-wrap { overflow: visible; }
  .fo-print-copy table { width: 100%; min-width: 0; border-collapse: collapse; }
  .fo-print-copy thead { display: table-header-group; }
  .fo-print-copy tr, .fo-print-copy .fo-facts > div, .fo-print-copy .fo-metrics { break-inside: avoid; }
  .fo-print-copy :is(h2, h3, h4, h5) { break-after: avoid; }
  .fo-print-copy :is(td, th) {
    padding: 1.1mm 1.8mm;
    border-bottom: .2mm solid #c9c9c9;
    color: #111;
    background: transparent;
    font-size: 9pt;
    line-height: 1.3;
    vertical-align: top;
  }
  .fo-print-copy .fo-table-wrap tr:last-child :is(td, th) { border-bottom: .2mm solid #c9c9c9; }
  .fo-print-copy .fo-table-wrap thead th { font-size: 8pt; color: #333; }
  .fo-print-copy :is(.fo-doc-head, .fo-totals) { border-color: #444; }
  .fo-print-copy .fo-doc-head { margin: 0 0 2mm; padding: 0 0 2mm; }
  .fo-print-copy .fo-doc-head h2 { color: #111; font-size: 17pt; }
  .fo-print-copy .fo-doc-head p, .fo-print-copy .fo-facts dt, .fo-print-copy .fo-metrics dt { color: #333; font-size: 9pt; }
  .fo-print-copy .fo-group { margin: 4mm 0; }
  .fo-print-copy .fo-group h3, .fo-print-copy .fo-totals h3 { font-size: 13pt; }
  .fo-print-copy .fo-house { margin: 2mm 0 3mm; }
  .fo-print-copy .fo-house h5, .fo-print-copy .fo-summary h4 { color: #111; font-size: 10pt; }
  .fo-print-copy .fo-metrics { grid-template-columns: repeat(3, 1fr); padding: 2mm 3mm; border-color: #aaa; background: transparent; }
  .fo-print-copy .fo-metrics dd { color: #111; font-size: 11pt; }
  .fo-print-copy .fo-facts { grid-template-columns: repeat(4, 1fr); }
  .fo-print-copy .fo-summaries { display: block; }
  .fo-print-copy .fo-summary { margin-top: 2mm; }
  .fo-print-copy .fo-scope-note { border-color: #888; color: #333; background: transparent; }
}
