.sales-history-page {
  --sh-line: color-mix(in srgb, var(--border) 78%, transparent);
  width: 100%;
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;
  color: var(--text);
}
.sales-history-page > *, .sales-history-page .sh-workspace > * { min-width: 0; }
.sales-history-page :is(h1,h2,h3,p,dl) { margin: 0; }
.sales-history-page .sh-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 24px; }
.sales-history-page .sh-heading h1 { margin: 0; font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1.05; letter-spacing: -.3px; }
.sales-history-page .sh-development { display: inline-flex; align-items: center; align-self: center; flex: 0 0 auto; gap: 6px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--warning); font-size: 11px; font-weight: 400; line-height: 1.5; }
.sales-history-page .sh-development::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.sales-history-page .sh-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin-left: auto; }
.sales-history-page .sh-heading-actions > a { display: inline-flex; align-items: center; min-height: 35px; color: var(--text); font-size: 12px; line-height: 1.5; text-decoration: none; }
.sales-history-page .sh-heading-actions > a:not(.primary):hover { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.sales-history-page :is(button,a.button) { min-height: 35px; padding: 7px 12px; border-radius: 3px; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; box-shadow: none; }
.sales-history-page :is(button,a).primary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent-deep); background: var(--accent-deep); color: var(--on-accent); text-decoration: none; box-shadow: none; }
.sales-history-page :is(button,a).primary:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); }
.sales-history-page :is(a,button,input,select,summary):focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.sales-history-page :disabled { cursor: default; opacity: .55; }
.sales-history-page .sh-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 13px 15px; padding: 16px 0; border-block: 1px solid var(--sh-line); }
.sales-history-page .sh-filters label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.sales-history-page .sh-filters > .sh-search { flex: 1 1 220px; max-width: 430px; }
.sales-history-page .sh-filters > .sh-date { flex: 0 1 142px; min-width: 133px; }
.sales-history-page .sh-filters :is(input,select) { width: 100%; min-width: 0; height: 35px; min-height: 35px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-input); color: var(--text); font-family: inherit; font-size: 12px; line-height: 1.5; box-shadow: none; }
.sales-history-page .sh-search > input { padding-inline: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; font-size: 13px; }
.sales-history-page .sh-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.sales-history-page .sh-presets > button { min-height: 33px; padding: 6px 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 11px; font-weight: 400; }
.sales-history-page .sh-presets > button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.sales-history-page .sh-presets > button[aria-pressed="true"] { border-color: var(--border); color: var(--text); }
.sales-history-page .sh-more-filters { min-width: 0; }
.sales-history-page .sh-more-filters > summary { width: fit-content; min-height: 35px; padding: 8px 0; color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1.5; }
.sales-history-page .sh-more-filters > summary:hover { color: var(--text); }
.sales-history-page .sh-more-filters[open] { order: 2; flex: 1 1 100%; }
.sales-history-page .sh-extra-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; max-width: 680px; padding-top: 14px; margin-top: 5px; border-top: 1px solid var(--sh-line); }
.sales-history-page .sh-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; min-width: 0; margin-left: auto; }
.sales-history-page .sh-filter-actions > a { display: inline-flex; align-items: center; min-height: 35px; color: var(--muted); font-size: 12px; text-decoration: none; }
.sales-history-page .sh-filter-actions > a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sales-history-page :is(.sh-message,.sh-dirty,.sh-detail-message) { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.sales-history-page :is(.sh-message,.sh-detail-message)[data-error="true"], .sales-history-page .sh-dirty { color: var(--warning); }
.sales-history-page :is(.sh-message,.sh-detail-message):empty { display: none; }
.sales-history-page .sh-overview { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 20px 44px; padding: 26px 0 25px; }
.sales-history-page .sh-overview > div { display: grid; gap: 7px; min-width: 0; }
.sales-history-page .sh-overview :is(span,small) { color: var(--muted); font-size: 11px; line-height: 1.5; }
.sales-history-page .sh-overview > div:first-child > strong, .sales-history-page .sh-overview-total > strong { color: var(--text); font-family: var(--font-display); font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: -.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sales-history-page .sh-overview > div:not(:first-child) > strong, .sales-history-page .sh-overview-count > strong { color: var(--text); font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sales-history-page .sh-result-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px 20px; min-width: 0; padding: 16px 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-overview + .sh-result-meta { padding-top: 0; }
.sales-history-page .sh-result-meta strong { color: var(--text); font-weight: 500; }
.sales-history-page .sh-workspace { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 32px; }
.sales-history-page[data-detail-open="true"] .sh-workspace { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
.sales-history-page .sh-register { min-width: 0; }
.sales-history-page .sh-day { min-width: 0; }
.sales-history-page .sh-day + .sh-day { margin-top: 21px; }
.sales-history-page .sh-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 10px 11px 0; border-block: 1px solid var(--sh-line); }
.sales-history-page .sh-day-label, .sales-history-page .sh-day-head > time { color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.5; }
.sales-history-page .sh-day-head > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.sales-history-page .sh-sales { min-width: 0; margin: 0; padding: 0; list-style: none; }
.sales-history-page .sh-sales > li { min-width: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--sh-line); }
.sales-history-page .sh-sale { display: grid; grid-template-columns: 78px minmax(0,1fr) minmax(110px,.35fr) 118px; align-items: center; gap: 20px; min-width: 0; min-height: 84px; padding: 16px 10px 16px 0; color: var(--text); text-decoration: none; }
.sales-history-page .sh-sale > * { min-width: 0; }
.sales-history-page .sh-sale:is(:hover,:focus-visible) { background: color-mix(in srgb, var(--surface-hover) 65%, transparent); }
.sales-history-page .sh-sale:focus-visible { outline-offset: -2px; }
.sales-history-page .sh-sale[aria-current="true"], .sales-history-page .sh-sale[aria-current="page"] { background: var(--surface-hover); box-shadow: inset 2px 0 var(--accent-bright); }
.sales-history-page .sh-sale[aria-current] .sh-sale-time { padding-left: 8px; }
.sales-history-page .sh-sale-time { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sales-history-page .sh-sale-time > time { color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.3; }
.sales-history-page .sh-sale-time > small { color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.sales-history-page .sh-sale-main { display: grid; gap: 5px; }
.sales-history-page .sh-sale-main > strong { color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.sales-history-page .sh-sale-main > span { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-sale-main > small { color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-sale-methods { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.sales-history-page .sh-sale-net { display: grid; justify-items: end; gap: 6px; text-align: right; }
.sales-history-page .sh-sale-net > strong { color: var(--text); font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales-history-page .sh-sale-net > small, .sales-history-page .sh-sale-status { color: var(--muted); font-size: 10px; line-height: 1.5; }
.sales-history-page .sh-sale-status.sh-status-altered { color: var(--warning); }
.sales-history-page .sh-sale-status.sh-status-cancelled { color: var(--red); text-decoration: line-through; }
.sales-history-page .sh-sale.sh-status-altered .sh-sale-net > small { color: var(--warning); }
.sales-history-page .sh-return-history { border-top: 1px solid var(--border); padding-top: 18px; }
.sales-history-page .sh-return-history > ul { list-style: none; margin: 0; padding: 0; }
.sales-history-page .sh-return-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.sales-history-page .sh-return-history li > div { display: grid; gap: 4px; }
.sales-history-page .sh-return-history li strong { color: var(--warning); font-size: 13px; font-weight: 500; }
.sales-history-page .sh-return-history time { color: var(--muted); font-size: 11px; }
.sales-history-page .sh-return-history li > b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sales-history-page .sh-return-history nav { display: flex; flex-wrap: wrap; gap: 8px 16px; grid-column: 1 / -1; font-size: 12px; }
.sales-history-page .sh-exchange-source { font-size: 12px; margin: 0 0 16px; }
.sales-history-page .sh-sale.sh-status-cancelled .sh-sale-net > small { color: var(--red); }
.sales-history-page .sh-sale.sh-status-cancelled .sh-sale-net > strong, .sales-history-page .sh-sale:has(.sh-status-cancelled) .sh-sale-net > strong { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; }
.sales-history-page[data-detail-open="true"] .sh-sale { grid-template-columns: 64px minmax(0,1fr) 107px; gap: 5px 14px; min-height: 101px; }
.sales-history-page[data-detail-open="true"] .sh-sale-time { grid-column: 1; grid-row: 1 / span 2; }
.sales-history-page[data-detail-open="true"] .sh-sale-main { grid-column: 2; grid-row: 1; }
.sales-history-page[data-detail-open="true"] .sh-sale-methods { grid-column: 2; grid-row: 2; font-size: 10px; }
.sales-history-page[data-detail-open="true"] .sh-sale-net { grid-column: 3; grid-row: 1 / span 2; }
.sales-history-page[data-detail-open="true"] .sh-sale-net > strong { font-size: 24px; }
.sales-history-page .sh-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px 20px; padding-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.sales-history-page .sh-pagination > :is(div,nav) { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.sales-history-page .sh-pagination > nav > span { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 10px; }
.sales-history-page .sh-pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--text); font-size: 11px; line-height: 1.5; text-decoration: none; }
.sales-history-page .sh-pagination a:hover:not([aria-disabled="true"]) { background: var(--surface-hover); }
.sales-history-page .sh-pagination [aria-disabled="true"] { color: var(--muted); cursor: default; opacity: .5; }
.sales-history-page .sh-detail { position: sticky; top: 16px; min-width: 0; max-height: calc(100dvh - 106px); padding-left: 27px; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; border-left: 1px solid var(--sh-line); scrollbar-gutter: stable; }
.sales-history-page .sh-detail-head { position: sticky; z-index: 2; top: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px 15px; min-width: 0; padding: 0 7px 18px 0; background: var(--canvas); }
.sales-history-page .sh-detail-head > * { min-width: 0; }
.sales-history-page .sh-detail-back { display: inline-flex; align-items: center; grid-column: 1 / -1; justify-self: start; margin-bottom: 11px; padding: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-decoration: none; }
.sales-history-page .sh-detail-back:hover { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.sales-history-page .sh-detail-head h2 { grid-column: 1; font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.sales-history-page .sh-detail-head time, .sales-history-page .sh-detail-head small { grid-column: 1; color: var(--muted); font-size: 11px; line-height: 1.5; }
.sales-history-page .sh-detail-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; grid-column: 2; grid-row: 2 / span 2; gap: 8px; }
.sales-history-page .sh-detail-actions :is(button,a) { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--text); font-size: 11px; line-height: 1.4; text-decoration: none; white-space: nowrap; box-shadow: none; }
.sales-history-page .sh-detail-actions :is(button,a):hover:not(:disabled) { background: var(--surface-hover); }
.sales-history-page .sh-detail-total { display: grid; gap: 8px; min-width: 0; padding: 7px 7px 22px 0; }
.sales-history-page .sh-detail-total > span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.sales-history-page .sh-detail-total > strong { color: var(--text); font-family: var(--font-display); font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: -.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sales-history-page .sh-totals { display: grid; gap: 8px; margin-bottom: 23px; padding: 15px 7px 15px 0; border-block: 1px solid var(--sh-line); }
.sales-history-page .sh-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0; }
.sales-history-page .sh-totals dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
.sales-history-page .sh-totals dd { margin: 0; color: var(--text); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sales-history-page .sh-detail h3 { margin: 20px 0 12px; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.5; }
.sales-history-page .sh-items { min-width: 0; margin: 0; padding: 0; list-style: none; }
.sales-history-page .sh-items > li { display: grid; grid-template-columns: minmax(0,1fr) 104px 86px; align-items: baseline; gap: 12px; min-width: 0; padding: 13px 7px 13px 0; border-bottom: 1px solid var(--sh-line); }
.sales-history-page .sh-item-name { display: grid; gap: 5px; min-width: 0; }
.sales-history-page .sh-item-name strong { color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-item-name small { color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-item-quantity { color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sales-history-page .sh-item-total { color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales-history-page .sh-payments { min-width: 0; margin-top: 23px; }
.sales-history-page .sh-payments > ul { margin: 0; padding: 0; list-style: none; }
.sales-history-page .sh-payments > ul > li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 6px 15px; min-width: 0; padding: 12px 7px 12px 0; border-bottom: 1px solid var(--sh-line); }
.sales-history-page .sh-payment-name { color: var(--text); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-payments > ul > li > strong { color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales-history-page .sh-payments > ul > li > small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-payment-change { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 11px 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sales-history-page .sh-payment-change > strong { color: var(--text); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales-history-page .sh-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 22px; margin-top: 25px; padding: 19px 7px 0 0; border-top: 1px solid var(--sh-line); }
.sales-history-page .sh-facts > div { display: grid; align-content: start; gap: 6px; min-width: 0; }
.sales-history-page .sh-facts dt { color: var(--muted); font-size: 10px; line-height: 1.5; }
.sales-history-page .sh-facts dd { margin: 0; color: var(--text); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-facts a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.sales-history-page .sh-facts a:hover { color: var(--accent-bright); text-decoration-color: currentColor; }
.sales-history-page .sh-identifiers { margin-top: 23px; padding-bottom: 15px; }
.sales-history-page .sh-identifiers > summary { width: fit-content; padding: 3px 0; color: var(--muted); cursor: pointer; font-size: 11px; line-height: 1.5; }
.sales-history-page .sh-identifiers > summary:hover { color: var(--text); }
.sales-history-page .sh-identifier { display: grid; gap: 5px; min-width: 0; margin-top: 12px; padding-right: 7px; }
.sales-history-page .sh-identifier > :is(label,small,dt) { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.sales-history-page .sh-identifier > :is(code,span,dd) { margin: 0; color: var(--text); font-family: inherit; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-history-page .sh-identifier > span:first-child { color: var(--muted); font-size: 10px; }
.sales-history-page :is(.sh-empty,.sh-loading) { padding: 30px 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.sales-history-page .sh-detail-message { margin: 0 0 16px; }
.sales-history-page[data-detail-open="true"] .sh-heading { padding-bottom: 16px; }
.sales-history-page[data-detail-open="true"] .sh-filters { padding-block: 12px; }
.sales-history-page[data-detail-open="true"] .sh-overview { align-items: baseline; gap: 8px 28px; padding: 12px 0 5px; }
.sales-history-page[data-detail-open="true"] .sh-overview > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; }
.sales-history-page[data-detail-open="true"] .sh-overview > div:first-child > strong, .sales-history-page[data-detail-open="true"] .sh-overview-total > strong { font-size: 28px; }
.sales-history-page[data-detail-open="true"] .sh-overview > div:not(:first-child) > strong, .sales-history-page[data-detail-open="true"] .sh-overview-count > strong { font-size: 18px; }
.sales-history-page[data-detail-open="true"] .sh-result-meta { justify-content: flex-start; gap: 6px 16px; padding: 0 0 13px; }
.sales-history-page[data-detail-open="true"] .sh-detail-head { gap: 4px 15px; padding-bottom: 10px; }
.sales-history-page[data-detail-open="true"] .sh-detail-back { margin-bottom: 3px; }
.sales-history-page[data-detail-open="true"] .sh-detail-head h2 { font-size: 28px; }
.sales-history-page[data-detail-open="true"] .sh-detail-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; padding-top: 4px; padding-bottom: 8px; }
.sales-history-page[data-detail-open="true"] .sh-detail-total > strong { font-size: 36px; }
.sales-history-page[data-detail-open="true"] .sh-detail h3 { margin: 12px 0 5px; }
.sales-history-page[data-detail-open="true"] .sh-items > li { padding-block: 10px; }
.sales-history-page[data-detail-open="true"] .sh-item-name { gap: 3px; }
.sales-history-page[data-detail-open="true"] .sh-totals { gap: 6px; margin-bottom: 12px; padding-block: 10px; }
.sales-history-page[data-detail-open="true"] .sh-payments { margin-top: 12px; }
.sales-history-page[data-detail-open="true"] .sh-payments > ul > li { padding-block: 9px; }
.sales-history-page [hidden] { display: none; }
@media (max-width: 1180px) {
  .sales-history-page[data-detail-open="true"] .sh-workspace { grid-template-columns: minmax(0,1fr); }
  .sales-history-page[data-detail-open="true"] .sh-register { display: none; }
  .sales-history-page[data-detail-open="true"] > :is(.sh-filters,.sh-overview,.sh-result-meta,.sh-dirty,.sh-message) { display: none; }
  .sales-history-page .sh-detail { position: static; max-height: none; padding: 0; border-left: 0; overflow: visible; }
  .sales-history-page .sh-detail-head { position: static; padding-right: 0; }
  .sales-history-page .sh-detail-total, .sales-history-page .sh-totals, .sales-history-page .sh-items > li, .sales-history-page .sh-payments > ul > li, .sales-history-page .sh-payment-change { padding-right: 0; }
  .sales-history-page .sh-sale { grid-template-columns: 69px minmax(0,1fr) minmax(90px,.3fr) 110px; gap: 16px; }
  .sales-history-page .sh-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sales-history-page .sh-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; padding-bottom: 19px; }
  .sales-history-page .sh-heading h1 { font-size: 37px; }
  .sales-history-page .sh-heading-actions { gap: 9px 14px; }
  .sales-history-page .sh-filters { gap: 12px; }
  .sales-history-page .sh-filters > .sh-search { flex-basis: 100%; max-width: none; }
  .sales-history-page .sh-filters > .sh-date { flex: 1 1 calc(50% - 12px); min-width: 125px; }
  .sales-history-page .sh-presets { flex: 1 1 auto; }
  .sales-history-page .sh-more-filters { margin-left: auto; }
  .sales-history-page .sh-extra-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .sales-history-page .sh-filter-actions { justify-content: flex-end; margin-left: 0; }
  .sales-history-page .sh-overview { gap: 18px 30px; padding-block: 23px; }
  .sales-history-page .sh-overview > div:first-child > strong, .sales-history-page .sh-overview-total > strong { font-size: 38px; }
  .sales-history-page .sh-result-meta { align-items: flex-start; gap: 5px; }
  .sales-history-page .sh-day-head { padding-right: 0; }
  .sales-history-page .sh-sale { grid-template-columns: 56px minmax(0,1fr) 96px; grid-template-areas: 'time main net' '. methods net'; gap: 5px 12px; min-height: 95px; padding: 15px 4px 15px 0; }
  .sales-history-page .sh-sale-time { grid-area: time; align-self: start; }
  .sales-history-page .sh-sale-main { grid-area: main; }
  .sales-history-page .sh-sale-main > strong { font-size: 13px; }
  .sales-history-page .sh-sale-main > span { font-size: 11px; }
  .sales-history-page .sh-sale-methods { grid-area: methods; font-size: 10px; }
  .sales-history-page .sh-sale-net { grid-area: net; }
  .sales-history-page .sh-sale-net > strong { font-size: 23px; }
  .sales-history-page .sh-detail-head { gap: 7px 12px; }
  .sales-history-page .sh-detail-head h2 { font-size: 28px; }
  .sales-history-page .sh-detail-actions :is(button,a) { padding-inline: 8px; font-size: 11px; }
  .sales-history-page .sh-detail-total > strong { font-size: 38px; }
  .sales-history-page .sh-items > li { grid-template-columns: minmax(0,1fr) 89px; gap: 5px 12px; }
  .sales-history-page .sh-item-name { grid-column: 1; grid-row: 1; }
  .sales-history-page .sh-item-quantity { grid-column: 1; grid-row: 2; text-align: left; }
  .sales-history-page .sh-item-total { grid-column: 2; grid-row: 1 / span 2; }
  .sales-history-page .sh-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
  .sales-history-page .sh-pagination { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sales-history-page *, .sales-history-page *::before, .sales-history-page *::after { animation: none; transition: none; scroll-behavior: auto; }
}
