.budgets-page {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.budgets-page .app-form__form,
.budgets-page .app-form__panel {
  width: 100%;
  max-width: none;
}

.budgets-page .app-form__actions {
  border-top: 0;
  padding-top: 0;
}

.budgets-page__with-help .app-form__panel--highlight:first-of-type {
  padding-top: 4rem;
}

@media (min-width: 640px) {
  .budgets-page__with-help .app-form__panel--highlight:first-of-type {
    padding-top: 4.5rem;
  }
}

.budgets-textarea {
  min-height: 6.5rem;
  max-height: 22rem;
  overflow-y: auto;
  resize: vertical;
  transition: min-height 0.2s ease;
  padding: 0.75rem 0.85rem;
  font-family: "Open Sans", "Poppins", sans-serif;
  line-height: 1.55;
}

.budgets-file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.budgets-file-upload:focus-within {
  border-color: #1489e5;
  background: #fff;
  box-shadow: 0 0 0 4px #d8ebff;
}

.budgets-file-upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

.budgets-file-upload__button {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0 0.85rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
}

.budgets-file-upload__button i,
.budgets-file-upload__button svg,
.budgets-file-upload__button .svg-inline--fa {
  color: #0f6fb8;
}

.budgets-file-upload__hint {
  color: #64748b;
  font-family: "Open Sans", "Poppins", sans-serif;
  font-size: 0.875rem;
  pointer-events: none;
}

.budgets-file-upload:hover .budgets-file-upload__button {
  border-color: #84c2ff;
  background: #eef7ff;
  color: #0e578f;
}

.budgets-inline-action {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0 0.75rem;
  color: #475569 !important;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.budgets-inline-action:hover {
  transform: translateY(-1px);
  border-color: #84c2ff;
  background: #eef7ff;
  color: #0e578f !important;
}

.budgets-inline-action:focus {
  outline: none;
  box-shadow: 0 0 0 2px #d8ebff;
}

.budgets-inline-action i,
.budgets-inline-action svg,
.budgets-inline-action .svg-inline--fa {
  color: #0f6fb8;
}

.budgets-inline-action .svg-inline--fa path {
  fill: currentColor;
}

@media (max-width: 768px) {
  .budgets-textarea {
    max-height: 18rem;
  }
}

.app-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 680px);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 30px 55px -35px rgb(15 23 42 / 55%);
  overflow: hidden;
}

.app-modal-head,
.app-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.app-modal-foot {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
}

.app-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.app-modal-body {
  padding: 1rem;
  background: #fff;
}

.app-modal-close {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 9999px;
  background: #e2e8f0;
  cursor: pointer;
}

.app-modal-close::before,
.app-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.8rem;
  height: 2px;
  background: #334155;
}

.app-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.app-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.app-modal-close--overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
