﻿.project-module-page:has(.simulation-standardized) .independent-simulation-shell {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .business-tabs,
.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .business-entry-note,
.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .independent-result-card,
.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .independent-workspace,
.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .independent-actions,
.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .independent-calculation-panel,
.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .simulation-tax-audit,
.project-module-page:has(.simulation-standardized) .independent-simulation-shell > .simulation-mode-intro {
  width: 100%;
}

.project-module-page:has(.simulation-standardized) .independent-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px;
  margin-top: 0;
}

.project-module-page:has(.simulation-standardized) .independent-summary-metrics .overview-metric {
  min-width: 0;
  min-height: 118px;
}

.project-module-page:has(.simulation-standardized) .independent-summary-metrics .overview-metric-label,
.project-module-page:has(.simulation-standardized) .independent-summary-metrics small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-module-page:has(.simulation-standardized) .independent-summary-metrics strong {
  white-space: nowrap;
}

.project-module-page:has(.simulation-standardized) .independent-workspace {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.project-module-page:has(.simulation-standardized) .independent-payment-panel {
  min-width: 0;
}

.project-module-page:has(.simulation-standardized) .independent-payment-panel .table-wrap {
  overflow-x: hidden;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table th:nth-child(1),
.project-module-page:has(.simulation-standardized) .independent-payment-table td:nth-child(1) {
  width: 7%;
  text-align: center;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table th:nth-child(2),
.project-module-page:has(.simulation-standardized) .independent-payment-table td:nth-child(2) {
  width: 20%;
  text-align: left;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table th:nth-child(3),
.project-module-page:has(.simulation-standardized) .independent-payment-table td:nth-child(3) {
  width: 12%;
  text-align: center;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table th:nth-child(4),
.project-module-page:has(.simulation-standardized) .independent-payment-table td:nth-child(4),
.project-module-page:has(.simulation-standardized) .independent-payment-table th:nth-child(5),
.project-module-page:has(.simulation-standardized) .independent-payment-table td:nth-child(5) {
  width: 15%;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table th:nth-child(6),
.project-module-page:has(.simulation-standardized) .independent-payment-table td:nth-child(6) {
  width: 13%;
  text-align: center;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table th:nth-child(7),
.project-module-page:has(.simulation-standardized) .independent-payment-table td:nth-child(7) {
  width: 18%;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table .operation-cell {
  white-space: nowrap;
  text-align: center;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table .operation-cell .text-btn {
  margin: 0 3px;
  padding: 0;
}

.project-workbench.simulation-standard-page .independent-payment-table .operation-cell .text-btn {
  font-weight: 400;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table tbody tr.selected td {
  background: #f4f8ff;
}

.project-module-page:has(.simulation-standardized) .independent-payment-table tbody tr.selected td:first-child {
  box-shadow: inset 3px 0 #1d5bb9;
}

.project-module-page:has(.simulation-standardized) .simulation-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail {
  position: sticky;
  top: 16px;
  width: auto;
  min-width: 0;
  margin-top: 16px;
}

.project-module-page:has(.simulation-standardized) .simulation-detail-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e3eaf3;
}

.project-module-page:has(.simulation-standardized) .simulation-detail-head h2 {
  margin: 0 0 5px;
  color: #142c53;
  font-size: 17px;
}

.project-module-page:has(.simulation-standardized) .simulation-detail-head span {
  display: block;
  overflow: hidden;
  color: #7a8ca8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail .record-detail-amount,
.project-module-page:has(.simulation-standardized) .simulation-payment-detail dl,
.project-module-page:has(.simulation-standardized) .simulation-payment-detail > .btn,
.project-module-page:has(.simulation-standardized) .simulation-payment-detail .record-detail-empty {
  margin-right: 18px;
  margin-left: 18px;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail .record-detail-amount {
  margin-top: 16px;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail dl {
  margin-top: 8px;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail > .btn {
  width: calc(100% - 36px);
  margin-top: 4px;
  margin-bottom: 16px;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail .record-detail-empty {
  padding: 28px 0;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail .record-detail-empty b,
.project-module-page:has(.simulation-standardized) .simulation-payment-detail .record-detail-empty span {
  display: block;
}

.project-module-page:has(.simulation-standardized) .simulation-payment-detail .record-detail-empty span {
  margin-top: 6px;
  color: #7a8ca8;
  font-size: 12px;
}

.project-module-page:has(.simulation-standardized) .independent-calculation-panel .data-table {
  table-layout: fixed;
}

.project-module-page:has(.simulation-standardized) .independent-calculation-panel .data-table th:nth-child(1) {
  width: 7%;
}

.project-module-page:has(.simulation-standardized) .independent-calculation-panel .data-table th:nth-child(2) {
  width: 17%;
}

.project-module-page:has(.simulation-standardized) .independent-calculation-panel .data-table th:nth-child(3) {
  width: 27%;
}

.project-module-page:has(.simulation-standardized) .independent-calculation-panel .data-table th:nth-child(4) {
  width: 15%;
}

.project-module-page:has(.simulation-standardized) .independent-calculation-panel .data-table th:nth-child(5) {
  width: 15%;
}

.project-module-page:has(.simulation-standardized) .independent-calculation-panel .data-table th:nth-child(6) {
  width: 19%;
}

.project-workbench.simulation-standard-page .business-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e9f2;
}

.project-workbench.simulation-standard-page .independent-result-card,
.project-workbench.simulation-standard-page .independent-payment-panel,
.project-workbench.simulation-standard-page .independent-calculation-panel {
  margin-top: 12px;
}

.project-workbench.simulation-standard-page .independent-payment-panel,
.project-workbench.simulation-standard-page .independent-calculation-panel {
  overflow: hidden;
  padding: 0;
}

.project-workbench.simulation-standard-page .independent-workspace {
  margin-top: 0;
}

.project-workbench.simulation-standard-page .compact-simulation-head {
  min-height: 34px;
  align-items: center;
  margin-bottom: 10px;
}

.project-workbench.simulation-standard-page .compact-simulation-head > div:not(.simulation-section-actions) {
    display: contents;
}

.project-workbench.simulation-standard-page .independent-simulation-shell > .independent-summary-metrics {
    width: 100%;
    margin-top: 12px;
}

.project-workbench.simulation-standard-page .independent-payment-panel > .compact-simulation-head,
.project-workbench.simulation-standard-page .independent-calculation-panel > .compact-simulation-head {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #e4e9f2;
    background: #f8fafc;
}

.project-workbench.simulation-standard-page .independent-payment-panel > .compact-simulation-head {
    align-items: center;
}

.project-workbench.simulation-standard-page .independent-payment-panel > .compact-simulation-head > .simulation-section-actions {
    align-self: center;
}

.project-workbench.simulation-standard-page .independent-payment-panel > .table-wrap,
.project-workbench.simulation-standard-page .independent-calculation-panel > .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.project-workbench.simulation-standard-page .simulation-section-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.project-workbench.simulation-standard-page .simulation-section-actions > .btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, #0f4da8, #1f62c1);
    color: #fff;
}

.project-workbench.simulation-standard-page .simulation-payment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0;
    padding: 10px 14px 12px;
    border-top: 1px solid #e4e9f2;
}

.project-workbench.simulation-standard-page .simulation-payment-footer .simulation-ticket-total,
.project-workbench.simulation-standard-page .simulation-payment-footer .independent-actions {
    margin: 0;
}

.project-workbench.simulation-standard-page .simulation-payment-boundary-note {
  flex: 1 1 320px;
  margin: 0;
  color: #71809a;
  font-size: 12px;
  line-height: 1.5;
}

.project-workbench.simulation-standard-page .compact-simulation-head[data-simulation-calculation-toggle] {
    cursor: pointer;
}

.project-workbench.simulation-standard-page .simulation-calculation-fold {
    margin-left: auto;
    white-space: nowrap;
}

.project-workbench.simulation-standard-page .compact-simulation-head h2 {
  margin: 0;
  color: #171b24;
  font-size: 16px;
  line-height: 1.35;
}

.project-workbench.simulation-standard-page .simulation-payment-header-note {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #71809a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.project-workbench.simulation-standard-page .simulation-ticket-total {
  margin-top: 9px !important;
}

.project-workbench.simulation-standard-page .independent-receipt-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  margin: 0 !important;
  padding: 8px 12px;
  border-left: 3px solid #1769e8;
  border-radius: 4px;
  background: #f5f8fd;
  color: #60718b;
  font-size: 13px;
  font-weight: 400;
}

.project-workbench.simulation-standard-page .independent-receipt-total b {
  color: #155fbf;
  font-size: 18px;
  font-weight: 600;
}

.project-workbench.simulation-standard-page .actual-balance-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  margin: 0 !important;
  padding: 8px 12px;
  border-left: 3px solid #1769e8;
  border-radius: 4px;
  background: #f5f8fd;
  color: #60718b;
  font-size: 13px;
  font-weight: 400;
}

.project-workbench.simulation-standard-page .actual-balance-total b {
  color: #155fbf;
  font-size: 18px;
  font-weight: 600;
}

.project-workbench.simulation-standard-page .closure-balance-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  margin: 0 !important;
  padding: 8px 12px;
  border-left: 3px solid #1769e8;
  border-radius: 4px;
  background: #f5f8fd;
  color: #60718b;
  font-size: 13px;
  font-weight: 400;
}

.project-workbench.simulation-standard-page .closure-balance-total b {
  color: #155fbf;
  font-size: 18px;
  font-weight: 600;
}

/* 三种经营测算的付款区标题与合计数字使用正文常规字重。 */
#app .project-workbench.simulation-standard-page .independent-payment-panel .simulation-section-head h2,
#app .project-workbench.simulation-standard-page .simulation-payment-footer .simulation-ticket-total b {
  font-weight: 400;
}

.project-workbench.simulation-standard-page .business-tabs > .btn,
.project-workbench.simulation-standard-page .simulation-section-actions > .btn,
.project-workbench.simulation-standard-page .independent-actions > .btn {
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d8e0eb;
  border-radius: 5px;
  background: #fff;
  color: #425168;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.project-workbench.simulation-standard-page .business-tabs > .btn.active,
.project-workbench.simulation-standard-page .independent-actions > .btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #163e98, #0f57b8);
  color: #fff;
}

.project-workbench.simulation-standard-page .simulation-section-actions {
  gap: 9px;
}

.project-workbench.simulation-standard-page .simulation-section-actions > .btn.independent-calculation-entry-button {
  height: 32px;
  min-height: 32px;
  padding: 0 11px;
  border-color: #d8e2ef;
  border-radius: 5px;
  background: #fff;
  color: #526782;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
}

.project-workbench.simulation-standard-page .simulation-section-actions > .btn.independent-calculation-entry-button:hover {
  border-color: #b9cee8;
  background: #f5f8fd;
  color: #155fbf;
  box-shadow: none;
  transform: none;
}

.project-workbench.simulation-standard-page .simulation-section-actions > .btn.actual-calculation-entry-button {
  height: 32px;
  min-height: 32px;
  padding: 0 11px;
  border-color: #d8e2ef;
  border-radius: 5px;
  background: #fff;
  color: #526782;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
}

.project-workbench.simulation-standard-page .simulation-section-actions > .btn.actual-calculation-entry-button:hover {
  border-color: #b9cee8;
  background: #f5f8fd;
  color: #155fbf;
  box-shadow: none;
  transform: none;
}

.project-workbench.simulation-standard-page .simulation-section-actions > .btn.closure-calculation-entry-button {
  height: 32px;
  min-height: 32px;
  padding: 0 11px;
  border-color: #d8e2ef;
  border-radius: 5px;
  background: #fff;
  color: #526782;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
}

.project-workbench.simulation-standard-page .simulation-section-actions > .btn.closure-calculation-entry-button:hover {
  border-color: #b9cee8;
  background: #f5f8fd;
  color: #155fbf;
  box-shadow: none;
  transform: none;
}

.project-workbench.simulation-standard-page .independent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 10px;
}

.project-workbench.simulation-standard-page .independent-actions > .btn:first-child {
  order: 2;
  min-width: 126px;
}

.project-workbench.simulation-standard-page .independent-actions > .btn:last-child {
  order: 1;
}

/* 首次回款测算按业务操作顺序展示，避免通用首尾按钮排序影响该页。 */
.project-workbench.simulation-standard-page .independent-actions > .btn[data-run-independent-simulation]:first-child {
  order: 0;
}

.project-workbench.simulation-standard-page .independent-actions > [data-save-independent-scheme] {
  order: 1;
}

.project-workbench.simulation-standard-page .independent-actions > [data-update-independent-scheme] {
  order: 2;
}

.project-workbench.simulation-standard-page .independent-actions > .btn[data-clear-independent-simulation] {
  order: 3;
}

.project-workbench.simulation-standard-page .independent-actions > .btn[data-run-actual-simulation]:first-child {
  order: 0;
}

.project-workbench.simulation-standard-page .independent-actions > [data-save-actual-scheme] {
  order: 1;
}

.project-workbench.simulation-standard-page .independent-actions > [data-update-actual-scheme] {
  order: 2;
}

.project-workbench.simulation-standard-page .independent-actions > .btn[data-clear-actual-simulation]:last-child {
  order: 3;
}

.project-workbench.simulation-standard-page .independent-actions > .btn[data-run-closure-simulation]:first-child {
  order: 0;
}

.project-workbench.simulation-standard-page .independent-actions > [data-save-closure-scheme] {
  order: 1;
}

.project-workbench.simulation-standard-page .independent-actions > [data-update-closure-scheme] {
  order: 2;
}

.project-workbench.simulation-standard-page .independent-actions > .btn[data-clear-closure-simulation]:last-child {
  order: 3;
}

.project-workbench.simulation-standard-page .simulation-auto-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.project-workbench.simulation-standard-page .simulation-auto-summary > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce6f4;
  border-radius: 5px;
  background: #f7faff;
}

.project-workbench.simulation-standard-page .simulation-auto-summary span,
.project-workbench.simulation-standard-page .simulation-auto-summary small {
  display: block;
  color: #71809a;
  font-size: 12px;
  line-height: 1.4;
}

.project-workbench.simulation-standard-page .simulation-auto-summary b {
  display: block;
  margin: 4px 0 2px;
  color: #174ea6;
  font-size: 17px;
  line-height: 1.3;
}

.project-workbench.simulation-standard-page .simulation-rate-adjustment,
.project-workbench.ticket-tax-standard-page .simulation-rate-adjustment {
  margin: 12px 0 0;
  border-top: 1px solid #e3e9f2;
}

.project-workbench.simulation-standard-page .simulation-rate-adjustment summary,
.project-workbench.ticket-tax-standard-page .simulation-rate-adjustment summary {
  padding: 11px 2px 7px;
  color: #1958a6;
  font-size: 13px;
  cursor: pointer;
}

.project-workbench.simulation-standard-page .simulation-rate-adjustment > p,
.project-workbench.ticket-tax-standard-page .simulation-rate-adjustment > p {
  margin: 0 0 10px;
  color: #71809a;
  font-size: 12px;
}

.project-workbench.simulation-standard-page .simulation-calculation-source td {
  background: #fff;
}

.project-workbench.simulation-standard-page .simulation-calculation-input td {
  background: #fffaf1;
}

.project-workbench.simulation-standard-page .simulation-calculation-auto td {
  background: #f5f8fd;
}

.project-workbench.simulation-standard-page .simulation-calculation-result td {
  border-top: 2px solid #8db8ea;
  background: #edf5ff;
  font-weight: 400;
}

.project-workbench.simulation-standard-page .simulation-tax-group-row td {
  padding: 8px 12px;
  background: #eef4fc;
  color: #174a8b;
  font-weight: 400;
  text-align: left;
}

.project-workbench.simulation-standard-page .simulation-tax-subtotal td {
  background: #f7faff;
  font-weight: 400;
}

.project-workbench.simulation-standard-page .simulation-tax-result td {
  border-top: 2px solid #8db8ea;
  background: #edf5ff;
  font-weight: 400;
}

.project-workbench.simulation-standard-page [data-simulation-tax-toggle] {
  cursor: pointer;
}

.project-workbench.simulation-standard-page .simulation-tax-fold {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .project-module-page:has(.simulation-standardized) .independent-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-workbench.simulation-standard-page .simulation-auto-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-workbench.ticket-tax-standard-page .independent-simulation-shell {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-workbench.ticket-tax-standard-page .ticket-tax-page-tabs {
  width: 100%;
  margin: 0 0 12px;
}

#app .project-workbench.ticket-tax-standard-page [data-open-planning-ticket-candidates] {
  display: none !important;
}

#app .project-workbench.ticket-tax-standard-page [data-ticket-tax-condition-dialog] .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#app .project-workbench.ticket-tax-standard-page [data-ticket-tax-condition-dialog] .form-grid > label {
  min-width: 0;
}

#app .project-workbench.ticket-tax-standard-page [data-ticket-tax-condition-dialog] .ticket-tax-condition-field-heading {
  flex-wrap: wrap;
  white-space: normal;
}

#app .project-workbench.ticket-tax-standard-page [data-ticket-tax-condition-dialog] .form-grid > label:nth-child(even) .ticket-tax-condition-help::after {
  right: 0;
  left: auto;
}

@media (max-width: 700px) {
  #app .project-workbench.ticket-tax-standard-page [data-ticket-tax-condition-dialog] .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-workbench.ticket-tax-standard-page .independent-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.project-workbench.ticket-tax-standard-page .independent-summary-metrics .overview-metric {
  min-width: 0;
  min-height: 104px;
}

.project-workbench.ticket-tax-standard-page .independent-summary-metrics strong {
  white-space: nowrap;
}

.project-workbench.ticket-tax-standard-page .ticket-tax-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.project-workbench.ticket-tax-standard-page .ticket-tax-left-column {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.project-workbench.ticket-tax-standard-page .independent-payment-panel,
.project-workbench.ticket-tax-standard-page .independent-condition-card,
.project-workbench.ticket-tax-standard-page .independent-calculation-panel {
  margin-top: 0;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
}

.project-workbench.ticket-tax-standard-page .independent-payment-panel,
.project-workbench.ticket-tax-standard-page .independent-calculation-panel {
  overflow: hidden;
  padding: 0;
}

.project-workbench.ticket-tax-standard-page .compact-simulation-head {
  min-height: 48px;
  margin: 0;
  padding: 7px 12px;
  align-items: center;
  border-bottom: 1px solid #e4e9f2;
  background: #f8fafc;
}

.project-workbench.ticket-tax-standard-page .compact-simulation-head h2 {
  margin: 0;
  color: #171b24;
  font-size: 16px;
  font-weight: 400;
}

.project-workbench.ticket-tax-standard-page .simulation-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.project-workbench.ticket-tax-standard-page .simulation-section-actions .btn {
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
  white-space: nowrap;
}

.project-workbench.ticket-tax-standard-page .simulation-section-actions .btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #163e98, #0f57b8);
  color: #fff;
}

.project-workbench.ticket-tax-standard-page .independent-payment-panel .table-wrap,
.project-workbench.ticket-tax-standard-page .independent-calculation-panel .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.project-workbench.ticket-tax-standard-page .independent-payment-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.project-workbench.ticket-tax-standard-page .independent-payment-table th:nth-child(1),
.project-workbench.ticket-tax-standard-page .independent-payment-table td:nth-child(1) {
  width: 8%;
  text-align: center;
}

.project-workbench.ticket-tax-standard-page .independent-payment-table th:nth-child(2),
.project-workbench.ticket-tax-standard-page .independent-payment-table td:nth-child(2) {
  width: 24%;
  text-align: left;
}

.project-workbench.ticket-tax-standard-page .independent-payment-table th:nth-child(3),
.project-workbench.ticket-tax-standard-page .independent-payment-table td:nth-child(3) {
  width: 20%;
  text-align: right;
}

.project-workbench.ticket-tax-standard-page .independent-payment-table th:nth-child(4),
.project-workbench.ticket-tax-standard-page .independent-payment-table td:nth-child(4),
.project-workbench.ticket-tax-standard-page .independent-payment-table th:nth-child(5),
.project-workbench.ticket-tax-standard-page .independent-payment-table td:nth-child(5) {
  width: 16%;
  text-align: center;
}

.project-workbench.ticket-tax-standard-page .independent-payment-table th:nth-child(6),
.project-workbench.ticket-tax-standard-page .independent-payment-table td:nth-child(6) {
  width: 16%;
  text-align: center;
}

.project-workbench.ticket-tax-standard-page .operation-cell {
  white-space: nowrap;
}

.project-workbench.ticket-tax-standard-page .independent-condition-card {
  position: sticky;
  top: 14px;
  padding: 0 16px 16px;
}

.project-workbench.ticket-tax-standard-page .independent-condition-card .simulation-section-head {
  margin: 0 -16px 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e4e9f2;
}

.project-workbench.ticket-tax-standard-page .independent-condition-card dl {
  gap: 10px;
  margin: 12px 0;
}

.project-workbench.ticket-tax-standard-page .independent-condition-card > .btn,
.project-workbench.ticket-tax-standard-page .independent-condition-card .independent-actions .btn {
  width: 100%;
  min-height: 34px;
  height: 34px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.project-workbench.ticket-tax-standard-page .independent-condition-card .independent-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.project-workbench.ticket-tax-standard-page .independent-calculation-panel {
  margin-top: 0;
}

.project-workbench.ticket-tax-standard-page .ticket-tax-target-panel {
  margin-top: 0;
}

.project-workbench.ticket-tax-standard-page .independent-calculation-panel .compact-simulation-head {
  cursor: pointer;
}

.project-workbench.ticket-tax-standard-page .independent-calculation-panel .simulation-tax-fold,
.project-workbench.ticket-tax-standard-page .independent-calculation-panel .simulation-calculation-fold {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .project-workbench.ticket-tax-standard-page .ticket-tax-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-workbench.ticket-tax-standard-page .independent-condition-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .project-workbench.ticket-tax-standard-page .independent-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-workbench.ticket-tax-standard-page .simulation-section-actions {
    flex-wrap: wrap;
  }
}

/* 票税测算三页共用的详情入口、底部操作区和计算详情弹窗。 */
#app .project-workbench.ticket-tax-standard-page .independent-summary-metrics .overview-metric-label {
  display: -webkit-box;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#app .project-workbench.ticket-tax-standard-page .business-table-empty {
  font-weight: 400;
}

#app .project-workbench.ticket-tax-standard-page .operation-cell .text-btn {
  font-weight: 400;
}

#app .project-workbench.ticket-tax-standard-page .ticket-tax-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
}

#app .project-workbench.ticket-tax-standard-page .ticket-tax-page-actions .btn {
  width: auto;
  min-width: 84px;
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

#app .project-workbench.ticket-tax-standard-page .ticket-tax-page-actions .btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #163e98, #0f57b8);
  color: #fff;
}

#app .project-workbench.ticket-tax-standard-page .ticket-tax-calculation-entry-button {
  font-weight: 400;
}


