#mgr-review {
  --ink: #203147;
  --muted: #52667a;
  --line: rgba(119, 144, 171, .17);
  --pad: clamp(17px, 2vw, 30px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--ink);
  font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}

#mgr-review * { box-sizing: border-box; }
#mgr-review :is(h2, p, dl, dd, dt) { margin: 0; }
#mgr-review :is(button, summary) {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#mgr-review :focus-visible { outline: 2px solid #1a65ba; outline-offset: 2px; }
#mgr-review h2 { color: #192c43; font-size: 19px; line-height: 1.35; letter-spacing: -.025em; font-weight: 600; }
#mgr-review small { display: inline; font-size: 12px; }
#mgr-review em {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: #93a2b6;
  vertical-align: middle;
}
#mgr-review .mgr-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 3px 4px 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#mgr-review .mgr-context b { color: #34485e; font-weight: 560; }
#mgr-review .mgr-panel {
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(125deg, rgba(255, 255, 255, .9), rgba(251, 253, 255, .78) 62%, rgba(250, 251, 255, .83));
  box-shadow: inset 0 1px 0 #fff, 0 6px 20px -12px rgba(42, 66, 96, .2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

#mgr-review :is(.mgr-head, .records-heading),
#mgr-review .records-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
#mgr-review .mgr-head { padding: 16px var(--pad) 12px; }
#mgr-review .mgr-head > span,
#mgr-review .records-heading > small { color: var(--muted); font-size: 12px; font-weight: 450; }

#mgr-review .cat-grid {
  display: grid;
  grid-template-columns: minmax(133px, 1.6fr) repeat(6, minmax(70px, 1fr));
  align-items: center;
  column-gap: 10px;
  padding-inline: var(--pad);
}
#mgr-review :is(.cat-labels, .listing-labels) {
  min-height: 29px;
  border-block: 1px solid var(--line);
  background: rgba(222, 232, 243, .25);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 480;
}
#mgr-review .cat-grid > span:not(:first-child) { text-align: right; }
#mgr-review :is(.cat-gutter, .cat-toggle, .cat-breakdown, .only-mobile, .mobile-paid-time) { display: none; }
#mgr-review .cat-line { min-height: 39px; }
#mgr-review .cat-item + .cat-item .cat-line,
#mgr-review .listing-row + .listing-row { position: relative; }
#mgr-review .cat-item + .cat-item .cat-line::before,
#mgr-review .listing-row + .listing-row::before {
  content: "";
  position: absolute;
  inset: 0 var(--pad) auto;
  height: 1px;
  background: var(--line);
}
#mgr-review .cat-name { display: flex; align-items: center; gap: 9px; font-weight: 510; }
#mgr-review .cat-name i {
  width: 25px;
  height: 25px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(222, 232, 242, .46);
  color: #55728c;
}
#mgr-review .cat-name svg { width: 16px; height: 16px; }
#mgr-review .num { font-size: 14px; font-weight: 500; letter-spacing: -.012em; overflow-wrap: anywhere; }
#mgr-review .cat-line .cash .num:not(.zero) { color: #254969; font-weight: 620; }
#mgr-review .zero { color: #667788; font-weight: 400; }

#mgr-review .cat-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 9px var(--pad);
  color: #5c6e80;
  font-size: 12px;
}
#mgr-review .cat-foot details { margin: 0; max-width: 58%; text-align: right; }
#mgr-review .cat-foot summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  list-style: none;
  color: #3a6287;
  font-size: 12px;
}
#mgr-review .cat-foot summary::-webkit-details-marker { display: none; }
#mgr-review .cat-foot summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.4px solid;
  border-bottom: 1.4px solid;
  transform: rotate(45deg) translateY(-2px);
}
#mgr-review .cat-foot details[open] summary::after { transform: rotate(225deg); }
#mgr-review .cat-foot p { margin: 5px 0; text-align: left; line-height: 1.65; }

