/* ============================================================
   财务中心（对齐盒子云主题口径）
   底色 #F6F9FD／白面板直角／标题 22-24px／余额 28px 蓝
   表格：表头 #F7F8FC、行高 47px、边框 #E5E6EB
   主色 #0052D9；正文 #4E5969；标题 #1D2129
   本文件为覆盖层，需在 finance.css、voucher.css 之后加载
   ============================================================ */

/* ---------- 页面外壳 ---------- */
#finance .finance.main-card,
#finance .main-card {
  background: #F6F9FD;
  padding: 20px;
  box-sizing: border-box;
  font-family: PingFang SC, "Microsoft YaHei", Arial, sans-serif;
}

/* ---------- 顶部（标题 + 余额）白面板 ---------- */
#finance .top {
  height: auto;
  padding: 22px 24px;
  margin: 0 0 15px;
  background: #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
  box-sizing: border-box;
}

#finance .top-l {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  color: #1D2129;
}

#finance .top-l > img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

#finance .top-r {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

/* 可用余额 */
#finance .item-balance {
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#finance .money {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
  color: #4E5969;
}

#finance .money-num {
  text-align: left;
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  color: #0052D9;
  font-variant-numeric: tabular-nums;
}

#finance .money-num > .text {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: #8692B0;
}

#finance .btn-cz,
#finance .btn-tx {
  flex: none;
  height: 32px;
  margin-left: 12px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 30px;
  box-sizing: border-box;
}

#finance .btn-cz {
  color: #0052D9;
  background: #fff;
  border: 1px solid #0052D9;
}

#finance .btn-tx {
  color: #fff;
  background: #0052D9;
  border: 1px solid #0052D9;
}

#finance .money .tx-list {
  margin-left: 14px;
  font-size: 14px;
  font-weight: 400;
  color: #0052D9;
}

/* 未入账金额 */
#finance .item-unbalance {
  display: flex;
  flex-direction: column;
}

#finance .item-unbalance .money {
  font-size: 22px;
  font-weight: 600;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
}

#finance .item-unbalance > .text {
  flex-direction: row;
  margin-top: 6px;
  font-size: 13px;
  color: #8692B0;
}

/* ---------- 内容白面板 ---------- */
#finance .content_box {
  background: #fff;
  padding: 0 24px 24px;
  box-sizing: border-box;
}

#finance .el-tabs__header {
  margin: 0 0 18px;
}

#finance .el-tabs__nav-wrap::after {
  height: 1px;
  background: #E5E6EB;
}

#finance .el-tabs__nav {
  border: 0;
}

#finance .el-tabs__item {
  height: 52px;
  line-height: 52px;
  padding: 0 20px;
  font-size: 15px;
  color: #4E5969;
}

#finance .el-tabs__item:hover {
  color: #0052D9;
}

#finance .el-tabs__item.is-active {
  color: #0052D9;
  font-weight: 600;
}

#finance .el-tabs__active-bar {
  height: 2px;
  background: #0052D9;
}

#finance .el-tabs__content {
  min-height: 5rem;
}

/* ---------- 工具条 / 图例 ---------- */
#finance .content_searchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

#finance .content_searchbar .left_tips {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #4E5969;
}

#finance .content_searchbar .left_tips .all-pay {
  height: 32px;
  margin-right: 18px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
  background: #0052D9;
  border: 0;
}

#finance .content_searchbar .left_tips .tips_item {
  display: flex;
  align-items: center;
  margin-right: 20px;
  font-size: 14px;
  color: #4E5969;
  white-space: nowrap;
}

#finance .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
}

/* 搜索框统一 32 高 */
#finance .com-search .el-input {
  width: 260px !important;
}

#finance .com-search .el-input__inner {
  height: 32px;
  line-height: 32px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  font-size: 14px;
  color: #1D2129;
}

#finance .com-search .el-input__inner:focus {
  border-color: #0052D9;
}

#finance .balance-searchbar .el-date-editor,
#finance .balance-searchbar .el-select {
  height: 32px;
}

#finance .balance-searchbar .el-range-editor.el-input__inner {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  font-size: 14px;
}

#finance .balance-searchbar .el-range-editor .el-range-input {
  font-size: 14px;
}

