html,
body {
  margin: 0;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  margin-top: 0 !important;
  overflow-x: hidden;
}

body .el-button--mini,
body .el-button--small {
  min-width: 42px;
  padding-left: 6px;
  padding-right: 6px;
  white-space: nowrap;
}

body .fixed-width-button {
  width: 60px;
  min-width: 60px;
  max-width: none;
  box-sizing: border-box;
  line-height: 1.2;
}

body .edit-col > .el-button,
body .edit-col > .el-select.fixed-width-button {
  flex: 0 1 auto;
}

body .edit-col > .el-button.fixed-width-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body .small-font-button,
body .small-font-button-mini-plus {
  min-width: 44px;
  line-height: 1.2;
}

body .small-font-select .el-input__inner {
  min-width: 58px;
  box-sizing: border-box;
  padding-left: 6px !important;
  padding-right: 6px !important;
  text-align: center;
}

body .fixed-width-button .el-input,
body .fixed-width-button .el-input__inner {
  width: 100% !important;
}

body .local-main-controls > .fixed-width-button {
  width: 138px !important;
  min-width: 138px !important;
  max-width: 138px !important;
  height: 48px !important;
  line-height: 46px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 0 8px !important;
}

body .local-main-controls > .el-button.fixed-width-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body .local-main-controls > .el-select.fixed-width-button {
  flex: 0 0 138px !important;
}

body .local-main-controls > .el-select.fixed-width-button .el-input__inner {
  width: 138px !important;
  min-width: 138px !important;
  max-width: 138px !important;
  height: 48px !important;
  line-height: 48px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 0 8px !important;
}

body .small-font-input .el-input__inner {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

body .el-table .cell {
  padding-left: 2px;
  padding-right: 2px;
  white-space: nowrap;
}

/* 左下角总单表格：表头/表体统一恢复系统原始字号（均 14px），
   列宽由 JS 保证 ID/号码/投注数/风险值 四列可完整显示 */
#app .local-total-table .el-table__header th .cell {
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

#app .local-total-table .el-table__body td .cell {
  font-size: 14px !important;
  line-height: 1.3 !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

body .el-dialog {
  max-width: 100vw;
}

#app .local-duidang-enhanced .local-duidang-editor {
  min-height: 250px;
  padding: 12px 10px !important;
  color: #606266;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

#app .local-duidang-enhanced .local-duidang-editor p {
  margin: 0 0 2px;
}

#app .local-duidang-enhanced .local-duidang-editor p:empty::before {
  content: "\00a0";
}

body .el-dialog.local-duidang-dialog {
  width: min(680px, 92vw) !important;
  max-width: 92vw !important;
  margin: 4vh auto 0 !important;
}

body .el-dialog.local-duidang-dialog .el-dialog__body {
  overflow-x: hidden !important;
}

body .el-dialog.local-duidang-dialog .local-duidang-input-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 0 4px 10px !important;
  box-sizing: border-box !important;
}

body .el-dialog.local-duidang-dialog .local-duidang-input-row > .el-col,
body .el-dialog.local-duidang-dialog .local-duidang-input-row .edit-col,
body .el-dialog.local-duidang-dialog .local-duidang-control-col {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  float: none !important;
}

body .el-dialog.local-duidang-dialog .local-duidang-input-row .el-input,
body .el-dialog.local-duidang-dialog .local-duidang-order-input {
  flex: 0 0 120px !important;
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

body .el-dialog.local-duidang-dialog .local-duidang-input-row .el-input__inner,
body .el-dialog.local-duidang-dialog .local-duidang-order-input .el-input__inner {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 12px !important;
}

body .el-dialog.local-duidang-dialog .local-duidang-input-row .el-button,
body .el-dialog.local-duidang-dialog .local-duidang-control-button {
  flex: 0 0 auto !important;
  min-width: 58px !important;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 10px !important;
  margin: 0 !important;
}

#app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col {
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 6px 14px !important;
  flex-wrap: nowrap !important;
}

#app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col > .el-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 78px !important;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 12px !important;
  margin: 0 !important;
}

#app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col > .el-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

#app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col > .el-input {
  flex: 1 1 auto !important;
  max-width: 400px !important;
  min-width: 170px !important;
}

#app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col > .el-input .el-input__inner {
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 14px !important;
}

/* 结算/兑奖弹窗（local-huizong-dialog）：开奖号码输入框缩短 */
#app .el-dialog.local-huizong-dialog .el-dialog__body > .el-row:first-child .edit-col > .el-input {
  flex: 0 1 auto !important;
  width: 160px !important;
  max-width: 160px !important;
  min-width: 130px !important;
}

/* 结算/兑奖弹窗：第一行（彩种/自动获取结果/输入框/兑奖）与下方表格同宽居中：
   下方 huizong 表格固定为 720px 且 margin:auto 居中；
   第一行同样限制为 720px（窄屏不超 100%）整体居中，
   行内两个列改为自适应宽度，使整行内容（含彩种显示）作为一个整体水平居中 */
