/* modal.css — used by [pm_machine_parts_modal] only */

.pm-modal-trigger {
  background: var(--pm-navy, #142057);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--pm-radius);
  cursor: pointer;
  font-size: 0.95rem;
}

.pm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.pm-modal.is-open {
  display: block;
}
body.pm-modal-open {
  overflow: hidden;
}

.pm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 30, 0.55);
}

.pm-modal__panel {
  position: relative;
  background: #fff;
  max-width: 480px;
  margin: 8vh auto 0;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}

.pm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--pm-border);
}
.pm-modal__header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--pm-text);
}
.pm-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.pm-modal__form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-modal__form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pm-text);
  margin-top: 10px;
}
.pm-modal__form select {
  padding: 10px 12px;
  border: 1px solid var(--pm-border);
  border-radius: 2px;
  font-size: 0.95rem;
  background: #fff;
}
.pm-modal__submit {
  margin-top: 20px;
  background: #2f7fd1;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 2px;
  font-size: 1rem;
  cursor: pointer;
}
.pm-modal__submit:hover {
  background: #276bb0;
}

@media (max-width: 560px) {
  .pm-modal__panel {
    margin: 0;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