#finance .balance-searchbar .el-range-editor .el-range-separator {
  line-height: 30px;
  font-size: 14px;
}

#finance .balance-searchbar .el-select .el-input__inner {
  height: 32px;
  line-height: 32px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
}

#finance .balance-searchbar .el-range-input,
#finance .balance-searchbar .el-input__inner {
  font-size: 14px;
}

/* ---------- 表格 ---------- */
#finance .tabledata {
  border: 1px solid #E5E6EB;
  padding-bottom: 0;
  box-sizing: border-box;
}

#finance .el-table {
  font-size: 14px;
  color: #1D2129;
}

#finance .el-table::before,
#finance .el-table::after {
  display: none;
}

#finance .el-table th.el-table__cell {
  height: 46px;
  padding: 0 14px;
  background: #F7F8FC;
  color: #4E5969;
  font-size: 14px;
  font-weight: 400;
}

#finance .el-table td.el-table__cell {
  height: 47px;
  padding: 0 14px;
  border-bottom: 1px solid #F0F1F5;
  color: #1D2129;
}

#finance .el-table__body tr:hover > td.el-table__cell {
  background: #FAFBFF;
}

#finance .el-table__expand-icon {
  position: static;
  margin-right: 6px;
}

#finance .a-text {
  color: #1D2129;
}

#finance .a-text:hover {
  color: #0052D9;
  text-decoration: none;
}

/* 状态标签（未付/已付/已完成） */
#finance .el-tag {
  height: 24px;
  line-height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
}

#finance .el-tag.Unpaid {
  color: #F0142F;
  background: rgba(240, 20, 47, 0.08);
}

#finance .el-tag.Paid {
  color: #00A870;
  background: rgba(0, 168, 112, 0.10);
}

#finance .el-tag.Refunded {
  color: #0052D9;
  background: rgba(0, 82, 217, 0.08);
}

#finance .balance-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 18px;
}

#finance .gateway-pay {
  color: #0052D9;
}

#finance .contract-status {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 18px;
}

#finance .el-icon-more {
  font-size: 16px;
  color: #4E5969;
  cursor: pointer;
}

#finance .el-icon-more:hover {
  color: #0052D9;
}

#finance .operation-item {
  font-size: 14px;
  color: #1D2129;
}

#finance .operation-item:hover {
  color: #0052D9;
}

/* 表格横向滚动条（细条，避免灰块感） */
#finance .el-table__body-wrapper::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

#finance .el-table__body-wrapper::-webkit-scrollbar-thumb {
  background: #DCDFE6;
  border-radius: 3px;
}

#finance .el-table__body-wrapper::-webkit-scrollbar-thumb:hover {
  background: #C6CBD6;
}

#finance .el-table__body-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* 分页 */
#finance .el-pagination {
  padding: 16px 0 4px;
  text-align: right;
}

#finance .el-pagination .btn-prev,
#finance .el-pagination .btn-next,
#finance .el-pagination .el-pager li {
  min-width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  color: #4E5969;
  background: #fff;
}

#finance .el-pagination .el-pager li.active {
  color: #0052D9;
}

/* ---------- 代金券 ---------- */
#finance .voucher {
  padding: 0;
}

#finance .voucher .get-voucher {
  border-radius: 4px;
}

/* ---------- 信用额 ---------- */
#finance .credit-content {
  margin-top: 4px;
}

#finance .credit-content .credit-top {
  display: flex;
  margin-bottom: 20px;
}

#finance .credit-content .credit-top .credit-item {
  margin-left: 16px;
  padding: 22px;
  border: 1px solid #E5E6EB;
  border-radius: 0;
  background: #fff;
}

#finance .credit-content .credit-top .credit-item:nth-of-type(1) {
  margin-left: 0;
}

#finance .credit-content .credit-top .credit-item .item-top {
  color: #4E5969;
  font-size: 14px;
}

#finance .credit-content .credit-top .credit-item .item-top .item-l {
  font-size: 14px;
  font-weight: 500;
}

#finance .credit-content .credit-top .credit-item .item-bottom .item-bl {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
}

#finance .credit-content .credit-top .credit-item .item-top .label-box {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
}

