.tmfi-budget { max-width: 47rem; }
.tmfi-budget fieldset { min-width: 0; border: 1px solid #72deff; padding: 1rem; margin: 1.2rem 0; }
.tmfi-budget legend { font-size: 1.2rem; font-weight: 800; padding: 0 .4rem; }
.tmfi-budget-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .8rem; }
.tmfi-budget-costs .tmfi-budget-fields + .tmfi-budget-fields { margin-top: .6rem; }
.tmfi-budget label { display: block; font-weight: 650; }
.tmfi-budget input { display: block; width: 100%; margin-top: .25rem; padding: .55rem; border: 1px solid #aac6db; border-radius: .25rem; background: white; color: #061b40; font: inherit; }
.tmfi-budget [data-total] { color: #72deff; margin-inline-start: .35rem; }
.tmfi-budget-print { display: none; }
@media (max-width: 480px) {
  .tmfi-budget-fields { grid-template-columns: 1fr; gap: .5rem; }
}
@media print {
  body.tmfi-print-budget { color: black; background: white; }
  body.tmfi-print-budget > :not(.tmfi-budget-print) { display: none !important; }
  body.tmfi-print-budget > .tmfi-budget-print { display: block; font: 11pt/1.4 Arial, sans-serif; overflow-wrap: anywhere; }
  .tmfi-budget-print h1, .tmfi-budget-print h2 { font: bold 14pt Arial, sans-serif; text-transform: none; }
  .tmfi-budget-print h1 { font-size: 18pt; }
  .tmfi-budget-print p { max-width: none; margin: .35rem 0; }
}
.tmfi-budget textarea { display: block; width: 100%; margin-top: .25rem; padding: .55rem; border: 1px solid #aac6db; border-radius: .25rem; background: white; color: #061b40; font: inherit; resize: vertical; }
.tmfi-budget fieldset > label { margin-top: .65rem; }
.tmfi-budget input[type="checkbox"] { display: inline-block; width: 1rem; height: 1rem; margin: 0 .4rem 0 0; vertical-align: middle; }
@media print {
  .tmfi-budget-print p { white-space: pre-wrap; break-inside: avoid; }
}