#app .el-dialog.local-huizong-dialog .el-dialog__body > .el-row:first-child {
  width: 720px !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

#app .el-dialog.local-huizong-dialog .el-dialog__body > .el-row:first-child .edit-col {
  flex: 0 0 auto !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

#app .local-update-dialog .el-dialog__body {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#app .local-update-dialog .local-update-toolbar {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  box-sizing: border-box;
}

#app .local-update-dialog .local-update-toolbar .local-update-toolbar-col {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

#app .local-update-dialog .local-update-toolbar .el-button {
  flex: 0 0 auto !important;
  min-width: 92px !important;
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#app .local-update-dialog .local-update-toolbar .el-button:first-child {
  min-width: 92px !important;
}

#app .local-update-dialog .local-update-toolbar .el-button + .el-button {
  min-width: 92px !important;
}

#app .local-update-dialog .local-update-toolbar .el-button span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  line-height: 1 !important;
  white-space: nowrap !important;
  font-size: 14px !important;
}

#app .local-update-dialog .local-update-toolbar .el-input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 150px !important;
  max-width: 420px !important;
  margin: 0 !important;
}

#app .local-update-dialog .local-update-toolbar .el-input__inner {
  width: 100% !important;
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 14px !important;
}

#app .el-dialog.pg .ql-editor {
  color: #606266;
  line-height: 1.42;
}

#app .el-dialog.pg .ql-editor p {
  margin: 0 0 2px;
}

#app .el-dialog.pg .ql-editor p[style*="red"],
#app .el-dialog.pg .ql-editor span[style*="red"] {
  color: red !important;
}

#app .huizong .el-table .cell,
#app .huizong .el-table__body td .cell,
#app .huizong .el-table__header th .cell {
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1.35 !important;
}

#app .huizong .el-table__body td:first-child,
#app .huizong .el-table__body td:first-child .cell {
  min-width: 42px !important;
  text-align: center !important;
}

#app .huizong .el-table__body td:first-child .cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

#app .huizong .el-table__body td:first-child .cell.local-merged-label span {
  display: block !important;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

#app .huizong .el-table__body td:nth-child(2) .cell {
  white-space: nowrap !important;
  overflow: visible !important;
  line-height: 1.5 !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

#app .huizong .el-table__body td:nth-child(2),
#app .huizong .el-table__header th:nth-child(2) {
  vertical-align: middle !important;
}

#app .huizong {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

#app .huizong .el-table,
#app .huizong .el-table__header-wrapper,
#app .huizong .el-table__body-wrapper {
  min-width: 720px !important;
}

#app .huizong .el-table__header,
#app .huizong .el-table__body {
  min-width: 720px !important;
}

#app .huizong .el-table__body-wrapper {
  overflow-x: visible !important;
}

#app .huizong table,
#app .huizong .el-table__header,
#app .huizong .el-table__body {
  table-layout: fixed !important;
}

#app .huizong colgroup col:nth-child(1) {
  width: 28px !important;
}

#app .huizong colgroup col:nth-child(2) {
  width: 92px !important;
}

#app .huizong .el-table__body td:first-child,
#app .huizong .el-table__header th:first-child {
  width: 28px !important;
  min-width: 28px !important;
}

#app .huizong .el-table__body td:nth-child(2),
#app .huizong .el-table__header th:nth-child(2) {
  width: 92px !important;
  min-width: 92px !important;
}

/* === 结算弹窗表格字体优化：前两列加大一致，最后列复制居左放大 === */
#app .huizong .el-table__body td:nth-child(1) .cell,
#app .huizong .el-table__body td:nth-child(2) .cell {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 500 !important;
}

#app .huizong .el-table__header th:nth-child(1) .cell,
#app .huizong .el-table__header th:nth-child(2) .cell {
  font-size: 16px !important;
  line-height: 22px !important;
}

/* 复制列：td + cell + button 多层强制居中 */
#app .huizong .el-table__body td:last-child,
#app .huizong .el-table__header th:last-child {
  text-align: center !important;
}

#app .huizong .el-table__body td:last-child .cell,
#app .huizong .el-table__header th:last-child .cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 16px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#app .huizong .el-table__body td:last-child .el-button {
  font-size: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#app .edit-col[data-v-5644ca81] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  flex-wrap: nowrap;
}

#app .edit-col[data-v-5644ca81] > .el-input {
  flex: 1 1 auto;
  max-width: 320px;
}

#app .edit-col[data-v-5644ca81] > .el-input .el-input__inner {
  height: 44px !important;
  line-height: 44px !important;
  padding-right: 42px !important;
}

#app .edit-col[data-v-5644ca81] > .el-input .el-input__suffix {
  height: 44px !important;
  right: 10px;
  display: flex !important;
  align-items: center !important;
}

#app .edit-col[data-v-5644ca81] > .el-input .el-input__suffix-inner {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
}

#app .edit-col[data-v-5644ca81] > .el-input .el-input__icon {
  width: 20px;
  height: 44px !important;
  line-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#app .edit-col[data-v-5644ca81] > .el-button {
  height: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 0 !important;
}