#app .project-workbench.ticket-tax-standard-page .independent-payment-panel .table-wrap {
  border: 1px solid #bdcde0;
  border-radius: 8px;
}


#app .project-workbench.ticket-tax-standard-page :is(.independent-payment-panel) .data-table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

#app .project-workbench.ticket-tax-standard-page :is(.independent-payment-panel) .data-table thead th {
  border-top: 0;
  border-right: 1px solid #c4d2e1;
  border-bottom: 2px solid #b3c6dc;
  border-left: 0;
}

#app .project-workbench.ticket-tax-standard-page :is(.independent-payment-panel) .data-table tbody td {
  border-top: 1px solid #c9d5e2;
  border-right: 1px solid #c9d5e2;
  border-bottom: 0;
  border-left: 0;
}

#app .project-workbench.ticket-tax-standard-page :is(.independent-payment-panel) .data-table thead th:last-child,
#app .project-workbench.ticket-tax-standard-page :is(.independent-payment-panel) .data-table tbody td:last-child {
  border-right: 0;
}

@media (hover: hover) and (pointer: fine) {
  #app .project-workbench.ticket-tax-standard-page :is(.independent-payment-panel) .data-table tbody > tr:hover > td {
    background: #f4f8ff;
  }
}


/* 三个票税测算页共用同一套主表、结果摘要和详情弹窗排版。 */
#app .project-workbench.ticket-tax-standard-page .independent-payment-panel .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

