﻿.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-module-page:has(.simulation-standardized) .independent-payment-table tbody tr[data-select-independent-line],
.project-module-page:has(.simulation-standardized) .independent-payment-table tbody tr[data-select-actual-line],
.project-module-page:has(.simulation-standardized) .independent-payment-table tbody tr[data-select-closure-line] {
  cursor: pointer;
}

.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 > .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-ticket-total {
  margin-top: 9px !important;
}

.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 .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]:last-child {
  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 {
  margin: 12px 0 0;
  border-top: 1px solid #e3e9f2;
}

.project-workbench.simulation-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 {
  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: 700;
}

.project-workbench.simulation-standard-page .simulation-tax-group-row td {
  padding: 8px 12px;
  background: #eef4fc;
  color: #174a8b;
  font-weight: 700;
  text-align: left;
}

.project-workbench.simulation-standard-page .simulation-tax-subtotal td {
  background: #f7faff;
  font-weight: 600;
}

.project-workbench.simulation-standard-page .simulation-tax-result td {
  border-top: 2px solid #8db8ea;
  background: #edf5ff;
  font-weight: 700;
}

.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;
}

.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) 292px;
  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: 600;
}

.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;
  }
}
