/* Finance and order detail share the visual tokens used in the console. */
:is(#finance, .order-detail) {
  --ls-billing-ink: #18345a;
  --ls-billing-muted: #526984;
  --ls-billing-line: #dce7f5;
  --ls-billing-shadow: 0 8px 24px rgba(28, 63, 118, .07);
}

#finance .finance .finance-top .finance-title,
.order-detail .page-top .top-title {
  color: var(--ls-billing-ink);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 650;
}

#finance .finance .finance-top .finance-money-main,
.order-detail .page-content > .order-info {
  border: 1px solid #cddff6;
  border-radius: 16px;
  background: linear-gradient(112deg, #f8fbff, #e9f3ff 68%, #d7e7ff);
  box-shadow: var(--ls-billing-shadow);
}

#finance .finance .finance-top .finance-money-main .finance-balance .balance-left .balance-left-title {
  color: var(--ls-billing-muted);
}

#finance .finance .finance-top .finance-money-main .finance-balance .balance-left .balance-left-num {
  color: var(--ls-billing-ink);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 650;
}

#finance .finance .finance-top .finance-money-main .finance-other-money {
  gap: 10px;
  border-color: #d7e5f7;
}

#finance .finance .finance-top .finance-money-main .finance-other-money > .other-money-item,
#finance .finance .finance-top .finance-money-main .finance-other-money > .other-money-item:last-child {
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #d7e5f7;
  border-radius: 8px;
  background: rgba(255, 255, 255, .75);
}

#finance .finance .finance-top .finance-money-main .finance-other-money .other-money-item-title {
  color: var(--ls-billing-muted);
}

#finance .finance .balance-right .el-button {
  border-radius: 8px;
}

#finance .finance .content_box {
  border-color: var(--ls-billing-line);
  border-radius: 14px;
  box-shadow: var(--ls-billing-shadow);
}

#finance .content_tab > .el-tabs > .el-tabs__header {
  border-radius: 13px 13px 0 0;
  background: linear-gradient(#fff, #f5f9ff);
}

#finance .content_tab > .el-tabs > .el-tabs__header .el-tabs__item:is(.is-active, :hover) {
  color: #1e56b5;
}

#finance .content_tab > .el-tabs > .el-tabs__header .el-tabs__item.is-active {
  font-weight: 650;
}

#finance .content_searchbar .el-input__inner,
#finance .content_searchbar .left_tips .el-button,
#finance .mob-tabledata-item {
  border-radius: 8px;
}

#finance .content_table .el-table th.el-table__cell {
  background: #edf4ff;
  color: #36567f;
}

#finance .content_table .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell,
#finance .content_table .el-table__body tr.hover-row > td.el-table__cell {
  background-color: #eef5ff;
}

.order-detail .page-top {
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-color: var(--ls-billing-line);
}

.order-detail .page-top .back-btn {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ls-billing-line);
  border-radius: 9px;
  background: #f5f9ff;
}

.order-detail .page-top .back-btn:hover {
  border-color: #a9c6f3;
  background: #e8f2ff;
}

.order-detail .page-top .back-btn .icon {
  width: 19px;
  height: 19px;
}

.order-detail .page-top .top-title {
  margin-left: 0;
}

.order-detail .page-content > .order-info {
  gap: 16px;
  flex-wrap: wrap;
  padding: clamp(16px, 3vw, 28px);
}

.order-detail .order-info .info-left,
.order-detail .order-info .info-right {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.order-detail .order-info .info-left .order-user {
  color: var(--ls-billing-ink);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 650;
}

.order-detail .order-info .order-num .num-text,
.order-detail .order-info .info-right .go-pay .pay-info {
  color: var(--ls-billing-muted);
  font-weight: 500;
}

.order-detail .order-info .pay-status {
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
}

.order-detail .order-info .Paid-text { color: #1b694e; background: #dff3e9; }
.order-detail .order-info .Unpaid-text,
.order-detail .order-info .Unpaid { color: #973b32; background: #fde9e7; }
.order-detail .order-info .Wait { color: #80520e; background: #fff1d7; }
.order-detail .order-info .Refunded-text { color: #52617a; background: #e8edf5; }

.order-detail .order-info .info-right .go-pay .pay-text {
  padding: 9px 14px;
  border-radius: 8px;
  background: #255fcf;
  color: #fff;
}

.order-detail .order-info .info-right .go-pay .pay-text:hover {
  background: #174aa9;
  text-decoration: none;
}

.order-detail .page-content > :is(.order-table, .order-transaction, .self-field:has(.self-num)) {
  min-width: 0;
  margin-top: 16px;
  border: 1px solid var(--ls-billing-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ls-billing-shadow);
}

.order-detail .self-field:has(.self-num) {
  padding: 14px 18px;
}

.order-detail .self-field .self-num {
  flex-wrap: wrap;
}

.order-detail .self-field .self-num .self-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.order-detail .order-table .table-title,
.order-detail .order-transaction .table-top {
  border-radius: 13px 13px 0 0;
  background: #edf4ff;
  color: var(--ls-billing-ink);
  font-weight: 650;
}

.order-detail .order-table .table-item {
  gap: 12px;
  padding: 6px 0;
}

.order-detail .order-table .table-item .des-text {
  min-width: 0;
  margin-right: 0;
  overflow-wrap: anywhere;
}

.order-detail .order-table .money-text,
.order-detail .order-transaction .text-r {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.order-detail .order-table .table-content > .table-item:last-child {
  margin: 0;
  padding: 10px 18px;
  border-radius: 0 0 13px 13px;
  background: #f5f9ff;
}

.order-detail .order-table .table-content > .table-item:last-child .money-text {
  color: #184eaa;
  font-size: 18px;
  font-weight: 650;
}

.order-detail .order-transaction :is(.table-top, .table-bottom) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr) minmax(0, .8fr);
  gap: 8px;
}

.order-detail .order-transaction :is(.w-200, .flex-1) {
  width: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-detail .order-transaction :is(.table-bottom, .no-list):last-child {
  border-bottom: 0;
}

.order-detail .down-pag {
  margin-top: 24px;
}

.order-detail .down-pag .el-button {
  height: auto;
  min-height: 38px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .order-detail .order-info .info-right {
    align-items: flex-start;
  }

  .order-detail .order-info .info-right .go-pay {
    text-align: left;
  }

  .order-detail .order-transaction :is(.table-top, .table-bottom) {
    gap: 5px;
    padding: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #finance .finance .finance-top .finance-title {
    width: fit-content;
  }

  #finance .finance .finance-top .finance-title,
  .order-detail .page-top .top-title {
    animation: ls-billing-title-in 580ms cubic-bezier(.24,.65,.25,1);
  }

  #finance .finance .finance-top .finance-money-main,
  .order-detail .down-pag {
    animation: ls-billing-panel-in 420ms ease-out 80ms backwards;
  }

  #finance .finance .finance-top .finance-money-main:focus-within,
  .order-detail .down-pag:focus-within {
    animation: none;
  }

  @keyframes ls-billing-title-in {
    from { clip-path: inset(-5px 100% -5px 0); }
    to { clip-path: inset(-5px 0 -5px 0); }
  }

  @keyframes ls-billing-panel-in {
    from { opacity: .45; translate: 0 9px; }
    to { opacity: 1; translate: 0 0; }
  }
}
