/* Gift redemption page: selected command-table reference. */
.redemption-dashboard {
  display: grid;
  gap: 18px;
}

.redemption-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.redemption-kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 22px;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 0 18px;
  min-height: 120px;
  padding: 22px 24px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f1f3a;
  text-align: left;
  box-shadow: 0 10px 24px rgba(31, 67, 122, 0.04);
}

.redemption-kpi-card:hover {
  border-color: #bfd6f7;
  background: #fff;
  box-shadow: 0 14px 30px rgba(35, 93, 180, 0.08);
  transform: none;
}

.redemption-kpi-icon {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #1671f5;
  background: #eaf3ff;
}

.redemption-kpi-icon .ui-icon {
  width: 33px;
  height: 33px;
  stroke-width: 2.2;
}

.redemption-kpi-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #10223e;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.18;
}

.redemption-kpi-label i {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #8ea3c0;
  border-radius: 50%;
  color: #7a8da8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.redemption-kpi-card strong {
  color: #1671f5;
  font-size: 35px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.redemption-kpi-card small {
  color: #687b98;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.18;
}

.redemption-kpi-arrow {
  grid-column: 3;
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  color: #17345b;
}

.redemption-kpi-arrow .ui-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.redemption-kpi-card.red .redemption-kpi-icon {
  color: #ff3838;
  background: #fff0f0;
}

.redemption-kpi-card.red strong,
.redemption-kpi-card.red .redemption-kpi-arrow {
  color: #ff3838;
}

.redemption-kpi-card.slate .redemption-kpi-icon {
  color: #58708f;
  background: #eef2f7;
}

.redemption-kpi-card.slate strong,
.redemption-kpi-card.slate .redemption-kpi-arrow {
  color: #111f38;
}

.redemption-kpi-card.teal .redemption-kpi-icon {
  color: #15b98f;
  background: #e9f8f3;
}

.redemption-kpi-card.teal strong {
  color: #111f38;
  font-size: 35px;
}

.redemption-board {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(31, 67, 122, 0.04);
}

.redemption-toolbar {
  display: grid;
  grid-template-columns: minmax(270px, 332px) minmax(500px, 1fr) 174px 154px 160px 108px;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px 18px 15px;
  border-bottom: 1px solid #e6eef8;
  background: #fff;
}

.redemption-search {
  position: relative;
  display: block;
}

.redemption-search .ui-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: #6f83a0;
  transform: translateY(-50%);
}

.redemption-search input,
.redemption-month input,
.redemption-select {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  background: #fff;
  color: #152642;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
}

.redemption-search input {
  padding: 0 48px 0 16px;
  font-weight: 600;
}

.redemption-search input::placeholder {
  color: #8a98ab;
}

.redemption-month input,
.redemption-select {
  padding: 0 14px;
}

.redemption-tabs {
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  background: #fff;
}

.redemption-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #e6eef8;
  border-radius: 0;
  background: transparent;
  color: #162743;
  box-shadow: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.redemption-tabs button:last-child {
  border-right: 0;
}

.redemption-tabs button.active {
  background: #edf5ff;
  color: #0969e8;
  box-shadow: inset 0 0 0 1px #bdd7ff;
}

.redemption-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  min-height: 46px;
  border-color: #d8e5f5;
  color: #13233e;
  font-size: 15px;
  font-weight: 850;
  box-shadow: none;
}

.redemption-export .ui-icon {
  width: 18px;
  height: 18px;
  color: #55708f;
}

.redemption-modern-table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.redemption-modern-table table {
  min-width: 1280px;
  font-size: 14px;
  table-layout: fixed;
}

.redemption-modern-table th:nth-child(1),
.redemption-modern-table td:nth-child(1) {
  width: 210px;
}

.redemption-modern-table th:nth-child(2),
.redemption-modern-table td:nth-child(2) {
  width: 240px;
}

.redemption-modern-table th:nth-child(3),
.redemption-modern-table td:nth-child(3) {
  width: 120px;
}

.redemption-modern-table th:nth-child(4),
.redemption-modern-table td:nth-child(4) {
  width: 130px;
}

.redemption-modern-table th:nth-child(5),
.redemption-modern-table td:nth-child(5) {
  width: 270px;
}

.redemption-modern-table th:nth-child(6),
.redemption-modern-table td:nth-child(6) {
  width: 160px;
}

.redemption-modern-table th:nth-child(7),
.redemption-modern-table td:nth-child(7) {
  width: 150px;
}

.redemption-modern-table th:nth-child(8),
.redemption-modern-table td:nth-child(8) {
  width: 150px;
}

.redemption-modern-table th:nth-child(9),
.redemption-modern-table td:nth-child(9) {
  width: 82px;
}

.redemption-modern-table th {
  height: 56px;
  padding: 0 26px;
  border-bottom: 1px solid #e6eef8;
  color: #11213c;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
}

.redemption-modern-table td {
  height: 78px;
  padding: 10px 26px;
  border-bottom: 1px solid #e6eef8;
  color: #1a2d4b;
  font-size: 15px;
  vertical-align: middle;
}

.redemption-modern-table tbody tr:hover {
  background: #f8fbff;
}

.redemption-modern-table .order-no {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #11213c;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-order-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.redemption-order-cell span {
  overflow: hidden;
  color: #71839e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-modern-table .gift-name {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: #11213c;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-modern-table .muted-line {
  display: block;
  max-width: 220px;
  margin-top: 5px;
  overflow: hidden;
  color: #60728d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d8e5f5;
  border-radius: 6px;
  background: #f5f8fc;
  color: #62758f;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.redemption-status-pill.pending {
  border-color: #bfdcff;
  background: #eef6ff;
  color: #0872ff;
}

.redemption-status-pill.overdue {
  min-width: 92px;
  border-color: #ffbfc2;
  background: #fff2f2;
  color: #ff3838;
}

.redemption-status-pill.ordered,
.redemption-status-pill.done {
  border-color: #bfe9da;
  background: #eaf8f2;
  color: #0aa56f;
}

.redemption-status-pill.shipped {
  border-color: #c9defd;
  background: #eef6ff;
  color: #0872ff;
}

.redemption-status-pill.cancelled {
  border-color: #dce3ee;
  background: #f4f7fb;
  color: #718096;
}

.platform-order-link {
  max-width: 245px;
  color: #006cff;
  font-weight: 750;
  white-space: nowrap;
}

.platform-order-link span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redemption-account-label {
  display: block;
  max-width: 142px;
  overflow: hidden;
  color: #1f3455;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-cost-cell {
  display: grid;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.redemption-cost-cell strong {
  color: #11213c;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.redemption-cost-cell span {
  color: #70819b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
}

.redemption-row-action {
  padding: 0;
  color: #0070ff;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 900;
}

.redemption-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin: 0;
  padding: 0 18px;
  border-top: 1px solid #e6eef8;
  background: #fff;
}

.redemption-page-size select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid #d8e5f5;
  border-radius: 7px;
  background: #fff;
  color: #43546f;
  font-size: 13px;
  font-weight: 800;
}

.redemption-pagination-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.redemption-page-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.redemption-page-buttons button {
  display: inline-grid;
  place-items: center;
  width: auto;
  min-height: 32px;
  padding: 0 10px;
  border-color: #d8e5f5;
  box-shadow: none;
}

.redemption-page-buttons .pill {
  min-width: 62px;
  text-align: center;
}