#app .project-workbench.ticket-tax-standard-page .independent-payment-table thead th {
  box-sizing: border-box;
  padding: 12px 10px !important;
  background: var(--reference-head) !important;
  color: #3c4654 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  border-top: 0 !important;
  border-right: 1px solid #e5ebf3 !important;
  border-bottom: 1px solid #dfe6f0 !important;
  border-left: 0 !important;
}

#app .project-workbench.ticket-tax-standard-page .independent-payment-table tbody td {
  padding: 13px 10px !important;
  color: #171b24;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  border-top: 1px solid #edf0f5 !important;
  border-right: 1px solid #edf1f6 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
}

#app .project-workbench.ticket-tax-standard-page .independent-payment-table thead th:last-child,
#app .project-workbench.ticket-tax-standard-page .independent-payment-table tbody td:last-child {
  border-right: 0 !important;
}

#app .project-workbench.ticket-tax-standard-page .ticket-tax-page-actions > .ticket-tax-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  margin: 0 auto 0 0 !important;
  padding: 8px 12px;
  border-left: 3px solid #1769e8;
  border-radius: 4px;
  background: #f5f8fd;
  color: #60718b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

#app .project-workbench.ticket-tax-standard-page .ticket-tax-page-actions > .ticket-tax-total b {
  color: #155fbf;
  font-size: 18px;
  font-weight: 400;
}