#app .edit-col[data-v-5644ca81] > .el-button > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#app .el-col[style*="height: 25px"][style*="font-size: 12px"] {
  height: auto !important;
  line-height: 1.7;
  white-space: nowrap !important;
}

#app .el-col[style*="height: 25px"][style*="font-size: 12px"] font:nth-of-type(2) {
  display: inline !important;
  white-space: nowrap;
}

#app .el-col[style*="height: 25px"][style*="font-size: 12px"] font:nth-of-type(2)::before {
  content: "";
  display: none;
}

#app .el-col[style*="height: 25px"][style*="font-size: 12px"] font:nth-of-type(2) + u {
  display: inline !important;
  white-space: nowrap;
}

#app .local-member-line {
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: center;
  line-height: 1.65;
  transform-origin: center center;
}

#app .local-member-line * {
  white-space: nowrap;
}

#app .local-member-line span {
  color: #67c23a;
}

#app .local-member-line b {
  font-weight: 400;
}

#app .local-about-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #333;
}

#app .local-about-box div {
  white-space: nowrap;
}

#app .el-card pre {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 480px) {
  body .local-main-controls > .fixed-width-button,
  body .local-main-controls > .el-select.fixed-width-button .el-input__inner {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
  }

  body .local-main-controls > .el-select.fixed-width-button {
    flex-basis: 118px !important;
  }
}

@media (max-width: 360px) {
  #app .el-col[style*="height: 25px"][style*="font-size: 12px"] {
    font-size: 11px !important;
  }
}

@media (max-width: 300px) {
  #app .el-col[style*="height: 25px"][style*="font-size: 12px"] {
    font-size: 10px !important;
  }
}

body .el-dialog.pg {
  width: min(980px, 94vw) !important;
  max-width: 94vw !important;
  margin: 4vh auto 0 !important;
}

body .el-dialog.pg .el-dialog__body {
  overflow-x: auto !important;
}

