/* Overlay ciblé du journal de licences, dérivé de web:2026.08.10cmd1. */
.mba-licence-overlay-editor {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.mba-licence-overlay-current {
  margin-bottom: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--feather, #14e0b6) 35%, var(--border));
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: color-mix(in srgb, var(--feather, #14e0b6) 8%, transparent);
}

.mba-licence-overlay-current-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.mba-licence-overlay-current-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--feather, #14e0b6);
  font-size: 0.84rem;
  line-height: 1.25rem;
}

.mba-licence-overlay-current-value.is-empty {
  color: var(--text-muted);
  font-family: inherit;
  font-style: italic;
}

.mba-licence-overlay-label {
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

.mba-licence-overlay-hint {
  display: block;
  margin-top: 0.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.mba-licence-overlay-controls {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mba-licence-overlay-input {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
}

.mba-licence-overlay-save {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 7.5rem;
}

.mba-licence-overlay-validation,
.mba-licence-overlay-notice {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.2rem;
}

.mba-licence-overlay-validation,
.mba-licence-overlay-notice.is-error {
  color: var(--clash, #fb4b62);
  background: rgba(251, 75, 98, 0.1);
}

.mba-licence-overlay-notice.is-success {
  color: var(--feather, #14e0b6);
  background: rgba(20, 224, 182, 0.1);
}

.mba-licence-overlay-log-row {
  position: relative;
}

.mba-licence-overlay-log-row > button:first-of-type {
  padding-right: 7.75rem !important;
}

.mba-licence-overlay-retry {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 75, 98, 0.35);
  border-radius: 0.6rem;
  padding: 0.35rem 0.7rem;
  color: var(--clash, #fb4b62);
  background: color-mix(in srgb, var(--bg, #101b3e) 90%, transparent);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.mba-licence-overlay-retry:hover:not(:disabled) {
  background: rgba(251, 75, 98, 0.12);
}

.mba-licence-overlay-retry:disabled,
.mba-licence-overlay-save:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.mba-licence-overlay-retry.is-loading::before {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.35rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  content: '';
  animation: mba-licence-overlay-spin 0.8s linear infinite;
}

@keyframes mba-licence-overlay-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .mba-licence-overlay-controls {
    flex-direction: column;
  }

  .mba-licence-overlay-log-row > button:first-of-type {
    padding-right: 4.25rem !important;
  }

  .mba-licence-overlay-retry {
    overflow: hidden;
    width: 3.25rem;
    padding-inline: 0.35rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