#mgr-review .ledger { margin-top: 16px; }
#mgr-review .mgr-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin: 15px var(--pad) 0;
  border: 1px solid rgba(133, 154, 177, .1);
  border-radius: 11px;
  padding: 3px;
  background: rgba(199, 213, 229, .34);
}
#mgr-review .mgr-tabs button {
  appearance: none;
  min-width: 88px;
  min-height: 31px;
  border: 0;
  border-radius: 8px;
  padding: 4px 13px;
  background: transparent;
  color: #465b70;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
  box-shadow: none;
  white-space: nowrap;
}
#mgr-review .mgr-tabs button[aria-selected="true"] {
  background: #fff;
  color: #203b57;
  font-weight: 570;
  box-shadow: 0 1px 4px rgba(46, 68, 94, .16);
}
#mgr-review .records-heading { padding: 14px var(--pad) 12px; }
#mgr-review .records-heading > div { justify-content: flex-start; }
#mgr-review .count { font-size: 12px; color: #64758a; white-space: nowrap; }
#mgr-review .record-list {
  --columns: minmax(185px, 2.45fr) minmax(100px, 1.35fr) minmax(100px, 1fr) minmax(90px, .95fr) 24px;
}
#mgr-review :is(.listing-row, .listing-labels) {
  display: grid;
  grid-template-columns: var(--columns);
  align-items: center;
  gap: 12px;
  padding-inline: var(--pad);
}
#mgr-review .listing-labels span:is(:nth-child(3), :nth-child(4)),
#mgr-review .type-dealers .listing-labels span:nth-child(2) { text-align: right; }
#mgr-review .listing-row { min-height: 54px; }
#mgr-review .rec-id { min-width: 0; display: grid; gap: 3px; align-content: center; overflow-wrap: anywhere; }
#mgr-review .rec-id b { font-size: 14px; font-weight: 550; color: #21374c; }
#mgr-review .rec-id small { color: #596e82; letter-spacing: .01em; line-height: 1.3; }
#mgr-review :is(.kind, .minor-value, .bought, .gifts) { color: #4c6177; font-size: 13px; }
#mgr-review :is(.amount-main, .net) { text-align: right; font-weight: 580; font-size: 15px; letter-spacing: -.018em; }
#mgr-review :is(.amount-main, .net, .minor-value, .gifts, .bought) { text-align: right; overflow-wrap: anywhere; }
#mgr-review .state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  color: #45596d;
  font-size: 12px;
  white-space: nowrap;
}
#mgr-review .state i { width: 6px; height: 6px; border-radius: 50%; background: #718aa4; }
#mgr-review .state .pending { background: #ab752e; }
#mgr-review .state .paid { background: #47806d; }
#mgr-review .state .approved { background: #6187af; }
#mgr-review .state .returned { background: #ab6965; }
#mgr-review :is(.record-action, .cat-toggle) {
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  color: #698099;
}
#mgr-review .record-action { display: flex; width: 32px; height: 36px; justify-self: end; }
#mgr-review :is(.record-action, .cat-toggle) svg { width: 14px; height: 14px; }
#mgr-review .record-action:hover { border-radius: 8px; background: rgba(217, 231, 245, .55); }
#mgr-review .ledger-note { padding: 9px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
#mgr-review .records-empty { padding: 18px var(--pad); color: var(--muted); font-size: 13px; }

@media (min-width: 769px) and (max-width: 1030px) {
  #mgr-review .cat-grid { grid-template-columns: minmax(100px, 1.4fr) repeat(6, minmax(48px, 1fr)); column-gap: 4px; }
  #mgr-review .cat-name i { display: none; }
  #mgr-review .record-list { --columns: minmax(130px, 1.8fr) 1fr 1fr .8fr 24px; }
}