@media (max-width: 480px) {
  body .el-dialog.pg {
    width: 100% !important;
    max-width: 100vw !important;
    margin-top: 0 !important;
  }

  body .el-dialog.local-duidang-dialog {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    margin-top: 0 !important;
  }

  body .el-dialog.pg .el-dialog__body {
    padding-left: 4px !important;
    padding-right: 4px !important;
    overflow-x: visible !important;
  }

  body .el-dialog.local-duidang-dialog .el-dialog__body {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  body .el-dialog.local-duidang-dialog .local-duidang-input-row {
    gap: 6px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  body .el-dialog.local-duidang-dialog .local-duidang-input-row .el-input,
  body .el-dialog.local-duidang-dialog .local-duidang-input-row .el-input__inner,
  body .el-dialog.local-duidang-dialog .local-duidang-order-input,
  body .el-dialog.local-duidang-dialog .local-duidang-order-input .el-input__inner {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }

  body .el-dialog.local-duidang-dialog .local-duidang-input-row .el-button,
  body .el-dialog.local-duidang-dialog .local-duidang-control-button {
    min-width: 48px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col {
    gap: 4px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  #app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col > span {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    font-size: 14px !important;
  }

  #app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col > .el-input {
    min-width: 0 !important;
    max-width: none !important;
  }

  #app .el-dialog.pg .el-dialog__body > .el-row:first-child .edit-col > .el-button {
    min-width: 54px !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 8px !important;
  }

  #app .huizong {
    margin-left: 0 !important;
    padding-bottom: 0 !important;
    overflow-x: hidden !important;
  }

  #app .huizong .el-table,
  #app .huizong .el-table__header-wrapper,
  #app .huizong .el-table__body-wrapper,
  #app .huizong .el-table__header,
  #app .huizong .el-table__body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 12px !important;
  }

  #app .huizong .el-table__body-wrapper {
    overflow-x: hidden !important;
  }

  #app .huizong table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  #app .huizong colgroup col:nth-child(1) {
    width: 34px !important;
  }

  #app .huizong colgroup col:nth-child(2) {
    width: 68px !important;
  }

  #app .huizong .el-table .cell {
    padding-left: 1px !important;
    padding-right: 1px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    line-height: 1.25 !important;
  }

  #app .huizong .el-table__body td,
  #app .huizong .el-table__header th {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #app .huizong .el-table__body td:first-child,
  #app .huizong .el-table__header th:first-child {
    width: 34px !important;
    min-width: 34px !important;
  }

  #app .huizong .el-table__body td:nth-child(2),
  #app .huizong .el-table__header th:nth-child(2) {
    width: 68px !important;
    min-width: 68px !important;
  }

  #app .huizong .el-table__body td:first-child .cell {
    min-width: 0 !important;
    gap: 0 !important;
    font-size: 11px !important;
  }

  #app .huizong .el-table__body td:nth-child(2) .cell {
    white-space: normal !important;
    word-break: keep-all !important;
  }

  #app > div {
    width: 100%;
    box-sizing: border-box;
  }

  #app .el-row {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #app .el-col-offset-6.el-col-12 {
    width: 88%;
    margin-left: 6%;
  }

  #app .el-col-offset-2.el-col-20 {
    width: 94%;
    margin-left: 3%;
  }

  #app .el-col-offset-1.el-col-22 {
    width: 98%;
    margin-left: 1%;
    height: auto !important;
    line-height: 1.5;
  }

  /* 移动端：左侧（总单列表）面板加宽到 65%、右侧面板收窄到 35%，与 PC 一致，
     保证四列（号码/投注数/风险值/ID）在 14px 字号下无需左右滑动也能完整显示；
     极窄屏仍保留下方 .local-total-table 的 overflow-x:auto 兜底。 */
  #app .custom-row-border:first-of-type {
    width: 65% !important;
    min-width: 0;
  }

  #app .custom-row-border:first-of-type + .custom-row-border {
    width: 35% !important;
    min-width: 0;
  }

  /* 移动端：左下角总单表格表头（ID/号码/投注数/风险值）恢复系统原始字号 */
  #app .custom-row-border .el-table__header th .cell {
    font-size: 14px !important;
    line-height: 1.2 !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  /* 移动端：左下角总单表格表体（ID/号码/投注数/风险值）恢复系统原始字号 */
  #app .custom-row-border .el-table__body td .cell {
    font-size: 14px !important;
    line-height: 1.3 !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  /* 移动端：四列最小宽度之和超出 50% 面板时，表格内部横向滚动（表头由 el-table
     的 syncPostion 自动跟随），保证 ID/号码/投注数/风险值在 14px 字号下都能完整显示，
     且不影响左右并排布局 */
  #app .local-total-table .el-table__body-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #app .el-input__inner {
    height: 28px;
    line-height: 28px;
  }

  #app .el-textarea__inner {
    font-size: 13px;
  }

  #app .el-dialog {
    margin-top: 4vh !important;
  }

  #app .el-dialog__body {
    padding-left: 6px;
    padding-right: 6px;
  }

  #app .huizong.local-huizong-fit {
    width: 720px !important;
    min-width: 720px !important;
    max-width: none !important;
    overflow: hidden !important;
    zoom: var(--local-huizong-scale, 1);
    transform-origin: 0 0;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #app .huizong.local-huizong-fit .el-table,
  #app .huizong.local-huizong-fit .el-table__header-wrapper,
  #app .huizong.local-huizong-fit .el-table__body-wrapper,
  #app .huizong.local-huizong-fit .el-table__header,
  #app .huizong.local-huizong-fit .el-table__body,
  #app .huizong.local-huizong-fit table {
    width: 720px !important;
    min-width: 720px !important;
    max-width: none !important;
    font-size: 14px !important;
  }

  #app .huizong.local-huizong-fit colgroup col:nth-child(1) {
    width: 28px !important;
  }

  #app .huizong.local-huizong-fit colgroup col:nth-child(2) {
    width: 84px !important;
  }

  #app .huizong.local-huizong-fit .el-table .cell {
    padding-left: 3px !important;
    padding-right: 3px !important;
    line-height: 1.35 !important;
  }

  #app .huizong.local-huizong-fit .el-table__body td:first-child,
  #app .huizong.local-huizong-fit .el-table__header th:first-child {
    width: 28px !important;
    min-width: 28px !important;
  }

  #app .huizong.local-huizong-fit .el-table__body td:nth-child(2),
  #app .huizong.local-huizong-fit .el-table__header th:nth-child(2) {
    width: 84px !important;
    min-width: 84px !important;
  }

  #app .huizong.local-huizong-fit .el-table__body td:first-child .cell,
  #app .huizong.local-huizong-fit .el-table__header th:first-child .cell {
    font-size: 10px !important;
    line-height: 1.1 !important;
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 移动端：前两列字体加大一致 */
  #app .huizong .el-table__body td:nth-child(1) .cell,
  #app .huizong .el-table__body td:nth-child(2) .cell {
    font-size: 16px !important;
    line-height: 22px !important;
  }

  /* 复制列：手机端居中 */
  #app .huizong .el-table__body td:last-child,
  #app .huizong .el-table__header th:last-child {
    text-align: center !important;
  }

  #app .huizong .el-table__body td:last-child .cell,
  #app .huizong .el-table__header th:last-child .cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #app .huizong .el-table__body td:last-child .el-button {
    font-size: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #app .huizong.local-huizong-fit .el-table__body td:nth-child(1) .cell,
  #app .huizong.local-huizong-fit .el-table__body td:nth-child(2) .cell {
    font-size: 16px !important;
    line-height: 22px !important;
  }

  /* .local-huizong-fit 复制列居中 */
  #app .huizong.local-huizong-fit .el-table__body td:last-child,
  #app .huizong.local-huizong-fit .el-table__header th:last-child {
    text-align: center !important;
  }

  #app .huizong.local-huizong-fit .el-table__body td:last-child .cell,
  #app .huizong.local-huizong-fit .el-table__header th:last-child .cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #app .huizong.local-huizong-fit .el-table__body td:last-child .el-button {
    font-size: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* PC（宽度 > 480px）：左下角总单列表所在的左侧面板加宽到 65%、右侧面板收窄到 35%，
   新增 ID 列后（ID/号码/投注数/风险值 四列）在 14px 字号下无需缩小也能完整显示；
   H5 窄屏仍保持 50%/50% + 表格内部横向滚动（见上方移动端规则） */