#app .ticket-tax-match-planning-dialog .simulation-modal * {
  font-weight: 400 !important;
}

#app .ticket-tax-match-planning-dialog .simulation-modal .business-entry-note {
  font-weight: 400 !important;
}

#app [data-planning-ticket-candidate-dialog] .simulation-modal form {
  padding: 20px 22px 0;
}

#app [data-planning-ticket-candidate-dialog] .simulation-modal form > .form-actions {
  display: flex;
  min-height: 70px;
  margin: 15px -22px 0;
  padding: 15px 22px 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #e4e9f2;
}

#app [data-planning-ticket-candidate-dialog] .simulation-modal .form-actions .btn {
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #d8e0eb;
  border-radius: 5px;
  background: #fff;
  color: #425168;
  font-size: 13px;
  font-weight: 500 !important;
  box-shadow: none;
}

#app [data-planning-ticket-candidate-dialog] .simulation-modal .form-actions .btn.primary {
  border: 0;
  background: linear-gradient(180deg, #163e98, #0f57b8);
  color: #fff;
}

#app [data-planning-ticket-candidate-dialog] .simulation-modal .form-actions .btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #123889, #0b4da6);
}

#app .ticket-tax-match-planning-dialog .simulation-modal .data-table thead th {
  padding: 12px 10px !important;
  background: #f1f5fb !important;
  color: #3c4654 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
}

