/* Approved design: Abschnitte & Fokus, 13 px. Scoped to the budget page. */
.budget-heading {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 760px);
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.budget-heading-title { min-width: 0; }
.budget-heading .eyebrow { margin-bottom: 6px; }
.budget-heading .subtitle { margin-top: 6px; }
.budget-project-meta { margin-top: 5px; color: #6e7a8d; font-size: 11px; line-height: 1.5; }
.budget-heading-controls { min-width: 0; display: grid; gap: 8px; }
.budget-heading-controls .toolbar,
.budget-heading-controls .subtoolbar {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 8px;
}
.budget-heading-controls .toolbar-group { gap: 6px; }
.budget-heading-controls button,
.budget-heading-controls select,
.budget-heading-controls #search {
  height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}
.budget-heading-controls button svg { width: 14px; height: 14px; }
.delete-version-wrap { display: inline-flex; }
.budget-heading-controls #delete-version { width: 30px; padding: 6px; color: #8490a3; }
.budget-heading-controls #delete-version:not(:disabled):hover { color: #b52c36; background: #fff4f4; border-color: #efcbd0; }
.budget-heading-controls #version { width: 230px; min-width: 140px; max-width: 100%; }
.budget-heading-controls .version-status { font-size: 10px; }
.budget-heading-controls .segmented button { height: 28px; padding: 4px 7px; font-size: 10px; }
.budget-heading-controls #search { width: 150px; }
.budget-heading-controls .help { width: 14px; height: 14px; }
.budget-cards { gap: 12px; margin-bottom: 16px; }
.budget-cards .card { padding: 12px 16px; border-radius: 8px; }
.budget-cards .card.accent { padding-top: 10px; }
.budget-cards .card-label { font-size: 10px; margin-bottom: 6px; }
.budget-cards .card-value { font-size: 22px; letter-spacing: -.5px; }
.budget-cards .card-note { margin-top: 5px; font-size: 10px; line-height: 1.4; }
.budget-cards .line { margin-top: 8px; height: 3px; }
.budget-panel .table-scroll {
  background: #f8f9fc;
}
.budget-table {
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  background: #f8f9fc;
  color: #20252c;
  font-size: 13px;
}
.budget-table col:first-child { width: 42%; }
.budget-table col:nth-child(2) { width: 25%; }
.budget-table col:nth-child(3) { width: 17%; }
.budget-table col:nth-child(4) { width: 16%; }
.budget-table thead th {
  background: #f8f9fc;
  color: #515a66;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 9px 15px;
  border-bottom: 1px solid #c8ced6;
}
.budget-table tbody tr {
  background: transparent;
  color: #20252c;
}
.budget-table tbody td,
.budget-table tfoot td {
  height: 42px;
  padding: 5px 15px;
  font-size: 13px;
  background: #fff;
  border-bottom: 1px solid #e0e4e9;
}
.budget-table .section-row { font-weight: 400; }
.budget-table .depth-2 td { background: #f8f9fa; }
.budget-table .summary-row td { background: #f5f6f8; }
.budget-table .depth-3 td { height: 34px; padding-top: 2px; padding-bottom: 2px; }
.budget-table .group-row,
.budget-table .summary-row { font-weight: 600; }
.budget-table .summary-row td { height: 46px; border-bottom: 1px solid #c8ced6; }
.budget-table .group-row td { height: 44px; }
.budget-table .budget-gap td {
  height: 10px;
  padding: 0;
  border: 0;
  background: #f8f9fc;
}
.budget-table .budget-gap + tr td { border-top: 1px solid #c8ced6; }
.budget-table .group-row:not(.group-zero) td:first-child {
  box-shadow: inset 4px 0 #315bea;
}
.budget-table tbody tr[data-row]:not(.summary-row):hover td { background: #f5f6f8; }
.budget-table tbody tr[data-row]:not(.summary-row).is-active td,
.budget-table tbody tr[data-row]:not(.summary-row):focus-within td { background: #e8efff; }
.budget-table tbody tr[data-row]:not(.summary-row).is-active td:first-child,
.budget-table tbody tr[data-row]:not(.summary-row):focus-within td:first-child { box-shadow: inset 4px 0 #315bea; }
.budget-table .summary-row .label-cell { cursor: default; }
.budget-table .label-cell { line-height: 1.4; }
.budget-table .code,
.budget-table .toggle { font-size: 12px; color: #515a66; }
.budget-table .group-zero td:not(:first-child),
.budget-table .group-zero .money { color: #515a66; font-style: italic; }
.budget-table .money {
  width: 132px;
  min-width: 0;
  font-size: 13px;
  font-weight: inherit;
  color: inherit;
  padding: 5px 6px;
}
.budget-table .number-group { gap: 8px; }
.budget-table .weight-wrap,
.budget-table .weight-placeholder { width: 58px; flex: 0 0 58px; }
.budget-table .weight-wrap { color: #515a66; font-size: 12px; }
.budget-table .weight { width: 44px; color: #515a66; font-size: 12px; }
.budget-table .pin,
.budget-table .pin-placeholder { width: 22px; flex: 0 0 22px; }
.budget-table .pin { color: #697383; font-size: 12px; }
.budget-table .pin.fixed { color: #315bea; background: #e8efff; }
.budget-table .difference { font-size: 13px; }
.budget-table .neutral { color: #515a66; }
.budget-table .positive { color: #b52c36 !important; }
.budget-table .negative { color: #136648 !important; }
.budget-table .money:hover:not([readonly]),
.budget-table .weight:hover { border-color: #bbc6d4; }
.budget-table .help { color: #515a66; border-color: #8e99a8; }
.budget-table .total-row td {
  height: 56px;
  font-weight: 600;
  border-top: 10px solid #f8f9fc;
  border-bottom: 0;
  box-shadow: inset 0 1px #c8ced6;
}
.budget-table .total-row td:nth-child(2) { padding-right: 87px; }
.budget-table .total-row td:nth-child(3) { padding-right: 51px; }
.budget-panel .table-footer,
.budget-panel .basis-info { color: #515a66; font-size: 11px; background: #fff; padding: 9px 18px; }
.budget-panel .table-footer { border-top-color: #c8ced6; }
@media (max-width: 1250px) {
  .budget-heading { grid-template-columns: 1fr; gap: 14px; }
  .budget-heading-controls { width: 100%; }
}
@media (max-width: 760px) {
  .budget-heading { gap: 12px; }
  .budget-heading-controls .toolbar-group { max-width: 100%; }
  .budget-heading-controls .toolbar > .toolbar-group:first-child { width: 100%; }
  .budget-heading-controls #version { flex: 1; width: auto; }
  .budget-heading-controls .subtoolbar > .toolbar-group:first-child { width: 100%; flex-wrap: nowrap; }
  .budget-heading-controls #search { flex: 1; width: 100px; }
  .budget-heading-controls .version-status { flex-shrink: 0; }
  .budget-cards { gap: 8px; }
  .budget-cards .card { padding: 10px 12px; gap: 4px 8px; }
  .budget-cards .card.accent { padding-top: 8px; }
  .budget-cards .card-label,
  .budget-cards .card-note,
  .budget-cards .line { margin: 0; }
  .budget-cards .card-value { font-size: 20px; }
}