@media (min-width: 481px) {
  #app .custom-row-border:first-of-type {
    width: 65% !important;
  }

  #app .custom-row-border:first-of-type + .custom-row-border {
    width: 35% !important;
  }
}

/* ================= 新功能：主输入框右对齐 + 左侧三按钮（预设替换/香港/老澳） ================= */
#app .el-form-item__content.local-main-input-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

#app .local-input-side-buttons {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 6px;
  padding-top: 2px;
}

#app .local-input-side-buttons button {
  min-width: 62px;
  padding: 4px 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

#app .local-input-side-buttons button:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background: #ecf5ff;
}

/* 预设替换按钮：主题绿色 */
#app .local-input-side-buttons button[data-action="preset-replace"] {
  color: #fff;
  background: #67c23a;
  border-color: #67c23a;
}

#app .local-input-side-buttons button[data-action="preset-replace"]:hover {
  color: #fff;
  background: #85ce61;
  border-color: #85ce61;
}

/* 两个标记按钮（香港/老澳）：白底 + 主题绿色边框 */
#app .local-input-side-buttons button[data-action="prefix"] {
  color: #67c23a;
  border-color: #67c23a;
  background: #fff;
}

#app .local-input-side-buttons button[data-action="prefix"]:hover {
  color: #fff;
  background: #67c23a;
  border-color: #67c23a;
}

#app .local-input-side-buttons button.local-prefix-active {
  color: #fff;
  background: #67c23a;
  border-color: #67c23a;
}

/* ================= 标记按钮（香港/新澳/老澳）切换动效 =================
   激活的标记按钮按彩种上色（香港=红、新澳=蓝、老澳=绿）并做呼吸发光；
   点击瞬间再加一次放大闪光（JS 加 .local-prefix-flash，约 0.7s 后移除）。 */
@keyframes localPrefixGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--local-prefix-glow, rgba(103, 194, 58, 0.75)); }
  50% { box-shadow: 0 0 12px 3px var(--local-prefix-glow, rgba(103, 194, 58, 0.75)); }
}

@keyframes localPrefixFlash {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); box-shadow: 0 0 18px 7px var(--local-prefix-glow, rgba(103, 194, 58, 0.9)); }
  100% { transform: scale(1); }
}

#app .local-input-side-buttons button[data-action="prefix"] {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#app .local-input-side-buttons button[data-action="prefix"][data-prefix="香港"] {
  --local-prefix-glow: rgba(245, 108, 108, 0.85);
}

#app .local-input-side-buttons button[data-action="prefix"][data-prefix="新澳"] {
  --local-prefix-glow: rgba(64, 158, 255, 0.85);
}

#app .local-input-side-buttons button[data-action="prefix"][data-prefix="老澳"] {
  --local-prefix-glow: rgba(103, 194, 58, 0.85);
}

#app .local-input-side-buttons button.local-prefix-active {
  color: #fff;
  animation: localPrefixGlow 1.6s ease-in-out infinite;
}

#app .local-input-side-buttons button.local-prefix-active[data-prefix="香港"] {
  background: #f56c6c;
  border-color: #f56c6c;
}

#app .local-input-side-buttons button.local-prefix-active[data-prefix="新澳"] {
  background: #409eff;
  border-color: #409eff;
}

#app .local-input-side-buttons button.local-prefix-active[data-prefix="老澳"] {
  background: #67c23a;
  border-color: #67c23a;
}

#app .local-input-side-buttons button[data-action="prefix"].local-prefix-flash {
  position: relative;
  z-index: 2;
  animation: localPrefixFlash 0.6s ease-out 1;
}

#app .local-main-input-form > .el-textarea {
  order: 1;
  /* 小基准宽度 + 自动宽度：任何屏幕宽度下都不会被换行挤到按钮下方，
     始终与左侧按钮同一行，并随 flex-grow 向右撑满剩余空间（输入框整体靠右） */
  flex: 1 1 120px;
  min-width: 120px;
  width: auto;
  max-width: 100%;
}

/* 框内文字保持左对齐（输入框整体靠右，但内容仍从左开始书写） */
#app .local-main-input-form textarea.el-textarea__inner {
  text-align: left;
}

/* 需求变更：输入框下方的"本次提交网名"提示条不再显示 */
#app .local-input-group-names {
  display: none !important;
}

/* 主输入框所在列加宽（span20+offset2 → span22+offset1）：三按钮整体左移、右侧输入框变大 */
#app .el-col.local-main-input-col {
  flex: 0 0 91.6667% !important;
  max-width: 91.6667% !important;
  margin-left: 4.1667%;
}

/* 顶部"当前彩种名"（香港/新澳/老澳）水平居中显示：
   "选择彩种"下拉被隐藏后，名字会贴到最左边，这里让它居中 */
