/* Lot 11A-7.18 — barre d'actions persistante des formulaires de fiche. */
.entity-form-savebar {
  position: sticky;
  z-index: 24;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 11px;
  background: color-mix(in srgb, var(--panel) 97%, transparent);
  box-shadow: 0 9px 24px rgba(15, 23, 42, .1);
  backdrop-filter: blur(12px);
}

.entity-form-save-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.entity-form-save-status .lucide {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.entity-form-savebar :is(
  .project-page-editor-actions,
  .quote-page-editor-actions,
  .invoice-page-editor-actions,
  .client-page-editor-actions,
  .artist-page-editor-actions
) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entity-form-savebar :is(.btn, .btn-secondary) {
  min-height: 36px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .entity-form-savebar {
    bottom: calc(var(--app-mobile-nav-height, 64px) + 7px);
    align-items: stretch;
    flex-direction: column;
  }

  .entity-form-save-status {
    display: none;
  }

  .entity-form-savebar :is(
    .project-page-editor-actions,
    .quote-page-editor-actions,
    .invoice-page-editor-actions,
    .client-page-editor-actions,
    .artist-page-editor-actions
  ) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .entity-form-savebar :is(.btn, .btn-secondary) {
    width: 100%;
    justify-content: center;
  }
}
