/* 成本预算编制页面样式 */
.cost-budget-page {
  padding: 24px;
}
.cost-budget-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cost-budget-page .page-content {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.cost-budget-page .status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.cost-budget-page .status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cost-budget-page .status-left .budget-code {
  color: var(--text-secondary);
  font-size: 13px;
}
.cost-budget-page .status-left .budget-name {
  font-weight: 600;
  color: var(--text-primary);
}
.cost-budget-page .status-left .project-name {
  color: var(--text-regular);
  font-size: 13px;
}
.cost-budget-page .status-right {
  display: flex;
  gap: 8px;
}
.cost-budget-page .profit-dashboard {
  margin-bottom: 20px;
}
.cost-budget-page .dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.cost-budget-page .dashboard-card .card-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.cost-budget-page .dashboard-card .card-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}
.cost-budget-page .dashboard-card .card-value.income { color: var(--info); }
.cost-budget-page .dashboard-card .card-value.cost { color: var(--danger); }
.cost-budget-page .dashboard-card .card-value.profit { color: var(--success); }
.cost-budget-page .dashboard-card .card-value.loss { color: var(--danger); }
.cost-budget-page .dashboard-card .card-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.cost-budget-page .rate-negative { color: var(--danger); font-weight: 600; }
.cost-budget-page .rate-warning { color: var(--warning); font-weight: 600; }
.cost-budget-page .rate-success { color: var(--success); font-weight: 600; }
.cost-budget-page .editor-container {
  display: flex;
  gap: 16px;
  height: 500px;
}
.cost-budget-page .left-panel {
  width: 300px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cost-budget-page .right-panel {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cost-budget-page .panel-header {
  padding: 10px 16px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.cost-budget-page .panel-content {
  flex: 1;
  overflow: auto;
  padding: 8px;
}
.cost-budget-page .tree-node {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cost-budget-page .tree-node .node-code {
  color: var(--text-secondary);
  font-size: 12px;
}
.cost-budget-page .tree-node .node-name {
  color: var(--text-primary);
}
.cost-budget-page .price-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cost-budget-page .leaf-node {
  font-weight: 500;
}
.cost-budget-page .amount-bold {
  font-weight: 600;
  color: var(--primary);
}
.cost-budget-page .chart-section {
  margin-top: 20px;
}
.cost-budget-page .section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.cost-budget-page .chart-box {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  min-height: 300px;
}
.cost-budget-page .budget-list {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.cost-budget-page .check-result {
  max-height: 500px;
  overflow-y: auto;
}
.cost-budget-page .check-items {
  margin-top: 16px;
}
.cost-budget-page .item-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}