#app .el-col.local-clz-name-col {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* 居中彩种名：文字呼吸发光 + 边框流光（2px 彩色渐变环循环滚动） */
#app .el-col.local-clz-name-col > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: #1f2d3d;
  text-shadow: 0 0 5px rgba(64, 158, 255, 0.85), 0 0 12px rgba(64, 158, 255, 0.45);
  animation: localClzTextGlow 2.2s ease-in-out infinite;
}

#app .el-col.local-clz-name-col > span::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  /* 渐变周期 84px，动画位移正好一个周期，循环无跳变 */
  background: repeating-linear-gradient(
    90deg,
    #ff4d4f 0 14px,
    #ffb300 14px 28px,
    #67c23a 28px 42px,
    #409eff 42px 56px,
    #b06ab3 56px 70px,
    #ff4d4f 70px 84px
  );
  /* 只保留 2px 的边框环，中间镂空不遮挡背景 */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: localClzBorderFlow 1.8s linear infinite;
  pointer-events: none;
}

@keyframes localClzBorderFlow {
  from { background-position: 0 0; }
  to { background-position: 84px 0; }
}

@keyframes localClzTextGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(64, 158, 255, 0.85), 0 0 12px rgba(64, 158, 255, 0.45);
  }
  50% {
    text-shadow: 0 0 8px rgba(64, 158, 255, 1), 0 0 20px rgba(64, 158, 255, 0.8),
      0 0 28px rgba(255, 77, 79, 0.5);
  }
}

/* 预设替换弹窗 */
.local-replace-dialog-box {
  width: min(560px, 92vw);
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.local-replace-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #303133;
  text-align: center;
  margin-bottom: 14px;
}

.local-replace-dialog-head {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.local-replace-dialog-head span {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #606266;
  text-align: center;
}

.local-replace-dialog-head .local-replace-head-empty {
  flex: 0 0 30px;
}

.local-replace-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.local-replace-row input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  color: #303133;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
}

.local-replace-row input:focus {
  border-color: #409eff;
}

.local-replace-row-del {
  flex: 0 0 30px;
  height: 32px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #909399;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.local-replace-row-del:hover {
  color: #f56c6c;
  border-color: #fde2e2;
  background: #fef0f0;
}

.local-replace-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.local-replace-dialog-actions button {
  padding: 6px 16px;
  font-size: 13px;
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
}

.local-replace-dialog-actions button:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background: #ecf5ff;
}

.local-replace-dialog-actions .local-replace-btn-confirm {
  color: #fff;
  background: #409eff;
  border-color: #409eff;
}

.local-replace-dialog-actions .local-replace-btn-confirm:hover {
  color: #fff;
  background: #66b1ff;
  border-color: #66b1ff;
}

/* ================= 新功能：结算弹窗"自动获取结果"按钮 ================= */
/* 按钮位于开奖号码输入框左侧，与"兑奖"按钮同一行 */
.local-huizong-dialog .local-auto-result-btn {
  margin-right: 6px;
  vertical-align: middle;
}

/* 老澳彩种下按钮置灰不可点击 */
.local-huizong-dialog .local-auto-result-btn.is-disabled,
.local-huizong-dialog .local-auto-result-btn[disabled] {
  color: #c0c4cc !important;
  background: #f4f4f5 !important;
  border-color: #e4e7ed !important;
  cursor: not-allowed !important;
  opacity: 1;
}

/* ================= 右面板收窄为35%后的排版优化（左65%/右35%） =================
   由于左侧总单列表新增 ID 列并扩宽到 65%，右侧面板只剩 35%，原 44px 高的
   按钮与宽内边距在窄面板里显得过度拥挤。以下压缩按钮/输入框高度与内边距，
   并让多按钮行横向均分撑满，保持各功能一行放下的同时减少压迫感。 */
#app .custom-row-border:first-of-type + .custom-row-border {
  box-sizing: border-box;
  padding-left: 6px;
  padding-right: 6px;
}

/* PC：右下角列表（存储/扣存储表格）的两个表头"投注号码/下注金额"原被省略号截断成
   "投注…/下注…"（单元格继承的 text-overflow:ellipsis + 列宽偏窄）。
   这里把字号从 14px 收到 12px、去掉单元格左右内边距，并取消省略号截断，
   保证四个汉字在窄面板（右侧 35%）里也能完整显示；表体同步缩小以保持一致。 */
@media (min-width: 481px) {
  #app .custom-row-border:first-of-type + .custom-row-border .el-table__header th .cell,
  #app .custom-row-border:first-of-type + .custom-row-border .el-table__body td .cell {
    font-size: 12px !important;
    line-height: 1.25 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    /* 列宽仍差一点点时也不裁字（宁可轻微外溢，也不显示"投注…"） */
    overflow: visible !important;
  }

  #app .custom-row-border:first-of-type + .custom-row-border .el-table__header th.el-table__cell,
  #app .custom-row-border:first-of-type + .custom-row-border .el-table__body td.el-table__cell {
    overflow: visible !important;
  }
}

