/* Passo 34 — consistência de acções e formulários */
.primary-button:disabled,
.secondary-button:disabled,
.ex-button:disabled {
  opacity: .48;
  cursor: not-allowed;
  box-shadow: none;
}

.page-actions .primary-button,
.academic-activation .primary-button,
.ex-inline-actions .primary-button { width: auto; }

.academic-activation .primary-button {
  min-width: 180px;
  color: #fff;
  background: linear-gradient(135deg, #176f66, #159a7e);
  box-shadow: 0 8px 18px rgb(21 154 126 / 18%);
}

.ex-result-sheet-settings .ex-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}
.ex-result-sheet-settings .ex-inline-actions .ex-button,
.ex-result-sheet-settings .ex-inline-actions .secondary-button { min-width: 150px; }

.ex-managed-card { padding: 0; overflow: hidden; }
.ex-card-main {
  min-height: 112px;
  padding: 1.05rem 1.15rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  color: #183147;
  text-decoration: none;
}
.ex-card-main strong { font-size: 1.15rem; }
.ex-card-main span { font-size: .68rem; letter-spacing: .1em; color: #128379; font-weight: 800; }
.ex-draft-delete { border-top: 1px solid #e5ebef; background: #fbfcfd; }
.ex-draft-delete > summary {
  padding: .62rem 1.15rem;
  color: #8b4650;
  cursor: pointer;
  font-size: .67rem;
  font-weight: 800;
  list-style-position: inside;
}
.ex-draft-delete form { margin: 0; padding: 0 1.15rem .85rem; display: grid; gap: .55rem; }
.ex-draft-delete label { display: flex; align-items: center; gap: .45rem; color: #536a77; font-size: .67rem; }
.ex-draft-delete input { width: auto; accent-color: #a9424f; }
.ex-draft-delete button {
  justify-self: start;
  min-height: 34px;
  padding: .4rem .65rem;
  color: #fff;
  background: #a9424f;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: .67rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .page-actions .primary-button,
  .academic-activation .primary-button,
  .ex-result-sheet-settings .ex-inline-actions > * { width: 100%; }
}
