/* EventCentralOps v0.9.455 — keep action positions stable as form state changes.
 * The original v318 dirty label was an :after flex item, so showing it shifted
 * Cancel / Save to the left. Reserve the label in the FIRST grid column even
 * when clean. This is visual only; the v318 unsaved guard remains authoritative.
 */
.eco-cost-form-grid > .eco-cost-form-actions,
.eco-platform-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  align-items: center;
  justify-content: stretch;
  column-gap: 10px;
}
.eco-cost-form-grid > .eco-cost-form-actions::before,
.eco-platform-form-actions::before {
  content: 'Changes not saved';
  display: block;
  grid-column: 1;
  justify-self: end;
  min-width: 0;
  margin-right: 6px;
  color: #9c5a1b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  visibility: hidden;
}
.eco-form-is-dirty > .eco-cost-form-actions::before,
.eco-form-is-dirty > .eco-platform-form-actions::before {
  visibility: visible;
}
/* Retire the v318 post-button label; otherwise it creates a fourth grid item. */
.eco-form-is-dirty > .eco-cost-form-actions::after,
.eco-form-is-dirty > .eco-platform-form-actions::after {
  content: none;
  display: none;
}
.eco-cost-form-actions > button,
.eco-platform-form-actions > button {
  min-width: 0;
  white-space: nowrap;
}
/* Small screens: the reserved label stays above two stable action positions. */
@media (max-width: 540px) {
  .eco-cost-form-grid > .eco-cost-form-actions,
  .eco-platform-form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }
  .eco-cost-form-grid > .eco-cost-form-actions::before,
  .eco-platform-form-actions::before {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    margin-right: 0;
  }
  .eco-cost-form-actions > button,
  .eco-platform-form-actions > button {
    width: 100%;
  }
}
