/* Silver V2 finance: all amounts and actions retain their existing API models. */
html.mist-silver #finance .el-table .silver-date-column .cell { white-space: nowrap; word-break: normal; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
html.mist-silver #finance .finance.main-card { overflow: visible; padding: 0; border: 0; background: transparent; box-shadow: none; }
html.mist-silver #finance .finance .finance-top .finance-title { margin-bottom: 18px; padding: 0; border: 0; background: transparent; color: var(--ui-text); font-size: 22px; font-weight: 600; line-height: 30px; }
html.mist-silver #finance .finance .finance-top .finance-money-main { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; min-height: 124px; padding: 22px 24px; border: 1px solid var(--ui-brand); border-radius: var(--ui-radius-card); background: var(--ui-brand); color: var(--ui-on-brand); box-sizing: border-box; }
html.mist-silver #finance .finance .finance-top .finance-money-main .finance-balance { flex: 1 1 320px; align-items: center; gap: 28px; }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-left .balance-left-title { color: var(--ui-on-brand-muted); font-size: 12px; line-height: 20px; }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-left .balance-left-title .balance-title-num { color: var(--ui-on-brand); }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-left .balance-left-num { margin-top: 9px; color: var(--ui-on-brand); font-size: 31px; font-weight: 500; line-height: 38px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-left .balance-left-num .prefix { font-size: 17px; }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-right { flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-right .el-button { min-width: 70px; height: 34px; margin: 0; padding: 0 14px; border: 1px solid var(--ui-panel); border-radius: var(--ui-radius-control, 5px); background: var(--ui-panel); color: var(--ui-brand); font-size: 13px; }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-right .balance-tx-btn { border-color: var(--ui-on-brand-muted); background: transparent; color: var(--ui-on-brand); }
html.mist-silver #finance .finance .finance-top .finance-money-main .balance-right .tx-list { color: var(--ui-on-brand-muted); font-size: 12px; }
html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money { flex: 0 1 auto; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0 0 0 28px; border: 0; border-left: 1px solid var(--ui-on-brand-muted); }
html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money .other-money-item { display: grid; gap: 9px; min-width: 100px; padding: 0; border: 0; }
html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money .other-money-item .other-money-item-title { margin: 0; color: var(--ui-on-brand-muted); font-size: 12px; line-height: 20px; }
html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money .other-money-item .other-money-item-value { color: var(--ui-on-brand); font-size: 25px; font-weight: 500; line-height: 32px; font-variant-numeric: tabular-nums; }
html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money .other-money-item .freeze-list { margin-left: 0; color: var(--ui-on-brand-muted); font-size: 12px; }
html.mist-silver #finance .finance .content_box { margin-top: 16px; padding: 0; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-card); background: var(--ui-panel); overflow: hidden; }
html.mist-silver #finance .finance .content_tab > .el-tabs > .el-tabs__header { margin: 0; padding: 0 18px; }
html.mist-silver #finance .finance .content_searchbar { margin: 0; padding: 14px 18px; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
html.mist-silver #finance .finance .content_searchbar .left_tips { flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ui-text-muted); font-size: 12px; line-height: 20px; }
html.mist-silver #finance .finance .com-search { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 0 auto; }
html.mist-silver #finance .finance .tabledata { overflow-x: auto; }
html.mist-silver #finance .finance .tabledata .el-table,
html.mist-silver #finance .finance .mob-tabledata { min-height: 220px; }
html.mist-silver #finance .finance .el-table .cell { font-variant-numeric: tabular-nums; }
html.mist-silver #finance .finance .status-tag,
html.mist-silver #finance .finance .balance-tag { border-radius: var(--ui-radius-status, 4px); font-size: 12px; }
html.mist-silver #finance .finance .el-tag.Unpaid,
html.mist-silver #finance .finance .status-tag.Unpaid { border-color: var(--ui-warning-soft, rgba(149, 100, 35, .12)); background: var(--ui-warning-soft, rgba(149, 100, 35, .08)); color: var(--ui-warning); }
html.mist-silver #finance .finance .el-tag.Paid,
html.mist-silver #finance .finance .status-tag.Paid { border-color: var(--ui-success-soft, rgba(50, 117, 92, .12)); background: var(--ui-success-soft, rgba(50, 117, 92, .08)); color: var(--ui-success); }
html.mist-silver #finance .finance .dot { width: 6px; height: 6px; margin-right: 6px; }
html.mist-silver #finance .finance .mobel { display: none; }

@media (max-width: 1060px) {
  html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money { flex-basis: 100%; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--ui-on-brand-muted); }
}