#app .ticket-tax-match-planning-dialog .simulation-modal .data-table tbody td {
  padding: 13px 10px !important;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}


.project-workbench.simulation-standard-page [data-independent-calculation-panel][hidden] {
  display: none !important;
}


.project-workbench.simulation-standard-page .independent-calculation-empty {
  padding: 72px 24px;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #fafcff;
  color: #71809a;
  text-align: center;
}


.project-workbench.simulation-standard-page [data-actual-calculation-panel][hidden] {
  display: none !important;
}


.project-workbench.simulation-standard-page [data-closure-calculation-panel][hidden] {
  display: none !important;
}

/* 三种支付测算的金额条件默认同排；临时税率区域保持原布局。 */
#app .project-workbench.simulation-standard-page .simulation-amount-modal:not(.dialog-interactive-modal) {
  width: min(1100px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}

#app .project-workbench.simulation-standard-page .form-grid.simulation-amount-inputs {
  grid-template-columns: repeat(var(--simulation-amount-columns, 4), minmax(0, 1fr)) !important;
  align-items: end;
}

#app .project-workbench.simulation-standard-page .simulation-amount-inputs > label {
  min-width: 0;
}

#app .project-workbench.simulation-standard-page .simulation-amount-inputs + .form-grid {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  #app .project-workbench.simulation-standard-page .form-grid.simulation-amount-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  #app .project-workbench.simulation-standard-page .form-grid.simulation-amount-inputs {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