/* 右面板所有按钮统一为"评估"按钮的字号与尺寸（12px / 高 24px）：
   评估按钮的样式见下方 .local-appraise-row > .el-button，这里让整块面板的按钮保持一致。 */
#app .custom-row-border:first-of-type + .custom-row-border .el-button {
  min-height: 0 !important;
  height: 24px !important;
  line-height: 1 !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  /* 不加 !important：避免覆盖 JS 用行内 style.display:none 隐藏按钮的效果 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-input__inner {
  height: 30px !important;
  line-height: 30px !important;
  padding: 0 8px !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col {
  gap: 4px !important;
  flex-wrap: wrap !important;
}

/* "吃码百分比"行（JS 加 .local-percent-row）：
   按钮与输入框强制同一行不换行，输入框缩短为 46px，占位文字由 JS 清空 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-percent-row {
  flex-wrap: nowrap !important;
  align-items: center !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-percent-row > .el-input {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 0 !important;
  max-width: 46px !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-percent-row > .el-input .el-input__inner {
  width: 100% !important;
  min-width: 0 !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-percent-row > .el-button {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

/* 右面板多按钮行（复制上报/清除存储、存单/吃码存单/撤回存单）：由 JS 添加
   .local-inline-btn-row 类强制同一行不换行，按钮横向均分（见文件末尾规则） */

/* 评估 / 吃码 行：中间输入框弹性伸缩，两侧按钮固定宽度，整行始终一行放下 */
#app .custom-row-border:first-of-type + .custom-row-border .el-row .edit-col > .el-input.small-font-input {
  flex: 1 1 auto !important;
  min-width: 30px !important;
  max-width: none !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-row .edit-col > .el-button {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

/* 连续多个按钮的行（复制/清空、存单/吃码存单/撤回存单）：按钮横向均分撑满整行 */
#app .custom-row-border:first-of-type + .custom-row-border .el-row .edit-col > .el-button + .el-button {
  flex: 1 1 auto !important;
}

/* 最大亏损 / 最大盈利：字号放大到 10px 并居中，避免 8px 字号在窄面板里看不清 */
#app .custom-row-border:first-of-type + .custom-row-border .el-col span[style*="font-size:8px"],
#app .custom-row-border:first-of-type + .custom-row-border .el-col b {
  font-size: 10px !important;
  white-space: nowrap;
}

/* 上家显示 + 切换上家 行：上家名称超长时省略号截断，不把下拉挤变形 */
#app .custom-row-border:first-of-type + .custom-row-border .el-col-17 {
  display: flex;
  align-items: center;
  overflow: hidden;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-col-17 b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 吃码相关说明行（吃码说明/缓存时间/计算）：允许文字换行，避免挤压模糊 */
#app .custom-row-border:first-of-type + .custom-row-border .el-col .font,
#app .custom-row-border:first-of-type + .custom-row-border .el-col font {
  white-space: normal !important;
  word-break: keep-all !important;
  line-height: 1.4 !important;
}

/* 手机/极窄屏（H5）：右面板整体紧凑化。
   按钮缩小到最小可点面积（min-height 24px / 12px 字号 / 小内边距），
   功能行紧凑排列，避免多按钮换行堆叠成大块导致臃肿。 */
@media (max-width: 480px) {
  #app .custom-row-border:first-of-type + .custom-row-border {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  #app .custom-row-border:first-of-type + .custom-row-border .el-button--mini,
  #app .custom-row-border:first-of-type + .custom-row-border .el-button--small {
    min-height: 24px !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  #app .custom-row-border:first-of-type + .custom-row-border .el-input__inner {
    height: 24px !important;
    line-height: 24px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
  }

  #app .custom-row-border:first-of-type + .custom-row-border .edit-col {
    gap: 3px !important;
  }

  /* 各功能行：行间垂直留白收紧 */
  #app .custom-row-border:first-of-type + .custom-row-border .el-row {
    margin-bottom: 2px !important;
  }

  /* 最大亏损/最大盈利 保持 10px 字号、一行放下 */
  #app .custom-row-border:first-of-type + .custom-row-border .el-col span[style*="font-size:8px"],
  #app .custom-row-border:first-of-type + .custom-row-border .el-col b {
    font-size: 10px !important;
    white-space: nowrap;
  }

  /* 说明文字行（吃码说明/缓存时间/计算）：12px 紧凑 */
  #app .custom-row-border:first-of-type + .custom-row-border .el-col .font,
  #app .custom-row-border:first-of-type + .custom-row-border .el-col font {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}