@media (max-width: 760px) {
  html.mist-silver #finance .finance .finance-top .finance-title { font-size: 21px; line-height: 29px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main { gap: 16px; min-height: 120px; padding: 18px 16px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .finance-balance { flex-basis: 100%; flex-direction: column; align-items: stretch; min-width: 0; gap: 12px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .balance-left .balance-left-title { font-size: 14px; line-height: 22px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .balance-left .balance-left-num { font-size: clamp(24px, 7vw, 31px); white-space: nowrap; overflow-x: auto; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .balance-right { max-width: none; justify-content: flex-start; gap: 8px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .balance-right .el-button,
  html.mist-silver #finance .finance .finance-top .finance-money-main .balance-right .tx-list { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money { padding-top: 16px; gap: 18px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money .other-money-item { flex: 1 1 110px; }
  html.mist-silver #finance .finance .finance-top .finance-money-main .finance-other-money .other-money-item .other-money-item-title { font-size: 14px; line-height: 22px; }
  html.mist-silver #finance .finance .content_tab > .el-tabs > .el-tabs__header { padding: 0 14px; }
  html.mist-silver #finance .finance .content_searchbar { padding: 14px; }
  html.mist-silver #finance .finance .content_searchbar .left_tips { width: 100%; font-size: 14px; }
  html.mist-silver #finance .finance .content_searchbar .tips_item { margin: 0; }
  html.mist-silver #finance .finance .tabledata { display: none; }
  html.mist-silver #finance .finance .com-search { justify-content: flex-start; width: 100%; }
  html.mist-silver #finance .finance .balance-searchbar > .box { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; min-width: 0; }
  html.mist-silver #finance .finance .balance-searchbar > .box > :is(.el-date-editor,.el-select,.el-input) { box-sizing: border-box; width: 100% !important; min-width: 0; margin: 0 !important; }
  html.mist-silver #finance .finance .balance-searchbar .el-date-editor .el-range-input { width: calc(50% - 30px); min-width: 0; }
  /* These widths and margins replace the template's inline desktop rem values. */
  html.mist-silver #finance .finance .com-search > .el-select { flex: 1 1 calc(50% - 4px); width: calc(50% - 4px) !important; min-width: 130px; margin-left: 0 !important; }
  html.mist-silver #finance .finance .com-search > .el-input { flex: 1 0 100%; width: 100% !important; min-width: 0; margin-left: 0 !important; }
  html.mist-silver #finance .finance .mobel { display: block; }
  /* The shared filter toolbar already contains this same keyword field. */
  html.mist-silver #finance .finance .mob-searchbar { display: none; }
  html.mist-silver #finance .finance .mob-tabledata { display: block; margin: 0; border: 0; border-radius: 0; background: var(--ui-panel); }
  html.mist-silver #finance .finance .mob-tabledata .el-empty { min-height: 210px; padding: 26px 0; color: var(--ui-text-muted); }
  html.mist-silver #finance .finance .mob-tabledata-item { padding: 16px 14px; border: 0; border-top: 1px solid var(--ui-border); background: transparent; }
  html.mist-silver #finance .finance .mob-item-row { gap: 12px; margin: 8px 0 0; color: var(--ui-text); font-size: 14px; line-height: 22px; }
  html.mist-silver #finance .finance .mob-item-row1 { margin-top: 0; }
  html.mist-silver #finance .finance .mob-order-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ui-link); font-variant-numeric: tabular-nums; }
  html.mist-silver #finance .finance .mob-item-row1,
  html.mist-silver #finance .finance .mob-item-row3,
  html.mist-silver #finance .finance .mob-item-row-notes { color: var(--ui-text-muted); font-size: 14px; }
  html.mist-silver #finance .finance .mob-item-row2 { align-items: flex-start; }
  html.mist-silver #finance .finance .mob-item-row2-name { flex: 1; width: auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  html.mist-silver #finance .finance .mob-item-row2 > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
  html.mist-silver #finance .finance .mob-item-row-child { margin: 8px 0; border-radius: var(--ui-radius-control, 5px); background: var(--ui-page); }
  html.mist-silver #finance .finance .child-row { gap: 8px; margin: 0; padding: 8px; color: var(--ui-text-muted); font-size: 14px; line-height: 22px; }
  html.mist-silver #finance .finance .child-row-name { flex: 1; width: auto; color: var(--ui-text); white-space: normal; }
  html.mist-silver #finance .finance .gateway-pay { display: inline-flex; align-items: center; min-height: 44px; color: var(--ui-link); }
  html.mist-silver #finance .finance .bottom-text { margin: 18px 0; color: var(--ui-text-muted); font-size: 14px; line-height: 22px; }
}