@media (max-width: 1440px) {
  .redemption-toolbar {
    grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.5fr) 160px 140px 150px 100px;
  }

  .redemption-tabs button {
    min-width: 68px;
    padding: 0 14px;
  }

  .redemption-modern-table th,
  .redemption-modern-table td {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1220px) {
  .redemption-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redemption-toolbar {
    grid-template-columns: minmax(220px, 1fr) 1fr 148px 132px;
  }

  .redemption-tabs {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .redemption-kpi-grid,
  .redemption-toolbar {
    grid-template-columns: 1fr;
  }

  .redemption-kpi-card {
    min-height: 102px;
  }

  .redemption-tabs {
    width: 100%;
  }

  .redemption-pagination,
  .redemption-pagination-right {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .redemption-page-buttons {
    justify-content: flex-end;
  }
}

/* Align gift-redemption typography with the global content-page type scale. */
.redemption-dashboard,
.redemption-dashboard button,
.redemption-dashboard input,
.redemption-dashboard select,
.redemption-dashboard table {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.redemption-kpi-label {
  font-size: var(--text-emphasis);
  font-weight: var(--weight-card-title);
  line-height: 1.25;
}

.redemption-kpi-label i {
  font-size: 11px;
  font-weight: var(--weight-field);
}

.redemption-kpi-card strong,
.redemption-kpi-card.teal strong {
  font-family: var(--font-number);
  font-size: var(--number-kpi);
  font-weight: var(--weight-kpi);
  line-height: var(--line-number);
}

.redemption-kpi-card small {
  font-size: var(--text-body);
  font-weight: var(--weight-field);
  line-height: 1.25;
}

.redemption-search input,
.redemption-month input,
.redemption-select,
.redemption-tabs button,
.redemption-export {
  font-size: var(--text-emphasis);
  font-weight: var(--weight-medium);
  line-height: var(--line-compact);
}

.redemption-tabs button.active,
.redemption-export {
  font-weight: var(--weight-field);
}

.redemption-modern-table table {
  font-size: var(--text-body);
}

.redemption-modern-table th {
  font-size: var(--text-emphasis);
  font-weight: var(--weight-card-title);
  line-height: var(--line-compact);
}

.redemption-modern-table td {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.35;
}

.redemption-modern-table .order-no,
.redemption-modern-table .gift-name,
.redemption-cost-cell strong,
.redemption-account-label {
  font-size: var(--text-emphasis);
  font-weight: var(--weight-field);
  line-height: 1.3;
}

.redemption-modern-table .order-no {
  font-family: var(--font-code);
}

.redemption-order-cell span,
.redemption-modern-table .muted-line,
.redemption-cost-cell span {
  font-size: var(--text-meta);
  font-weight: var(--weight-regular);
  line-height: 1.3;
}

.redemption-status-pill {
  font-size: var(--text-body);
  font-weight: var(--weight-field);
  line-height: var(--line-compact);
}

.platform-order-link {
  font-family: var(--font-code);
  font-size: var(--text-body);
  font-weight: var(--weight-field);
}

.redemption-row-action {
  font-size: var(--text-body);
  font-weight: var(--weight-field);
}

/* Dense data-table treatment for the gift redemption workspace. */
.redemption-dashboard {
  gap: 12px;
  font-size: var(--text-meta);
}

.redemption-kpi-grid {
  gap: 10px;
}

.redemption-kpi-card {
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  gap: 0 12px;
  min-height: 88px;
  padding: 14px 16px;
}

.redemption-kpi-icon {
  width: 44px;
  height: 44px;
}

.redemption-kpi-icon .ui-icon {
  width: 25px;
  height: 25px;
}

.redemption-kpi-label {
  font-size: var(--text-meta);
  font-weight: var(--weight-field);
}

.redemption-kpi-card strong,
.redemption-kpi-card.teal strong {
  font-size: 28px;
  font-weight: var(--weight-title);
}

.redemption-kpi-card small {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}

.redemption-kpi-arrow .ui-icon {
  width: 18px;
  height: 18px;
}

.redemption-toolbar {
  grid-template-columns: minmax(220px, 1.05fr) minmax(390px, 1.55fr) 134px 124px 124px 82px;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
}

.redemption-search .ui-icon {
  right: 11px;
  width: 17px;
  height: 17px;
}

.redemption-search input,
.redemption-month input,
.redemption-select {
  height: 38px;
  min-height: 38px;
  border-radius: 7px;
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
}

.redemption-search input {
  padding: 0 34px 0 12px;
}

.redemption-month input,
.redemption-select {
  padding: 0 10px;
}

.redemption-tabs {
  height: 38px;
  border-radius: 7px;
}

.redemption-tabs button {
  min-width: 54px;
  min-height: 36px;
  padding: 0 10px;
  font-size: var(--text-meta);
  font-weight: var(--weight-field);
}

.redemption-tabs button:nth-child(3) {
  min-width: 76px;
}

.redemption-export {
  gap: 5px;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: var(--text-meta);
  font-weight: var(--weight-field);
}

.redemption-export .ui-icon {
  width: 15px;
  height: 15px;
}

.redemption-modern-table table {
  width: 100%;
  min-width: 1120px;
  font-size: var(--text-meta);
  table-layout: fixed;
}

.redemption-modern-table th,
.redemption-modern-table td {
  box-sizing: border-box;
}

.redemption-modern-table th:nth-child(1),
.redemption-modern-table td:nth-child(1) {
  width: 16%;
}

.redemption-modern-table th:nth-child(2),
.redemption-modern-table td:nth-child(2) {
  width: 18%;
}

.redemption-modern-table th:nth-child(3),
.redemption-modern-table td:nth-child(3) {
  width: 7%;
}

.redemption-modern-table th:nth-child(4),
.redemption-modern-table td:nth-child(4) {
  width: 8%;
}

.redemption-modern-table th:nth-child(5),
.redemption-modern-table td:nth-child(5) {
  width: 18%;
}

.redemption-modern-table th:nth-child(6),
.redemption-modern-table td:nth-child(6) {
  width: 10%;
}

.redemption-modern-table th:nth-child(7),
.redemption-modern-table td:nth-child(7) {
  width: 9%;
}

.redemption-modern-table th:nth-child(8),
.redemption-modern-table td:nth-child(8) {
  width: 9%;
}

.redemption-modern-table th:nth-child(9),
.redemption-modern-table td:nth-child(9) {
  width: 5%;
}

.redemption-modern-table th {
  height: 42px;
  padding: 0 10px;
  font-size: var(--text-meta);
  font-weight: var(--weight-field);
  line-height: var(--line-compact);
}

.redemption-modern-table td {
  height: 58px;
  padding: 8px 10px;
  font-size: var(--text-meta);
  line-height: 1.25;
}

.redemption-modern-table .order-no,
.redemption-modern-table .gift-name,
.redemption-cost-cell strong,
.redemption-account-label {
  font-size: var(--text-meta);
  font-weight: var(--weight-field);
}

.redemption-order-cell {
  gap: 4px;
}

.redemption-order-cell span,
.redemption-modern-table .muted-line,
.redemption-cost-cell span {
  margin-top: 3px;
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
}

.redemption-modern-table .gift-name,
.redemption-modern-table .muted-line {
  max-width: 100%;
}

.redemption-status-pill {
  min-width: 58px;
  height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: var(--text-caption);
  font-weight: var(--weight-field);
}

.redemption-status-pill.overdue {
  min-width: 76px;
}

.platform-order-link {
  max-width: 100%;
  font-size: var(--text-caption);
}

.redemption-account-label {
  max-width: 100%;
}

.redemption-cost-cell {
  gap: 2px;
}

.redemption-modern-table td:nth-child(8),
.redemption-modern-table td:nth-child(9),
.redemption-row-action {
  white-space: nowrap;
}

.redemption-row-action {
  min-width: 0;
  padding: 0;
  font-size: var(--text-meta);
  font-weight: var(--weight-field);
}

@media (max-width: 1440px) {
  .redemption-toolbar {
    grid-template-columns: minmax(190px, 0.95fr) minmax(360px, 1.55fr) 128px 118px 118px 76px;
    gap: 7px;
  }

  .redemption-tabs button {
    min-width: 50px;
    padding: 0 8px;
  }

  .redemption-tabs button:nth-child(3) {
    min-width: 72px;
  }

  .redemption-modern-table table {
    min-width: 1080px;
  }

  .redemption-modern-table th,
  .redemption-modern-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Extra compact typography pass for dense redemption operations. */
.redemption-dashboard {
  font-size: 12px;
}

.redemption-toolbar {
  min-height: 52px;
  padding: 8px 10px;
}

.redemption-search input,
.redemption-month input,
.redemption-select {
  height: 34px;
  min-height: 34px;
  font-size: 12px;
  font-weight: var(--weight-medium);
}

.redemption-search input {
  padding-left: 10px;
  padding-right: 30px;
}

.redemption-search .ui-icon {
  right: 9px;
  width: 15px;
  height: 15px;
}

.redemption-tabs {
  height: 34px;
}

.redemption-tabs button {
  min-width: 48px;
  min-height: 32px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: var(--weight-medium);
}

.redemption-tabs button:nth-child(3) {
  min-width: 68px;
}

.redemption-export {
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.redemption-modern-table table {
  font-size: 12px;
}

.redemption-modern-table th {
  height: 36px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: var(--weight-medium);
}

.redemption-modern-table td {
  height: 50px;
  padding: 6px 7px;
  font-size: 12px;
  line-height: 1.2;
}

.redemption-modern-table .order-no,
.redemption-modern-table .gift-name,
.redemption-cost-cell strong,
.redemption-account-label,
.redemption-row-action {
  font-size: 12px;
}

.redemption-order-cell span,
.redemption-modern-table .muted-line,
.redemption-cost-cell span,
.platform-order-link,
.redemption-status-pill {
  font-size: 11px;
}

.redemption-status-pill {
  min-width: 52px;
  height: 22px;
  padding: 0 6px;
}

/* Reduce heavy typography in the redemption table and filters. */
.redemption-dashboard {
  font-size: 11px;
}

.redemption-search input,
.redemption-month input,
.redemption-select,
.redemption-tabs button,
.redemption-export {
  height: 32px;
  min-height: 32px;
  font-size: 11px;
  font-weight: 500;
}

.redemption-tabs {
  height: 32px;
}

.redemption-tabs button {
  min-height: 30px;
  min-width: 44px;
  padding: 0 6px;
}

.redemption-tabs button:nth-child(3) {
  min-width: 64px;
}

.redemption-tabs button.active,
.redemption-export {
  font-weight: 600;
}

.redemption-modern-table table,
.redemption-modern-table th,
.redemption-modern-table td {
  font-size: 11px;
}

.redemption-modern-table th {
  height: 34px;
  padding: 0 6px;
  font-weight: 600;
}

.redemption-modern-table td {
  height: 46px;
  padding: 5px 6px;
  font-weight: 500;
}

.redemption-modern-table .order-no,
.redemption-modern-table .gift-name,
.redemption-cost-cell strong,
.redemption-account-label,
.redemption-row-action {
  font-size: 11px;
  font-weight: 600;
}

.redemption-order-cell span,
.redemption-modern-table .muted-line,
.redemption-cost-cell span,
.platform-order-link,
.redemption-status-pill {
  font-size: 10px;
  font-weight: 500;
}

.redemption-status-pill {
  min-width: 48px;
  height: 20px;
  padding: 0 5px;
  font-weight: 600;
}

.redemption-row-action {
  font-weight: 600;
}

/* Shopping platform logo replacement for third-party order numbers. */
.platform-logo-link,
.app-shell:not(.login-mode) .platform-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  color: #1f3455;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
}

.platform-logo-link:hover {
  text-decoration: none;
}

.platform-logo-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 20px;
  overflow: visible;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.platform-logo-badge span {
  display: block;
  line-height: 20px;
  overflow: visible;
  text-overflow: clip;
}

.platform-logo-taobao {
  background: linear-gradient(135deg, #ff8a00 0%, #ff4d00 100%);
}

.platform-logo-jd {
  background: linear-gradient(135deg, #ff2d2d 0%, #c90000 100%);
}

.platform-logo-1688 {
  background: linear-gradient(135deg, #ff8a00 0%, #f05a00 100%);
}

.platform-logo-self {
  background: linear-gradient(135deg, #1671f5 0%, #0a4fb8 100%);
}

.platform-logo-other {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%);
}

.platform-logo-text {
  display: inline-block;
  max-width: 28px;
  overflow: hidden;
  color: #405575;
  text-overflow: clip;
  white-space: nowrap;
}

.platform-order-number {
  display: inline-block;
  min-width: 0;
  max-width: 120px;
  overflow: hidden;
  color: #1f3455;
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-modern-table .platform-order-number {
  max-width: 128px;
}

.business-time-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.business-time-verify .business-verify-icon {
  flex: 0 0 auto;
}

/* Keep redemption table content light and compact. */
.redemption-modern-table th {
  font-weight: 500;
}

.redemption-modern-table td,
.redemption-modern-table td strong,
.redemption-modern-table .order-no,
.redemption-modern-table .gift-name,
.redemption-cost-cell strong,
.redemption-account-label,
.redemption-row-action,
.platform-logo-link,
.app-shell:not(.login-mode) .platform-logo-link,
.platform-logo-text,
.platform-order-number {
  font-weight: 400;
}

.redemption-order-cell span,
.redemption-modern-table .muted-line,
.redemption-cost-cell span,
.platform-order-link {
  font-weight: 400;
}

.redemption-status-pill,
.redemption-tabs button,
.redemption-search input,
.redemption-month input,
.redemption-select,
.redemption-export {
  font-weight: 500;
}

.platform-logo-badge {
  font-weight: 700;
}

/* Final override: table and filter text must not use bold text. */
.redemption-toolbar,
.redemption-toolbar *,
.redemption-modern-table,
.redemption-modern-table *,
.redemption-pagination,
.redemption-pagination * {
  font-weight: 400 !important;
}

.redemption-status-pill,
.redemption-tabs button,
.redemption-tabs button.active,
.redemption-search input,
.redemption-month input,
.redemption-select,
.redemption-export,
.redemption-row-action,
.platform-logo-link,
.platform-order-number,
.platform-logo-badge {
  font-weight: 400 !important;
}

.redemption-kpi-card strong,
.redemption-kpi-card.teal strong {
  font-weight: 800 !important;
}

.redemption-kpi-label {
  font-weight: 500 !important;
}

.redemption-kpi-card small {
  font-weight: 400 !important;
}

/* Selected compact ledger version: small typography, underline filters, dense rows. */
.redemption-dashboard {
  gap: 10px !important;
  font-size: 12px !important;
}

.redemption-dashboard .redemption-kpi-grid {
  display: none !important;
}

.redemption-board {
  overflow: hidden !important;
  border: 1px solid #dbe7f6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.redemption-toolbar {
  display: grid !important;
  grid-template-columns: minmax(300px, 380px) minmax(520px, 1fr) 132px 130px 140px 76px !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 64px !important;
  padding: 10px 18px !important;
  border-bottom: 1px solid #e5edf8 !important;
  background: #fff !important;
}

.redemption-search .ui-icon {
  right: 12px !important;
  width: 15px !important;
  height: 15px !important;
  color: #6f83a0 !important;
}

.redemption-search input,
.redemption-month input,
.redemption-select {
  height: 34px !important;
  min-height: 34px !important;
  border-color: #d8e4f4 !important;
  border-radius: 6px !important;
  color: #243654 !important;
  font-size: 12px !important;
  line-height: 34px !important;
  box-shadow: none !important;
}

.redemption-search input {
  padding: 0 36px 0 12px !important;
}

.redemption-month input,
.redemption-select {
  padding: 0 10px !important;
}

.redemption-search input::placeholder {
  color: #8b9bb0 !important;
}

.redemption-tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 6px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  white-space: nowrap !important;
}

.redemption-tabs button {
  position: relative !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #253858 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 34px !important;
}

.redemption-tabs button:nth-child(3) {
  min-width: 0 !important;
}

.redemption-tabs button.active {
  background: transparent !important;
  color: #1671f5 !important;
  box-shadow: none !important;
}

.redemption-tabs button.active::after {
  content: "" !important;
  position: absolute !important;
  right: -7px !important;
  bottom: 0 !important;
  left: -7px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #1671f5 !important;
}

.redemption-export {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-color: #d8e4f4 !important;
  border-radius: 6px !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

.redemption-export .ui-icon {
  width: 14px !important;
  height: 14px !important;
}

.redemption-modern-table table {
  width: 100% !important;
  min-width: 1220px !important;
  table-layout: fixed !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.redemption-modern-table th:nth-child(1),
.redemption-modern-table td:nth-child(1) { width: 15% !important; }
.redemption-modern-table th:nth-child(2),
.redemption-modern-table td:nth-child(2) { width: 18% !important; }
.redemption-modern-table th:nth-child(3),
.redemption-modern-table td:nth-child(3) { width: 8% !important; }
.redemption-modern-table th:nth-child(4),
.redemption-modern-table td:nth-child(4) { width: 9% !important; }
.redemption-modern-table th:nth-child(5),
.redemption-modern-table td:nth-child(5) { width: 18% !important; }
.redemption-modern-table th:nth-child(6),
.redemption-modern-table td:nth-child(6) { width: 10% !important; }
.redemption-modern-table th:nth-child(7),
.redemption-modern-table td:nth-child(7) { width: 9% !important; }
.redemption-modern-table th:nth-child(8),
.redemption-modern-table td:nth-child(8) { width: 9% !important; }
.redemption-modern-table th:nth-child(9),
.redemption-modern-table td:nth-child(9) { width: 4% !important; }

.redemption-modern-table th {
  height: 38px !important;
  padding: 0 18px !important;
  border-bottom: 1px solid #e5edf8 !important;
  background: #fbfdff !important;
  color: #263a59 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.redemption-modern-table td {
  height: 46px !important;
  padding: 6px 18px !important;
  border-bottom: 1px solid #e5edf8 !important;
  color: #263a59 !important;
  font-size: 12px !important;
  line-height: 1.32 !important;
  vertical-align: middle !important;
}

.redemption-modern-table tbody tr:hover {
  background: #fbfdff !important;
}

.redemption-modern-table .order-no,
.redemption-modern-table .gift-name,
.redemption-cost-cell strong,
.redemption-account-label,
.redemption-row-action {
  color: #243654 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.redemption-modern-table .order-no {
  font-family: Consolas, "SFMono-Regular", monospace !important;
}

.redemption-modern-table .gift-name {
  max-width: 100% !important;
}

.redemption-order-cell span,
.redemption-modern-table .muted-line,
.redemption-cost-cell span,
.platform-order-link,
.platform-order-number {
  color: #71809a !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.redemption-modern-table .muted-line {
  margin-top: 3px !important;
}

.redemption-status-pill {
  min-width: 48px !important;
  height: 22px !important;
  padding: 0 8px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  line-height: 20px !important;
}

.redemption-cost-cell {
  gap: 1px !important;
}

.redemption-row-action {
  min-height: 0 !important;
  padding: 0 !important;
  color: #1671f5 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.redemption-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-top: 1px solid #e5edf8 !important;
  font-size: 12px !important;
}

.redemption-pagination-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.redemption-page-size select {
  min-width: 112px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid #d8e4f4 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #263a59 !important;
  font-size: 12px !important;
}

.redemption-page-buttons {
  gap: 8px !important;
}

.redemption-page-buttons button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-color: #d8e4f4 !important;
  border-radius: 6px !important;
  color: #52627a !important;
  background: #fff !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

.redemption-page-buttons button.active {
  border-color: #9cc5ff !important;
  background: #edf5ff !important;
  color: #1671f5 !important;
}

.redemption-page-gap {
  color: #71809a !important;
  font-size: 12px !important;
  line-height: 28px !important;
}

@media (max-width: 1320px) {
  .redemption-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.4fr) 124px 118px 118px 72px !important;
    gap: 8px !important;
  }

  .redemption-tabs {
    gap: 16px !important;
  }
}

/* Top KPI clone and small-screen table fit pass. */
.redemption-dashboard .redemption-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.redemption-kpi-card {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) 18px !important;
  grid-template-rows: auto auto auto !important;
  align-items: center !important;
  min-height: 104px !important;
  padding: 18px 20px !important;
  border: 1px solid #bcd5f5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #13233e !important;
  box-shadow: none !important;
  text-align: left !important;
  transform: none !important;
}

.redemption-kpi-card:hover {
  border-color: #9fc4f6 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

.redemption-kpi-icon {
  grid-row: 1 / 4 !important;
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1169df !important;
}

.redemption-kpi-icon .ui-icon {
  width: 34px !important;
  height: 34px !important;
  stroke-width: 1.9 !important;
}

.redemption-kpi-label {
  display: block !important;
  color: #14233d !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.18 !important;
  white-space: nowrap !important;
}

.redemption-kpi-label i {
  display: none !important;
}

.redemption-kpi-card strong,
.redemption-kpi-card.teal strong {
  color: #1677ff !important;
  font-size: 30px !important;
  font-weight: 760 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.redemption-kpi-card small {
  color: #74829a !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.redemption-kpi-arrow {
  grid-column: 3 !important;
  grid-row: 1 / 4 !important;
  display: grid !important;
  place-items: center !important;
  color: #1677ff !important;
}

.redemption-kpi-arrow .ui-icon {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.1 !important;
}

.redemption-modern-table table {
  min-width: 1040px !important;
}

.redemption-modern-table th,
.redemption-modern-table td {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.redemption-modern-table th:nth-child(1),
.redemption-modern-table td:nth-child(1) { width: 16% !important; }
.redemption-modern-table th:nth-child(2),
.redemption-modern-table td:nth-child(2) { width: 18% !important; }
.redemption-modern-table th:nth-child(3),
.redemption-modern-table td:nth-child(3) { width: 7% !important; }
.redemption-modern-table th:nth-child(4),
.redemption-modern-table td:nth-child(4) { width: 8% !important; }
.redemption-modern-table th:nth-child(5),
.redemption-modern-table td:nth-child(5) { width: 16% !important; }
.redemption-modern-table th:nth-child(6),
.redemption-modern-table td:nth-child(6) { width: 10% !important; }
.redemption-modern-table th:nth-child(7),
.redemption-modern-table td:nth-child(7) { width: 9% !important; }
.redemption-modern-table th:nth-child(8),
.redemption-modern-table td:nth-child(8) { width: 10% !important; }
.redemption-modern-table th:nth-child(9),
.redemption-modern-table td:nth-child(9) { width: 6% !important; }

@media (max-width: 1420px) {
  .redemption-toolbar {
    grid-template-columns: minmax(230px, 1fr) minmax(420px, 1.7fr) 120px 118px 118px 68px !important;
    gap: 8px !important;
    padding: 9px 12px !important;
  }

  .redemption-tabs {
    gap: 15px !important;
  }

  .redemption-modern-table table {
    min-width: 1000px !important;
  }

  .redemption-modern-table th,
  .redemption-modern-table td {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 1180px) {
  .redemption-dashboard .redemption-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .redemption-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.6fr) 112px 112px 112px 64px !important;
  }
}

@media (max-width: 980px) {
  .redemption-toolbar {
    grid-template-columns: minmax(200px, 1fr) 112px 112px 112px 64px !important;
    grid-template-areas:
      "search search search search export"
      "tabs tabs tabs tabs tabs"
      "month platform account account account" !important;
    min-height: 0 !important;
    padding: 9px 10px !important;
  }

  .redemption-search { grid-area: search !important; }
  .redemption-tabs { grid-area: tabs !important; }
  .redemption-month { grid-area: month !important; }
  .redemption-select[data-list-input="purchasePlatform"] { grid-area: platform !important; }
  .redemption-select[data-list-input="purchaseAccount"] { grid-area: account !important; }
  .redemption-export { grid-area: export !important; }

  .redemption-tabs {
    justify-content: flex-start !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
  }

  .redemption-modern-table {
    overflow-x: auto !important;
  }
}

/* Sidebar-expanded fit pass: use available row width instead of viewport width. */
.redemption-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 10px !important;
}

.redemption-search {
  flex: 1 1 260px !important;
  max-width: 340px !important;
  min-width: 210px !important;
}

.redemption-tabs {
  flex: 999 1 390px !important;
  min-width: 360px !important;
  max-width: 100% !important;
}

.redemption-month {
  flex: 0 0 116px !important;
}

.redemption-select[data-list-input="purchasePlatform"],
.redemption-select[data-list-input="purchaseAccount"] {
  flex: 0 0 112px !important;
  min-width: 112px !important;
}

.redemption-export {
  flex: 0 0 64px !important;
}

.redemption-modern-table {
  overflow-x: auto !important;
}

.redemption-modern-table table {
  min-width: 930px !important;
}

.redemption-modern-table th,
.redemption-modern-table td {
  padding-left: 7px !important;
  padding-right: 7px !important;
}

.redemption-modern-table th:nth-child(1),
.redemption-modern-table td:nth-child(1) { width: 15% !important; }
.redemption-modern-table th:nth-child(2),
.redemption-modern-table td:nth-child(2) { width: 18% !important; }
.redemption-modern-table th:nth-child(3),
.redemption-modern-table td:nth-child(3) { width: 7% !important; }
.redemption-modern-table th:nth-child(4),
.redemption-modern-table td:nth-child(4) { width: 8% !important; }
.redemption-modern-table th:nth-child(5),
.redemption-modern-table td:nth-child(5) { width: 15% !important; }
.redemption-modern-table th:nth-child(6),
.redemption-modern-table td:nth-child(6) { width: 10% !important; }
.redemption-modern-table th:nth-child(7),
.redemption-modern-table td:nth-child(7) { width: 9% !important; }
.redemption-modern-table th:nth-child(8),
.redemption-modern-table td:nth-child(8) { width: 10% !important; }
.redemption-modern-table th:nth-child(9),
.redemption-modern-table td:nth-child(9) { width: 8% !important; }

@media (max-width: 980px) {
  .redemption-search,
  .redemption-tabs {
    flex-basis: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .redemption-tabs {
    overflow-x: auto !important;
  }

  .redemption-modern-table table {
    min-width: 900px !important;
  }
}

/* Real platform image icons for third-party order numbers. */
.platform-logo-link,
.app-shell:not(.login-mode) .platform-logo-link {
  gap: 6px !important;
}

.platform-logo-badge {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: none !important;
}

.platform-logo-badge img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.platform-logo-badge span {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 1 !important;
}

.platform-order-number {
  max-width: 132px !important;
}

/* Icon-only export button in redemption filters. */
.redemption-export {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
}

.redemption-export .ui-icon {
  width: 15px !important;
  height: 15px !important;
}

/* Physical pickup page follows the compact redemption table language. */
.physical-pickup-toolbar .redemption-search {
  flex-basis: 250px !important;
  max-width: 330px !important;
}

.physical-pickup-tabs {
  flex-basis: 410px !important;
  min-width: 380px !important;
}

.physical-pickup-toolbar .redemption-select {
  flex: 0 0 112px !important;
  min-width: 112px !important;
}

.physical-sync-button {
  color: #1671f5 !important;
}

.physical-pickup-modern-table table {
  min-width: 930px !important;
}

.physical-pickup-modern-table th:nth-child(1),
.physical-pickup-modern-table td:nth-child(1) { width: 15% !important; }
.physical-pickup-modern-table th:nth-child(2),
.physical-pickup-modern-table td:nth-child(2) { width: 18% !important; }
.physical-pickup-modern-table th:nth-child(3),
.physical-pickup-modern-table td:nth-child(3) { width: 7% !important; }
.physical-pickup-modern-table th:nth-child(4),
.physical-pickup-modern-table td:nth-child(4) { width: 10% !important; }
.physical-pickup-modern-table th:nth-child(5),
.physical-pickup-modern-table td:nth-child(5) { width: 15% !important; }
.physical-pickup-modern-table th:nth-child(6),
.physical-pickup-modern-table td:nth-child(6) { width: 9% !important; }
.physical-pickup-modern-table th:nth-child(7),
.physical-pickup-modern-table td:nth-child(7) { width: 9% !important; }
.physical-pickup-modern-table th:nth-child(8),
.physical-pickup-modern-table td:nth-child(8) { width: 10% !important; }
.physical-pickup-modern-table th:nth-child(9),
.physical-pickup-modern-table td:nth-child(9) { width: 7% !important; }

.physical-pickup-modern-table .redemption-status-pill {
  margin-bottom: 2px !important;
}

/* Shared thin-line month picker for redemption and physical pickup filters. */
.redemption-month.month-picker-field {
  position: relative !important;
  z-index: 30 !important;
  flex: 0 0 132px !important;
  width: 132px !important;
  min-width: 132px !important;
}

.month-picker-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px 0 12px !important;
  border: 1px solid #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #14233d !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 34px !important;
  white-space: nowrap !important;
}

.month-picker-trigger:hover,
.month-picker-field.open .month-picker-trigger {
  border-color: #2f7df6 !important;
  box-shadow: 0 0 0 1px rgba(47, 125, 246, 0.08) !important;
}

.month-picker-trigger .ui-icon {
  width: 15px !important;
  height: 15px !important;
  color: #14233d !important;
  stroke-width: 2 !important;
}

.month-picker-popover {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 2500 !important;
  width: 250px !important;
  overflow: hidden !important;
  border: 1px solid #b9d2fb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(32, 88, 176, 0.12) !important;
}

.month-picker-head {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  height: 42px !important;
  border-bottom: 1px solid #d6e5fb !important;
  background: #fff !important;
}

.month-picker-head strong {
  color: #14233d !important;
  font-family: var(--font-number, system-ui) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.month-picker-nav {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #243654 !important;
  box-shadow: none !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

.month-picker-nav:hover {
  background: #f2f7ff !important;
  color: #1671f5 !important;
}

.month-picker-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px 10px !important;
  padding: 13px 16px 14px !important;
}

.month-picker-month {
  display: grid !important;
  place-items: center !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #14233d !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.month-picker-month:hover,
.month-picker-month.current:not(.selected) {
  background: #f3f7ff !important;
}

.month-picker-month.selected {
  border-color: #2f7df6 !important;
  background: #f8fbff !important;
  color: #1671f5 !important;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 246, 0.16) !important;
}

.month-picker-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 43px !important;
  padding: 0 20px !important;
  border-top: 1px solid #d6e5fb !important;
  background: #fff !important;
}

.month-picker-actions button {
  min-height: 28px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #1671f5 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 28px !important;
}

.month-picker-actions button:hover {
  background: #f2f7ff !important;
}

/* Shared thin-line select dropdowns for platform/account filters. */
.thin-select-field {
  position: relative !important;
  z-index: 28 !important;
  flex: 0 0 112px !important;
  width: 112px !important;
  min-width: 112px !important;
}

.thin-select-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 9px 0 12px !important;
  border: 1px solid #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #14233d !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 34px !important;
}

.thin-select-trigger:hover,
.thin-select-field.open .thin-select-trigger {
  border-color: #2f7df6 !important;
  box-shadow: 0 0 0 1px rgba(47, 125, 246, 0.08) !important;
}

.thin-select-trigger span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.thin-select-caret {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  color: #14233d !important;
  stroke-width: 2 !important;
  transform: rotate(90deg) !important;
  transition: transform 0.14s ease !important;
}

.thin-select-field.open .thin-select-caret {
  transform: rotate(-90deg) !important;
}

.thin-select-popover {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 2500 !important;
  width: 178px !important;
  max-width: 220px !important;
  max-height: 238px !important;
  overflow: auto !important;
  border: 1px solid #b9d2fb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(32, 88, 176, 0.12) !important;
}

.thin-select-list {
  display: grid !important;
  gap: 4px !important;
  padding: 6px !important;
}

.thin-select-option {
  display: block !important;
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #14233d !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 30px !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.thin-select-option:hover {
  background: #f3f7ff !important;
}

.thin-select-option.selected {
  border-color: #2f7df6 !important;
  background: #f8fbff !important;
  color: #1671f5 !important;
}

.redemption-toolbar .thin-select-field,
.physical-pickup-toolbar .thin-select-field {
  flex: 0 0 112px !important;
  min-width: 112px !important;
}

.redemption-toolbar .thin-select-trigger,
.physical-pickup-toolbar .thin-select-trigger {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 12px !important;
}

.physical-pickup-toolbar .redemption-search {
  flex: 1 1 220px !important;
  min-width: 190px !important;
  max-width: 300px !important;
}

.physical-pickup-toolbar .physical-pickup-tabs {
  flex: 999 1 320px !important;
  min-width: 280px !important;
}

.physical-pickup-toolbar .thin-select-field {
  flex-basis: 108px !important;
  width: 108px !important;
  min-width: 108px !important;
}

/* Purchase verification page adopts the compact redemption filter language. */
.purchase-verify-page {
  gap: 10px !important;
}

.purchase-verify-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.purchase-verify-kpis .kpi {
  min-height: 72px !important;
  padding: 12px 14px !important;
  border: 1px solid #d6e5f8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 22px rgba(31, 67, 122, 0.04) !important;
}

.purchase-verify-kpis .kpi span {
  font-size: 12px !important;
  font-weight: 400 !important;
}

.purchase-verify-kpis .kpi strong {
  margin-top: 5px !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.purchase-verify-kpis .kpi p {
  margin-top: 5px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.purchase-verify-board {
  padding: 0 !important;
}

.purchase-verify-heading {
  min-height: 42px !important;
  padding: 11px 16px 9px !important;
  border-bottom: 1px solid #e5edf8 !important;
}

.purchase-verify-heading h2 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.purchase-verify-toolbar {
  min-height: 54px !important;
  padding: 9px 14px !important;
  border-bottom: 1px solid #e5edf8 !important;
}

.purchase-verify-toolbar .purchase-verify-search {
  flex: 1 1 300px !important;
  min-width: 240px !important;
  max-width: 380px !important;
}

.purchase-verify-toolbar .redemption-month.month-picker-field {
  flex-basis: 132px !important;
  width: 132px !important;
  min-width: 132px !important;
}

.purchase-verify-toolbar .thin-select-field {
  flex: 0 0 118px !important;
  width: 118px !important;
  min-width: 118px !important;
}

.purchase-verify-toolbar .thin-select-field:nth-of-type(5) {
  flex-basis: 128px !important;
  width: 128px !important;
  min-width: 128px !important;
}

.purchase-verify-reset {
  flex: 0 0 58px !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #1671f5 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.purchase-verify-count {
  flex: 0 0 auto !important;
  height: 28px !important;
  padding: 0 9px !important;
  border-color: #d6e5f8 !important;
  background: #f8fbff !important;
  color: #5c708f !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 28px !important;
}

.purchase-verify-board .purchase-check-list {
  gap: 8px !important;
  padding: 10px 14px !important;
  background: #fff !important;
}

.purchase-verify-board .purchase-check-card {
  gap: 8px !important;
  padding: 10px 11px !important;
  border-color: #e0e9f5 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.purchase-verify-board .purchase-check-main {
  grid-template-columns: auto minmax(160px, 1.1fr) minmax(170px, 0.95fr) minmax(220px, 1.25fr) !important;
  gap: 10px !important;
}

.purchase-verify-board .purchase-check-main strong,
.purchase-verify-board .purchase-check-detail strong {
  font-size: 12px !important;
  font-weight: 500 !important;
}

.purchase-verify-board .purchase-check-main p,
.purchase-verify-board .purchase-check-detail span {
  font-size: 11px !important;
  font-weight: 400 !important;
}

.purchase-verify-board .purchase-check-detail {
  gap: 7px !important;
  padding-top: 7px !important;
}

.purchase-verify-board .pagination {
  margin: 0 !important;
  padding: 10px 14px !important;
  border-top: 1px solid #e5edf8 !important;
  background: #fff !important;
}

@media (max-width: 980px) {
  .physical-pickup-toolbar .redemption-search,
  .physical-pickup-tabs {
    flex-basis: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .physical-pickup-modern-table table {
    min-width: 900px !important;
  }

  .redemption-month.month-picker-field {
    flex-basis: 132px !important;
  }

  .thin-select-field {
    flex-basis: 112px !important;
  }

  .purchase-verify-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .purchase-verify-toolbar .purchase-verify-search {
    flex-basis: 100% !important;
    max-width: none !important;
  }
}

/* Purchase verify split workspace */
.purchase-verify-workspace {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.purchase-verify-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 10px 14px;
  color: #7184a2;
}

.purchase-verify-titlebar h1 {
  margin: 0;
  color: #0b1b39;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.2;
}

.purchase-verify-titlebar p,
.purchase-verify-titlebar span {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.purchase-verify-board {
  overflow: visible !important;
  border: 1px solid #cfe0f7 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(45, 93, 160, 0.05) !important;
}

.purchase-verify-toolbar {
  display: grid !important;
  grid-template-columns: minmax(220px, 280px) minmax(360px, 1fr) 136px 132px 132px 72px !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 68px !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid #e4edf9 !important;
  background: #fff !important;
}

.purchase-verify-toolbar .purchase-verify-search {
  flex: none !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 34px !important;
}

.purchase-verify-toolbar .purchase-verify-search input {
  height: 34px !important;
  min-height: 34px !important;
  padding-left: 34px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.purchase-verify-result-tabs {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  overflow: hidden;
  border: 1px solid #cfe0f7;
  border-radius: 7px;
  background: #fff;
}

.purchase-verify-result-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid #e2ebf7;
  border-radius: 0;
  background: transparent;
  color: #13233f;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.purchase-verify-result-tabs button:last-child {
  border-right: 0;
}

.purchase-verify-result-tabs button.active {
  background: #edf5ff;
  color: #096bff;
}

.purchase-verify-result-tabs b {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.purchase-verify-toolbar .redemption-month.month-picker-field,
.purchase-verify-toolbar .thin-select-field {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
}

.purchase-verify-toolbar .month-picker-trigger,
.purchase-verify-toolbar .thin-select-trigger {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.purchase-verify-export {
  display: inline-grid !important;
  place-items: center !important;
  width: 64px !important;
  min-width: 64px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid #cfe0f7 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #1b5fb9 !important;
  box-shadow: none !important;
}

.purchase-verify-export .ui-icon {
  width: 15px;
  height: 15px;
}

.purchase-verify-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 10px;
}

.purchase-verify-metric {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid #d8e5f6;
  border-radius: 7px;
  background: #fff;
}

.purchase-verify-metric-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #edf5ff;
  color: #1473ff;
}

.purchase-verify-metric-icon .ui-icon {
  width: 24px;
  height: 24px;
}

.purchase-verify-metric.orange .purchase-verify-metric-icon {
  background: #fff1e8;
  color: #f26922;
}

.purchase-verify-metric.red .purchase-verify-metric-icon {
  background: #fff1f1;
  color: #ff333f;
}

.purchase-verify-metric.green .purchase-verify-metric-icon {
  background: #eaf8f1;
  color: #19a765;
}

.purchase-verify-metric p,
.purchase-verify-metric small {
  display: block;
  margin: 0;
  color: #536681;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.purchase-verify-metric p {
  color: #16243c;
  font-weight: 600;
}

.purchase-verify-metric strong {
  display: block;
  margin: 3px 0 2px;
  color: #1072ff;
  font-family: var(--font-number, "DIN Alternate", "Segoe UI", Arial, sans-serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.purchase-verify-metric.orange strong {
  color: #f26922;
}

.purchase-verify-metric.red strong {
  color: #ff333f;
}

.purchase-verify-metric.green strong {
  color: #1aa567;
}

.purchase-verify-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  gap: 14px;
  padding: 0 16px 16px;
}

.purchase-verify-table-panel,
.purchase-verify-inspector {
  min-width: 0;
  border: 1px solid #dbe6f5;
  border-radius: 7px;
  background: #fff;
}

.purchase-verify-table-wrap {
  overflow-x: auto;
}

.purchase-verify-table {
  width: 100%;
  min-width: 760px !important;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.purchase-verify-table th,
.purchase-verify-table td {
  height: 48px;
  padding: 7px 10px;
  border-bottom: 1px solid #e5edf7;
  background: #fff;
  color: #11213a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  vertical-align: middle;
}

.purchase-verify-table th {
  height: 40px;
  color: #182947;
  font-size: 12px;
  font-weight: 600;
}

.purchase-verify-table th:nth-child(1) { width: 140px; }
.purchase-verify-table th:nth-child(2) { width: 170px; }
.purchase-verify-table th:nth-child(3) { width: 72px; }
.purchase-verify-table th:nth-child(4) { width: 164px; }
.purchase-verify-table th:nth-child(5) { width: 96px; }
.purchase-verify-table th:nth-child(6) { width: 82px; }
.purchase-verify-table th:nth-child(7) { width: 62px; }

.purchase-verify-table tr.selected td {
  border-top: 1px solid #2d82ff;
  border-bottom: 1px solid #2d82ff;
  background: #f7fbff;
}

.purchase-verify-table tr.selected td:first-child {
  border-left: 1px solid #2d82ff;
  border-radius: 6px 0 0 6px;
}

.purchase-verify-table tr.selected td:last-child {
  border-right: 1px solid #2d82ff;
  border-radius: 0 6px 6px 0;
}

.purchase-table-pick {
  display: grid;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.purchase-table-order,
.purchase-table-stack > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #163157;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-table-muted,
.purchase-table-stack small {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: #6f819d;
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-verify-table .platform-order-link {
  max-width: 100%;
  padding: 0;
  color: #1c345d;
}

.purchase-verify-table .platform-order-number {
  max-width: 118px;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.purchase-verify-time-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  color: #243858;
  font-weight: 650;
  white-space: nowrap;
}

.purchase-verify-time-cell .ui-icon {
  width: 12px;
  height: 12px;
  color: #5b6b82;
  stroke-width: 2.2;
}

.purchase-result-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
  background: #f6a623;
}

.purchase-result-dot.ok {
  background: #19a765;
}

.purchase-result-dot.fail {
  background: #ff333f;
}

.purchase-result-dot.wait,
.purchase-result-dot.warning {
  background: #f6a623;
}

.purchase-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 6px;
  min-width: 0;
  color: #30415f;
  white-space: nowrap;
}

.purchase-status-badge > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purchase-status-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid transparent;
  border-radius: 50%;
  vertical-align: middle;
}

.purchase-status-icon .ui-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.purchase-status-icon.compact {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
}

.purchase-status-icon.compact .ui-icon {
  width: 11px;
  height: 11px;
}

.purchase-status-icon.ok {
  border-color: #b9e6cf;
  background: #edf9f3;
  color: #16885a;
}

.purchase-status-icon.wait {
  border-color: #f5d7a5;
  background: #fff6e8;
  color: #c67612;
}

.purchase-status-icon.warning {
  border-color: #c8d9f1;
  background: #eef5ff;
  color: #1f66ca;
}

.purchase-status-icon.fail {
  border-color: #ffc5c8;
  background: #fff1f2;
  color: #e82f3b;
}

.purchase-status-icon.unbound {
  border-color: #d0d7e4;
  background: #f1f4f8;
  color: #536783;
}

.purchase-status-badge.ok {
  color: #16885a;
}

.purchase-status-badge.wait {
  color: #9b630d;
}

.purchase-status-badge.warning {
  color: #1f66ca;
}

.purchase-status-badge.fail {
  color: #d72d38;
}

.purchase-status-badge.unbound {
  color: #536783;
}

.purchase-table-action {
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #096bff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}

.purchase-verify-table-panel .pagination {
  margin: 0 !important;
  padding: 10px 14px !important;
  border-top: 1px solid #e5edf7 !important;
  background: #fff !important;
}

.purchase-verify-table-panel .pagination .muted {
  font-size: 12px;
}

.purchase-verify-table-panel .pagination button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
}

.purchase-verify-inspector {
  display: grid;
  align-self: start;
  overflow: hidden;
}

.purchase-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #e5edf7;
}

.purchase-inspector-head h2 {
  margin: 0;
  color: #172642;
  font-size: 15px;
  font-weight: 750;
}

.purchase-inspector-tools {
  display: inline-flex;
  gap: 6px;
}

.purchase-inspector-tools button {
  display: grid;
  place-items: center;
  width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c8ba4;
  box-shadow: none;
  font-size: 17px;
}

.purchase-inspector-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 16px;
  border-bottom: 1px solid #edf2f9;
}

.purchase-inspector-title strong {
  display: block;
  color: #10203d;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
}

.purchase-inspector-title span {
  display: block;
  margin-top: 5px;
  color: #71819b;
  font-size: 12px;
}

.purchase-inspector-title em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #ffd4a8;
  background: #fff6ed;
  color: #f06a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.purchase-inspector-title em.ok,
.purchase-inspector-title em.self_operated {
  border-color: #bde9d4;
  background: #effaf4;
  color: #16885a;
}

.purchase-inspector-title em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.purchase-inspector-title em .purchase-status-icon {
  flex: 0 0 18px;
  margin: 0;
}

.purchase-inspector-title em .purchase-status-icon.compact {
  width: 18px;
  height: 18px;
}

.purchase-inspector-title em.missing_order,
.purchase-inspector-title em.missing_third_order {
  border-color: #ffc9ca;
  background: #fff2f3;
  color: #e92f39;
}

.purchase-platform-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 18px 4px;
  padding: 8px 10px;
  border: 1px solid #e1e9f5;
  border-radius: 7px;
  background: #f8fbff;
}

.purchase-platform-switch > span {
  color: #687a96;
  font-size: 11px;
}

.purchase-platform-switch > strong {
  min-width: 0;
  overflow: hidden;
  color: #183052;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-inspector-verify-time {
  display: grid;
  grid-template-columns: 14px auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0 18px 10px;
  padding: 8px 10px;
  border: 1px solid #dfe8f4;
  border-radius: 7px;
  background: #f8fbff;
  color: #52657f;
  font-size: 12px;
}

.purchase-inspector-verify-time .ui-icon {
  width: 13px;
  height: 13px;
  color: #2d82ff;
  stroke-width: 2.2;
}

.purchase-inspector-verify-time strong {
  min-width: 0;
  overflow: hidden;
  color: #172642;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-platform-switch > div {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfe0f7;
  border-radius: 6px;
  background: #fff;
}

.purchase-platform-switch button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #e2ebf7;
  border-radius: 0;
  background: transparent;
  color: #243957;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}

.purchase-platform-switch button:last-child {
  border-right: 0;
}

.purchase-platform-switch button.active {
  background: #edf5ff;
  color: #096bff;
}

.purchase-inspector-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 8px;
}

.purchase-inspector-compare-head h3 {
  margin: 0;
  color: #183052;
  font-size: 14px;
  font-weight: 700;
}

.purchase-inspector-compare-head div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #536681;
  font-size: 11px;
}

.purchase-compare-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 14px;
}

.purchase-compare-card {
  overflow: hidden;
  border: 1px solid #e1e9f5;
  border-radius: 7px;
  background: #fff;
}

.purchase-compare-card h4 {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid #e8eff7;
  color: #183052;
  font-size: 13px;
  font-weight: 700;
}

.purchase-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
  align-items: stretch;
}

.purchase-compare-grid > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #edf2f8;
}

.purchase-compare-grid span,
.purchase-compare-grid small {
  display: block;
  margin-bottom: 5px;
  color: #687a96;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.purchase-compare-grid strong {
  display: block;
  overflow: hidden;
  color: #1a3154;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  text-overflow: ellipsis;
}

.purchase-compare-grid i {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff5ea;
  color: #ff8a21;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.purchase-compare-grid i .ui-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.purchase-compare-grid i.ok {
  background: #1fb36e;
  color: #fff;
}

.purchase-compare-grid i.fail {
  background: #fff1f1;
  color: #ff333f;
}

.purchase-inspector-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 10px;
}

.purchase-inspector-actions button {
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.purchase-inspector-actions .ui-icon {
  width: 15px;
  height: 15px;
}

.purchase-inspector-note {
  margin: 0;
  padding: 0 18px 16px;
  color: #7a89a0;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1320px) {
  .purchase-verify-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(330px, 1.2fr) repeat(3, 118px) 48px !important;
    gap: 10px !important;
  }

  .purchase-verify-split {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .purchase-verify-table {
    min-width: 720px !important;
  }
}

@media (max-width: 1120px) {
  .purchase-verify-toolbar {
    grid-template-columns: 1fr 1fr 126px 118px 118px 48px !important;
  }

  .purchase-verify-result-tabs {
    overflow-x: auto;
  }

  .purchase-verify-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-verify-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .purchase-verify-titlebar {
    padding-inline: 0;
  }

  .purchase-verify-toolbar {
    grid-template-columns: 1fr !important;
  }

  .purchase-verify-kpi-row {
    grid-template-columns: 1fr;
  }

  .purchase-inspector-actions {
    grid-template-columns: 1fr;
  }
}

/* Invoice management page: compact gift redemption visual language. */
.invoice-dashboard {
  gap: 16px !important;
}

.invoice-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.invoice-kpi-grid .redemption-kpi-card {
  min-height: 92px !important;
  border-color: #cfe0f8 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.invoice-kpi-grid .redemption-kpi-card strong,
.invoice-kpi-grid .redemption-kpi-card.teal strong {
  font-size: 28px !important;
  font-weight: 760 !important;
}

.invoice-board {
  overflow: visible !important;
  border-color: #d7e5f7 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.invoice-toolbar {
  position: relative !important;
  z-index: 40 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #e6eef8 !important;
  background: #fff !important;
}

.invoice-toolbar .invoice-search {
  flex: 1 1 260px !important;
  min-width: 210px !important;
  max-width: 340px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-color: #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
}

.invoice-toolbar .invoice-search input {
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-toolbar .invoice-tabs {
  display: inline-flex !important;
  flex: 999 1 420px !important;
  flex-wrap: nowrap !important;
  min-width: 380px !important;
  max-width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.invoice-toolbar .invoice-tabs button {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 9px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid #e3edf9 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #172846 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 32px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.invoice-toolbar .invoice-tabs button:last-child {
  border-right: 0 !important;
}

.invoice-toolbar .invoice-tabs button.active {
  background: #edf5ff !important;
  color: #1671f5 !important;
  font-weight: 500 !important;
}

.invoice-date-filter {
  display: flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.invoice-date-picker {
  position: relative !important;
  flex: 0 0 318px !important;
  width: 318px !important;
  z-index: 75 !important;
}

.invoice-date-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid #2b7fff !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #1671f5 !important;
  box-shadow: 0 0 0 2px rgba(22, 113, 245, .06) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 34px !important;
  white-space: nowrap !important;
}

.invoice-date-trigger span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
}

.invoice-date-trigger .ui-icon {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.invoice-date-trigger .invoice-date-caret {
  display: block !important;
  transform: rotate(-90deg) !important;
}

.invoice-date-picker.open .invoice-date-caret {
  transform: rotate(90deg) !important;
}

.invoice-date-popover {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  width: 430px !important;
  padding: 22px 22px 20px !important;
  border: 1px solid #9fc6ff !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(31, 88, 164, .12) !important;
  transform: translateX(-50%) !important;
  z-index: 180 !important;
}

.invoice-date-head {
  display: grid !important;
  grid-template-columns: 34px 1fr 34px !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

.invoice-date-head strong {
  color: #14233d !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.invoice-date-nav {
  width: 34px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #132440 !important;
  box-shadow: none !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 28px !important;
}

.invoice-date-tabs {
  display: flex !important;
  gap: 0 !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid #dce8f8 !important;
}

.invoice-date-tabs button {
  height: 35px !important;
  min-height: 35px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1b2d4b !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.invoice-date-tabs button.active {
  border-bottom-color: #1671f5 !important;
  color: #1671f5 !important;
  font-weight: 500 !important;
}

.invoice-date-month-row,
.invoice-date-custom-row,
.invoice-date-shortcuts,
.invoice-date-actions {
  display: none !important;
}

.invoice-date-picker.mode-month .invoice-date-month-row {
  display: block !important;
  min-height: 172px !important;
}

.invoice-date-picker.mode-custom .invoice-date-custom-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  min-height: 52px !important;
  margin-bottom: 24px !important;
}

.invoice-date-custom-row input {
  width: 160px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #cbdcf4 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #152640 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 42px !important;
}

.invoice-date-month-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px 18px !important;
  padding: 4px 18px 0 !important;
}

.invoice-date-month-grid button {
  display: grid !important;
  place-items: center !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #14233d !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

.invoice-date-month-grid button:hover {
  background: #f3f7ff !important;
  color: #1671f5 !important;
}

.invoice-date-month-grid button.selected {
  border-color: #2f7df6 !important;
  background: #f8fbff !important;
  color: #1671f5 !important;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 246, .14) !important;
}

.invoice-date-custom-row span {
  color: #14233d !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.invoice-date-shortcuts {
  display: none !important;
  grid-template-columns: repeat(4, 1fr) !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
  border: 1px solid #d2def0 !important;
  border-radius: 5px !important;
}

.invoice-date-picker.mode-custom .invoice-date-shortcuts {
  display: grid !important;
}

.invoice-date-shortcuts button {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #d2def0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #14233d !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.invoice-date-shortcuts button:last-child {
  border-right: 0 !important;
}

.invoice-date-shortcuts button:hover {
  background: #f4f8ff !important;
  color: #1671f5 !important;
}

.invoice-date-actions {
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 20px !important;
  border-top: 1px solid #e5eef9 !important;
}

.invoice-date-picker.mode-custom .invoice-date-actions {
  display: flex !important;
}

.invoice-date-clear {
  min-width: 56px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1671f5 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.invoice-date-apply {
  width: 122px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #1677ff !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(22, 119, 255, .18) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.invoice-toolbar .thin-select-field {
  flex: 0 0 108px !important;
  width: 108px !important;
  min-width: 108px !important;
}

.invoice-toolbar .thin-select-trigger {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}

.invoice-toolbar .redemption-export {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-color: #c5d8f6 !important;
  border-radius: 7px !important;
}

.invoice-filter-reset {
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #1671f5 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 34px !important;
}

.invoice-modern-batch {
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #e6eef8 !important;
  border-radius: 0 !important;
  background: #fbfdff !important;
  color: #243654 !important;
  font-size: 12px !important;
}

.invoice-modern-batch select,
.invoice-modern-batch button {
  min-height: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-modern-table {
  overflow-x: auto !important;
  border: 0 !important;
}

.invoice-modern-table table {
  min-width: 1140px !important;
  table-layout: fixed !important;
}

.invoice-modern-table th,
.invoice-modern-table td {
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-modern-table th {
  height: 42px !important;
  color: #132440 !important;
  font-weight: 500 !important;
}

.invoice-modern-table td {
  height: 62px !important;
  color: #213653 !important;
  line-height: 1.28 !important;
}

.invoice-modern-table .cell-stack {
  gap: 3px !important;
}

.invoice-modern-table strong,
.invoice-modern-table .money-value {
  font-weight: 500 !important;
}

.invoice-modern-table .muted,
.invoice-modern-table .pill {
  font-size: 11px !important;
  font-weight: 400 !important;
}

.invoice-modern-table th:nth-child(1),
.invoice-modern-table td:nth-child(1) { width: 44px !important; }
.invoice-modern-table th:nth-child(2),
.invoice-modern-table td:nth-child(2) { width: 16% !important; }
.invoice-modern-table th:nth-child(3),
.invoice-modern-table td:nth-child(3) { width: 16% !important; }
.invoice-modern-table th:nth-child(4),
.invoice-modern-table td:nth-child(4) { width: 18% !important; }
.invoice-modern-table th:nth-child(5),
.invoice-modern-table td:nth-child(5) { width: 8% !important; }
.invoice-modern-table th:nth-child(6),
.invoice-modern-table td:nth-child(6) { width: 10% !important; }
.invoice-modern-table th:nth-child(7),
.invoice-modern-table td:nth-child(7) { width: 23% !important; }
.invoice-modern-table th:nth-child(8),
.invoice-modern-table td:nth-child(8) { width: 7% !important; }

.invoice-modern-table .invoice-fields {
  grid-template-columns: minmax(82px, 1fr) minmax(72px, .8fr) !important;
  gap: 5px !important;
  min-width: 210px !important;
}

.invoice-modern-table .invoice-fields input,
.invoice-modern-table select {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 7px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-modern-table .secondary.compact {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.invoice-modern-summary {
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 0 !important;
  border-top: 1px solid #e6eef8 !important;
  border-radius: 0 !important;
  background: #fff !important;
  font-size: 12px !important;
}

.invoice-modern-summary strong {
  font-size: 13px !important;
  font-weight: 500 !important;
}

@media (max-width: 1320px) {
  .invoice-toolbar .invoice-search,
  .invoice-toolbar .invoice-tabs {
    flex-basis: 100% !important;
    max-width: none !important;
  }

  .invoice-toolbar .invoice-tabs {
    min-width: 0 !important;
    overflow-x: auto !important;
  }

  .invoice-modern-table table {
    min-width: 1040px !important;
  }

  .invoice-date-filter {
    flex: 1 1 300px !important;
    max-width: 360px !important;
  }
}

@media (max-width: 760px) {
  .invoice-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .invoice-date-filter,
  .invoice-toolbar .thin-select-field {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .invoice-date-popover {
    left: 0 !important;
    width: min(430px, calc(100vw - 32px)) !important;
    transform: none !important;
  }
}

/* Invoice child pages: tax ledger, shop library, mapping and match review. */
.invoice-subpage-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.invoice-subpage-kpis .kpi {
  min-height: 92px !important;
  padding: 13px 16px !important;
  border: 1px solid #cfe0f8 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.invoice-subpage-kpis .kpi span:not(.kpi-icon) {
  color: #14233d !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.invoice-subpage-kpis .kpi strong {
  color: #1677ff !important;
  font-family: var(--font-number, system-ui) !important;
  font-size: 28px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

.invoice-subpage-kpis .kpi p {
  margin-top: 4px !important;
  color: #74829a !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-subpage-board {
  overflow: visible !important;
  padding: 0 !important;
  border-color: #d7e5f7 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.invoice-subpage-header {
  min-height: 56px !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid #e6eef8 !important;
}

.invoice-subpage-header h2 {
  margin: 0 !important;
  color: #14233d !important;
  font-size: 16px !important;
  font-weight: 650 !important;
}

.invoice-subpage-header p {
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-subpage-header button,
.invoice-subpage-board .secondary,
.invoice-subpage-board button {
  min-height: 32px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-subpage-tabs {
  padding: 10px 12px 0 !important;
}

.invoice-subpage-tabs .invoice-tabs {
  display: inline-flex !important;
  width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.invoice-subpage-tabs .invoice-tabs button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 9px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid #e3edf9 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #172846 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 32px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.invoice-subpage-tabs .invoice-tabs button:last-child {
  border-right: 0 !important;
}

.invoice-subpage-tabs .invoice-tabs button.active {
  background: #edf5ff !important;
  color: #1671f5 !important;
  font-weight: 500 !important;
}

.invoice-subpage-import,
.invoice-subpage-native-filters,
.invoice-subpage-filters .list-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #e6eef8 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.invoice-subpage-import label,
.invoice-subpage-native-filters label,
.invoice-subpage-filters .list-filter-field {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.invoice-subpage-import label span,
.invoice-subpage-native-filters label span,
.invoice-subpage-filters .list-filter-field > span {
  color: #71809a !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

.invoice-subpage-import input,
.invoice-subpage-native-filters input,
.invoice-subpage-native-filters select,
.invoice-subpage-filters input,
.invoice-subpage-filters select,
.invoice-subpage-filters .date-range-control select,
.invoice-subpage-filters .date-range-control input {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 9px !important;
  border: 1px solid #c5d8f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #14233d !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 34px !important;
}

.invoice-subpage-filters .list-filter-date-range {
  flex: 1 1 350px !important;
}

.invoice-subpage-filters .date-range-control {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.invoice-subpage-filters .date-range-control select {
  width: 78px !important;
}

.invoice-subpage-filters .date-month-input {
  width: 128px !important;
}

.invoice-subpage-filters .date-custom-input {
  width: 118px !important;
}

.invoice-subpage-filters .list-filter-search,
.invoice-subpage-native-filters label:nth-of-type(2) {
  flex: 1 1 260px !important;
}

.invoice-subpage-filters .list-filter-select,
.invoice-subpage-filters .list-filter-page-size,
.invoice-subpage-native-filters label:nth-of-type(1) {
  flex: 0 0 126px !important;
}

.invoice-subpage-filters .list-toolbar-count,
.invoice-subpage-native-filters .pill {
  height: 30px !important;
  min-height: 30px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 30px !important;
}

.invoice-subpage-import label {
  flex: 1 1 260px !important;
}

.invoice-subpage-import button,
.invoice-subpage-native-filters button,
.invoice-subpage-filters [data-list-reset] {
  height: 34px !important;
  min-height: 34px !important;
  align-self: end !important;
}

.invoice-subpage-board .mapping-note {
  margin: 0 !important;
  padding: 10px 14px 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-subpage-table {
  overflow-x: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.invoice-subpage-table table {
  min-width: 980px !important;
  table-layout: fixed !important;
}

.invoice-subpage-table th,
.invoice-subpage-table td {
  padding: 8px 9px !important;
  color: #213653 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}

.invoice-subpage-table th {
  height: 42px !important;
  color: #132440 !important;
  font-weight: 500 !important;
}

.invoice-subpage-table td {
  height: 58px !important;
}

.invoice-subpage-table strong,
.invoice-subpage-table .money-value {
  font-weight: 500 !important;
}

.invoice-subpage-table .muted,
.invoice-subpage-table .pill {
  font-size: 11px !important;
  font-weight: 400 !important;
}

.invoice-subpage-table .cell-stack {
  gap: 3px !important;
}

.tax-invoice-table th:nth-child(1),
.tax-invoice-table td:nth-child(1) { width: 17% !important; }
.tax-invoice-table th:nth-child(2),
.tax-invoice-table td:nth-child(2) { width: 23% !important; }
.tax-invoice-table th:nth-child(3),
.tax-invoice-table td:nth-child(3) { width: 15% !important; }
.tax-invoice-table th:nth-child(4),
.tax-invoice-table td:nth-child(4) { width: 13% !important; }
.tax-invoice-table th:nth-child(5),
.tax-invoice-table td:nth-child(5) { width: 22% !important; }
.tax-invoice-table th:nth-child(6),
.tax-invoice-table td:nth-child(6) { width: 10% !important; }

.tax-shop-library-table th:nth-child(1),
.tax-shop-library-table td:nth-child(1) { width: 24% !important; }
.tax-shop-library-table th:nth-child(2),
.tax-shop-library-table td:nth-child(2) { width: 10% !important; }
.tax-shop-library-table th:nth-child(3),
.tax-shop-library-table td:nth-child(3) { width: 18% !important; }
.tax-shop-library-table th:nth-child(4),
.tax-shop-library-table td:nth-child(4) { width: 15% !important; }
.tax-shop-library-table th:nth-child(5),
.tax-shop-library-table td:nth-child(5) { width: 15% !important; }
.tax-shop-library-table th:nth-child(6),
.tax-shop-library-table td:nth-child(6) { width: 18% !important; }

.tax-mapping-table th:nth-child(1),
.tax-mapping-table td:nth-child(1) { width: 24% !important; }
.tax-mapping-table th:nth-child(2),
.tax-mapping-table td:nth-child(2) { width: 20% !important; }
.tax-mapping-table th:nth-child(3),
.tax-mapping-table td:nth-child(3) { width: 18% !important; }
.tax-mapping-table th:nth-child(4),
.tax-mapping-table td:nth-child(4) { width: 38% !important; }

.tax-match-table th:nth-child(1),
.tax-match-table td:nth-child(1) { width: 24% !important; }
.tax-match-table th:nth-child(2),
.tax-match-table td:nth-child(2) { width: 24% !important; }
.tax-match-table th:nth-child(3),
.tax-match-table td:nth-child(3) { width: 17% !important; }
.tax-match-table th:nth-child(4),
.tax-match-table td:nth-child(4) { width: 20% !important; }
.tax-match-table th:nth-child(5),
.tax-match-table td:nth-child(5) { width: 15% !important; }

.invoice-subpage-table .mapping-edit-grid {
  display: grid !important;
  grid-template-columns: 86px minmax(120px, 1fr) minmax(110px, .8fr) 64px !important;
  gap: 6px !important;
  align-items: center !important;
}

.invoice-subpage-table .mapping-edit-grid input,
.invoice-subpage-table .mapping-edit-grid select {
  height: 30px !important;
  min-height: 30px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.invoice-subpage-board > .pagination {
  margin: 0 !important;
  padding: 10px 12px !important;
  border-top: 1px solid #e6eef8 !important;
}

@media (max-width: 1320px) {
  .invoice-subpage-table table {
    min-width: 920px !important;
  }

  .invoice-subpage-tabs .invoice-tabs {
    overflow-x: auto !important;
  }
}

@media (max-width: 760px) {
  .invoice-subpage-kpis {
    grid-template-columns: 1fr !important;
  }

  .invoice-subpage-filters .list-filter-field,
  .invoice-subpage-native-filters label,
  .invoice-subpage-import label {
    flex-basis: 100% !important;
  }

  .invoice-subpage-table .mapping-edit-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Taobao invoice compact typography: keep this page aligned with dense ERP tables. */
.invoice-dashboard,
.invoice-dashboard button,
.invoice-dashboard input,
.invoice-dashboard select,
.invoice-dashboard textarea,
.invoice-subpage-board,
.invoice-subpage-board button,
.invoice-subpage-board input,
.invoice-subpage-board select,
.invoice-subpage-board textarea {
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.invoice-dashboard .page-head h1,
.invoice-subpage-board .page-head h1 {
  font-size: 20px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.invoice-kpi-grid .redemption-kpi-card {
  min-height: 78px !important;
  padding: 12px 14px !important;
}

.invoice-kpi-grid .redemption-kpi-card .redemption-kpi-icon {
  width: 40px !important;
  height: 40px !important;
}

.invoice-kpi-grid .redemption-kpi-card span,
.invoice-kpi-grid .redemption-kpi-card p {
  font-size: 11px !important;
  font-weight: 400 !important;
}

.invoice-kpi-grid .redemption-kpi-card strong,
.invoice-kpi-grid .redemption-kpi-card.teal strong {
  font-size: 24px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

.invoice-toolbar {
  min-height: 50px !important;
  padding: 8px 10px !important;
  gap: 7px !important;
}

.invoice-toolbar .invoice-search,
.invoice-date-trigger,
.invoice-toolbar .thin-select-trigger,
.invoice-filter-reset,
.invoice-toolbar .redemption-export {
  height: 30px !important;
  min-height: 30px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 30px !important;
}

.invoice-toolbar .invoice-search {
  flex-basis: 230px !important;
  min-width: 190px !important;
  max-width: 300px !important;
}

.invoice-toolbar .invoice-search input,
.invoice-toolbar .invoice-search input::placeholder {
  font-size: 11px !important;
  font-weight: 400 !important;
}

.invoice-toolbar .invoice-tabs {
  height: 30px !important;
  min-width: 330px !important;
}

.invoice-toolbar .invoice-tabs button {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 7px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 28px !important;
}

.invoice-toolbar .invoice-tabs button.active {
  font-weight: 500 !important;
}

.invoice-date-picker {
  flex-basis: 300px !important;
  width: 300px !important;
}

.invoice-toolbar .thin-select-field {
  flex-basis: 96px !important;
  width: 96px !important;
  min-width: 96px !important;
}

.invoice-toolbar .redemption-export {
  flex-basis: 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
}

.invoice-filter-reset {
  flex-basis: 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
}

.invoice-modern-batch {
  padding: 7px 10px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.invoice-modern-batch .pill,
.invoice-modern-batch .checkbox-line,
.invoice-modern-batch select,
.invoice-modern-batch button {
  min-height: 28px !important;
  height: 28px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

.invoice-modern-table table {
  min-width: 1080px !important;
}

.invoice-modern-table th,
.invoice-modern-table td {
  padding: 6px 7px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.26 !important;
}

.invoice-modern-table th {
  height: 34px !important;
  font-weight: 500 !important;
}

.invoice-modern-table td {
  height: 52px !important;
}

.invoice-modern-table strong,
.invoice-modern-table .money-value {
  font-size: 11px !important;
  font-weight: 500 !important;
}

.invoice-modern-table .muted,
.invoice-modern-table .pill,
.invoice-modern-table .platform-order-link {
  font-size: 10px !important;
  font-weight: 400 !important;
}

.invoice-modern-table .invoice-fields {
  grid-template-columns: minmax(76px, 1fr) minmax(66px, .8fr) !important;
  min-width: 190px !important;
  gap: 4px !important;
}

.invoice-modern-table .invoice-fields input,
.invoice-modern-table select,
.invoice-modern-table .secondary.compact {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 6px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}

.invoice-modern-summary {
  padding: 9px 10px !important;
  font-size: 11px !important;
}

.invoice-modern-summary strong {
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Purchase verification typography normalization. */
.purchase-verify-page,
.purchase-verify-page button,
.purchase-verify-page input,
.purchase-verify-page select {
  font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.purchase-verify-page .muted,
.purchase-verify-page small,
.purchase-table-muted,
.purchase-table-stack small,
.purchase-inspector-compare-head div,
.purchase-compare-grid span,
.purchase-compare-grid small,
.purchase-inspector-note,
.purchase-verify-table-panel .pagination .muted {
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.purchase-verify-toolbar .purchase-verify-search input,
.purchase-verify-result-tabs button,
.purchase-verify-toolbar .month-picker-trigger,
.purchase-verify-toolbar .thin-select-trigger,
.purchase-verify-export,
.purchase-verify-table th,
.purchase-verify-table td,
.purchase-table-order,
.purchase-table-stack > span,
.purchase-table-action,
.purchase-inspector-title em,
.purchase-verify-table .platform-order-number {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}

.purchase-verify-table th {
  font-weight: 500 !important;
}

.purchase-verify-result-tabs b,
.purchase-table-order,
.purchase-table-stack > span,
.purchase-compare-grid strong,
.purchase-inspector-title em,
.purchase-table-action {
  font-weight: 500 !important;
}

.purchase-verify-metric p,
.purchase-compare-card h4 {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.purchase-verify-metric small {
  font-size: 11px !important;
  font-weight: 400 !important;
}

.purchase-verify-metric strong {
  font-size: 22px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

.purchase-inspector-head h2,
.purchase-inspector-compare-head h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.purchase-inspector-title strong {
  font-family: var(--font-code, Consolas, "SFMono-Regular", monospace) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.purchase-inspector-title span {
  margin-top: 4px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

.purchase-compare-grid strong {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.purchase-inspector-tools button {
  font-size: 14px !important;
  font-weight: 400 !important;
}

.purchase-inspector-actions button,
.purchase-inspector-actions .pill {
  min-height: 36px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.purchase-verify-table-panel .pagination button,
.purchase-verify-table-panel .pagination .pill {
  font-size: 12px !important;
  font-weight: 400 !important;
}

.purchase-verify-table .platform-logo-badge {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}

/* Keep shared filter popovers visible across compact list pages. */
.redemption-board,
.physical-pickup-board,
.purchase-verify-board,
.invoice-board,
.invoice-subpage-board {
  overflow: visible !important;
}

.redemption-toolbar,
.physical-pickup-toolbar,
.purchase-verify-toolbar,
.invoice-toolbar,
.invoice-subpage-filters .list-toolbar,
.invoice-subpage-native-filters {
  position: relative !important;
  z-index: 70 !important;
  overflow: visible !important;
}

.redemption-month.month-picker-field,
.thin-select-field {
  position: relative !important;
  z-index: 80 !important;
}

.redemption-month.month-picker-field.open,
.thin-select-field.open {
  z-index: 2600 !important;
}

.month-picker-popover,
.thin-select-popover {
  z-index: 3000 !important;
}

.redemption-modern-table,
.physical-pickup-modern-table,
.purchase-verify-table-wrap,
.invoice-modern-table,
.invoice-subpage-table {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.taobao-mapping-page {
  display: grid;
  gap: 14px;
}

.taobao-mapping-title {
  margin-bottom: 0;
}

.taobao-mapping-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.taobao-mapping-summary article {
  min-height: 96px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.taobao-mapping-summary span {
  display: block;
  color: #4f6382;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.taobao-mapping-summary strong {
  display: block;
  color: #1769e8;
  font-size: 30px;
  line-height: 1;
}

.taobao-mapping-summary small {
  display: block;
  margin-top: 8px;
  color: #71809a;
  font-size: 12px;
}

.taobao-mapping-add {
  margin-bottom: 0;
  align-items: end;
}

.taobao-mapping-add input,
.taobao-mapping-table textarea {
  width: 100%;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

.taobao-mapping-add input {
  min-height: 36px;
}

.taobao-mapping-table-card {
  overflow: hidden;
  padding: 0;
}

.taobao-mapping-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.taobao-mapping-table th,
.taobao-mapping-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5edf8;
  vertical-align: top;
  text-align: left;
}

.taobao-mapping-table th {
  background: #f7faff;
  color: #4f6382;
  font-size: 13px;
  font-weight: 800;
}

.taobao-mapping-table th:nth-child(1) {
  width: 190px;
}

.taobao-mapping-table th:nth-child(3) {
  width: 32%;
}

.taobao-mapping-table th:nth-child(4) {
  width: 92px;
}

.taobao-mapping-row:hover {
  background: #f9fbff;
}

.taobao-mapping-account-cell strong {
  display: block;
  color: #10233f;
  font-size: 15px;
}

.taobao-mapping-account-cell span {
  display: block;
  margin-top: 5px;
  color: #71809a;
  font-size: 12px;
}

.taobao-mapping-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.taobao-mapping-chips button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  border: 1px solid #c7dcff;
  border-radius: 7px;
  background: #f1f6ff;
  color: #185abc;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.taobao-mapping-chips button:hover {
  border-color: #91bcff;
  background: #e7f1ff;
}

.taobao-mapping-chips button span {
  color: #f04438;
  font-weight: 900;
}

.taobao-mapping-chips em {
  align-self: center;
  color: #71809a;
  font-size: 12px;
  font-style: normal;
}

.taobao-mapping-table textarea {
  min-height: 54px;
  line-height: 1.5;
  resize: vertical;
  color: #10233f;
}

.taobao-mapping-table textarea:focus,
.taobao-mapping-add input:focus {
  outline: none;
  border-color: #6ea8fe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.taobao-mapping-actions {
  text-align: right;
}

.taobao-mapping-actions button {
  min-width: 64px;
}

@media (max-width: 1100px) {
  .taobao-mapping-summary {
    grid-template-columns: 1fr;
  }

  .taobao-mapping-table {
    min-width: 920px;
  }

  .taobao-mapping-table-card {
    overflow-x: auto;
  }
}

/* Customer management compact redesign */
.customer-workspace {
  overflow: hidden;
}

.customer-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.customer-list {
  display: grid;
  gap: 8px;
}

.customer-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.customer-list-item.active {
  border-color: var(--primary);
  background: #eef5ff;
}

.customer-list-main,
.customer-profile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-list-main strong,
.customer-profile-title h3 {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-list-main small,
.customer-list-meta small {
  display: block;
  color: var(--muted);
}

.customer-list-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  flex: 0 0 auto;
}

.customer-list-meta em {
  font-style: normal;
  font-size: 12px;
}

.customer-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #eaf2ff;
  color: var(--primary);
  font-weight: 800;
  object-fit: cover;
}

.customer-avatar.large {
  width: 42px;
  height: 42px;
}

.customer-detail {
  display: grid;
  gap: 10px;
}

.customer-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.customer-detail-head .muted {
  margin: 2px 0 0;
  line-height: 1.45;
}

.customer-block {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.customer-block.compact {
  gap: 7px;
  padding-top: 8px;
}

.customer-block h4 {
  margin: 0;
  font-size: 14px;
}

.customer-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.customer-mini-kpis.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.customer-mini-kpis > div {
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.customer-mini-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.customer-mini-kpis b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-member-card,
.customer-action-log,
.customer-row {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.customer-member-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.customer-member-card:first-child,
.customer-action-log:first-child,
.customer-row:first-child {
  border-top: 0;
}

.customer-member-card small,
.customer-action-log small,
.customer-row small {
  color: var(--muted);
}

.customer-action-form,
.customer-inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.customer-action-form.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.customer-action-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.customer-action-form label span {
  font-weight: 700;
}

.customer-action-form .wide,
.customer-action-form button.wide {
  grid-column: 1 / -1;
}

.customer-action-form .hidden {
  display: none;
}

.customer-action-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.customer-action-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.customer-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.customer-add-uid-form {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #d8e3f4;
}

.customer-action-form input,
.customer-action-form select,
.customer-inline-form input {
  min-width: 0;
}

.customer-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-record-column {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.customer-record-title {
  margin-bottom: 4px;
  font-weight: 800;
}

.customer-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.customer-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-row small {
  grid-column: 1 / -1;
}

.customer-action-log {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.customer-action-log b,
.customer-action-log small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-action-log time {
  color: var(--muted);
  font-size: 12px;
}

.customer-action-log-panel {
  display: grid;
  gap: 12px;
}

.customer-action-log-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.customer-action-log-head,
.customer-action-log-row {
  display: grid;
  grid-template-columns: 140px 110px 180px minmax(220px, 1fr) 90px minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.customer-action-log-head {
  background: #f6f9fd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-action-log-row {
  border-top: 1px solid var(--line);
}

.customer-action-log-row:first-of-type {
  border-top: 0;
}

.customer-action-log-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-action-log-row time,
.customer-action-log-row small {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .customer-split {
    grid-template-columns: 1fr;
  }

  .customer-mini-kpis.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .customer-record-grid,
  .customer-action-form {
    grid-template-columns: 1fr;
  }

  .customer-mini-kpis,
  .customer-mini-kpis.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-action-log-head {
    display: none;
  }

  .customer-action-log-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .customer-action-log-row > * {
    white-space: normal;
  }
}

/* Customer management aligned with the gift-redemption command-table style. */
.customer-workspace,
.customer-action-log-panel {
  border: 1px solid #d8e3f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 39, 78, 0.06);
}

.customer-workspace .panel-header,
.customer-action-log-panel .panel-header {
  min-height: 46px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5edf8;
}

.customer-workspace .panel-header h2,
.customer-action-log-panel .panel-header h2 {
  font-size: 18px;
}

.customer-workspace .list-toolbar {
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e5edf8;
  border-radius: 0;
  background: #f8fbff;
}

.customer-split {
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  gap: 0;
  padding: 0;
}

.customer-list {
  gap: 0;
  min-height: 520px;
  border-right: 1px solid #e5edf8;
  background: #fff;
}

.customer-list-item {
  min-height: 72px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #e5edf8;
  border-radius: 0;
  box-shadow: none;
}

.customer-list-item:hover {
  background: #f8fbff;
}

.customer-list-item.active {
  border-color: #e5edf8;
  border-left: 3px solid #2563eb;
  background: #eef5ff;
}

.customer-list-main strong {
  font-size: 14px;
}

.customer-list-main small,
.customer-list-meta small {
  font-size: 12px;
}

.customer-list-meta b {
  font-size: 15px;
}

.vip-badge-img {
  width: 74px;
  height: 24px;
  vertical-align: middle;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d0d9e8;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.customer-list-meta em,
.customer-action-log-row .pill,
.customer-detail .pill {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #b7ebd1;
  background: #ecfdf3;
  color: #067647;
  font-size: 12px;
  font-weight: 700;
}

.customer-list-meta em.warn,
.customer-action-log-row .pill.warn {
  border-color: #ffd59a;
  background: #fff8ed;
  color: #925c12;
}

.customer-detail.panel-soft {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.customer-detail {
  gap: 0;
}

.customer-detail-head {
  padding: 14px 16px;
  border-bottom: 1px solid #e5edf8;
}

.customer-block {
  padding: 12px 16px;
  border-top: 0;
  border-bottom: 1px solid #e5edf8;
}

.customer-block h4 {
  font-size: 15px;
}

.customer-mini-kpis > div,
.customer-record-column {
  border-color: #d8e3f4;
  background: #f8fbff;
}

.customer-action-form.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.customer-action-form .wide {
  grid-column: span 2;
}

.customer-action-form button.wide {
  grid-column: 1 / -1;
}

.customer-action-log-panel {
  padding: 0;
}

.customer-action-log-table {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.customer-action-log-head,
.customer-action-log-row {
  grid-template-columns: 140px 110px 190px minmax(240px, 1fr) 92px minmax(180px, 1fr);
  min-height: 48px;
  padding: 9px 14px;
}

.customer-action-log-head {
  border-bottom: 1px solid #e5edf8;
  background: #f6f9fd;
}

.customer-action-log-row {
  border-top: 0;
  border-bottom: 1px solid #edf2fa;
}

.customer-action-log-row:hover {
  background: #f8fbff;
}

.customer-workspace .pagination,
.customer-action-log-panel .pagination {
  padding: 12px 14px;
  border-top: 1px solid #e5edf8;
  background: #fff;
}

@media (max-width: 1100px) {
  .customer-split {
    grid-template-columns: 1fr;
  }

  .customer-list {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5edf8;
  }
}

@media (max-width: 760px) {
  .customer-workspace .list-toolbar {
    padding: 10px;
  }

  .customer-action-form.compact {
    grid-template-columns: 1fr;
  }

  .customer-action-form .wide {
    grid-column: 1 / -1;
  }
}