#finance .credit-content .credit-top .credit-item .flex-bottom .credit-btn,
#finance .credit-content .credit-top .credit-item .flex-bottom .no-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 14px;
}

#finance .credit-content .credit-top .credit-item .flex-bottom .credit-btn {
  color: #fff;
  background: #0052D9;
  border: 1px solid #0052D9;
}

#finance .credit-content .credit-top .credit-item .flex-bottom .no-btn {
  color: #4E5969;
  background: #fff;
  border: 1px solid #E5E6EB;
}

#finance .credit-content .credit-operation {
  font-size: 14px;
  color: #0052D9;
}

/* ---------- 订单详情 ---------- */
#finance .main_table {
  margin-top: 16px;
  border: 1px solid #E5E6EB;
  background: #fff;
}

#finance .top-line {
  height: 1px;
  background: #E5E6EB;
}

/* ---------- 弹窗 ---------- */
#finance .el-dialog {
  border-radius: 4px;
}

#finance .el-dialog__header {
  padding: 0;
}

#finance .dialog-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #1D2129;
}

#finance .dialog-dec {
  margin-top: 10px;
  font-size: 14px;
  color: #4E5969;
}

#finance .el-dialog__body {
  padding: 24px;
  font-size: 14px;
}

#finance .el-form-item__label {
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #4E5969;
}

#finance .el-input__inner {
  height: 36px;
  line-height: 36px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  font-size: 14px;
  color: #1D2129;
}

#finance .el-input__inner:focus {
  border-color: #0052D9;
}

#finance .dialog-footer,
#finance .dialog-fotter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

#finance .dialog-footer .el-button,
#finance .dialog-fotter .el-button,
#finance .save-btn,
#finance .cancel-btn,
#finance .btn-ok,
#finance .btn-no {
  height: 36px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
}

#finance .btn-ok,
#finance .save-btn,
#finance .dialog-footer .el-button:first-child {
  color: #fff;
  background: #0052D9;
  border: 1px solid #0052D9;
}

#finance .btn-no,
#finance .cancel-btn,
#finance .dialog-footer .el-button:nth-child(2) {
  color: #4E5969;
  background: #fff;
  border: 1px solid #E5E6EB;
}

#finance .kd-dialog .dialog-box,
#finance .info-dialog .dialog-box,
#finance .mail-dialog .dialog-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #E5E6EB;
}

#finance .kd-item {
  margin-bottom: 8px;
  font-size: 14px;
}

#finance .kd-item .kd-label {
  color: #8692B0;
}

#finance .kd-item .kd-value {
  margin-left: 12px;
  color: #1D2129;
}

#finance .info-dialog .dialog-dec {
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 20px;
  color: #F0142F;
  background: #FDEDEE;
  border-radius: 2px;
}

#finance .delete-box {
  height: auto;
  padding: 28px 24px;
}

#finance .delete-content {
  font-size: 16px;
  color: #1D2129;
}

#finance .delete-btn {
  margin-top: 24px;
}

#finance .delete-btn .confirm-btn,
#finance .delete-btn .cancel-btn {
  width: 96px;
  height: 34px;
  margin: 0 6px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 34px;
}

#finance .delete-btn .confirm-btn {
  color: #fff;
  background: #0052D9;
}

#finance .delete-btn .cancel-btn {
  color: #4E5969;
  background: #fff;
  border: 1px solid #E5E6EB;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 750px) {
  #finance .finance.main-card,
  #finance .main-card {
    padding: 12px;
  }

  #finance .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  #finance .top-l {
    font-size: 18px;
  }

  #finance .top-r {
    margin: 0;
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  #finance .money-num {
    font-size: 24px;
  }

  #finance .content_box {
    padding: 0 12px 16px;
  }

  #finance .el-tabs__item {
    height: 44px;
    line-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  #finance .com-search .el-input {
    width: 100% !important;
    margin-left: 0 !important;
  }

  #finance .content_searchbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  #finance .content_searchbar .left_tips .tips_item {
    margin-right: 12px;
    font-size: 12.5px;
  }

  #finance .credit-content .credit-top {
    flex-direction: column;
    gap: 12px;
  }

  #finance .credit-content .credit-top .credit-item {
    margin-left: 0;
  }
}
