/* Comandos remotos do painel Infra CgFix */

.command-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.power-command-button,
.force-command-button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 15px 16px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 120ms ease,
    opacity 120ms ease,
    background-color 120ms ease;
}

.power-command-button:active:not(:disabled),
.force-command-button:active:not(:disabled) {
  transform: scale(.99);
}

.power-command-button small,
.force-command-button small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: .82;
}

.power-command-button {
  color: #fff;
  background: #175cd3;
}

.force-command-button {
  color: #fff;
  background: #b42318;
}

.power-command-button:disabled,
.force-command-button:disabled {
  color: #667085;
  background: #d0d5dd;
  cursor: not-allowed;
}

.command-message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.command-message.success {
  color: #166534;
  background: #dcfce7;
}

.command-message.error {
  color: #991b1b;
  background: #fee2e2;
}

.command-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 40, .72);
}

.command-modal.hidden {
  display: none;
}

.command-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.command-modal-card h2 {
  margin-top: 5px;
}

.command-modal-card label {
  display: block;
  margin: 18px 0 7px;
}

.command-modal-card input {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 13px;
  font-size: 16px;
  text-transform: uppercase;
}

.command-modal-card input:focus {
  border-color: #175cd3;
  outline: 3px solid rgba(23, 92, 211, .14);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  padding: 4px 8px;
  color: #475467;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.critical-warning {
  margin-top: 14px;
  padding: 12px;
  border-left: 4px solid #d92d20;
  border-radius: 8px;
  color: #7a271a;
  background: #fef3f2;
  line-height: 1.45;
}

.critical-text {
  color: #b42318;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.force-confirm-button {
  border: 0;
  border-radius: 10px;
  padding: 13px;
  color: #fff;
  background: #b42318;
  font-weight: 800;
  cursor: pointer;
}

.force-confirm-button:disabled {
  color: #667085;
  background: #d0d5dd;
  cursor: not-allowed;
}

.modal-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 13px;
}

@media (min-width: 620px) {
  .command-actions {
    grid-template-columns: 1fr 1fr;
  }

  .modal-actions {
    grid-template-columns: 1fr 1.5fr;
  }
}
