.an-page {
  --an-line: #e8e9e7;
  --an-muted: #626966;
  --an-teal: #377a66;
  padding-top: 22px;
  color: #131714;
  font: 400 15px/1.4 "DM Sans", Arial, sans-serif;
}
.an-page *, .an-page *::before, .an-page *::after { box-sizing: border-box; }
.an-page :is(h2,h3,p) { margin: 0; }
.an-page :is(input,select,button) { font: inherit; }
.an-page button { cursor: pointer; }
.an-page button:disabled { cursor: default; opacity: .5; }
.an-page :is(button,input,select):focus-visible { outline: 2px solid var(--an-teal); outline-offset: 3px; }
.an-filters { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.an-search, .an-filter-row label {
  display: inline-flex; align-items: center; min-width: 0; background: #fff;
  border: 1px solid var(--an-line); border-radius: 10px; min-height: 42px; gap: 8px;
}
.an-search { padding: 0 12px; max-width: 310px; flex: 1 1 225px; color: var(--an-muted); }
.an-search:focus-within { outline: 2px solid var(--an-teal); outline-offset: 1px; }
.an-search input { border: 0; background: transparent; min-width: 0; width: 100%; outline: 0; height: 38px; color: #171b18; }
.an-search input:focus-visible { outline: 0; }
.an-filter-row { display: flex; gap: 8px; }
.an-filter-row label { padding-left: 11px; }
.an-filter-row label span { color: var(--an-muted); font-size: 12px; }
.an-filter-row select {
  appearance: none; border: none; border-radius: 8px; color: #181c19; padding: 7px 28px 7px 0;
  background: linear-gradient(45deg, transparent 50%, #45544b 50%) calc(100% - 13px) 52% / 4px 4px no-repeat,
    linear-gradient(135deg,#45544b 50%, transparent 50%) calc(100% - 9px) 52% / 4px 4px no-repeat;
  font-size: 14px; cursor: pointer;
}
.an-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding-block: 16px 23px; border-bottom: 1px solid var(--an-line); }
.an-stat, .an-panel { min-width: 0; }
.an-stat { padding-inline: clamp(15px,1.7vw,30px); }
.an-stat:first-child { padding-left: 0; }
.an-stat + .an-stat { border-left: 1px solid var(--an-line); }
.an-stat h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 560; line-height: 1.35; }
.an-symbol { color: var(--an-teal); display: inline-grid; place-items: center; }
.an-stat:nth-child(2) .an-symbol { color: #4d7b08; }
.an-stat:nth-child(3) .an-symbol { color: #506f68; }
.an-number {
  color: #101311; margin: 21px 0 7px; font-size: clamp(27px,2.8vw,45px); letter-spacing: -.062em;
  line-height: 1.08; font-weight: 470; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.an-page :is(.an-stat p,.an-panel-head p,.an-detail header span,.an-empty,.an-pagination span) { color: var(--an-muted); font-size: 13px; }
.an-panel { overflow: hidden; }
.an-panel-head { padding: 23px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.an-panel-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.an-panel-head p { margin-top: 3px; }
.an-export, .an-pagination button {
  color: #24312a; border: 1px solid #dddeda; border-radius: 8px; padding: 7px 10px; background: #fff; font-size: 13px !important;
}
.an-export { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.an-export:hover:enabled, .an-pagination button:hover:enabled { background: #f1f5ed; }
.an-scroll { overflow-x: auto; }
.an-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.an-table thead th { color: var(--an-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.an-table th, .an-table td { padding: 12px 8px; text-align: right; border-bottom: 1px solid var(--an-line); }
.an-table th:first-child { text-align: left; padding-left: 0; }
.an-table :is(th,td):last-child { padding-right: 0; }
.an-table tbody tr:last-child > :is(th,td) { border-bottom: 0; }
.an-table td { white-space: nowrap; }
.an-table td.an-exposed { color: #1c5944; font-weight: 650; }
.an-merchant { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px 4px 0; color: #17251e; border: none; background: transparent; text-align: left; font-weight: 580 !important; }
.an-merchant:hover span, .an-ref:hover { text-decoration: underline; text-underline-offset: 3px; }
.an-merchant svg { flex: none; color: #657a6d; }
.an-merchant small, .an-instruction small { display: block; font-weight: 400; font-size: 12px; color: var(--an-muted); }
.an-detail-tr>td { padding: 0 0 12px; white-space: normal; }
.an-detail {
  text-align: left; background: #f5f8f6; padding: 15px 18px; border-radius: 12px; border: 1px solid #e2eae3;
}
.an-detail header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 5px; }
.an-detail h3 { font-size: 15px; font-weight: 600; }
.an-instructions { max-height: 380px; overflow-y: auto; }
.an-instruction { display: grid; grid-template-columns: minmax(165px,1.3fr) minmax(95px,.8fr) minmax(180px,1fr); gap: 5px 16px; align-items: center; padding: 11px 0; border-top: 1px solid #dfe7df; }
.an-ref { margin: 0; padding: 2px 0; border: 0; color: #245b48; background: transparent; font-weight: 600 !important; text-align: left; overflow-wrap: anywhere; }
.an-instruction-amount strong, .an-instruction-money b { font-weight: 570; }
.an-instruction-money span { display: flex; gap: 8px; justify-content: space-between; color: var(--an-muted); }
.an-instruction-money b { color: #202922; }
.an-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 13px; }
.an-pagination { border-top: 1px solid var(--an-line); display: flex; align-items: center; justify-content: end; gap: 6px; padding: 12px 21px; }
.an-pagination span { margin-right: auto; }
.an-empty { padding: 22px; border-top: 1px solid var(--an-line); }
@container byte-viewport (max-width: 1050px) {
  .an-table :is(th,td) { padding-inline: 5px; }
}
@container byte-viewport (max-width: 710px) {
  .an-filters { flex-direction: column; gap: 7px; }
  .an-search { flex: auto; max-width: none; }
  .an-filter-row label { flex: 1; }
  .an-filter-row select { width: 100%; min-width: 0; }
  .an-stat { padding-inline: 11px; }
  .an-number { margin: 15px 0 4px; }
  .an-table,.an-table tbody { display: block; }
  .an-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .an-merchant-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 12px 0; border-top: 1px solid var(--an-line); }
  .an-merchant-row > th { grid-column: 1 / -1; }
  .an-table .an-merchant-row > :is(th,td) { text-align: left; border: 0; padding: 0; overflow-wrap: anywhere; white-space: normal; }
  .an-table .an-merchant-row > td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--an-muted); font-weight: 400; }
  .an-merchant small { display: inline; margin-left: 8px; }
  .an-detail-tr,.an-detail-tr>td { display: block; }
  .an-panel-head { padding: 17px 0; }
  .an-detail { padding: 12px; }
  .an-instruction { grid-template-columns: minmax(0,1fr) auto; }
  .an-instruction-money { grid-column: 1 / -1; }
}
@container byte-viewport (max-width: 440px) {
  .an-stats { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .an-stat:first-child { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--an-line); }
  .an-stat:nth-child(2) { border-left: 0; padding-left: 0; }
  .an-number { font-size: 27px; }
  .an-page .an-stat p { font-size: 12px; }
}
