
:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #172848;
  background: #f2f6fb;
  --blue: #1744a3;
  --muted: #4d607d;
  --line: #d8e2ef;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #1762cb; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 4.25rem; }
.brand, .logout, .back, .clear, .order-link { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.logout, .back, .clear { font-weight: 600; }
main { padding-block: clamp(1.5rem, 5vw, 3.5rem) 3rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.15; overflow-wrap: anywhere; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1rem; }
.intro { margin-bottom: 1.3rem; }
.intro p, #hint, .item p { margin-top: .3rem; color: var(--muted); }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 1rem; }
.search, .block, .pager, .empty { padding: clamp(.9rem, 3vw, 1.5rem); }
.search label { display: block; font-weight: 700; }
.login { width: min(100%, 28rem); margin-inline: auto; }
.login form { margin-top: 1rem; display: grid; gap: .75rem; }
.login label { font-weight: 700; }
.login #login-help { color: var(--muted); }
.login-error { color: #962c22; }
.search-actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin-top: .65rem; }
input, button { min-height: 44px; padding: .55rem .8rem; border: 1px solid #73839e; border-radius: .5rem; font: inherit; }
input { flex: 1 1 15rem; min-width: 0; max-width: 32rem; }
button { cursor: pointer; font-weight: 650; background: var(--blue); color: white; border-color: var(--blue); }
button.secondary { background: white; color: var(--blue); }
.table-wrap { container-type: inline-size; }
table { width: 100%; border-collapse: collapse; }
th, td { border-block-start: 1px solid var(--line); text-align: start; padding: .3rem .85rem; overflow-wrap: anywhere; }
thead { background: #eaf1fb; }
thead th { padding-block: .7rem; }
tr > :first-child { padding-inline-start: clamp(.9rem, 3vw, 1.5rem); }
.order-link { font-weight: 700; }
.pending { display: inline-block; color: #694607; background: #fff0ca; border-radius: .45rem; padding: .25rem .5rem; font-weight: 650; }
.cell-label { display: none; }
.pager { display: flex; flex-wrap: wrap; gap: .75rem; border-top: 1px solid var(--line); }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; align-items: start; }
.products { grid-column: 1 / -1; }
dl { margin: .95rem 0 0; display: grid; gap: .75rem; }
dl > div { min-width: 0; }
dt { font-size: .875rem; color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.buyer { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.amounts > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.amounts > div:last-child { border-top: 1px solid var(--line); padding-top: .75rem; font-weight: 700; }
.products ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.item { border-top: 1px solid var(--line); padding-block: .9rem; overflow-wrap: anywhere; }
.item dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: inline-block; padding: .5rem 1rem; background: white; }
@container (width < 45rem) {
  table, tbody, tr { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { padding: .5rem .9rem .75rem; border-top: 1px solid var(--line); }
  tbody tr > :first-child { display: block; padding: 0; }
  td { display: grid; grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr); gap: .5rem; align-items: baseline; padding: .2rem 0; }
  td, th { border: 0; }
  .cell-label { display: inline; color: var(--muted); font-size: .875rem; }
  td .pending { justify-self: start; }
}