@media (max-width: 768px) {
  #mgr-review { --pad: 14px; }
  #mgr-review .mgr-context { font-size: 12px; margin: 0 4px 8px; }
  #mgr-review .mgr-panel { border-radius: 17px; }
  #mgr-review h2 { font-size: 17px; }
  #mgr-review .mgr-head { padding-block: 12px 10px; }
  #mgr-review .cat-grid {
    grid-template-columns: minmax(82px, 1.35fr) minmax(64px, 1fr) minmax(70px, 1fr) 16px;
    gap: 6px;
  }
  #mgr-review .cat-gutter { display: block; }
  #mgr-review .cat-grid :is(.approved, .paid, .returned, .pending) { display: none; }
  #mgr-review .cat-line { min-height: 43px; cursor: pointer; }
  #mgr-review .cat-name { font-size: 13px; gap: 6px; }
  #mgr-review .cat-name i { width: 21px; height: 21px; border-radius: 6px; }
  #mgr-review .cat-name svg { width: 14px; height: 14px; }
  #mgr-review .num { font-size: 13px; }
  #mgr-review .cat-toggle { display: flex; justify-self: end; width: 26px; height: 42px; margin-right: -5px; }
  #mgr-review .cat-toggle svg { width: 12px; height: 12px; transform: rotate(90deg); }
  #mgr-review .cat-toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
  #mgr-review .cat-breakdown:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 7px var(--pad) 10px;
    background: rgba(226, 235, 246, .3);
  }
  #mgr-review .cat-breakdown dt { color: var(--muted); font-size: 11px; }
  #mgr-review .cat-breakdown dd { padding-top: 2px; }
  #mgr-review .cat-foot { flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 13px; padding-block: 5px; font-size: 11px; }
  #mgr-review .cat-foot details[open] { max-width: none; width: 100%; }
  #mgr-review .cat-foot summary { font-size: 11px; }
  #mgr-review .ledger { margin-top: 12px; }
  #mgr-review .mgr-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    margin: 11px 10px 0;
  }
  #mgr-review .mgr-tabs button { min-width: 0; min-height: 32px; padding: 3px 0; font-size: 12px; }
  #mgr-review .records-heading { flex-wrap: wrap; gap: 3px; padding: 12px var(--pad) 10px; }
  #mgr-review .records-heading > small { font-size: 11px; }
  #mgr-review .listing-labels { display: none; }
  #mgr-review .record-list { border-top: 1px solid var(--line); }
  #mgr-review .listing-row {
    grid-template-columns: minmax(0, 1fr) fit-content(47%) 12px;
    grid-template-rows: auto auto;
    gap: 2px 6px;
    min-height: 58px;
    padding-block: 6px;
  }
  #mgr-review .rec-id { grid-column: 1; grid-row: 1/3; gap: 4px; }
  #mgr-review .rec-id b { font-size: 13px; }
  #mgr-review .rec-id small { font-size: 11px; }
  #mgr-review .kind { display: none; }
  #mgr-review :is(.amount-main, .net) { grid-column: 2; grid-row: 1; align-self: end; font-size: 14px; }
  #mgr-review :is(.minor-value, .state) { grid-column: 2; grid-row: 2; align-self: start; font-size: 11px; }
  #mgr-review .record-action { grid-column: 3; grid-row: 1/3; width: 24px; height: 44px; margin-right: -6px; }
  #mgr-review .only-mobile { display: inline; }
  #mgr-review .mobile-paid-time { display: block; margin-top: 2px; }
  #mgr-review .type-orders .listing-row { min-height: 65px; }
  #mgr-review .type-dealers .listing-row { grid-template-columns: fit-content(35%) minmax(0, 1fr) fit-content(40%) 12px; row-gap: 3px; min-height: 65px; }
  #mgr-review .type-dealers .rec-id { grid-column: 1/3; grid-row: 1; gap: 2px; }
  #mgr-review .type-dealers :is(.bought, .gifts) { grid-row: 2; align-self: start; justify-self: start; font-size: 11px; text-align: left; }
  #mgr-review .type-dealers .bought { grid-column: 1; }
  #mgr-review .type-dealers .gifts { grid-column: 2; }
  #mgr-review .type-dealers .bought::before { content: "购买 "; }
  #mgr-review .type-dealers .gifts::before { content: "赠品 "; }
  #mgr-review .type-dealers .net { grid-column: 3; grid-row: 1; align-self: start; }
  #mgr-review .type-dealers .record-action { grid-column: 4; }
}
@media (max-width: 355px) {
  #mgr-review { --pad: 10px; }
  #mgr-review .cat-name i { display: none; }
  #mgr-review .cat-grid { grid-template-columns: minmax(70px, 1fr) minmax(52px, .8fr) minmax(60px, .8fr) 13px; }
}
@media (prefers-reduced-transparency: reduce) {
  #mgr-review .mgr-panel { background: #fafcfe; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
