/* Isolated action footer fix for New Pre Check Logic DMS */
.modal-box:has(.pck-form) .pck-form {
  padding-bottom: 96px !important;
}

.modal-box:has(.pck-form) .pck-actions {
  position: sticky !important;
  left: auto !important;
  right: auto !important;
  bottom: 0 !important;
  z-index: 60 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 18px -16px -16px !important;
  padding: 14px 16px !important;
  min-height: 70px !important;
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid #d8e3ee !important;
  box-shadow: 0 -10px 28px rgba(15,39,71,.12) !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.modal-box:has(.pck-form) .pck-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.modal-box:has(.pck-form) #pck-save-next {
  display: inline-flex !important;
  background: linear-gradient(135deg,#0f766e,#0b5f59) !important;
  border-color: #0f766e !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(15,118,110,.22) !important;
}

.modal-box:has(.pck-form) #pck-save-next:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

@media (max-width: 760px) {
  .modal-box:has(.pck-form) .pck-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .modal-box:has(.pck-form) .pck-actions .pck-autosave {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    text-align: center !important;
  }
  .modal-box:has(.pck-form) .pck-actions button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 460px) {
  .modal-box:has(.pck-form) .pck-actions {
    grid-template-columns: 1fr !important;
  }
  .modal-box:has(.pck-form) .pck-actions .pck-autosave {
    grid-column: 1 !important;
  }
}
