/*
 * HENDAR UALL-R — visible and retry-safe company-finance saving.
 * Loaded after UALL-Q so modal feedback always remains visible.
 */

.toast {
  z-index: 4200 !important;
}

.company-financial-save-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bfd2e5;
  border-radius: 13px;
  background: #f0f7ff;
  color: #123f68;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.company-financial-save-status::before {
  content: "i";
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.company-financial-save-status.is-progress {
  border-color: #c7d7ea;
  background: #f3f7fc;
  color: #315b83;
}

.company-financial-save-status.is-progress::before {
  content: "";
  border-color: currentColor transparent currentColor currentColor;
  animation: hendar-company-financial-saving .8s linear infinite;
}

.company-financial-save-status.is-error {
  border-color: #efb6bd;
  background: #fff1f2;
  color: #8f2030;
}

.company-financial-save-status.is-error::before {
  content: "×";
}

.company-financial-save-status.is-success {
  border-color: #a8d9ba;
  background: #eefbf2;
  color: #166534;
}

.company-financial-save-status.is-success::before {
  content: "✓";
}

#companyFinancialForm[aria-busy="true"] button[type="submit"] {
  cursor: wait;
  opacity: .82;
}

@keyframes hendar-company-financial-saving {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .company-financial-save-status.is-progress::before { animation: none; }
}