/* JS 为右面板多按钮行添加 .local-inline-btn-row：强制同一行不换行堆叠，
   按钮横向均分；按钮内文字不折行、字号调小，保证"复制上报/清除存储"
   "存单/吃码存单/撤回存单"在窄面板里也完整一排显示 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-inline-btn-row {
  flex-wrap: nowrap !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-inline-btn-row > .el-button {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 3px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 三按钮行（存单/扣存储/撤回存单）：前两个按钮同一行各占一半，
   第三个按钮（撤回存单）强制换到下一行 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-split-btn-row {
  flex-wrap: wrap !important;
  gap: 4px !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-split-btn-row > .el-button {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 3px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-split-btn-row > .el-button:nth-child(3) {
  flex: 0 0 auto !important;
  min-width: 120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* "最大亏损：""最大盈利："两列改为上下结构（PC/H5 通用，由 JS 加类）：
   各占整行，文字不再左右挤压叠在一起 */
#app .custom-row-border:first-of-type + .custom-row-border .el-col.local-metric-col {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  white-space: nowrap !important;
  text-align: left !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-col.local-metric-col > span,
#app .custom-row-border:first-of-type + .custom-row-border .el-col.local-metric-col > b {
  text-align: left !important;
}

/* "评估 [输入框] 吃码"行：强制同一行，输入框弹性收缩、可更小。
   由 JS 给行容器加 .local-appraise-row（需同级选择器才能覆盖 1259 行的 wrap）。 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-appraise-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-appraise-row > .el-button {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  height: 24px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  /* 不加 !important：避免覆盖 JS 用行内 style.display:none 对"吃码"按钮的隐藏 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 被 JS 隐藏的"吃码"按钮保持隐藏（防止其它 display 规则将其显示出来） */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-appraise-row > .el-button[data-local-eat-hidden] {
  display: none !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-appraise-row > .el-input.small-font-input {
  flex: 1 1 0 !important;
  min-width: 24px !important;
  max-width: none !important;
  width: auto !important;
  height: 24px !important;
  box-sizing: border-box !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-appraise-row > .el-input.small-font-input .el-input__inner {
  height: 24px !important;
  line-height: 24px !important;
  padding: 0 4px !important;
  font-size: 11px !important;
  box-sizing: border-box !important;
}

/* 右侧"存储"区域重排（由 JS 加类，PC/H5 通用）：
   1) "上报金额总计"单独一行；
   2) "存储次数" + "存储订单"同一行；
   3) "扣存储" + "撤回存单"同一行。 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-total-metric {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  float: none !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-storage-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  /* 关键：该行原有 gap:4px 会把 55%+45% 撑过 100%，导致"存储订单"换行。
     故横向间距置 0，仅保留行间距。 */
  column-gap: 0 !important;
  row-gap: 3px !important;
}

/* "存储次数：N"文本列：第一行左侧 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-storage-row > .local-storage-metric {
  order: 1 !important;
  flex: 1 1 52% !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden !important;
  float: none !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-storage-row > .local-storage-metric font {
  display: inline-block !important;
  max-width: 100% !important;
  font-size: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* "存储订单"：第一行右侧（52%+44%+2px 间距 < 100%，与左侧同一行）。
   必须 border-box，否则 padding 会把实际宽度撑超，导致按钮掉到下一行。 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-storage-row > .el-button:nth-of-type(1) {
  order: 2 !important;
  flex: 0 0 44% !important;
  max-width: 44% !important;
  margin-left: 2px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* "扣存储" / "撤回存单"：第二行各占一半 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-storage-row > .el-button:nth-of-type(2),
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-storage-row > .el-button:nth-of-type(3) {
  order: 3 !important;
  flex: 1 1 0 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* "切换上家"行：下拉按钮在前、上家名称在后（显示为"切换上家 XXX"），
   两者强制同一行。由 JS 给行容器加 .local-cj-order 类。
   注意：需用与 1259 行同级的完整选择器，才能覆盖该行的 flex-wrap:wrap。 */
#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-cj-order {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-cj-order > .el-select {
  order: 1 !important;
  flex: 0 0 auto !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-cj-order > .el-col {
  order: 2 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .edit-col.local-cj-order > .el-col b {
  display: inline-block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* 右面板底部"结算 / 对单"两个整行按钮合并为同一行（各占一半）。
   原模板为两个 el-row，每个内含 el-col[span=24]（width:100%）；
   由 JS 把"对单"所在的列移动到"结算"所在的行，并给该行加 .local-settle-row。
   此处需覆盖 .el-col-24 的 width:100%（用 id + 多类选择器保证特异性）。 */
#app .custom-row-border:first-of-type + .custom-row-border .el-row.local-settle-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  column-gap: 4px !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-row.local-settle-row > .el-col {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-row.local-settle-row > .el-col > .el-button {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  /* "结算 / 对单"整体放大：高 34px、字号 15px，蓝底白字 */
  height: 34px !important;
  line-height: 1 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background-color: #409eff !important;
  border-color: #409eff !important;
  color: #ffffff !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-row.local-settle-row > .el-col > .el-button span {
  color: #ffffff !important;
}

#app .custom-row-border:first-of-type + .custom-row-border .el-row.local-settle-row > .el-col > .el-button:hover,
#app .custom-row-border:first-of-type + .custom-row-border .el-row.local-settle-row > .el-col > .el-button:focus {
  background-color: #337ecc !important;
  border-color: #337ecc !important;
  color: #ffffff !important;
}
